summaryrefslogtreecommitdiffstats
path: root/perl-install/mygtk3.pm
diff options
context:
space:
mode:
authorThierry Vignaud <thierry.vignaud@gmail.com>2013-11-08 03:46:25 +0100
committerThierry Vignaud <thierry.vignaud@gmail.com>2013-11-24 23:28:17 +0100
commit8726e6dd60ee00abff6cb6a581f749158ca9dc7e (patch)
tree73f8e102c2ac33a76cb02caaa729caf520590d14 /perl-install/mygtk3.pm
parenta7f8805575a700e5ca8dfc962e8049eff33b71b4 (diff)
downloaddrakx-8726e6dd60ee00abff6cb6a581f749158ca9dc7e.tar
drakx-8726e6dd60ee00abff6cb6a581f749158ca9dc7e.tar.gz
drakx-8726e6dd60ee00abff6cb6a581f749158ca9dc7e.tar.bz2
drakx-8726e6dd60ee00abff6cb6a581f749158ca9dc7e.tar.xz
drakx-8726e6dd60ee00abff6cb6a581f749158ca9dc7e.zip
prevent set_active() to be called with undef parameter
Diffstat (limited to 'perl-install/mygtk3.pm')
-rw-r--r--perl-install/mygtk3.pm1
1 files changed, 1 insertions, 0 deletions
diff --git a/perl-install/mygtk3.pm b/perl-install/mygtk3.pm
index 084d0cedf..094ca1a65 100644
--- a/perl-install/mygtk3.pm
+++ b/perl-install/mygtk3.pm
@@ -200,6 +200,7 @@ sub _gtk_any_Button {
$w->signal_connect(clicked => delete $opts->{clicked}) if exists $opts->{clicked};
} else {
if (my $active_ref = delete $opts->{active_ref}) {
+ $$active_ref ||= 0;
my $set = sub { $w->set_active($$active_ref) };
$w->signal_connect(toggled => sub {
gtkval_modify($active_ref, $w->get_active, $set);