]> www.fi.muni.cz Git - evince.git/commitdiff
[shell] Always show rotate icons
authorCarlos Garcia Campos <carlosgc@gnome.org>
Sat, 19 Dec 2009 12:34:58 +0000 (13:34 +0100)
committerCarlos Garcia Campos <carlosgc@gnome.org>
Sat, 19 Dec 2009 12:34:58 +0000 (13:34 +0100)
Fixes bgo#599398.

shell/ev-window.c

index 7e226b4c8ed3ce990567f2aee934b7b281788272..11e3c12aa0a0fab7ca3d5f103f6fc70fa01293f6 100644 (file)
@@ -6122,6 +6122,7 @@ ev_window_init (EvWindow *ev_window)
        GtkAccelGroup *accel_group;
        GError *error = NULL;
        GtkWidget *sidebar_widget;
+       GtkWidget *menuitem;
        EggToolbarsModel *toolbars_model;
        GObject *mpkeys;
        gchar *ui_path;
@@ -6216,6 +6217,12 @@ ev_window_init (EvWindow *ev_window)
        gtk_box_pack_start (GTK_BOX (ev_window->priv->main_box),
                            ev_window->priv->menubar,
                            FALSE, FALSE, 0);
+       menuitem = gtk_ui_manager_get_widget (ev_window->priv->ui_manager,
+                                             "/MainMenu/EditMenu/EditRotateLeftMenu");
+       gtk_image_menu_item_set_always_show_image (GTK_IMAGE_MENU_ITEM (menuitem), TRUE);
+       menuitem = gtk_ui_manager_get_widget (ev_window->priv->ui_manager,
+                                             "/MainMenu/EditMenu/EditRotateRightMenu");
+       gtk_image_menu_item_set_always_show_image (GTK_IMAGE_MENU_ITEM (menuitem), TRUE);
 
        toolbars_model = get_toolbars_model ();
        ev_window->priv->toolbar = GTK_WIDGET