diff --git a/ChangeLog b/ChangeLog index 514983b44..c31ae6173 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,11 @@ +2002-10-08 Duncan Mak + + * gdk/Color.custom: + * gdk/DeviceAxis.custom: + * gdk/Point.custom: + * gdk/Rectangle.custom: Committed ToString patches contributed by + Jasper van Putten + 2002-10-05 Vladimir Vukicevic * glib/GException.cs: g_clear_error takes diff --git a/gdk/Color.custom b/gdk/Color.custom new file mode 100644 index 000000000..4c16801b0 --- /dev/null +++ b/gdk/Color.custom @@ -0,0 +1,22 @@ +// Gdk.Color.custom - Gdk Color class customizations +// +// Author: Jasper van Putten +// +// (c) 2002 Jasper van Putten +// +// This code is inserted after the automatically generated code. + + +/// +/// ToString method +/// +/// +/// +/// returns a string representation of this color +/// +/// + +public override string ToString () +{ + return "Gdk.Color, pixel:" + this.pixel + ",red:"+ this.red + ",green:" + this.green + ",blue:" + this.blue; +} diff --git a/gdk/DeviceAxis.custom b/gdk/DeviceAxis.custom new file mode 100644 index 000000000..9dc3c46d6 --- /dev/null +++ b/gdk/DeviceAxis.custom @@ -0,0 +1,24 @@ +// Gdk.Point.DeviceAxis - Gdk DeviceAxis class customizations +// +// Author: Jasper van Putten +// +// (c) 2002 Jasper van Putten +// +// This code is inserted after the automatically generated code. + + +/// +/// ToString method +/// +/// +/// +/// returns a string representation of this DeviceAxis +/// +/// + +public override string ToString () +{ + return "Gdk.DeviceAxis, max:" + this.max + ",min:" + this.min; +} + + diff --git a/gdk/Point.custom b/gdk/Point.custom new file mode 100644 index 000000000..7eb089679 --- /dev/null +++ b/gdk/Point.custom @@ -0,0 +1,24 @@ +// Gdk.Point.custom - Gdk Point class customizations +// +// Author: Jasper van Putten +// +// (c) 2002 Jasper van Putten +// +// This code is inserted after the automatically generated code. + + +/// +/// ToString method +/// +/// +/// +/// returns a string representation of this point +/// +/// + +public override string ToString () +{ + return "Gdk.Point, x:" + this.x + ",y:" + this.y; +} + + diff --git a/gdk/Rectangle.custom b/gdk/Rectangle.custom new file mode 100644 index 000000000..5ac8a07bf --- /dev/null +++ b/gdk/Rectangle.custom @@ -0,0 +1,24 @@ +// Gdk.Point.Rectangle - Gdk Rectangle class customizations +// +// Author: Jasper van Putten +// +// (c) 2002 Jasper van Putten +// +// This code is inserted after the automatically generated code. + + +/// +/// ToString method +/// +/// +/// +/// returns a string representation of this Rectangle +/// +/// + +public override string ToString () +{ + return "Gdk.Rectangle, x:" + this.x + ",y:" + this.y + ",width:" + this.width + ",height:" + this.height; +} + + diff --git a/sample/test/TestMenus.cs b/sample/test/TestMenus.cs index 953c008fb..e56f59a27 100644 --- a/sample/test/TestMenus.cs +++ b/sample/test/TestMenus.cs @@ -118,8 +118,8 @@ namespace WidgetViewer { for (int i = 0, j = 1; i < 5; i++, j++) { label = String.Format ("item {0} - {1}", depth, j); -// menuitem = RadioMenuItem.NewWithLabel (group, label); -// group = ((RadioMenuItem) menuitem).Group; + menuitem = RadioMenuItem.NewWithLabel (group, label); + group = ((RadioMenuItem) menuitem).Group; menuitem = new MenuItem (label); menu.Append (menuitem);