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/testdialog.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/testdialog.c')
-rw-r--r-- | tests/testdialog.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/tests/testdialog.c b/tests/testdialog.c index 941acfdba1..07eba4b7b9 100644 --- a/tests/testdialog.c +++ b/tests/testdialog.c @@ -1,4 +1,5 @@ #include <gtk/gtk.h> +#include <glib/gstdio.h> static void show_message_dialog1 (GtkWindow *parent) @@ -316,6 +317,10 @@ main (int argc, char *argv[]) GtkWidget *box; GtkWidget *button; +#ifdef GTK_SRCDIR + g_chdir (GTK_SRCDIR); +#endif + gtk_init (); window = gtk_window_new (GTK_WINDOW_TOPLEVEL); |