From 56fd4ac66dd3b93a51cb545c2ef838125bfd247f Mon Sep 17 00:00:00 2001 From: monsta Date: Mon, 30 Nov 2015 12:00:06 +0300 Subject: disks: set minimum width for all columns --- src/disks.cpp | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/src/disks.cpp b/src/disks.cpp index 4ad345e..a0159ba 100644 --- a/src/disks.cpp +++ b/src/disks.cpp @@ -365,8 +365,9 @@ create_disk_view(ProcData *procdata) gtk_tree_view_column_pack_start(col, cell, TRUE); gtk_tree_view_column_set_title(col, _(titles[i])); gtk_tree_view_column_set_sort_column_id(col, i); - gtk_tree_view_column_set_resizable(col, TRUE); gtk_tree_view_column_set_reorderable(col, TRUE); + gtk_tree_view_column_set_resizable(col, TRUE); + gtk_tree_view_column_set_min_width (col, 30); gtk_tree_view_column_set_sizing(col, GTK_TREE_VIEW_COLUMN_FIXED); gtk_tree_view_append_column(GTK_TREE_VIEW(disk_tree), col); @@ -406,8 +407,9 @@ create_disk_view(ProcData *procdata) DISK_USED_PERCENTAGE, NULL); gtk_tree_view_column_set_title(col, _(titles[DISK_USED])); gtk_tree_view_column_set_sort_column_id(col, DISK_USED); - gtk_tree_view_column_set_resizable(col, TRUE); gtk_tree_view_column_set_reorderable(col, TRUE); + gtk_tree_view_column_set_resizable(col, TRUE); + gtk_tree_view_column_set_min_width (col, 150); gtk_tree_view_column_set_sizing(col, GTK_TREE_VIEW_COLUMN_FIXED); gtk_tree_view_append_column(GTK_TREE_VIEW(disk_tree), col); -- cgit v1.2.1