Removed sizing.endResize(); it's not really used at this point.
This commit is contained in:
parent
b5d8b4f3de
commit
22989c13da
|
@ -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)
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -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+
|
||||
}
|
||||
|
|
|
@ -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
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue