[gnome-panel/wip/gnome-3.10+: 22/31] panel-conext-menu: don't use deprecated GtkImageMenu



commit 280a500e85b6c0b830fca422f014367e6466efa5
Author: Alberts Muktupāvels <alberts muktupavels gmail com>
Date:   Thu Jul 10 17:34:44 2014 +0300

    panel-conext-menu: don't use deprecated GtkImageMenu

 gnome-panel/panel-context-menu.c |   19 ++++---------------
 1 files changed, 4 insertions(+), 15 deletions(-)
---
diff --git a/gnome-panel/panel-context-menu.c b/gnome-panel/panel-context-menu.c
index df03025..607788d 100644
--- a/gnome-panel/panel-context-menu.c
+++ b/gnome-panel/panel-context-menu.c
@@ -115,11 +115,8 @@ panel_context_menu_build_edition (PanelWidget *panel_widget,
                                  GtkWidget   *menu)
 {
        GtkWidget *menuitem;
-       GtkWidget *image;
 
-       menuitem = gtk_image_menu_item_new_with_mnemonic (_("_Add to Panel..."));
-       image = gtk_image_new_from_icon_name ("list-add", GTK_ICON_SIZE_MENU);
-       gtk_image_menu_item_set_image (GTK_IMAGE_MENU_ITEM (menuitem), image);
+       menuitem = gtk_menu_item_new_with_mnemonic (_("_Add to Panel..."));
        gtk_widget_show (menuitem);
        gtk_menu_shell_append (GTK_MENU_SHELL (menu), menuitem);
         g_signal_connect (G_OBJECT (menuitem), "activate",
@@ -128,20 +125,14 @@ panel_context_menu_build_edition (PanelWidget *panel_widget,
        if (!panel_layout_is_writable ())
                gtk_widget_set_sensitive (menuitem, FALSE);
 
-       menuitem = gtk_image_menu_item_new_with_mnemonic (_("_Properties"));
-       image = gtk_image_new_from_icon_name ("document-properties",
-                                         GTK_ICON_SIZE_MENU);
-       gtk_image_menu_item_set_image (GTK_IMAGE_MENU_ITEM (menuitem), image);
+       menuitem = gtk_menu_item_new_with_mnemonic (_("_Properties"));
        gtk_widget_show (menuitem);
        gtk_menu_shell_append (GTK_MENU_SHELL (menu), menuitem);
        g_signal_connect_swapped (menuitem, "activate",
                                  G_CALLBACK (panel_properties_dialog_present), 
                                  panel_widget->toplevel);
 
-       menuitem = gtk_image_menu_item_new_with_mnemonic (_("_Delete This Panel"));
-       image = gtk_image_new_from_icon_name ("gtk-delete",
-                                         GTK_ICON_SIZE_MENU);
-       gtk_image_menu_item_set_image (GTK_IMAGE_MENU_ITEM (menuitem), image);
+       menuitem = gtk_menu_item_new_with_mnemonic (_("_Delete This Panel"));
        gtk_widget_show (menuitem);
        gtk_menu_shell_append (GTK_MENU_SHELL (menu), menuitem);
        g_signal_connect_swapped (G_OBJECT (menuitem), "activate",
@@ -153,9 +144,7 @@ panel_context_menu_build_edition (PanelWidget *panel_widget,
 
        add_menu_separator (menu);
 
-       menuitem = gtk_image_menu_item_new_with_mnemonic (_("_New Panel"));
-       image = gtk_image_new_from_icon_name ("document-new", GTK_ICON_SIZE_MENU);
-       gtk_image_menu_item_set_image (GTK_IMAGE_MENU_ITEM (menuitem), image);
+       menuitem = gtk_menu_item_new_with_mnemonic (_("_New Panel"));
        gtk_widget_show (menuitem);
        gtk_menu_shell_append (GTK_MENU_SHELL (menu), menuitem);
        g_signal_connect (menuitem, "activate",


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]