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);