Skip to main content
summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSilenio Quarti2003-07-15 21:32:49 +0000
committerSilenio Quarti2003-07-15 21:32:49 +0000
commit5fd44e70357e8a863246819e89017b7fb2f022dd (patch)
treebeb3d1fe86b24939032b6110b973daf77e794462 /bundles
parentb3451b01322144267e588706e3aaf08075c8b717 (diff)
downloadeclipse.platform.swt-5fd44e70357e8a863246819e89017b7fb2f022dd.tar.gz
eclipse.platform.swt-5fd44e70357e8a863246819e89017b7fb2f022dd.tar.xz
eclipse.platform.swt-5fd44e70357e8a863246819e89017b7fb2f022dd.zip
embeding
Diffstat (limited to 'bundles')
-rw-r--r--bundles/org.eclipse.swt/Eclipse SWT PI/gtk/library/os.c36
-rw-r--r--bundles/org.eclipse.swt/Eclipse SWT PI/gtk/org/eclipse/swt/internal/gtk/OS.java3
2 files changed, 39 insertions, 0 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 f15730f99b..3c8a39d932 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
@@ -3925,6 +3925,18 @@ JNIEXPORT void JNICALL OS_NATIVE(gtk_1object_1sink)
}
#endif
+#ifndef NO_gtk_1plug_1new
+JNIEXPORT jint JNICALL OS_NATIVE(gtk_1plug_1new)
+ (JNIEnv *env, jclass that, jint arg0)
+{
+ jint rc;
+ NATIVE_ENTER(env, that, "gtk_1plug_1new\n")
+ rc = (jint)gtk_plug_new(arg0);
+ NATIVE_EXIT(env, that, "gtk_1plug_1new\n")
+ return rc;
+}
+#endif
+
#ifndef NO_gtk_1progress_1bar_1new
JNIEXPORT jint JNICALL OS_NATIVE(gtk_1progress_1bar_1new)
(JNIEnv *env, jclass that)
@@ -4206,6 +4218,30 @@ JNIEXPORT jint JNICALL OS_NATIVE(gtk_1set_1locale)
}
#endif
+#ifndef NO_gtk_1socket_1get_1id
+JNIEXPORT jint JNICALL OS_NATIVE(gtk_1socket_1get_1id)
+ (JNIEnv *env, jclass that, jint arg0)
+{
+ jint rc;
+ NATIVE_ENTER(env, that, "gtk_1socket_1get_1id\n")
+ rc = (jint)gtk_socket_get_id((GtkSocket *)arg0);
+ NATIVE_EXIT(env, that, "gtk_1socket_1get_1id\n")
+ return rc;
+}
+#endif
+
+#ifndef NO_gtk_1socket_1new
+JNIEXPORT jint JNICALL OS_NATIVE(gtk_1socket_1new)
+ (JNIEnv *env, jclass that)
+{
+ jint rc;
+ NATIVE_ENTER(env, that, "gtk_1socket_1new\n")
+ rc = (jint)gtk_socket_new();
+ NATIVE_EXIT(env, that, "gtk_1socket_1new\n")
+ return rc;
+}
+#endif
+
#ifndef NO_gtk_1target_1list_1new
JNIEXPORT jint JNICALL OS_NATIVE(gtk_1target_1list_1new)
(JNIEnv *env, jclass that, jint arg0, jint arg1)
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 0eb3bb396a..7924c65056 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
@@ -636,6 +636,7 @@ public static final synchronized native void gtk_notebook_set_current_page(int n
public static final synchronized native void gtk_notebook_set_scrollable(int notebook, boolean scrollable);
public static final synchronized native void gtk_notebook_set_show_tabs(int notebook, boolean show_tabs);
public static final synchronized native void gtk_object_sink(int object);
+public static final synchronized native int gtk_plug_new(int socket_id);
public static final synchronized native int gtk_progress_bar_new();
public static final synchronized native void gtk_progress_bar_pulse(int pbar);
public static final synchronized native void gtk_progress_bar_set_bar_style(int pbar, int style);
@@ -663,6 +664,8 @@ public static final synchronized native void gtk_selection_data_free(int selecti
public static final synchronized native void gtk_selection_data_set(int selection_data, int type, int format, int data, int length);
public static final synchronized native int gtk_separator_menu_item_new();
public static final synchronized native int gtk_set_locale();
+public static final synchronized native int gtk_socket_get_id(int socket);
+public static final synchronized native int gtk_socket_new();
public static final synchronized native int gtk_target_list_new(int targets, int ntargets);
public static final synchronized native void gtk_target_list_unref(int list);
public static final synchronized native void gtk_text_buffer_copy_clipboard(int buffer, int clipboard);

Back to the top