private void OnAccelCleared(object o, AccelClearedArgs args) { Gtk.TreeIter iter; Gtk.TreeStore store = (Gtk.TreeStore)this.treeview1.Model; store.GetIter(out iter, new TreePath(args.PathString)); string accelPath = (string)store.GetValue(iter, (int)Column.AccelPath); if (!MyAccelMap.ChangeEntry(accelPath, 0, 0, false)) { this.ShowErrorMessage("Removing shortcut failed."); } }
private void OnAccelCleared(object o, AccelClearedArgs args) { TreeIter iter; ListStore store; store = Model as ListStore; store.GetIter(out iter, new TreePath(args.PathString)); string keyString; try { keyString = store.GetValue(iter, (int)Column.DefaultKeybinding).ToString(); keyString = (string.IsNullOrEmpty(keyString)) ? Catalog.GetString("Disabled") : keyString; } catch (Exception) { keyString = Catalog.GetString("Disabled"); } SetNewBinding(iter, keyString); }
private void OnAccelCleared(object o, AccelClearedArgs args) { Console.WriteLine("OnAccelCleared()"); TreeIter iter; this.listStore1.GetIterFromString(out iter, args.PathString); this.listStore1.SetValue(iter, (int)Column.Accel, string.Empty); }