[gnome-characters/bilelmoussaoui/gtk4: 10/76] category list: fix GtkImage api usage




commit 1a7aad0583d5e5ba4fbcc5824a3f26aa55a5a491
Author: Bilal Elmoussaoui <bil elmoussaoui gmail com>
Date:   Fri Nov 19 12:16:09 2021 +0100

    category list: fix GtkImage api usage

 src/categoryList.js | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)
---
diff --git a/src/categoryList.js b/src/categoryList.js
index 4e5a7a2..55b0710 100644
--- a/src/categoryList.js
+++ b/src/categoryList.js
@@ -148,7 +148,8 @@ const CategoryListRowWidget = GObject.registerClass({
         let hbox = new Gtk.Box({ orientation: Gtk.Orientation.HORIZONTAL });
         this.set_child(hbox);
 
-        let image = Gtk.Image.new_from_icon_name(category.icon_name, Gtk.IconSize.LARGE_TOOLBAR);
+        let image = Gtk.Image.new_from_icon_name(category.icon_name);
+        image.set_icon_size(Gtk.IconSize.LARGE_TOOLBAR);
         image.get_style_context().add_class('category-icon');
         hbox.append(image);
 


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]