changeset 4:ba5dc14652da

Commit correct Osdep files.
author David Barts <n5jrn@me.com>
date Wed, 08 Apr 2020 21:31:30 -0700
parents 19c381c536ec
children dc1f4359659d
files src/name/blackcap/exifwasher/Osdep.kt src/name/blackcap/exifwasher/Osdep.kt.default.osdep src/name/blackcap/exifwasher/Osdep.kt.mac.osdep
diffstat 3 files changed, 24 insertions(+), 16 deletions(-) [+]
line wrap: on
line diff
--- a/src/name/blackcap/exifwasher/Osdep.kt	Wed Apr 08 20:29:12 2020 -0700
+++ /dev/null	Thu Jan 01 00:00:00 1970 +0000
@@ -1,16 +0,0 @@
-/*
- * OS-dependent code, Mac version.
- */
-package name.blackcap.clipman
-
-import com.apple.eawt.AboutHandler
-import com.apple.eawt.Application
-import com.apple.eawt.PreferencesHandler
-
-fun setMacMenus() {
-    Application.getApplication().run {
-        setAboutHandler(AboutHandler({ showAboutDialog() }))
-        setPreferencesHandler(
-            PreferencesHandler({ settingsDialog.setVisible(true) }))
-    }
-}
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/src/name/blackcap/exifwasher/Osdep.kt.default.osdep	Wed Apr 08 21:31:30 2020 -0700
@@ -0,0 +1,8 @@
+/*
+ * OS-dependent code, version for all non-Mac systems.
+ */
+package name.blackcap.exifwasher
+
+fun setMacMenus() {
+    /* no-op */
+}
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/src/name/blackcap/exifwasher/Osdep.kt.mac.osdep	Wed Apr 08 21:31:30 2020 -0700
@@ -0,0 +1,16 @@
+/*
+ * OS-dependent code, Mac version.
+ */
+package name.blackcap.exifwasher
+
+import com.apple.eawt.AboutHandler
+import com.apple.eawt.Application
+import com.apple.eawt.PreferencesHandler
+
+fun setMacMenus() {
+    Application.getApplication().run {
+        setAboutHandler(AboutHandler { showAboutDialog() })
+        setPreferencesHandler(
+            PreferencesHandler { Application.settingsDialog.setVisible(true) })
+    }
+}