summaryrefslogtreecommitdiff
path: root/testsuite/a11y
diff options
context:
space:
mode:
authorTimm Bäder <mail@baedert.org>2020-05-18 12:34:51 +0200
committerTimm Bäder <mail@baedert.org>2020-05-19 08:32:33 +0200
commit14c3bc542d01b0ef2432dea7b708a9497e19b375 (patch)
treea04da3c1acd8755138aba0418df67b0befd12a9b /testsuite/a11y
parentdd370db62a3ca9aea07f1994e4635b18b8b89d82 (diff)
downloadgtk+-14c3bc542d01b0ef2432dea7b708a9497e19b375.tar.gz
tetsuite/a11y: Pass common_cflags to build
Diffstat (limited to 'testsuite/a11y')
-rw-r--r--testsuite/a11y/children.c2
-rw-r--r--testsuite/a11y/derive.c3
-rw-r--r--testsuite/a11y/meson.build1
-rw-r--r--testsuite/a11y/tree-relationships.c2
4 files changed, 6 insertions, 2 deletions
diff --git a/testsuite/a11y/children.c b/testsuite/a11y/children.c
index 6a4fcc9a81..91d69f7b87 100644
--- a/testsuite/a11y/children.c
+++ b/testsuite/a11y/children.c
@@ -108,7 +108,7 @@ parent_notify (AtkObject *obj, GParamSpec *pspec, SignalData *data)
data->parent = atk_object_get_parent (obj);
}
-gboolean
+static gboolean
do_create_child (STATE *state, gint i)
{
if (GTK_IS_ENTRY (state->widget))
diff --git a/testsuite/a11y/derive.c b/testsuite/a11y/derive.c
index a926074f4a..397097237f 100644
--- a/testsuite/a11y/derive.c
+++ b/testsuite/a11y/derive.c
@@ -28,6 +28,8 @@
typedef GtkButtonAccessible MyButtonAccessible;
typedef GtkButtonAccessibleClass MyButtonAccessibleClass;
+
+GType my_button_accessible_get_type (void);
G_DEFINE_TYPE (MyButtonAccessible, my_button_accessible, GTK_TYPE_BUTTON_ACCESSIBLE)
static void
@@ -43,6 +45,7 @@ my_button_accessible_class_init (MyButtonAccessibleClass *class)
typedef GtkButton MyButton;
typedef GtkButtonClass MyButtonClass;
+GType my_button_get_type (void);
G_DEFINE_TYPE (MyButton, my_button, GTK_TYPE_BUTTON)
static void
diff --git a/testsuite/a11y/meson.build b/testsuite/a11y/meson.build
index ec3a8a3a2a..4bc3c339a0 100644
--- a/testsuite/a11y/meson.build
+++ b/testsuite/a11y/meson.build
@@ -78,6 +78,7 @@ foreach t: a11y_tests
test (t,
executable (t, '@0@.c'.format(t),
install: get_option('install-tests'),
+ c_args: common_cflags,
install_dir: testexecdir,
dependencies: libgtk_dep),
args: [ '--tap', '-k', ],
diff --git a/testsuite/a11y/tree-relationships.c b/testsuite/a11y/tree-relationships.c
index e23f7b5bd9..f24d70e643 100644
--- a/testsuite/a11y/tree-relationships.c
+++ b/testsuite/a11y/tree-relationships.c
@@ -216,7 +216,7 @@ quit_loop (gpointer data)
}
static void
-process_pending_idles ()
+process_pending_idles (void)
{
GMainLoop *loop = g_main_loop_new (NULL, FALSE);
g_idle_add (quit_loop, loop);