view plugins/mono/api/Event.cs @ 11745:dd7e9ef6339f

[gaim-migrate @ 14036] Segfault on exit fix. The protocol actions code is hacky, and I'm not convinced I put it in them in the right place. Someone should fuss with it. committer: Tailor Script <tailor@pidgin.im>
author Sean Egan <seanegan@gmail.com>
date Sun, 23 Oct 2005 09:05:46 +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);
		}
	}
}