[gitg] window: set back button arrow icon according to locale's text direction
- From: Yosef Or Boczko <yoseforb src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gitg] window: set back button arrow icon according to locale's text direction
- Date: Sun, 1 Sep 2013 08:12:46 +0000 (UTC)
commit 476c6e6de03c97494efe5c0629aa9b7e9e5dd2eb
Author: Yosef Or Boczko <yoseforb gmail com>
Date: Sun Sep 1 11:11:16 2013 +0300
window: set back button arrow icon according to locale's text direction
https://bugzilla.gnome.org/show_bug.cgi?id=707211
gitg/gitg-window.vala | 11 +++++++++++
gitg/resources/ui/gitg-window.ui | 1 -
2 files changed, 11 insertions(+), 1 deletions(-)
---
diff --git a/gitg/gitg-window.vala b/gitg/gitg-window.vala
index 2dcae84..3b1a66d 100644
--- a/gitg/gitg-window.vala
+++ b/gitg/gitg-window.vala
@@ -47,6 +47,8 @@ public class Window : Gtk.ApplicationWindow, GitgExt.Application, Initable
[GtkChild]
private Gtk.Button d_dash_button;
[GtkChild]
+ private Gtk.Image dash_image;
+ [GtkChild]
private Gtk.StackSwitcher d_activities_switcher;
[GtkChild]
@@ -154,6 +156,15 @@ public class Window : Gtk.ApplicationWindow, GitgExt.Application, Initable
{
d_environment[e] = Environment.get_variable(e);
}
+
+ if (get_direction () == Gtk.TextDirection.RTL)
+ {
+ dash_image.icon_name = "go-previous-rtl-symbolic";
+ }
+ else
+ {
+ dash_image.icon_name = "go-previous-symbolic";
+ }
}
private void on_close_activated()
diff --git a/gitg/resources/ui/gitg-window.ui b/gitg/resources/ui/gitg-window.ui
index ca9db2a..06aea58 100644
--- a/gitg/resources/ui/gitg-window.ui
+++ b/gitg/resources/ui/gitg-window.ui
@@ -27,7 +27,6 @@
<object class="GtkImage" id="dash_image">
<property name="visible">True</property>
<property name="icon_size">1</property>
- <property name="icon_name">go-previous-symbolic</property>
</object>
</child>
</object>
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]