summaryrefslogtreecommitdiffstats
path: root/bundles/org.eclipse.swt/Eclipse SWT PI/carbon/library
diff options
context:
space:
mode:
authorSilenio Quarti <silenio>2009-09-23 18:50:26 +0000
committerSilenio Quarti <silenio>2009-09-23 18:50:26 +0000
commitde99758dc483ca2e9c030e16d8437ab862b4c593 (patch)
tree18a48920f3a882a9105389a2516bd47779e3458f /bundles/org.eclipse.swt/Eclipse SWT PI/carbon/library
parent61e9d1e36b247e8d7212c985a309e271586ecf1b (diff)
downloadeclipse.platform.swt-de99758dc483ca2e9c030e16d8437ab862b4c593.tar.gz
eclipse.platform.swt-de99758dc483ca2e9c030e16d8437ab862b4c593.tar.xz
eclipse.platform.swt-de99758dc483ca2e9c030e16d8437ab862b4c593.zip
268687 - SWT Mac dock icon cannot be hidden
Diffstat (limited to 'bundles/org.eclipse.swt/Eclipse SWT PI/carbon/library')
-rw-r--r--bundles/org.eclipse.swt/Eclipse SWT PI/carbon/library/os.c24
-rw-r--r--bundles/org.eclipse.swt/Eclipse SWT PI/carbon/library/os_stats.c6
-rw-r--r--bundles/org.eclipse.swt/Eclipse SWT PI/carbon/library/os_stats.h2
3 files changed, 30 insertions, 2 deletions
diff --git a/bundles/org.eclipse.swt/Eclipse SWT PI/carbon/library/os.c b/bundles/org.eclipse.swt/Eclipse SWT PI/carbon/library/os.c
index 750eb59d80..9ac7f97592 100644
--- a/bundles/org.eclipse.swt/Eclipse SWT PI/carbon/library/os.c
+++ b/bundles/org.eclipse.swt/Eclipse SWT PI/carbon/library/os.c
@@ -1236,6 +1236,30 @@ JNIEXPORT jint JNICALL OS_NATIVE(CFArrayGetValueAtIndex)
}
#endif
+#ifndef NO_CFBundleGetIdentifier
+JNIEXPORT jint JNICALL OS_NATIVE(CFBundleGetIdentifier)
+ (JNIEnv *env, jclass that, jint arg0)
+{
+ jint rc = 0;
+ OS_NATIVE_ENTER(env, that, CFBundleGetIdentifier_FUNC);
+ rc = (jint)CFBundleGetIdentifier((CFBundleRef)arg0);
+ OS_NATIVE_EXIT(env, that, CFBundleGetIdentifier_FUNC);
+ return rc;
+}
+#endif
+
+#ifndef NO_CFBundleGetMainBundle
+JNIEXPORT jint JNICALL OS_NATIVE(CFBundleGetMainBundle)
+ (JNIEnv *env, jclass that)
+{
+ jint rc = 0;
+ OS_NATIVE_ENTER(env, that, CFBundleGetMainBundle_FUNC);
+ rc = (jint)CFBundleGetMainBundle();
+ OS_NATIVE_EXIT(env, that, CFBundleGetMainBundle_FUNC);
+ return rc;
+}
+#endif
+
#ifndef NO_CFDataGetBytePtr
JNIEXPORT jint JNICALL OS_NATIVE(CFDataGetBytePtr)
(JNIEnv *env, jclass that, jint arg0)
diff --git a/bundles/org.eclipse.swt/Eclipse SWT PI/carbon/library/os_stats.c b/bundles/org.eclipse.swt/Eclipse SWT PI/carbon/library/os_stats.c
index 5cae8955f9..4cfce5d83d 100644
--- a/bundles/org.eclipse.swt/Eclipse SWT PI/carbon/library/os_stats.c
+++ b/bundles/org.eclipse.swt/Eclipse SWT PI/carbon/library/os_stats.c
@@ -14,8 +14,8 @@
#ifdef NATIVE_STATS
-int OS_nativeFunctionCount = 986;
-int OS_nativeFunctionCallCount[986];
+int OS_nativeFunctionCount = 988;
+int OS_nativeFunctionCallCount[988];
char * OS_nativeFunctionNames[] = {
"AECoerceDesc",
"AECountItems",
@@ -94,6 +94,8 @@ char * OS_nativeFunctionNames[] = {
"CFArrayCreateMutable",
"CFArrayGetCount",
"CFArrayGetValueAtIndex",
+ "CFBundleGetIdentifier",
+ "CFBundleGetMainBundle",
"CFDataGetBytePtr",
"CFDataGetBytes",
"CFDataGetLength",
diff --git a/bundles/org.eclipse.swt/Eclipse SWT PI/carbon/library/os_stats.h b/bundles/org.eclipse.swt/Eclipse SWT PI/carbon/library/os_stats.h
index e91f001105..5ff0218bc2 100644
--- a/bundles/org.eclipse.swt/Eclipse SWT PI/carbon/library/os_stats.h
+++ b/bundles/org.eclipse.swt/Eclipse SWT PI/carbon/library/os_stats.h
@@ -102,6 +102,8 @@ typedef enum {
CFArrayCreateMutable_FUNC,
CFArrayGetCount_FUNC,
CFArrayGetValueAtIndex_FUNC,
+ CFBundleGetIdentifier_FUNC,
+ CFBundleGetMainBundle_FUNC,
CFDataGetBytePtr_FUNC,
CFDataGetBytes_FUNC,
CFDataGetLength_FUNC,