changeset 23130:a3b4a9061552

Fix a small leak. And sort the smileys alphabetically, as suggested by Masca and Twain28. References #1187.
author Sadrul Habib Chowdhury <imadil@gmail.com>
date Mon, 28 Apr 2008 07:43:50 +0000
parents b70b4108799e
children ac567757d236
files pidgin/gtksmiley.c
diffstat 1 files changed, 2 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/pidgin/gtksmiley.c	Mon Apr 28 06:29:26 2008 +0000
+++ b/pidgin/gtksmiley.c	Mon Apr 28 07:43:50 2008 +0000
@@ -525,7 +525,8 @@
 	treeview = gtk_tree_view_new_with_model(GTK_TREE_MODEL(dialog->model));
 	dialog->treeview = treeview;
 	gtk_tree_view_set_rules_hint(GTK_TREE_VIEW(treeview), TRUE);
-
+	gtk_tree_sortable_set_sort_column_id(GTK_TREE_SORTABLE(dialog->model), SHORTCUT, GTK_SORT_ASCENDING);
+	g_object_unref(G_OBJECT(dialog->model));
 
 	sel = gtk_tree_view_get_selection(GTK_TREE_VIEW(treeview));
 	gtk_tree_selection_set_mode(sel, GTK_SELECTION_MULTIPLE);