f1e095a87b
* glib/Log.cs: Make LogLevelFlags CLS compliant. * glib/SignalCallback.cs: Set the constructor protection level to protected, since it can not be instantiate.d * glib/Marshaller.cs: Do not allow instances of this class as it only exposes static methods. * glib/Source.cs, glib/FileUtils.cs, glib/Timeout.cs, glib/Thread.cs, glib/Markup.cs, glib/TypeConverter.cs: Ditto. svn path=/trunk/gtk-sharp/; revision=20573
41 lines
698 B
C#
41 lines
698 B
C#
//
|
||
// SignalAttribute.cs
|
||
//
|
||
// Author:
|
||
// Ricardo Fern<72>ndez Pascual <ric@users.sourceforge.net>
|
||
//
|
||
// (C) Ricardo Fern<72>ndez Pascual <ric@users.sourceforge.net>
|
||
//
|
||
|
||
namespace GLib {
|
||
|
||
using System;
|
||
|
||
/// <summary>
|
||
/// Marks events genrated from glib signals
|
||
/// </summary>
|
||
///
|
||
/// <remarks>
|
||
/// This attribute indentifies events generated from glib signals
|
||
/// and allows obtaining its original name.
|
||
/// </remarks>
|
||
[Serializable]
|
||
public sealed class SignalAttribute : Attribute
|
||
{
|
||
private string cname;
|
||
|
||
public SignalAttribute (string cname)
|
||
{
|
||
this.cname = cname;
|
||
}
|
||
|
||
private SignalAttribute () {}
|
||
|
||
public string CName
|
||
{
|
||
get {
|
||
return cname;
|
||
}
|
||
}
|
||
}
|
||
}
|