Sending structures to callbacks



I have Seen a lot of code on this but cannot get it to work on my program
here is a example

struct entries {
	GtkWidget *entry1;
	GtkWidget *entry2;
	}

struct entries *strPointer;
strPointer->entry1 = gtk_entry_new();
strPointer->entry2 = gtk_entry_new();

gtk_signal_connect(GTK_OBJECT(object), "event",GTK_SIGNAL_FUNC(my_callback), strPointer)

void my_callback (struct entries *mydata) {
..
gchar *value1,*value2;
value1 = gtk_entry_get_text(mydata->entry1);
value2 = gtk_entry_get_text(mydata->entry2);

}


.
WHere am i going wrong???????



--Delbert Martin IV




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