summaryrefslogtreecommitdiff
path: root/examples
diff options
context:
space:
mode:
authorOwen Taylor <otaylor@redhat.com>2003-05-27 16:22:17 +0000
committerOwen Taylor <otaylor@src.gnome.org>2003-05-27 16:22:17 +0000
commit7c8695012e0f06fb01cbb20da7ace569aa181e1c (patch)
tree86c3d815db8dae867070a48d25ecc6c3b18b2ba3 /examples
parentcf90e371a93f175dc1c2ad2f8ba5a9023af1aa5e (diff)
downloadpango-7c8695012e0f06fb01cbb20da7ace569aa181e1c.tar.gz
Add code to check for "./pangorc" so that it works uninstalled.
Tue May 27 12:19:53 2003 Owen Taylor <otaylor@redhat.com> * examples/pangoft2topgm.c (main): Add code to check for "./pangorc" so that it works uninstalled.
Diffstat (limited to 'examples')
-rw-r--r--examples/pangoft2topgm.c3
-rw-r--r--examples/renderdemo.c3
2 files changed, 6 insertions, 0 deletions
diff --git a/examples/pangoft2topgm.c b/examples/pangoft2topgm.c
index f00294f6..40d6bd21 100644
--- a/examples/pangoft2topgm.c
+++ b/examples/pangoft2topgm.c
@@ -146,6 +146,9 @@ int main(int argc, char *argv[])
char *prog_name = g_path_get_basename (argv[0]);
g_type_init();
+
+ if (g_file_test ("./pangorc", G_FILE_TEST_EXISTS))
+ putenv ("PANGO_RC_FILE=./pangorc");
/* Parse command line */
argp=1;
diff --git a/examples/renderdemo.c b/examples/renderdemo.c
index f00294f6..40d6bd21 100644
--- a/examples/renderdemo.c
+++ b/examples/renderdemo.c
@@ -146,6 +146,9 @@ int main(int argc, char *argv[])
char *prog_name = g_path_get_basename (argv[0]);
g_type_init();
+
+ if (g_file_test ("./pangorc", G_FILE_TEST_EXISTS))
+ putenv ("PANGO_RC_FILE=./pangorc");
/* Parse command line */
argp=1;