Web   ·   Wiki   ·   Activities   ·   Blog   ·   Lists   ·   Chat   ·   Meeting   ·   Bugs   ·   Git   ·   Translate   ·   Archive   ·   People   ·   Donate
summaryrefslogtreecommitdiffstats
path: root/cut-n-paste/zoom-control
diff options
context:
space:
mode:
authorChristian Persch <chpe@gnome.org>2005-05-10 08:34:33 (GMT)
committer Marco Pesenti Gritti <marco@src.gnome.org>2005-05-10 08:34:33 (GMT)
commitc24bfaefe6c1ee9bc493326088051740457e1f50 (patch)
tree2b6213ae8a6d03eb32609c52d2aed41aa5727460 /cut-n-paste/zoom-control
parentf6813ee5f28316ee9ee4bbef262900fc7d8bb9ec (diff)
Fix warning on the overflow menu
2005-05-10 Christian Persch <chpe@gnome.org> * cut-n-paste/zoom-control/ephy-zoom-action.c: (create_menu_item): Fix warning on the overflow menu
Diffstat (limited to 'cut-n-paste/zoom-control')
-rw-r--r--cut-n-paste/zoom-control/ephy-zoom-action.c18
1 files changed, 9 insertions, 9 deletions
diff --git a/cut-n-paste/zoom-control/ephy-zoom-action.c b/cut-n-paste/zoom-control/ephy-zoom-action.c
index 3582fee..3baa94c 100644
--- a/cut-n-paste/zoom-control/ephy-zoom-action.c
+++ b/cut-n-paste/zoom-control/ephy-zoom-action.c
@@ -160,17 +160,17 @@ create_menu_item (GtkAction *action)
menu_item = gtk_radio_menu_item_new_with_label (group,
zoom_levels[i].name);
group = gtk_radio_menu_item_get_group (GTK_RADIO_MENU_ITEM (menu_item));
- }
- gtk_check_menu_item_set_active (GTK_CHECK_MENU_ITEM (menu_item),
- p->zoom == zoom_levels[i].level);
-
- gtk_widget_show (menu_item);
+ gtk_check_menu_item_set_active (GTK_CHECK_MENU_ITEM (menu_item),
+ p->zoom == zoom_levels[i].level);
+
+ g_object_set_data (G_OBJECT (menu_item), "zoom-level", GINT_TO_POINTER (i));
+ g_signal_connect_object (G_OBJECT (menu_item), "activate",
+ G_CALLBACK (proxy_menu_activate_cb), action, 0);
+ }
+
+ gtk_widget_show (menu_item);
gtk_menu_shell_append (GTK_MENU_SHELL (menu), menu_item);
-
- g_object_set_data (G_OBJECT (menu_item), "zoom-level", GINT_TO_POINTER (i));
- g_signal_connect_object (G_OBJECT (menu_item), "activate",
- G_CALLBACK (proxy_menu_activate_cb), action, 0);
}
gtk_widget_show (menu);