summaryrefslogtreecommitdiffstats
path: root/perl-install/fs
diff options
context:
space:
mode:
authorOlivier Blin <oblin@mandriva.com>2009-10-28 16:16:42 +0000
committerOlivier Blin <oblin@mandriva.com>2009-10-28 16:16:42 +0000
commit525b391860ca07ec268b43a9aa8fb64dcd23b8e9 (patch)
tree72736c3c7af39fcdc8d9cb2d49652e6d5ba17454 /perl-install/fs
parent8bbaf9c04aa5ba62fecd16bfb639202a9031b094 (diff)
downloaddrakx-525b391860ca07ec268b43a9aa8fb64dcd23b8e9.tar
drakx-525b391860ca07ec268b43a9aa8fb64dcd23b8e9.tar.gz
drakx-525b391860ca07ec268b43a9aa8fb64dcd23b8e9.tar.bz2
drakx-525b391860ca07ec268b43a9aa8fb64dcd23b8e9.tar.xz
drakx-525b391860ca07ec268b43a9aa8fb64dcd23b8e9.zip
factorize 0 return code in update_size_labels
Diffstat (limited to 'perl-install/fs')
-rw-r--r--perl-install/fs/partitioning_wizard.pm4
1 files changed, 1 insertions, 3 deletions
diff --git a/perl-install/fs/partitioning_wizard.pm b/perl-install/fs/partitioning_wizard.pm
index 90f6fe6ff..3f1b44276 100644
--- a/perl-install/fs/partitioning_wizard.pm
+++ b/perl-install/fs/partitioning_wizard.pm
@@ -359,23 +359,21 @@ sub create_display_box {
my $update_size_labels = sub {
$win_size_label->set_label(" Windows (" . formatXiB($part->{req_size}, 512) . ")");
$mdv_size_label->set_label(" Mandriva (" . formatXiB($part->{size} - $part->{req_size}, 512) . ")");
+ 0;
};
$hpane->signal_connect('size-allocate' => sub {
my (undef, $alloc) = @_;
$part->{req_size} = int($hpane->get_position * $part->{size} / $part->{width});
$update_size_labels->();
- 0;
});
$update_size_labels->();
$hpane->signal_connect('motion-notify-event' => sub {
$part->{req_size} = int($hpane->get_position * $part->{size} / $part->{width});
$update_size_labels->();
- 0;
});
$hpane->signal_connect('move-handle' => sub {
$part->{req_size} = int($hpane->get_position * $part->{size} / $part->{width});
$update_size_labels->();
- 0;
});
$hpane->signal_connect('button-press-event' => sub {
$button->activate;