[gnome-weather] window: Set the 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: [gnome-weather] window: Set the back button arrow icon according to locale's text direction
- Date: Fri, 27 Dec 2013 13:06:43 +0000 (UTC)
commit 8cc3e2b274257b081f5d2e246ad4fea87606565e
Author: Yosef Or Boczko <yoseforb gmail com>
Date: Fri Dec 27 14:55:18 2013 +0200
window: Set the back button arrow icon according to locale's text direction
https://bugzilla.gnome.org/show_bug.cgi?id=721123
data/window.ui | 1 -
src/window.js | 4 ++++
2 files changed, 4 insertions(+), 1 deletions(-)
---
diff --git a/data/window.ui b/data/window.ui
index 78d5855..5b81cd6 100644
--- a/data/window.ui
+++ b/data/window.ui
@@ -85,7 +85,6 @@
<object class="GtkImage" id="world-button-image">
<property name="visible">True</property>
<property name="can_focus">False</property>
- <property name="icon-name">go-previous-symbolic</property>
<property name="icon-size">1</property>
</object>
</child>
diff --git a/src/window.js b/src/window.js
index b581681..265333e 100644
--- a/src/window.js
+++ b/src/window.js
@@ -120,6 +120,10 @@ const MainWindow = new Lang.Class({
let goWorldButton = builder.get_object('world-button');
this._pageWidgets[Page.CITY].push(goWorldButton);
+ let goWorldButtonImage = builder.get_object('world-button-image');
+ goWorldButtonImage.icon_name = (goWorldButton.get_direction() == Gtk.TextDirection.RTL ?
+ 'go-previous-rtl-symbolic' : 'go-previous-symbolic');
+
let select = builder.get_object('select-button');
this._pageWidgets[Page.WORLD].push(select);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]