[Monodevelop-patches-list] r1043 - trunk/MonoDevelop/build/data/templates/file/CSharp
commit-watcher at mono-cvs.ximian.com
commit-watcher at mono-cvs.ximian.com
Wed Feb 25 23:54:01 EST 2004
Author: jluke
Date: 2004-02-25 23:54:01 -0500 (Wed, 25 Feb 2004)
New Revision: 1043
Modified:
trunk/MonoDevelop/build/data/templates/file/CSharp/GnomeSharpProgram.xft
trunk/MonoDevelop/build/data/templates/file/CSharp/GtkSharpWindow.xft
Log:
update these also
Modified: trunk/MonoDevelop/build/data/templates/file/CSharp/GnomeSharpProgram.xft
===================================================================
--- trunk/MonoDevelop/build/data/templates/file/CSharp/GnomeSharpProgram.xft 2004-02-26 04:34:41 UTC (rev 1042)
+++ trunk/MonoDevelop/build/data/templates/file/CSharp/GnomeSharpProgram.xft 2004-02-26 04:54:01 UTC (rev 1043)
@@ -1,6 +1,6 @@
<?xml version="1.0"?>
<Template Originator="John Luke"
- Language="GnomeSharpProgram" Created="1/02/2001" LastModified="1/02/2003">
+ Language="GnomeSharpProgram" Created="1/02/2004" LastModified="2/25/2004">
<TemplateConfiguration>
<Name>Gnome# Program</Name>
@@ -21,12 +21,20 @@
{
public class CreatedProgram : Program
{
- static GLib.GType type;
+ static GLib.GType gtype;
- static CreatedProgram ()
+ public static new GLib.GType GType
{
- type = RegisterGType (typeof (CreatedProgram)); }
- public CreatedProgram () : base (type)
+ get
+ {
+ if (gtype == GLib.GType.Invalid)
+ type = RegisterGType (typeof (CreatedProgram));
+ return gtype;
+ }
+ }
+
+
+ public CreatedProgram () : base (GType)
{
}
}
Modified: trunk/MonoDevelop/build/data/templates/file/CSharp/GtkSharpWindow.xft
===================================================================
--- trunk/MonoDevelop/build/data/templates/file/CSharp/GtkSharpWindow.xft 2004-02-26 04:34:41 UTC (rev 1042)
+++ trunk/MonoDevelop/build/data/templates/file/CSharp/GtkSharpWindow.xft 2004-02-26 04:54:01 UTC (rev 1043)
@@ -1,6 +1,6 @@
<?xml version="1.0"?>
<Template Originator="John Luke"
- Language="GtkSharpWindow" Created="1/02/2001" LastModified="1/02/2003">
+ Language="GtkSharpWindow" Created="1/02/2004" LastModified="2/25/2004">
<TemplateConfiguration>
<Name>Gtk# Window</Name>
@@ -21,12 +21,19 @@
{
public class CreatedWindow : Window
{
- static GLib.GType type;
+ static GLib.GType gtype;
- static CreatedWindow ()
+ public static new GLib.GType GType
{
- type = RegisterGType (typeof (CreatedWindow)); }
- public CreatedWindow () : base (type)
+ get
+ {
+ if (gtype == GLib.GType.Invalid)
+ gtype = RegisterGType (typeof (CreatedWindow));
+ return gtype;
+ }
+ }
+
+ public CreatedWindow () : base (GType)
{
}
}
More information about the Monodevelop-patches-list
mailing list