[Glade-users] Problem with realizing callbacks from CheckMenuItem with Glade 3.6.7
Tadej Borovšak
tadeboro at gmail.com
Thu Mar 25 12:59:05 EDT 2010
Hello
When you specify data field in Glade, then signal connection is done
like you would call g_signal_connect_swapped(). This is (probably)
done from convenience reasons For example, you have 2 buttons; one
shows certain widget and the other hides it. You can do this entirely
from glade with no additional code by specifying gtk_widget_show() and
gtk_widget_hide() as "clicked" signal handlers and passing manipulated
widget id as data.
In your code, all that is needed is change handler's definition from
your form to this:
------------------
void cb_handle_bio_signals( gpointer data, GtkCheckMenuItem *check_menu_item )
{
...
}
------------------
Tadej
--
Tadej Borovšak
tadeboro.blogspot.com
tadeboro at gmail.com
tadej.borovsak at gmail.com
More information about the Glade-users
mailing list