From 4e8251d54488afe7034c34152a0099917752aff3 Mon Sep 17 00:00:00 2001 From: Pascal Rigaux Date: Sun, 25 Feb 2001 13:34:19 +0000 Subject: (ask_from_entries_refW): ensure "advanced" lists center the chosen value --- perl-install/interactive_gtk.pm | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'perl-install/interactive_gtk.pm') diff --git a/perl-install/interactive_gtk.pm b/perl-install/interactive_gtk.pm index dd19722c6..9a42d3469 100644 --- a/perl-install/interactive_gtk.pm +++ b/perl-install/interactive_gtk.pm @@ -405,6 +405,8 @@ sub ask_from_entries_refW { ($advanced) = @_; $advanced ? $advanced_pack->show : $advanced_pack->hide; @widgets = (@widgets_always, $advanced ? @widgets_advanced : ()); + $mainw->sync; #- for $set_all below (mainly for the set of clist) + $set_all->(); #- must be done when showing advanced lists (to center selected value) }; my $advanced_button = [ $common->{advanced_label}, sub { $set_advanced->(!$advanced) } ]; @@ -430,8 +432,6 @@ sub ask_from_entries_refW { $pack->pack_start($advanced_pack, 1, 1, 0); gtkadd($mainw->{window}, $pack); $mainw->{window}->set_usize(0, min($total_size > 10 ? 350 : 200, $::windowheight - 60)) if $has_scroll; - $mainw->sync; #- for $set_all below (mainly for the set of clist) - $set_all->(); $set_advanced->(0); (@widgets ? $widgets[0]{w} : $common->{focus_cancel} ? $mainw->{cancel} : $mainw->{ok})->grab_focus(); -- cgit v1.2.1