From: pmf Date: Mon, 15 Oct 2007 18:54:39 +0000 (+0000) Subject: controlflow view: make columns resizable by user X-Git-Tag: v0.12.20~792 X-Git-Url: https://git.lttng.org./?a=commitdiff_plain;h=8badf73a4acfc1b9d1ff2c8c2f04c0ed8feaa1cf;p=lttv.git controlflow view: make columns resizable by user This is useful when process names are very long. git-svn-id: http://ltt.polymtl.ca/svn@2697 04897980-b3bd-0310-b5e0-8ef037075253 --- diff --git a/ltt/branches/poly/lttv/modules/gui/controlflow/processlist.c b/ltt/branches/poly/lttv/modules/gui/controlflow/processlist.c index 8d941332..9401d81a 100644 --- a/ltt/branches/poly/lttv/modules/gui/controlflow/processlist.c +++ b/ltt/branches/poly/lttv/modules/gui/controlflow/processlist.c @@ -427,7 +427,8 @@ ProcessList *processlist_construct(void) PROCESS_COLUMN, NULL); gtk_tree_view_column_set_alignment (column, 0.0); - gtk_tree_view_column_set_fixed_width (column, 45); + gtk_tree_view_column_set_sizing(column, GTK_TREE_VIEW_COLUMN_GROW_ONLY); + gtk_tree_view_column_set_resizable(column, TRUE); gtk_tree_view_append_column ( GTK_TREE_VIEW (process_list->process_list_widget), column); @@ -439,7 +440,8 @@ ProcessList *processlist_construct(void) BRAND_COLUMN, NULL); gtk_tree_view_column_set_alignment (column, 0.0); - gtk_tree_view_column_set_fixed_width (column, 45); + gtk_tree_view_column_set_sizing(column, GTK_TREE_VIEW_COLUMN_GROW_ONLY); + gtk_tree_view_column_set_resizable(column, TRUE); gtk_tree_view_append_column ( GTK_TREE_VIEW (process_list->process_list_widget), column); @@ -448,6 +450,8 @@ ProcessList *processlist_construct(void) "text", PID_COLUMN, NULL); + gtk_tree_view_column_set_sizing(column, GTK_TREE_VIEW_COLUMN_GROW_ONLY); + gtk_tree_view_column_set_resizable(column, TRUE); gtk_tree_view_append_column ( GTK_TREE_VIEW (process_list->process_list_widget), column); @@ -456,6 +460,8 @@ ProcessList *processlist_construct(void) "text", TGID_COLUMN, NULL); + gtk_tree_view_column_set_sizing(column, GTK_TREE_VIEW_COLUMN_GROW_ONLY); + gtk_tree_view_column_set_resizable(column, TRUE); gtk_tree_view_append_column ( GTK_TREE_VIEW (process_list->process_list_widget), column); @@ -464,6 +470,8 @@ ProcessList *processlist_construct(void) "text", PPID_COLUMN, NULL); + gtk_tree_view_column_set_sizing(column, GTK_TREE_VIEW_COLUMN_GROW_ONLY); + gtk_tree_view_column_set_resizable(column, TRUE); gtk_tree_view_append_column ( GTK_TREE_VIEW (process_list->process_list_widget), column); @@ -472,6 +480,8 @@ ProcessList *processlist_construct(void) "text", CPU_COLUMN, NULL); + gtk_tree_view_column_set_sizing(column, GTK_TREE_VIEW_COLUMN_GROW_ONLY); + gtk_tree_view_column_set_resizable(column, TRUE); gtk_tree_view_append_column ( GTK_TREE_VIEW (process_list->process_list_widget), column); @@ -480,6 +490,8 @@ ProcessList *processlist_construct(void) "text", BIRTH_S_COLUMN, NULL); + gtk_tree_view_column_set_sizing(column, GTK_TREE_VIEW_COLUMN_GROW_ONLY); + gtk_tree_view_column_set_resizable(column, TRUE); gtk_tree_view_append_column ( GTK_TREE_VIEW (process_list->process_list_widget), column); @@ -490,6 +502,8 @@ ProcessList *processlist_construct(void) "text", BIRTH_NS_COLUMN, NULL); + gtk_tree_view_column_set_sizing(column, GTK_TREE_VIEW_COLUMN_GROW_ONLY); + gtk_tree_view_column_set_resizable(column, TRUE); gtk_tree_view_append_column ( GTK_TREE_VIEW (process_list->process_list_widget), column); @@ -498,6 +512,8 @@ ProcessList *processlist_construct(void) "text", TRACE_COLUMN, NULL); + gtk_tree_view_column_set_sizing(column, GTK_TREE_VIEW_COLUMN_GROW_ONLY); + gtk_tree_view_column_set_resizable(column, TRUE); gtk_tree_view_append_column ( GTK_TREE_VIEW (process_list->process_list_widget), column);