Re: can't ercieve data passed to g_signal_connect
- From: "John Cupitt" <jcupitt gmail com>
- 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 13:05:52 +0100
On 4/21/06, rachit goel <panthers0072001 yahoo co uk> wrote:
g_signal_connect ((gpointer)eventt[iter],"button_press_event", G_CALLBACK (tab_click1), data1);
void tab_click1(GtkWidget *widget,gchar* data1)
You have the type of your callback wrong:
http://developer.gnome.org/doc/API/2.0/gtk/GtkWidget.html#GtkWidget-button-press-event
Try
gboolean user_function(GtkWidget *widget, GdkEventButton *event,
gpointer user_data)
Also you probably have a memory leak there, though maybe it's not important.
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]