Fixed compilation errors on Mac OS X. Reparenting works; redrawing, however...
This commit is contained in:
parent
300835a1b4
commit
a2eb69cbf6
|
@ -93,10 +93,10 @@ func newCheckbox(text string) *checkbox {
|
||||||
// we don't need to define our own event here; we can just reuse Button's
|
// we don't need to define our own event here; we can just reuse Button's
|
||||||
// (it's all target-action anyway)
|
// (it's all target-action anyway)
|
||||||
|
|
||||||
type (c *checkbox) Checked() bool {
|
func (c *checkbox) Checked() bool {
|
||||||
return fromBOOL(C.checkboxChecked(c.id))
|
return fromBOOL(C.checkboxChecked(c.id))
|
||||||
}
|
}
|
||||||
|
|
||||||
type (c *checkbox) SetChecked(checked bool) {
|
func (c *checkbox) SetChecked(checked bool) {
|
||||||
C.checkboxSetChecked(c.id, toBOOL(checked))
|
C.checkboxSetChecked(c.id, toBOOL(checked))
|
||||||
}
|
}
|
||||||
|
|
|
@ -28,6 +28,7 @@ extern void windowSetTitle(id, const char *);
|
||||||
extern void windowShow(id);
|
extern void windowShow(id);
|
||||||
extern void windowHide(id);
|
extern void windowHide(id);
|
||||||
extern void windowClose(id);
|
extern void windowClose(id);
|
||||||
|
extern void windowRedraw(id);
|
||||||
|
|
||||||
/* controls_darwin.m */
|
/* controls_darwin.m */
|
||||||
extern void unparent(id);
|
extern void unparent(id);
|
||||||
|
|
|
@ -87,4 +87,5 @@ void windowRedraw(id win)
|
||||||
|
|
||||||
d = [toNSWindow(win) delegate];
|
d = [toNSWindow(win) delegate];
|
||||||
[d doWindowResize:win];
|
[d doWindowResize:win];
|
||||||
|
// TODO new control sizes don't take effect properly, even with [toNSWindow(win) display];
|
||||||
}
|
}
|
Loading…
Reference in New Issue