Fixing margin being applied everywhere.

This commit is contained in:
sergiotarxz 2021-11-22 22:31:05 +01:00
parent d26899770c
commit afd6e52135
3 changed files with 2 additions and 2 deletions

View File

@ -138,7 +138,7 @@ set_image_zoomable_picture_container (ChapterVisorData *chapter_visor_data) {
strlen (url_image_not_owned));
current_picture = create_picture_from_url
(url_image, -1);
(url_image, 0);
chapter_visor_data->current_picture = current_picture;
g_signal_connect (G_OBJECT (current_picture), "map",
G_CALLBACK (image_page_show), views_leaflet);

View File

@ -56,6 +56,7 @@ 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);
gtk_box_append (box, label);

View File

@ -42,7 +42,6 @@ create_picture_from_url (const char *const url, gint picture_size) {
picture = GTK_PICTURE (gtk_picture_new_for_paintable (GDK_PAINTABLE (texture)));
g_object_set_property_int (G_OBJECT(picture), "height-request", picture_size);
g_object_set_property_int (G_OBJECT(picture), "width-request", picture_size);
g_object_set_property_int (G_OBJECT(picture), "margin-end", 5);
cleanup_create_picture_from_url:
g_free (downloaded_image);