diff options
author | Rafael Garcia-Suarez <rgarciasuarez@mandriva.org> | 2004-08-24 03:43:34 +0000 |
---|---|---|
committer | Rafael Garcia-Suarez <rgarciasuarez@mandriva.org> | 2004-08-24 03:43:34 +0000 |
commit | 74be4b771450ab8ed0c2eabe06bb9395a898f514 (patch) | |
tree | 50718fa4243bd46bd242c38f74b04b116beb591f | |
parent | 1d38ec46ade84fed4d411b87c2e16601e719f444 (diff) | |
download | rpmdrake-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-x | rpmdrake | 11 |
1 files changed, 11 insertions, 0 deletions
@@ -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 }, ) |