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



Don't know if the window's destructor would be called, however, you
could override Gtk::Window::on_quit

On 4/22/05, Rob Benton <rob benton conwaycorp net> 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?
> 
> 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
>



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