aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorConor Curran <conor.curran@canonical.com>2011-06-29 16:34:22 +0200
committerConor Curran <conor.curran@canonical.com>2011-06-29 16:34:22 +0200
commit0892f485f96e827f9869656c2daa6ed8a165b15f (patch)
tree0384511ef75449177478538c9f00f4f3e8e8827e /src
parent14bcbdbedbe248b4274ae36287f20c8dddf6276f (diff)
downloadayatana-indicator-sound-0892f485f96e827f9869656c2daa6ed8a165b15f.tar.gz
ayatana-indicator-sound-0892f485f96e827f9869656c2daa6ed8a165b15f.tar.bz2
ayatana-indicator-sound-0892f485f96e827f9869656c2daa6ed8a165b15f.zip
track specific items proxying nicely
Diffstat (limited to 'src')
-rw-r--r--src/specific-items-manager.vala (renamed from src/track-specific-items-manager.vala)8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/track-specific-items-manager.vala b/src/specific-items-manager.vala
index 67b8bbf..3fa7663 100644
--- a/src/track-specific-items-manager.vala
+++ b/src/specific-items-manager.vala
@@ -48,12 +48,12 @@ public class SpecificItemsManager : GLib.Object
debug ("on_root_changed - size of children list : %i",
(int)children.length());
foreach (void* child in children) {
- Dbusmenu.Menuitem* item = (Dbusmenu.Menuitem*)child;
- Dbusmenu.MenuitemProxy proxy = new Dbusmenu.MenuitemProxy(*item);
+ unowned Dbusmenu.Menuitem item = (Dbusmenu.Menuitem)child;
+ Dbusmenu.MenuitemProxy proxy = new Dbusmenu.MenuitemProxy(item);
proxy_items.add (proxy);
debug ("Proxy item of label = %s added to collection",
- item->property_get (MENUITEM_PROP_LABEL));
- this.owner.root_menu.child_add_position (proxy.menu_item,
+ item.property_get (MENUITEM_PROP_LABEL));
+ this.owner.root_menu.child_add_position (proxy,
this.owner.menu_offset + 3);
}
}