[gnome-shell/wip/fmuellner/gtk4: 12/16] dbusServices/extensions: Stop using GtkContainer API




commit 327d363322ec08c6c3a057a46dc96f81125681d3
Author: Florian Müllner <fmuellner gnome org>
Date:   Wed Apr 15 20:27:15 2020 +0200

    dbusServices/extensions: Stop using GtkContainer API
    
    The interface has been removed in GTK4, so use widget-specific API
    for adding children where possible.
    
    https://gitlab.gnome.org/GNOME/gnome-shell/-/merge_requests/1495

 js/dbusServices/extensions/extensionsService.js | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
---
diff --git a/js/dbusServices/extensions/extensionsService.js b/js/dbusServices/extensions/extensionsService.js
index cc40a56d7e..456ca6ba79 100644
--- a/js/dbusServices/extensions/extensionsService.js
+++ b/js/dbusServices/extensions/extensionsService.js
@@ -204,7 +204,7 @@ var ExtensionPrefsDialog = GObject.registerClass({
             prefsModule.init(extension.metadata);
 
             const widget = prefsModule.buildPrefsWidget();
-            this._stack.add(widget);
+            this._stack.add_named(widget, 'prefs');
             this._stack.visible_child = widget;
         } catch (e) {
             this._setError(e);


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