summaryrefslogtreecommitdiffstats
path: root/perl-install
diff options
context:
space:
mode:
authorThierry Vignaud <thierry.vignaud@gmail.com>2013-11-24 22:35:33 +0100
committerThierry Vignaud <thierry.vignaud@gmail.com>2013-11-24 23:53:13 +0100
commitec0513e059d437920ee55bc3838eb969ac42b7e1 (patch)
tree307203049c0cc685dc575f18f4ad4119bbe2ce5c /perl-install
parent2e76e64f6df89d576a3585b27fa7320908e4d6f4 (diff)
downloaddrakx-ec0513e059d437920ee55bc3838eb969ac42b7e1.tar
drakx-ec0513e059d437920ee55bc3838eb969ac42b7e1.tar.gz
drakx-ec0513e059d437920ee55bc3838eb969ac42b7e1.tar.bz2
drakx-ec0513e059d437920ee55bc3838eb969ac42b7e1.tar.xz
drakx-ec0513e059d437920ee55bc3838eb969ac42b7e1.zip
fix displaying ads by default
after commit 81bb64a79ef, this was no longer true
Diffstat (limited to 'perl-install')
-rw-r--r--perl-install/mygtk3.pm3
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->();