Sending structures to callbacks
- From: Delbert Martin <dmartin kionix com>
- To: gtk-list gnome org
- Subject: Sending structures to callbacks
- Date: Tue, 17 Jul 2001 16:45:23 -0400 (EDT)
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]