aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorThierry Vignaud <tv@mandriva.org>2008-03-17 21:21:53 +0000
committerThierry Vignaud <tv@mandriva.org>2008-03-17 21:21:53 +0000
commitacc76c2ac5fd1aeea737b0b0e03518a936796d33 (patch)
tree889147fbd4ebac19a4a027e8343e0cfe284006d3
parent78538fce01546795f0ba5776e2fa63a7353ed428 (diff)
downloadrpmdrake-acc76c2ac5fd1aeea737b0b0e03518a936796d33.tar
rpmdrake-acc76c2ac5fd1aeea737b0b0e03518a936796d33.tar.gz
rpmdrake-acc76c2ac5fd1aeea737b0b0e03518a936796d33.tar.bz2
rpmdrake-acc76c2ac5fd1aeea737b0b0e03518a936796d33.tar.xz
rpmdrake-acc76c2ac5fd1aeea737b0b0e03518a936796d33.zip
(build_tree,run_treeview_dialog) do the sort when filling in the tree
in "by_group" mode rather than setting it as a tree propriety (needed before resurecting flat mode)
-rw-r--r--Rpmdrake/gui.pm2
-rwxr-xr-xrpmdrake2
2 files changed, 2 insertions, 2 deletions
diff --git a/Rpmdrake/gui.pm b/Rpmdrake/gui.pm
index fa211588..ffe4fe04 100644
--- a/Rpmdrake/gui.pm
+++ b/Rpmdrake/gui.pm
@@ -865,7 +865,7 @@ or you already installed all of them."));
#- we populate all the groups tree at first
%$elems = ();
# better loop on packages, create groups tree and push packages in the proper place:
- foreach my $pkg (@elems) {
+ foreach my $pkg (sort @elems) {
my $grp = $pkg->[1];
add_parent($grp);
$elems->{$grp} ||= [];
diff --git a/rpmdrake b/rpmdrake
index dadab83e..1f181564 100755
--- a/rpmdrake
+++ b/rpmdrake
@@ -290,7 +290,7 @@ sub run_treeview_dialog {
$columns{name}{renderer}->set_property('ellipsize', 'end');
$columns{$_}{renderer}->set_property('xpad', '6') foreach @columns;
$columns{name}{widget}->set_resizable(1);
- $detail_list_model->set_sort_column_id($pkg_columns{text}, 'ascending');
+ #$detail_list_model->set_sort_column_id($pkg_columns{text}, 'ascending');
$detail_list_model->set_sort_func($pkg_columns{version}, \&sort_callback);
$detail_list->set_rules_hint(1);