forked from sergiotarxz/mangareader
Fixing margin being applied everywhere.
This commit is contained in:
parent
d26899770c
commit
afd6e52135
@ -138,7 +138,7 @@ set_image_zoomable_picture_container (ChapterVisorData *chapter_visor_data) {
|
|||||||
strlen (url_image_not_owned));
|
strlen (url_image_not_owned));
|
||||||
|
|
||||||
current_picture = create_picture_from_url
|
current_picture = create_picture_from_url
|
||||||
(url_image, -1);
|
(url_image, 0);
|
||||||
chapter_visor_data->current_picture = current_picture;
|
chapter_visor_data->current_picture = current_picture;
|
||||||
g_signal_connect (G_OBJECT (current_picture), "map",
|
g_signal_connect (G_OBJECT (current_picture), "map",
|
||||||
G_CALLBACK (image_page_show), views_leaflet);
|
G_CALLBACK (image_page_show), views_leaflet);
|
||||||
|
@ -56,6 +56,7 @@ 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);
|
||||||
|
|
||||||
gtk_box_append (box, picture);
|
gtk_box_append (box, picture);
|
||||||
gtk_box_append (box, label);
|
gtk_box_append (box, label);
|
||||||
|
@ -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)));
|
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), "height-request", picture_size);
|
||||||
g_object_set_property_int (G_OBJECT(picture), "width-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:
|
cleanup_create_picture_from_url:
|
||||||
g_free (downloaded_image);
|
g_free (downloaded_image);
|
||||||
|
Loading…
Reference in New Issue
Block a user