public void RegisterItem(AbstractDockItem item) { if (item_dict == null || item_dict.ContainsKey(item)) { return; } DockManagerDBusItem dbusitem = new DockManagerDBusItem(item); item_dict[item] = dbusitem; ObjectPath path = new ObjectPath(PathForItem(item)); Bus.Session.Register(path, dbusitem); dock_manager.OnItemAdded(path); }
public void RegisterItem (AbstractDockItem item) { if (item_dict == null || item_dict.ContainsKey (item)) return; DockManagerDBusItem dbusitem = new DockManagerDBusItem (item); item_dict[item] = dbusitem; ObjectPath path = new ObjectPath (PathForItem (item)); Bus.Session.Register (path, dbusitem); dock_manager.OnItemAdded (path); }