GtkSharp/glade/WidgetAttribute.cs
Miguel de Icaza 215133d780 2003-03-15 Miguel de Icaza <miguel@ximian.com>
* sample: Update samples to new Glade.Widget.

	* glade/WidgetAttribute.cs: Moved the old GladeWidgetattribute
	here.   Now its called `Glade.WidgetAttribute'.

	* glade/GladeWidgetAttribute.cs: Removed

	* glib/Idle.cs: Do not allow Idle class to be instantiated.

svn path=/trunk/gtk-sharp/; revision=12554
2003-03-15 21:02:25 +00:00

39 lines
553 B
C#

// WidgetAttribute.cs
//
// Author: Rachel Hestilow <hestilow@ximian.com>
//
// (c) 2003 Rachel Hestilow
namespace Glade {
using System;
[AttributeUsage (AttributeTargets.Field)]
public class WidgetAttribute : Attribute
{
private string name;
private bool specified;
public WidgetAttribute (string name)
{
specified = true;
this.name = name;
}
public WidgetAttribute ()
{
specified = false;
}
public string Name
{
get { return name; }
}
public bool Specified
{
get { return specified; }
}
}
}