summaryrefslogtreecommitdiffstats
path: root/perl-install
diff options
context:
space:
mode:
authorOlivier Blin <oblin@mandriva.com>2009-10-28 16:10:14 +0000
committerOlivier Blin <oblin@mandriva.com>2009-10-28 16:10:14 +0000
commit8bbaf9c04aa5ba62fecd16bfb639202a9031b094 (patch)
treed83cc7158c619f3076a59393858741468ad529bf /perl-install
parentc91ce2f3e458fb596d0938d33f773a70be2338d5 (diff)
downloaddrakx-8bbaf9c04aa5ba62fecd16bfb639202a9031b094.tar
drakx-8bbaf9c04aa5ba62fecd16bfb639202a9031b094.tar.gz
drakx-8bbaf9c04aa5ba62fecd16bfb639202a9031b094.tar.bz2
drakx-8bbaf9c04aa5ba62fecd16bfb639202a9031b094.tar.xz
drakx-8bbaf9c04aa5ba62fecd16bfb639202a9031b094.zip
remove arguments to update_size_labels, they are always the same
Diffstat (limited to 'perl-install')
-rw-r--r--perl-install/fs/partitioning_wizard.pm13
1 files changed, 6 insertions, 7 deletions
diff --git a/perl-install/fs/partitioning_wizard.pm b/perl-install/fs/partitioning_wizard.pm
index 5613d21bd..90f6fe6ff 100644
--- a/perl-install/fs/partitioning_wizard.pm
+++ b/perl-install/fs/partitioning_wizard.pm
@@ -357,25 +357,24 @@ sub create_display_box {
ugtk2::gtkpack__($desc, $mdv_size_label);
$mdv_size_label->set_alignment(0,0.5);
my $update_size_labels = sub {
- my ($size1, $size2) = @_;
- $win_size_label->set_label(" Windows (" . formatXiB($size1, 512) . ")");
- $mdv_size_label->set_label(" Mandriva (" . formatXiB($size2, 512) . ")");
+ $win_size_label->set_label(" Windows (" . formatXiB($part->{req_size}, 512) . ")");
+ $mdv_size_label->set_label(" Mandriva (" . formatXiB($part->{size} - $part->{req_size}, 512) . ")");
};
$hpane->signal_connect('size-allocate' => sub {
my (undef, $alloc) = @_;
$part->{req_size} = int($hpane->get_position * $part->{size} / $part->{width});
- $update_size_labels->($part->{req_size}, $part->{size}-$part->{req_size});
+ $update_size_labels->();
0;
});
- $update_size_labels->($size, $part->{size}-$size);
+ $update_size_labels->();
$hpane->signal_connect('motion-notify-event' => sub {
$part->{req_size} = int($hpane->get_position * $part->{size} / $part->{width});
- $update_size_labels->($part->{req_size}, $part->{size}-$part->{req_size});
+ $update_size_labels->();
0;
});
$hpane->signal_connect('move-handle' => sub {
$part->{req_size} = int($hpane->get_position * $part->{size} / $part->{width});
- $update_size_labels->($part->{req_size}, $part->{size}-$part->{req_size});
+ $update_size_labels->();
0;
});
$hpane->signal_connect('button-press-event' => sub {