# HG changeset patch # User Sadrul Habib Chowdhury # Date 1209368630 0 # Node ID a3b4a9061552bdd1da4b1a07d08a95ee6b45121a # Parent b70b4108799ef1ae4c5f7f100519bb47b310cfe1 Fix a small leak. And sort the smileys alphabetically, as suggested by Masca and Twain28. References #1187. diff -r b70b4108799e -r a3b4a9061552 pidgin/gtksmiley.c --- 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);