summaryrefslogtreecommitdiff
path: root/client/gtk.c
diff options
context:
space:
mode:
authorSamuel Lidén Borell <samuel@slbdata.se>2011-07-13 17:46:15 +0200
committerSamuel Lidén Borell <samuel@slbdata.se>2011-07-13 17:46:15 +0200
commit19974232c31365f64b714b14fa249bb425a67db2 (patch)
tree57ae1c11f34ba0ace2d0f5bec4ae9dda9fc568ab /client/gtk.c
parentc6aac2eafde00873bc8cbda869c3b785cbcf36e3 (diff)
downloadfribid-19974232c31365f64b714b14fa249bb425a67db2.tar.gz
fribid-19974232c31365f64b714b14fa249bb425a67db2.tar.bz2
fribid-19974232c31365f64b714b14fa249bb425a67db2.zip
Sort the tokens by their display name
Diffstat (limited to 'client/gtk.c')
-rw-r--r--client/gtk.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/client/gtk.c b/client/gtk.c
index 5001c9c..7bc5ab7 100644
--- a/client/gtk.c
+++ b/client/gtk.c
@@ -299,6 +299,10 @@ void platform_startSign(const char *url, const char *hostname, const char *ip,
gtk_cell_layout_set_attributes(GTK_CELL_LAYOUT(tokenCombo),
renderer, "text", 0, (char *)NULL);
+ // Set displayname as the sort column
+ GtkTreeSortable *sortable = GTK_TREE_SORTABLE(tokens);
+ gtk_tree_sortable_set_sort_column_id(sortable, 0, GTK_SORT_ASCENDING);
+
// Used to dim the "Sign" button when no signature has been selected
g_signal_connect(G_OBJECT(tokenCombo), "changed",
G_CALLBACK(validateDialog), NULL);