Re: g_signal_connect question



deepspace wrote:

g_signal_connect(GTK_OBJECT(button1),"clicked",GTK_SIGNAL_FUNC(roll),p);

Hello, you should use g_signal_connect_swapped() instead of g_signal_connect() for your
void roll(struct args * p);
Also consider to use *G_OBJECT* and *G_CALLBACK* macroces instead of
*GTK_OBJECT* and *GTK_SIGNAL_FUNC* ;)

   Olexiy




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