Author: post
Date: 2010-05-06 23:22:00 +0200 (Thu, 06 May 2010)
New Revision: 3369
Modified:
trunk/src/rs-batch.c
trunk/src/rs-save-dialog.c
Log:
Set "exported" flag when using batch export and "Save As".
Modified: trunk/src/rs-batch.c
===================================================================
--- trunk/src/rs-batch.c 2010-05-06 20:53:28 UTC (rev 3368)
+++ trunk/src/rs-batch.c 2010-05-06 21:22:00 UTC (rev 3369)
@@ -33,6 +33,7 @@
#include "rs-cache.h"
#include "rs-photo.h"
#include "rs-actions.h"
+#include "rs-store.h"
extern GtkWindow *rawstudio_window;
@@ -636,8 +637,11 @@
g_assert(RS_IS_OUTPUT(queue->output));
g_assert(RS_IS_FILTER(fend));
- rs_output_execute(queue->output, fend);
+ gboolean exported = rs_output_execute(queue->output,
fend);
+ if (exported)
+ rs_store_set_flags(NULL, photo->filename, NULL,
NULL, &exported);
+
g_free(parsed_filename);
g_string_free(filename, TRUE);
g_object_unref(photo);
Modified: trunk/src/rs-save-dialog.c
===================================================================
--- trunk/src/rs-save-dialog.c 2010-05-06 20:53:28 UTC (rev 3368)
+++ trunk/src/rs-save-dialog.c 2010-05-06 21:22:00 UTC (rev 3369)
@@ -25,6 +25,7 @@
#include "rs-save-dialog.h"
#include "rs-photo.h"
#include "conf_interface.h"
+#include "rs-store.h"
G_DEFINE_TYPE (RSSaveDialog, rs_save_dialog, GTK_TYPE_WINDOW)
@@ -349,10 +350,18 @@
rs_job_update_progress(slot, 0.15);
if (g_object_class_find_property(G_OBJECT_GET_CLASS(dialog->output),
"filename"))
g_object_set(dialog->output, "filename", filename, NULL);
- if(!rs_output_execute(dialog->output, dialog->fend))
+
+ gboolean exported = rs_output_execute(dialog->output, dialog->fend);
+
+ if(!exported)
show_save_error(_("Could not save file: %s\n\nCheck that you
have write permissions to this folder."),filename);
+
rs_job_update_progress(slot, 0.75);
+ /* Set the exported flag */
+ if (exported)
+ rs_store_set_flags(NULL, dialog->photo->filename, NULL, NULL,
&exported);
+
gdk_threads_enter();
gtk_widget_destroy(GTK_WIDGET(dialog));
gdk_threads_leave();
_______________________________________________
Rawstudio-commit mailing list
[email protected]
http://rawstudio.org/cgi-bin/mailman/listinfo/rawstudio-commit