6 lookup_widget (GtkWidget *widget,
7 const gchar *widget_name)
9 GtkWidget *parent, *found_widget;
13 if (GTK_IS_MENU (widget))
14 parent = gtk_menu_get_attach_widget (GTK_MENU (widget));
16 parent = widget->parent;
18 parent = (GtkWidget*) g_object_get_data (G_OBJECT (widget), "GladeParentKey");
24 found_widget = (GtkWidget*) g_object_get_data (G_OBJECT (widget),
27 g_warning ("Widget not found: %s", widget_name);