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:
Tristan Van Berkom 2007-02-28 16:16:54 +00:00
parent 07224aa7ba
commit bafe7fd4fa
2 changed files with 10 additions and 2 deletions

View File

@ -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> 2007-02-26 Matthias Clasen <mclasen@redhat.com>
Apply a patch by Carlos Garnacho to fix several problems Apply a patch by Carlos Garnacho to fix several problems

View File

@ -144,10 +144,13 @@ gtk_radio_button_set_property (GObject *object,
switch (prop_id) switch (prop_id)
{ {
GSList *slist; GSList *slist;
GtkRadioButton *button;
case PROP_GROUP: case PROP_GROUP:
if (G_VALUE_HOLDS_OBJECT (value)) button = g_value_get_object (value);
slist = gtk_radio_button_get_group ((GtkRadioButton*) g_value_get_object (value));
if (button)
slist = gtk_radio_button_get_group (button);
else else
slist = NULL; slist = NULL;
gtk_radio_button_set_group (radio_button, slist); gtk_radio_button_set_group (radio_button, slist);