summaryrefslogtreecommitdiff
path: root/SConstruct
diff options
context:
space:
mode:
authorJon Bergli Heier <snakebite@jvnv.net>2009-12-30 04:30:25 +0100
committerJon Bergli Heier <snakebite@jvnv.net>2009-12-30 04:30:25 +0100
commit4bff733352f608744e86328deb443d68ce666f7d (patch)
treee4bd26c2152fb19fe696e25ffffdb5198a22a508 /SConstruct
parenta5a787eac52734a926d39e958d22b87a450d42aa (diff)
Basic adding and assigning of tags implemented.
Committing this before it gets out of hand. Only adding new tags is working atm. Created a text input dialog. Added a tag dialog. Other minor changes.
Diffstat (limited to 'SConstruct')
-rw-r--r--SConstruct3
1 files changed, 2 insertions, 1 deletions
diff --git a/SConstruct b/SConstruct
index 1b0395b..f41d190 100644
--- a/SConstruct
+++ b/SConstruct
@@ -23,7 +23,7 @@ def build_ui(target, source, env):
f.write('#ifndef _WALLS_UI_H_\n')
f.write('#define _WALLS_UI_H_\n')
f.write('#include <gtk/gtk.h>\n')
- f.write('gchar *ui_string = \n')
+ f.write('gchar *%s_string = \n' % str(target[0]).rsplit('.', 1)[0])
for line in open(str(source[0]), 'r'):
f.write('"%s"\n' % line.replace('"', '\\"').strip())
f.write(';\n')
@@ -33,6 +33,7 @@ ui_builder = Builder(action = build_ui)
env['BUILDERS']['walls_ui'] = ui_builder
env.walls_ui('walls_ui.h', 'walls.ui')
+env.walls_ui('tags_ui.h', 'tags.ui')
walls = env.Program('walls', Glob('*.c'))
destdir = ARGUMENTS.get('DESTDIR', '')