[gnome-shell] screenShield: Never show a horizontal scrollbar on the lock screen



commit 34db64234ff627c5127aa6f64b58d29d67d239cb
Author: Jasper St. Pierre <jstpierre mecheye net>
Date:   Thu Jul 18 17:20:10 2013 -0400

    screenShield: Never show a horizontal scrollbar on the lock screen
    
    It just looks awful.
    
    https://bugzilla.gnome.org/show_bug.cgi?id=704327

 js/ui/screenShield.js |    4 +++-
 1 files changed, 3 insertions(+), 1 deletions(-)
---
diff --git a/js/ui/screenShield.js b/js/ui/screenShield.js
index 8271aa0..151f70b 100644
--- a/js/ui/screenShield.js
+++ b/js/ui/screenShield.js
@@ -5,6 +5,7 @@ const Clutter = imports.gi.Clutter;
 const Gio = imports.gi.Gio;
 const GLib = imports.gi.GLib;
 const GnomeDesktop = imports.gi.GnomeDesktop;
+const Gtk = imports.gi.Gtk;
 const Lang = imports.lang;
 const Mainloop = imports.mainloop;
 const Meta = imports.gi.Meta;
@@ -104,7 +105,8 @@ const NotificationsBox = new Lang.Class({
         this._musicBin = new St.Bin({ style_class: 'screen-shield-notifications-box',
                                       visible: false });
 
-        let scrollView = new St.ScrollView({ x_fill: false, x_align: St.Align.START });
+        let scrollView = new St.ScrollView({ x_fill: false, x_align: St.Align.START,
+                                             hscrollbar_policy: Gtk.PolicyType.NEVER });
         this._notificationBox = new St.BoxLayout({ vertical: true,
                                                    style_class: 'screen-shield-notifications-box' });
         scrollView.add_actor(this._notificationBox);


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