summaryrefslogtreecommitdiff
path: root/gtk/gtkaccessible.h
diff options
context:
space:
mode:
authorEmmanuele Bassi <ebassi@gnome.org>2020-07-17 14:39:56 +0100
committerEmmanuele Bassi <ebassi@gnome.org>2020-07-26 20:31:15 +0100
commit0d87f8cd62358be481050722f7d7847a428670de (patch)
tree31959c4f9a227845a86e495d9dd4ccd236e97f39 /gtk/gtkaccessible.h
parent52c1fb8dfed7a60db9aab756d1c067234b508316 (diff)
downloadgtk+-0d87f8cd62358be481050722f7d7847a428670de.tar.gz
a11y: Add testing API
We want to test the accessibility API, as well as the implementation inside each widget. For that, we should expose an API that lets us verify that a GtkAccessible has a given role, as well as a given property. The API follows the pattern of other GTest API: - a macro to assert that a condition is respected - a function that prints out the error message in case of failure
Diffstat (limited to 'gtk/gtkaccessible.h')
-rw-r--r--gtk/gtkaccessible.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/gtk/gtkaccessible.h b/gtk/gtkaccessible.h
index d0a115d205..0f7776a1e4 100644
--- a/gtk/gtkaccessible.h
+++ b/gtk/gtkaccessible.h
@@ -20,6 +20,10 @@
#pragma once
+#if !defined (__GTK_H_INSIDE__) && !defined (GTK_COMPILATION)
+#error "Only <gtk/gtk.h> can be included directly."
+#endif
+
#include <glib-object.h>
#include <gtk/gtktypes.h>
#include <gtk/gtkenums.h>