diff options
Diffstat (limited to 'perl-install/mygtk3.pm')
-rw-r--r-- | perl-install/mygtk3.pm | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/perl-install/mygtk3.pm b/perl-install/mygtk3.pm index 6db4651c9..421a9f419 100644 --- a/perl-install/mygtk3.pm +++ b/perl-install/mygtk3.pm @@ -185,9 +185,8 @@ sub _gtk_any_Button { $w->set_relief(delete $opts->{relief}) if exists $opts->{relief}; if (my $text_ref = delete $opts->{text_ref}) { - $$text_ref ||= ''; my $set = sub { - eval { $w->set_label(may_apply($w->{format}, $$text_ref)) }; + eval { $w->set_label(may_apply($w->{format}, $$text_ref || '')) }; }; gtkval_register($w, $text_ref, $set); $set->(); |