diff options
author | Thierry Vignaud <tvignaud@mandriva.org> | 2004-01-13 17:45:11 +0000 |
---|---|---|
committer | Thierry Vignaud <tvignaud@mandriva.org> | 2004-01-13 17:45:11 +0000 |
commit | 9c46bcf3d81dd0a8fc5bcc9e8bef6eea6d384060 (patch) | |
tree | 3aed7a3f5417d4bdd2a37a4c82c5a8969a814a43 /perl-install/standalone/drakboot | |
parent | 0ba56cce3e0255f0ed2dec02f158f37b718c0e61 (diff) | |
download | drakx-9c46bcf3d81dd0a8fc5bcc9e8bef6eea6d384060.tar drakx-9c46bcf3d81dd0a8fc5bcc9e8bef6eea6d384060.tar.gz drakx-9c46bcf3d81dd0a8fc5bcc9e8bef6eea6d384060.tar.bz2 drakx-9c46bcf3d81dd0a8fc5bcc9e8bef6eea6d384060.tar.xz drakx-9c46bcf3d81dd0a8fc5bcc9e8bef6eea6d384060.zip |
sanitize buttons through reusing create_okcancel()
Diffstat (limited to 'perl-install/standalone/drakboot')
-rwxr-xr-x | perl-install/standalone/drakboot | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/perl-install/standalone/drakboot b/perl-install/standalone/drakboot index 7368de0ef..7bf48382c 100755 --- a/perl-install/standalone/drakboot +++ b/perl-install/standalone/drakboot @@ -284,13 +284,14 @@ gtkadd($window, ) ), 1, Gtk2::VBox->new, - 0, gtkadd(Gtk2::HButtonBox->new, - gtksignal_connect(Gtk2::Button->new(N("Cancel")), clicked => sub { ugtk2->exit(0) }), - gtksignal_connect(Gtk2::Button->new(N("Ok")), clicked => sub { + 0, create_okcancel({ + cancel_clicked => sub { ugtk2->exit(0) }, + ok_clicked => sub { Xconfig::various::runlevel($x_mode ? 5 : 3); updateAutologin(); ugtk2->exit(0); - }), + } + }, ) ) ); |