[polari] mainWindow: Remove ::size-allocate hack
- From: Marge Bot <marge-bot src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [polari] mainWindow: Remove ::size-allocate hack
- Date: Fri, 3 Sep 2021 22:02:25 +0000 (UTC)
commit 90d23dd35c051cb1f2bc32ba7bc1436a43ab8549
Author: Florian Müllner <fmuellner gnome org>
Date: Fri Sep 25 19:55:30 2020 +0200
mainWindow: Remove ::size-allocate hack
The ::size-allocate signal no longer exists in GTK4. We'll use a
custom layout manager to achieve the same result once we've moved
to GTK4.
Part-of: <https://gitlab.gnome.org/GNOME/polari/-/merge_requests/232>
src/mainWindow.js | 9 ---------
1 file changed, 9 deletions(-)
---
diff --git a/src/mainWindow.js b/src/mainWindow.js
index 3762e9e4..687586de 100644
--- a/src/mainWindow.js
+++ b/src/mainWindow.js
@@ -158,15 +158,6 @@ export default GObject.registerClass({
this._commandOutputQueue, 'margin-bottom',
GObject.BindingFlags.SYNC_CREATE);
- // Make sure user-list button is at least as wide as icon buttons
- this._joinButton.connect('size-allocate', (w, rect) => {
- let { width } = rect;
- GLib.idle_add(GLib.PRIORITY_DEFAULT_IDLE, () => {
- this._showUserListButton.width_request = width;
- return GLib.SOURCE_REMOVE;
- });
- });
-
this._accountsMonitor = AccountsMonitor.getDefault();
this._accountsChangedId = this._accountsMonitor.connect(
'accounts-changed', this._onAccountsChanged.bind(this));
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]