On Fri, Jul 20, 2012 at 12:50:45AM -0600, Frank Cox wrote:
> How can I check if a GtkWidget exists?

By keeping track of it (either when you create and destroy the widgets
or using weak references/weak pointers/destroy callbacks/...).

‘Checking the existence of a widget’ is, essentially, a meaningless
phrase.  If the widget has been destroyed you do not have any means to
*refer* to it.  You cannot ask ‘does this widget exist’ because there is
no way to say ‘this widget’.

Using the pointer to the memory the widget used to occupy for anything
is a programming error.

Yeti

_______________________________________________
gtk-app-devel-list mailing list
gtk-app-devel-list@gnome.org
https://mail.gnome.org/mailman/listinfo/gtk-app-devel-list

Reply via email to