|
@@ -66,7 +66,7 @@ func (r *Root) SubscribeWin() {
|
|
|
// Overrides the Panel version because it needs to set the root panel field
|
|
// Overrides the Panel version because it needs to set the root panel field
|
|
|
func (r *Root) Add(ipan IPanel) {
|
|
func (r *Root) Add(ipan IPanel) {
|
|
|
|
|
|
|
|
- // Sets the root panel field of the child
|
|
|
|
|
|
|
+ // Sets the root panel field of the child to be added
|
|
|
ipan.GetPanel().root = r
|
|
ipan.GetPanel().root = r
|
|
|
// Add this panel to the root panel children.
|
|
// Add this panel to the root panel children.
|
|
|
// This will also set the root panel for all the child children
|
|
// This will also set the root panel for all the child children
|
|
@@ -170,15 +170,6 @@ func (r *Root) SetCursorVResize() {
|
|
|
r.win.SetStandardCursor(window.VResizeCursor)
|
|
r.win.SetStandardCursor(window.VResizeCursor)
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
-// setChildrenZ sets the z coordinates of all children of this root panel
|
|
|
|
|
-func (r *Root) setChildrenZ() {
|
|
|
|
|
-
|
|
|
|
|
- if r == nil {
|
|
|
|
|
- return
|
|
|
|
|
- }
|
|
|
|
|
- r.setZ(0, deltaZunb)
|
|
|
|
|
-}
|
|
|
|
|
-
|
|
|
|
|
// onKey is called when key events are received
|
|
// onKey is called when key events are received
|
|
|
func (r *Root) onKey(evname string, ev interface{}) {
|
|
func (r *Root) onKey(evname string, ev interface{}) {
|
|
|
|
|
|