[sushi] evince-viewer: set 'media-playback-start' icon according to locale's text direction
- From: Yosef Or Boczko <yoseforb src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [sushi] evince-viewer: set 'media-playback-start' icon according to locale's text direction
- Date: Mon, 29 Jul 2013 16:40:43 +0000 (UTC)
commit 6822522ae6e7edaeaa2edb555c16e88f4626b936
Author: Yosef Or Boczko <yoseforb gmail com>
Date: Mon Jul 29 19:39:58 2013 +0300
evince-viewer: set 'media-playback-start' icon according to locale's text direction
https://bugzilla.gnome.org/show_bug.cgi?id=705017
src/js/viewers/evince.js | 8 ++++++--
1 files changed, 6 insertions(+), 2 deletions(-)
---
diff --git a/src/js/viewers/evince.js b/src/js/viewers/evince.js
index b2b28bf..14f80ee 100644
--- a/src/js/viewers/evince.js
+++ b/src/js/viewers/evince.js
@@ -132,8 +132,12 @@ EvinceRenderer.prototype = {
this._toolbarActor = new GtkClutter.Actor({ contents: this._mainToolbar });
+ let isRtl = (this._mainToolbar.get_direction() == Gtk.TextDirection.RTL);
+ let prevIconName = isRtl ? 'go-previous-rtl-symbolic' : 'go-previous-symbolic';
+ let nextIconName = isRtl ? 'go-next-rtl-symbolic' : 'go-next-symbolic';
+
this._toolbarBack = new Gtk.ToolButton({ expand: false,
- icon_name: 'go-previous-symbolic' });
+ icon_name: prevIconName });
this._toolbarBack.show();
this._mainToolbar.insert(this._toolbarBack, -1);
@@ -146,7 +150,7 @@ EvinceRenderer.prototype = {
this._mainToolbar.insert(labelItem, -1);
this._toolbarForward = new Gtk.ToolButton({ expand: false,
- icon_name: 'go-next-symbolic' });
+ icon_name: nextIconName });
this._toolbarForward.show();
this._mainToolbar.insert(this._toolbarForward, -1);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]