diff options
| author | Pietro Gagliardi <[email protected]> | 2014-04-04 14:52:38 -0400 |
|---|---|---|
| committer | Pietro Gagliardi <[email protected]> | 2014-04-04 14:52:38 -0400 |
| commit | be668a965a382fc1de2f9711282b5ec897d55ca5 (patch) | |
| tree | 23a3e1403cf313ee9b65b21a9178b81400d22a81 /sysdata_darwin.go | |
| parent | 2884d45f0f05fd19442aa2396c55fc97182d3afc (diff) | |
Fixed Mac OS X Button appearance; turns out it was using the wrong font. Also updated the TODO file to mark this fix and remove other stale/already fixed details.
Diffstat (limited to 'sysdata_darwin.go')
| -rw-r--r-- | sysdata_darwin.go | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/sysdata_darwin.go b/sysdata_darwin.go index 3cb0ada..09b7730 100644 --- a/sysdata_darwin.go +++ b/sysdata_darwin.go @@ -118,7 +118,7 @@ var classTypes = [nctypes]*classData{ C.BOOL(C.YES)) // defer creation of device until we show the window objc_setDelegate(win, appDelegate) // this is needed for Areas in the window to receive mouse move events - C.objc_msgSend_bool(win, _setAcceptsMouseMovedEvents, C.BOOL(C.YES)) +// C.objc_msgSend_bool(win, _setAcceptsMouseMovedEvents, C.BOOL(C.YES)) return win }, show: func(what C.id) { @@ -139,6 +139,9 @@ var classTypes = [nctypes]*classData{ objc_msgSend_uint(button, _setBezelStyle, 1) // NSRoundedBezelStyle C.objc_msgSend_id(button, _setTarget, appDelegate) C.objc_msgSend_sel(button, _setAction, _buttonClicked) + // by default the button uses the wrong text size + // TODO do this for all controls + C.objc_setFont(button, 0) // NSRegularControlSize addControl(parentWindow, button) return button }, |
