pidgin.custom_smiley: fb801dc3: Fix a small leak. And sort the smileys a...

sadrul at pidgin.im sadrul at pidgin.im
Mon Apr 28 03:45:43 EDT 2008


-----------------------------------------------------------------
Revision: fb801dc3cb44bc81a383a9e0a44ba099a3e99d1e
Ancestor: ecbdfa4082a0e9f3e56cdbe7ebca8f3a00d6d0d9
Author: sadrul at pidgin.im
Date: 2008-04-28T07:43:50
Branch: im.pidgin.pidgin.custom_smiley
URL: http://d.pidgin.im/viewmtn/revision/info/fb801dc3cb44bc81a383a9e0a44ba099a3e99d1e

Modified files:
        pidgin/gtksmiley.c

ChangeLog: 

Fix a small leak. And sort the smileys alphabetically, as suggested by
Masca and Twain28. References #1187.

-------------- next part --------------
============================================================
--- pidgin/gtksmiley.c	f2dbe56a772714fab183a8ca7951b8a59c75b58a
+++ pidgin/gtksmiley.c	016e1dc7a68c25d1b60d224e75e68f7819737e92
@@ -525,8 +525,9 @@ static GtkWidget *smiley_list_create(Smi
 	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);
 	gtk_container_add(GTK_CONTAINER(sw), treeview);


More information about the Commits mailing list