Updating branch refs/heads/master to 3cf812d8d732c5cab9151acf1c07511f8b76eeca (commit) from 01aa823b9fa7e2ef920f3a72533090993ad8f1b7 (commit)
commit 3cf812d8d732c5cab9151acf1c07511f8b76eeca Author: Jérôme Guelfucci <jero...@xfce.org> Date: Thu Feb 17 00:26:02 2011 +0100 Make columns sortable (bug #7145). xfce4-settings-editor/main_window.c | 6 +++++- 1 files changed, 5 insertions(+), 1 deletions(-) diff --git a/xfce4-settings-editor/main_window.c b/xfce4-settings-editor/main_window.c index 5d659c7..34c51c5 100644 --- a/xfce4-settings-editor/main_window.c +++ b/xfce4-settings-editor/main_window.c @@ -99,7 +99,7 @@ print_list (gpointer data, gpointer user_data); GtkDialog * xfce4_settings_editor_main_window_new(void) { - gint width, height, position; + gint width, height, position, i; GObject *dialog; GObject *channel_treeview; GObject *property_treeview; @@ -178,6 +178,10 @@ xfce4_settings_editor_main_window_new(void) renderer = gtk_cell_renderer_text_new(); gtk_tree_view_insert_column_with_attributes (GTK_TREE_VIEW (property_treeview), 3, _("Value"), renderer, "text", 3, NULL); + /* Allow the user to sort the column items by clicking on headers */ + for (i = 0; i < 4; i++) + gtk_tree_view_column_set_sort_column_id (gtk_tree_view_get_column (GTK_TREE_VIEW (property_treeview), i), i); + /* Allow the user to resize the columns */ gtk_tree_view_column_set_resizable (gtk_tree_view_get_column (GTK_TREE_VIEW (property_treeview), 0), TRUE); gtk_tree_view_column_set_resizable (gtk_tree_view_get_column (GTK_TREE_VIEW (property_treeview), 1), TRUE); _______________________________________________ Xfce4-commits mailing list Xfce4-commits@xfce.org http://foo-projects.org/mailman/listinfo/xfce4-commits