Mercurial > cgi-bin > hgweb.cgi > ClipMan
comparison src/name/blackcap/clipman/Osdep.kt.mac.osdep @ 41:33fbe3a78d84
Got the settings stuff compiling (untested).
author | David Barts <n5jrn@me.com> |
---|---|
date | Sat, 08 Feb 2020 22:10:01 -0700 |
parents | |
children | 19d9da731c43 |
comparison
equal
deleted
inserted
replaced
40:c803a2c89ea0 | 41:33fbe3a78d84 |
---|---|
1 /* | |
2 * OS-dependent code, Mac version. | |
3 */ | |
4 package name.blackcap.clipman | |
5 | |
6 import com.apple.eawt.AboutHandler | |
7 import com.apple.eawt.Application | |
8 import com.apple.eawt.PreferencesHandler | |
9 | |
10 fun setMacMenus() { | |
11 Application.getApplication().run { | |
12 setAboutHandler(AboutHandler({ showAboutDialog() })) | |
13 setPreferencesHandler( | |
14 PreferencesHandler({ settingsDialog.setVisible(true) })) | |
15 } | |
16 } |