changeset 32672:fa4b88cf8b56

Sort the variant list in the Preferences. It tends to be very long, so it shouldn't be done at load time, but its average length dictates that it should be done for the UI, at least.
author Elliott Sales de Andrade <qulogic@pidgin.im>
date Fri, 23 Sep 2011 18:24:01 +0000
parents 73d04f4b18ee
children 1bcedeb32bb4
files pidgin/gtkprefs.c
diffstat 1 files changed, 3 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/pidgin/gtkprefs.c	Fri Sep 23 17:50:24 2011 +0000
+++ b/pidgin/gtkprefs.c	Fri Sep 23 18:24:01 2011 +0000
@@ -1247,6 +1247,9 @@
 		vbox, combo_sg, label_sg, prefs_conv_variants,
 		(GCallback)prefs_set_conv_variant_cb, NULL, _("\tVariant:"));
 
+	gtk_tree_sortable_set_sort_column_id(GTK_TREE_SORTABLE(prefs_conv_variants),
+	                                     0, GTK_SORT_ASCENDING);
+
 	/* Status Icon Themes */
 	prefs_status_themes_combo_box = add_theme_prefs_combo(
 		vbox, combo_sg, label_sg, prefs_status_icon_themes,