[file-roller: 59/123] progress dialog: show the current action when converting an archive



commit f3719fb40536151e94fb21e7d7c481d9163476d9
Author: Paolo Bacchilega <paobac src gnome org>
Date:   Sun Jul 22 22:03:43 2012 +0200

    progress dialog: show the current action when converting an archive
    
    instead of showing the remaining files of an unspecified action

 src/fr-window.c |    8 ++++++--
 1 files changed, 6 insertions(+), 2 deletions(-)
---
diff --git a/src/fr-window.c b/src/fr-window.c
index 39549fb..d401a53 100644
--- a/src/fr-window.c
+++ b/src/fr-window.c
@@ -1057,7 +1057,7 @@ fr_window_pop_message (FrWindow *window)
 
 	gtk_statusbar_pop (GTK_STATUSBAR (window->priv->statusbar), window->priv->progress_cid);
 	if (window->priv->progress_dialog != NULL)
-		gtk_widget_hide (window->priv->pd_message);
+		gtk_label_set_text (GTK_LABEL (window->priv->pd_message), _("Operation completed"));
 }
 
 
@@ -2698,7 +2698,10 @@ fr_archive_progress_cb (FrArchive *archive,
 			remaining_files = archive->n_files - archive->n_file + 1;
 
 			switch (window->priv->action) {
-			case FR_ACTION_CREATING_ARCHIVE:
+			/* case FR_ACTION_CREATING_ARCHIVE:
+			case FR_ACTION_RENAMING_FILES:
+			case FR_ACTION_PASTING_FILES:
+			case FR_ACTION_UPDATING_FILES: FIXME */
 			case FR_ACTION_ADDING_FILES:
 			case FR_ACTION_EXTRACTING_FILES:
 			case FR_ACTION_DELETING_FILES:
@@ -7586,6 +7589,7 @@ fr_window_archive_save_as (FrWindow   *window,
 	window->priv->convert_data.converting = TRUE;
 	window->priv->convert_data.temp_dir = _g_path_get_temp_work_dir (NULL);
 
+	fr_archive_action_started (window->archive, FR_ACTION_EXTRACTING_FILES);
 	fr_archive_extract_to_local (window->archive,
 				     NULL,
 				     window->priv->convert_data.temp_dir,



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