summaryrefslogtreecommitdiffstats
path: root/perl-install
diff options
context:
space:
mode:
authorThierry Vignaud <tv@mandriva.org>2008-08-20 08:56:49 +0000
committerThierry Vignaud <tv@mandriva.org>2008-08-20 08:56:49 +0000
commit837440ddd16018431ab121c36c0dbc18e6b8b3f3 (patch)
tree90e956fa5ea32ed53fd2ac4ca1b26914e3a36fb3 /perl-install
parent8e06966029625c6ae1b3a42b7261d579f27f30c3 (diff)
downloaddrakx-backup-do-not-use-837440ddd16018431ab121c36c0dbc18e6b8b3f3.tar
drakx-backup-do-not-use-837440ddd16018431ab121c36c0dbc18e6b8b3f3.tar.gz
drakx-backup-do-not-use-837440ddd16018431ab121c36c0dbc18e6b8b3f3.tar.bz2
drakx-backup-do-not-use-837440ddd16018431ab121c36c0dbc18e6b8b3f3.tar.xz
drakx-backup-do-not-use-837440ddd16018431ab121c36c0dbc18e6b8b3f3.zip
(create_widget) use mygtk2 for creating buttons instead of raw Gtk2 (needed for next commits)
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])) };