summaryrefslogtreecommitdiff
path: root/overrides/endless_private
diff options
context:
space:
mode:
authorPhilip Chimento <philip@endlessm.com>2015-06-10 19:50:42 -0700
committerPhilip Chimento <philip@endlessm.com>2015-06-10 19:50:42 -0700
commitda24f4191e88417c7900ce49d6a2c14a25af3088 (patch)
treef4e95035e5a129e0ecc4ca6d2c5c2bcfc8dafe91 /overrides/endless_private
parent096e9ce1739a733c8179dbd4d6ffc9854af92fb4 (diff)
Access static method on class, not instance
The old GJS allowed you to access static methods on an instance of the class that defined them. Not so with the new GJS. So instead of any_widget.get_default_direction(), we now must do Gtk.Widget.get_default_direction(). [endlessm/eos-sdk#3265]
Diffstat (limited to 'overrides/endless_private')
-rw-r--r--overrides/endless_private/topbar_nav_button.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/overrides/endless_private/topbar_nav_button.js b/overrides/endless_private/topbar_nav_button.js
index 9f8f952..e49eb4b 100644
--- a/overrides/endless_private/topbar_nav_button.js
+++ b/overrides/endless_private/topbar_nav_button.js
@@ -25,7 +25,7 @@ const TopbarNavButton = new Lang.Class({
let back_button_image;
let forward_button_image;
- let is_rtl = this.get_default_direction() === Gtk.TextDirection.RTL ? true : false;
+ let is_rtl = (Gtk.Widget.get_default_direction() === Gtk.TextDirection.RTL);
if (is_rtl) {
back_button_image = 'topbar-go-previous-rtl-symbolic';
forward_button_image = 'topbar-go-next-rtl-symbolic';