[Gtk-sharp-list] Point.custom patch

Martin Willemoes Hansen mwh@sysrq.dk
05 Feb 2003 21:05:08 +0100


--=-9c8Bl+ybw6C9EERJDAmf
Content-Type: text/plain
Content-Transfer-Encoding: 7bit

Hi there!

I was needing a point today and thought the following addition to
Gdk.Point would be nice, here is a patch of the changes I made.

Can it be included? I have not tested it since my cvs is not
functioning.

Also I was in doubt about the Author copyright lines, are they ok?
-- 
Martin Willemoes Hansen

--------------------------------------------------------
E-Mail	mwh@sysrq.dk	Website	mwh.sysrq.dk
IRC     MWH, freenode.net	
--------------------------------------------------------               

--=-9c8Bl+ybw6C9EERJDAmf
Content-Disposition: attachment; filename=Point.custom.diff
Content-Type: text/plain; name=Point.custom.diff; charset=ANSI_X3.4-1968
Content-Transfer-Encoding: 7bit

--- Point.custom.~1.2.~	2002-10-08 18:26:24.000000000 +0200
+++ Point.custom	2003-02-05 20:59:31.000000000 +0100
@@ -1,8 +1,10 @@
 // Gdk.Point.custom - Gdk Point class customizations
 //
 // Author: Jasper van Putten <Jaspervp@gmx.net>
+// Author: Martin Willemoes Hansen <mwh@sysrq.dk>
 //
 // (c) 2002 Jasper van Putten
+// (c) 2003 Martin Willemoes Hansen
 //
 // This code is inserted after the automatically generated code.
 
@@ -21,4 +23,26 @@
 	return String.Format ("({0},{1})", x, y);
 }
 
+public int X { 
+	get { return x; } 
+	set { x = value; }
+}
+
+public int Y { 
+	get { return y; }
+	set { y = value; }
+}
+
+public Point (int x, int y) 
+{
+	this.x = x;
+	this.y = y;
+}
+
+public Point (Point point)
+{
+	this.x = point.x;
+	this.y = point.y;
+}
+
 

--=-9c8Bl+ybw6C9EERJDAmf--