Merge pull request #323 from lucianposton/fix-glade

Fix glade UI file path in local builds
This commit is contained in:
zeromus 2020-04-23 07:27:27 -04:00 committed by GitHub
commit 2d1eee284c
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 3 additions and 1 deletions

View File

@ -174,7 +174,7 @@ if test "x$glade" = "xyes" ; then
AC_SUBST(LIBGLADE_LIBS)
dnl uninstalled glade ui dir
AC_DEFINE_UNQUOTED(GLADEUI_UNINSTALLED_DIR,"`pwd`/src/gtk-glade/glade/",[path to glade ui dir])
AC_DEFINE_UNQUOTED(GLADEUI_UNINSTALLED_DIR,"`pwd`/gtk-glade/glade/",[path to glade ui dir])
AC_SUBST(GLADEUI_UNINSTALLED_DIR)
PKG_CHECK_MODULES(GTKGLEXT,

View File

@ -322,6 +322,8 @@ gchar * get_ui_file (const char *filename)
if (g_file_test (path, G_FILE_TEST_IS_REGULAR)) return path;
g_free (path);
printf ("Failed to find ui file, \"%s\", in %s or %s\n",
filename ? filename : "", GLADEUI_UNINSTALLED_DIR, DATADIR);
/* not found */
return NULL;
}