aboutsummaryrefslogtreecommitdiffstats
path: root/rpmdrake.pm
diff options
context:
space:
mode:
authorThierry Vignaud <tv@mandriva.org>2007-03-22 14:55:19 +0000
committerThierry Vignaud <tv@mandriva.org>2007-03-22 14:55:19 +0000
commit9fe1e15f6191fe02804bc745673ba04dee65b1d8 (patch)
tree0a6837233ee921117dfbb5d87f44b47d3bd7def4 /rpmdrake.pm
parent2fec2aafb9ddd58d1bfdd1e819e045d2f4634891 (diff)
downloadrpmdrake-9fe1e15f6191fe02804bc745673ba04dee65b1d8.tar
rpmdrake-9fe1e15f6191fe02804bc745673ba04dee65b1d8.tar.gz
rpmdrake-9fe1e15f6191fe02804bc745673ba04dee65b1d8.tar.bz2
rpmdrake-9fe1e15f6191fe02804bc745673ba04dee65b1d8.tar.xz
rpmdrake-9fe1e15f6191fe02804bc745673ba04dee65b1d8.zip
(interactive_list) handle "nocancel" option in order not to show "cancel" button
Diffstat (limited to 'rpmdrake.pm')
-rw-r--r--rpmdrake.pm2
1 files changed, 2 insertions, 0 deletions
diff --git a/rpmdrake.pm b/rpmdrake.pm
index 83d8e6df..33fd65ef 100644
--- a/rpmdrake.pm
+++ b/rpmdrake.pm
@@ -297,8 +297,10 @@ sub interactive_list {
int(@$list) > 8 ? gtkset_size_request(create_scrolled_window($vbradios), 250, 320) : $vbradios,
gtkpack__(
create_hbox(),
+ if_(!$options{nocancel},
gtksignal_connect(
Gtk2::Button->new(N("Cancel")), clicked => sub { Gtk2->main_quit }),
+ ),
gtksignal_connect(
Gtk2::Button->new(N("Ok")), clicked => sub {
each_index { $_->get_active and $choice = $::i } @radios;