comparison pidgin/gtksmiley.c @ 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 9c0a47402f7a
comparison
equal deleted inserted replaced
23129:b70b4108799e 23130:a3b4a9061552
523 523
524 /* the actual treeview */ 524 /* the actual treeview */
525 treeview = gtk_tree_view_new_with_model(GTK_TREE_MODEL(dialog->model)); 525 treeview = gtk_tree_view_new_with_model(GTK_TREE_MODEL(dialog->model));
526 dialog->treeview = treeview; 526 dialog->treeview = treeview;
527 gtk_tree_view_set_rules_hint(GTK_TREE_VIEW(treeview), TRUE); 527 gtk_tree_view_set_rules_hint(GTK_TREE_VIEW(treeview), TRUE);
528 528 gtk_tree_sortable_set_sort_column_id(GTK_TREE_SORTABLE(dialog->model), SHORTCUT, GTK_SORT_ASCENDING);
529 g_object_unref(G_OBJECT(dialog->model));
529 530
530 sel = gtk_tree_view_get_selection(GTK_TREE_VIEW(treeview)); 531 sel = gtk_tree_view_get_selection(GTK_TREE_VIEW(treeview));
531 gtk_tree_selection_set_mode(sel, GTK_SELECTION_MULTIPLE); 532 gtk_tree_selection_set_mode(sel, GTK_SELECTION_MULTIPLE);
532 gtk_container_add(GTK_CONTAINER(sw), treeview); 533 gtk_container_add(GTK_CONTAINER(sw), treeview);
533 534