![](https://seccdn.libravatar.org/avatar/406dd926d6b1215f2a3d173123767b39.jpg?s=120&d=mm&r=g)
Author: btimothy Date: Wed Oct 3 18:31:06 2007 New Revision: 41246 URL: http://svn.opensuse.org/viewcvs/yast?rev=41246&view=rev Log: 2007-10-03 Boyd Timothy <btimothy@novell.com> * src/YGPackageSelector.cc: Use the "available" name to sort the tree views. This makes the Available Software list be sorted properly. Modified: trunk/gtk/ChangeLog trunk/gtk/src/YGPackageSelector.cc Modified: trunk/gtk/ChangeLog URL: http://svn.opensuse.org/viewcvs/yast/trunk/gtk/ChangeLog?rev=41246&r1=41245&r2=41246&view=diff ============================================================================== --- trunk/gtk/ChangeLog (original) +++ trunk/gtk/ChangeLog Wed Oct 3 18:31:06 2007 @@ -1,3 +1,9 @@ +2007-10-03 Boyd Timothy <btimothy@novell.com> + + * src/YGPackageSelector.cc: Use the "available" name to sort + the tree views. This makes the Available Software list be + sorted properly. + 2007-10-03 Michael Meeks <michael.meeks@novell.com> * src/YGPackageSelector.cc: don't re-render the progress bar Modified: trunk/gtk/src/YGPackageSelector.cc URL: http://svn.opensuse.org/viewcvs/yast/trunk/gtk/src/YGPackageSelector.cc?rev=41246&r1=41245&r2=41246&view=diff ============================================================================== --- trunk/gtk/src/YGPackageSelector.cc (original) +++ trunk/gtk/src/YGPackageSelector.cc Wed Oct 3 18:31:06 2007 @@ -1341,10 +1341,11 @@ g_object_unref (G_OBJECT (installed_model)); g_object_unref (G_OBJECT (available_model)); + // use the "available" name to do the sorting GtkTreeSortable *sortable = GTK_TREE_SORTABLE (model); - gtk_tree_sortable_set_sort_func (sortable, 1, YGUtils::sort_compare_cb, - GINT_TO_POINTER (1), NULL); - gtk_tree_sortable_set_sort_column_id (sortable, 1, GTK_SORT_ASCENDING); + gtk_tree_sortable_set_sort_func (sortable, 2, YGUtils::sort_compare_cb, + GINT_TO_POINTER (2), NULL); + gtk_tree_sortable_set_sort_column_id (sortable, 2, GTK_SORT_ASCENDING); gtk_widget_destroy (dialog); } -- To unsubscribe, e-mail: yast-commit+unsubscribe@opensuse.org For additional commands, e-mail: yast-commit+help@opensuse.org