evolution-data-server r9452 - trunk/libedataserverui



Author: mbarnes
Date: Sun Aug 31 15:31:56 2008
New Revision: 9452
URL: http://svn.gnome.org/viewvc/evolution-data-server?rev=9452&view=rev

Log:
2008-08-31  Matthew Barnes  <mbarnes redhat com>

	** Fixes bug #466754 (patch by Vingnesh Prabhu)

	* libedataserverui/e-categories-dialog.c (e_categories_dialog_init):
	Sort the model itself by category name, so that new categories
	appear in the appropriate place in the list.



Modified:
   trunk/libedataserverui/ChangeLog
   trunk/libedataserverui/e-categories-dialog.c

Modified: trunk/libedataserverui/e-categories-dialog.c
==============================================================================
--- trunk/libedataserverui/e-categories-dialog.c	(original)
+++ trunk/libedataserverui/e-categories-dialog.c	Sun Aug 31 15:31:56 2008
@@ -426,7 +426,11 @@
 	gtk_window_set_title (GTK_WINDOW (dialog), _("Categories"));
 
 	/* set up the categories list */
-	model = gtk_list_store_new (N_COLUMNS, G_TYPE_BOOLEAN, GDK_TYPE_PIXBUF, G_TYPE_STRING);
+	model = gtk_list_store_new (
+		N_COLUMNS, G_TYPE_BOOLEAN, GDK_TYPE_PIXBUF, G_TYPE_STRING);
+	gtk_tree_sortable_set_sort_column_id (
+		GTK_TREE_SORTABLE (model),
+		COLUMN_CATEGORY, GTK_SORT_ASCENDING);
 	cat_list = e_categories_get_list ();
 	while (cat_list != NULL) {
 		GtkTreeIter iter;



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]