summaryrefslogtreecommitdiff
path: root/redo/table_unix.go
diff options
context:
space:
mode:
authorPietro Gagliardi <[email protected]>2014-07-30 17:32:10 -0400
committerPietro Gagliardi <[email protected]>2014-07-30 17:32:10 -0400
commit713be62f16b2f621eb104a1ba916ef5b1781eecc (patch)
tree19cce1ce3efab047a3cb850eac6919691c5e0310 /redo/table_unix.go
parent3d922c87fa3b0e8251f0c917a871b15b1e56d140 (diff)
Applied Labels being vertically aligned to the top when next to a Table in the GTK+ backend.
Diffstat (limited to 'redo/table_unix.go')
-rw-r--r--redo/table_unix.go9
1 files changed, 7 insertions, 2 deletions
diff --git a/redo/table_unix.go b/redo/table_unix.go
index 23366f4..2fd2418 100644
--- a/redo/table_unix.go
+++ b/redo/table_unix.go
@@ -31,8 +31,13 @@ func finishNewTable(b *tablebase, ty reflect.Type) Table {
widget := C.gtk_tree_view_new()
t := &table{
scrolledcontrol: newScrolledControl(widget, true),
- tablebase: b,
- treeview: (*C.GtkTreeView)(unsafe.Pointer(widget)),
+ tablebase: b,
+ treeview: (*C.GtkTreeView)(unsafe.Pointer(widget)),
+ }
+ t.fgetAuxResizeInfo = func(d *sizing) {
+ // a Label to the left of a Table should be vertically aligned to the top
+ // TODO do the same with Area
+ d.shouldVAlignTop = true
}
model := C.newTableModel(unsafe.Pointer(t))
t.model = model