diff options
author | Pascal Rigaux <pixel@mandriva.com> | 2003-01-14 19:47:29 +0000 |
---|---|---|
committer | Pascal Rigaux <pixel@mandriva.com> | 2003-01-14 19:47:29 +0000 |
commit | dbcb3dde3525aac3d97d310efe0f42256dc36260 (patch) | |
tree | 097f96406752652a11440e85d73444ee3ff364c0 /perl-install/interactive/gtk.pm | |
parent | a6f6a77d11ca6e9f55a99d9fa844e28b5f6ce5bc (diff) | |
download | drakx-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.pm | 2 |
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') { |