[Glade-users] Problem with realizing callbacks from CheckMenuItem with Glade 3.6.7
- From: tadeboro at gmail.com (Tadej Borovšak)
- Subject: [Glade-users] Problem with realizing callbacks from CheckMenuItem with Glade 3.6.7
- Date: Thu, 25 Mar 2010 17:59:05 +0100
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
[
Date Prev][Date Next] [
Thread Prev][Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]