Re: compilation warning



On Fri, 2004-05-07 at 07:07, Utpal Shasane wrote:
Hello,
I am calling destroy event of window by using
gtk_signal_connect(G_OBJECT(window), "delete_event",G_CALLBACK 
(delete_event), NULL);

I works fine, but i am not getting why there is compilation warning as
warning: passing arg 1 of `gtk_signal_connect_full' from incompatible 
pointer type

can somebody help me to remove this warning.
gtk_signal_connect works on GTK_OBJECT's. You should prefer
g_signal_connect, so
g_signal_connect(G_OBJECT(window), "delete_event",G_CALLBACK
(delete_event), NULL);
should be used.

-- 
Nils O. Selåsdal <noselasd frisurf no>




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