Re: can't ercieve data passed to g_signal_connect
- From: "David Necas (Yeti)" <yeti physics muni cz>
- To: rachit goel <panthers0072001 yahoo co uk>
- Cc: gtk-app-devel-list gnome org
- Subject: Re: can't ercieve data passed to g_signal_connect
- Date: Fri, 21 Apr 2006 14:08:49 +0200
On Fri, Apr 21, 2006 at 12:45:35PM +0100, rachit goel wrote:
g_signal_connect ((gpointer)eventt[iter],"leave_notify_event", G_CALLBACK (mouse_leave1),data1);
g_signal_connect ((gpointer)eventt[iter],"button_press_event", G_CALLBACK (tab_click1), data1);
g_signal_connect ((gpointer)eventt[iter],"enter_notify_event", G_CALLBACK (tab_mouse_enter1) ,
data1);
...
void tab_click1(GtkWidget *widget,gchar* data1)
...
Have a look at the prototypes of "*-event" callbacks. The
second argument is the event, user_data is always the last
argument.
Yeti
--
That's enough.
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]