forked from AuroraMiddleware/gtk
Fixed a warning from g_object_set (radiobutton, "group", NULL, NULL).
* gtk/gtkradiobutton.c: Fixed a warning from g_object_set (radiobutton, "group", NULL, NULL). svn path=/trunk/; revision=17363
This commit is contained in:
parent
07224aa7ba
commit
bafe7fd4fa
@ -1,3 +1,8 @@
|
||||
2006-02-28 Tristan Van Berkom <tvb@gnome.org>
|
||||
|
||||
* gtk/gtkradiobutton.c: Fixed a warning from
|
||||
g_object_set (radiobutton, "group", NULL, NULL).
|
||||
|
||||
2007-02-26 Matthias Clasen <mclasen@redhat.com>
|
||||
|
||||
Apply a patch by Carlos Garnacho to fix several problems
|
||||
|
@ -144,10 +144,13 @@ gtk_radio_button_set_property (GObject *object,
|
||||
switch (prop_id)
|
||||
{
|
||||
GSList *slist;
|
||||
GtkRadioButton *button;
|
||||
|
||||
case PROP_GROUP:
|
||||
if (G_VALUE_HOLDS_OBJECT (value))
|
||||
slist = gtk_radio_button_get_group ((GtkRadioButton*) g_value_get_object (value));
|
||||
button = g_value_get_object (value);
|
||||
|
||||
if (button)
|
||||
slist = gtk_radio_button_get_group (button);
|
||||
else
|
||||
slist = NULL;
|
||||
gtk_radio_button_set_group (radio_button, slist);
|
||||
|
Loading…
Reference in New Issue
Block a user