Gtk::Main::quit() on a Window pointer

I'm pretty sure I know the answer to this but I wanted to make sure I wasn't overlooking something obvious. I have a class derived from Gtk::Window that I'm getting through libglademm. If I hit the X/close button on the window when it's running, does that object's destructor get called?

Here's how it looks in my app:

inside main.C:
MyWindow * mainwin = xml->get_widget_derived();

inside MyWindow.C:
class MyWindow : public Gtk::Window {
	inline ~MyWindow() { g_print("I'm dead\n"); };

[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]