aboutsummaryrefslogtreecommitdiffstats
path: root/edit-urpm-sources.pl
diff options
context:
space:
mode:
authorRafael Garcia-Suarez <rgarciasuarez@mandriva.org>2005-10-25 15:00:59 +0000
committerRafael Garcia-Suarez <rgarciasuarez@mandriva.org>2005-10-25 15:00:59 +0000
commit1a70995a780bd337f3f576a2c16b511d4a2ba64c (patch)
tree41aa6c7d0a45df5f8f0eace0d44347839c4dd7be /edit-urpm-sources.pl
parent7fc117b5023b925488761ecb3cc31cc1585487d4 (diff)
downloadrpmdrake-1a70995a780bd337f3f576a2c16b511d4a2ba64c.tar
rpmdrake-1a70995a780bd337f3f576a2c16b511d4a2ba64c.tar.gz
rpmdrake-1a70995a780bd337f3f576a2c16b511d4a2ba64c.tar.bz2
rpmdrake-1a70995a780bd337f3f576a2c16b511d4a2ba64c.tar.xz
rpmdrake-1a70995a780bd337f3f576a2c16b511d4a2ba64c.zip
Remove obscure drop-down menu in software media manager
Diffstat (limited to 'edit-urpm-sources.pl')
-rwxr-xr-xedit-urpm-sources.pl41
1 files changed, 0 insertions, 41 deletions
diff --git a/edit-urpm-sources.pl b/edit-urpm-sources.pl
index 879f01b4..74351125 100755
--- a/edit-urpm-sources.pl
+++ b/edit-urpm-sources.pl
@@ -911,47 +911,6 @@ sub mainwindow {
},
);
- my $menu = Gtk2::Menu->new;
- my @menu_actions = ([ 'update_source', N("Update medium") ], [ 'generate_hdlist', N("Regenerate hdlist") ]);
- foreach (@menu_actions) {
- my ($action, $text) = @$_;
- my $row;
- my $select_media = sub {
- $urpm->select_media($urpm->{media}[$row]{name});
- foreach (@{$urpm->{media}}) { #- force ignored media to be returned alive
- $_->{modified} and delete $_->{ignore};
- }
- };
- my %action2fun; %action2fun = (
- update_source => sub {
- slow_func(N("Please wait, updating media..."),
- sub { $urpm->update_media(noclean => 1, nolock => 1) });
- },
- generate_hdlist => sub {
- slow_func(N("Please wait, generating hdlist..."),
- sub { $urpm->update_media(noclean => 1, force => 1, nolock => 1) });
- },
- );
- $menu->append(
- gtksignal_connect(
- gtkshow(Gtk2::MenuItem->new_with_label($text)),
- activate => sub {
- $row = selrow();
- $row == -1 and return;
- $select_media->();
- $action2fun{$action}->();
- },
- )
- );
- }
- $list_tv->signal_connect(
- button_press_event => sub {
- $_[1]->button == 3 or return 0;
- $menu->popup(undef, undef, undef, undef, $_[1]->button, $_[1]->time);
- 1;
- }
- );
-
$reread_media = sub {
my ($name) = @_;
$reorder_ok = 0;