Re: How do I pass a widget pointer to a function/callback?



Quoted by a box full of cyborg droids
For `Jay Barnes <jaybarnes yahoo com>' 
On Wednesday, 28 January 2004 (12:53):


static void enter_ramen( GtkWidget *widget, gpointer box )
{

    gtk_widget_hide(box);
}


        Try:


        gtk_widget_hide(GTK_WIDGET(box));

        -or-

        gtk_widget_hide(widget);


-- 

 Leandro Pereira              (oO)           <leandro linuxmag com br>
                              /||\                  www.mindcrisis.tk

 "UNIX was not designed to stop you from doing stupid things, because
  that would also stop you from doing clever things." - Doug Gwyn 




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