ba1d3996a4
* generator/CallbackGen.cs : kill ref_owned generation * generator/ClassBase.cs : use simple GetObject w/o ref_owned * generator/ManagedCallString.cs : new class to generate native to managed method calls. * generator/Method.cs : kill ref_owned generation * generator/MethodBody.cs : kill ref_owned generation * generator/Property.cs : kill ref_owned generation * generator/Signal.cs : generate delegates and vtable connect methods for all signals. Mark VMs with new attr. * generator/StructBase.cs : kill ref_owned generation * glib/DefaultSignalHandlerAttribute.cs : new attr to mark virtual methods. * glib/Object.cs : add overload for GetObject that defaults to ref_owned=false. Add extern for VM override glue. svn path=/trunk/gtk-sharp/; revision=21005
40 lines
523 B
C#
40 lines
523 B
C#
//
|
|
// DefaultSignalHandlerAttribute.cs
|
|
//
|
|
// Author: Mike Kestner <mkestner@ximian.com>
|
|
//
|
|
// (C) 2003 Novell, Inc.
|
|
//
|
|
|
|
namespace GLib {
|
|
|
|
using System;
|
|
|
|
public sealed class DefaultSignalHandlerAttribute : Attribute
|
|
{
|
|
private string method;
|
|
private Type type;
|
|
|
|
public DefaultSignalHandlerAttribute () {}
|
|
|
|
public string ConnectionMethod
|
|
{
|
|
get {
|
|
return method;
|
|
}
|
|
set {
|
|
method = value;
|
|
}
|
|
}
|
|
|
|
public Type Type
|
|
{
|
|
get {
|
|
return type;
|
|
}
|
|
set {
|
|
type = value;
|
|
}
|
|
}
|
|
}
|
|
}
|