diff options
author | Thierry Vignaud <tv@mandriva.org> | 2008-03-17 21:21:53 +0000 |
---|---|---|
committer | Thierry Vignaud <tv@mandriva.org> | 2008-03-17 21:21:53 +0000 |
commit | acc76c2ac5fd1aeea737b0b0e03518a936796d33 (patch) | |
tree | 889147fbd4ebac19a4a027e8343e0cfe284006d3 | |
parent | 78538fce01546795f0ba5776e2fa63a7353ed428 (diff) | |
download | rpmdrake-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.pm | 2 | ||||
-rwxr-xr-x | rpmdrake | 2 |
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} ||= []; @@ -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); |