aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRafael Garcia-Suarez <rgarciasuarez@mandriva.org>2004-11-30 16:49:54 +0000
committerRafael Garcia-Suarez <rgarciasuarez@mandriva.org>2004-11-30 16:49:54 +0000
commit41faf672ed73529bbf1cca42ffa511964c980af2 (patch)
tree1993624c60d1136c271e5dd5ee5bd5e2a62570e4
parent261c6deef12d30be9a575119226fb912ddb19b76 (diff)
downloadrpmdrake-41faf672ed73529bbf1cca42ffa511964c980af2.tar
rpmdrake-41faf672ed73529bbf1cca42ffa511964c980af2.tar.gz
rpmdrake-41faf672ed73529bbf1cca42ffa511964c980af2.tar.bz2
rpmdrake-41faf672ed73529bbf1cca42ffa511964c980af2.tar.xz
rpmdrake-41faf672ed73529bbf1cca42ffa511964c980af2.zip
Add a "select all" button to the media selection window for manual media
update
-rw-r--r--rpmdrake.pm6
1 files changed, 5 insertions, 1 deletions
diff --git a/rpmdrake.pm b/rpmdrake.pm
index f71e0858..dac04dbb 100644
--- a/rpmdrake.pm
+++ b/rpmdrake.pm
@@ -617,6 +617,10 @@ sub update_sources_interactive {
clicked => sub { $w->{retval} = 0; Gtk2->main_quit },
),
gtksignal_connect(
+ Gtk2::Button->new(N("Select all")),
+ clicked => sub { $_->set_active(1) foreach @buttons },
+ ),
+ gtksignal_connect(
Gtk2::Button->new(N("Update")),
clicked => sub {
$w->{retval} = any { $_->get_active } @buttons;
@@ -630,7 +634,7 @@ sub update_sources_interactive {
)
);
if ($w->main) {
- #- force ignored media to be returned alive (forked from urpmi.updatemedia...)
+ #- force ignored media to be returned alive (forked from urpmi.update...)
foreach (@{$urpm->{media}}) {
$_->{modified} and delete $_->{ignore};
}