changeset 10422:e0cf2f3f9929

[gaim-migrate @ 11673] Sort the statuses by title, by default. Thanks to Gary for some 'elp 'ere. committer: Tailor Script <tailor@pidgin.im>
author Mark Doliner <mark@kingant.net>
date Sun, 26 Dec 2004 05:56:18 +0000
parents ee56a3e54fbd
children 3232e1a33899
files src/gtksavedstatuses.c
diffstat 1 files changed, 5 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/src/gtksavedstatuses.c	Sun Dec 26 05:34:49 2004 +0000
+++ b/src/gtksavedstatuses.c	Sun Dec 26 05:56:18 2004 +0000
@@ -285,7 +285,6 @@
 	gtk_container_add(GTK_CONTAINER(sw), treeview);
 	gtk_widget_show(treeview);
 
-
 	/* Add columns */
 	column = gtk_tree_view_column_new();
 	gtk_tree_view_column_set_title(column, _("Title"));
@@ -320,6 +319,11 @@
 	gtk_tree_view_column_add_attribute(column, renderer, "text",
 									   STATUS_WINDOW_COLUMN_MESSAGE);
 
+	/* Sort the title column by default */
+	gtk_tree_sortable_set_sort_column_id(GTK_TREE_SORTABLE(dialog->model),
+										 STATUS_WINDOW_COLUMN_TITLE,
+										 GTK_SORT_ASCENDING);
+
 	/* Populate list */
 	populate_saved_status_list(dialog);