[bijiben] Use the new gear menu icon



commit 0b1f9a94d4eeafc17e34ff35633f3fd2cb6ea817
Author: Matthias Clasen <mclasen redhat com>
Date:   Tue Jul 15 00:37:09 2014 +0200

    Use the new gear menu icon
    
    Instead of misusing emblem-system-symbolic, there is now a
    dedicated icon for this purpose. Just setting the right
    direction on the menu button makes GTK+ use the correct icon.
    
    https://bugzilla.gnome.org/show_bug.cgi?id=733059

 src/bjb-main-toolbar.c |    4 +---
 1 files changed, 1 insertions(+), 3 deletions(-)
---
diff --git a/src/bjb-main-toolbar.c b/src/bjb-main-toolbar.c
index 79360df..2855eb8 100644
--- a/src/bjb-main-toolbar.c
+++ b/src/bjb-main-toolbar.c
@@ -854,7 +854,6 @@ populate_bar_for_note_view (BjbMainToolbar *self)
   GdkRGBA                color;
   GtkSizeGroup          *size;
   BijiItem *item;
-  GtkWidget *menu_image;
   gboolean rtl, detached;
 
   priv->note = bjb_window_base_get_note (BJB_WINDOW_BASE (self->priv->window));
@@ -890,8 +889,7 @@ populate_bar_for_note_view (BjbMainToolbar *self)
   /* Menu */
 
   priv->menu = gtk_menu_button_new ();
-  menu_image = gtk_image_new_from_icon_name ("emblem-system-symbolic", GTK_ICON_SIZE_MENU);
-  gtk_button_set_image (GTK_BUTTON (priv->menu), menu_image);
+  gtk_menu_button_set_direction (GTK_MENU_BUTTON (priv->menu), GTK_ARROW_NONE);
   gtk_style_context_add_class (gtk_widget_get_style_context (priv->menu),
                                "image-button");
   gtk_header_bar_pack_end (bar, priv->menu);


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