Fixing bad image errors.

This commit is contained in:
sergiotarxz 2022-01-16 04:09:04 +01:00
parent 749d9e01ca
commit afe558e676

View File

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