[Xfce4-commits] <xfce4-settings:jeromeg/settings-editor> Make the columns of the tree view resizable.

Jérôme Guelfucci noreply at xfce.org
Fri Jan 8 16:38:01 CET 2010


Updating branch refs/heads/jeromeg/settings-editor
         to 1acb852c0a1e5ee9bfa1ea28d3a740b76caa4d63 (commit)
       from 83226dd0a6bf6a00ea7e597a20288215c0efb838 (commit)

commit 1acb852c0a1e5ee9bfa1ea28d3a740b76caa4d63
Author: Jérôme Guelfucci <jeromeg at xfce.org>
Date:   Fri Jan 8 16:22:52 2010 +0100

    Make the columns of the tree view resizable.

 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 afaafbe..0a50d9c 100644
--- a/xfce4-settings-editor/main_window.c
+++ b/xfce4-settings-editor/main_window.c
@@ -168,6 +168,12 @@ 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 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);
+    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);
+
     /* 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), NULL);
 



More information about the Xfce4-commits mailing list