diff options
author | Anatoly Spektor | 2012-10-02 12:59:30 +0000 |
---|---|---|
committer | Alexander Kurtakov | 2012-10-02 17:38:06 +0000 |
commit | ffe5186c17b22da6dd8ec55ad2dd5f424adf803a (patch) | |
tree | 48586f0c1626d1296c6dc165a63435dc6562dacf /bundles/org.eclipse.swt/Eclipse SWT PI/gtk/library | |
parent | ed548011f4f983818b96640d346d126775013185 (diff) | |
download | eclipse.platform.swt-ffe5186c17b22da6dd8ec55ad2dd5f424adf803a.tar.gz eclipse.platform.swt-ffe5186c17b22da6dd8ec55ad2dd5f424adf803a.tar.xz eclipse.platform.swt-ffe5186c17b22da6dd8ec55ad2dd5f424adf803a.zip |
Replace gdk_cursor_unref with g_object_unref for GTK+ 3
Diffstat (limited to 'bundles/org.eclipse.swt/Eclipse SWT PI/gtk/library')
-rw-r--r-- | bundles/org.eclipse.swt/Eclipse SWT PI/gtk/library/os.c | 10 | ||||
-rw-r--r-- | bundles/org.eclipse.swt/Eclipse SWT PI/gtk/library/os_custom.h | 1 |
2 files changed, 10 insertions, 1 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 e79e8caa0b..9693360a8c 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 @@ -4871,7 +4871,15 @@ JNIEXPORT void JNICALL OS_NATIVE(_1gdk_1cursor_1unref) (JNIEnv *env, jclass that, jintLong arg0) { OS_NATIVE_ENTER(env, that, _1gdk_1cursor_1unref_FUNC); - gdk_cursor_unref((GdkCursor *)arg0); +/* + gdk_cursor_unref(arg0); +*/ + { + OS_LOAD_FUNCTION(fp, gdk_cursor_unref) + if (fp) { + ((void (CALLING_CONVENTION*)(jintLong))fp)(arg0); + } + } OS_NATIVE_EXIT(env, that, _1gdk_1cursor_1unref_FUNC); } #endif diff --git a/bundles/org.eclipse.swt/Eclipse SWT PI/gtk/library/os_custom.h b/bundles/org.eclipse.swt/Eclipse SWT PI/gtk/library/os_custom.h index 500754ec02..1408fbcb78 100644 --- a/bundles/org.eclipse.swt/Eclipse SWT PI/gtk/library/os_custom.h +++ b/bundles/org.eclipse.swt/Eclipse SWT PI/gtk/library/os_custom.h @@ -166,6 +166,7 @@ #define gtk_entry_set_icon_sensitive_LIB LIB_GTK #define gtk_tooltips_new_LIB LIB_GTK #define gdk_cursor_new_from_pixbuf_LIB LIB_GDK +#define gdk_cursor_unref_LIB LIB_GDK #define gdk_device_manager_get_client_pointer_LIB LIB_GDK #define gdk_device_grab_LIB LIB_GDK #define gdk_device_ungrab_LIB LIB_GDK |