* generator/Method.cs: Fixed bug where all ToString methods
was marked as override, this is only correct if the ToString method does not have any parameters. svn path=/trunk/gtk-sharp/; revision=17402
This commit is contained in:
parent
fadf3bc4a9
commit
05d0c9bf27
2 changed files with 7 additions and 1 deletions
|
@ -1,3 +1,9 @@
|
|||
2003-08-19 Martin Willemoes Hansen <mwh@sysrq.dk>
|
||||
|
||||
* generator/Method.cs: Fixed bug where all ToString methods
|
||||
was marked as override, this is only correct if the ToString
|
||||
method does not have any parameters.
|
||||
|
||||
2003-08-18 Aleksey Sanin <aleksey@aleksey.com>
|
||||
|
||||
* generator/SignalHandler.cs : take refs on GObject sig parms.
|
||||
|
|
|
@ -217,7 +217,7 @@ namespace GtkSharp.Generation {
|
|||
sw.Write("static ");
|
||||
sw.Write(safety);
|
||||
Method dup = null;
|
||||
if (Name == "ToString")
|
||||
if (Name == "ToString" && Params == null)
|
||||
sw.Write("override ");
|
||||
else if (Name == "GetGType" && container_type is ObjectGen)
|
||||
sw.Write("new ");
|
||||
|
|
Loading…
Reference in a new issue