From e1a75d4bd1ff18f7bdaa5705a7ae3406439d0def Mon Sep 17 00:00:00 2001 From: Sakith B Date: Sun, 29 Aug 2021 17:43:02 +0530 Subject: [PATCH] Fix attempt #2 --- prefs.js | 18 ++++++++++-------- 1 file changed, 10 insertions(+), 8 deletions(-) diff --git a/prefs.js b/prefs.js index 7a2f9cc..3cfa7d4 100644 --- a/prefs.js +++ b/prefs.js @@ -41,9 +41,6 @@ function init() {} function buildPrefsWidget() { let settings = ExtensionUtils.getSettings(); - let scrolledWindow = new Gtk.ScrolledWindow({ - max_content_height: 600, - }); let widgetPrefs; if (shellVersion < 40) { widgetPrefs = new Gtk.Grid({ @@ -490,10 +487,15 @@ function buildPrefsWidget() { playbackActions[widget.get_active()] ); }); - if (shellVersion < 40) { - scrolledWindow.add(widgetPrefs); - } else { - scrolledWindow.set_child(widgetPrefs); - } + // if (shellVersion < 40) { + // } else { + // scrolledWindow.set_child(widgetPrefs); + // } + + let scrolledWindow = new Gtk.ScrolledWindow({ + max_content_height: 600, + child: widgetPrefs, + }); + return scrolledWindow; }