From 769e0b82006d528d027ce60c22dab3f1d45a11b4 Mon Sep 17 00:00:00 2001 From: freesource Date: Mon, 14 Jan 2002 00:41:27 +0000 Subject: [PATCH] Changed the behavior of save_as so that when compression is chosen, the entry won't be the same as that found in Root Filename, but instead reflects the newly compressed file. This change was precipitated by the previous change to the Accept behavior. --- BootRoot/BootRoot.pm | 12 ++++++++++++ Changes | 5 +++++ 2 files changed, 17 insertions(+) diff --git a/BootRoot/BootRoot.pm b/BootRoot/BootRoot.pm index 680b674..29a0ae5 100644 --- a/BootRoot/BootRoot.pm +++ b/BootRoot/BootRoot.pm @@ -1898,6 +1898,18 @@ sub save_as { $save_as->border_width(12); $save_as->set_position('center'); + # If compression was on we will use that compression + if (!$compression_off->active) { + if ( $gz_toggle_root->active ) { + $template = "$template.gz"; + } + elsif ( $bz2_toggle_root->active ) { + $template = "$template.bz2"; + } + + } + + my $new_template = $template; my $entry = Gtk::Entry->new(); $entry->set_editable( $true ); diff --git a/Changes b/Changes index 8944f3d..fc4ee9c 100644 --- a/Changes +++ b/Changes @@ -1,3 +1,8 @@ +Changed the behavior of save_as so that when compression is chosen, the +entry won't be the same as that found in Root Filename, but instead reflects +the newly compressed file. This change was precipitated by the previous +change to the Accept behavior. + 1.3.2 - 01/11/2002 ------------------