Bug 470031: [GTK3] Some viewparts became inaccessible in 4.5
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>
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 ca50218..6e34a9a 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 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 @@
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;