Commit 509f902f authored by Juan Pablo Ugarte's avatar Juan Pablo Ugarte

added glade_gtk_radio_button_set_property() to avoid bogus warning

* plugins/gtk+/glade-gtk.c: added glade_gtk_radio_button_set_property() to avoid bogus warning

* plugins/gtk+/gtk+.xml.in: added GtkRadioButton set-property-function

svn path=/trunk/; revision=1640
parent 5ebb650c
2007-10-26 Juan Pablo Ugarte <juanpablougarte@gmail.com>
* plugins/gtk+/glade-gtk.c: added glade_gtk_radio_button_set_property() to avoid bogus warning
* plugins/gtk+/gtk+.xml.in: added GtkRadioButton set-property-function
2007-10-22 Juan Pablo Ugarte <juanpablougarte@gmail.com>
* gladeui/glade-widget.c: fixed variable redeclaration in glade_widget_embed() bug #488977
......
......@@ -6707,3 +6707,28 @@ glade_gtk_assistant_get_child_property (GladeWidgetAdaptor *adaptor,
property_name,
value);
}
/*--------------------------- GtkRadioButton ---------------------------------*/
void
glade_gtk_radio_button_set_property (GladeWidgetAdaptor *adaptor,
GObject *object,
const gchar *property_name,
const GValue *value)
{
if (strcmp (property_name, "group") == 0)
{
GtkRadioButton *radio = g_value_get_object (value);
/* g_object_set () on this property produces a bogus warning,
* so we better use the API GtkRadioButton provides.
*/
gtk_radio_button_set_group (GTK_RADIO_BUTTON (object),
radio ? gtk_radio_button_get_group (radio) : NULL);
return;
}
/* Chain Up */
GWA_GET_CLASS (GTK_TYPE_CHECK_BUTTON)->set_property (adaptor,
object,
property_name,
value);
}
......@@ -743,6 +743,7 @@ embedded in another object</_tooltip>
</glade-widget-class>
<glade-widget-class name="GtkRadioButton" generic-name="radiobutton" _title="Radio Button">
<set-property-function>glade_gtk_radio_button_set_property</set-property-function>
<properties>
<property id="label" default="radiobutton"/>
<property id="draw-indicator" default="True"/>
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment