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



commit af7de4dbe0aab7115bd6783017318883494bc932
Author: Yosef Or Boczko <yoseforb src gnome org>
Date:   Mon Aug 25 21:16:37 2014 +0300

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

 configure.ac    |    2 +-
 src/fr-window.c |    6 ++----
 2 files changed, 3 insertions(+), 5 deletions(-)
---
diff --git a/configure.ac b/configure.ac
index e5a3479..4169166 100644
--- a/configure.ac
+++ b/configure.ac
@@ -21,7 +21,7 @@ AC_PATH_PROG(GLIB_COMPILE_RESOURCES, glib-compile-resources)
 
 GLIB_REQUIRED=2.36.0
 GIO_REQUIRED=2.36.0
-GTK_REQUIRED=3.12.0
+GTK_REQUIRED=3.13.2
 NAUTILUS_REQUIRED=2.22.2
 JSON_GLIB_REQUIRED=0.14.0
 LIBNOTIFY_REQUIRED=0.4.3
diff --git a/src/fr-window.c b/src/fr-window.c
index 812e0c5..fd1beb0 100644
--- a/src/fr-window.c
+++ b/src/fr-window.c
@@ -5289,7 +5289,6 @@ static void
 fr_window_construct (FrWindow *window)
 {
        GtkWidget          *list_scrolled_window;
-       gboolean            rtl;
        GtkWidget          *navigation_commands;
        GtkWidget          *location_bar_content;
        GtkWidget          *location_box;
@@ -5644,15 +5643,14 @@ fr_window_construct (FrWindow *window)
        gtk_container_set_border_width (GTK_CONTAINER (location_bar_content), 4);
        gtk_box_pack_start (GTK_BOX (window->priv->location_bar), location_bar_content, TRUE, TRUE, 0);
 
-       rtl = gtk_widget_get_direction (window->priv->headerbar) == GTK_TEXT_DIR_RTL;
        navigation_commands = gtk_box_new (GTK_ORIENTATION_HORIZONTAL, 0);
        gtk_box_pack_start (GTK_BOX (navigation_commands),
-                           _gtk_header_bar_create_image_button (rtl ? "go-previous-rtl-symbolic" :  
"go-previous-symbolic", _("Go to the previous visited location"), "win.go-back"),
+                           _gtk_header_bar_create_image_button ("go-previous-symbolic", _("Go to the 
previous visited location"), "win.go-back"),
                            FALSE,
                            FALSE,
                            0);
        gtk_box_pack_start (GTK_BOX (navigation_commands),
-                           _gtk_header_bar_create_image_button (rtl ? "go-next-rtl-symbolic" : 
"go-next-symbolic", _("Go to the next visited location"), "win.go-forward"),
+                           _gtk_header_bar_create_image_button ("go-next-symbolic", _("Go to the next 
visited location"), "win.go-forward"),
                            FALSE,
                            FALSE,
                            0);


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