summaryrefslogtreecommitdiff
path: root/redo/sizing_unix.go
diff options
context:
space:
mode:
authorPietro Gagliardi <[email protected]>2014-07-28 14:00:01 -0400
committerPietro Gagliardi <[email protected]>2014-07-28 14:00:01 -0400
commitbea4df1abf6f4df34016727a300e4826fc31cc05 (patch)
tree7f481ac4a25f72a72e549e26a5d44f87891e0a84 /redo/sizing_unix.go
parent3f124a016ea9d88db3c7b368b836fc296d1475e2 (diff)
Began final simplification of size code. spaced is now a global variable; either all controls are given spacing now, or none will. beginResize() is a method on container again. Done on GTK+ and Mac OS X for now. I'm going to go ahead and implement this on Windows in a bit, regardless of whether that Stack Overflow question get answered or not, because ugggggggggh I just want to continue working on this project for fuck's sake!
Diffstat (limited to 'redo/sizing_unix.go')
-rw-r--r--redo/sizing_unix.go4
1 files changed, 2 insertions, 2 deletions
diff --git a/redo/sizing_unix.go b/redo/sizing_unix.go
index 9f95e77..d94bc01 100644
--- a/redo/sizing_unix.go
+++ b/redo/sizing_unix.go
@@ -24,9 +24,9 @@ const (
gtkYPadding = 6
)
-func (w *window) beginResize() (d *sizing) {
+func (c *container) beginResize() (d *sizing) {
d = new(sizing)
- if w.spaced {
+ if spaced {
d.xmargin = gtkXMargin
d.ymargin = gtkYMargin
d.xpadding = gtkXPadding