[Monodevelop-patches-list] r1599 - in trunk/MonoDevelop/build/data/templates: file/CSharp project/CSharp
commit-watcher at mono-cvs.ximian.com
commit-watcher at mono-cvs.ximian.com
Mon May 10 17:25:42 EDT 2004
Author: tberman
Date: 2004-05-10 17:25:42 -0400 (Mon, 10 May 2004)
New Revision: 1599
Modified:
trunk/MonoDevelop/build/data/templates/file/CSharp/GtkSharpWindow.xft
trunk/MonoDevelop/build/data/templates/project/CSharp/GtkSharpProject.xpt
Log:
removing some GType stuff
Modified: trunk/MonoDevelop/build/data/templates/file/CSharp/GtkSharpWindow.xft
===================================================================
--- trunk/MonoDevelop/build/data/templates/file/CSharp/GtkSharpWindow.xft 2004-05-10 17:53:13 UTC (rev 1598)
+++ trunk/MonoDevelop/build/data/templates/file/CSharp/GtkSharpWindow.xft 2004-05-10 21:25:42 UTC (rev 1599)
@@ -21,21 +21,9 @@
{
public class CreatedWindow : Window
{
- static GLib.GType gtype;
-
- public static new GLib.GType GType
+ public CreatedWindow () : base ("MyWindow")
{
- get
- {
- if (gtype == GLib.GType.Invalid)
- gtype = RegisterGType (typeof (CreatedWindow));
- return gtype;
- }
}
-
- public CreatedWindow () : base (GType)
- {
- }
}
}
]]></File>
Modified: trunk/MonoDevelop/build/data/templates/project/CSharp/GtkSharpProject.xpt
===================================================================
--- trunk/MonoDevelop/build/data/templates/project/CSharp/GtkSharpProject.xpt 2004-05-10 17:53:13 UTC (rev 1598)
+++ trunk/MonoDevelop/build/data/templates/project/CSharp/GtkSharpProject.xpt 2004-05-10 21:25:42 UTC (rev 1599)
@@ -52,21 +52,9 @@
using Gtk;
public class MyWindow : Window {
- static GLib.GType gtype;
- public static new GLib.GType GType
+ public MyWindow () : base ("MyWindow")
{
- get
- {
- if (gtype == GLib.GType.Invalid)
- gtype = RegisterGType (typeof (MyWindow));
- return gtype;
- }
- }
-
- public MyWindow () : base (GType)
- {
- this.Title = "MyWindow";
this.SetDefaultSize (400, 300);
this.DeleteEvent += new DeleteEventHandler (OnMyWindowDelete);
this.ShowAll ();
More information about the Monodevelop-patches-list
mailing list