From afe558e676966826f7dc44b3b9efda076ac46cf7 Mon Sep 17 00:00:00 2001 From: sergiotarxz Date: Sun, 16 Jan 2022 04:09:04 +0100 Subject: [PATCH] Fixing bad image errors. --- src/view/list_view_manga.c | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/src/view/list_view_manga.c b/src/view/list_view_manga.c index 16807e5..ea8e5cc 100644 --- a/src/view/list_view_manga.c +++ b/src/view/list_view_manga.c @@ -58,10 +58,13 @@ setup_list_view_mangas (GtkSignalListItemFactory *factory, GtkWidget *label = gtk_label_new (manga_title); GtkWidget *picture = GTK_WIDGET ( create_picture_from_url (image_url, 100)); - g_object_set_property_int (G_OBJECT(picture), "margin-end", 5); - gtk_box_append (box, picture); + if (GTK_IS_WIDGET (picture)) { + g_object_set_property_int (G_OBJECT (picture), "margin-end", 5); + gtk_box_append (box, picture); + } gtk_box_append (box, label); + gtk_list_item_set_child (list_item, GTK_WIDGET (box)); g_free (manga_title); g_free (image_url);