Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorXi Yan2019-04-02 16:58:02 -0400
committerEric Williams2019-04-03 10:57:39 -0400
commit652ecd5221ea39cbe92243c26e773b75fd2a65cd (patch)
treeb7794739dc793ab95e7f7e54f4383fca5f619e7f
parentcb06a2f04ad9dc609519396126b5400dbbaf8063 (diff)
downloadeclipse.platform.swt-652ecd5221ea39cbe92243c26e773b75fd2a65cd.tar.gz
eclipse.platform.swt-652ecd5221ea39cbe92243c26e773b75fd2a65cd.tar.xz
eclipse.platform.swt-652ecd5221ea39cbe92243c26e773b75fd2a65cd.zip
Bug 546073 - [GTK3] Warnings building bindings with GdkPixbuf functions
Remove const qualifier Change-Id: Ifa758742a6bf036b5f71164d3a92a23ccdb3abe8 Signed-off-by: Xi Yan <xixiyan@redhat.com>
-rw-r--r--bundles/org.eclipse.swt/Eclipse SWT PI/gtk/library/os.c14
-rw-r--r--bundles/org.eclipse.swt/Eclipse SWT PI/gtk/org/eclipse/swt/internal/gtk/GDK.java14
2 files changed, 14 insertions, 14 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 6b5a7c2a19..3fcfe45787 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
@@ -1497,7 +1497,7 @@ JNIEXPORT jlong JNICALL GDK_NATIVE(_1gdk_1pixbuf_1animation_1get_1iter)
{
jlong rc = 0;
GDK_NATIVE_ENTER(env, that, _1gdk_1pixbuf_1animation_1get_1iter_FUNC);
- rc = (jlong)gdk_pixbuf_animation_get_iter((const GdkPixbufAnimation *)arg0, (const GTimeVal *)arg1);
+ rc = (jlong)gdk_pixbuf_animation_get_iter((GdkPixbufAnimation *)arg0, (const GTimeVal *)arg1);
GDK_NATIVE_EXIT(env, that, _1gdk_1pixbuf_1animation_1get_1iter_FUNC);
return rc;
}
@@ -1509,7 +1509,7 @@ JNIEXPORT jlong JNICALL GDK_NATIVE(_1gdk_1pixbuf_1animation_1get_1static_1image)
{
jlong rc = 0;
GDK_NATIVE_ENTER(env, that, _1gdk_1pixbuf_1animation_1get_1static_1image_FUNC);
- rc = (jlong)gdk_pixbuf_animation_get_static_image((const GdkPixbufAnimation *)arg0);
+ rc = (jlong)gdk_pixbuf_animation_get_static_image((GdkPixbufAnimation *)arg0);
GDK_NATIVE_EXIT(env, that, _1gdk_1pixbuf_1animation_1get_1static_1image_FUNC);
return rc;
}
@@ -1521,7 +1521,7 @@ JNIEXPORT jboolean JNICALL GDK_NATIVE(_1gdk_1pixbuf_1animation_1is_1static_1imag
{
jboolean rc = 0;
GDK_NATIVE_ENTER(env, that, _1gdk_1pixbuf_1animation_1is_1static_1image_FUNC);
- rc = (jboolean)gdk_pixbuf_animation_is_static_image((const GdkPixbufAnimation *)arg0);
+ rc = (jboolean)gdk_pixbuf_animation_is_static_image((GdkPixbufAnimation *)arg0);
GDK_NATIVE_EXIT(env, that, _1gdk_1pixbuf_1animation_1is_1static_1image_FUNC);
return rc;
}
@@ -1533,7 +1533,7 @@ JNIEXPORT jboolean JNICALL GDK_NATIVE(_1gdk_1pixbuf_1animation_1iter_1advance)
{
jboolean rc = 0;
GDK_NATIVE_ENTER(env, that, _1gdk_1pixbuf_1animation_1iter_1advance_FUNC);
- rc = (jboolean)gdk_pixbuf_animation_iter_advance((const GdkPixbufAnimationIter *)arg0, (const GTimeVal *)arg1);
+ rc = (jboolean)gdk_pixbuf_animation_iter_advance((GdkPixbufAnimationIter *)arg0, (const GTimeVal *)arg1);
GDK_NATIVE_EXIT(env, that, _1gdk_1pixbuf_1animation_1iter_1advance_FUNC);
return rc;
}
@@ -1545,7 +1545,7 @@ JNIEXPORT jint JNICALL GDK_NATIVE(_1gdk_1pixbuf_1animation_1iter_1get_1delay_1ti
{
jint rc = 0;
GDK_NATIVE_ENTER(env, that, _1gdk_1pixbuf_1animation_1iter_1get_1delay_1time_FUNC);
- rc = (jint)gdk_pixbuf_animation_iter_get_delay_time((const GdkPixbufAnimationIter *)arg0);
+ rc = (jint)gdk_pixbuf_animation_iter_get_delay_time((GdkPixbufAnimationIter *)arg0);
GDK_NATIVE_EXIT(env, that, _1gdk_1pixbuf_1animation_1iter_1get_1delay_1time_FUNC);
return rc;
}
@@ -1557,7 +1557,7 @@ JNIEXPORT jlong JNICALL GDK_NATIVE(_1gdk_1pixbuf_1animation_1iter_1get_1pixbuf)
{
jlong rc = 0;
GDK_NATIVE_ENTER(env, that, _1gdk_1pixbuf_1animation_1iter_1get_1pixbuf_FUNC);
- rc = (jlong)gdk_pixbuf_animation_iter_get_pixbuf((const GdkPixbufAnimationIter *)arg0);
+ rc = (jlong)gdk_pixbuf_animation_iter_get_pixbuf((GdkPixbufAnimationIter *)arg0);
GDK_NATIVE_EXIT(env, that, _1gdk_1pixbuf_1animation_1iter_1get_1pixbuf_FUNC);
return rc;
}
@@ -1591,7 +1591,7 @@ JNIEXPORT jlong JNICALL GDK_NATIVE(_1gdk_1pixbuf_1format_1get_1name)
{
jlong rc = 0;
GDK_NATIVE_ENTER(env, that, _1gdk_1pixbuf_1format_1get_1name_FUNC);
- rc = (jlong)gdk_pixbuf_format_get_name((const GdkPixbufFormat *)arg0);
+ rc = (jlong)gdk_pixbuf_format_get_name((GdkPixbufFormat *)arg0);
GDK_NATIVE_EXIT(env, that, _1gdk_1pixbuf_1format_1get_1name_FUNC);
return rc;
}
diff --git a/bundles/org.eclipse.swt/Eclipse SWT PI/gtk/org/eclipse/swt/internal/gtk/GDK.java b/bundles/org.eclipse.swt/Eclipse SWT PI/gtk/org/eclipse/swt/internal/gtk/GDK.java
index 2be4f1e277..eacd79a102 100644
--- a/bundles/org.eclipse.swt/Eclipse SWT PI/gtk/org/eclipse/swt/internal/gtk/GDK.java
+++ b/bundles/org.eclipse.swt/Eclipse SWT PI/gtk/org/eclipse/swt/internal/gtk/GDK.java
@@ -1405,7 +1405,7 @@ public class GDK extends OS {
lock.unlock();
}
}
- /** @param animation cast=(const GdkPixbufAnimation *) */
+ /** @param animation cast=(GdkPixbufAnimation *) */
public static final native boolean _gdk_pixbuf_animation_is_static_image(long animation);
public static final boolean gdk_pixbuf_animation_is_static_image(long animation) {
lock.lock();
@@ -1415,7 +1415,7 @@ public class GDK extends OS {
lock.unlock();
}
}
- /** @param iter cast=(const GdkPixbufAnimationIter *) */
+ /** @param iter cast=(GdkPixbufAnimationIter *) */
public static final native int _gdk_pixbuf_animation_iter_get_delay_time(long iter);
public static final int gdk_pixbuf_animation_iter_get_delay_time(long iter) {
lock.lock();
@@ -1425,7 +1425,7 @@ public class GDK extends OS {
lock.unlock();
}
}
- /** @param iter cast=(const GdkPixbufAnimationIter *) */
+ /** @param iter cast=(GdkPixbufAnimationIter *) */
public static final native long _gdk_pixbuf_animation_iter_get_pixbuf(long iter);
public static final long gdk_pixbuf_animation_iter_get_pixbuf(long iter) {
lock.lock();
@@ -1436,7 +1436,7 @@ public class GDK extends OS {
}
}
/**
- * @param iter cast=(const GdkPixbufAnimationIter *)
+ * @param iter cast=(GdkPixbufAnimationIter *)
* @param current_time cast=(const GTimeVal *)
*/
public static final native boolean _gdk_pixbuf_animation_iter_advance(long iter, long current_time);
@@ -1449,7 +1449,7 @@ public class GDK extends OS {
}
}
/**
- * @param animation cast=(const GdkPixbufAnimation *)
+ * @param animation cast=(GdkPixbufAnimation *)
* @param start_time cast=(const GTimeVal *)
*/
public static final native long _gdk_pixbuf_animation_get_iter(long animation, long start_time);
@@ -1461,7 +1461,7 @@ public class GDK extends OS {
lock.unlock();
}
}
- /** @param animation cast=(const GdkPixbufAnimation *) */
+ /** @param animation cast=(GdkPixbufAnimation *) */
public static final native long _gdk_pixbuf_animation_get_static_image(long animation);
public static final long gdk_pixbuf_animation_get_static_image(long animation) {
lock.lock();
@@ -1584,7 +1584,7 @@ public class GDK extends OS {
lock.unlock();
}
}
- /** @param format cast=(const GdkPixbufFormat *) */
+ /** @param format cast=(GdkPixbufFormat *) */
public static final native long _gdk_pixbuf_format_get_name(long format);
public static final long gdk_pixbuf_format_get_name(long format) {
lock.lock();

Back to the top