* generator/Property.cs (Generate): Remove a redundant WriteLine (that
resulted in there being 2 blank lines before every property). * generator/Signal.cs (Generate): s/Write/WriteLine/ to fix a weirdly-formatted if statement in the generated code. svn path=/trunk/gtk-sharp/; revision=39584
This commit is contained in:
parent
f2343fbb71
commit
26198086f4
3 changed files with 10 additions and 4 deletions
|
@ -1,3 +1,11 @@
|
|||
2005-01-26 Dan Winship <danw@novell.com>
|
||||
|
||||
* generator/Property.cs (Generate): Remove a redundant WriteLine (that
|
||||
resulted in there being 2 blank lines before every property).
|
||||
|
||||
* generator/Signal.cs (Generate): s/Write/WriteLine/ to fix a
|
||||
weirdly-formatted if statement in the generated code.
|
||||
|
||||
2005-01-25 John Luke <john.luke@gmail.com>
|
||||
|
||||
* sample/CustomNotebook.cs:
|
||||
|
|
|
@ -138,8 +138,6 @@ namespace GtkSharp.Generation {
|
|||
cs_type = getter_type;
|
||||
}
|
||||
|
||||
sw.WriteLine();
|
||||
|
||||
sw.WriteLine (indent + PropertyAttribute (qpname));
|
||||
sw.WriteLine (indent + "public " + modifiers + cs_type + " " + name + " {");
|
||||
indent += "\t";
|
||||
|
|
|
@ -278,14 +278,14 @@ namespace GtkSharp.Generation {
|
|||
sw.WriteLine("\t\t\t\tif (value.Method.GetCustomAttributes(typeof(GLib.ConnectBeforeAttribute), false).Length > 0) {");
|
||||
sw.WriteLine("\t\t\t\t\tif (BeforeHandlers[" + cname + "] == null)");
|
||||
sw.Write("\t\t\t\t\t\tBeforeSignals[" + cname + "] = new " + qual_marsh);
|
||||
sw.Write("(this, " + cname + ", value, typeof (" + EventArgsQualifiedName + "), 0);");
|
||||
sw.WriteLine("(this, " + cname + ", value, typeof (" + EventArgsQualifiedName + "), 0);");
|
||||
sw.WriteLine("\t\t\t\t\telse");
|
||||
sw.WriteLine("\t\t\t\t\t\t((GLib.SignalCallback) BeforeSignals [{0}]).AddDelegate (value);", cname);
|
||||
sw.WriteLine("\t\t\t\t\tBeforeHandlers.AddHandler(" + cname + ", value);");
|
||||
sw.WriteLine("\t\t\t\t} else {");
|
||||
sw.WriteLine("\t\t\t\t\tif (AfterHandlers[" + cname + "] == null)");
|
||||
sw.Write("\t\t\t\t\t\tAfterSignals[" + cname + "] = new " + qual_marsh);
|
||||
sw.Write("(this, " + cname + ", value, typeof (" + EventArgsQualifiedName + "), 1);");
|
||||
sw.WriteLine("(this, " + cname + ", value, typeof (" + EventArgsQualifiedName + "), 1);");
|
||||
sw.WriteLine("\t\t\t\t\telse");
|
||||
sw.WriteLine("\t\t\t\t\t\t((GLib.SignalCallback) AfterSignals [{0}]).AddDelegate (value);", cname);
|
||||
sw.WriteLine("\t\t\t\t\tAfterHandlers.AddHandler(" + cname + ", value);");
|
||||
|
|
Loading…
Reference in a new issue