~ted/ubuntu/lucid/tomboy/with-patch

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
using System;

namespace Tomboy
{
	public interface IKeybinder
	{
		void Bind (string keystring, EventHandler handler);
		void Unbind (string keystring);
		void UnbindAll ();
		bool GetAccelKeys (string prefs_path, out uint keyval, out Gdk.ModifierType mods);
	}

	public class NullKeybinder : IKeybinder
	{
		#region IKeybinder implementation 
		
		public void Bind (string keystring, EventHandler handler)
		{
			// Do nothing
		}
		
		public void Unbind (string keystring)
		{
			// Do nothing
		}
		
		public void UnbindAll ()
		{
			// Do nothing
		}
		
		public bool GetAccelKeys (string prefs_path, out uint keyval, out Gdk.ModifierType mods)
		{
			keyval = 0;
			mods = Gdk.ModifierType.None;
			return false;
		}
		
		#endregion
	}
}