mirror of
https://github.com/Ryujinx/GtkSharp.git
synced 2024-12-24 16:45:35 +00:00
9f6872634a
* glade/XML.custom: Determine name of GladeWidget if none specified * glade/GladeWidgetAttribute.cs: ditto svn path=/trunk/gtk-sharp/; revision=10049
39 lines
573 B
C#
39 lines
573 B
C#
// GladeWidgetAttribute.cs
|
|
//
|
|
// Author: Rachel Hestilow <hestilow@ximian.com>
|
|
//
|
|
// (c) 2003 Rachel Hestilow
|
|
|
|
namespace Glade {
|
|
using System;
|
|
|
|
[AttributeUsage (AttributeTargets.Field)]
|
|
public class GladeWidgetAttribute : Attribute
|
|
{
|
|
private string name;
|
|
private bool specified;
|
|
|
|
public GladeWidgetAttribute (string name)
|
|
{
|
|
specified = true;
|
|
this.name = name;
|
|
}
|
|
|
|
public GladeWidgetAttribute ()
|
|
{
|
|
specified = false;
|
|
}
|
|
|
|
public string Name
|
|
{
|
|
get { return name; }
|
|
}
|
|
|
|
public bool Specified
|
|
{
|
|
get { return specified; }
|
|
}
|
|
}
|
|
}
|
|
|