forked from sergiotarxz/mangareader
Fixing bad image errors.
This commit is contained in:
parent
749d9e01ca
commit
afe558e676
@ -58,10 +58,13 @@ setup_list_view_mangas (GtkSignalListItemFactory *factory,
|
|||||||
GtkWidget *label = gtk_label_new (manga_title);
|
GtkWidget *label = gtk_label_new (manga_title);
|
||||||
GtkWidget *picture = GTK_WIDGET (
|
GtkWidget *picture = GTK_WIDGET (
|
||||||
create_picture_from_url (image_url, 100));
|
create_picture_from_url (image_url, 100));
|
||||||
g_object_set_property_int (G_OBJECT(picture), "margin-end", 5);
|
|
||||||
|
|
||||||
|
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, picture);
|
||||||
|
}
|
||||||
gtk_box_append (box, label);
|
gtk_box_append (box, label);
|
||||||
|
|
||||||
gtk_list_item_set_child (list_item, GTK_WIDGET (box));
|
gtk_list_item_set_child (list_item, GTK_WIDGET (box));
|
||||||
g_free (manga_title);
|
g_free (manga_title);
|
||||||
g_free (image_url);
|
g_free (image_url);
|
||||||
|
Loading…
Reference in New Issue
Block a user