]> www.fi.muni.cz Git - evince.git/commitdiff
Fix warning on the overflow menu
authorChristian Persch <chpe@gnome.org>
Tue, 10 May 2005 08:34:33 +0000 (08:34 +0000)
committerMarco Pesenti Gritti <marco@src.gnome.org>
Tue, 10 May 2005 08:34:33 +0000 (08:34 +0000)
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

ChangeLog
cut-n-paste/zoom-control/ephy-zoom-action.c

index 15a7d40bacf4b208d63a3206456d6d539e7aa2ed..12d69277476ca32f1dbf9de8fae25d8c3acbe2af 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,9 @@
+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
+
 2005-05-10  Marco Pesenti Gritti  <mpg@redhat.com>
 
        * shell/ev-window.c: (sanity_check_uri), (ev_window_open):
index 3582feebfe794ba5049c374418752dad07d0445f..3baa94c8fe004e336961e2bbd5222a18e6f25b96 100644 (file)
@@ -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);