[yelp] yelp-window: Use the new support for RTL icons in GtkIconTheme



commit 52be9ff1dfcb1ec795fcc428d19be7f3cccda8bc
Author: Yosef Or Boczko <yoseforb src gnome org>
Date:   Wed Jun 18 21:27:21 2014 +0300

    yelp-window: Use the new support for RTL icons in GtkIconTheme
    
    https://bugzilla.gnome.org/show_bug.cgi?id=731804

 src/yelp-window.c |    7 ++-----
 1 files changed, 2 insertions(+), 5 deletions(-)
---
diff --git a/src/yelp-window.c b/src/yelp-window.c
index 4d6605b..eb03ea3 100644
--- a/src/yelp-window.c
+++ b/src/yelp-window.c
@@ -290,7 +290,6 @@ window_construct (YelpWindow *window)
     GtkSizeGroup *size_group;
     GMenu *menu, *section;
     YelpWindowPrivate *priv = GET_PRIV (window);
-    gboolean rtl;
 
     const GActionEntry entries[] = {
         { "yelp-window-new",    action_new_window,   NULL, NULL, NULL },
@@ -301,8 +300,6 @@ window_construct (YelpWindow *window)
         { "yelp-window-ctrll",  action_ctrll,        NULL, NULL, NULL },
     };
 
-    rtl = gtk_widget_get_direction (GTK_WIDGET (window)) == GTK_TEXT_DIR_RTL;
-
     gtk_window_set_icon_name (GTK_WINDOW (window), "help-browser");
     priv->view = (YelpView *) yelp_view_new ();
 
@@ -322,14 +319,14 @@ window_construct (YelpWindow *window)
     gtk_style_context_add_class (gtk_widget_get_style_context (box), "linked");
     gtk_header_bar_pack_start (GTK_HEADER_BAR (priv->header), box);
 
-    button = gtk_button_new_from_icon_name (rtl ? "go-previous-rtl-symbolic" : "go-previous-symbolic", 
GTK_ICON_SIZE_MENU);
+    button = gtk_button_new_from_icon_name ("go-previous-symbolic", GTK_ICON_SIZE_MENU);
     gtk_widget_set_tooltip_text (button, _("Back"));
     gtk_widget_set_valign (button, GTK_ALIGN_CENTER);
     gtk_style_context_add_class (gtk_widget_get_style_context (button), "image-button");
     gtk_box_pack_start (GTK_BOX (box), button, FALSE, FALSE, 0);
     g_object_set (button, "action-name", "win.yelp-view-go-back", NULL);
 
-    button = gtk_button_new_from_icon_name (rtl ? "go-next-rtl-symbolic" : "go-next-symbolic", 
GTK_ICON_SIZE_MENU);
+    button = gtk_button_new_from_icon_name ("go-next-symbolic", GTK_ICON_SIZE_MENU);
     gtk_widget_set_tooltip_text (button, _("Forward"));
     gtk_widget_set_valign (button, GTK_ALIGN_CENTER);
     gtk_style_context_add_class (gtk_widget_get_style_context (button), "image-button");


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