Made column headers resizeable on GTK+ Tables.
This commit is contained in:
parent
abb77b7a5c
commit
b37f32c142
|
@ -14,6 +14,8 @@ void tableAppendColumn(GtkTreeView *table, gint index, gchar *name)
|
||||||
col = gtk_tree_view_column_new_with_attributes(name, renderer,
|
col = gtk_tree_view_column_new_with_attributes(name, renderer,
|
||||||
"text", index,
|
"text", index,
|
||||||
NULL);
|
NULL);
|
||||||
|
/* allow columns to be resized */
|
||||||
|
gtk_tree_view_column_set_resizable(col, TRUE);
|
||||||
gtk_tree_view_append_column(table, col);
|
gtk_tree_view_append_column(table, col);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -13,9 +13,6 @@ import (
|
||||||
// #include "gtk_unix.h"
|
// #include "gtk_unix.h"
|
||||||
import "C"
|
import "C"
|
||||||
|
|
||||||
// TODOs
|
|
||||||
// - make column headers resizeable
|
|
||||||
|
|
||||||
type table struct {
|
type table struct {
|
||||||
*widgetbase
|
*widgetbase
|
||||||
*tablebase
|
*tablebase
|
||||||
|
|
Loading…
Reference in New Issue