The signal delete event is for the top level widget (usually window) and
it's under the signal tab, and it's way way down under GtkWidget. You
also need code like
extern "C"
int on_MainScreen_delete_event() {
std::cout << "Quit main widget little x." << std::endl;
gtk_main_quit ();
return(FALSE);
For the file/quit I use "on_MainQuit_activate" and code like
extern "C"
void on_MainQuit_activate (void) {
std::cout << "File/Quit." << std::endl;
gtk_main_quit ();
return; }
With a Chooser as the top levels you may need "gtk_widget_destroy
(ChooseProjectDialog);" to get rid of it, but I'm getting a bit deeper
than I should with that. Regards Ian.
On 06/06/16 17:52, Paul Davis wrote:
the window manager "close" button being clicked causes
signal_delete_event() to be emitted for the window.
On Mon, Jun 6, 2016 at 5:21 PM, Krzysztof <k...@limes.com.pl
<mailto:k...@limes.com.pl>> wrote:
I'm the very beginner in GTKmm.
I design a simple interface in Glade. The application itself is
written in C++.
Which signal should I choose and which handler should I specify in
File-Quit menu item to have the same action as clicking the X at
upper right corner of window?
How should I make it working in my application?
--
Regards
Krzysztof J.
_______________________________________________
gtk-list mailing list
gtk-list@gnome.org <mailto:gtk-list@gnome.org>
https://mail.gnome.org/mailman/listinfo/gtk-list
_______________________________________________
gtk-list mailing list
gtk-list@gnome.org
https://mail.gnome.org/mailman/listinfo/gtk-list
_______________________________________________
gtk-list mailing list
gtk-list@gnome.org
https://mail.gnome.org/mailman/listinfo/gtk-list