[Xfce4-commits] <xfce4-settings:master> Sort the contents of the tree views.
Jérôme Guelfucci
noreply at xfce.org
Tue Jan 19 19:34:35 CET 2010
Updating branch refs/heads/master
to 3aef0f4ae4596ed2aa9b3ac7a8d128a9bdaf22fe (commit)
from f2053975a415ceafbc7ce1fe749470851d0343a5 (commit)
commit 3aef0f4ae4596ed2aa9b3ac7a8d128a9bdaf22fe
Author: Jérôme Guelfucci <jeromeg at xfce.org>
Date: Fri Jan 15 16:56:25 2010 +0100
Sort the contents of the tree views.
xfce4-settings-editor/main_window.c | 6 ++++++
1 files changed, 6 insertions(+), 0 deletions(-)
diff --git a/xfce4-settings-editor/main_window.c b/xfce4-settings-editor/main_window.c
index 57b9a57..d090d3f 100644
--- a/xfce4-settings-editor/main_window.c
+++ b/xfce4-settings-editor/main_window.c
@@ -152,6 +152,9 @@ xfce4_settings_editor_main_window_new(void)
renderer = gtk_cell_renderer_text_new();
gtk_tree_view_insert_column_with_attributes (GTK_TREE_VIEW (channel_treeview), 1, _("Channel"), renderer, "text", 0, NULL);
+ /* Set sorting */
+ gtk_tree_sortable_set_sort_column_id (GTK_TREE_SORTABLE (channel_tree_store), 0, GTK_SORT_ASCENDING);
+
/*
* property list
*/
@@ -177,6 +180,9 @@ xfce4_settings_editor_main_window_new(void)
gtk_tree_view_column_set_resizable (gtk_tree_view_get_column (GTK_TREE_VIEW (property_treeview), 2), TRUE);
gtk_tree_view_column_set_resizable (gtk_tree_view_get_column (GTK_TREE_VIEW (property_treeview), 3), TRUE);
+ /* Set sorting */
+ gtk_tree_sortable_set_sort_column_id (GTK_TREE_SORTABLE (property_tree_store), 0, GTK_SORT_ASCENDING);
+
/* improve usability by expanding nodes when clicking on them */
g_signal_connect (G_OBJECT (property_treeview), "row-activated", G_CALLBACK (cb_property_treeview_row_activated), builder);
More information about the Xfce4-commits
mailing list