summaryrefslogtreecommitdiff
path: root/generator/GenBase.cs
diff options
context:
space:
mode:
Diffstat (limited to 'generator/GenBase.cs')
-rw-r--r--generator/GenBase.cs11
1 files changed, 8 insertions, 3 deletions
diff --git a/generator/GenBase.cs b/generator/GenBase.cs
index 559e3e2..ed68c5c 100644
--- a/generator/GenBase.cs
+++ b/generator/GenBase.cs
@@ -105,14 +105,19 @@ namespace GtkSharp.Generation {
return MarshalType;
}
}
-
+
protected void AppendCustom (StreamWriter sw, string custom_dir)
+ {
+ AppendCustom (sw, custom_dir, Name);
+ }
+
+ protected void AppendCustom (StreamWriter sw, string custom_dir, string type_name)
{
char sep = Path.DirectorySeparatorChar;
- string custom = custom_dir + sep + Name + ".custom";
+ string custom = custom_dir + sep + type_name + ".custom";
if (File.Exists(custom)) {
sw.WriteLine ("#region Customized extensions");
- sw.WriteLine ("#line 1 \"" + Name + ".custom\"");
+ sw.WriteLine ("#line 1 \"" + type_name + ".custom\"");
FileStream custstream = new FileStream(custom, FileMode.Open, FileAccess.Read);
StreamReader sr = new StreamReader(custstream);
sw.WriteLine (sr.ReadToEnd ());