[Monodevelop-patches-list] r2167 - in trunk/MonoDevelop/Core/src/AddIns/BackendBindings/CSharpBinding: . templates
commit-watcher at mono-cvs.ximian.com
commit-watcher at mono-cvs.ximian.com
Wed Jan 26 16:02:31 EST 2005
Author: jluke
Date: 2005-01-26 16:02:31 -0500 (Wed, 26 Jan 2005)
New Revision: 2167
Modified:
trunk/MonoDevelop/Core/src/AddIns/BackendBindings/CSharpBinding/ChangeLog
trunk/MonoDevelop/Core/src/AddIns/BackendBindings/CSharpBinding/templates/GladeSharpProject.xpt.xml
trunk/MonoDevelop/Core/src/AddIns/BackendBindings/CSharpBinding/templates/GnomeSharpProgram.xft.xml
trunk/MonoDevelop/Core/src/AddIns/BackendBindings/CSharpBinding/templates/GtkSharpProject.xpt.xml
Log:
clean up the templates a bit
Modified: trunk/MonoDevelop/Core/src/AddIns/BackendBindings/CSharpBinding/ChangeLog
===================================================================
--- trunk/MonoDevelop/Core/src/AddIns/BackendBindings/CSharpBinding/ChangeLog 2005-01-26 18:03:10 UTC (rev 2166)
+++ trunk/MonoDevelop/Core/src/AddIns/BackendBindings/CSharpBinding/ChangeLog 2005-01-26 21:02:31 UTC (rev 2167)
@@ -1,3 +1,10 @@
+2005-01-26 John Luke <john.luke at gmail.com>
+
+ * templates/GtkSharpProject.xpt.xml
+ * templates/GnomeSharpProgram.xft.xml
+ * templates/GladeSharpProject.xpt.xml: clean up,
+ consistent naming, spacing, tabbing
+
2005-01-24 Lluis Sanchez Gual <lluis at novell.com>
* CSharpLanguageBinding.cs:
Modified: trunk/MonoDevelop/Core/src/AddIns/BackendBindings/CSharpBinding/templates/GladeSharpProject.xpt.xml
===================================================================
--- trunk/MonoDevelop/Core/src/AddIns/BackendBindings/CSharpBinding/templates/GladeSharpProject.xpt.xml 2005-01-26 18:03:10 UTC (rev 2166)
+++ trunk/MonoDevelop/Core/src/AddIns/BackendBindings/CSharpBinding/templates/GladeSharpProject.xpt.xml 2005-01-26 21:02:31 UTC (rev 2167)
@@ -72,26 +72,26 @@
public class GladeApp
{
- public static void Main (string[] args)
- {
- new GladeApp (args);
- }
+ public static void Main (string[] args)
+ {
+ new GladeApp (args);
+ }
- public GladeApp (string[] args)
- {
- Application.Init();
+ public GladeApp (string[] args)
+ {
+ Application.Init ();
- Glade.XML gxml = new Glade.XML (null, "gui.glade", "window1", null);
- gxml.Autoconnect (this);
- Application.Run();
- }
+ Glade.XML gxml = new Glade.XML (null, "gui.glade", "window1", null);
+ gxml.Autoconnect (this);
+ Application.Run ();
+ }
- /* Connect the Signals defined in Glade */
- public void OnWindowDeleteEvent (object o, DeleteEventArgs args)
- {
- Application.Quit ();
- args.RetVal = true;
- }
+ // Connect the Signals defined in Glade
+ private void OnWindowDeleteEvent (object sender, DeleteEventArgs a)
+ {
+ Application.Quit ();
+ a.RetVal = true;
+ }
}
]]>
Modified: trunk/MonoDevelop/Core/src/AddIns/BackendBindings/CSharpBinding/templates/GnomeSharpProgram.xft.xml
===================================================================
--- trunk/MonoDevelop/Core/src/AddIns/BackendBindings/CSharpBinding/templates/GnomeSharpProgram.xft.xml 2005-01-26 18:03:10 UTC (rev 2166)
+++ trunk/MonoDevelop/Core/src/AddIns/BackendBindings/CSharpBinding/templates/GnomeSharpProgram.xft.xml 2005-01-26 21:02:31 UTC (rev 2167)
@@ -15,13 +15,12 @@
<![CDATA[// created on ${Date} at ${Time}
using System;
using Gnome;
-using GnomeSharp;
namespace MyProgram
{
public class CreatedProgram : Program
{
- public CreatedProgram () : base ("ChangeMe", "0.1", Gnome.Modules.Info, new string[0])
+ public CreatedProgram (string[] args) : base ("ChangeMe", "0.1", Gnome.Modules.Info, args)
{
}
}
Modified: trunk/MonoDevelop/Core/src/AddIns/BackendBindings/CSharpBinding/templates/GtkSharpProject.xpt.xml
===================================================================
--- trunk/MonoDevelop/Core/src/AddIns/BackendBindings/CSharpBinding/templates/GtkSharpProject.xpt.xml 2005-01-26 18:03:10 UTC (rev 2166)
+++ trunk/MonoDevelop/Core/src/AddIns/BackendBindings/CSharpBinding/templates/GtkSharpProject.xpt.xml 2005-01-26 21:02:31 UTC (rev 2167)
@@ -39,8 +39,9 @@
using System;
using Gtk;
-class MainClass {
- public static void Main(string[] args)
+class MainClass
+{
+ public static void Main (string[] args)
{
Application.Init ();
new MyWindow ();
@@ -50,8 +51,8 @@
<File name="MyWindow.cs"><![CDATA[using System;
using Gtk;
-public class MyWindow : Window {
-
+public class MyWindow : Window
+{
public MyWindow () : base ("MyWindow")
{
this.SetDefaultSize (400, 300);
@@ -59,9 +60,10 @@
this.ShowAll ();
}
- void OnMyWindowDelete (object o, DeleteEventArgs args)
+ void OnMyWindowDelete (object sender, DeleteEventArgs a)
{
Application.Quit ();
+ a.RetVal = true;
}
}]]></File>
<File name="AssemblyInfo.cs"><![CDATA[using System.Reflection;
More information about the Monodevelop-patches-list
mailing list