[gthumb/ext] reset the image viewer if the image could not be loaded



commit 618c31121dfc2e24fdca6fe9f476f9e4c2360519
Author: Paolo Bacchilega <paobac src gnome org>
Date:   Sun Dec 20 11:47:23 2009 +0100

    reset the image viewer if the image could not be loaded

 extensions/image_viewer/gth-image-viewer-page.c |   11 +----------
 1 files changed, 1 insertions(+), 10 deletions(-)
---
diff --git a/extensions/image_viewer/gth-image-viewer-page.c b/extensions/image_viewer/gth-image-viewer-page.c
index 9c45c9d..f25d977 100644
--- a/extensions/image_viewer/gth-image-viewer-page.c
+++ b/extensions/image_viewer/gth-image-viewer-page.c
@@ -266,16 +266,7 @@ image_preloader_requested_ready_cb (GthImagePreloader  *preloader,
 	GthImageLoader *image_loader;
 
 	if (error != NULL) {
-		/*
-		char *msg;
-
-		msg = g_strdup_printf (_("Could not view the file \"%s\""), g_file_info_get_display_name (self->priv->file_data->info));
-		_gtk_error_dialog_from_gerror_show (GTK_WINDOW (self->priv->browser), msg, &error);
-
-		g_free (msg);
-		return;
-		*/
-		g_clear_error (&error);
+		gth_image_viewer_set_void (GTH_IMAGE_VIEWER (self->priv->viewer));
 		return;
 	}
 



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