예제 #1
0
        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);
        }
예제 #2
0
		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);
		}