diff options
author | Alexander Kurtakov | 2018-09-12 10:44:39 +0000 |
---|---|---|
committer | Eric Williams | 2018-09-12 15:14:16 +0000 |
commit | 293f8acff257cfd14c8b17937489fc1cd22273b0 (patch) | |
tree | 8fb38223ad7bc428031036ae989874062ffb48f3 /bundles/org.eclipse.swt/Eclipse SWT PI/gtk/org/eclipse/swt/internal | |
parent | 6dd7b5f2cbf6cf54d60b4a4a125d0ae08fb934c9 (diff) | |
download | eclipse.platform.swt-293f8acff257cfd14c8b17937489fc1cd22273b0.tar.gz eclipse.platform.swt-293f8acff257cfd14c8b17937489fc1cd22273b0.tar.xz eclipse.platform.swt-293f8acff257cfd14c8b17937489fc1cd22273b0.zip |
Bug 530841: [GTK2] Remove GTK 2.x support
Drop GTK2 support in accessibility implementation.
Change-Id: If0d87cf4a0a25cc03983f356c5f47a27214eaa2f
Signed-off-by: Alexander Kurtakov <akurtako@redhat.com>
Diffstat (limited to 'bundles/org.eclipse.swt/Eclipse SWT PI/gtk/org/eclipse/swt/internal')
4 files changed, 0 insertions, 124 deletions
diff --git a/bundles/org.eclipse.swt/Eclipse SWT PI/gtk/org/eclipse/swt/internal/accessibility/gtk/ATK.java b/bundles/org.eclipse.swt/Eclipse SWT PI/gtk/org/eclipse/swt/internal/accessibility/gtk/ATK.java index 6af4997e08..825534c13e 100644 --- a/bundles/org.eclipse.swt/Eclipse SWT PI/gtk/org/eclipse/swt/internal/accessibility/gtk/ATK.java +++ b/bundles/org.eclipse.swt/Eclipse SWT PI/gtk/org/eclipse/swt/internal/accessibility/gtk/ATK.java @@ -198,8 +198,6 @@ public class ATK extends OS { public static final byte[] accessible_table_summary = OS.ascii ("accessible-table-summary"); /** 64 bit */ -public static final native int AtkObjectFactory_sizeof (); -public static final native int AtkObjectFactoryClass_sizeof (); public static final native int AtkAttribute_sizeof (); public static final native int AtkTextRange_sizeof (); public static final native int AtkTextRectangle_sizeof (); @@ -224,7 +222,6 @@ public static final native long /*int*/ ATK_TYPE_TEXT (); public static final native long /*int*/ ATK_TYPE_VALUE (); /** @method flags=const */ public static final native long /*int*/ ATK_TYPE_OBJECT_FACTORY (); -public static final native boolean ATK_IS_NO_OP_OBJECT_FACTORY (long /*int*/ obj); public static final native long /*int*/ _ATK_ACTION_GET_IFACE (long /*int*/ obj); public static final long /*int*/ ATK_ACTION_GET_IFACE (long /*int*/ obj) { lock.lock(); @@ -298,38 +295,6 @@ public static final long /*int*/ ATK_VALUE_GET_IFACE (long /*int*/ handle) { lock.unlock(); } } -public static final native long /*int*/ _atk_get_default_registry (); -public static final long /*int*/ atk_get_default_registry () { - lock.lock(); - try { - return _atk_get_default_registry(); - } finally { - lock.unlock(); - } -} -/** @param factory cast=(AtkObjectFactory *) */ -public static final native long /*int*/ _atk_object_factory_get_accessible_type (long /*int*/ factory); -public static final long /*int*/ atk_object_factory_get_accessible_type (long /*int*/ factory) { - lock.lock(); - try { - return _atk_object_factory_get_accessible_type(factory); - } finally { - lock.unlock(); - } -} -/** - * @param accessible cast=(AtkObject *) - * @param data cast=(gpointer) - */ -public static final native void _atk_object_initialize (long /*int*/ accessible, long /*int*/ data); -public static final void atk_object_initialize (long /*int*/ accessible, long /*int*/ data) { - lock.lock(); - try { - _atk_object_initialize(accessible, data); - } finally { - lock.unlock(); - } -} /** @param accessible cast=(AtkObject *) */ public static final native void _atk_object_notify_state_change (long /*int*/ accessible, int state, boolean value); public static final void atk_object_notify_state_change (long /*int*/ accessible, int state, boolean value) { @@ -369,46 +334,6 @@ public static final boolean atk_object_remove_relationship (long /*int*/ object, } } /** - * @method flags=dynamic - * @param name cast=(const gchar *) - */ -public static final native int _atk_role_register (byte[] name); //Note, deprecated, do not use. See atk docu. -public static final int atk_role_register (byte[] name) { - lock.lock(); - try { - return _atk_role_register(name); - } finally { - lock.unlock(); - } -} -/** - * @param registry cast=(AtkRegistry *) - * @param type cast=(GType) - */ -public static final native long /*int*/ _atk_registry_get_factory (long /*int*/ registry, long /*int*/ type); -public static final long /*int*/ atk_registry_get_factory (long /*int*/ registry, long /*int*/ type) { - lock.lock(); - try { - return _atk_registry_get_factory(registry, type); - } finally { - lock.unlock(); - } -} -/** - * @param registry cast=(AtkRegistry *) - * @param type cast=(GType) - * @param factory_type cast=(GType) - */ -public static final native void _atk_registry_set_factory_type (long /*int*/ registry, long /*int*/ type, long /*int*/ factory_type); -public static final void atk_registry_set_factory_type (long /*int*/ registry, long /*int*/ type, long /*int*/ factory_type) { - lock.lock(); - try { - _atk_registry_set_factory_type(registry, type, factory_type); - } finally { - lock.unlock(); - } -} -/** * @param set cast=(AtkStateSet *) * @param type cast=(AtkStateType) */ @@ -480,7 +405,6 @@ public static final native void memmove (AtkComponentIface dest, long /*int*/ sr public static final native void memmove (AtkEditableTextIface dest, long /*int*/ src); public static final native void memmove (AtkHypertextIface dest, long /*int*/ src); public static final native void memmove (AtkObjectClass dest, long /*int*/ src); -public static final native void memmove (AtkObjectFactoryClass dest, long /*int*/ src); public static final native void memmove (AtkSelectionIface dest, long /*int*/ src); public static final native void memmove (AtkTableIface dest, long /*int*/ src); public static final native void memmove (AtkTextIface dest, long /*int*/ src); @@ -490,7 +414,6 @@ public static final native void memmove (long /*int*/ dest, AtkComponentIface sr public static final native void memmove (long /*int*/ dest, AtkEditableTextIface src); public static final native void memmove (long /*int*/ dest, AtkHypertextIface src); public static final native void memmove (long /*int*/ dest, AtkObjectClass src); -public static final native void memmove (long /*int*/ dest, AtkObjectFactoryClass src); public static final native void memmove (long /*int*/ dest, AtkSelectionIface src); public static final native void memmove (long /*int*/ dest, AtkTableIface src); public static final native void memmove (long /*int*/ dest, AtkTextIface src); diff --git a/bundles/org.eclipse.swt/Eclipse SWT PI/gtk/org/eclipse/swt/internal/accessibility/gtk/AtkObjectFactoryClass.java b/bundles/org.eclipse.swt/Eclipse SWT PI/gtk/org/eclipse/swt/internal/accessibility/gtk/AtkObjectFactoryClass.java deleted file mode 100644 index 2395abaf79..0000000000 --- a/bundles/org.eclipse.swt/Eclipse SWT PI/gtk/org/eclipse/swt/internal/accessibility/gtk/AtkObjectFactoryClass.java +++ /dev/null @@ -1,25 +0,0 @@ -/******************************************************************************* - * Copyright (c) 2000, 2012 IBM Corporation and others. All rights reserved. - * The contents of this file are made available under the terms - * of the GNU Lesser General Public License (LGPL) Version 2.1 that - * accompanies this distribution (lgpl-v21.txt). The LGPL is also - * available at http://www.gnu.org/licenses/lgpl.html. If the version - * of the LGPL at http://www.gnu.org is different to the version of - * the LGPL accompanying this distribution and there is any conflict - * between the two license versions, the terms of the LGPL accompanying - * this distribution shall govern. - * - * Contributors: - * IBM Corporation - initial API and implementation - *******************************************************************************/ -package org.eclipse.swt.internal.accessibility.gtk; - - -public class AtkObjectFactoryClass { - /** @field cast=(AtkObject *(*)()) */ - public long /*int*/ create_accessible; - /** @field cast=(void (*)()) */ - public long /*int*/ invalidate; - /** @field cast=(GType (*)()) */ - public long /*int*/ get_accessible_type; -} diff --git a/bundles/org.eclipse.swt/Eclipse SWT PI/gtk/org/eclipse/swt/internal/gtk/GTK.java b/bundles/org.eclipse.swt/Eclipse SWT PI/gtk/org/eclipse/swt/internal/gtk/GTK.java index 80f1a57500..b7e0009c61 100644 --- a/bundles/org.eclipse.swt/Eclipse SWT PI/gtk/org/eclipse/swt/internal/gtk/GTK.java +++ b/bundles/org.eclipse.swt/Eclipse SWT PI/gtk/org/eclipse/swt/internal/gtk/GTK.java @@ -277,8 +277,6 @@ public class GTK extends OS { /** @param widget cast=(GtkWidget *) */ public static final native int GTK_WIDGET_REQUISITION_HEIGHT(long /*int*/ widget); /** @method flags=const */ - public static final native long /*int*/ GTK_TYPE_ACCESSIBLE (); - /** @method flags=const */ public static final native long /*int*/ GTK_TYPE_TEXT_VIEW_ACCESSIBLE (); public static final native long /*int*/ _GTK_ACCESSIBLE (long /*int*/ handle); public static final native boolean _GTK_IS_ACCEL_LABEL(long /*int*/ obj); 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 793b5e237b..2431ddf048 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 @@ -2603,16 +2603,6 @@ public static final void g_type_class_unref (long /*int*/ g_class) { lock.unlock(); } } -/** @param name cast=(const gchar *) */ -public static final native long /*int*/ _g_type_from_name (byte[] name); -public static final long /*int*/ g_type_from_name (byte[] name) { - lock.lock(); - try { - return _g_type_from_name(name); - } finally { - lock.unlock(); - } -} /** @param iface cast=(gpointer) */ public static final native long /*int*/ _g_type_interface_peek_parent (long /*int*/ iface); public static final long /*int*/ g_type_interface_peek_parent (long /*int*/ iface) { @@ -2636,16 +2626,6 @@ public static final boolean g_type_is_a (long /*int*/ type, long /*int*/ is_a_ty lock.unlock(); } } -/** @param handle cast=(GType) */ -public static final native long /*int*/ _g_type_name (long /*int*/ handle); -public static final long /*int*/ g_type_name (long /*int*/ handle) { - lock.lock(); - try { - return _g_type_name(handle); - } finally { - lock.unlock(); - } -} /** @param type cast=(GType) */ public static final native long /*int*/ _g_type_parent (long /*int*/ type); public static final long /*int*/ g_type_parent (long /*int*/ type) { |