From 92b2ce4978db0a94c9c9b33816abe9318e110a1e Mon Sep 17 00:00:00 2001 From: Sakith B Date: Tue, 14 Sep 2021 18:20:08 +0530 Subject: [PATCH] Added icon size options for GTK3 --- prefs.js | 13 +++++++++---- 1 file changed, 9 insertions(+), 4 deletions(-) diff --git a/prefs.js b/prefs.js index 3831a99..cc71076 100644 --- a/prefs.js +++ b/prefs.js @@ -445,16 +445,21 @@ const addToBacklistListBox = (app) => { halign: Gtk.Align.START, }); - let deleteButton = Gtk.Button.new_from_icon_name("edit-delete-symbolic", null); + let deleteButton = Gtk.Button.new_from_icon_name( + "edit-delete-symbolic", + Gtk.IconSize.BUTTON || Gtk.IconSize.NORMAL + ); + + deleteButton.visible = true; deleteButton.connect("clicked", (widget) => { widgetBacklistBox.remove(widget.get_parent().get_parent()); }); if (shellVersion < 40) { - box.pack_start(label, false, false, null); - box.pack_start(deleteButton, false, false, null); - widgetBacklistBox.insert_child(box, -1); + box.add(label); + box.add(deleteButton); + widgetBacklistBox.insert(box, -1); } else { box.append(label); box.append(deleteButton);