[gthumb] call gth_image_viewer_page_file_loaded if image is NULL



commit b1913758a5916c4b8019f4d0b0d994d02160c888
Author: Paolo Bacchilega <paobac src gnome org>
Date:   Fri Jan 27 15:45:41 2012 +0100

    call gth_image_viewer_page_file_loaded if image is NULL
    
    in order to give feedback to the GthBrowser object that the file
    was not loaded successfully.

 extensions/image_viewer/gth-image-viewer-page.c |    4 +---
 1 files changed, 1 insertions(+), 3 deletions(-)
---
diff --git a/extensions/image_viewer/gth-image-viewer-page.c b/extensions/image_viewer/gth-image-viewer-page.c
index 27e5b0c..028bc13 100644
--- a/extensions/image_viewer/gth-image-viewer-page.c
+++ b/extensions/image_viewer/gth-image-viewer-page.c
@@ -389,12 +389,10 @@ image_preloader_requested_ready_cb (GthImagePreloader  *preloader,
 				    GError             *error,
 				    GthImageViewerPage *self)
 {
-	if (image == NULL)
-		return;
 	if (! _g_file_equal (requested->file, self->priv->file_data->file))
 		return;
 
-	if (error != NULL) {
+	if ((error != NULL) || (image == NULL)) {
 		gth_image_viewer_page_file_loaded (self, FALSE);
 		return;
 	}



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]