summaryrefslogtreecommitdiffstats
path: root/perl-install/interactive/gtk.pm
diff options
context:
space:
mode:
authorPascal Rigaux <pixel@mandriva.com>2003-01-14 19:47:29 +0000
committerPascal Rigaux <pixel@mandriva.com>2003-01-14 19:47:29 +0000
commitdbcb3dde3525aac3d97d310efe0f42256dc36260 (patch)
tree097f96406752652a11440e85d73444ee3ff364c0 /perl-install/interactive/gtk.pm
parenta6f6a77d11ca6e9f55a99d9fa844e28b5f6ce5bc (diff)
downloaddrakx-dbcb3dde3525aac3d97d310efe0f42256dc36260.tar
drakx-dbcb3dde3525aac3d97d310efe0f42256dc36260.tar.gz
drakx-dbcb3dde3525aac3d97d310efe0f42256dc36260.tar.bz2
drakx-dbcb3dde3525aac3d97d310efe0f42256dc36260.tar.xz
drakx-dbcb3dde3525aac3d97d310efe0f42256dc36260.zip
set_active on Gtk2::CheckButton is pretty dumb, it thinks undef is true ;p
Diffstat (limited to 'perl-install/interactive/gtk.pm')
-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 33577fe7f..6ebeb5bf3 100644
--- a/perl-install/interactive/gtk.pm
+++ b/perl-install/interactive/gtk.pm
@@ -405,7 +405,7 @@ sub ask_fromW {
} elsif ($e->{type} eq 'bool') {
$w = Gtk2::CheckButton->new($e->{text});
$w->signal_connect(clicked => $changed);
- $set = sub { $w->set_active($_[0]) };
+ $set = sub { $w->set_active($_[0] ? 1 : 0) };
$get = sub { $w->get_active };
$width = length $e->{text};
} elsif ($e->{type} eq 'label') {