summaryrefslogtreecommitdiff
path: root/plugins/spell
diff options
context:
space:
mode:
authorSamuel Thibault <[email protected]>2019-07-01 17:10:44 +0200
committerraveit65 <[email protected]>2019-07-08 15:11:17 +0200
commit45145244b6dd9dc11b6d9a6daf4e442cef9457fa (patch)
tree7a177dc7e47804d72766a6b852ab34c9523ee8e5 /plugins/spell
parentdb655f3fb2f67b695d36369e584fcb598e0e1bea (diff)
downloadpluma-45145244b6dd9dc11b6d9a6daf4e442cef9457fa.tar.bz2
pluma-45145244b6dd9dc11b6d9a6daf4e442cef9457fa.tar.xz
Add support for checking .ui accessibility with gla11y
Diffstat (limited to 'plugins/spell')
-rw-r--r--plugins/spell/Makefile.am7
-rw-r--r--plugins/spell/ui-a11y.suppr6
2 files changed, 11 insertions, 2 deletions
diff --git a/plugins/spell/Makefile.am b/plugins/spell/Makefile.am
index 3d2d5f93..1ea7462e 100644
--- a/plugins/spell/Makefile.am
+++ b/plugins/spell/Makefile.am
@@ -34,7 +34,9 @@ libspell_la_LDFLAGS = $(PLUGIN_LIBTOOL_FLAGS)
libspell_la_LIBADD = $(PLUMA_LIBS) $(ENCHANT_LIBS)
uidir = $(PLUMA_PLUGINS_DATA_DIR)/spell
-ui_DATA = spell-checker.ui languages-dialog.ui pluma-spell-setup-dialog.ui
+ui_files = spell-checker.ui languages-dialog.ui pluma-spell-setup-dialog.ui
+include $(top_srcdir)/gla11y.mk
+ui_DATA = $(ui_files)
pluma-spell-marshal.h: pluma-spell-marshal.list $(GLIB_GENMARSHAL)
$(AM_V_GEN) $(GLIB_GENMARSHAL) $< --header --prefix=pluma_marshal > $@
@@ -59,7 +61,8 @@ EXTRA_DIST = \
$(ui_DATA) \
$(plugin_in_files) \
pluma-spell-marshal.list \
- $(spell_gschema_in)
+ $(spell_gschema_in) \
+ ui-a11y.suppr
CLEANFILES = $(BUILT_SOURCES) $(plugin_DATA) $(gsettings_SCHEMAS)
diff --git a/plugins/spell/ui-a11y.suppr b/plugins/spell/ui-a11y.suppr
new file mode 100644
index 00000000..4fbeed70
--- /dev/null
+++ b/plugins/spell/ui-a11y.suppr
@@ -0,0 +1,6 @@
+pluma-spell-setup-dialog.ui://GtkLabel[@id='label1'] orphan-label
+spell-checker.ui://GtkLabel[@id='label1'] orphan-label
+spell-checker.ui://GtkLabel[@id='misspelled_word_label'] orphan-label
+spell-checker.ui://GtkLabel[@id='label6'] orphan-label
+spell-checker.ui://GtkLabel[@id='label44'] orphan-label
+spell-checker.ui://GtkLabel[@id='language_label'] orphan-label