[file-roller] Introduce button to skip all existing files when extracting.
- From: Paolo Bacchilega <paobac src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [file-roller] Introduce button to skip all existing files when extracting.
- Date: Thu, 1 Nov 2018 09:55:04 +0000 (UTC)
commit 92b926b15f46a7726c545cf707bd66e8e01940a9
Author: J08nY <johny neuromancer sk>
Date: Sun Oct 7 20:38:47 2018 +0200
Introduce button to skip all existing files when extracting.
src/fr-window.c | 7 ++++++-
1 file changed, 6 insertions(+), 1 deletion(-)
---
diff --git a/src/fr-window.c b/src/fr-window.c
index 2b737e38..384c7291 100644
--- a/src/fr-window.c
+++ b/src/fr-window.c
@@ -6514,6 +6514,7 @@ typedef struct {
#define _FR_RESPONSE_OVERWRITE_YES_ALL 100
#define _FR_RESPONSE_OVERWRITE_YES 101
#define _FR_RESPONSE_OVERWRITE_NO 102
+#define _FR_RESPONSE_OVERWRITE_NO_ALL 103
static void
@@ -6693,6 +6694,9 @@ overwrite_dialog_response_cb (GtkDialog *dialog,
odata->current_file = odata->current_file->next;
break;
+ case _FR_RESPONSE_OVERWRITE_NO_ALL:
+ odata->edata->overwrite = FR_OVERWRITE_NO;
+ /* fall-through */
case _FR_RESPONSE_OVERWRITE_NO:
overwrite_data_skip_current (odata);
break;
@@ -6754,6 +6758,7 @@ query_info_ready_for_overwrite_dialog_cb (GObject *source_object,
details,
_GTK_LABEL_CANCEL, GTK_RESPONSE_CANCEL,
_("Replace _All"), _FR_RESPONSE_OVERWRITE_YES_ALL,
+ _("Skip _All _Existing"), _FR_RESPONSE_OVERWRITE_NO_ALL,
_("_Skip"), _FR_RESPONSE_OVERWRITE_NO,
_("_Replace"), _FR_RESPONSE_OVERWRITE_YES,
NULL);
@@ -6822,7 +6827,7 @@ _fr_window_ask_overwrite_dialog (OverwriteData *odata)
_g_string_list_free (odata->edata->file_list);
odata->edata->file_list = NULL;
}
- odata->edata->overwrite = FR_OVERWRITE_YES;
+
_fr_window_archive_extract_from_edata (odata->window, odata->edata);
}
else {
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]