diff options
author | Thierry Vignaud <tvignaud@mandriva.org> | 2004-08-04 02:14:47 +0000 |
---|---|---|
committer | Thierry Vignaud <tvignaud@mandriva.org> | 2004-08-04 02:14:47 +0000 |
commit | f195260340791f47e43bfa27e91a2ee4550c3654 (patch) | |
tree | a0fa6e14ea34ea45b261a6524578c757e253fee1 | |
parent | dd076bfb9e6a6d0cafdc1f8b946f15c7ec035ce4 (diff) | |
download | drakx-f195260340791f47e43bfa27e91a2ee4550c3654.tar drakx-f195260340791f47e43bfa27e91a2ee4550c3654.tar.gz drakx-f195260340791f47e43bfa27e91a2ee4550c3654.tar.bz2 drakx-f195260340791f47e43bfa27e91a2ee4550c3654.tar.xz drakx-f195260340791f47e43bfa27e91a2ee4550c3654.zip |
(ask_fromW) actually honor default value
-rw-r--r-- | perl-install/interactive/gtk.pm | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/perl-install/interactive/gtk.pm b/perl-install/interactive/gtk.pm index b6dade81d..125a23825 100644 --- a/perl-install/interactive/gtk.pm +++ b/perl-install/interactive/gtk.pm @@ -545,7 +545,7 @@ sub ask_fromW { } $w->set_popdown_strings(@formatted_list); - $w->set_text($formatted_list[0]) if $w->isa('Gtk2::ComboBox'); + $w->set_text(ref($e->{val}) ? may_apply($e->{format}, ${$e->{val}}) : $formatted_list[0]) if $w->isa('Gtk2::ComboBox'); ($real_w, $w) = ($w, $w->entry); #- FIXME workaround gtk suckiness (set_text generates two 'change' signals, one when removing the whole, one for inserting the replacement..) |