[gnome-shell-extensions/wip/fmuellner/gtk4: 13/13] auto-move-windows: Use Gtk.Button.icon_name property
- From: Florian Müllner <fmuellner src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-shell-extensions/wip/fmuellner/gtk4: 13/13] auto-move-windows: Use Gtk.Button.icon_name property
- Date: Sun, 20 Dec 2020 07:21:41 +0000 (UTC)
commit fbe8e0b52d9c05f48753d0ae6c0c04f9757b1561
Author: Florian Müllner <fmuellner gnome org>
Date: Wed Apr 15 23:32:20 2020 +0200
auto-move-windows: Use Gtk.Button.icon_name property
Image buttons are a very common pattern, so GTK4 added some
convenience API we can use to construct them.
extensions/auto-move-windows/prefs.js | 5 +----
1 file changed, 1 insertion(+), 4 deletions(-)
---
diff --git a/extensions/auto-move-windows/prefs.js b/extensions/auto-move-windows/prefs.js
index 3b7e133..c550458 100644
--- a/extensions/auto-move-windows/prefs.js
+++ b/extensions/auto-move-windows/prefs.js
@@ -206,10 +206,7 @@ const RuleRow = GObject.registerClass({
const button = new Gtk.Button({
action_name: 'rules.remove',
action_target: new GLib.Variant('s', this.id),
- child: new Gtk.Image({
- icon_name: 'edit-delete-symbolic',
- pixel_size: 16,
- }),
+ icon_name: 'edit-delete-symbolic',
});
box.append(button);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]