diff options
author | Pascal Rigaux <pixel@mandriva.com> | 2004-02-06 20:18:51 +0000 |
---|---|---|
committer | Pascal Rigaux <pixel@mandriva.com> | 2004-02-06 20:18:51 +0000 |
commit | 96325b5775665971d03c4b8f78ed6c30e8bde2a5 (patch) | |
tree | fb93bacce789094bbaba0c95c49b1182d0f1e231 | |
parent | f5d92f1804c3b4ee83d8bb9856e5749307ce0c96 (diff) | |
download | drakx-backup-do-not-use-96325b5775665971d03c4b8f78ed6c30e8bde2a5.tar drakx-backup-do-not-use-96325b5775665971d03c4b8f78ed6c30e8bde2a5.tar.gz drakx-backup-do-not-use-96325b5775665971d03c4b8f78ed6c30e8bde2a5.tar.bz2 drakx-backup-do-not-use-96325b5775665971d03c4b8f78ed6c30e8bde2a5.tar.xz drakx-backup-do-not-use-96325b5775665971d03c4b8f78ed6c30e8bde2a5.zip |
use ->create_okcancel instead of doing it by hand
(hopefully it will ensure better choice of Ok/Cancel vs Cancel/Ok without breaking anything...)
-rwxr-xr-x | perl-install/standalone/mousedrake | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/perl-install/standalone/mousedrake b/perl-install/standalone/mousedrake index f4ba291c7..b847b7632 100755 --- a/perl-install/standalone/mousedrake +++ b/perl-install/standalone/mousedrake @@ -63,10 +63,7 @@ if ($in->isa('interactive::gtk') && mouse::change_mouse_live($mouse, \%old)) { gtkpack(Gtk2::VBox->new(0, 5), Gtk2::Label->new(N("Please test your mouse:")), my $test_hbox = Gtk2::HBox->new(0, 5), - gtkpack(create_hbox(), - gtksignal_connect(Gtk2::Button->new(N("Cancel")), clicked => sub { $w->{retval} = 0; Gtk2->main_quit }), - gtksignal_connect(Gtk2::Button->new(N("Ok")), clicked => sub { $w->{retval} = 1; Gtk2->main_quit }), - ))); + $w->create_okcancel)); mouse::test_mouse_standalone($mouse, $test_hbox); $w->main or goto begin; } |