aboutsummaryrefslogtreecommitdiffstats
path: root/Rpmdrake
diff options
context:
space:
mode:
authorThierry Vignaud <tv@mandriva.org>2007-09-03 09:51:06 +0000
committerThierry Vignaud <tv@mandriva.org>2007-09-03 09:51:06 +0000
commit2603c7fe6a4e63559097d02c822350066b4a78ca (patch)
tree49c266511237fe352661edc4e8b3fbef0c46929b /Rpmdrake
parent25bebbddfc0d99e8bc7f7d1d2c41dc0646984d59 (diff)
downloadrpmdrake-2603c7fe6a4e63559097d02c822350066b4a78ca.tar
rpmdrake-2603c7fe6a4e63559097d02c822350066b4a78ca.tar.gz
rpmdrake-2603c7fe6a4e63559097d02c822350066b4a78ca.tar.bz2
rpmdrake-2603c7fe6a4e63559097d02c822350066b4a78ca.tar.xz
rpmdrake-2603c7fe6a4e63559097d02c822350066b4a78ca.zip
(mainwindow) display media type in media list (#25043)
Diffstat (limited to 'Rpmdrake')
-rwxr-xr-xRpmdrake/edit_urpm_sources.pm7
1 files changed, 5 insertions, 2 deletions
diff --git a/Rpmdrake/edit_urpm_sources.pm b/Rpmdrake/edit_urpm_sources.pm
index 801284c3..53ed8a8d 100755
--- a/Rpmdrake/edit_urpm_sources.pm
+++ b/Rpmdrake/edit_urpm_sources.pm
@@ -48,7 +48,8 @@ my %col = (
mainw => {
is_enabled => 0,
is_update => 1,
- name => 2,
+ type => 2,
+ name => 3,
},
);
@@ -1013,7 +1014,7 @@ sub mainwindow() {
),
);
- my $list = Gtk2::ListStore->new("Glib::Boolean", "Glib::Boolean", "Glib::String");
+ my $list = Gtk2::ListStore->new("Glib::Boolean", "Glib::Boolean", "Glib::String", "Glib::String");
$list_tv = Gtk2::TreeView->new_with_model($list);
$list_tv->get_selection->set_mode('multiple');
my ($dw_button, $edit_button, $remove_button, $up_button);
@@ -1058,6 +1059,7 @@ sub mainwindow() {
$list_tv->append_column(Gtk2::TreeViewColumn->new_with_attributes(N("Enabled"), my $tr = Gtk2::CellRendererToggle->new, 'active' => $col{mainw}{is_enabled}));
$list_tv->append_column(Gtk2::TreeViewColumn->new_with_attributes(N("Updates"), my $cu = Gtk2::CellRendererToggle->new, 'active' => $col{mainw}{is_update}));
+ $list_tv->append_column(Gtk2::TreeViewColumn->new_with_attributes(N("Type"), Gtk2::CellRendererText->new, 'text' => $col{mainw}{type}));
$list_tv->append_column(Gtk2::TreeViewColumn->new_with_attributes(N("Medium"), Gtk2::CellRendererText->new, 'text' => $col{mainw}{name}));
$reread_media; #- closure defined later
@@ -1113,6 +1115,7 @@ sub mainwindow() {
foreach (grep { ! $_->{external} } @{$urpm->{media}}) {
$list->append_set($col{mainw}{is_enabled} => !$_->{ignore},
$col{mainw}{is_update} => ! !$_->{update},
+ $col{mainw}{type} => get_medium_type($_),
$col{mainw}{name} => $_->{name});
}
$reorder_ok = 1;