summaryrefslogtreecommitdiff
path: root/gtk/gtkradiomenuitem.c
diff options
context:
space:
mode:
authorMichael Natterer <mitch@imendio.com>2008-02-07 16:59:42 +0000
committerMichael Natterer <mitch@src.gnome.org>2008-02-07 16:59:42 +0000
commitac6c3719975925a8506ff7f7b36f359fb3a3298b (patch)
tree49243d2aab8c81e54c86a4180e3ec64ee9565743 /gtk/gtkradiomenuitem.c
parentd95069aa1f486cda06b0e78d1d67f857d7ef1b59 (diff)
downloadgtk+-ac6c3719975925a8506ff7f7b36f359fb3a3298b.tar.gz
gtk/gtkcellview.c gtk/gtklabel.c gtk/gtklayout.c gtk/gtklist.c
2008-02-07 Michael Natterer <mitch@imendio.com> * gtk/gtkcellview.c * gtk/gtklabel.c * gtk/gtklayout.c * gtk/gtklist.c * gtk/gtkmenu.c * gtk/gtkmenushell.c * gtk/gtkmisc.c * gtk/gtkoptionmenu.c * gtk/gtkplug.c * gtk/gtkpreview.c * gtk/gtkprogress.c * gtk/gtkradiomenuitem.c * gtk/gtkscale.c * gtk/gtkscrolledwindow.c * gtk/gtksocket.c: remove g_return_if_fail() from private functions and virtual function implementations. svn path=/trunk/; revision=19492
Diffstat (limited to 'gtk/gtkradiomenuitem.c')
-rw-r--r--gtk/gtkradiomenuitem.c14
1 files changed, 3 insertions, 11 deletions
diff --git a/gtk/gtkradiomenuitem.c b/gtk/gtkradiomenuitem.c
index a0c13c536d..a3622381f5 100644
--- a/gtk/gtkradiomenuitem.c
+++ b/gtk/gtkradiomenuitem.c
@@ -380,16 +380,12 @@ gtk_radio_menu_item_init (GtkRadioMenuItem *radio_menu_item)
static void
gtk_radio_menu_item_destroy (GtkObject *object)
{
+ GtkRadioMenuItem *radio_menu_item = GTK_RADIO_MENU_ITEM (object);
GtkWidget *old_group_singleton = NULL;
- GtkRadioMenuItem *radio_menu_item;
GtkRadioMenuItem *tmp_menu_item;
GSList *tmp_list;
gboolean was_in_group;
- g_return_if_fail (GTK_IS_RADIO_MENU_ITEM (object));
-
- radio_menu_item = GTK_RADIO_MENU_ITEM (object);
-
was_in_group = radio_menu_item->group && radio_menu_item->group->next;
radio_menu_item->group = g_slist_remove (radio_menu_item->group,
@@ -422,16 +418,12 @@ gtk_radio_menu_item_destroy (GtkObject *object)
static void
gtk_radio_menu_item_activate (GtkMenuItem *menu_item)
{
- GtkRadioMenuItem *radio_menu_item;
- GtkCheckMenuItem *check_menu_item;
+ GtkRadioMenuItem *radio_menu_item = GTK_RADIO_MENU_ITEM (menu_item);
+ GtkCheckMenuItem *check_menu_item = GTK_CHECK_MENU_ITEM (menu_item);
GtkCheckMenuItem *tmp_menu_item;
GSList *tmp_list;
gint toggled;
- g_return_if_fail (GTK_IS_RADIO_MENU_ITEM (menu_item));
-
- radio_menu_item = GTK_RADIO_MENU_ITEM (menu_item);
- check_menu_item = GTK_CHECK_MENU_ITEM (menu_item);
toggled = FALSE;
if (check_menu_item->active)