diff options
author | Luke Yelavich <[email protected]> | 2016-10-08 12:22:45 +1100 |
---|---|---|
committer | monsta <[email protected]> | 2016-10-18 16:31:31 +0300 |
commit | a8470c69525fd6b0c2c94755298753f90b813831 (patch) | |
tree | 23383171c1248f96c851846fec7e9cc5471c0ab1 /eel/eel-canvas.h | |
parent | 28bf4f548f21554f82acd406aa64662b6a09c044 (diff) | |
download | caja-a8470c69525fd6b0c2c94755298753f90b813831.tar.bz2 caja-a8470c69525fd6b0c2c94755298753f90b813831.tar.xz |
Fix accessible object inherritance when used with GTK 3
Also disable eel accessibility code that is not needed.
Fixes https://github.com/mate-desktop/caja/issues/590
Diffstat (limited to 'eel/eel-canvas.h')
-rw-r--r-- | eel/eel-canvas.h | 20 |
1 files changed, 20 insertions, 0 deletions
diff --git a/eel/eel-canvas.h b/eel/eel-canvas.h index fcb4cb3d..b168aed8 100644 --- a/eel/eel-canvas.h +++ b/eel/eel-canvas.h @@ -38,6 +38,9 @@ #define EEL_CANVAS_H #include <gtk/gtk.h> +#if GTK_CHECK_VERSION(3, 0, 0) +#include <gtk/gtk-a11y.h> +#endif #include <gdk/gdk.h> #include <stdarg.h> @@ -555,6 +558,23 @@ extern "C" { void eel_canvas_world_to_window (EelCanvas *canvas, double worldx, double worldy, double *winx, double *winy); +#if GTK_CHECK_VERSION(3, 0, 0) + GType eel_canvas_accessible_get_type (void); + + typedef struct _EelCanvasAccessible EelCanvasAccessible; + typedef struct _EelCanvasAccessibleClass EelCanvasAccessibleClass; + + struct _EelCanvasAccessible + { + GtkContainerAccessible parent; + }; + + struct _EelCanvasAccessibleClass + { + GtkContainerAccessibleClass parent_class; + }; +#endif + #ifdef __cplusplus } #endif |