Re: Newbie message-wait window



On Sat, 2004-10-23 at 18:11 +0300, lamikr wrote:

>     main.c: In function `main':
>     main.c:13: warning: passing arg 2 of `g_timeout_add' from 
> incompatible pointer type
> 
> The fix was to cast gtk_widget_destroy to GtkFunction...
>     g_timeout_add(10000, (GtkFunction)gtk_widget_destroy, win);

Well you really need to cast to GSourceFunc.

To learn more, install devhelp program and books for it about gtk. It's
very useful.




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