[gthumb] edit metadata: update the file list only when the operation is completed



commit 3b869716263f4118b7a657109c6707de87209279
Author: Paolo Bacchilega <paobac src gnome org>
Date:   Sun Jul 17 16:32:16 2011 +0200

    edit metadata: update the file list only when the operation is completed

 extensions/edit_metadata/dlg-edit-metadata.c |    6 +++++-
 1 files changed, 5 insertions(+), 1 deletions(-)
---
diff --git a/extensions/edit_metadata/dlg-edit-metadata.c b/extensions/edit_metadata/dlg-edit-metadata.c
index 20be7cc..11d7c1c 100644
--- a/extensions/edit_metadata/dlg-edit-metadata.c
+++ b/extensions/edit_metadata/dlg-edit-metadata.c
@@ -53,8 +53,10 @@ save_file_data_task_completed_cb (GthTask  *task,
 	GthMonitor *monitor;
 	GList      *scan;
 
+	gth_monitor_resume (gth_main_get_default_monitor ());
+
 	if (error != NULL) {
-		_gtk_error_dialog_from_gerror_show (GTK_WINDOW (data->dialog), _("Could not save the file metadata"), &error);
+		_gtk_error_dialog_from_gerror_show (GTK_WINDOW (data->dialog), _("Could not save the file metadata"), error);
 		return;
 	}
 
@@ -90,6 +92,8 @@ edit_metadata_dialog__response_cb (GtkDialog *dialog,
 		return;
 	}
 
+	gth_monitor_pause (gth_main_get_default_monitor ());
+
 	gth_edit_metadata_dialog_update_info (GTH_EDIT_METADATA_DIALOG (data->dialog), data->file_list);
 
 	task = gth_save_file_data_task_new (data->file_list, "*");



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