[gthumb] image viewer: update the image quality after setting the image
- From: Paolo Bacchilega <paobac src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gthumb] image viewer: update the image quality after setting the image
- Date: Sun, 8 Dec 2013 17:53:28 +0000 (UTC)
commit bfd1da0a06d04350d7f90b4e68aa9e0384fc44b7
Author: Paolo Bacchilega <paobac src gnome org>
Date: Sun Dec 8 18:50:54 2013 +0100
image viewer: update the image quality after setting the image
extensions/image_viewer/gth-image-viewer-page.c | 3 ++-
gthumb/gth-image-preloader.c | 4 ++++
2 files changed, 6 insertions(+), 1 deletions(-)
---
diff --git a/extensions/image_viewer/gth-image-viewer-page.c b/extensions/image_viewer/gth-image-viewer-page.c
index b709974..6f4a5c8 100644
--- a/extensions/image_viewer/gth-image-viewer-page.c
+++ b/extensions/image_viewer/gth-image-viewer-page.c
@@ -348,7 +348,7 @@ update_visibility_cb (gpointer user_data)
gboolean visible;
if (! self->priv->active)
- return;
+ return FALSE;
if (self->priv->update_visibility_id != 0) {
g_source_remove (self->priv->update_visibility_id);
@@ -1033,6 +1033,7 @@ preloader_load_ready_cb (GObject *source_object,
original_height);
gth_image_viewer_page_file_loaded (self, TRUE);
+ update_image_quality_if_required (self);
clear_data:
diff --git a/gthumb/gth-image-preloader.c b/gthumb/gth-image-preloader.c
index cfff212..24016a7 100644
--- a/gthumb/gth-image-preloader.c
+++ b/gthumb/gth-image-preloader.c
@@ -776,6 +776,10 @@ gth_image_preloader_load (GthImagePreloader *self,
LoadRequest *request;
va_list args;
+#ifdef DEBUG_PRELOADER
+ g_print ("request %s @%d\n", g_file_get_uri (requested->file), requested_size);
+#endif
+
request = load_request_new (self);
request->requested_size = requested_size;
request->files = g_list_prepend (request->files, gth_file_data_dup (requested));
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]