File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -6,6 +6,8 @@ import Gio from 'gi://Gio';
66import GLib from 'gi://GLib' ;
77import Shell from 'gi://Shell' ;
88import Meta from 'gi://Meta' ;
9+ import Clutter from 'gi://Clutter' ;
10+
911
1012import * as PopupMenu from 'resource:///org/gnome/shell/ui/popupMenu.js' ;
1113import * as PanelMenu from 'resource:///org/gnome/shell/ui/panelMenu.js' ;
@@ -294,7 +296,10 @@ class AwsIndicator extends PanelMenu.Button {
294296 style_class : 'session-menu-section' ,
295297 overlay_scrollbars : true
296298 } ) ;
297- scrollView . add_child ( this . _sessionsMenuSection . actor ) ;
299+
300+ // Clutter.Container was removed from Gnome 46, see:
301+ // https://gjs.guide/extensions/upgrading/gnome-shell-46.html
302+ scrollView [ Clutter . Container ? 'add_actor' : 'set_child' ] ( this . _sessionsMenuSection . actor ) ;
298303 this . _scrollableSessionsMenuSection . actor . add_child ( scrollView ) ;
299304
300305 this . menu . addMenuItem ( this . _scrollableSessionsMenuSection ) ;
You can’t perform that action at this time.
0 commit comments