summaryrefslogtreecommitdiffstats
path: root/perl-install/interactive
diff options
context:
space:
mode:
authorThierry Vignaud <tvignaud@mandriva.org>2004-08-04 02:14:47 +0000
committerThierry Vignaud <tvignaud@mandriva.org>2004-08-04 02:14:47 +0000
commitf195260340791f47e43bfa27e91a2ee4550c3654 (patch)
treea0fa6e14ea34ea45b261a6524578c757e253fee1 /perl-install/interactive
parentdd076bfb9e6a6d0cafdc1f8b946f15c7ec035ce4 (diff)
downloaddrakx-f195260340791f47e43bfa27e91a2ee4550c3654.tar
drakx-f195260340791f47e43bfa27e91a2ee4550c3654.tar.gz
drakx-f195260340791f47e43bfa27e91a2ee4550c3654.tar.bz2
drakx-f195260340791f47e43bfa27e91a2ee4550c3654.tar.xz
drakx-f195260340791f47e43bfa27e91a2ee4550c3654.zip
(ask_fromW) actually honor default value
Diffstat (limited to 'perl-install/interactive')
-rw-r--r--perl-install/interactive/gtk.pm2
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..)