mirror of
https://github.com/Ryujinx/GtkSharp.git
synced 2024-12-26 01:05:33 +00:00
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
42 lines
698 B
C#
42 lines
698 B
C#
//
|
|
// SignalAttribute.cs
|
|
//
|
|
// Author:
|
|
// Ricardo Fernández Pascual <ric@users.sourceforge.net>
|
|
//
|
|
// (C) Ricardo Ferná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;
|
|
}
|
|
}
|
|
}
|
|
}
|