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



On Fri, 2005-04-22 at 14:47 -0500, Rob Benton wrote:
> 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?

No, a top-level window's destructor is called when you delete it.

> 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 {
>      public:
> 	inline ~MyWindow() { g_print("I'm dead\n"); };
> };
> _______________________________________________
> gtkmm-list mailing list
> gtkmm-list gnome org
> http://mail.gnome.org/mailman/listinfo/gtkmm-list
-- 
Murray Cumming
murrayc murrayc com
www.murrayc.com
www.openismus.com




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