59 lines
2.0 KiB
Diff
59 lines
2.0 KiB
Diff
Novell bug: https://bugzilla.novell.com/show_bug.cgi?id=187126
|
|
Upstream bug: http://bugzilla.gnome.org/show_bug.cgi?id=342043
|
|
Original bug: https://launchpad.net/distros/ubuntu/+source/file-roller/+bug/40899
|
|
|
|
2006-12-11 jacob berkman <jberkman@novell.com>
|
|
|
|
* src/window.h (FRWindow): add batch_extracting_all boolean
|
|
|
|
* src/window.c (window_fake_load): load if batch extracting
|
|
all and archive doesn't directly support extracting all
|
|
|
|
* src/window.c (window_new): initialise batch_extracting_all
|
|
|
|
* src/window.c (window_archive__open_extract): tell
|
|
window_fake_load that we are batch extracting all
|
|
|
|
Index: file-roller-2.18.0/src/window.h
|
|
===================================================================
|
|
--- file-roller-2.18.0.orig/src/window.h
|
|
+++ file-roller-2.18.0/src/window.h
|
|
@@ -201,6 +201,7 @@ typedef struct {
|
|
* operation. */
|
|
|
|
gboolean batch_adding_one_file;
|
|
+ gboolean batch_extracting_all;
|
|
|
|
/* progress dialog data */
|
|
|
|
Index: file-roller-2.18.0/src/window.c
|
|
===================================================================
|
|
--- file-roller-2.18.0.orig/src/window.c
|
|
+++ file-roller-2.18.0/src/window.c
|
|
@@ -3309,7 +3309,8 @@ window_fake_load (FRArchive *archive,
|
|
return (window->batch_mode
|
|
&& ! (window->add_after_opening && window->update_dropped_files && ! archive->command->propAddCanUpdate)
|
|
&& ! (window->add_after_opening && ! window->update_dropped_files && ! archive->command->propAddCanReplace)
|
|
- && archive->command->propCanExtractAll);
|
|
+ && ! (window->batch_extracting_all && !archive->command->propCanExtractAll));
|
|
+
|
|
}
|
|
|
|
|
|
@@ -3682,6 +3683,7 @@ window_new (void)
|
|
window->stoppable = TRUE;
|
|
|
|
window->batch_adding_one_file = FALSE;
|
|
+ window->batch_extracting_all = FALSE;
|
|
|
|
window->path_clicked = NULL;
|
|
|
|
@@ -6738,6 +6740,7 @@ window_archive__open_extract_here (FRWin
|
|
|
|
window->non_interactive = TRUE;
|
|
|
|
+ window->batch_extracting_all = TRUE;
|
|
window_batch_mode_add_action (window,
|
|
FR_BATCH_ACTION_OPEN,
|
|
g_strdup (filename),
|