Oops, forgot to fill in a name in a comment in the previous commit. Fixed.
This commit is contained in:
parent
3b5c9738fd
commit
f21fdfd7dc
|
@ -34,7 +34,7 @@ func (w *widgetbase) unparent() {
|
||||||
// we unref this in parent() below
|
// we unref this in parent() below
|
||||||
w.floating = true
|
w.floating = true
|
||||||
C.gtk_container_remove(w.parentw.layoutc, w.widget)
|
C.gtk_container_remove(w.parentw.layoutc, w.widget)
|
||||||
// redraw since we changed controls (by queueing a resize; thanks xxx in irc.gimp.net/#gtk+)
|
// redraw since we changed controls (by queueing a resize; thanks Jasper in irc.gimp.net/#gtk+)
|
||||||
C.gtk_widget_queue_resize(w.parentw.layoutw)
|
C.gtk_widget_queue_resize(w.parentw.layoutw)
|
||||||
w.parentw = nil
|
w.parentw = nil
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue