public Binding(string gconf_path, string default_binding, EventHandler handler, GConfXKeybinder parent) { this.gconf_path = gconf_path; this.key_sequence = default_binding; this.handler = handler; this.parent = parent; try { key_sequence = (string)parent.client.Get(gconf_path); } catch { Logger.Log.Warn("GConf key '{0}' does not exist, using default.", gconf_path); } SetBinding(); parent.client.AddNotify( gconf_path, new GConf.NotifyEventHandler(BindingChanged)); }
public Binding (string gconf_path, string default_binding, EventHandler handler, GConfXKeybinder parent) { this.gconf_path = gconf_path; this.key_sequence = default_binding; this.handler = handler; this.parent = parent; try { key_sequence = (string) parent.client.Get (gconf_path); } catch { Logger.Log.Warn ("GConf key '{0}' does not exist, using default.", gconf_path); } SetBinding (); parent.client.AddNotify ( gconf_path, new GConf.NotifyEventHandler (BindingChanged)); }