From 59cd51cb46ba43f71b98066bf068612a15955d12 Mon Sep 17 00:00:00 2001 From: Nicolas VIVIEN Date: Mon, 13 Apr 2020 12:34:14 +0200 Subject: [PATCH] Fix with gnome-sell 3.36.1 --- extension.js | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/extension.js b/extension.js index 63a5434..69049ba 100644 --- a/extension.js +++ b/extension.js @@ -1615,7 +1615,7 @@ class GnoMenu_PanelMenuButton extends PanelMenu.Button { let app = apps[0]; let appGridButton = new AppGridButton(app, appType, true); let gridLayout = this.applicationsGridBox.layout_manager; - gridLayout.pack(appGridButton.actor, 0, 0); + gridLayout.attach(appGridButton.actor, 0, 0, 1, 1); if (appGridButton.actor.get_stage()) { let themeNode = appGridButton.actor.get_theme_node(); buttonMargin = { @@ -1798,7 +1798,7 @@ class GnoMenu_PanelMenuButton extends PanelMenu.Button { this.menu.close(); }); let gridLayout = this.applicationsGridBox.layout_manager; - gridLayout.pack(appGridButton.actor, column, rownum); + gridLayout.attach(appGridButton.actor, column, rownum, 1, 1); column ++; if (column > this._appGridColumns-1) { column = 0; @@ -1882,7 +1882,7 @@ class GnoMenu_PanelMenuButton extends PanelMenu.Button { this.menu.close(); }); let gridLayout = this.applicationsGridBox.layout_manager; - gridLayout.pack(appGridButton.actor, column, rownum); + gridLayout.attach(appGridButton.actor, column, rownum, 1, 1); column ++; if (column > this._appGridColumns-1) { column = 0; @@ -1959,7 +1959,7 @@ class GnoMenu_PanelMenuButton extends PanelMenu.Button { this.menu.close(); }); let gridLayout = this.applicationsGridBox.layout_manager; - gridLayout.pack(appGridButton.actor, column, rownum); + gridLayout.attach(appGridButton.actor, column, rownum, 1, 1); column ++; if (column > this._appGridColumns-1) { column = 0; @@ -3314,7 +3314,7 @@ class GnoMenu_PanelMenuButton extends PanelMenu.Button { }); this.applicationsListBox = new St.BoxLayout({ style_class: 'gnomenu-applications-list-box', vertical:true, x_expand:true}); - this.applicationsGridBox = new St.Widget({ layout_manager: new Clutter.TableLayout(), reactive:true, style_class: 'gnomenu-applications-grid-box'}); + this.applicationsGridBox = new St.Widget({ layout_manager: new Clutter.GridLayout(), reactive:true, style_class: 'gnomenu-applications-grid-box'}); this.applicationsBoxWrapper = new St.BoxLayout({ style_class: 'gnomenu-applications-box-wrapper' }); this.applicationsBoxWrapper.add(this.applicationsGridBox, {x_fill:false, y_fill: false, x_align: St.Align.START, y_align: St.Align.START}); this.applicationsBoxWrapper.add(this.applicationsListBox, {x_fill:false, y_fill: false, x_align: St.Align.START, y_align: St.Align.START}); @@ -3445,7 +3445,7 @@ var GnoMenuButton = class GnoMenu_GnoMenuPanelButton { this._themeChangedId = St.ThemeContext.get_for_stage(global.stage).connect('changed', this._onStyleChanged.bind(this)); // Connect gtk icontheme for when icons change - this._iconsChangedId = IconTheme.get_default().connect('changed', this._onIconsChanged.bind(this)); + this._iconsChangedId = null; //IconTheme.get_default().connect('changed', this._onIconsChanged.bind(this)); // Connect to AppSys for when new application installed this._installedChangedId = Shell.AppSystem.get_default().connect('installed-changed', this._onAppInstalledChanged.bind(this));