[gthumb/ext] Fixed "save as" command sensitivity logic



commit 2720cd1aba405a8ac0b8243261a606c6cc7fe023
Author: Paolo Bacchilega <paobac src gnome org>
Date:   Sat Sep 19 20:13:03 2009 +0200

    Fixed "save as" command sensitivity logic
    
    Allow to use the "save as" command even if the image was not
    modified

 extensions/file_tools/gth-file-tool-save-as.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/extensions/file_tools/gth-file-tool-save-as.c b/extensions/file_tools/gth-file-tool-save-as.c
index 07ab5ba..7413a8c 100644
--- a/extensions/file_tools/gth-file-tool-save-as.c
+++ b/extensions/file_tools/gth-file-tool-save-as.c
@@ -31,7 +31,7 @@ gth_file_tool_save_as_update_sensitivity (GthFileTool *base)
 	GtkWidget *window;
 
 	window = gth_file_tool_get_window (base);
-	gtk_widget_set_sensitive (GTK_WIDGET (base), gth_browser_get_file_modified (GTH_BROWSER (window)));
+	gtk_widget_set_sensitive (GTK_WIDGET (base), gth_browser_get_current_file (GTH_BROWSER (window)) != NULL);
 }
 
 



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