[gthumb/ext] [image_viewer] disable save function if no saver is available



commit 7877dcc29b99aef0d9d54157c99e9ba596b79681
Author: Paolo Bacchilega <paobac src gnome org>
Date:   Sun Nov 29 13:31:04 2009 +0100

    [image_viewer] disable save function if no saver is available
    
    [bug #598281]

 extensions/image_viewer/gth-image-viewer-page.c |    5 ++++-
 1 files changed, 4 insertions(+), 1 deletions(-)
---
diff --git a/extensions/image_viewer/gth-image-viewer-page.c b/extensions/image_viewer/gth-image-viewer-page.c
index 46259b7..4aa3f4e 100644
--- a/extensions/image_viewer/gth-image-viewer-page.c
+++ b/extensions/image_viewer/gth-image-viewer-page.c
@@ -782,7 +782,10 @@ _gth_image_viewer_page_real_save (GthViewerPage *base,
 static gboolean
 gth_image_viewer_page_real_can_save (GthViewerPage *base)
 {
-	return TRUE;
+	GArray *savers;
+
+	savers = gth_main_get_type_set ("pixbuf-saver");
+	return (savers != NULL) && (savers->len > 0);
 }
 
 



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