diff options
author | Thierry Vignaud <tv@mandriva.org> | 2008-08-20 08:56:49 +0000 |
---|---|---|
committer | Thierry Vignaud <tv@mandriva.org> | 2008-08-20 08:56:49 +0000 |
commit | 837440ddd16018431ab121c36c0dbc18e6b8b3f3 (patch) | |
tree | 90e956fa5ea32ed53fd2ac4ca1b26914e3a36fb3 | |
parent | 8e06966029625c6ae1b3a42b7261d579f27f30c3 (diff) | |
download | drakx-837440ddd16018431ab121c36c0dbc18e6b8b3f3.tar drakx-837440ddd16018431ab121c36c0dbc18e6b8b3f3.tar.gz drakx-837440ddd16018431ab121c36c0dbc18e6b8b3f3.tar.bz2 drakx-837440ddd16018431ab121c36c0dbc18e6b8b3f3.tar.xz drakx-837440ddd16018431ab121c36c0dbc18e6b8b3f3.zip |
(create_widget) use mygtk2 for creating buttons instead of raw Gtk2 (needed for next commits)
-rw-r--r-- | perl-install/interactive/gtk.pm | 4 |
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])) }; |