summaryrefslogtreecommitdiff
path: root/plugins/time
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/time
parentdb655f3fb2f67b695d36369e584fcb598e0e1bea (diff)
downloadpluma-45145244b6dd9dc11b6d9a6daf4e442cef9457fa.tar.bz2
pluma-45145244b6dd9dc11b6d9a6daf4e442cef9457fa.tar.xz
Add support for checking .ui accessibility with gla11y
Diffstat (limited to 'plugins/time')
-rw-r--r--plugins/time/Makefile.am6
-rw-r--r--plugins/time/ui-a11y.suppr10
2 files changed, 14 insertions, 2 deletions
diff --git a/plugins/time/Makefile.am b/plugins/time/Makefile.am
index e9b5f329..591a04d6 100644
--- a/plugins/time/Makefile.am
+++ b/plugins/time/Makefile.am
@@ -16,9 +16,11 @@ libtime_la_LDFLAGS = $(PLUGIN_LIBTOOL_FLAGS)
libtime_la_LIBADD = $(PLUMA_LIBS)
uidir = $(PLUMA_PLUGINS_DATA_DIR)/time
-ui_DATA = \
+ui_files = \
pluma-time-dialog.ui \
pluma-time-setup-dialog.ui
+include $(top_srcdir)/gla11y.mk
+ui_DATA = $(ui_files)
plugin_in_files = time.plugin.desktop.in
@@ -31,7 +33,7 @@ time_gschema_in = org.mate.pluma.plugins.time.gschema.xml.in
gsettings_SCHEMAS = $(time_gschema_in:.xml.in=.xml)
@GSETTINGS_RULES@
-EXTRA_DIST = $(ui_DATA) $(plugin_in_files) $(time_gschema_in)
+EXTRA_DIST = $(ui_DATA) $(plugin_in_files) $(time_gschema_in) ui-a11y.suppr
CLEANFILES = $(plugin_DATA) $(gsettings_SCHEMAS_in) $(gsettings_SCHEMASn)
DISTCLEANFILES = $(plugin_DATA) $(gsettings_SCHEMAS_in) $(gsettings_SCHEMAS)
diff --git a/plugins/time/ui-a11y.suppr b/plugins/time/ui-a11y.suppr
new file mode 100644
index 00000000..805ff4d6
--- /dev/null
+++ b/plugins/time/ui-a11y.suppr
@@ -0,0 +1,10 @@
+pluma-time-dialog.ui://GtkLabel[@id='label5'] orphan-label
+pluma-time-dialog.ui://GtkTreeView[@id='choice_list'] no-labelled-by
+pluma-time-dialog.ui://GtkEntry[@id='custom_entry'] no-labelled-by
+pluma-time-dialog.ui://GtkLabel[@id='custom_format_example'] orphan-label
+pluma-time-setup-dialog.ui://GtkLabel[@id='label1'] orphan-label
+pluma-time-setup-dialog.ui://GtkLabel[@id='label3'] orphan-label
+pluma-time-setup-dialog.ui://GtkLabel[@id='label4'] orphan-label
+pluma-time-setup-dialog.ui://GtkTreeView[@id='formats_tree'] no-labelled-by
+pluma-time-setup-dialog.ui://GtkEntry[@id='custom_entry'] no-labelled-by
+pluma-time-setup-dialog.ui://GtkLabel[@id='custom_format_example'] orphan-label