Removed sizing.endResize(); it's not really used at this point.

This commit is contained in:
Pietro Gagliardi 2014-07-26 11:21:21 -04:00
parent b5d8b4f3de
commit 22989c13da
4 changed files with 0 additions and 14 deletions

View File

@ -45,7 +45,6 @@ func (c *container) resize(width, height int) {
return
}
c.d = c.beginResize()
defer c.endResize(c.d)
}
d := c.d
allocations := c.child.allocate(0, 0, width, height, d)

View File

@ -35,10 +35,6 @@ func (w *window) beginResize() (d *sizing) {
return d
}
func (c *container) endResize(d *sizing) {
// redraw
}
func (c *container) translateAllocationCoords(allocations []*allocation, winwidth, winheight int) {
for _, a := range allocations {
// winheight - y because (0,0) is the bottom-left corner of the window and not the top-left corner

View File

@ -35,11 +35,6 @@ func (w *window) beginResize() (d *sizing) {
return d
}
func (c *container) endResize(d *sizing) {
// TODO
// C.gtk_widget_queue_draw(w.widget)
}
func (c *container) translateAllocationCoords(allocations []*allocation, winwidth, winheight int) {
// no need for coordinate conversion with gtk+
}

View File

@ -44,10 +44,6 @@ func (w *window) beginResize() (d *sizing) {
return d
}
func (c *container) endResize(d *sizing) {
// redraw
}
func (c *container) translateAllocationCoords(allocations []*allocation, winwidth, winheight int) {
// no translation needed on windows
}