diff options
author | Ken VanDine <ken.vandine@canonical.com> | 2011-02-10 13:19:22 -0500 |
---|---|---|
committer | Ken VanDine <ken.vandine@canonical.com> | 2011-02-10 13:19:22 -0500 |
commit | 817f8e1a86aaa026c8de8acee40c5c9664d358d0 (patch) | |
tree | d74ee9e8911c0d7b2ecf6b3df98e1bcdff73fe06 /src/title-menu-item.vala | |
parent | d668df547af9a4add8c18e3614d344b80e0bd6c8 (diff) | |
parent | b4b1c772dc57c3034cc80b785e4b472b8fe1b404 (diff) | |
download | ayatana-indicator-sound-817f8e1a86aaa026c8de8acee40c5c9664d358d0.tar.gz ayatana-indicator-sound-817f8e1a86aaa026c8de8acee40c5c9664d358d0.tar.bz2 ayatana-indicator-sound-817f8e1a86aaa026c8de8acee40c5c9664d358d0.zip |
releasing version 0.5.9-0ubuntu1
Diffstat (limited to 'src/title-menu-item.vala')
-rw-r--r-- | src/title-menu-item.vala | 14 |
1 files changed, 12 insertions, 2 deletions
diff --git a/src/title-menu-item.vala b/src/title-menu-item.vala index 6ed24d8..ac93b89 100644 --- a/src/title-menu-item.vala +++ b/src/title-menu-item.vala @@ -26,8 +26,12 @@ public class TitleMenuitem : PlayerItem public TitleMenuitem(PlayerController parent) { Object(item_type: MENUITEM_TYPE, owner: parent); - this.property_set(MENUITEM_NAME, parent.app_info.get_name()); - this.property_set(MENUITEM_ICON, parent.icon_name); + } + + construct + { + this.property_set(MENUITEM_NAME, this.owner.app_info.get_name()); + this.property_set(MENUITEM_ICON, this.owner.icon_name); this.property_set_bool(MENUITEM_RUNNING, false); } @@ -42,6 +46,12 @@ public class TitleMenuitem : PlayerItem } } + public void alter_label (string new_title) + { + if (new_title == null) return; + this.property_set(MENUITEM_NAME, new_title); + } + public void toggle_active_triangle(bool update) { this.property_set_bool(MENUITEM_RUNNING, update); |