[gnome-software] Set button arrow icons according to locale's text direction



commit c424f49ba34cb31fb77d7b3b67af3f4eb835c9ef
Author: Yosef Or Boczko <yoseforb gmail com>
Date:   Mon Sep 2 00:43:56 2013 +0300

    Set button arrow icons according to locale's text direction
    
    https://bugzilla.gnome.org/show_bug.cgi?id=707210

 src/gs-shell.c |    7 +++++++
 1 files changed, 7 insertions(+), 0 deletions(-)
---
diff --git a/src/gs-shell.c b/src/gs-shell.c
index a502fd3..4c051ce 100644
--- a/src/gs-shell.c
+++ b/src/gs-shell.c
@@ -372,6 +372,13 @@ gs_shell_setup (GsShell *shell, GsPluginLoader *plugin_loader, GCancellable *can
         gtk_window_set_titlebar (GTK_WINDOW (main_window), widget);
         g_object_unref (widget);
 
+       /* fix icon in RTL */
+       if (gtk_widget_get_default_direction () == GTK_TEXT_DIR_RTL)
+       {
+               widget = GTK_WIDGET (gtk_builder_get_object (priv->builder, "back_image"));
+               gtk_image_set_from_icon_name (GTK_IMAGE (widget), "go-previous-rtl-symbolic", 
GTK_ICON_SIZE_MENU);
+       }
+
        /* setup buttons */
        widget = GTK_WIDGET (gtk_builder_get_object (priv->builder, "button_back"));
        g_signal_connect (widget, "clicked",


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