From 71bfd023bee2d910cb83c8c811b2622d0fedb8ed Mon Sep 17 00:00:00 2001 From: Miguel de Icaza Date: Tue, 8 Oct 2002 16:26:24 +0000 Subject: [PATCH] 2002-10-08 Miguel de Icaza * gdk/Point.custom: Use (x,y) instead. * gdk/Color.custom: Use the X rgb color format specification. * gdk/Rectangle.custom: Use the X geometry format for Rectangles. svn path=/trunk/gtk-sharp/; revision=8066 --- ChangeLog | 8 ++++++++ gdk/Color.custom | 2 +- gdk/Point.custom | 2 +- gdk/Rectangle.custom | 2 +- 4 files changed, 11 insertions(+), 3 deletions(-) diff --git a/ChangeLog b/ChangeLog index e226f4e19..41b7f0775 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,11 @@ +2002-10-08 Miguel de Icaza + + * gdk/Point.custom: Use (x,y) instead. + + * gdk/Color.custom: Use the X rgb color format specification. + + * gdk/Rectangle.custom: Use the X geometry format for Rectangles. + 2002-10-07 Vladimir Vukicevic * glue/style.c, gtk/Style.custom: handle diff --git a/gdk/Color.custom b/gdk/Color.custom index 4c16801b0..d861daac4 100644 --- a/gdk/Color.custom +++ b/gdk/Color.custom @@ -18,5 +18,5 @@ public override string ToString () { - return "Gdk.Color, pixel:" + this.pixel + ",red:"+ this.red + ",green:" + this.green + ",blue:" + this.blue; + return String.Format ("rgb:{0:x}/{0:x}/{0:x}", red, green, blue); } diff --git a/gdk/Point.custom b/gdk/Point.custom index 7eb089679..329e6d0c4 100644 --- a/gdk/Point.custom +++ b/gdk/Point.custom @@ -18,7 +18,7 @@ public override string ToString () { - return "Gdk.Point, x:" + this.x + ",y:" + this.y; + return String.Format ("({0},{1})", x, y); } diff --git a/gdk/Rectangle.custom b/gdk/Rectangle.custom index 5ac8a07bf..a01af2c22 100644 --- a/gdk/Rectangle.custom +++ b/gdk/Rectangle.custom @@ -18,7 +18,7 @@ public override string ToString () { - return "Gdk.Rectangle, x:" + this.x + ",y:" + this.y + ",width:" + this.width + ",height:" + this.height; + return String.Format ("{0}x{1}+{2}+{3}", width, height, x, y); }