[Monodevelop-patches-list] r1042 - trunk/MonoDevelop/build/data/templates/project/CSharp
commit-watcher at mono-cvs.ximian.com
commit-watcher at mono-cvs.ximian.com
Wed Feb 25 23:34:41 EST 2004
Author: jluke
Date: 2004-02-25 23:34:41 -0500 (Wed, 25 Feb 2004)
New Revision: 1042
Modified:
trunk/MonoDevelop/build/data/templates/project/CSharp/GnomeSharpProject.xpt
trunk/MonoDevelop/build/data/templates/project/CSharp/GtkSharpProject.xpt
Log:
update to be like Subclass.cs in gtk-sharp/sample
Modified: trunk/MonoDevelop/build/data/templates/project/CSharp/GnomeSharpProject.xpt
===================================================================
--- trunk/MonoDevelop/build/data/templates/project/CSharp/GnomeSharpProject.xpt 2004-02-26 04:10:46 UTC (rev 1041)
+++ trunk/MonoDevelop/build/data/templates/project/CSharp/GnomeSharpProject.xpt 2004-02-26 04:34:41 UTC (rev 1042)
@@ -1,7 +1,7 @@
<?xml version="1.0"?>
<Template originator = "John Luke"
created = "01/03/2004"
- lastModified = "01/03/2004">
+ lastModified = "02/25/2004">
<!-- Template Header -->
<TemplateConfiguration>
@@ -55,14 +55,19 @@
public class MyProgram : Program
{
- static GLib.GType type;
+ static GLib.GType gtype;
- static MyProgram ()
+ public static new GLib.GType GType
{
- type = RegisterGType (typeof (MyProgram));
+ get
+ {
+ if (gtype == GLib.GType.Invalid)
+ gtype = RegisterGType (typeof (MyProgram));
+ return gtype;
+ }
}
- public MyProgram () : base (type)
+ public MyProgram () : base (GType)
{
}
Modified: trunk/MonoDevelop/build/data/templates/project/CSharp/GtkSharpProject.xpt
===================================================================
--- trunk/MonoDevelop/build/data/templates/project/CSharp/GtkSharpProject.xpt 2004-02-26 04:10:46 UTC (rev 1041)
+++ trunk/MonoDevelop/build/data/templates/project/CSharp/GtkSharpProject.xpt 2004-02-26 04:34:41 UTC (rev 1042)
@@ -1,7 +1,7 @@
<?xml version="1.0"?>
<Template originator = "John Luke"
created = "01/03/2004"
- lastModified = "01/03/2004">
+ lastModified = "02/25/2004">
<!-- Template Header -->
<TemplateConfiguration>
@@ -53,14 +53,19 @@
using GtkSharp;
public class MyWindow : Window {
- static GLib.GType type;
+ static GLib.GType gtype;
- static MyWindow ()
+ public static new GLib.GType GType
{
- type = RegisterGType (typeof (MyWindow));
+ get
+ {
+ if (gtype == GLib.GType.Invalid)
+ gtype = RegisterGType (typeof (MyWindow));
+ return gtype;
+ }
}
- public MyWindow () : base (type)
+ public MyWindow () : base (GType)
{
this.Title = "MyWindow";
this.SetDefaultSize (400, 300);
More information about the Monodevelop-patches-list
mailing list