2003-02-24 Mike Kestner <mkestner@speakeasy.net>
* sample/Subclass.cs : rework the GType code. svn path=/trunk/gtk-sharp/; revision=11923
This commit is contained in:
parent
0e5ab4bdea
commit
1f43eeef6b
2 changed files with 6 additions and 2 deletions
|
@ -1,3 +1,7 @@
|
|||
2003-02-24 Mike Kestner <mkestner@speakeasy.net>
|
||||
|
||||
* sample/Subclass.cs : rework the GType code.
|
||||
|
||||
2003-02-24 Mike Kestner <mkestner@speakeasy.net>
|
||||
|
||||
* generator/Parameters.cs : fix some ref/out bugs
|
||||
|
|
|
@ -45,12 +45,12 @@ namespace GtkSamples {
|
|||
|
||||
static uint gtype = 0;
|
||||
|
||||
public MyButton () : base (GType) {}
|
||||
public MyButton () : base (new GLib.Type (GType)) {}
|
||||
|
||||
public static new uint GType {
|
||||
get {
|
||||
if (gtype == 0)
|
||||
gtype = RegisterGType (typeof (MyButton));
|
||||
gtype = RegisterGType (typeof (MyButton)).Value;
|
||||
return gtype;
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue