Re: libseed-list Gtk.window.signal.destroy, Gtk.window.signal.hide or does it matter?



Docs help out a bit - http://devel.akbkhome.com/seed/

http://library.gnome.org/devel/gtk/stable/GtkObject.html#GtkObject-destroy
http://library.gnome.org/devel/gtk/stable/GtkWidget.html#GtkWidget-delete-event
http://library.gnome.org/devel/gtk/stable/GtkWidget.html#GtkWidget-hide

hide - normally you may not want to exit from this, but perhaps show a 'are you really sure you want to do that message'
delete-event - return true to stop the destruction
destroy - games over, almost all the object data has been destroyed.. existing is you only option really..

Regards
Alan


 --- On 25/Feb/2010, Alan Forbes wrote: 
> I have been using window.signal.hide.connect(Gtk.main_quit); to destroy
> Gtk windows when the destroy event is emitted ( x in pressed in
> decoration / Alt F4 is pressed?) as it was getting used in the Seed
> Examples and on other websites. There was a post on my blog saying that
> window.signal.destroy.connect(Gtk.main_quit); can be used as well. 
> 
> I've tried both commands and they perform the same behaviour. Is this
> just a simple quirk as a possible bug as when destroying a window,  a
> hide event shouldn't be emitted?
> 
> _______________________________________________
> libseed-list mailing list
> libseed-list gnome org
> http://mail.gnome.org/mailman/listinfo/libseed-list



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