view plugins/mono/api/Event.cs @ 12487:799e95eed274

[gaim-migrate @ 14799] I'm tired of seeing the bugs mono "causes" because of the sigsegv handler as I'm sure Luke is, so until we find a better way to handle this, and the loader does a bit more it must be explicitly told to build with --enable-mono committer: Tailor Script <tailor@pidgin.im>
author Gary Kramlich <grim@reaperworld.com>
date Wed, 14 Dec 2005 23:26:40 +0000
parents a3302d271199
children
line wrap: on
line source

using System;

namespace Gaim
{
	public class Event
	{
		private IntPtr handle;
		private string signal;
		
		public Event(IntPtr h, string s)
		{
			handle = h;
			signal = s;
		}
	
		public void connect(object plugin, Signal.Handler handler)
		{
			Signal.connect(handle, plugin, signal, handler);
		}
	}
}