From c24bfaefe6c1ee9bc493326088051740457e1f50 Mon Sep 17 00:00:00 2001 From: Christian Persch Date: Tue, 10 May 2005 08:34:33 +0000 Subject: [PATCH] Fix warning on the overflow menu 2005-05-10 Christian Persch * cut-n-paste/zoom-control/ephy-zoom-action.c: (create_menu_item): Fix warning on the overflow menu --- ChangeLog | 6 ++++++ cut-n-paste/zoom-control/ephy-zoom-action.c | 18 +++++++++--------- 2 files changed, 15 insertions(+), 9 deletions(-) diff --git a/ChangeLog b/ChangeLog index 15a7d40b..12d69277 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,9 @@ +2005-05-10 Christian Persch + + * cut-n-paste/zoom-control/ephy-zoom-action.c: (create_menu_item): + + Fix warning on the overflow menu + 2005-05-10 Marco Pesenti Gritti * shell/ev-window.c: (sanity_check_uri), (ev_window_open): diff --git a/cut-n-paste/zoom-control/ephy-zoom-action.c b/cut-n-paste/zoom-control/ephy-zoom-action.c index 3582feeb..3baa94c8 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); -- 2.43.5