How can I check if a GtkWidget exists?
- From: Frank Cox <theatre melvilletheatre com>
- To: gtk-app-devel-list gnome org
- Subject: How can I check if a GtkWidget exists?
- Date: Fri, 20 Jul 2012 00:50:45 -0600
How can I check if a GtkWidget exists?
I am planning to create and destroy widgets in a window depending on the user's
selections, but I can't figure out how to determine if a particular widget
already exists in the window so it won't be created twice or receive a
second deletion attempt if it's already gone.
I tried checking GTK_WIDGET_REALIZED but it appears that if the widget has
previously been destroyed then the GTK_WIDGET_REALIZED tries to access it
anyway and gives me an error.
Is there a way to determine if a widget is already in a window without having
to maintain my own table?
--
MELVILLE THEATRE ~ Real D 3D Digital Cinema ~ www.melvilletheatre.com
www.creekfm.com - FIFTY THOUSAND WATTS of POW WOW POWER!
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]