summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorFelipe Heidrich <fheidric>2005-03-28 20:31:45 +0000
committerFelipe Heidrich <fheidric>2005-03-28 20:31:45 +0000
commit6df57c264a6856c9f71d96816a2b0e9ad5502b10 (patch)
tree496d12afee58bd605a5f5bce81e26eb15614d8cc
parentdca5b18b577ec386c15b6346ea07b277e6f482f9 (diff)
downloadeclipse.platform.swt-6df57c264a6856c9f71d96816a2b0e9ad5502b10.tar.gz
eclipse.platform.swt-6df57c264a6856c9f71d96816a2b0e9ad5502b10.tar.xz
eclipse.platform.swt-6df57c264a6856c9f71d96816a2b0e9ad5502b10.zip
86079
-rw-r--r--bundles/org.eclipse.swt/Eclipse SWT PI/gtk/library/os.c22
-rw-r--r--bundles/org.eclipse.swt/Eclipse SWT PI/gtk/library/os_stats.c6
-rw-r--r--bundles/org.eclipse.swt/Eclipse SWT PI/gtk/library/os_stats.h2
-rw-r--r--bundles/org.eclipse.swt/Eclipse SWT PI/gtk/org/eclipse/swt/internal/gtk/OS.java19
4 files changed, 47 insertions, 2 deletions
diff --git a/bundles/org.eclipse.swt/Eclipse SWT PI/gtk/library/os.c b/bundles/org.eclipse.swt/Eclipse SWT PI/gtk/library/os.c
index ace2f54b71..a29047b810 100644
--- a/bundles/org.eclipse.swt/Eclipse SWT PI/gtk/library/os.c
+++ b/bundles/org.eclipse.swt/Eclipse SWT PI/gtk/library/os.c
@@ -7775,6 +7775,18 @@ JNIEXPORT jint JNICALL OS_NATIVE(_1gtk_1spin_1button_1get_1adjustment)
}
#endif
+#ifndef NO__1gtk_1spin_1button_1get_1digits
+JNIEXPORT jint JNICALL OS_NATIVE(_1gtk_1spin_1button_1get_1digits)
+ (JNIEnv *env, jclass that, jint arg0)
+{
+ jint rc = 0;
+ OS_NATIVE_ENTER(env, that, _1gtk_1spin_1button_1get_1digits_FUNC);
+ rc = (jint)gtk_spin_button_get_digits((GtkSpinButton*)arg0);
+ OS_NATIVE_EXIT(env, that, _1gtk_1spin_1button_1get_1digits_FUNC);
+ return rc;
+}
+#endif
+
#ifndef NO__1gtk_1spin_1button_1new
JNIEXPORT jint JNICALL OS_NATIVE(_1gtk_1spin_1button_1new)
(JNIEnv *env, jclass that, jint arg0, jdouble arg1, jint arg2)
@@ -7787,6 +7799,16 @@ JNIEXPORT jint JNICALL OS_NATIVE(_1gtk_1spin_1button_1new)
}
#endif
+#ifndef NO__1gtk_1spin_1button_1set_1digits
+JNIEXPORT void JNICALL OS_NATIVE(_1gtk_1spin_1button_1set_1digits)
+ (JNIEnv *env, jclass that, jint arg0, jint arg1)
+{
+ OS_NATIVE_ENTER(env, that, _1gtk_1spin_1button_1set_1digits_FUNC);
+ gtk_spin_button_set_digits((GtkSpinButton*)arg0, arg1);
+ OS_NATIVE_EXIT(env, that, _1gtk_1spin_1button_1set_1digits_FUNC);
+}
+#endif
+
#ifndef NO__1gtk_1spin_1button_1set_1increments
JNIEXPORT void JNICALL OS_NATIVE(_1gtk_1spin_1button_1set_1increments)
(JNIEnv *env, jclass that, jint arg0, jdouble arg1, jdouble arg2)
diff --git a/bundles/org.eclipse.swt/Eclipse SWT PI/gtk/library/os_stats.c b/bundles/org.eclipse.swt/Eclipse SWT PI/gtk/library/os_stats.c
index 115b570044..7bca84f624 100644
--- a/bundles/org.eclipse.swt/Eclipse SWT PI/gtk/library/os_stats.c
+++ b/bundles/org.eclipse.swt/Eclipse SWT PI/gtk/library/os_stats.c
@@ -18,8 +18,8 @@
#ifdef NATIVE_STATS
-int OS_nativeFunctionCount = 977;
-int OS_nativeFunctionCallCount[977];
+int OS_nativeFunctionCount = 979;
+int OS_nativeFunctionCallCount[979];
char * OS_nativeFunctionNames[] = {
"Call",
"GDK_1WINDOWING_1X11",
@@ -619,7 +619,9 @@ char * OS_nativeFunctionNames[] = {
"_1gtk_1socket_1get_1id",
"_1gtk_1socket_1new",
"_1gtk_1spin_1button_1get_1adjustment",
+ "_1gtk_1spin_1button_1get_1digits",
"_1gtk_1spin_1button_1new",
+ "_1gtk_1spin_1button_1set_1digits",
"_1gtk_1spin_1button_1set_1increments",
"_1gtk_1spin_1button_1set_1range",
"_1gtk_1spin_1button_1set_1value",
diff --git a/bundles/org.eclipse.swt/Eclipse SWT PI/gtk/library/os_stats.h b/bundles/org.eclipse.swt/Eclipse SWT PI/gtk/library/os_stats.h
index 37765efe80..b35bf15a51 100644
--- a/bundles/org.eclipse.swt/Eclipse SWT PI/gtk/library/os_stats.h
+++ b/bundles/org.eclipse.swt/Eclipse SWT PI/gtk/library/os_stats.h
@@ -623,7 +623,9 @@ typedef enum {
_1gtk_1socket_1get_1id_FUNC,
_1gtk_1socket_1new_FUNC,
_1gtk_1spin_1button_1get_1adjustment_FUNC,
+ _1gtk_1spin_1button_1get_1digits_FUNC,
_1gtk_1spin_1button_1new_FUNC,
+ _1gtk_1spin_1button_1set_1digits_FUNC,
_1gtk_1spin_1button_1set_1increments_FUNC,
_1gtk_1spin_1button_1set_1range_FUNC,
_1gtk_1spin_1button_1set_1value_FUNC,
diff --git a/bundles/org.eclipse.swt/Eclipse SWT PI/gtk/org/eclipse/swt/internal/gtk/OS.java b/bundles/org.eclipse.swt/Eclipse SWT PI/gtk/org/eclipse/swt/internal/gtk/OS.java
index 617a3eff1f..26a6e03b56 100644
--- a/bundles/org.eclipse.swt/Eclipse SWT PI/gtk/org/eclipse/swt/internal/gtk/OS.java
+++ b/bundles/org.eclipse.swt/Eclipse SWT PI/gtk/org/eclipse/swt/internal/gtk/OS.java
@@ -5280,6 +5280,25 @@ public static final int /*long*/ gtk_spin_button_get_adjustment(int /*long*/ spi
lock.unlock();
}
}
+
+public static final native int _gtk_spin_button_get_digits(int /*long*/ spin_button);
+public static final int gtk_spin_button_get_digits(int /*long*/ spin_button) {
+ lock.lock();
+ try {
+ return _gtk_spin_button_get_digits(spin_button);
+ } finally {
+ lock.unlock();
+ }
+}
+public static final native void _gtk_spin_button_set_digits(int /*long*/ spin_button, int digits);
+public static final void gtk_spin_button_set_digits(int /*long*/ spin_button, int digits) {
+ lock.lock();
+ try {
+ _gtk_spin_button_set_digits(spin_button, digits);
+ } finally {
+ lock.unlock();
+ }
+}
public static final native void _gtk_spin_button_set_increments(int /*long*/ spin_button, double step, double page);
public static final void gtk_spin_button_set_increments(int /*long*/ spin_button, double step, double page) {
lock.lock();