diff options
author | Sebastien Bacher <seb128@ubuntu.com> | 2010-09-08 17:53:33 +0200 |
---|---|---|
committer | Sebastien Bacher <seb128@ubuntu.com> | 2010-09-08 17:53:33 +0200 |
commit | 75f6c6bfa400649014ed90d87e57d5bf4b542f31 (patch) | |
tree | a9bab54f4429e41d065e4292c99dfa1f29f79068 /src/title-menu-item.c | |
parent | b347212eb1cb41fb9739a9873b0ff8eb8abb4b77 (diff) | |
download | ayatana-indicator-sound-75f6c6bfa400649014ed90d87e57d5bf4b542f31.tar.gz ayatana-indicator-sound-75f6c6bfa400649014ed90d87e57d5bf4b542f31.tar.bz2 ayatana-indicator-sound-75f6c6bfa400649014ed90d87e57d5bf4b542f31.zip |
Import upstream version 0.4.3
Diffstat (limited to 'src/title-menu-item.c')
-rw-r--r-- | src/title-menu-item.c | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/src/title-menu-item.c b/src/title-menu-item.c index 56621ac..f66a8f8 100644 --- a/src/title-menu-item.c +++ b/src/title-menu-item.c @@ -134,6 +134,7 @@ GType mpris2_controller_get_type (void) G_GNUC_CONST; GType player_controller_state_get_type (void) G_GNUC_CONST; void player_controller_instantiate (PlayerController* self); void mpris2_controller_expose (Mpris2Controller* self); +void title_menuitem_toggle_active_triangle (TitleMenuitem* self, gboolean update); GeeHashSet* title_menuitem_attributes_format (void); @@ -143,6 +144,7 @@ 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)); + dbusmenu_menuitem_property_set_bool ((DbusmenuMenuitem*) self, DBUSMENU_TITLE_MENUITEM_RUNNING, FALSE); return self; } @@ -166,6 +168,12 @@ static void title_menuitem_real_handle_event (DbusmenuMenuitem* base, const char } +void title_menuitem_toggle_active_triangle (TitleMenuitem* self, gboolean update) { + g_return_if_fail (self != NULL); + dbusmenu_menuitem_property_set_bool ((DbusmenuMenuitem*) self, DBUSMENU_TITLE_MENUITEM_RUNNING, update); +} + + GeeHashSet* title_menuitem_attributes_format (void) { GeeHashSet* result = NULL; GeeHashSet* attrs; |