[gthumb] added code to optionally force the original image loading
- From: Paolo Bacchilega <paobac src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gthumb] added code to optionally force the original image loading
- Date: Mon, 8 Dec 2014 23:19:28 +0000 (UTC)
commit 037634ff68f9917c77c6166bd21bb1dc57c4014a
Author: Paolo Bacchilega <paobac src gnome org>
Date: Mon Dec 8 19:50:30 2014 +0100
added code to optionally force the original image loading
for debugging purpose
extensions/image_viewer/gth-image-viewer-page.c | 7 +++++++
1 files changed, 7 insertions(+), 0 deletions(-)
---
diff --git a/extensions/image_viewer/gth-image-viewer-page.c b/extensions/image_viewer/gth-image-viewer-page.c
index e3509cb..cf08719 100644
--- a/extensions/image_viewer/gth-image-viewer-page.c
+++ b/extensions/image_viewer/gth-image-viewer-page.c
@@ -33,6 +33,7 @@
#define N_HEADER_BAR_BUTTONS 3
#define HIDE_OVERVIEW_TIMEOUT 2 /* in seconds */
#define OVERLAY_MARGIN 10
+#undef ALWAYS_LOAD_ORIGINAL_SIZE
static void gth_viewer_page_interface_init (GthViewerPageInterface *iface);
@@ -324,6 +325,7 @@ update_quality_cb (gpointer user_data)
static void
update_image_quality_if_required (GthImageViewerPage *self)
{
+#ifndef ALWAYS_LOAD_ORIGINAL_SIZE
GthImage *image;
if (self->priv->loading_image || gth_sidebar_tool_is_active (GTH_SIDEBAR
(gth_browser_get_viewer_sidebar (self->priv->browser))))
@@ -341,6 +343,7 @@ update_image_quality_if_required (GthImageViewerPage *self)
self->priv->update_quality_id = g_timeout_add (UPDATE_QUALITY_DELAY,
update_quality_cb,
self);
+#endif
}
@@ -1133,7 +1136,11 @@ gth_image_viewer_page_real_view (GthViewerPage *base,
gth_image_preloader_load (self->priv->preloader,
self->priv->file_data,
+#ifdef ALWAYS_LOAD_ORIGINAL_SIZE
+ GTH_ORIGINAL_SIZE,
+#else
_gth_image_preloader_get_requested_size_for_next_images (self),
+#endif
NULL,
preloader_load_ready_cb,
self,
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]