From: Carlos Garcia Campos Date: Sat, 19 Dec 2009 12:34:58 +0000 (+0100) Subject: [shell] Always show rotate icons X-Git-Tag: EVINCE_2_29_4~6 X-Git-Url: https://www.fi.muni.cz/~kas/git//home/kas/public_html/git/?a=commitdiff_plain;h=638301e107cdf4eb8368db9beca7ec6755778c2c;p=evince.git [shell] Always show rotate icons Fixes bgo#599398. --- diff --git a/shell/ev-window.c b/shell/ev-window.c index 7e226b4c..11e3c12a 100644 --- a/shell/ev-window.c +++ b/shell/ev-window.c @@ -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