From b37f32c142cc2a216057e77432862c1e15f37299 Mon Sep 17 00:00:00 2001 From: Pietro Gagliardi Date: Tue, 29 Jul 2014 04:30:58 -0400 Subject: [PATCH] Made column headers resizeable on GTK+ Tables. --- redo/table_unix.c | 2 ++ redo/table_unix.go | 3 --- 2 files changed, 2 insertions(+), 3 deletions(-) diff --git a/redo/table_unix.c b/redo/table_unix.c index 9e1f4b6..0fa9c5a 100644 --- a/redo/table_unix.c +++ b/redo/table_unix.c @@ -14,6 +14,8 @@ void tableAppendColumn(GtkTreeView *table, gint index, gchar *name) col = gtk_tree_view_column_new_with_attributes(name, renderer, "text", index, NULL); + /* allow columns to be resized */ + gtk_tree_view_column_set_resizable(col, TRUE); gtk_tree_view_append_column(table, col); } diff --git a/redo/table_unix.go b/redo/table_unix.go index 6ca0cec..4d47405 100644 --- a/redo/table_unix.go +++ b/redo/table_unix.go @@ -13,9 +13,6 @@ import ( // #include "gtk_unix.h" import "C" -// TODOs -// - make column headers resizeable - type table struct { *widgetbase *tablebase