Re: gtk_idle_add error



Le samedi 11 f�ier 2006 �1:48 +0800, Keith Poole a �it :
> Hi.
> Having some problems using gtk_idle_add.
> Heres what im trying to do (its obvious)
> 
> // some function code here
>     gtk_idle_add(idlestuff, window);
> // some more function code here
> 
> int idlestuff(GtkWidget *widget, GtkWidget *window)
> {
>     gtk_window_set_position(GTK_WINDOW(window), GTK_WIN_POS_MOUSE);
>     return TRUE;
> }
> 
> I have tried all sorts and i cant get it to work at all. Gcc also
> spits out the following warning:
> warning: implicit declaration of function 'gtk_idle_add'

gtk_idle_add is deprecated, use g_idle_add.




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