summaryrefslogtreecommitdiffstats
path: root/perl-install/interactive_gtk.pm
diff options
context:
space:
mode:
Diffstat (limited to 'perl-install/interactive_gtk.pm')
-rw-r--r--perl-install/interactive_gtk.pm4
1 files changed, 2 insertions, 2 deletions
diff --git a/perl-install/interactive_gtk.pm b/perl-install/interactive_gtk.pm
index f8623a206..49b4313ed 100644
--- a/perl-install/interactive_gtk.pm
+++ b/perl-install/interactive_gtk.pm
@@ -63,7 +63,7 @@ sub ask_many_from_list_refW($$$$$) {
my $nn = $n++;
my $o = Gtk::CheckButton->new($_);
$o->set_active(${$val->[$nn]});
- $o->signal_connect(clicked => sub { ${$val->[$nn]} = !${$val->[$nn]} });
+ $o->signal_connect(clicked => sub { invbool \${$val->[$nn]} });
$o;
} @$list),
$w->create_okcancel,
@@ -94,7 +94,7 @@ sub ask_from_entries_refW {
} elsif ($_->{type} eq "bool") {
my $w = Gtk::CheckButton->new($_->{text});
$w->set_active(${$_->{val}});
- my $i = $_; $w->signal_connect(clicked => sub { $ignore or ${$i->{val}} = !${$i->{val}} });
+ my $i = $_; $w->signal_connect(clicked => sub { $ignore or invbool \${$i->{val}} });
$w;
} else {
new Gtk::Entry;