Re: two or more objects into a signal handler



If the entry passed in is not the entry you want, you need to create a
struct to pass in as user_data, or set the data on the object.  You can
do this by doing something like:

gtk_object_set_data (GTK_OBJECT (entry), "myobject1", object1);
gtk_object_set_data (GTK_OBJECT (entry), "myobject2", object2);

...

later in the callback:

GtkObject *object1 = gtk_object_get_data (GTK_OBJECT (entry), "myobject1");
GtkObject *object2 = gtk_object_get_data (GTK_OBJECT (entry), "myobject2");

Thanks,
-Jonathan

Thanks for the help...

-- 
Gonzalo Aguilar. Madrid, España (Spain) |
Reymad Studios | gad reymad com         |
Privado        | eshero airtel net      |
----------------------------------------+




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