[sapwood] generate the gtkrc file for the gradient demo
- From: Sven Herzberg <herzi src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [sapwood] generate the gtkrc file for the gradient demo
- Date: Fri, 6 Aug 2010 12:05:18 +0000 (UTC)
commit 9d4c374c521319d11db9a4d56d1f7ebc3079e9ad
Author: Sven Herzberg <sven herzberg lanedo com>
Date: Thu Aug 5 10:06:55 2010 +0200
generate the gtkrc file for the gradient demo
This allows running the demo with builddir!=srcdir.
* demos/Makefile.am: updated
* demos/gradient.gtkrc -> demos/gradient.gtkrc.in: rename the file and
provide a replacable template
demos/Makefile.am | 5 +++++
demos/{gradient.gtkrc => gradient.gtkrc.in} | 2 +-
2 files changed, 6 insertions(+), 1 deletions(-)
---
diff --git a/demos/Makefile.am b/demos/Makefile.am
index abc5294..aed21be 100644
--- a/demos/Makefile.am
+++ b/demos/Makefile.am
@@ -10,6 +10,11 @@ noinst_PROGRAMS = \
gradient \
treeview
+all-local: gradient.gtkrc
+
+%.gtkrc: %.gtkrc.in
+ $(AM_V_GEN) sed 's|@SRCDIR@|$(srcdir)|' $< > $@
+
CLEANFILES = engines
MAINTAINERCLEANFILES = Makefile.in
diff --git a/demos/gradient.gtkrc b/demos/gradient.gtkrc.in
similarity index 86%
rename from demos/gradient.gtkrc
rename to demos/gradient.gtkrc.in
index c54aff4..9001170 100644
--- a/demos/gradient.gtkrc
+++ b/demos/gradient.gtkrc.in
@@ -1,5 +1,5 @@
# vim:set ft=gtkrc sw=2 sts=2 expandtab:
-pixmap_path "images"
+pixmap_path "@SRCDIR@/images"
style "button" {
engine "sapwood" {
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]