Re: [gtk-list] callback error II




On Sat, 20 Feb 1999, Omar Armas Aleman wrote:
> 
> static void
> do_search(GtkWidget *widget, GtkWidget *list)
> {
>   GtkWidget *item;
>   
>   if (o_menu_state == 0)
>     {
>       add_item_to_list(list, "Resultado de rfc");
>     }
>   else if (o_menu_state == 1)
>       add_item_to_list(list, "Test nombre");
> }
>

Hmm, this function does nothing if o_menu_state is not 0 or 1 - 
what happens if you add
 printf("Start of callback - o_menu_state %d", o_menu_state);
at the beginning, outside of any if statements?
 
(or if you print the variable's value with gdb?)

Other than that I don't see any problem.

Havoc




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