aboutsummaryrefslogtreecommitdiff
path: root/src/title-menu-item.c
diff options
context:
space:
mode:
authorKen VanDine <ken.vandine@canonical.com>2010-11-18 11:11:14 -0500
committerKen VanDine <ken.vandine@canonical.com>2010-11-18 11:11:14 -0500
commit2133a62fd09fc431c146c74b4ca13e89d610c1c9 (patch)
treec4d27e2357498eba9fde88e64e53e2afe926d981 /src/title-menu-item.c
parentfb9140db72f565fa6180a55da02302844e21c05c (diff)
parent908222c0681fba3c6e1265d0f85a0b667927c169 (diff)
downloadayatana-indicator-sound-2133a62fd09fc431c146c74b4ca13e89d610c1c9.tar.gz
ayatana-indicator-sound-2133a62fd09fc431c146c74b4ca13e89d610c1c9.tar.bz2
ayatana-indicator-sound-2133a62fd09fc431c146c74b4ca13e89d610c1c9.zip
releasing version 0.5.1-0ubuntu1
Diffstat (limited to 'src/title-menu-item.c')
-rw-r--r--src/title-menu-item.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/title-menu-item.c b/src/title-menu-item.c
index 8ae80c4..4dcd986 100644
--- a/src/title-menu-item.c
+++ b/src/title-menu-item.c
@@ -128,6 +128,7 @@ GType player_controller_get_type (void) G_GNUC_CONST;
TitleMenuitem* title_menuitem_new (PlayerController* parent);
TitleMenuitem* title_menuitem_construct (GType object_type, PlayerController* parent);
const char* player_controller_get_name (PlayerController* self);
+const char* player_controller_get_icon_name (PlayerController* self);
static void title_menuitem_real_handle_event (DbusmenuMenuitem* base, const char* name, GValue* input_value, guint timestamp);
PlayerController* player_item_get_owner (PlayerItem* self);
GType mpris2_controller_get_type (void) G_GNUC_CONST;
@@ -144,6 +145,8 @@ TitleMenuitem* title_menuitem_construct (GType object_type, PlayerController* pa
g_return_val_if_fail (parent != NULL, NULL);
self = (TitleMenuitem*) g_object_new (object_type, "item-type", DBUSMENU_TITLE_MENUITEM_TYPE, "owner", parent, NULL);
dbusmenu_menuitem_property_set ((DbusmenuMenuitem*) self, DBUSMENU_TITLE_MENUITEM_NAME, player_controller_get_name (parent));
+ g_debug ("title-menu-item.vala:30: title init - icon name = %s", player_controller_get_icon_name (parent));
+ dbusmenu_menuitem_property_set ((DbusmenuMenuitem*) self, DBUSMENU_TITLE_MENUITEM_ICON, player_controller_get_icon_name (parent));
dbusmenu_menuitem_property_set_bool ((DbusmenuMenuitem*) self, DBUSMENU_TITLE_MENUITEM_RUNNING, FALSE);
return self;
}
@@ -179,6 +182,8 @@ GeeHashSet* title_menuitem_attributes_format (void) {
GeeHashSet* attrs;
attrs = gee_hash_set_new (G_TYPE_STRING, (GBoxedCopyFunc) g_strdup, g_free, NULL, NULL);
gee_abstract_collection_add ((GeeAbstractCollection*) attrs, DBUSMENU_TITLE_MENUITEM_NAME);
+ gee_abstract_collection_add ((GeeAbstractCollection*) attrs, DBUSMENU_TITLE_MENUITEM_RUNNING);
+ gee_abstract_collection_add ((GeeAbstractCollection*) attrs, DBUSMENU_TITLE_MENUITEM_ICON);
result = attrs;
return result;
}