diff options
| author | Pietro Gagliardi <[email protected]> | 2014-07-25 19:28:34 -0400 |
|---|---|---|
| committer | Pietro Gagliardi <[email protected]> | 2014-07-25 19:28:34 -0400 |
| commit | 010c97d686f8e10f940c98b62ffb5a6735f73490 (patch) | |
| tree | 2665df4bae7762fd2932f5449f124f29f5a804ec /redo/sizing_windows.go | |
| parent | 4680e35300544a90d5426cbf44b4c533fa025105 (diff) | |
Adjusted sizing data to act as the base container type; this is needed for proper resizing on both GTK+ and Mac OS X.
Diffstat (limited to 'redo/sizing_windows.go')
| -rw-r--r-- | redo/sizing_windows.go | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/redo/sizing_windows.go b/redo/sizing_windows.go index d0c3937..442aad0 100644 --- a/redo/sizing_windows.go +++ b/redo/sizing_windows.go @@ -21,6 +21,7 @@ const ( paddingDialogUnits = 4 ) +// only windows are containers, so only windows get beginResize() func (w *window) beginResize() (d *sizing) { d = new(sizing) @@ -43,11 +44,11 @@ func (w *window) beginResize() (d *sizing) { return d } -func (w *window) endResize(d *sizing) { +func (c *container) endResize(d *sizing) { // redraw } -func (w *window) translateAllocationCoords(allocations []*allocation, winwidth, winheight int) { +func (c *container) translateAllocationCoords(allocations []*allocation, winwidth, winheight int) { // no translation needed on windows } |
