selection_changed problem



hello

I am using the GTKList widget on which i am having the
selection_changed signal fired...Now i am using the lookup_widget()
function in it....

It works till now...But when i try to close the window then my destroy
event is fired and it gives me the fatal error dialog box saying the
segmentation fault...All what i do is just to select the value from
the list and then click on the close button of the window....I have
also attached the gtk_main_quit signal along with the destroy
signal....
 
With the error dialog it also gives me this printed error on terminal

WARNING **: Widget not found: ABCD

My code snipplet for this is as follows :
    
void
on_list_selection_changed (GtkList *list, gpointer     user_data)
{
        GtkWidget *ABCD,*Mylist;
        ABCD = lookup_widget (GTK_WIDGET (list), "ABCD");
        Mylist=lookup_widget(ABCD,"keylist");
        -----
        ----
}

My destroy event is 

gboolean
on_ABCD_destroy_event(GtkWidget       *widget,
                      GdkEvent        *event,
                      gpointer         user_data)
{
        
        return FALSE;
}


Is it possible that we are not supposed to use the lookup function in
selection_changed signal???


Please help me ....

Thanks



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