Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorEric Williams2017-10-13 16:36:40 +0000
committerEric Williams2017-10-13 16:36:40 +0000
commit145622248428ee928822ee41cc0db72303b9e580 (patch)
tree6c849e86ce8ce9cdfa35db3ecfb4b96f645a6964 /bundles/org.eclipse.swt/Eclipse SWT PI/gtk
parent06c8813f7326155289469803c378321127e0982c (diff)
downloadeclipse.platform.swt-145622248428ee928822ee41cc0db72303b9e580.tar.gz
eclipse.platform.swt-145622248428ee928822ee41cc0db72303b9e580.tar.xz
eclipse.platform.swt-145622248428ee928822ee41cc0db72303b9e580.zip
Bug 470031: [GTK3] Some viewparts became inaccessible in 4.5I20171015-2000I20171015-0655I20171014-1500I20171013-2000
Implement AtkText interface stub just to prevent warnings from happening until the full implementation is merged. Change-Id: I2333e037c0a19b8a94c43ad127e4fa82d50dd090 Signed-off-by: Eric Williams <ericwill@redhat.com>
Diffstat (limited to 'bundles/org.eclipse.swt/Eclipse SWT PI/gtk')
-rw-r--r--bundles/org.eclipse.swt/Eclipse SWT PI/gtk/library/os_custom.c9
1 files changed, 8 insertions, 1 deletions
diff --git a/bundles/org.eclipse.swt/Eclipse SWT PI/gtk/library/os_custom.c b/bundles/org.eclipse.swt/Eclipse SWT PI/gtk/library/os_custom.c
index ca5021825b..6e34a9a61f 100644
--- a/bundles/org.eclipse.swt/Eclipse SWT PI/gtk/library/os_custom.c
+++ b/bundles/org.eclipse.swt/Eclipse SWT PI/gtk/library/os_custom.c
@@ -764,11 +764,13 @@ static AtkStateSet *swt_fixed_accesssible_ref_state_set (AtkObject *accessible);
static void swt_fixed_accessible_action_iface_init (AtkActionIface *iface);
static void swt_fixed_accessible_hypertext_iface_init (AtkHypertextIface *iface);
static void swt_fixed_accessible_selection_iface_init (AtkSelectionIface *iface);
+static void swt_fixed_accessible_text_iface_init (AtkTextIface *iface);
G_DEFINE_TYPE_WITH_CODE (SwtFixedAccessible, swt_fixed_accessible, GTK_TYPE_CONTAINER_ACCESSIBLE,
G_IMPLEMENT_INTERFACE (ATK_TYPE_ACTION, swt_fixed_accessible_action_iface_init)
G_IMPLEMENT_INTERFACE (ATK_TYPE_HYPERTEXT, swt_fixed_accessible_hypertext_iface_init)
- G_IMPLEMENT_INTERFACE (ATK_TYPE_SELECTION, swt_fixed_accessible_selection_iface_init))
+ G_IMPLEMENT_INTERFACE (ATK_TYPE_SELECTION, swt_fixed_accessible_selection_iface_init)
+ G_IMPLEMENT_INTERFACE (ATK_TYPE_TEXT, swt_fixed_accessible_text_iface_init))
struct _SwtFixedAccessiblePrivate {
// A boolean flag which is set to TRUE when an Accessible Java
@@ -1117,6 +1119,11 @@ static void swt_fixed_accessible_selection_iface_init (AtkSelectionIface *iface)
iface->ref_selection = swt_fixed_accessible_selection_ref_selection;
}
+static void swt_fixed_accessible_text_iface_init (AtkTextIface *iface) {
+ // TODO_a11y: add this interface to stop warnings from text signals.
+ // Will be implemented later.
+}
+
jintLong call_accessible_object_function (const char *method_name, const char *method_signature,...) {
jintLong result = 0;
va_list arg_list;

Back to the top