Re: signal for closing app

2016-06-06 Thread Ian Chapman
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 ();

Re: signal for closing app

2016-06-06 Thread Paul Davis
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 wrote: > I'm the very beginner in GTKmm. > I design a simple interface in Glade. The application itself is written in > C++. >

signal for closing app

2016-06-06 Thread Krzysztof
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