summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorThierry Vignaud <tv@mandriva.org>2008-08-21 09:39:16 +0000
committerThierry Vignaud <tv@mandriva.org>2008-08-21 09:39:16 +0000
commite9ea0ceb7123866d1c97561eac05e395e0160b8f (patch)
tree5e4f773db71fba343732c84ccd9b287e0c2b99ca
parent2588c5f14fdbef8e8f4ff15f28e3aa5f2feb86eb (diff)
downloaddrakx-e9ea0ceb7123866d1c97561eac05e395e0160b8f.tar
drakx-e9ea0ceb7123866d1c97561eac05e395e0160b8f.tar.gz
drakx-e9ea0ceb7123866d1c97561eac05e395e0160b8f.tar.bz2
drakx-e9ea0ceb7123866d1c97561eac05e395e0160b8f.tar.xz
drakx-e9ea0ceb7123866d1c97561eac05e395e0160b8f.zip
(main) ensure partitions bar is properlyz size on first display (#24410)
-rw-r--r--perl-install/diskdrake/hd_gtk.pm7
1 files changed, 6 insertions, 1 deletions
diff --git a/perl-install/diskdrake/hd_gtk.pm b/perl-install/diskdrake/hd_gtk.pm
index 470d729f7..d793bb616 100644
--- a/perl-install/diskdrake/hd_gtk.pm
+++ b/perl-install/diskdrake/hd_gtk.pm
@@ -14,6 +14,7 @@ use run_program;
use devices;
use log;
use fsedit;
+use feature qw(state);
my ($width, $height, $minwidth) = (400, 50, 5);
my ($all_hds, $in, $do_force_reload, $current_kind, $current_entry, $update_all);
@@ -86,8 +87,12 @@ sub main {
$notebook_widget->signal_connect(switch_page => sub {
$current_kind = $notebook[$_[2]];
$current_entry = '';
- $update_all->();
+ state $not_first;
+ $update_all->() if $not_first;
+ $not_first = 1;
});
+ # ensure partitions bar is properlyz size on first display:
+ $notebook_widget->signal_connect(realize => $update_all);
$w->sync;
$done_button->grab_focus;
$in->ask_from_list_(N("Read carefully!"), N("Please make a backup of your data first"),