[AdgTable] Propagate signals to the internal children
[adg.git] / demo / demo.c
blob6de59aef0e32ed00a4a8d9638a6a522aa4691bd9
1 #include <config.h>
3 #include "demo.h"
5 gchar *
6 demo_find_data_file(const gchar *file)
8 gchar *path;
10 path = g_build_filename(SOURCEDIR, file, NULL);
11 if (g_file_test(path, G_FILE_TEST_EXISTS))
12 return path;
14 g_free(path);
15 path = g_build_filename(PKGDATADIR, PACKAGE_NAME, file, NULL);
16 if (g_file_test(path, G_FILE_TEST_EXISTS))
17 return path;
19 g_free(path);
20 return NULL;