summary refs log tree commit diff stats
path: root/src/fe-gtk/chanlist.c
diff options
context:
space:
mode:
authorTingPing <tingping@tingping.se>2014-02-14 21:24:12 -0500
committerTingPing <tingping@tingping.se>2014-02-14 21:24:12 -0500
commitb245f2f79ea50ef4bf29c586c3e3da1b7a5cb0a6 (patch)
tree6dc18c56479fad9b5eacd795fab91917e358eb33 /src/fe-gtk/chanlist.c
parentf35ae03a662ed7fb2bc13dc806a15383c72c64d7 (diff)
Tweak column sizing in channel list
Diffstat (limited to 'src/fe-gtk/chanlist.c')
-rw-r--r--src/fe-gtk/chanlist.c7
1 files changed, 6 insertions, 1 deletions
diff --git a/src/fe-gtk/chanlist.c b/src/fe-gtk/chanlist.c
index 72e2c715..628aeacd 100644
--- a/src/fe-gtk/chanlist.c
+++ b/src/fe-gtk/chanlist.c
@@ -688,11 +688,16 @@ chanlist_add_column (GtkWidget *tree, int textcol, int size, char *title, gboole
 	col = gtk_tree_view_get_column (GTK_TREE_VIEW (tree), textcol);
 	gtk_tree_view_column_set_sort_column_id (col, textcol);
 	gtk_tree_view_column_set_resizable (col, TRUE);
-	if (textcol != COL_TOPIC)
+	if (textcol == COL_CHANNEL)
 	{
 		gtk_tree_view_column_set_sizing (col, GTK_TREE_VIEW_COLUMN_FIXED);
 		gtk_tree_view_column_set_fixed_width (col, size);
 	}
+	else if (textcol == COL_USERS)
+	{
+		gtk_tree_view_column_set_sizing (col, GTK_TREE_VIEW_COLUMN_AUTOSIZE);
+		gtk_tree_view_column_set_resizable (col, FALSE);
+	}
 }
 
 static void