summaryrefslogtreecommitdiff
path: root/src/caja-desktop-window.h
diff options
context:
space:
mode:
authorSamuel Thibault <[email protected]>2018-06-05 17:03:19 +0200
committerlukefromdc <[email protected]>2018-06-06 15:58:28 -0400
commitdf6643acc8ad90292a56feac666fb5d557004964 (patch)
tree7923acc436e150b99ca7bd8187921367dd1669c1 /src/caja-desktop-window.h
parent3720401f7a091462988268c849e3750ee48fff88 (diff)
downloadcaja-df6643acc8ad90292a56feac666fb5d557004964.tar.bz2
caja-df6643acc8ad90292a56feac666fb5d557004964.tar.xz
desktop window: Add is-desktop AtkObject attribute
Screen readers need to distinguish between the desktop window and normal windows, to be able to provide nicer speech synthesis. This can be done by simply adding an "is-desktop" attribute to the underlying AtkObject. This is here done by introducing a thin caja_desktop_window_accessible_class class which is based on GtkWindowAccessible and just appends the attribute. Closes: #999
Diffstat (limited to 'src/caja-desktop-window.h')
-rw-r--r--src/caja-desktop-window.h14
1 files changed, 14 insertions, 0 deletions
diff --git a/src/caja-desktop-window.h b/src/caja-desktop-window.h
index 2bd3579c..5692177b 100644
--- a/src/caja-desktop-window.h
+++ b/src/caja-desktop-window.h
@@ -32,6 +32,8 @@
#include "caja-application.h"
#include "caja-spatial-window.h"
+#include <gtk/gtk-a11y.h>
+
#define CAJA_TYPE_DESKTOP_WINDOW caja_desktop_window_get_type()
#define CAJA_DESKTOP_WINDOW(obj) \
(G_TYPE_CHECK_INSTANCE_CAST ((obj), CAJA_TYPE_DESKTOP_WINDOW, CajaDesktopWindow))
@@ -64,4 +66,16 @@ CajaDesktopWindow *caja_desktop_window_new (CajaApplication *app
void caja_desktop_window_update_directory (CajaDesktopWindow *window);
gboolean caja_desktop_window_loaded (CajaDesktopWindow *window);
+#define CAJA_TYPE_DESKTOP_WINDOW_ACCESSIBLE caja_desktop_window_accessible_get_type()
+
+typedef struct
+{
+ GtkWindowAccessible parent_spot;
+} CajaDesktopWindowAccessible;
+
+typedef struct
+{
+ GtkWindowAccessibleClass parent_spot;
+} CajaDesktopWindowAccessibleClass;
+
#endif /* CAJA_DESKTOP_WINDOW_H */