diff options
author | Ken VanDine <ken.vandine@canonical.com> | 2010-11-12 10:14:48 -0500 |
---|---|---|
committer | Ken VanDine <ken.vandine@canonical.com> | 2010-11-12 10:14:48 -0500 |
commit | 908222c0681fba3c6e1265d0f85a0b667927c169 (patch) | |
tree | 9ba8897f7bcc24b669fe7f38f6ca25e6260aa374 /src/title-menu-item.c | |
parent | bf3a1c75ef1714077d6729cdc4d550020365a3a3 (diff) | |
parent | 5fd2c5e12a059ab8c59306676d18dfc56c818077 (diff) | |
download | ayatana-indicator-sound-908222c0681fba3c6e1265d0f85a0b667927c169.tar.gz ayatana-indicator-sound-908222c0681fba3c6e1265d0f85a0b667927c169.tar.bz2 ayatana-indicator-sound-908222c0681fba3c6e1265d0f85a0b667927c169.zip |
Import upstream version 0.5.1
Diffstat (limited to 'src/title-menu-item.c')
-rw-r--r-- | src/title-menu-item.c | 5 |
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; } |