[gnome-shell-extensions/wip/fmuellner/gtk4: 7/11] auto-move-windows: Stop using header func for separators
- From: Marge Bot <marge-bot src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-shell-extensions/wip/fmuellner/gtk4: 7/11] auto-move-windows: Stop using header func for separators
- Date: Thu, 14 Jan 2021 13:55:06 +0000 (UTC)
commit d5c31273ee50bb3436a471cca26f7b0cc71e9b5b
Author: Florian Müllner <fmuellner gnome org>
Date: Wed Apr 15 23:32:20 2020 +0200
auto-move-windows: Stop using header func for separators
GTK4 added built-in support for this common pattern, so use that
instead.
Part-of: <https://gitlab.gnome.org/GNOME/gnome-shell-extensions/-/merge_requests/148>
extensions/auto-move-windows/prefs.js | 8 +-------
1 file changed, 1 insertion(+), 7 deletions(-)
---
diff --git a/extensions/auto-move-windows/prefs.js b/extensions/auto-move-windows/prefs.js
index 5db6c85..3b7e133 100644
--- a/extensions/auto-move-windows/prefs.js
+++ b/extensions/auto-move-windows/prefs.js
@@ -40,8 +40,8 @@ class AutoMoveSettingsWidget extends Gtk.ScrolledWindow {
this._list = new Gtk.ListBox({
selection_mode: Gtk.SelectionMode.NONE,
valign: Gtk.Align.START,
+ show_separators: true,
});
- this._list.set_header_func(this._updateHeader.bind(this));
box.append(this._list);
const context = this._list.get_style_context();
@@ -143,12 +143,6 @@ class AutoMoveSettingsWidget extends Gtk.ScrolledWindow {
this._settings.unblock_signal_handler(this._changedId);
this._updateAction.enabled = true;
}
-
- _updateHeader(row, before) {
- if (!before || row.get_header())
- return;
- row.set_header(new Gtk.Separator());
- }
});
const RuleRow = GObject.registerClass({
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]