aboutsummaryrefslogtreecommitdiffstats
path: root/rpmdrake.pm
diff options
context:
space:
mode:
authorThierry Vignaud <tvignaud@mandriva.org>2004-03-10 16:47:25 +0000
committerThierry Vignaud <tvignaud@mandriva.org>2004-03-10 16:47:25 +0000
commit6ba1c0fc17470a57ba43dd22bbdeac8002855718 (patch)
tree94cc76bb59d874104dcba2477f125072d2b420bc /rpmdrake.pm
parentf4c637578e95ce4761696b911de5787c33cf8f31 (diff)
downloadrpmdrake-6ba1c0fc17470a57ba43dd22bbdeac8002855718.tar
rpmdrake-6ba1c0fc17470a57ba43dd22bbdeac8002855718.tar.gz
rpmdrake-6ba1c0fc17470a57ba43dd22bbdeac8002855718.tar.bz2
rpmdrake-6ba1c0fc17470a57ba43dd22bbdeac8002855718.tar.xz
rpmdrake-6ba1c0fc17470a57ba43dd22bbdeac8002855718.zip
follow std button order (interface team request)
Diffstat (limited to 'rpmdrake.pm')
-rw-r--r--rpmdrake.pm15
1 files changed, 9 insertions, 6 deletions
diff --git a/rpmdrake.pm b/rpmdrake.pm
index 1b9d1304..995f6628 100644
--- a/rpmdrake.pm
+++ b/rpmdrake.pm
@@ -118,10 +118,12 @@ sub interactive_msg {
my $label = $_;
gtksignal_connect(Gtk2::Button->new($label), clicked => sub { $d->{retval} = $label; Gtk2->main_quit })
} @{$options{yesno}}
- : $options{yesno} ? (gtksignal_connect(Gtk2::Button->new($options{text}{yes} || N("Yes")),
- clicked => sub { $d->{retval} = 1; Gtk2->main_quit }),
- gtksignal_connect(Gtk2::Button->new($options{text}{no} || N("No")),
- clicked => sub { $d->{retval} = 0; Gtk2->main_quit }))
+ : $options{yesno} ? (
+ gtksignal_connect(Gtk2::Button->new($options{text}{no} || N("No")),
+ clicked => sub { $d->{retval} = 0; Gtk2->main_quit }),
+ gtksignal_connect(Gtk2::Button->new($options{text}{yes} || N("Yes")),
+ clicked => sub { $d->{retval} = 1; Gtk2->main_quit }),
+ )
: gtksignal_connect(Gtk2::Button->new(N("Ok")), clicked => sub { Gtk2->main_quit })
)));
$d->main;
@@ -358,7 +360,7 @@ by Mandrake Linux Official Updates.")), return '';
$model and $w->{retval} = { sel => $model->get($iter, 0) };
}
Gtk2->main_quit })
- } ([ N("Ok"), 1 ], [ N("Cancel"), 0 ])),
+ } ([ N("Cancel"), 0 ], [ N("Ok"), 1 ] )),
));
my %roots;
$tree_model->append_set($roots{$_->{land}} ||= $tree_model->append_set(undef, [ 0 => $_->{land} ]),
@@ -463,12 +465,13 @@ sub update_sources_interactive {
(@buttons = map { Gtk2::CheckButton->new($_->{name}) } @{$urpm->{media}}),
Gtk2::HSeparator->new,
gtkpack(create_hbox(),
+ gtksignal_connect(Gtk2::Button->new(N("Cancel")), clicked => sub { $w->{retval} = 0; Gtk2->main_quit }),
gtksignal_connect(Gtk2::Button->new(N("Update")), clicked => sub {
$w->{retval} = any { $_->get_active } @buttons;
@media = map_index { if_($_->get_active, $urpm->{media}[$::i]{name}) } @buttons;
Gtk2->main_quit;
}),
- gtksignal_connect(Gtk2::Button->new(N("Cancel")), clicked => sub { $w->{retval} = 0; Gtk2->main_quit }))));
+ )));
if ($w->main) {
foreach (@{$urpm->{media}}) { #- force ignored media to be returned alive (forked from urpmi.updatemedia...)
$_->{modified} and delete $_->{ignore};