summaryrefslogtreecommitdiff
path: root/examples
diff options
context:
space:
mode:
authorOwen Taylor <otaylor@redhat.com>2003-05-27 16:22:32 +0000
committerOwen Taylor <otaylor@src.gnome.org>2003-05-27 16:22:32 +0000
commit39d26cfa43cb47aaf478a180b53b2fbb52620534 (patch)
tree5c38c339605d6facefb82cb1f43afdabb9529040 /examples
parent0a0e6dfabc1532f03d68c1f154956a501a3aa31d (diff)
downloadpango-39d26cfa43cb47aaf478a180b53b2fbb52620534.tar.gz
Claim to handle everything as a fallback (#106354, Simon Budig)
Tue May 27 12:19:53 2003 Owen Taylor <otaylor@redhat.com> * modules/basic/basic-ft2.c: Claim to handle everything as a fallback (#106354, Simon Budig) * 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;