changeset 11794:f5105a2b8bf6

[gaim-migrate @ 14085] Made the plugins dialog's treeview sortable. This acts kind of goofy when you sort on the enabled column because of the sort arrow thingy, but it works.. committer: Tailor Script <tailor@pidgin.im>
author Gary Kramlich <grim@reaperworld.com>
date Mon, 24 Oct 2005 07:39:57 +0000
parents dfdc286878f9
children f48e2acaa5d2
files src/gtkplugin.c
diffstat 1 files changed, 2 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/src/gtkplugin.c	Mon Oct 24 06:06:51 2005 +0000
+++ b/src/gtkplugin.c	Mon Oct 24 07:39:57 2005 +0000
@@ -327,6 +327,7 @@
 							"active", 0,
 							NULL);
 	gtk_tree_view_append_column (GTK_TREE_VIEW(event_view), col);
+	gtk_tree_view_column_set_sort_column_id(col, 0);
 	g_signal_connect (G_OBJECT(rend), "toggled",
 			  G_CALLBACK(plugin_load), ls);
    
@@ -340,6 +341,7 @@
 	g_object_set(rendt, "ellipsize", PANGO_ELLIPSIZE_END, NULL);
 #endif
 	gtk_tree_view_append_column (GTK_TREE_VIEW(event_view), col);
+	gtk_tree_view_column_set_sort_column_id(col, 1);
 	g_object_unref(G_OBJECT(ls));
 	gtk_container_add(GTK_CONTAINER(sw), event_view);