2006-12-19 22:57:05 +01:00
|
|
|
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
|
|
|
|
|
2007-04-03 21:22:32 +02:00
|
|
|
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. */
|
|
|
|
|
2006-12-19 22:57:05 +01:00
|
|
|
gboolean batch_adding_one_file;
|
|
|
|
+ gboolean batch_extracting_all;
|
|
|
|
|
|
|
|
/* progress dialog data */
|
|
|
|
|
2007-04-03 21:22:32 +02:00
|
|
|
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
|
2006-12-19 22:57:05 +01:00
|
|
|
&& ! (window->add_after_opening && window->update_dropped_files && ! archive->command->propAddCanUpdate)
|
2007-04-03 21:22:32 +02:00
|
|
|
&& ! (window->add_after_opening && ! window->update_dropped_files && ! archive->command->propAddCanReplace)
|
|
|
|
- && archive->command->propCanExtractAll);
|
2006-12-19 22:57:05 +01:00
|
|
|
+ && ! (window->batch_extracting_all && !archive->command->propCanExtractAll));
|
2007-04-03 21:22:32 +02:00
|
|
|
+
|
2006-12-19 22:57:05 +01:00
|
|
|
}
|
|
|
|
|
|
|
|
|
2007-04-03 21:22:32 +02:00
|
|
|
@@ -3682,6 +3683,7 @@ window_new (void)
|
2006-12-19 22:57:05 +01:00
|
|
|
window->stoppable = TRUE;
|
|
|
|
|
|
|
|
window->batch_adding_one_file = FALSE;
|
|
|
|
+ window->batch_extracting_all = FALSE;
|
|
|
|
|
|
|
|
window->path_clicked = NULL;
|
|
|
|
|
2007-04-03 21:22:32 +02:00
|
|
|
@@ -6738,6 +6740,7 @@ window_archive__open_extract_here (FRWin
|
|
|
|
|
2006-12-19 22:57:05 +01:00
|
|
|
window->non_interactive = TRUE;
|
|
|
|
|
|
|
|
+ window->batch_extracting_all = TRUE;
|
|
|
|
window_batch_mode_add_action (window,
|
|
|
|
FR_BATCH_ACTION_OPEN,
|
|
|
|
g_strdup (filename),
|