From 96325b5775665971d03c4b8f78ed6c30e8bde2a5 Mon Sep 17 00:00:00 2001 From: Pascal Rigaux Date: Fri, 6 Feb 2004 20:18:51 +0000 Subject: use ->create_okcancel instead of doing it by hand (hopefully it will ensure better choice of Ok/Cancel vs Cancel/Ok without breaking anything...) --- perl-install/standalone/mousedrake | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) (limited to 'perl-install') 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; } -- cgit v1.2.1