summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-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 aa17b71b0..4c9383c8e 100644
--- a/perl-install/mygtk3.pm
+++ b/perl-install/mygtk3.pm
@@ -131,6 +131,7 @@ sub _gtk {
}
if (my $sensitive_ref = delete $opts->{sensitive_ref}) {
+ $$sensitive_ref ||= 0;
my $set = sub { $w->set_sensitive($$sensitive_ref) };
gtkval_register($w, $sensitive_ref, $set);
$set->();