[gnome-shell] messageTray: Make sure that the source actor is square



commit b4ee86955d2b4bc240edd1c2b90e5d96f3516cb7
Author: Adel Gadllah <adel gadllah gmail com>
Date:   Wed Feb 26 18:09:45 2014 +0100

    messageTray: Make sure that the source actor is square
    
    Commit b7e1539699ef removed the size to support hidpi but that caused the
    actor to no longer be square. Fix that by going back to setting a size
    but apply the scale factor before doing so.

 js/ui/messageTray.js |    4 +++-
 1 files changed, 3 insertions(+), 1 deletions(-)
---
diff --git a/js/ui/messageTray.js b/js/ui/messageTray.js
index 1e54297..6cdc64c 100644
--- a/js/ui/messageTray.js
+++ b/js/ui/messageTray.js
@@ -1162,8 +1162,10 @@ const SourceActor = new Lang.Class({
         }));
         this._actorDestroyed = false;
 
+        let scale_factor = St.ThemeContext.get_for_stage(global.stage).scale_factor;
         this._iconBin = new St.Bin({ x_fill: true,
-                                     y_fill: true });
+                                     height: size * scale_factor,
+                                     width: size * scale_factor });
 
         this.actor.add_actor(this._iconBin);
 


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