Removed GTK+ spurious resize TODO and debug spiel; I can't notice much of a difference after ignoring extraneous resizes. The custom container will stay, however, as it does not demonstrate weird background drawing bugs with oxygen-gtk.
This commit is contained in:
parent
c94a976822
commit
4e120b03df
|
@ -6,7 +6,6 @@ package ui
|
||||||
|
|
||||||
import (
|
import (
|
||||||
"unsafe"
|
"unsafe"
|
||||||
"fmt"
|
|
||||||
)
|
)
|
||||||
|
|
||||||
// #include "gtk_unix.h"
|
// #include "gtk_unix.h"
|
||||||
|
@ -46,7 +45,6 @@ func (c *container) setParent(p *controlParent) {
|
||||||
func containerResizing(data unsafe.Pointer, r *C.GtkAllocation) {
|
func containerResizing(data unsafe.Pointer, r *C.GtkAllocation) {
|
||||||
c := (*container)(data)
|
c := (*container)(data)
|
||||||
c.resize(int(r.x), int(r.y), int(r.width), int(r.height))
|
c.resize(int(r.x), int(r.y), int(r.width), int(r.height))
|
||||||
fmt.Printf("%p new size %d x %d\n", c, r.width, r.height)
|
|
||||||
}
|
}
|
||||||
|
|
||||||
const (
|
const (
|
||||||
|
|
|
@ -114,7 +114,6 @@ func (tw *testwin) make(done chan struct{}) {
|
||||||
if *closeOnClick {
|
if *closeOnClick {
|
||||||
tw.b.SetText("Click to Close")
|
tw.b.SetText("Click to Close")
|
||||||
}
|
}
|
||||||
// GTK+ TODO: this is causing a resize event to happen afterward?!
|
|
||||||
tw.b.OnClicked(func() {
|
tw.b.OnClicked(func() {
|
||||||
println("in OnClicked()")
|
println("in OnClicked()")
|
||||||
if *closeOnClick {
|
if *closeOnClick {
|
||||||
|
|
Loading…
Reference in New Issue