Mailinglist Archive: yast-commit (535 mails)

< Previous Next >
[yast-commit] r41246 - in /trunk/gtk: ChangeLog src/YGPackageSelector.cc
  • From: btimothy@xxxxxxxxxxxxxxxx
  • Date: Wed, 03 Oct 2007 16:31:06 -0000
  • Message-id: <20071003163106.DEE972FC98@xxxxxxxxxxxxxxxx>
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@xxxxxxxxxx>

        * 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@xxxxxxxxxx>
+
+       * 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@xxxxxxxxxx>
 
        * 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@xxxxxxxxxxxx
For additional commands, e-mail: yast-commit+help@xxxxxxxxxxxx

< Previous Next >
This Thread
  • No further messages