summaryrefslogtreecommitdiff
path: root/redo/sizing_unix.go
diff options
context:
space:
mode:
authorPietro Gagliardi <[email protected]>2014-08-02 01:14:09 -0400
committerPietro Gagliardi <[email protected]>2014-08-02 01:14:09 -0400
commit99b6b47a4963a84eab6aa0a941b7da5253399975 (patch)
tree56c236ac5681b16dfa06865c99dafc061ef8bd4d /redo/sizing_unix.go
parent0356d0fd7046071c1320db7340a14df54c79cb0f (diff)
Migrated the GTK+ backend to the new sizer system.
Diffstat (limited to 'redo/sizing_unix.go')
-rw-r--r--redo/sizing_unix.go40
1 files changed, 0 insertions, 40 deletions
diff --git a/redo/sizing_unix.go b/redo/sizing_unix.go
deleted file mode 100644
index 5fa7fac..0000000
--- a/redo/sizing_unix.go
+++ /dev/null
@@ -1,40 +0,0 @@
-// +build !windows,!darwin
-
-// 23 february 2014
-
-package ui
-
-// #include "gtk_unix.h"
-import "C"
-
-type sizing struct {
- sizingbase
-
- // for size calculations
- // gtk+ needs nothing
-
- // for the actual resizing
- shouldVAlignTop bool
-}
-
-const (
- gtkXMargin = 12
- gtkYMargin = 12
- gtkXPadding = 12
- gtkYPadding = 6
-)
-
-func (c *container) beginResize() (d *sizing) {
- d = new(sizing)
- if spaced {
- d.xmargin = gtkXMargin
- d.ymargin = gtkYMargin
- d.xpadding = gtkXPadding
- d.ypadding = gtkYPadding
- }
- return d
-}
-
-func (c *container) translateAllocationCoords(allocations []*allocation, winwidth, winheight int) {
- // no need for coordinate conversion with gtk+
-}