[gnome-shell] environment: Get text direction from GTK+-3



commit 4517f60630a58bd9c1b7a9f8048a4f70fa150769
Author: Florian Müllner <fmuellner gnome org>
Date:   Mon Nov 29 21:47:54 2010 +0100

    environment: Get text direction from GTK+-3
    
    Despite of switching to GTK+-3 unconditionally, the default text
    direction was still taken from GTK+-2.

 js/ui/environment.js |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)
---
diff --git a/js/ui/environment.js b/js/ui/environment.js
index 82ecea1..0ab354c 100644
--- a/js/ui/environment.js
+++ b/js/ui/environment.js
@@ -4,7 +4,7 @@ const Clutter = imports.gi.Clutter;;
 const GLib = imports.gi.GLib;
 const Shell = imports.gi.Shell;
 const St = imports.gi.St;
-const Gettext_gtk20 = imports.gettext.domain('gtk20');
+const Gettext_gtk30 = imports.gettext.domain('gtk30');
 
 const Tweener = imports.ui.tweener;
 
@@ -65,7 +65,7 @@ function init() {
     String.prototype.format = Format.format;
 
     // Set the default direction for St widgets (this needs to be done before any use of St)
-    if (Gettext_gtk20.gettext('default:LTR') == 'default:RTL') {
+    if (Gettext_gtk30.gettext('default:LTR') == 'default:RTL') {
         St.Widget.set_default_direction(St.TextDirection.RTL);
     }
 



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