diff options
author | Pascal Rigaux <pixel@mandriva.com> | 1999-11-26 16:48:30 +0000 |
---|---|---|
committer | Pascal Rigaux <pixel@mandriva.com> | 1999-11-26 16:48:30 +0000 |
commit | 6dbd6e6db0495ddd9774f20f0fb3c239b15e13a2 (patch) | |
tree | 334db31f66a0407bb640b510f789e24ea8295dde /perl-install/my_gtk.pm | |
parent | a58f7bf96be7dbd8b4b59a01fc81c31a7a4d6dc0 (diff) | |
download | drakx-6dbd6e6db0495ddd9774f20f0fb3c239b15e13a2.tar drakx-6dbd6e6db0495ddd9774f20f0fb3c239b15e13a2.tar.gz drakx-6dbd6e6db0495ddd9774f20f0fb3c239b15e13a2.tar.bz2 drakx-6dbd6e6db0495ddd9774f20f0fb3c239b15e13a2.tar.xz drakx-6dbd6e6db0495ddd9774f20f0fb3c239b15e13a2.zip |
no_comment
Diffstat (limited to 'perl-install/my_gtk.pm')
-rw-r--r-- | perl-install/my_gtk.pm | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/perl-install/my_gtk.pm b/perl-install/my_gtk.pm index 99ef6f7b0..ba784340c 100644 --- a/perl-install/my_gtk.pm +++ b/perl-install/my_gtk.pm @@ -469,7 +469,6 @@ sub _ask_from_list { $list->moveto($_[0], 0, 0.5, 0); }; - ref $title && !@okcancel ? $list->signal_connect(button_release_event => $leave) : $list->signal_connect(button_press_event => sub { &$leave if $_[1]{type} =~ /^2/ }); @@ -524,10 +523,11 @@ sub _ask_from_list { )); $o->sync; #- otherwise the moveto is not done - map_index { + my $toselect; map_index { $list->append($_); - &$select($::i) if $def && $_ eq $def; + $toselect = $::i if $def && $_ eq $def; } @$l; + &$select($toselect); $list->grab_focus; } |