aboutsummaryrefslogtreecommitdiffstats
path: root/MandrivaUpdate
diff options
context:
space:
mode:
authorThierry Vignaud <tv@mandriva.org>2007-10-23 11:48:42 +0000
committerThierry Vignaud <tv@mandriva.org>2007-10-23 11:48:42 +0000
commit7f2fdb9097891665f1119e4ccc18637851c799c0 (patch)
tree101fd6cc63f92eed74f27fbf7aa71092a493d141 /MandrivaUpdate
parent1804d33bd97411b40f708faac382fca4f5ef4c90 (diff)
downloadrpmdrake-7f2fdb9097891665f1119e4ccc18637851c799c0.tar
rpmdrake-7f2fdb9097891665f1119e4ccc18637851c799c0.tar.gz
rpmdrake-7f2fdb9097891665f1119e4ccc18637851c799c0.tar.bz2
rpmdrake-7f2fdb9097891665f1119e4ccc18637851c799c0.tar.xz
rpmdrake-7f2fdb9097891665f1119e4ccc18637851c799c0.zip
(add_node,refresh_packages_list,run_treeview_dialog) split "release"
column from "version" column
Diffstat (limited to 'MandrivaUpdate')
-rwxr-xr-xMandrivaUpdate10
1 files changed, 6 insertions, 4 deletions
diff --git a/MandrivaUpdate b/MandrivaUpdate
index 1a392467..a264e055 100755
--- a/MandrivaUpdate
+++ b/MandrivaUpdate
@@ -48,7 +48,8 @@ use Gtk2::SimpleList;
text => 1,
short_name => 2,
version => 3,
- arch => 4
+ release => 4,
+ arch => 5
);
$ugtk2::wm_icon = "title-$MODE";
@@ -78,8 +79,8 @@ sub refresh_packages_list {
@{$list->{data}} = map {
$data{$_} = $i++;
my $summary = get_summary($_);
- my ($name, $version, $arch) = split_fullname($_);
- [ $pkgs->{$_}{selected}, $_, format_name_n_summary($name, $summary), $version, $arch ];
+ my ($name, $version, $release, $arch) = split_fullname($_);
+ [ $pkgs->{$_}{selected}, $_, format_name_n_summary($name, $summary), $version, $release, $arch ];
} grep { $pkgs->{$_}{pkg} } @requested;
gtktext_insert($info,
formatAlaTeX(N("The list of updates is empty. This means that either there is
@@ -130,6 +131,7 @@ sub run_treeview_dialog {
'' => 'hidden',
" " . N("Name") . " " => 'markup', #N("Name")
" " . N("Version") . " " => 'text',
+ " " . N("Release") . " " => 'text',
" " . N("Arch") . " " => 'text',
),
),
@@ -184,7 +186,7 @@ sub run_treeview_dialog {
$bool_col->set_sort_column_id($pkg_columns{selected});
# -1 because actual widget count differs from TreeModel one due to the hidden column:
- foreach (@pkg_columns{qw(short_name version arch)}) {
+ foreach (@pkg_columns{qw(short_name version release arch)}) {
my $col = $list->get_column($_-1);
($col->get_cell_renderers)[0]->set_property('xpad', '6');
$col->set_sizing('autosize');