diff options
author | Juerg Billeter <j@bitron.ch> | 2008-01-24 12:58:01 +0000 |
---|---|---|
committer | Jürg Billeter <juergbi@src.gnome.org> | 2008-01-24 12:58:01 +0000 |
commit | a430987c251d99f3959d0ebfea07407c9d07fde1 (patch) | |
tree | 9f8b551d0931866bc9a79a61016d800603c9ef03 /gen-project | |
parent | 674786f6e0e973295583b565435464d31608a01f (diff) | |
download | vala-a430987c251d99f3959d0ebfea07407c9d07fde1.tar.gz |
use valac -C in generated Makefile.am and fix GtkTextBuffer.get_text call
2008-01-24 Juerg Billeter <j@bitron.ch>
* gen-project/valaprojectgenerator.vala: use valac -C in generated
Makefile.am and fix GtkTextBuffer.get_text call in generated source
code
svn path=/trunk/; revision=903
Diffstat (limited to 'gen-project')
-rw-r--r-- | gen-project/valaprojectgenerator.vala | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/gen-project/valaprojectgenerator.vala b/gen-project/valaprojectgenerator.vala index 0636515b6..f6623ddbb 100644 --- a/gen-project/valaprojectgenerator.vala +++ b/gen-project/valaprojectgenerator.vala @@ -1,6 +1,6 @@ /* valaprojectgenerator.vala * - * Copyright (C) 2007 Jürg Billeter + * Copyright (C) 2007-2008 Jürg Billeter * * This library is free software; you can redistribute it and/or * modify it under the terms of the GNU Lesser General Public @@ -324,7 +324,7 @@ class Vala.ProjectGenerator : Dialog { s.append ("\t$(NULL)\n\n"); s.append_printf ("src/%s.vala.stamp: $(%s_VALASOURCES)\n", project_name, make_name); - s.append ("\t$(VALAC) "); + s.append ("\t$(VALAC) -C "); if (use_gtk) { s.append ("--pkg gtk+-2.0 "); } @@ -505,7 +505,7 @@ class Vala.ProjectGenerator : Dialog { s.append ("\t\ttry {\n"); s.append ("\t\t\tTextIter start_iter, end_iter;\n"); s.append ("\t\t\ttext_buffer.get_bounds (out start_iter, out end_iter);\n"); - s.append ("\t\t\tstring text = text_buffer.get_text (ref start_iter, ref end_iter, true);\n"); + s.append ("\t\t\tstring text = text_buffer.get_text (start_iter, end_iter, true);\n"); s.append ("\t\t\tFileUtils.set_contents (filename, text, -1);\n"); s.append ("\t\t} catch (FileError e) {\n"); s.append ("\t\t\tcritical (\"Error while trying to save file: %s\", e.message);\n"); |