[gnome-sound-recorder/wip/christopherdavis/use-no-shadow-for-scrolledwindow] mainWindow: Remove shadow from ScrolledWindow



commit 8fc494d3b1894cae6c7f2bea798b29417d7cb81f
Author: Christopher Davis <brainblasted disroot org>
Date:   Thu Jan 17 09:44:01 2019 -0500

    mainWindow: Remove shadow from ScrolledWindow
    
    Our ScrolledWindow was using Gtk.ShadowType.In, causing a nasty border effect on the window. By 
defaulting to ShadowType.None we get rid of this border.

 src/mainWindow.js | 3 +--
 1 file changed, 1 insertion(+), 2 deletions(-)
---
diff --git a/src/mainWindow.js b/src/mainWindow.js
index 3ac5cc2..8a69bed 100644
--- a/src/mainWindow.js
+++ b/src/mainWindow.js
@@ -341,8 +341,7 @@ var MainView = new Lang.Class({
     },
 
     scrolledWinAdd: function() {
-        this._scrolledWin = new Gtk.ScrolledWindow({ shadow_type: Gtk.ShadowType.IN,
-                                                     vexpand: true });
+        this._scrolledWin = new Gtk.ScrolledWindow({ vexpand: true });
         this._scrolledWin.set_policy(Gtk.PolicyType.NEVER, Gtk.PolicyType.AUTOMATIC);
         this.scrollbar = this._scrolledWin.get_vadjustment();
 


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