diff options
author | Lars Uebernickel <lars.uebernickel@canonical.com> | 2013-06-12 17:43:36 -0400 |
---|---|---|
committer | Lars Uebernickel <lars.uebernickel@canonical.com> | 2013-06-12 17:43:36 -0400 |
commit | ef70e33d1fc18a1f388c38b367fe6cf7065e3479 (patch) | |
tree | a78ac6aa589374399574f79c17834211e6bd7913 /src/idomenuitemfactory.c | |
parent | 761013209f13b68e49a4bd0992c4bf5485ab3e2f (diff) | |
download | ayatana-ido-ef70e33d1fc18a1f388c38b367fe6cf7065e3479.tar.gz ayatana-ido-ef70e33d1fc18a1f388c38b367fe6cf7065e3479.tar.bz2 ayatana-ido-ef70e33d1fc18a1f388c38b367fe6cf7065e3479.zip |
Add IdoMediaPlayerMenuItem
A menu item that shows a media player application and metadata about the
currently running song.
Adapted from metadata-widget.c formerly found in lp:indicator-sound.
Diffstat (limited to 'src/idomenuitemfactory.c')
-rw-r--r-- | src/idomenuitemfactory.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/idomenuitemfactory.c b/src/idomenuitemfactory.c index 0ff84a8..ba994d8 100644 --- a/src/idomenuitemfactory.c +++ b/src/idomenuitemfactory.c @@ -22,6 +22,7 @@ #include "idousermenuitem.h" #include "idoscalemenuitem.h" +#include "idomediaplayermenuitem.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)) @@ -52,6 +53,9 @@ ido_menu_item_factory_create_menu_item (UbuntuMenuItemFactory *factory, else if (g_str_equal (type, "com.canonical.unity.slider")) item = ido_scale_menu_item_new_from_model (menuitem, actions); + else if (g_str_equal (type, "com.canonical.unity.media-player")) + item = ido_media_player_menu_item_new_from_model (menuitem, actions); + return item; } |