aboutsummaryrefslogtreecommitdiff
path: root/src/title-menu-item.vala
diff options
context:
space:
mode:
authorConor Curran <conor.curran@canonical.com>2010-09-08 16:10:36 +0100
committerConor Curran <conor.curran@canonical.com>2010-09-08 16:10:36 +0100
commit3bc35728a37c2a9453a262f49175f5bd87297958 (patch)
tree5ff3da7977395829c5d396d2d765bb4572fdc28d /src/title-menu-item.vala
parentdad11c32d68b0f09eb52232a3d3da300e2e63702 (diff)
parent1f038d6725571f8e80530a96112d427d5b051022 (diff)
downloadayatana-indicator-sound-3bc35728a37c2a9453a262f49175f5bd87297958.tar.gz
ayatana-indicator-sound-3bc35728a37c2a9453a262f49175f5bd87297958.tar.bz2
ayatana-indicator-sound-3bc35728a37c2a9453a262f49175f5bd87297958.zip
player title icon now in the gutter
Diffstat (limited to 'src/title-menu-item.vala')
-rw-r--r--src/title-menu-item.vala7
1 files changed, 6 insertions, 1 deletions
diff --git a/src/title-menu-item.vala b/src/title-menu-item.vala
index ec1cc62..bb3d103 100644
--- a/src/title-menu-item.vala
+++ b/src/title-menu-item.vala
@@ -27,6 +27,7 @@ public class TitleMenuitem : PlayerItem
{
Object(item_type: MENUITEM_TYPE, owner: parent);
this.property_set(MENUITEM_NAME, parent.name);
+ this.property_set_bool(MENUITEM_RUNNING, false);
}
public override void handle_event(string name, GLib.Value input_value, uint timestamp)
@@ -39,7 +40,11 @@ public class TitleMenuitem : PlayerItem
this.owner.mpris_bridge.expose();
}
}
-
+
+ public void toggle_active_triangle(bool update)
+ {
+ this.property_set_bool(MENUITEM_RUNNING, update);
+ }
public static HashSet<string> attributes_format()
{