diff options
author | Tim-Philipp Müller <tim@centricular.com> | 2017-03-12 18:36:21 +0000 |
---|---|---|
committer | Emmanuele Bassi <ebassi@gnome.org> | 2017-05-03 15:10:53 +0100 |
commit | d276cd47a5db26718f03b84ca3586a4fc5475f1b (patch) | |
tree | e03410ef300a9bc6e917dd3a92923213b0e9d30f /tests/teststackedheaders.c | |
parent | 08153c38547f0e23ab3f22844f5a0537c7095d65 (diff) | |
download | gtk+-d276cd47a5db26718f03b84ca3586a4fc5475f1b.tar.gz |
meson: tests: make tests find resources from the source dir
Should probably also do this in the autotools build, since
the same problem exists there as well if we use srcdir != builddir.
Diffstat (limited to 'tests/teststackedheaders.c')
-rw-r--r-- | tests/teststackedheaders.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/tests/teststackedheaders.c b/tests/teststackedheaders.c index 830e9da761..c342d685ca 100644 --- a/tests/teststackedheaders.c +++ b/tests/teststackedheaders.c @@ -1,4 +1,5 @@ #include <gtk/gtk.h> +#include <glib/gstdio.h> static GtkWidget *header_stack; static GtkWidget *page_stack; @@ -23,6 +24,10 @@ main (int argc, char *argv[]) GtkBuilder *builder; GtkWidget *win; +#ifdef GTK_SRCDIR + g_chdir (GTK_SRCDIR); +#endif + gtk_init (); builder = gtk_builder_new (); |