public Binding (string          pref_path,
			                string          default_binding,
			                EventHandler    handler,
			                IKeybinder native_keybinder)
			{
				this.pref_path = pref_path;
				this.key_sequence = default_binding;
				this.handler = handler;
				this.native_keybinder = native_keybinder;

				try {
					key_sequence = (string) Preferences.Client.Get (pref_path);
				} catch {
				        Logger.Warn ("Preference key '{0}' does not exist, using default.",
				                    pref_path);
				}

				SetBinding ();

				Preferences.Client.AddNotify (
				        pref_path,
				        BindingChanged);
			}
		public PrefsKeybinder ()
		{
			bindings = new List<Binding> ();
			native_keybinder = Services.Keybinder;
		}
Beispiel #3
0
 public PrefsKeybinder()
 {
     bindings         = new List <Binding> ();
     native_keybinder = Services.Keybinder;
 }