[gnome-shell-extensions/wip/fmuellner/gtk4: 19/19] 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: 19/19] auto-move-windows: Use Gtk.Button.icon_name property
- Date: Thu, 14 Jan 2021 13:41:20 +0000 (UTC)
commit bf7f5ca10f5371e3705a7d14086c980e95561d07
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]