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 6c28c43ed..6e4c880d1 100644
--- a/perl-install/mygtk3.pm
+++ b/perl-install/mygtk3.pm
@@ -278,6 +278,7 @@ sub _gtk__ProgressBar {
}
if (my $fraction_ref = delete $opts->{fraction_ref}) {
+ $$fraction_ref ||= 0;
my $set = sub { $w->set_fraction($$fraction_ref) };
gtkval_register($w, $fraction_ref, $set);
$set->();