summaryrefslogtreecommitdiffstats
path: root/perl-install
diff options
context:
space:
mode:
Diffstat (limited to 'perl-install')
-rw-r--r--perl-install/interactive/gtk.pm4
1 files changed, 2 insertions, 2 deletions
diff --git a/perl-install/interactive/gtk.pm b/perl-install/interactive/gtk.pm
index 7f8935568..9e734c3a1 100644
--- a/perl-install/interactive/gtk.pm
+++ b/perl-install/interactive/gtk.pm
@@ -394,8 +394,8 @@ sub create_widget {
} elsif ($e->{type} eq 'empty') {
$w = gtknew('HBox', height => $e->{height});
} elsif ($e->{type} eq 'button') {
- $w = Gtk2::Button->new_with_label('');
- $w->signal_connect(clicked => $e->{clicked_may_quit_cooked});
+ $w = gtknew('Button',
+ text => '', clicked => $e->{clicked_may_quit_cooked});
# guard against 'advanced' widgets that are now in their own dialog
# (instead of in another block child of an expander)
$set = sub { $w->child && $w->child->set_label(may_apply($e->{format}, $_[0])) };