aboutsummaryrefslogtreecommitdiffstats
path: root/Rpmdrake/gui.pm
diff options
context:
space:
mode:
authorThierry Vignaud <tv@mandriva.org>2007-09-06 09:15:13 +0000
committerThierry Vignaud <tv@mandriva.org>2007-09-06 09:15:13 +0000
commit5f2587ed3b3f7d25642d9682208a3867cef07d08 (patch)
treeafa2f08f5015aa7a22bc90d2bcdc406c4da2c724 /Rpmdrake/gui.pm
parent64e5df791e3d07cdc8a1a4a9540622b4ba334911 (diff)
downloadrpmdrake-5f2587ed3b3f7d25642d9682208a3867cef07d08.tar
rpmdrake-5f2587ed3b3f7d25642d9682208a3867cef07d08.tar.gz
rpmdrake-5f2587ed3b3f7d25642d9682208a3867cef07d08.tar.bz2
rpmdrake-5f2587ed3b3f7d25642d9682208a3867cef07d08.tar.xz
rpmdrake-5f2587ed3b3f7d25642d9682208a3867cef07d08.zip
(add_node,run_treeview_dialog) display package name, version & arch as 3
separate columns rather than raw urpm name; disable fixed mode
Diffstat (limited to 'Rpmdrake/gui.pm')
-rw-r--r--Rpmdrake/gui.pm10
1 files changed, 9 insertions, 1 deletions
diff --git a/Rpmdrake/gui.pm b/Rpmdrake/gui.pm
index 715be140..c7badbfa 100644
--- a/Rpmdrake/gui.pm
+++ b/Rpmdrake/gui.pm
@@ -56,6 +56,9 @@ our %pkg_columns = (
state_icon => 1,
state => 2,
selected => 3,
+ short_name => 4,
+ version => 5,
+ arch => 6,
);
@@ -220,7 +223,12 @@ sub add_node {
if ($leaf) {
my $iter;
if (is_a_package($leaf)) {
- $iter = $w->{detail_list_model}->append_set([ $pkg_columns{text} => $leaf ]);
+ my ($name, $version, $arch) = split_fullname($leaf);
+ $iter = $w->{detail_list_model}->append_set([ $pkg_columns{text} => $leaf,
+ $pkg_columns{short_name} => $name,
+ $pkg_columns{version} => $version,
+ $pkg_columns{arch} => $arch,
+ ]);
set_node_state($iter, $state, $w->{detail_list_model});
$ptree{$leaf} = [ $iter ];
} else {