[california] Fix next/previous icons for RTL: Closes bgo#725955



commit 9d834fd2a515a5544e17aa1664e243c54ab12367
Author: Yosef Or Boczko <yoseforb gmail com>
Date:   Mon Mar 10 12:26:36 2014 -0700

    Fix next/previous icons for RTL: Closes bgo#725955

 THANKS                         |    4 ++++
 src/host/host-main-window.vala |    6 ++++--
 2 files changed, 8 insertions(+), 2 deletions(-)
---
diff --git a/THANKS b/THANKS
new file mode 100644
index 0000000..21733ff
--- /dev/null
+++ b/THANKS
@@ -0,0 +1,4 @@
+The California team would like to thank the following contributors:
+
+Yosef Or Boczko <yoseforb gmail com>
+
diff --git a/src/host/host-main-window.vala b/src/host/host-main-window.vala
index 6673f70..c4d5c8b 100644
--- a/src/host/host-main-window.vala
+++ b/src/host/host-main-window.vala
@@ -33,13 +33,15 @@ public class MainWindow : Gtk.ApplicationWindow {
         // create GtkHeaderBar and pack it in
         Gtk.HeaderBar headerbar = new Gtk.HeaderBar();
         
+        bool rtl = get_direction () == Gtk.TextDirection.RTL;
+        
         Gtk.Button today = new Gtk.Button.with_label(_("Today"));
         today.clicked.connect(() => { current_view.today(); });
         
-        Gtk.Button prev = new Gtk.Button.from_icon_name("go-previous-symbolic", Gtk.IconSize.MENU);
+        Gtk.Button prev = new Gtk.Button.from_icon_name(rtl ? "go-previous-rtl-symbolic" : 
"go-previous-symbolic", Gtk.IconSize.MENU);
         prev.clicked.connect(() => { current_view.prev(); });
         
-        Gtk.Button next = new Gtk.Button.from_icon_name("go-next-symbolic", Gtk.IconSize.MENU);
+        Gtk.Button next = new Gtk.Button.from_icon_name(rtl ? "go-next-rtl-symbolic" : "go-next-symbolic", 
Gtk.IconSize.MENU);
         next.clicked.connect(() => { current_view.next(); });
         
         Gtk.Box nav_buttons = new Gtk.Box(Gtk.Orientation.HORIZONTAL, 0);


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