[gnome-shell] dateMenu: Remove an unnecessary change for RTL layouts



commit 7173ec1df7d6232f908bb2c4bb5cee370458b1b1
Author: Jonas Dreßler <verdre v0yd nl>
Date:   Thu Feb 20 20:11:16 2020 +0100

    dateMenu: Remove an unnecessary change for RTL layouts
    
    Calculating 1 - 0.5 is rather useless if the value was 0.5 before...
    
    https://gitlab.gnome.org/GNOME/gnome-shell/merge_requests/1037

 js/ui/dateMenu.js | 5 +----
 1 file changed, 1 insertion(+), 4 deletions(-)
---
diff --git a/js/ui/dateMenu.js b/js/ui/dateMenu.js
index a517df4346..9d1de44b15 100644
--- a/js/ui/dateMenu.js
+++ b/js/ui/dateMenu.js
@@ -548,10 +548,7 @@ class DateMenuButton extends PanelMenu.Button {
         let hbox;
         let vbox;
 
-        let menuAlignment = 0.5;
-        if (Clutter.get_default_text_direction() == Clutter.TextDirection.RTL)
-            menuAlignment = 1.0 - menuAlignment;
-        super._init(menuAlignment);
+        super._init(0.5);
 
         this._clockDisplay = new St.Label({ style_class: 'clock' });
         this._clockDisplay.clutter_text.y_align = Clutter.ActorAlign.CENTER;


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