aboutsummaryrefslogtreecommitdiff
path: root/src/track-specific-menu-item.vala
diff options
context:
space:
mode:
authorConor Curran <conor.curran@canonical.com>2011-06-06 21:52:44 +0200
committerConor Curran <conor.curran@canonical.com>2011-06-06 21:52:44 +0200
commit4fc554dc87e61f4fa7c605236da86d05781f7496 (patch)
tree9dc5bf393e5fd21da4ebaeecfb3655aa491516b4 /src/track-specific-menu-item.vala
parent0681190881ea7e9cca176bd69ec00f2393c3ee56 (diff)
downloadayatana-indicator-sound-4fc554dc87e61f4fa7c605236da86d05781f7496.tar.gz
ayatana-indicator-sound-4fc554dc87e61f4fa7c605236da86d05781f7496.tar.bz2
ayatana-indicator-sound-4fc554dc87e61f4fa7c605236da86d05781f7496.zip
track specific items now appears when asked via the com.canonical.indicators.sound dbus interface
Diffstat (limited to 'src/track-specific-menu-item.vala')
-rw-r--r--src/track-specific-menu-item.vala10
1 files changed, 7 insertions, 3 deletions
diff --git a/src/track-specific-menu-item.vala b/src/track-specific-menu-item.vala
index 7bc390e..718a564 100644
--- a/src/track-specific-menu-item.vala
+++ b/src/track-specific-menu-item.vala
@@ -20,17 +20,21 @@ with this program. If not, see <http://www.gnu.org/licenses/>.
using Dbusmenu;
using Gee;
using DbusmenuTrackSpecific;
+using Dbusmenu;
public class TrackSpecificMenuitem : PlayerItem
{
+ public Menuitem root_item{get; construct;}
+
public TrackSpecificMenuitem (PlayerController parent)
{
Object(item_type: MENUITEM_TYPE, owner: parent);
}
construct
{
- this.property_set_bool (MENUITEM_PROP_VISIBLE, false);
- this.property_set_bool (MENUITEM_PROP_ENABLED, false);
- this.property_set (MENUITEM_PROP_LABEL, "Like This");
+ this.root_item = new Menuitem();
+ this.root_item.property_set ( MENUITEM_PROP_LABEL, _("Like This") );
+ this.root_item.property_set_bool (MENUITEM_PROP_VISIBLE, false);
+ this.root_item.property_set_bool (MENUITEM_PROP_ENABLED, false);
}
}