From 01d0c0b1f4353adaa156db3b05b06ab1960e1913 Mon Sep 17 00:00:00 2001 From: Lars Uebernickel Date: Mon, 17 Jun 2013 12:15:34 -0400 Subject: Add IdoPlaybackMenuItem A menu item that can control playback of a media player. Adapted from transport-widget.c formerly found in lp:indicator-sound. --- src/idomenuitemfactory.c | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'src/idomenuitemfactory.c') diff --git a/src/idomenuitemfactory.c b/src/idomenuitemfactory.c index ba994d8..ecb07e0 100644 --- a/src/idomenuitemfactory.c +++ b/src/idomenuitemfactory.c @@ -23,6 +23,7 @@ #include "idousermenuitem.h" #include "idoscalemenuitem.h" #include "idomediaplayermenuitem.h" +#include "idoplaybackmenuitem.h" #define IDO_TYPE_MENU_ITEM_FACTORY (ido_menu_item_factory_get_type ()) #define IDO_MENU_ITEM_FACTORY(o) (G_TYPE_CHECK_INSTANCE_CAST ((o), IDO_TYPE_MENU_ITEM_FACTORY, IdoMenuItemFactory)) @@ -56,6 +57,9 @@ ido_menu_item_factory_create_menu_item (UbuntuMenuItemFactory *factory, else if (g_str_equal (type, "com.canonical.unity.media-player")) item = ido_media_player_menu_item_new_from_model (menuitem, actions); + else if (g_str_equal (type, "com.canonical.unity.playback-item")) + item = ido_playback_menu_item_new_from_model (menuitem, actions); + return item; } -- cgit v1.2.3