diff options
author | Olivier Blin <oblin@mandriva.org> | 2004-07-15 12:13:16 +0000 |
---|---|---|
committer | Olivier Blin <oblin@mandriva.org> | 2004-07-15 12:13:16 +0000 |
commit | af755320b3452824add395424c8db734c3f711f5 (patch) | |
tree | b4349fcd512f8b025c15cccc52ea55f65a3340e5 | |
parent | 7b33e91bf7fef8764af19081a9ad69b3a7df9221 (diff) | |
download | userdrake-af755320b3452824add395424c8db734c3f711f5.tar userdrake-af755320b3452824add395424c8db734c3f711f5.tar.gz userdrake-af755320b3452824add395424c8db734c3f711f5.tar.bz2 userdrake-af755320b3452824add395424c8db734c3f711f5.tar.xz userdrake-af755320b3452824add395424c8db734c3f711f5.zip |
fix GimmeChoice by using interactive (do not quit the whole program on
success, wait the answer to really return the choice made by the user)
(#10246)
-rwxr-xr-x | userdrake | 14 |
1 files changed, 1 insertions, 13 deletions
@@ -416,19 +416,7 @@ sub ChooseGroup() { } sub GimmeChoice { my ($title, $text) = @_; - my $w = NewWindow(N("Choice"), 1); - my $choice; - gtkadd($w, - gtkpack__(Gtk2::VBox->new(0,5), - Gtk2::Label->new($text), - Gtk2::HSeparator->new, - gtkpack(create_hbox(), - gtksignal_connect(Gtk2::Button->new(N("Yes")), clicked => sub { - $choice = 1; - Gtk2->main_quit; - }), - gtksignal_connect(Gtk2::Button->new(N("No")), clicked => sub { $choice = 0; $error = 1; $w->destroy })))); - $w->show_all; + my $choice = $in->ask_yesorno($title, $text) or $error = 1; $choice; } sub AddGroup { |