aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRafael Garcia-Suarez <rgarciasuarez@mandriva.org>2004-08-24 03:43:34 +0000
committerRafael Garcia-Suarez <rgarciasuarez@mandriva.org>2004-08-24 03:43:34 +0000
commit74be4b771450ab8ed0c2eabe06bb9395a898f514 (patch)
tree50718fa4243bd46bd242c38f74b04b116beb591f
parent1d38ec46ade84fed4d411b87c2e16601e719f444 (diff)
downloadrpmdrake-74be4b771450ab8ed0c2eabe06bb9395a898f514.tar
rpmdrake-74be4b771450ab8ed0c2eabe06bb9395a898f514.tar.gz
rpmdrake-74be4b771450ab8ed0c2eabe06bb9395a898f514.tar.bz2
rpmdrake-74be4b771450ab8ed0c2eabe06bb9395a898f514.tar.xz
rpmdrake-74be4b771450ab8ed0c2eabe06bb9395a898f514.zip
Add a button "update media" in the button bar. This was already available
as a contextual menu, but it's more obvious that it's possible to update media from rpmdrake if something announces it.
-rwxr-xr-xrpmdrake11
1 files changed, 11 insertions, 0 deletions
diff --git a/rpmdrake b/rpmdrake
index 60957d22..f3eaab63 100755
--- a/rpmdrake
+++ b/rpmdrake
@@ -1045,6 +1045,17 @@ Is it ok to continue?",
clicked => sub { $do_action->() },
),
0, gtksignal_connect(
+ Gtk2::Button->new(but_(N("Update media"))),
+ clicked => sub {
+ update_sources_interactive($urpm, transient => $w->{rwindow})
+ and do {
+ ($urpm, $pkgs, $descriptions) = $pkgs_provider->({ skip_updating_mu => 1 });
+ $size_selected = 0;
+ $options->{rebuild_tree}->();
+ };
+ }
+ ),
+ 0, gtksignal_connect(
Gtk2::Button->new(but_(N("Quit"))),
clicked => sub { Gtk2->main_quit },
)