aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorThierry Vignaud <tv@mandriva.org>2008-02-26 15:49:49 +0000
committerThierry Vignaud <tv@mandriva.org>2008-02-26 15:49:49 +0000
commitfa83ebdc87fbe460221144ed8e17d18b3bdeda10 (patch)
treef916f0a8d546476c2f0e2be55d95f55f54246691
parent18e73509c1663162ada8ef9d80fa5589eb59e450 (diff)
downloadrpmdrake-fa83ebdc87fbe460221144ed8e17d18b3bdeda10.tar
rpmdrake-fa83ebdc87fbe460221144ed8e17d18b3bdeda10.tar.gz
rpmdrake-fa83ebdc87fbe460221144ed8e17d18b3bdeda10.tar.bz2
rpmdrake-fa83ebdc87fbe460221144ed8e17d18b3bdeda10.tar.xz
rpmdrake-fa83ebdc87fbe460221144ed8e17d18b3bdeda10.zip
revert latest commit
-rwxr-xr-xrpmdrake8
1 files changed, 3 insertions, 5 deletions
diff --git a/rpmdrake b/rpmdrake
index ed38782b..71c9e832 100755
--- a/rpmdrake
+++ b/rpmdrake
@@ -236,8 +236,6 @@ sub run_treeview_dialog {
$col_sel->set_sizing('fixed');
$col_sel->set_sort_column_id($pkg_columns{selected});
- my @columns = qw(name version release), if_($display_arch_col, 'arch');
-
my %columns = (
'name' => {
title => N("Package"),
@@ -258,7 +256,7 @@ sub run_treeview_dialog {
text => $pkg_columns{arch},
},
);
- foreach my $col (@columns{@columns}) {
+ foreach my $col (@columns{qw(name version release arch)}) {
$detail_list->append_column(
$col->{widget} =
Gtk2::TreeViewColumn->new_with_attributes(' ' . $col->{title} . ' ',
@@ -268,10 +266,10 @@ sub run_treeview_dialog {
);
$col->{widget}->set_sort_column_id($col->{markup} ? $col->{markup} : $col->{text});
}
- $columns{$_}{widget}->set_sizing('autosize') foreach @columns;
+ $columns{$_}{widget}->set_sizing('autosize') foreach qw(name version release arch);
$columns{name}{widget}->set_property('expand', '1');
$columns{name}{renderer}->set_property('ellipsize', 'end');
- $columns{$_}{renderer}->set_property('xpad', '6') foreach @columns;
+ $columns{$_}{renderer}->set_property('xpad', '6') foreach qw(name version release arch);
$columns{name}{widget}->set_resizable(1);
$detail_list_model->set_sort_column_id($pkg_columns{text}, 'ascending');
$detail_list_model->set_sort_func($pkg_columns{version}, \&sort_callback);