summaryrefslogtreecommitdiff
path: root/gtk2_ardour/wscript
diff options
context:
space:
mode:
authorDoug McLain <doug@nostar.net>2011-02-15 18:02:50 +0000
committerDoug McLain <doug@nostar.net>2011-02-15 18:02:50 +0000
commit8d44c2b82a6334d1f0f00b7e174e061f83c9a441 (patch)
tree8198ecd48f2b166e403dbdb0d089fcfd3d994ede /gtk2_ardour/wscript
parent4bd528798073c8e168e9f17df6246255f653e079 (diff)
Update rc files to use unique rc variable names, update wscript to use the names, and re-enable theme switching
git-svn-id: svn://localhost/ardour2/branches/3.0@8861 d708f5d6-7413-0410-9779-e7cbd77b26cf
Diffstat (limited to 'gtk2_ardour/wscript')
-rw-r--r--gtk2_ardour/wscript9
1 files changed, 5 insertions, 4 deletions
diff --git a/gtk2_ardour/wscript b/gtk2_ardour/wscript
index 7ae17c76d5..97e5f8018f 100644
--- a/gtk2_ardour/wscript
+++ b/gtk2_ardour/wscript
@@ -264,7 +264,7 @@ def set_winegcc(self):
self.env.LINK_CXX = self.env.LINK_CC = 'wineg++'
self.env.CC = 'winegcc'
-def build_color_scheme(path):
+def build_color_scheme(path, prefix):
f = open (path, 'r')
color_scheme = ''
for line in f:
@@ -273,7 +273,8 @@ def build_color_scheme(path):
words = line.split()
if len(color_scheme):
color_scheme += ';'
- color_scheme += 'A_' # prefix for color name
+ color_scheme += prefix
+ color_scheme += '_'
color_scheme += words[1]
color_scheme += ':'
color_scheme += words[2]
@@ -429,8 +430,8 @@ def build(bld):
light_rc_subst_dict[key] = fontstyle
# RC files
- dark_rc_subst_dict['COLOR_SCHEME'] = build_color_scheme ('gtk2_ardour/ardour3_ui_dark.rc.in')
- light_rc_subst_dict['COLOR_SCHEME'] = build_color_scheme ('gtk2_ardour/ardour3_ui_light.rc.in')
+ dark_rc_subst_dict['COLOR_SCHEME'] = build_color_scheme ('gtk2_ardour/ardour3_ui_dark.rc.in', 'ARDOUR_DARK')
+ light_rc_subst_dict['COLOR_SCHEME'] = build_color_scheme ('gtk2_ardour/ardour3_ui_light.rc.in', 'ARDOUR_LIGHT')
obj = bld.new_task_gen('subst')
obj.source = 'ardour3_ui_dark.rc.in'