summaryrefslogtreecommitdiff
path: root/libview/ev-view-accessible.h
diff options
context:
space:
mode:
authorraveit65 <[email protected]>2017-03-05 16:06:08 +0100
committerraveit65 <[email protected]>2017-03-07 13:34:19 +0100
commitb461ca43a65f51dfd89bcb837ac6953a60a82d21 (patch)
tree92161ea6844600f18c125e7fb9dcdfb1168d2eed /libview/ev-view-accessible.h
parent3f14ab3b26ea683f02089d14795ac0b5b8d9d076 (diff)
downloadatril-b461ca43a65f51dfd89bcb837ac6953a60a82d21.tar.bz2
atril-b461ca43a65f51dfd89bcb837ac6953a60a82d21.tar.xz
a11y: Do not use AtkFactory to create the EvViewAccessible
https://bugzilla.gnome.org/show_bug.cgi?id=685828 taken from: https://git.gnome.org/browse/evince/commit/?id=37c58de
Diffstat (limited to 'libview/ev-view-accessible.h')
-rw-r--r--libview/ev-view-accessible.h25
1 files changed, 23 insertions, 2 deletions
diff --git a/libview/ev-view-accessible.h b/libview/ev-view-accessible.h
index d9c6b71d..04ef34e8 100644
--- a/libview/ev-view-accessible.h
+++ b/libview/ev-view-accessible.h
@@ -25,9 +25,30 @@
#ifndef __EV_VIEW_ACCESSIBLE_H__
#define __EV_VIEW_ACCESSIBLE_H__
-#include "ev-view.h"
+#include <gtk/gtk-a11y.h>
-GType ev_view_accessible_factory_get_type (void);
+#define EV_TYPE_VIEW_ACCESSIBLE (ev_view_accessible_get_type ())
+#define EV_VIEW_ACCESSIBLE(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), EV_TYPE_VIEW_ACCESSIBLE, EvViewAccessible))
+#define EV_IS_VIEW_ACCESSIBLE(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), EV_TYPE_VIEW_ACCESSIBLE))
+
+typedef struct _EvViewAccessible EvViewAccessible;
+typedef struct _EvViewAccessibleClass EvViewAccessibleClass;
+typedef struct _EvViewAccessiblePrivate EvViewAccessiblePrivate;
+
+struct _EvViewAccessible
+{
+ GtkContainerAccessible parent;
+
+ EvViewAccessiblePrivate *priv;
+};
+
+struct _EvViewAccessibleClass
+{
+ GtkContainerAccessibleClass parent_class;
+};
+
+GType ev_view_accessible_get_type (void);
+AtkObject *ev_view_accessible_new (GtkWidget *widget);
#endif /* __EV_VIEW_ACCESSIBLE_H__ */