6 lookup_widget( GtkWidget *widget,
7 const gchar *widget_name ){
8 GtkWidget *parent, *found_widget;
12 if ( GTK_IS_MENU( widget ) ) {
13 parent = gtk_menu_get_attach_widget( GTK_MENU( widget ) );
16 parent = widget->parent;
19 parent = (GtkWidget*) g_object_get_data( G_OBJECT( widget ), "GladeParentKey" );
21 if ( parent == NULL ) {
27 found_widget = (GtkWidget*) g_object_get_data( G_OBJECT( widget ),
29 if ( !found_widget ) {
30 g_warning( "Widget not found: %s", widget_name );