Thanks I solved it now with ur help Milosz Derezynski wrote: > Also please read the docs before "just" trying to figure out what a > signal name could look like (the documentation clearly enough states > it as signal_delete_event() not signal_delete(), i hope you get what i > mean) > > Milosz > > On 7/17/07, *Grizzly(Francis Smit)* <[EMAIL PROTECTED] > <mailto:[EMAIL PROTECTED]>> wrote: > > Jonathon Jongsma wrote: > > On 7/16/07, Grizzly(Francis Smit) <[EMAIL PROTECTED] > <mailto:[EMAIL PROTECTED]>> wrote: > > > >> hi list > >> could some one please tell me what signal to > >> connect to, to catch a window before it closes > >> I want to do some cleaning up before my app > >> closes, but if they click the cross on the main > >> window the app just exits, I've tried overriding > >> the destructor of my window class but that > >> doesn't work. > >> > > <snip> > > > > handle the delete event on the window > > > > > > I've just tried that but the compiler says: > > /home/grizzlysmit/Projects/gtk-editor/src/main-win.cpp:129: error: > 'class MainWin' has no member named 'signal_delete' > > I derive MainWin from Gtk::Window as follows: > > class MainWin: public Gtk::Window > { > . > : > } > > > > -- > In my life God comes first.... but Linux is pretty high after > that :-D > Grizzly(Francis Smit) > http://www.geekcode.com/ > -----BEGIN GEEK CODE BLOCK----- > Version: 3.1 > GM/CS/P/PA d- s+:+> a+>? C++++ UL++++@ P+ L+++ E--- W+++ N+(++) K > w--- M-- V-- PS(+) PE(-) Y+(++) PGP++ t+(++) 5 X- R- tv b+++(++++) > DI(--) D G e++(+++) h-- r- y- > ------END GEEK CODE BLOCK------ > > > _______________________________________________ > gtkmm-list mailing list > gtkmm-list@gnome.org <mailto:gtkmm-list@gnome.org> > http://mail.gnome.org/mailman/listinfo/gtkmm-list > <http://mail.gnome.org/mailman/listinfo/gtkmm-list> > >
-- In my life God comes first.... but Linux is pretty high after that :-D Grizzly(Francis Smit) http://www.geekcode.com/ -----BEGIN GEEK CODE BLOCK----- Version: 3.1 GM/CS/P/PA d- s+:+> a+>? C++++ UL++++@ P+ L+++ E--- W+++ N+(++) K w--- M-- V-- PS(+) PE(-) Y+(++) PGP++ t+(++) 5 X- R- tv b+++(++++) DI(--) D G e++(+++) h-- r- y- ------END GEEK CODE BLOCK------ _______________________________________________ gtkmm-list mailing list gtkmm-list@gnome.org http://mail.gnome.org/mailman/listinfo/gtkmm-list