2002-10-08 Duncan Mak <duncan@ximian.com>

* gdk/Color.custom:
	* gdk/DeviceAxis.custom:
	* gdk/Point.custom:
	* gdk/Rectangle.custom: Committed ToString patches contributed by
	Jasper van Putten <Jaspervp@gmx.net>

svn path=/trunk/gtk-sharp/; revision=8057
This commit is contained in:
Duncan Mak 2002-10-08 06:49:11 +00:00
parent f0f44bf010
commit 854511bd98
6 changed files with 104 additions and 2 deletions

View file

@ -1,3 +1,11 @@
2002-10-08 Duncan Mak <duncan@ximian.com>
* gdk/Color.custom:
* gdk/DeviceAxis.custom:
* gdk/Point.custom:
* gdk/Rectangle.custom: Committed ToString patches contributed by
Jasper van Putten <Jaspervp@gmx.net>
2002-10-05 Vladimir Vukicevic <vladimir@pobox.com>
* glib/GException.cs: g_clear_error takes

22
gdk/Color.custom Normal file
View file

@ -0,0 +1,22 @@
// Gdk.Color.custom - Gdk Color class customizations
//
// Author: Jasper van Putten <Jaspervp@gmx.net>
//
// (c) 2002 Jasper van Putten
//
// This code is inserted after the automatically generated code.
/// <summary>
/// ToString method
/// </summary>
///
/// <remarks>
/// returns a string representation of this color
///
/// </remarks>
public override string ToString ()
{
return "Gdk.Color, pixel:" + this.pixel + ",red:"+ this.red + ",green:" + this.green + ",blue:" + this.blue;
}

24
gdk/DeviceAxis.custom Normal file
View file

@ -0,0 +1,24 @@
// Gdk.Point.DeviceAxis - Gdk DeviceAxis class customizations
//
// Author: Jasper van Putten <Jaspervp@gmx.net>
//
// (c) 2002 Jasper van Putten
//
// This code is inserted after the automatically generated code.
/// <summary>
/// ToString method
/// </summary>
///
/// <remarks>
/// returns a string representation of this DeviceAxis
///
/// </remarks>
public override string ToString ()
{
return "Gdk.DeviceAxis, max:" + this.max + ",min:" + this.min;
}

24
gdk/Point.custom Normal file
View file

@ -0,0 +1,24 @@
// Gdk.Point.custom - Gdk Point class customizations
//
// Author: Jasper van Putten <Jaspervp@gmx.net>
//
// (c) 2002 Jasper van Putten
//
// This code is inserted after the automatically generated code.
/// <summary>
/// ToString method
/// </summary>
///
/// <remarks>
/// returns a string representation of this point
///
/// </remarks>
public override string ToString ()
{
return "Gdk.Point, x:" + this.x + ",y:" + this.y;
}

24
gdk/Rectangle.custom Normal file
View file

@ -0,0 +1,24 @@
// Gdk.Point.Rectangle - Gdk Rectangle class customizations
//
// Author: Jasper van Putten <Jaspervp@gmx.net>
//
// (c) 2002 Jasper van Putten
//
// This code is inserted after the automatically generated code.
/// <summary>
/// ToString method
/// </summary>
///
/// <remarks>
/// returns a string representation of this Rectangle
///
/// </remarks>
public override string ToString ()
{
return "Gdk.Rectangle, x:" + this.x + ",y:" + this.y + ",width:" + this.width + ",height:" + this.height;
}

View file

@ -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);