Back to index

libunity  5.92.0
Classes | Defines | Typedefs | Enumerations | Functions | Variables
unity-sound-menu.c File Reference
#include <glib.h>
#include <glib-object.h>
#include "unity.h"
#include <stdlib.h>
#include <string.h>
#include <gio/gio.h>
#include <gee.h>
#include <libdbusmenu-glib/client.h>
#include <libdbusmenu-glib/dbusmenu-glib.h>
#include <libdbusmenu-glib/enum-types.h>
#include <libdbusmenu-glib/menuitem-proxy.h>
#include <libdbusmenu-glib/menuitem.h>
#include <libdbusmenu-glib/server.h>
#include <libdbusmenu-glib/types.h>
#include <gio/gdesktopappinfo.h>

Go to the source code of this file.

Classes

struct  _UnityPlaylistPrivate
struct  _UnityMusicPlayerPrivate

Defines

#define _g_free0(var)   (var = (g_free (var), NULL))
#define _g_object_unref0(var)   ((var == NULL) ? NULL : (var = (g_object_unref (var), NULL)))
#define _g_date_time_unref0(var)   ((var == NULL) ? NULL : (var = (g_date_time_unref (var), NULL)))
#define UNITY_TYPE_MPRIS_GATEWAY   (unity_mpris_gateway_get_type ())
#define UNITY_MPRIS_GATEWAY(obj)   (G_TYPE_CHECK_INSTANCE_CAST ((obj), UNITY_TYPE_MPRIS_GATEWAY, UnityMPRISGateway))
#define UNITY_MPRIS_GATEWAY_CLASS(klass)   (G_TYPE_CHECK_CLASS_CAST ((klass), UNITY_TYPE_MPRIS_GATEWAY, UnityMPRISGatewayClass))
#define UNITY_IS_MPRIS_GATEWAY(obj)   (G_TYPE_CHECK_INSTANCE_TYPE ((obj), UNITY_TYPE_MPRIS_GATEWAY))
#define UNITY_IS_MPRIS_GATEWAY_CLASS(klass)   (G_TYPE_CHECK_CLASS_TYPE ((klass), UNITY_TYPE_MPRIS_GATEWAY))
#define UNITY_MPRIS_GATEWAY_GET_CLASS(obj)   (G_TYPE_INSTANCE_GET_CLASS ((obj), UNITY_TYPE_MPRIS_GATEWAY, UnityMPRISGatewayClass))
#define _g_error_free0(var)   ((var == NULL) ? NULL : (var = (g_error_free (var), NULL)))
#define UNITY_TRACK_METADATA_GET_PRIVATE(o)   (G_TYPE_INSTANCE_GET_PRIVATE ((o), UNITY_TYPE_TRACK_METADATA, UnityTrackMetadataPrivate))
#define UNITY_PLAYLIST_GET_PRIVATE(o)   (G_TYPE_INSTANCE_GET_PRIVATE ((o), UNITY_TYPE_PLAYLIST, UnityPlaylistPrivate))
#define UNITY_MUSIC_PLAYER_GET_PRIVATE(o)   (G_TYPE_INSTANCE_GET_PRIVATE ((o), UNITY_TYPE_MUSIC_PLAYER, UnityMusicPlayerPrivate))

Typedefs

typedef struct _UnityMPRISGateway
typedef struct _UnityMPRISGatewayClass

Enumerations

enum  {
  UNITY_TRACK_METADATA_DUMMY_PROPERTY, UNITY_TRACK_METADATA_URI, UNITY_TRACK_METADATA_TRACK_NO, UNITY_TRACK_METADATA_ARTIST,
  UNITY_TRACK_METADATA_TITLE, UNITY_TRACK_METADATA_ALBUM, UNITY_TRACK_METADATA_LENGTH, UNITY_TRACK_METADATA_ART_LOCATION,
  UNITY_TRACK_METADATA_ART_ICON
}
enum  {
  UNITY_PLAYLIST_DUMMY_PROPERTY, UNITY_PLAYLIST_ID, UNITY_PLAYLIST_NAME, UNITY_PLAYLIST_ICON,
  UNITY_PLAYLIST_CREATION_DATE, UNITY_PLAYLIST_MODIFICATION_DATE, UNITY_PLAYLIST_LAST_PLAY_DATE
}

Functions

static void unity_track_metadata_finalize (GObject *obj)
static void _vala_unity_track_metadata_get_property (GObject *object, guint property_id, GValue *value, GParamSpec *pspec)
static void _vala_unity_track_metadata_set_property (GObject *object, guint property_id, const GValue *value, GParamSpec *pspec)
static void unity_playlist_finalize (GObject *obj)
static void _vala_unity_playlist_get_property (GObject *object, guint property_id, GValue *value, GParamSpec *pspec)
static void _vala_unity_playlist_set_property (GObject *object, guint property_id, const GValue *value, GParamSpec *pspec)
GType unity_mpris_gateway_get_type (void)
void unity_mpris_gateway_export (UnityMPRISGateway *self)
void unity_mpris_gateway_unexport (UnityMPRISGateway *self)
static GAppInfo * unity_music_player_create_app_info (const gchar *desktop)
void unity_mpris_gateway_ensure_playlist_interface_is_raised (UnityMPRISGateway *self)
void unity_mpris_gateway_set_playlist_count (UnityMPRISGateway *self, gint value)
void unity_mpris_gateway_set_edited_playlist (UnityMPRISGateway *self, UnityPlaylist *value)
static GObject * unity_music_player_constructor (GType type, guint n_construct_properties, GObjectConstructParam *construct_properties)
UnityMPRISGateway * unity_mpris_gateway_new (UnityMusicPlayer *client)
UnityMPRISGateway * unity_mpris_gateway_construct (GType object_type, UnityMusicPlayer *client)
static void unity_music_player_finalize (GObject *obj)
static void _vala_unity_music_player_get_property (GObject *object, guint property_id, GValue *value, GParamSpec *pspec)
static void _vala_unity_music_player_set_property (GObject *object, guint property_id, const GValue *value, GParamSpec *pspec)
UnityTrackMetadata * unity_track_metadata_construct (GType object_type)
UnityTrackMetadata * unity_track_metadata_new (void)
UnityTrackMetadata * unity_track_metadata_construct_full (GType object_type, const gchar *uri, gint track_no, const gchar *title, const gchar *artist, const gchar *album, guint length)
UnityTrackMetadata * unity_track_metadata_new_full (const gchar *uri, gint track_no, const gchar *title, const gchar *artist, const gchar *album, guint length)
const gchar * unity_track_metadata_get_uri (UnityTrackMetadata *self)
void unity_track_metadata_set_uri (UnityTrackMetadata *self, const gchar *value)
gint unity_track_metadata_get_track_no (UnityTrackMetadata *self)
void unity_track_metadata_set_track_no (UnityTrackMetadata *self, gint value)
const gchar * unity_track_metadata_get_artist (UnityTrackMetadata *self)
void unity_track_metadata_set_artist (UnityTrackMetadata *self, const gchar *value)
const gchar * unity_track_metadata_get_title (UnityTrackMetadata *self)
void unity_track_metadata_set_title (UnityTrackMetadata *self, const gchar *value)
const gchar * unity_track_metadata_get_album (UnityTrackMetadata *self)
void unity_track_metadata_set_album (UnityTrackMetadata *self, const gchar *value)
guint unity_track_metadata_get_length (UnityTrackMetadata *self)
void unity_track_metadata_set_length (UnityTrackMetadata *self, guint value)
GFile * unity_track_metadata_get_art_location (UnityTrackMetadata *self)
static gpointer _g_object_ref0 (gpointer self)
void unity_track_metadata_set_art_location (UnityTrackMetadata *self, GFile *value)
GIcon * unity_track_metadata_get_art_icon (UnityTrackMetadata *self)
void unity_track_metadata_set_art_icon (UnityTrackMetadata *self, GIcon *value)
static void unity_track_metadata_class_init (UnityTrackMetadataClass *klass)
static void unity_track_metadata_instance_init (UnityTrackMetadata *self)
GType unity_track_metadata_get_type (void)
UnityPlaylist * unity_playlist_construct (GType object_type, const gchar *id)
UnityPlaylist * unity_playlist_new (const gchar *id)
const gchar * unity_playlist_get_id (UnityPlaylist *self)
static void unity_playlist_set_id (UnityPlaylist *self, const gchar *value)
const gchar * unity_playlist_get_name (UnityPlaylist *self)
void unity_playlist_set_name (UnityPlaylist *self, const gchar *value)
GIcon * unity_playlist_get_icon (UnityPlaylist *self)
void unity_playlist_set_icon (UnityPlaylist *self, GIcon *value)
GDateTime * unity_playlist_get_creation_date (UnityPlaylist *self)
static gpointer _g_date_time_ref0 (gpointer self)
void unity_playlist_set_creation_date (UnityPlaylist *self, GDateTime *value)
GDateTime * unity_playlist_get_modification_date (UnityPlaylist *self)
void unity_playlist_set_modification_date (UnityPlaylist *self, GDateTime *value)
GDateTime * unity_playlist_get_last_play_date (UnityPlaylist *self)
void unity_playlist_set_last_play_date (UnityPlaylist *self, GDateTime *value)
static void unity_playlist_class_init (UnityPlaylistClass *klass)
static void unity_playlist_instance_init (UnityPlaylist *self)
GType unity_playlist_get_type (void)
GType unity_playback_state_get_type (void)
UnityMusicPlayer * unity_music_player_construct (GType object_type, const gchar *desktop)
UnityMusicPlayer * unity_music_player_new (const gchar *desktop)
void unity_music_player_export (UnityMusicPlayer *self)
void unity_music_player_unexport (UnityMusicPlayer *self)
gboolean unity_music_player_add_playlist (UnityMusicPlayer *self, UnityPlaylist *p)
gboolean unity_music_player_remove_playlist (UnityMusicPlayer *self, UnityPlaylist *p)
UnityPlaylist ** unity_music_player_get_playlists (UnityMusicPlayer *self, int *result_length1)
void unity_music_player_edit_playlist_name (UnityMusicPlayer *self, const gchar *id, const gchar *name)
GAppInfo * unity_music_player_get_app_info (UnityMusicPlayer *self)
static void unity_music_player_set_app_info (UnityMusicPlayer *self, GAppInfo *value)
const gchar * unity_music_player_get_desktop_file_name (UnityMusicPlayer *self)
static void unity_music_player_set_desktop_file_name (UnityMusicPlayer *self, const gchar *value)
gboolean unity_music_player_get_is_blacklisted (UnityMusicPlayer *self)
void unity_music_player_set_is_blacklisted (UnityMusicPlayer *self, gboolean value)
const gchar * unity_music_player_get_title (UnityMusicPlayer *self)
void unity_music_player_set_title (UnityMusicPlayer *self, const gchar *value)
gboolean unity_music_player_get_can_go_next (UnityMusicPlayer *self)
void unity_music_player_set_can_go_next (UnityMusicPlayer *self, gboolean value)
gboolean unity_music_player_get_can_go_previous (UnityMusicPlayer *self)
void unity_music_player_set_can_go_previous (UnityMusicPlayer *self, gboolean value)
gboolean unity_music_player_get_can_play (UnityMusicPlayer *self)
void unity_music_player_set_can_play (UnityMusicPlayer *self, gboolean value)
gboolean unity_music_player_get_can_pause (UnityMusicPlayer *self)
void unity_music_player_set_can_pause (UnityMusicPlayer *self, gboolean value)
UnityTrackMetadata * unity_music_player_get_current_track (UnityMusicPlayer *self)
void unity_music_player_set_current_track (UnityMusicPlayer *self, UnityTrackMetadata *value)
UnityPlaybackState unity_music_player_get_playback_state (UnityMusicPlayer *self)
void unity_music_player_set_playback_state (UnityMusicPlayer *self, UnityPlaybackState value)
UnityPlaylist * unity_music_player_get_current_playlist (UnityMusicPlayer *self)
void unity_music_player_set_current_playlist (UnityMusicPlayer *self, UnityPlaylist *value)
DbusmenuMenuitem * unity_music_player_get_track_menu (UnityMusicPlayer *self)
void unity_music_player_set_track_menu (UnityMusicPlayer *self, DbusmenuMenuitem *value)
DbusmenuMenuitem * unity_music_player_get_player_menu (UnityMusicPlayer *self)
void unity_music_player_set_player_menu (UnityMusicPlayer *self, DbusmenuMenuitem *value)
static void unity_music_player_class_init (UnityMusicPlayerClass *klass)
static void unity_music_player_instance_init (UnityMusicPlayer *self)
GType unity_music_player_get_type (void)

Variables

static gpointer unity_track_metadata_parent_class = NULL
static gpointer unity_playlist_parent_class = NULL
static gpointer unity_music_player_parent_class = NULL

Class Documentation

struct _UnityTrackMetadataPrivate

Definition at line 64 of file unity-sound-menu.c.

Class Members
gchar * _album
GFile * _art_file
GIcon * _art_icon
gchar * _artist
guint _length
gchar * _title
gint _track_no
gchar * _uri
struct _UnityPlaylistPrivate

Definition at line 75 of file unity-sound-menu.c.

Class Members
GDateTime * _creation_date
GIcon * _icon
gchar * _id
GDateTime * _last_play_date
GDateTime * _modification_date
gchar * _name
struct _UnityMusicPlayerPrivate

Definition at line 84 of file unity-sound-menu.c.

Class Members
GAppInfo * _app_info
gboolean _can_go_next
gboolean _can_go_previous
gboolean _can_pause
gboolean _can_play
UnityPlaylist * _current_playlist
UnityTrackMetadata * _current_track
gchar * _desktop_file_name
gboolean _is_blacklisted
UnityPlaybackState _playback_state
DbusmenuMenuitem * _player_menu
gchar * _title
DbusmenuMenuitem * _track_menu
GeeArrayList * internal_playlists
UnityMPRISGateway * mpris_gateway

Define Documentation

#define _g_date_time_unref0 (   var)    ((var == NULL) ? NULL : (var = (g_date_time_unref (var), NULL)))

Definition at line 51 of file unity-sound-menu.c.

#define _g_error_free0 (   var)    ((var == NULL) ? NULL : (var = (g_error_free (var), NULL)))

Definition at line 62 of file unity-sound-menu.c.

#define _g_free0 (   var)    (var = (g_free (var), NULL))

Definition at line 49 of file unity-sound-menu.c.

#define _g_object_unref0 (   var)    ((var == NULL) ? NULL : (var = (g_object_unref (var), NULL)))

Definition at line 50 of file unity-sound-menu.c.

#define UNITY_IS_MPRIS_GATEWAY (   obj)    (G_TYPE_CHECK_INSTANCE_TYPE ((obj), UNITY_TYPE_MPRIS_GATEWAY))

Definition at line 56 of file unity-sound-menu.c.

#define UNITY_IS_MPRIS_GATEWAY_CLASS (   klass)    (G_TYPE_CHECK_CLASS_TYPE ((klass), UNITY_TYPE_MPRIS_GATEWAY))

Definition at line 57 of file unity-sound-menu.c.

#define UNITY_MPRIS_GATEWAY (   obj)    (G_TYPE_CHECK_INSTANCE_CAST ((obj), UNITY_TYPE_MPRIS_GATEWAY, UnityMPRISGateway))

Definition at line 54 of file unity-sound-menu.c.

#define UNITY_MPRIS_GATEWAY_CLASS (   klass)    (G_TYPE_CHECK_CLASS_CAST ((klass), UNITY_TYPE_MPRIS_GATEWAY, UnityMPRISGatewayClass))

Definition at line 55 of file unity-sound-menu.c.

#define UNITY_MPRIS_GATEWAY_GET_CLASS (   obj)    (G_TYPE_INSTANCE_GET_CLASS ((obj), UNITY_TYPE_MPRIS_GATEWAY, UnityMPRISGatewayClass))

Definition at line 58 of file unity-sound-menu.c.

#define UNITY_MUSIC_PLAYER_GET_PRIVATE (   o)    (G_TYPE_INSTANCE_GET_PRIVATE ((o), UNITY_TYPE_MUSIC_PLAYER, UnityMusicPlayerPrivate))
#define UNITY_PLAYLIST_GET_PRIVATE (   o)    (G_TYPE_INSTANCE_GET_PRIVATE ((o), UNITY_TYPE_PLAYLIST, UnityPlaylistPrivate))

Definition at line 122 of file unity-sound-menu.c.

#define UNITY_TRACK_METADATA_GET_PRIVATE (   o)    (G_TYPE_INSTANCE_GET_PRIVATE ((o), UNITY_TYPE_TRACK_METADATA, UnityTrackMetadataPrivate))

Definition at line 107 of file unity-sound-menu.c.

Definition at line 53 of file unity-sound-menu.c.


Typedef Documentation

typedef struct _UnityMPRISGateway

Definition at line 60 of file unity-sound-menu.c.

typedef struct _UnityMPRISGatewayClass

Definition at line 61 of file unity-sound-menu.c.


Enumeration Type Documentation

anonymous enum
Enumerator:
UNITY_TRACK_METADATA_DUMMY_PROPERTY 
UNITY_TRACK_METADATA_URI 
UNITY_TRACK_METADATA_TRACK_NO 
UNITY_TRACK_METADATA_ARTIST 
UNITY_TRACK_METADATA_TITLE 
UNITY_TRACK_METADATA_ALBUM 
UNITY_TRACK_METADATA_LENGTH 
UNITY_TRACK_METADATA_ART_LOCATION 
UNITY_TRACK_METADATA_ART_ICON 

Definition at line 108 of file unity-sound-menu.c.

anonymous enum
Enumerator:
UNITY_PLAYLIST_DUMMY_PROPERTY 
UNITY_PLAYLIST_ID 
UNITY_PLAYLIST_NAME 
UNITY_PLAYLIST_ICON 
UNITY_PLAYLIST_CREATION_DATE 
UNITY_PLAYLIST_MODIFICATION_DATE 
UNITY_PLAYLIST_LAST_PLAY_DATE 

Definition at line 123 of file unity-sound-menu.c.


Function Documentation

static gpointer _g_date_time_ref0 ( gpointer  self) [static]

Definition at line 620 of file unity-sound-menu.c.

                                                  {
       return self ? g_date_time_ref (self) : NULL;
}

Here is the caller graph for this function:

static gpointer _g_object_ref0 ( gpointer  self) [static]

Definition at line 343 of file unity-sound-menu.c.

                                               {
       return self ? g_object_ref (self) : NULL;
}

Here is the caller graph for this function:

static void _vala_unity_music_player_get_property ( GObject *  object,
guint  property_id,
GValue *  value,
GParamSpec *  pspec 
) [static]

Definition at line 1419 of file unity-sound-menu.c.

                                                                                                                            {
       UnityMusicPlayer * self;
       self = G_TYPE_CHECK_INSTANCE_CAST (object, UNITY_TYPE_MUSIC_PLAYER, UnityMusicPlayer);
       switch (property_id) {
              case UNITY_MUSIC_PLAYER_APP_INFO:
              g_value_set_object (value, unity_music_player_get_app_info (self));
              break;
              case UNITY_MUSIC_PLAYER_DESKTOP_FILE_NAME:
              g_value_set_string (value, unity_music_player_get_desktop_file_name (self));
              break;
              case UNITY_MUSIC_PLAYER_IS_BLACKLISTED:
              g_value_set_boolean (value, unity_music_player_get_is_blacklisted (self));
              break;
              case UNITY_MUSIC_PLAYER_TITLE:
              g_value_set_string (value, unity_music_player_get_title (self));
              break;
              case UNITY_MUSIC_PLAYER_CAN_GO_NEXT:
              g_value_set_boolean (value, unity_music_player_get_can_go_next (self));
              break;
              case UNITY_MUSIC_PLAYER_CAN_GO_PREVIOUS:
              g_value_set_boolean (value, unity_music_player_get_can_go_previous (self));
              break;
              case UNITY_MUSIC_PLAYER_CAN_PLAY:
              g_value_set_boolean (value, unity_music_player_get_can_play (self));
              break;
              case UNITY_MUSIC_PLAYER_CAN_PAUSE:
              g_value_set_boolean (value, unity_music_player_get_can_pause (self));
              break;
              case UNITY_MUSIC_PLAYER_CURRENT_TRACK:
              g_value_set_object (value, unity_music_player_get_current_track (self));
              break;
              case UNITY_MUSIC_PLAYER_PLAYBACK_STATE:
              g_value_set_enum (value, unity_music_player_get_playback_state (self));
              break;
              case UNITY_MUSIC_PLAYER_CURRENT_PLAYLIST:
              g_value_set_object (value, unity_music_player_get_current_playlist (self));
              break;
              case UNITY_MUSIC_PLAYER_TRACK_MENU:
              g_value_set_object (value, unity_music_player_get_track_menu (self));
              break;
              case UNITY_MUSIC_PLAYER_PLAYER_MENU:
              g_value_set_object (value, unity_music_player_get_player_menu (self));
              break;
              default:
              G_OBJECT_WARN_INVALID_PROPERTY_ID (object, property_id, pspec);
              break;
       }
}

Here is the call graph for this function:

Here is the caller graph for this function:

static void _vala_unity_music_player_set_property ( GObject *  object,
guint  property_id,
const GValue *  value,
GParamSpec *  pspec 
) [static]

Definition at line 1469 of file unity-sound-menu.c.

                                                                                                                                  {
       UnityMusicPlayer * self;
       self = G_TYPE_CHECK_INSTANCE_CAST (object, UNITY_TYPE_MUSIC_PLAYER, UnityMusicPlayer);
       switch (property_id) {
              case UNITY_MUSIC_PLAYER_APP_INFO:
              unity_music_player_set_app_info (self, g_value_get_object (value));
              break;
              case UNITY_MUSIC_PLAYER_DESKTOP_FILE_NAME:
              unity_music_player_set_desktop_file_name (self, g_value_get_string (value));
              break;
              case UNITY_MUSIC_PLAYER_IS_BLACKLISTED:
              unity_music_player_set_is_blacklisted (self, g_value_get_boolean (value));
              break;
              case UNITY_MUSIC_PLAYER_TITLE:
              unity_music_player_set_title (self, g_value_get_string (value));
              break;
              case UNITY_MUSIC_PLAYER_CAN_GO_NEXT:
              unity_music_player_set_can_go_next (self, g_value_get_boolean (value));
              break;
              case UNITY_MUSIC_PLAYER_CAN_GO_PREVIOUS:
              unity_music_player_set_can_go_previous (self, g_value_get_boolean (value));
              break;
              case UNITY_MUSIC_PLAYER_CAN_PLAY:
              unity_music_player_set_can_play (self, g_value_get_boolean (value));
              break;
              case UNITY_MUSIC_PLAYER_CAN_PAUSE:
              unity_music_player_set_can_pause (self, g_value_get_boolean (value));
              break;
              case UNITY_MUSIC_PLAYER_CURRENT_TRACK:
              unity_music_player_set_current_track (self, g_value_get_object (value));
              break;
              case UNITY_MUSIC_PLAYER_PLAYBACK_STATE:
              unity_music_player_set_playback_state (self, g_value_get_enum (value));
              break;
              case UNITY_MUSIC_PLAYER_CURRENT_PLAYLIST:
              unity_music_player_set_current_playlist (self, g_value_get_object (value));
              break;
              case UNITY_MUSIC_PLAYER_TRACK_MENU:
              unity_music_player_set_track_menu (self, g_value_get_object (value));
              break;
              case UNITY_MUSIC_PLAYER_PLAYER_MENU:
              unity_music_player_set_player_menu (self, g_value_get_object (value));
              break;
              default:
              G_OBJECT_WARN_INVALID_PROPERTY_ID (object, property_id, pspec);
              break;
       }
}

Here is the call graph for this function:

Here is the caller graph for this function:

static void _vala_unity_playlist_get_property ( GObject *  object,
guint  property_id,
GValue *  value,
GParamSpec *  pspec 
) [static]

Definition at line 726 of file unity-sound-menu.c.

                                                                                                                        {
       UnityPlaylist * self;
       self = G_TYPE_CHECK_INSTANCE_CAST (object, UNITY_TYPE_PLAYLIST, UnityPlaylist);
       switch (property_id) {
              case UNITY_PLAYLIST_ID:
              g_value_set_string (value, unity_playlist_get_id (self));
              break;
              case UNITY_PLAYLIST_NAME:
              g_value_set_string (value, unity_playlist_get_name (self));
              break;
              case UNITY_PLAYLIST_ICON:
              g_value_set_object (value, unity_playlist_get_icon (self));
              break;
              case UNITY_PLAYLIST_CREATION_DATE:
              g_value_set_boxed (value, unity_playlist_get_creation_date (self));
              break;
              case UNITY_PLAYLIST_MODIFICATION_DATE:
              g_value_set_boxed (value, unity_playlist_get_modification_date (self));
              break;
              case UNITY_PLAYLIST_LAST_PLAY_DATE:
              g_value_set_boxed (value, unity_playlist_get_last_play_date (self));
              break;
              default:
              G_OBJECT_WARN_INVALID_PROPERTY_ID (object, property_id, pspec);
              break;
       }
}

Here is the call graph for this function:

Here is the caller graph for this function:

static void _vala_unity_playlist_set_property ( GObject *  object,
guint  property_id,
const GValue *  value,
GParamSpec *  pspec 
) [static]

Definition at line 755 of file unity-sound-menu.c.

                                                                                                                              {
       UnityPlaylist * self;
       self = G_TYPE_CHECK_INSTANCE_CAST (object, UNITY_TYPE_PLAYLIST, UnityPlaylist);
       switch (property_id) {
              case UNITY_PLAYLIST_ID:
              unity_playlist_set_id (self, g_value_get_string (value));
              break;
              case UNITY_PLAYLIST_NAME:
              unity_playlist_set_name (self, g_value_get_string (value));
              break;
              case UNITY_PLAYLIST_ICON:
              unity_playlist_set_icon (self, g_value_get_object (value));
              break;
              case UNITY_PLAYLIST_CREATION_DATE:
              unity_playlist_set_creation_date (self, g_value_get_boxed (value));
              break;
              case UNITY_PLAYLIST_MODIFICATION_DATE:
              unity_playlist_set_modification_date (self, g_value_get_boxed (value));
              break;
              case UNITY_PLAYLIST_LAST_PLAY_DATE:
              unity_playlist_set_last_play_date (self, g_value_get_boxed (value));
              break;
              default:
              G_OBJECT_WARN_INVALID_PROPERTY_ID (object, property_id, pspec);
              break;
       }
}

Here is the call graph for this function:

Here is the caller graph for this function:

static void _vala_unity_track_metadata_get_property ( GObject *  object,
guint  property_id,
GValue *  value,
GParamSpec *  pspec 
) [static]

Definition at line 459 of file unity-sound-menu.c.

                                                                                                                              {
       UnityTrackMetadata * self;
       self = G_TYPE_CHECK_INSTANCE_CAST (object, UNITY_TYPE_TRACK_METADATA, UnityTrackMetadata);
       switch (property_id) {
              case UNITY_TRACK_METADATA_URI:
              g_value_set_string (value, unity_track_metadata_get_uri (self));
              break;
              case UNITY_TRACK_METADATA_TRACK_NO:
              g_value_set_int (value, unity_track_metadata_get_track_no (self));
              break;
              case UNITY_TRACK_METADATA_ARTIST:
              g_value_set_string (value, unity_track_metadata_get_artist (self));
              break;
              case UNITY_TRACK_METADATA_TITLE:
              g_value_set_string (value, unity_track_metadata_get_title (self));
              break;
              case UNITY_TRACK_METADATA_ALBUM:
              g_value_set_string (value, unity_track_metadata_get_album (self));
              break;
              case UNITY_TRACK_METADATA_LENGTH:
              g_value_set_uint (value, unity_track_metadata_get_length (self));
              break;
              case UNITY_TRACK_METADATA_ART_LOCATION:
              g_value_set_object (value, unity_track_metadata_get_art_location (self));
              break;
              case UNITY_TRACK_METADATA_ART_ICON:
              g_value_set_object (value, unity_track_metadata_get_art_icon (self));
              break;
              default:
              G_OBJECT_WARN_INVALID_PROPERTY_ID (object, property_id, pspec);
              break;
       }
}

Here is the call graph for this function:

Here is the caller graph for this function:

static void _vala_unity_track_metadata_set_property ( GObject *  object,
guint  property_id,
const GValue *  value,
GParamSpec *  pspec 
) [static]

Definition at line 494 of file unity-sound-menu.c.

                                                                                                                                    {
       UnityTrackMetadata * self;
       self = G_TYPE_CHECK_INSTANCE_CAST (object, UNITY_TYPE_TRACK_METADATA, UnityTrackMetadata);
       switch (property_id) {
              case UNITY_TRACK_METADATA_URI:
              unity_track_metadata_set_uri (self, g_value_get_string (value));
              break;
              case UNITY_TRACK_METADATA_TRACK_NO:
              unity_track_metadata_set_track_no (self, g_value_get_int (value));
              break;
              case UNITY_TRACK_METADATA_ARTIST:
              unity_track_metadata_set_artist (self, g_value_get_string (value));
              break;
              case UNITY_TRACK_METADATA_TITLE:
              unity_track_metadata_set_title (self, g_value_get_string (value));
              break;
              case UNITY_TRACK_METADATA_ALBUM:
              unity_track_metadata_set_album (self, g_value_get_string (value));
              break;
              case UNITY_TRACK_METADATA_LENGTH:
              unity_track_metadata_set_length (self, g_value_get_uint (value));
              break;
              case UNITY_TRACK_METADATA_ART_LOCATION:
              unity_track_metadata_set_art_location (self, g_value_get_object (value));
              break;
              case UNITY_TRACK_METADATA_ART_ICON:
              unity_track_metadata_set_art_icon (self, g_value_get_object (value));
              break;
              default:
              G_OBJECT_WARN_INVALID_PROPERTY_ID (object, property_id, pspec);
              break;
       }
}

Here is the call graph for this function:

Here is the caller graph for this function:

UnityMPRISGateway* unity_mpris_gateway_construct ( GType  object_type,
UnityMusicPlayer *  client 
)

Definition at line 738 of file unity-sound-menu-mpris.c.

                                                                                               {
       UnityMPRISGateway * self = NULL;
       UnityMusicPlayer* _tmp0_;
       g_return_val_if_fail (client != NULL, NULL);
       _tmp0_ = client;
       self = (UnityMPRISGateway*) g_object_new (object_type, "consumer", _tmp0_, NULL);
       return self;
}
void unity_mpris_gateway_ensure_playlist_interface_is_raised ( UnityMPRISGateway *  self)

Definition at line 1029 of file unity-sound-menu-mpris.c.

                                                                                       {
       gboolean _tmp0_;
       GError * _inner_error_ = NULL;
       g_return_if_fail (self != NULL);
       _tmp0_ = self->priv->playlist_interface_raised;
       if (_tmp0_ == TRUE) {
              return;
       }
       {
              GDBusConnection* _tmp1_;
              UnityMprisPlaylists* _tmp2_;
              _tmp1_ = self->priv->dbus_connection;
              _tmp2_ = self->priv->mpris_playlist_interface;
              unity_mpris_playlists_register_object (_tmp2_, _tmp1_, UNITY_MPRIS_INTERFACE_ROOT_PATH, &_inner_error_);
              if (_inner_error_ != NULL) {
                     if (_inner_error_->domain == G_IO_ERROR) {
                            goto __catch37_g_io_error;
                     }
                     g_critical ("file %s: line %d: unexpected error: %s (%s, %d)", __FILE__, __LINE__, _inner_error_->message, g_quark_to_string (_inner_error_->domain), _inner_error_->code);
                     g_clear_error (&_inner_error_);
                     return;
              }
              self->priv->playlist_interface_raised = TRUE;
       }
       goto __finally37;
       __catch37_g_io_error:
       {
              GError* e = NULL;
              UnityMusicPlayer* _tmp3_;
              GAppInfo* _tmp4_;
              GAppInfo* _tmp5_;
              const gchar* _tmp6_ = NULL;
              GError* _tmp7_;
              const gchar* _tmp8_;
              e = _inner_error_;
              _inner_error_ = NULL;
              _tmp3_ = self->priv->_consumer;
              _tmp4_ = unity_music_player_get_app_info (_tmp3_);
              _tmp5_ = _tmp4_;
              _tmp6_ = g_app_info_get_name (_tmp5_);
              _tmp7_ = e;
              _tmp8_ = _tmp7_->message;
              g_critical ("unity-sound-menu-mpris.vala:155: Could not register playlist interface" \
" for %s: %s", _tmp6_, _tmp8_);
              _g_error_free0 (e);
       }
       __finally37:
       if (_inner_error_ != NULL) {
              g_critical ("file %s: line %d: uncaught error: %s (%s, %d)", __FILE__, __LINE__, _inner_error_->message, g_quark_to_string (_inner_error_->domain), _inner_error_->code);
              g_clear_error (&_inner_error_);
              return;
       }
}

Here is the call graph for this function:

void unity_mpris_gateway_export ( UnityMPRISGateway *  self)

Definition at line 791 of file unity-sound-menu-mpris.c.

                                                          {
       Block10Data* _data10_;
       guint _tmp0_;
       GDBusConnection* _tmp1_;
       UnityPropertyUpdateManager* _tmp4_;
       UnityMprisRoot* _tmp7_;
       UnityMprisPlayer* _tmp11_;
       UnityMprisPlaylists* _tmp15_;
       UnityMusicPlayer* _tmp33_;
       GAppInfo* _tmp34_;
       GAppInfo* _tmp35_;
       const gchar* _tmp36_ = NULL;
       gchar* _tmp37_ = NULL;
       gchar* mpris_extension;
       const gchar* _tmp38_;
       gchar* _tmp39_ = NULL;
       const gchar* _tmp40_;
       guint _tmp41_ = 0U;
       GError * _inner_error_ = NULL;
       g_return_if_fail (self != NULL);
       _data10_ = g_slice_new0 (Block10Data);
       _data10_->_ref_count_ = 1;
       _data10_->self = g_object_ref (self);
       _tmp0_ = self->priv->bus_name_owner_handle;
       if (_tmp0_ != ((guint) 0)) {
              g_critical ("unity-sound-menu-mpris.vala:73: Can not export MPRISGateway@%p. It is " \
"already exported", self);
              block10_data_unref (_data10_);
              _data10_ = NULL;
              return;
       }
       _tmp1_ = self->priv->dbus_connection;
       if (_tmp1_ == NULL) {
              {
                     GDBusConnection* _tmp2_ = NULL;
                     GDBusConnection* _tmp3_;
                     _tmp2_ = g_bus_get_sync (G_BUS_TYPE_SESSION, NULL, &_inner_error_);
                     _tmp3_ = _tmp2_;
                     if (_inner_error_ != NULL) {
                            if (_inner_error_->domain == G_IO_ERROR) {
                                   goto __catch35_g_io_error;
                            }
                            block10_data_unref (_data10_);
                            _data10_ = NULL;
                            g_critical ("file %s: line %d: unexpected error: %s (%s, %d)", __FILE__, __LINE__, _inner_error_->message, g_quark_to_string (_inner_error_->domain), _inner_error_->code);
                            g_clear_error (&_inner_error_);
                            return;
                     }
                     _g_object_unref0 (self->priv->dbus_connection);
                     self->priv->dbus_connection = _tmp3_;
              }
              goto __finally35;
              __catch35_g_io_error:
              {
                     GError* e = NULL;
                     e = _inner_error_;
                     _inner_error_ = NULL;
                     g_critical ("unity-sound-menu-mpris.vala:83: unity-sound-menu-mpris-MPRISGateway: C" \
"annot connect to the session bus.");
                     _g_error_free0 (e);
              }
              __finally35:
              if (_inner_error_ != NULL) {
                     block10_data_unref (_data10_);
                     _data10_ = NULL;
                     g_critical ("file %s: line %d: uncaught error: %s (%s, %d)", __FILE__, __LINE__, _inner_error_->message, g_quark_to_string (_inner_error_->domain), _inner_error_->code);
                     g_clear_error (&_inner_error_);
                     return;
              }
       }
       _tmp4_ = self->priv->prop_manager;
       if (_tmp4_ == NULL) {
              GDBusConnection* _tmp5_;
              UnityPropertyUpdateManager* _tmp6_;
              _tmp5_ = self->priv->dbus_connection;
              _tmp6_ = unity_property_update_manager_new (_tmp5_);
              _g_object_unref0 (self->priv->prop_manager);
              self->priv->prop_manager = _tmp6_;
       }
       _tmp7_ = self->priv->mpris_root_interface;
       if (_tmp7_ == NULL) {
              UnityMusicPlayer* _tmp8_;
              UnityPropertyUpdateManager* _tmp9_;
              UnityMprisRoot* _tmp10_;
              _tmp8_ = self->priv->_consumer;
              _tmp9_ = self->priv->prop_manager;
              _tmp10_ = unity_mpris_root_new (_tmp8_, _tmp9_);
              _g_object_unref0 (self->priv->mpris_root_interface);
              self->priv->mpris_root_interface = _tmp10_;
       }
       _tmp11_ = self->priv->mpris_player_interface;
       if (_tmp11_ == NULL) {
              UnityMusicPlayer* _tmp12_;
              UnityPropertyUpdateManager* _tmp13_;
              UnityMprisPlayer* _tmp14_;
              _tmp12_ = self->priv->_consumer;
              _tmp13_ = self->priv->prop_manager;
              _tmp14_ = unity_mpris_player_new (_tmp12_, _tmp13_);
              _g_object_unref0 (self->priv->mpris_player_interface);
              self->priv->mpris_player_interface = _tmp14_;
       }
       _tmp15_ = self->priv->mpris_playlist_interface;
       if (_tmp15_ == NULL) {
              UnityMusicPlayer* _tmp16_;
              UnityPropertyUpdateManager* _tmp17_;
              UnityMprisPlaylists* _tmp18_;
              _tmp16_ = self->priv->_consumer;
              _tmp17_ = self->priv->prop_manager;
              _tmp18_ = unity_mpris_playlists_new (_tmp16_, _tmp17_, self);
              _g_object_unref0 (self->priv->mpris_playlist_interface);
              self->priv->mpris_playlist_interface = _tmp18_;
       }
       {
              GDBusConnection* _tmp19_;
              UnityMprisRoot* _tmp20_;
              guint _tmp21_ = 0U;
              guint _tmp22_;
              GDBusConnection* _tmp23_;
              UnityMprisPlayer* _tmp24_;
              guint _tmp25_ = 0U;
              guint _tmp26_;
              _tmp19_ = self->priv->dbus_connection;
              _tmp20_ = self->priv->mpris_root_interface;
              _tmp21_ = unity_mpris_root_register_object (_tmp20_, _tmp19_, UNITY_MPRIS_INTERFACE_ROOT_PATH, &_inner_error_);
              _tmp22_ = _tmp21_;
              if (_inner_error_ != NULL) {
                     if (_inner_error_->domain == G_IO_ERROR) {
                            goto __catch36_g_io_error;
                     }
                     block10_data_unref (_data10_);
                     _data10_ = NULL;
                     g_critical ("file %s: line %d: unexpected error: %s (%s, %d)", __FILE__, __LINE__, _inner_error_->message, g_quark_to_string (_inner_error_->domain), _inner_error_->code);
                     g_clear_error (&_inner_error_);
                     return;
              }
              self->priv->bus_root_iface_handle = _tmp22_;
              _tmp23_ = self->priv->dbus_connection;
              _tmp24_ = self->priv->mpris_player_interface;
              _tmp25_ = unity_mpris_player_register_object (_tmp24_, _tmp23_, UNITY_MPRIS_INTERFACE_ROOT_PATH, &_inner_error_);
              _tmp26_ = _tmp25_;
              if (_inner_error_ != NULL) {
                     if (_inner_error_->domain == G_IO_ERROR) {
                            goto __catch36_g_io_error;
                     }
                     block10_data_unref (_data10_);
                     _data10_ = NULL;
                     g_critical ("file %s: line %d: unexpected error: %s (%s, %d)", __FILE__, __LINE__, _inner_error_->message, g_quark_to_string (_inner_error_->domain), _inner_error_->code);
                     g_clear_error (&_inner_error_);
                     return;
              }
              self->priv->bus_root_iface_handle = _tmp26_;
       }
       goto __finally36;
       __catch36_g_io_error:
       {
              GError* e = NULL;
              UnityMusicPlayer* _tmp27_;
              GAppInfo* _tmp28_;
              GAppInfo* _tmp29_;
              const gchar* _tmp30_ = NULL;
              GError* _tmp31_;
              const gchar* _tmp32_;
              e = _inner_error_;
              _inner_error_ = NULL;
              _tmp27_ = self->priv->_consumer;
              _tmp28_ = unity_music_player_get_app_info (_tmp27_);
              _tmp29_ = _tmp28_;
              _tmp30_ = g_app_info_get_name (_tmp29_);
              _tmp31_ = e;
              _tmp32_ = _tmp31_->message;
              g_critical ("unity-sound-menu-mpris.vala:107: Could not register root or player int" \
"erface for '%s': %s", _tmp30_, _tmp32_);
              _g_error_free0 (e);
       }
       __finally36:
       if (_inner_error_ != NULL) {
              block10_data_unref (_data10_);
              _data10_ = NULL;
              g_critical ("file %s: line %d: uncaught error: %s (%s, %d)", __FILE__, __LINE__, _inner_error_->message, g_quark_to_string (_inner_error_->domain), _inner_error_->code);
              g_clear_error (&_inner_error_);
              return;
       }
       _tmp33_ = self->priv->_consumer;
       _tmp34_ = unity_music_player_get_app_info (_tmp33_);
       _tmp35_ = _tmp34_;
       _tmp36_ = g_app_info_get_name (_tmp35_);
       _tmp37_ = g_utf8_strdown (_tmp36_, (gssize) (-1));
       mpris_extension = _tmp37_;
       _tmp38_ = mpris_extension;
       _tmp39_ = g_strconcat (UNITY_MPRIS_INTERFACE_PREFIX, _tmp38_, NULL);
       _data10_->dbus_name = _tmp39_;
       _tmp40_ = _data10_->dbus_name;
       _tmp41_ = g_bus_own_name_with_closures (G_BUS_TYPE_SESSION, _tmp40_, G_BUS_NAME_OWNER_FLAGS_NONE, (GClosure*) ((NULL == NULL) ? NULL : g_cclosure_new ((GCallback) NULL, NULL, NULL)), (GClosure*) ((___lambda26__gbus_name_acquired_callback == NULL) ? NULL : g_cclosure_new ((GCallback) ___lambda26__gbus_name_acquired_callback, block10_data_ref (_data10_), block10_data_unref)), (GClosure*) ((_unity_mpris_gateway_on_name_lost_gbus_name_lost_callback == NULL) ? NULL : g_cclosure_new ((GCallback) _unity_mpris_gateway_on_name_lost_gbus_name_lost_callback, g_object_ref (self), g_object_unref)));
       self->priv->bus_name_owner_handle = _tmp41_;
       _g_free0 (mpris_extension);
       block10_data_unref (_data10_);
       _data10_ = NULL;
}

Here is the call graph for this function:

GType unity_mpris_gateway_get_type ( void  )

Definition at line 135 of file unity-sound-menu.c.

      {
       UNITY_MUSIC_PLAYER_DUMMY_PROPERTY,
       UNITY_MUSIC_PLAYER_APP_INFO,
       UNITY_MUSIC_PLAYER_DESKTOP_FILE_NAME,
       UNITY_MUSIC_PLAYER_IS_BLACKLISTED,
       UNITY_MUSIC_PLAYER_TITLE,
       UNITY_MUSIC_PLAYER_CAN_GO_NEXT,
       UNITY_MUSIC_PLAYER_CAN_GO_PREVIOUS,
       UNITY_MUSIC_PLAYER_CAN_PLAY,
       UNITY_MUSIC_PLAYER_CAN_PAUSE,
       UNITY_MUSIC_PLAYER_CURRENT_TRACK,
       UNITY_MUSIC_PLAYER_PLAYBACK_STATE,
       UNITY_MUSIC_PLAYER_CURRENT_PLAYLIST,
       UNITY_MUSIC_PLAYER_TRACK_MENU,
       UNITY_MUSIC_PLAYER_PLAYER_MENU
};

Here is the call graph for this function:

UnityMPRISGateway* unity_mpris_gateway_new ( UnityMusicPlayer *  client)

Definition at line 748 of file unity-sound-menu-mpris.c.

Here is the call graph for this function:

void unity_mpris_gateway_set_edited_playlist ( UnityMPRISGateway *  self,
UnityPlaylist *  value 
)

Definition at line 1121 of file unity-sound-menu-mpris.c.

                                                                                             {
       UnityPlaylist* _tmp0_;
       UnityPlaylist* _tmp1_;
       g_return_if_fail (self != NULL);
       _tmp0_ = value;
       _tmp1_ = _g_object_ref0 (_tmp0_);
       _g_object_unref0 (self->priv->_edited_playlist);
       self->priv->_edited_playlist = _tmp1_;
       g_object_notify ((GObject *) self, "edited-playlist");
}

Here is the call graph for this function:

void unity_mpris_gateway_set_playlist_count ( UnityMPRISGateway *  self,
gint  value 
)

Definition at line 1143 of file unity-sound-menu-mpris.c.

                                                                                  {
       gint _tmp0_;
       g_return_if_fail (self != NULL);
       _tmp0_ = value;
       self->priv->_playlist_count = _tmp0_;
       g_object_notify ((GObject *) self, "playlist-count");
}
void unity_mpris_gateway_unexport ( UnityMPRISGateway *  self)

Definition at line 991 of file unity-sound-menu-mpris.c.

                                                            {
       guint _tmp0_;
       guint _tmp1_;
       GDBusConnection* _tmp2_;
       guint _tmp3_;
       GDBusConnection* _tmp4_;
       guint _tmp5_;
       g_return_if_fail (self != NULL);
       _tmp0_ = self->priv->bus_name_owner_handle;
       if (_tmp0_ == ((guint) 0)) {
              g_critical ("unity-sound-menu-mpris.vala:126: Can not unexport MPRISGateway@%p. It " \
"is not exported", self);
              return;
       }
       _tmp1_ = self->priv->bus_name_owner_handle;
       g_bus_unown_name (_tmp1_);
       self->priv->bus_name_owner_handle = (guint) 0;
       _tmp2_ = self->priv->dbus_connection;
       _tmp3_ = self->priv->bus_root_iface_handle;
       g_dbus_connection_unregister_object (_tmp2_, _tmp3_);
       self->priv->bus_root_iface_handle = (guint) 0;
       _tmp4_ = self->priv->dbus_connection;
       _tmp5_ = self->priv->bus_player_iface_handle;
       g_dbus_connection_unregister_object (_tmp4_, _tmp5_);
       self->priv->bus_player_iface_handle = (guint) 0;
}
gboolean unity_music_player_add_playlist ( UnityMusicPlayer *  self,
UnityPlaylist *  p 
)

Definition at line 873 of file unity-sound-menu.c.

                                                                                    {
       gboolean result = FALSE;
       UnityMPRISGateway* _tmp0_;
       GeeArrayList* _tmp1_;
       UnityPlaylist* _tmp2_;
       gboolean _tmp3_ = FALSE;
       gboolean _result_;
       UnityMPRISGateway* _tmp4_;
       GeeArrayList* _tmp5_;
       gint _tmp6_;
       gint _tmp7_;
       g_return_val_if_fail (self != NULL, FALSE);
       g_return_val_if_fail (p != NULL, FALSE);
       _tmp0_ = self->priv->mpris_gateway;
       unity_mpris_gateway_ensure_playlist_interface_is_raised (_tmp0_);
       _tmp1_ = self->priv->internal_playlists;
       _tmp2_ = p;
       _tmp3_ = gee_abstract_collection_add ((GeeAbstractCollection*) _tmp1_, _tmp2_);
       _result_ = _tmp3_;
       _tmp4_ = self->priv->mpris_gateway;
       _tmp5_ = self->priv->internal_playlists;
       _tmp6_ = gee_abstract_collection_get_size ((GeeCollection*) _tmp5_);
       _tmp7_ = _tmp6_;
       unity_mpris_gateway_set_playlist_count (_tmp4_, _tmp7_);
       result = _result_;
       return result;
}

Here is the call graph for this function:

Here is the caller graph for this function:

static void unity_music_player_class_init ( UnityMusicPlayerClass *  klass) [static]

Definition at line 1358 of file unity-sound-menu.c.

                                                                          {
       unity_music_player_parent_class = g_type_class_peek_parent (klass);
       g_type_class_add_private (klass, sizeof (UnityMusicPlayerPrivate));
       G_OBJECT_CLASS (klass)->get_property = _vala_unity_music_player_get_property;
       G_OBJECT_CLASS (klass)->set_property = _vala_unity_music_player_set_property;
       G_OBJECT_CLASS (klass)->constructor = unity_music_player_constructor;
       G_OBJECT_CLASS (klass)->finalize = unity_music_player_finalize;
       g_object_class_install_property (G_OBJECT_CLASS (klass), UNITY_MUSIC_PLAYER_APP_INFO, g_param_spec_object ("app-info", "app-info", "app-info", g_app_info_get_type (), G_PARAM_STATIC_NAME | G_PARAM_STATIC_NICK | G_PARAM_STATIC_BLURB | G_PARAM_READABLE | G_PARAM_WRITABLE | G_PARAM_CONSTRUCT_ONLY));
       g_object_class_install_property (G_OBJECT_CLASS (klass), UNITY_MUSIC_PLAYER_DESKTOP_FILE_NAME, g_param_spec_string ("desktop-file-name", "desktop-file-name", "desktop-file-name", NULL, G_PARAM_STATIC_NAME | G_PARAM_STATIC_NICK | G_PARAM_STATIC_BLURB | G_PARAM_READABLE | G_PARAM_WRITABLE | G_PARAM_CONSTRUCT_ONLY));
       g_object_class_install_property (G_OBJECT_CLASS (klass), UNITY_MUSIC_PLAYER_IS_BLACKLISTED, g_param_spec_boolean ("is-blacklisted", "is-blacklisted", "is-blacklisted", FALSE, G_PARAM_STATIC_NAME | G_PARAM_STATIC_NICK | G_PARAM_STATIC_BLURB | G_PARAM_READABLE | G_PARAM_WRITABLE));
       g_object_class_install_property (G_OBJECT_CLASS (klass), UNITY_MUSIC_PLAYER_TITLE, g_param_spec_string ("title", "title", "title", NULL, G_PARAM_STATIC_NAME | G_PARAM_STATIC_NICK | G_PARAM_STATIC_BLURB | G_PARAM_READABLE | G_PARAM_WRITABLE));
       g_object_class_install_property (G_OBJECT_CLASS (klass), UNITY_MUSIC_PLAYER_CAN_GO_NEXT, g_param_spec_boolean ("can-go-next", "can-go-next", "can-go-next", FALSE, G_PARAM_STATIC_NAME | G_PARAM_STATIC_NICK | G_PARAM_STATIC_BLURB | G_PARAM_READABLE | G_PARAM_WRITABLE));
       g_object_class_install_property (G_OBJECT_CLASS (klass), UNITY_MUSIC_PLAYER_CAN_GO_PREVIOUS, g_param_spec_boolean ("can-go-previous", "can-go-previous", "can-go-previous", FALSE, G_PARAM_STATIC_NAME | G_PARAM_STATIC_NICK | G_PARAM_STATIC_BLURB | G_PARAM_READABLE | G_PARAM_WRITABLE));
       g_object_class_install_property (G_OBJECT_CLASS (klass), UNITY_MUSIC_PLAYER_CAN_PLAY, g_param_spec_boolean ("can-play", "can-play", "can-play", FALSE, G_PARAM_STATIC_NAME | G_PARAM_STATIC_NICK | G_PARAM_STATIC_BLURB | G_PARAM_READABLE | G_PARAM_WRITABLE));
       g_object_class_install_property (G_OBJECT_CLASS (klass), UNITY_MUSIC_PLAYER_CAN_PAUSE, g_param_spec_boolean ("can-pause", "can-pause", "can-pause", FALSE, G_PARAM_STATIC_NAME | G_PARAM_STATIC_NICK | G_PARAM_STATIC_BLURB | G_PARAM_READABLE | G_PARAM_WRITABLE));
       g_object_class_install_property (G_OBJECT_CLASS (klass), UNITY_MUSIC_PLAYER_CURRENT_TRACK, g_param_spec_object ("current-track", "current-track", "current-track", UNITY_TYPE_TRACK_METADATA, G_PARAM_STATIC_NAME | G_PARAM_STATIC_NICK | G_PARAM_STATIC_BLURB | G_PARAM_READABLE | G_PARAM_WRITABLE));
       g_object_class_install_property (G_OBJECT_CLASS (klass), UNITY_MUSIC_PLAYER_PLAYBACK_STATE, g_param_spec_enum ("playback-state", "playback-state", "playback-state", UNITY_TYPE_PLAYBACK_STATE, 0, G_PARAM_STATIC_NAME | G_PARAM_STATIC_NICK | G_PARAM_STATIC_BLURB | G_PARAM_READABLE | G_PARAM_WRITABLE));
       g_object_class_install_property (G_OBJECT_CLASS (klass), UNITY_MUSIC_PLAYER_CURRENT_PLAYLIST, g_param_spec_object ("current-playlist", "current-playlist", "current-playlist", UNITY_TYPE_PLAYLIST, G_PARAM_STATIC_NAME | G_PARAM_STATIC_NICK | G_PARAM_STATIC_BLURB | G_PARAM_READABLE | G_PARAM_WRITABLE));
       g_object_class_install_property (G_OBJECT_CLASS (klass), UNITY_MUSIC_PLAYER_TRACK_MENU, g_param_spec_object ("track-menu", "track-menu", "track-menu", dbusmenu_menuitem_get_type (), G_PARAM_STATIC_NAME | G_PARAM_STATIC_NICK | G_PARAM_STATIC_BLURB | G_PARAM_READABLE | G_PARAM_WRITABLE));
       g_object_class_install_property (G_OBJECT_CLASS (klass), UNITY_MUSIC_PLAYER_PLAYER_MENU, g_param_spec_object ("player-menu", "player-menu", "player-menu", dbusmenu_menuitem_get_type (), G_PARAM_STATIC_NAME | G_PARAM_STATIC_NICK | G_PARAM_STATIC_BLURB | G_PARAM_READABLE | G_PARAM_WRITABLE));
       g_signal_new ("raise", UNITY_TYPE_MUSIC_PLAYER, G_SIGNAL_RUN_LAST, 0, NULL, NULL, g_cclosure_marshal_VOID__VOID, G_TYPE_NONE, 0);
       g_signal_new ("play_pause", UNITY_TYPE_MUSIC_PLAYER, G_SIGNAL_RUN_LAST, 0, NULL, NULL, g_cclosure_marshal_VOID__VOID, G_TYPE_NONE, 0);
       g_signal_new ("previous", UNITY_TYPE_MUSIC_PLAYER, G_SIGNAL_RUN_LAST, 0, NULL, NULL, g_cclosure_marshal_VOID__VOID, G_TYPE_NONE, 0);
       g_signal_new ("next", UNITY_TYPE_MUSIC_PLAYER, G_SIGNAL_RUN_LAST, 0, NULL, NULL, g_cclosure_marshal_VOID__VOID, G_TYPE_NONE, 0);
       g_signal_new ("activate_playlist", UNITY_TYPE_MUSIC_PLAYER, G_SIGNAL_RUN_LAST, 0, NULL, NULL, g_cclosure_marshal_VOID__STRING, G_TYPE_NONE, 1, G_TYPE_STRING);
}

Here is the call graph for this function:

Here is the caller graph for this function:

UnityMusicPlayer* unity_music_player_construct ( GType  object_type,
const gchar *  desktop 
)

Definition at line 796 of file unity-sound-menu.c.

                                                                                         {
       UnityMusicPlayer * self = NULL;
       const gchar* _tmp0_;
       GeeArrayList* _tmp1_;
       g_return_val_if_fail (desktop != NULL, NULL);
       _tmp0_ = desktop;
       self = (UnityMusicPlayer*) g_object_new (object_type, "desktop-file-name", _tmp0_, NULL);
       _tmp1_ = gee_array_list_new (UNITY_TYPE_PLAYLIST, (GBoxedCopyFunc) g_object_ref, g_object_unref, NULL);
       _g_object_unref0 (self->priv->internal_playlists);
       self->priv->internal_playlists = _tmp1_;
       return self;
}

Here is the caller graph for this function:

static GObject * unity_music_player_constructor ( GType  type,
guint  n_construct_properties,
GObjectConstructParam *  construct_properties 
) [static]

Definition at line 1286 of file unity-sound-menu.c.

                                                                                                                                         {
       GObject * obj;
       GObjectClass * parent_class;
       UnityMusicPlayer * self;
       const gchar* _tmp0_;
       GAppInfo* _tmp1_ = NULL;
       GAppInfo* a_info;
       GAppInfo* _tmp2_;
       GAppInfo* _tmp3_;
       GAppInfo* _tmp4_;
       const gchar* _tmp5_ = NULL;
       GAppInfo* _tmp11_;
       const gchar* _tmp12_ = NULL;
       GError * _inner_error_ = NULL;
       parent_class = G_OBJECT_CLASS (unity_music_player_parent_class);
       obj = parent_class->constructor (type, n_construct_properties, construct_properties);
       self = G_TYPE_CHECK_INSTANCE_CAST (obj, UNITY_TYPE_MUSIC_PLAYER, UnityMusicPlayer);
       _tmp0_ = self->priv->_desktop_file_name;
       _tmp1_ = unity_music_player_create_app_info (_tmp0_);
       a_info = _tmp1_;
       _tmp2_ = a_info;
       if (_tmp2_ == NULL) {
              g_critical ("unity-sound-menu.vala:120: Cannot locate the Desktop file ");
              _g_object_unref0 (a_info);
              return obj;
       }
       _tmp3_ = a_info;
       unity_music_player_set_app_info (self, _tmp3_);
       _tmp4_ = self->priv->_app_info;
       _tmp5_ = g_app_info_get_name (_tmp4_);
       unity_music_player_set_title (self, _tmp5_);
       {
              UnityMPRISGateway* _tmp6_;
              _tmp6_ = unity_mpris_gateway_new (self);
              _g_object_unref0 (self->priv->mpris_gateway);
              self->priv->mpris_gateway = _tmp6_;
       }
       goto __finally34;
       __catch34_g_io_error:
       {
              GError* e = NULL;
              GAppInfo* _tmp7_;
              const gchar* _tmp8_ = NULL;
              GError* _tmp9_;
              const gchar* _tmp10_;
              e = _inner_error_;
              _inner_error_ = NULL;
              _tmp7_ = self->priv->_app_info;
              _tmp8_ = g_app_info_get_name (_tmp7_);
              _tmp9_ = e;
              _tmp10_ = _tmp9_->message;
              g_critical ("unity-sound-menu.vala:129: Could not create the MPRISGateway for '%s':" \
" %s", _tmp8_, _tmp10_);
              _g_error_free0 (e);
              _g_object_unref0 (a_info);
              return obj;
       }
       __finally34:
       if (_inner_error_ != NULL) {
              _g_object_unref0 (a_info);
              g_critical ("file %s: line %d: uncaught error: %s (%s, %d)", __FILE__, __LINE__, _inner_error_->message, g_quark_to_string (_inner_error_->domain), _inner_error_->code);
              g_clear_error (&_inner_error_);
       }
       _tmp11_ = self->priv->_app_info;
       _tmp12_ = g_app_info_get_name (_tmp11_);
       unity_music_player_set_title (self, _tmp12_);
       unity_music_player_set_playback_state (self, UNITY_PLAYBACK_STATE_PAUSED);
       _g_object_unref0 (a_info);
       return obj;
}

Here is the call graph for this function:

Here is the caller graph for this function:

static GAppInfo * unity_music_player_create_app_info ( const gchar *  desktop) [static]

Definition at line 831 of file unity-sound-menu.c.

                                                                           {
       GAppInfo* result = NULL;
       const gchar* _tmp0_;
       GDesktopAppInfo* _tmp1_;
       GDesktopAppInfo* info;
       gboolean _tmp2_ = FALSE;
       const gchar* _tmp3_;
       gboolean _tmp5_;
       GDesktopAppInfo* _tmp7_;
       GAppInfo* _tmp8_;
       GAppInfo* app_info;
       g_return_val_if_fail (desktop != NULL, NULL);
       _tmp0_ = desktop;
       _tmp1_ = g_desktop_app_info_new (_tmp0_);
       info = _tmp1_;
       _tmp3_ = desktop;
       if (_tmp3_ == NULL) {
              _tmp2_ = TRUE;
       } else {
              GDesktopAppInfo* _tmp4_;
              _tmp4_ = info;
              _tmp2_ = _tmp4_ == NULL;
       }
       _tmp5_ = _tmp2_;
       if (_tmp5_) {
              const gchar* _tmp6_;
              _tmp6_ = desktop;
              g_warning ("unity-sound-menu.vala:149: Could not create a desktopappinfo instance " \
"from app: %s", _tmp6_);
              result = NULL;
              _g_object_unref0 (info);
              return result;
       }
       _tmp7_ = info;
       _tmp8_ = _g_object_ref0 (G_TYPE_CHECK_INSTANCE_TYPE (_tmp7_, g_app_info_get_type ()) ? ((GAppInfo*) _tmp7_) : NULL);
       app_info = _tmp8_;
       result = app_info;
       _g_object_unref0 (info);
       return result;
}

Here is the call graph for this function:

Here is the caller graph for this function:

void unity_music_player_edit_playlist_name ( UnityMusicPlayer *  self,
const gchar *  id,
const gchar *  name 
)

Definition at line 948 of file unity-sound-menu.c.

                                                                                                        {
       g_return_if_fail (self != NULL);
       g_return_if_fail (id != NULL);
       g_return_if_fail (name != NULL);
       {
              GeeArrayList* _tmp0_;
              GeeArrayList* _tmp1_;
              GeeArrayList* _pl_list;
              GeeArrayList* _tmp2_;
              gint _tmp3_;
              gint _tmp4_;
              gint _pl_size;
              gint _pl_index;
              _tmp0_ = self->priv->internal_playlists;
              _tmp1_ = _g_object_ref0 (_tmp0_);
              _pl_list = _tmp1_;
              _tmp2_ = _pl_list;
              _tmp3_ = gee_abstract_collection_get_size ((GeeCollection*) _tmp2_);
              _tmp4_ = _tmp3_;
              _pl_size = _tmp4_;
              _pl_index = -1;
              while (TRUE) {
                     gint _tmp5_;
                     gint _tmp6_;
                     gint _tmp7_;
                     GeeArrayList* _tmp8_;
                     gint _tmp9_;
                     gpointer _tmp10_ = NULL;
                     UnityPlaylist* pl;
                     UnityPlaylist* _tmp11_;
                     const gchar* _tmp12_;
                     const gchar* _tmp13_;
                     const gchar* _tmp14_;
                     _tmp5_ = _pl_index;
                     _pl_index = _tmp5_ + 1;
                     _tmp6_ = _pl_index;
                     _tmp7_ = _pl_size;
                     if (!(_tmp6_ < _tmp7_)) {
                            break;
                     }
                     _tmp8_ = _pl_list;
                     _tmp9_ = _pl_index;
                     _tmp10_ = gee_abstract_list_get ((GeeAbstractList*) _tmp8_, _tmp9_);
                     pl = (UnityPlaylist*) _tmp10_;
                     _tmp11_ = pl;
                     _tmp12_ = unity_playlist_get_id (_tmp11_);
                     _tmp13_ = _tmp12_;
                     _tmp14_ = id;
                     if (g_strcmp0 (_tmp13_, _tmp14_) == 0) {
                            UnityPlaylist* _tmp15_;
                            const gchar* _tmp16_;
                            UnityMPRISGateway* _tmp17_;
                            UnityPlaylist* _tmp18_;
                            _tmp15_ = pl;
                            _tmp16_ = name;
                            unity_playlist_set_name (_tmp15_, _tmp16_);
                            _tmp17_ = self->priv->mpris_gateway;
                            _tmp18_ = pl;
                            unity_mpris_gateway_set_edited_playlist (_tmp17_, _tmp18_);
                            _g_object_unref0 (pl);
                            _g_object_unref0 (_pl_list);
                            return;
                     }
                     _g_object_unref0 (pl);
              }
              _g_object_unref0 (_pl_list);
       }
}

Here is the call graph for this function:

Here is the caller graph for this function:

void unity_music_player_export ( UnityMusicPlayer *  self)

Definition at line 815 of file unity-sound-menu.c.

                                                        {
       UnityMPRISGateway* _tmp0_;
       g_return_if_fail (self != NULL);
       _tmp0_ = self->priv->mpris_gateway;
       unity_mpris_gateway_export (_tmp0_);
}

Here is the call graph for this function:

Here is the caller graph for this function:

static void unity_music_player_finalize ( GObject *  obj) [static]

Definition at line 1391 of file unity-sound-menu.c.

                                                       {
       UnityMusicPlayer * self;
       self = G_TYPE_CHECK_INSTANCE_CAST (obj, UNITY_TYPE_MUSIC_PLAYER, UnityMusicPlayer);
       _g_object_unref0 (self->priv->mpris_gateway);
       _g_object_unref0 (self->priv->internal_playlists);
       _g_object_unref0 (self->priv->_app_info);
       _g_free0 (self->priv->_desktop_file_name);
       _g_free0 (self->priv->_title);
       _g_object_unref0 (self->priv->_current_track);
       _g_object_unref0 (self->priv->_current_playlist);
       _g_object_unref0 (self->priv->_track_menu);
       _g_object_unref0 (self->priv->_player_menu);
       G_OBJECT_CLASS (unity_music_player_parent_class)->finalize (obj);
}

Here is the caller graph for this function:

GAppInfo* unity_music_player_get_app_info ( UnityMusicPlayer *  self)

Definition at line 1018 of file unity-sound-menu.c.

                                                                   {
       GAppInfo* result;
       GAppInfo* _tmp0_;
       g_return_val_if_fail (self != NULL, NULL);
       _tmp0_ = self->priv->_app_info;
       result = _tmp0_;
       return result;
}

Here is the caller graph for this function:

gboolean unity_music_player_get_can_go_next ( UnityMusicPlayer *  self)

Definition at line 1103 of file unity-sound-menu.c.

                                                                     {
       gboolean result;
       gboolean _tmp0_;
       g_return_val_if_fail (self != NULL, FALSE);
       _tmp0_ = self->priv->_can_go_next;
       result = _tmp0_;
       return result;
}

Here is the caller graph for this function:

gboolean unity_music_player_get_can_go_previous ( UnityMusicPlayer *  self)

Definition at line 1122 of file unity-sound-menu.c.

                                                                         {
       gboolean result;
       gboolean _tmp0_;
       g_return_val_if_fail (self != NULL, FALSE);
       _tmp0_ = self->priv->_can_go_previous;
       result = _tmp0_;
       return result;
}

Here is the caller graph for this function:

gboolean unity_music_player_get_can_pause ( UnityMusicPlayer *  self)

Definition at line 1160 of file unity-sound-menu.c.

                                                                   {
       gboolean result;
       gboolean _tmp0_;
       g_return_val_if_fail (self != NULL, FALSE);
       _tmp0_ = self->priv->_can_pause;
       result = _tmp0_;
       return result;
}

Here is the caller graph for this function:

gboolean unity_music_player_get_can_play ( UnityMusicPlayer *  self)

Definition at line 1141 of file unity-sound-menu.c.

                                                                  {
       gboolean result;
       gboolean _tmp0_;
       g_return_val_if_fail (self != NULL, FALSE);
       _tmp0_ = self->priv->_can_play;
       result = _tmp0_;
       return result;
}

Here is the caller graph for this function:

UnityPlaylist* unity_music_player_get_current_playlist ( UnityMusicPlayer *  self)

Definition at line 1220 of file unity-sound-menu.c.

                                                                                {
       UnityPlaylist* result;
       UnityPlaylist* _tmp0_;
       g_return_val_if_fail (self != NULL, NULL);
       _tmp0_ = self->priv->_current_playlist;
       result = _tmp0_;
       return result;
}

Here is the caller graph for this function:

UnityTrackMetadata* unity_music_player_get_current_track ( UnityMusicPlayer *  self)

Definition at line 1179 of file unity-sound-menu.c.

                                                                                  {
       UnityTrackMetadata* result;
       UnityTrackMetadata* _tmp0_;
       g_return_val_if_fail (self != NULL, NULL);
       _tmp0_ = self->priv->_current_track;
       result = _tmp0_;
       return result;
}

Here is the caller graph for this function:

const gchar* unity_music_player_get_desktop_file_name ( UnityMusicPlayer *  self)

Definition at line 1040 of file unity-sound-menu.c.

                                                                               {
       const gchar* result;
       const gchar* _tmp0_;
       g_return_val_if_fail (self != NULL, NULL);
       _tmp0_ = self->priv->_desktop_file_name;
       result = _tmp0_;
       return result;
}

Here is the caller graph for this function:

gboolean unity_music_player_get_is_blacklisted ( UnityMusicPlayer *  self)

Definition at line 1062 of file unity-sound-menu.c.

                                                                        {
       gboolean result;
       gboolean _tmp0_;
       g_return_val_if_fail (self != NULL, FALSE);
       _tmp0_ = self->priv->_is_blacklisted;
       result = _tmp0_;
       return result;
}

Here is the caller graph for this function:

Definition at line 1201 of file unity-sound-menu.c.

                                                                                  {
       UnityPlaybackState result;
       UnityPlaybackState _tmp0_;
       g_return_val_if_fail (self != NULL, 0);
       _tmp0_ = self->priv->_playback_state;
       result = _tmp0_;
       return result;
}

Here is the caller graph for this function:

DbusmenuMenuitem* unity_music_player_get_player_menu ( UnityMusicPlayer *  self)

Definition at line 1264 of file unity-sound-menu.c.

                                                                              {
       DbusmenuMenuitem* result;
       DbusmenuMenuitem* _tmp0_;
       g_return_val_if_fail (self != NULL, NULL);
       _tmp0_ = self->priv->_player_menu;
       result = _tmp0_;
       return result;
}

Here is the caller graph for this function:

UnityPlaylist** unity_music_player_get_playlists ( UnityMusicPlayer *  self,
int *  result_length1 
)

Definition at line 928 of file unity-sound-menu.c.

                                                                                               {
       UnityPlaylist** result = NULL;
       GeeArrayList* _tmp0_;
       gint _tmp1_ = 0;
       gpointer* _tmp2_ = NULL;
       UnityPlaylist** _tmp3_;
       gint _tmp3__length1;
       g_return_val_if_fail (self != NULL, NULL);
       _tmp0_ = self->priv->internal_playlists;
       _tmp2_ = gee_abstract_collection_to_array ((GeeAbstractCollection*) _tmp0_, &_tmp1_);
       _tmp3_ = _tmp2_;
       _tmp3__length1 = _tmp1_;
       if (result_length1) {
              *result_length1 = _tmp3__length1;
       }
       result = _tmp3_;
       return result;
}

Here is the caller graph for this function:

const gchar* unity_music_player_get_title ( UnityMusicPlayer *  self)

Definition at line 1081 of file unity-sound-menu.c.

                                                                   {
       const gchar* result;
       const gchar* _tmp0_;
       g_return_val_if_fail (self != NULL, NULL);
       _tmp0_ = self->priv->_title;
       result = _tmp0_;
       return result;
}

Here is the caller graph for this function:

DbusmenuMenuitem* unity_music_player_get_track_menu ( UnityMusicPlayer *  self)

Definition at line 1242 of file unity-sound-menu.c.

                                                                             {
       DbusmenuMenuitem* result;
       DbusmenuMenuitem* _tmp0_;
       g_return_val_if_fail (self != NULL, NULL);
       _tmp0_ = self->priv->_track_menu;
       result = _tmp0_;
       return result;
}

Here is the caller graph for this function:

GType unity_music_player_get_type ( void  )

Definition at line 1407 of file unity-sound-menu.c.

                                         {
       static volatile gsize unity_music_player_type_id__volatile = 0;
       if (g_once_init_enter (&unity_music_player_type_id__volatile)) {
              static const GTypeInfo g_define_type_info = { sizeof (UnityMusicPlayerClass), (GBaseInitFunc) NULL, (GBaseFinalizeFunc) NULL, (GClassInitFunc) unity_music_player_class_init, (GClassFinalizeFunc) NULL, NULL, sizeof (UnityMusicPlayer), 0, (GInstanceInitFunc) unity_music_player_instance_init, NULL };
              GType unity_music_player_type_id;
              unity_music_player_type_id = g_type_register_static (G_TYPE_OBJECT, "UnityMusicPlayer", &g_define_type_info, 0);
              g_once_init_leave (&unity_music_player_type_id__volatile, unity_music_player_type_id);
       }
       return unity_music_player_type_id__volatile;
}

Here is the call graph for this function:

static void unity_music_player_instance_init ( UnityMusicPlayer *  self) [static]

Definition at line 1386 of file unity-sound-menu.c.

                                                                       {
       self->priv = UNITY_MUSIC_PLAYER_GET_PRIVATE (self);
}

Here is the caller graph for this function:

UnityMusicPlayer* unity_music_player_new ( const gchar *  desktop)

Definition at line 810 of file unity-sound-menu.c.

Here is the call graph for this function:

Here is the caller graph for this function:

gboolean unity_music_player_remove_playlist ( UnityMusicPlayer *  self,
UnityPlaylist *  p 
)

Definition at line 902 of file unity-sound-menu.c.

                                                                                       {
       gboolean result = FALSE;
       GeeArrayList* _tmp0_;
       UnityPlaylist* _tmp1_;
       gboolean _tmp2_ = FALSE;
       gboolean _result_;
       UnityMPRISGateway* _tmp3_;
       GeeArrayList* _tmp4_;
       gint _tmp5_;
       gint _tmp6_;
       g_return_val_if_fail (self != NULL, FALSE);
       g_return_val_if_fail (p != NULL, FALSE);
       _tmp0_ = self->priv->internal_playlists;
       _tmp1_ = p;
       _tmp2_ = gee_abstract_collection_remove ((GeeAbstractCollection*) _tmp0_, _tmp1_);
       _result_ = _tmp2_;
       _tmp3_ = self->priv->mpris_gateway;
       _tmp4_ = self->priv->internal_playlists;
       _tmp5_ = gee_abstract_collection_get_size ((GeeCollection*) _tmp4_);
       _tmp6_ = _tmp5_;
       unity_mpris_gateway_set_playlist_count (_tmp3_, _tmp6_);
       result = _result_;
       return result;
}

Here is the call graph for this function:

static void unity_music_player_set_app_info ( UnityMusicPlayer *  self,
GAppInfo *  value 
) [static]

Definition at line 1028 of file unity-sound-menu.c.

                                                                                      {
       GAppInfo* _tmp0_;
       GAppInfo* _tmp1_;
       g_return_if_fail (self != NULL);
       _tmp0_ = value;
       _tmp1_ = _g_object_ref0 (_tmp0_);
       _g_object_unref0 (self->priv->_app_info);
       self->priv->_app_info = _tmp1_;
       g_object_notify ((GObject *) self, "app-info");
}

Here is the call graph for this function:

Here is the caller graph for this function:

void unity_music_player_set_can_go_next ( UnityMusicPlayer *  self,
gboolean  value 
)

Definition at line 1113 of file unity-sound-menu.c.

                                                                                 {
       gboolean _tmp0_;
       g_return_if_fail (self != NULL);
       _tmp0_ = value;
       self->priv->_can_go_next = _tmp0_;
       g_object_notify ((GObject *) self, "can-go-next");
}

Here is the caller graph for this function:

void unity_music_player_set_can_go_previous ( UnityMusicPlayer *  self,
gboolean  value 
)

Definition at line 1132 of file unity-sound-menu.c.

                                                                                     {
       gboolean _tmp0_;
       g_return_if_fail (self != NULL);
       _tmp0_ = value;
       self->priv->_can_go_previous = _tmp0_;
       g_object_notify ((GObject *) self, "can-go-previous");
}

Here is the caller graph for this function:

void unity_music_player_set_can_pause ( UnityMusicPlayer *  self,
gboolean  value 
)

Definition at line 1170 of file unity-sound-menu.c.

                                                                               {
       gboolean _tmp0_;
       g_return_if_fail (self != NULL);
       _tmp0_ = value;
       self->priv->_can_pause = _tmp0_;
       g_object_notify ((GObject *) self, "can-pause");
}

Here is the caller graph for this function:

void unity_music_player_set_can_play ( UnityMusicPlayer *  self,
gboolean  value 
)

Definition at line 1151 of file unity-sound-menu.c.

                                                                              {
       gboolean _tmp0_;
       g_return_if_fail (self != NULL);
       _tmp0_ = value;
       self->priv->_can_play = _tmp0_;
       g_object_notify ((GObject *) self, "can-play");
}

Here is the caller graph for this function:

void unity_music_player_set_current_playlist ( UnityMusicPlayer *  self,
UnityPlaylist *  value 
)

Definition at line 1230 of file unity-sound-menu.c.

                                                                                            {
       UnityPlaylist* _tmp0_;
       UnityPlaylist* _tmp1_;
       g_return_if_fail (self != NULL);
       _tmp0_ = value;
       _tmp1_ = _g_object_ref0 (_tmp0_);
       _g_object_unref0 (self->priv->_current_playlist);
       self->priv->_current_playlist = _tmp1_;
       g_object_notify ((GObject *) self, "current-playlist");
}

Here is the call graph for this function:

Here is the caller graph for this function:

void unity_music_player_set_current_track ( UnityMusicPlayer *  self,
UnityTrackMetadata *  value 
)

Definition at line 1189 of file unity-sound-menu.c.

                                                                                              {
       UnityTrackMetadata* _tmp0_;
       UnityTrackMetadata* _tmp1_;
       g_return_if_fail (self != NULL);
       _tmp0_ = value;
       _tmp1_ = _g_object_ref0 (_tmp0_);
       _g_object_unref0 (self->priv->_current_track);
       self->priv->_current_track = _tmp1_;
       g_object_notify ((GObject *) self, "current-track");
}

Here is the call graph for this function:

Here is the caller graph for this function:

static void unity_music_player_set_desktop_file_name ( UnityMusicPlayer *  self,
const gchar *  value 
) [static]

Definition at line 1050 of file unity-sound-menu.c.

                                                                                                  {
       const gchar* _tmp0_;
       gchar* _tmp1_;
       g_return_if_fail (self != NULL);
       _tmp0_ = value;
       _tmp1_ = g_strdup (_tmp0_);
       _g_free0 (self->priv->_desktop_file_name);
       self->priv->_desktop_file_name = _tmp1_;
       g_object_notify ((GObject *) self, "desktop-file-name");
}

Here is the caller graph for this function:

void unity_music_player_set_is_blacklisted ( UnityMusicPlayer *  self,
gboolean  value 
)

Definition at line 1072 of file unity-sound-menu.c.

                                                                                    {
       gboolean _tmp0_;
       g_return_if_fail (self != NULL);
       _tmp0_ = value;
       self->priv->_is_blacklisted = _tmp0_;
       g_object_notify ((GObject *) self, "is-blacklisted");
}

Here is the caller graph for this function:

void unity_music_player_set_playback_state ( UnityMusicPlayer *  self,
UnityPlaybackState  value 
)

Definition at line 1211 of file unity-sound-menu.c.

                                                                                              {
       UnityPlaybackState _tmp0_;
       g_return_if_fail (self != NULL);
       _tmp0_ = value;
       self->priv->_playback_state = _tmp0_;
       g_object_notify ((GObject *) self, "playback-state");
}

Here is the caller graph for this function:

void unity_music_player_set_player_menu ( UnityMusicPlayer *  self,
DbusmenuMenuitem *  value 
)

Definition at line 1274 of file unity-sound-menu.c.

                                                                                          {
       DbusmenuMenuitem* _tmp0_;
       DbusmenuMenuitem* _tmp1_;
       g_return_if_fail (self != NULL);
       _tmp0_ = value;
       _tmp1_ = _g_object_ref0 (_tmp0_);
       _g_object_unref0 (self->priv->_player_menu);
       self->priv->_player_menu = _tmp1_;
       g_object_notify ((GObject *) self, "player-menu");
}

Here is the call graph for this function:

Here is the caller graph for this function:

void unity_music_player_set_title ( UnityMusicPlayer *  self,
const gchar *  value 
)

Definition at line 1091 of file unity-sound-menu.c.

                                                                               {
       const gchar* _tmp0_;
       gchar* _tmp1_;
       g_return_if_fail (self != NULL);
       _tmp0_ = value;
       _tmp1_ = g_strdup (_tmp0_);
       _g_free0 (self->priv->_title);
       self->priv->_title = _tmp1_;
       g_object_notify ((GObject *) self, "title");
}

Here is the caller graph for this function:

void unity_music_player_set_track_menu ( UnityMusicPlayer *  self,
DbusmenuMenuitem *  value 
)

Definition at line 1252 of file unity-sound-menu.c.

                                                                                         {
       DbusmenuMenuitem* _tmp0_;
       DbusmenuMenuitem* _tmp1_;
       g_return_if_fail (self != NULL);
       _tmp0_ = value;
       _tmp1_ = _g_object_ref0 (_tmp0_);
       _g_object_unref0 (self->priv->_track_menu);
       self->priv->_track_menu = _tmp1_;
       g_object_notify ((GObject *) self, "track-menu");
}

Here is the call graph for this function:

Here is the caller graph for this function:

void unity_music_player_unexport ( UnityMusicPlayer *  self)

Definition at line 823 of file unity-sound-menu.c.

                                                          {
       UnityMPRISGateway* _tmp0_;
       g_return_if_fail (self != NULL);
       _tmp0_ = self->priv->mpris_gateway;
       unity_mpris_gateway_unexport (_tmp0_);
}

Here is the call graph for this function:

Definition at line 784 of file unity-sound-menu.c.

                                           {
       static volatile gsize unity_playback_state_type_id__volatile = 0;
       if (g_once_init_enter (&unity_playback_state_type_id__volatile)) {
              static const GEnumValue values[] = {{UNITY_PLAYBACK_STATE_PLAYING, "UNITY_PLAYBACK_STATE_PLAYING", "playing"}, {UNITY_PLAYBACK_STATE_PAUSED, "UNITY_PLAYBACK_STATE_PAUSED", "paused"}, {0, NULL, NULL}};
              GType unity_playback_state_type_id;
              unity_playback_state_type_id = g_enum_register_static ("UnityPlaybackState", values);
              g_once_init_leave (&unity_playback_state_type_id__volatile, unity_playback_state_type_id);
       }
       return unity_playback_state_type_id__volatile;
}
static void unity_playlist_class_init ( UnityPlaylistClass *  klass) [static]

Definition at line 681 of file unity-sound-menu.c.

                                                                   {
       unity_playlist_parent_class = g_type_class_peek_parent (klass);
       g_type_class_add_private (klass, sizeof (UnityPlaylistPrivate));
       G_OBJECT_CLASS (klass)->get_property = _vala_unity_playlist_get_property;
       G_OBJECT_CLASS (klass)->set_property = _vala_unity_playlist_set_property;
       G_OBJECT_CLASS (klass)->finalize = unity_playlist_finalize;
       g_object_class_install_property (G_OBJECT_CLASS (klass), UNITY_PLAYLIST_ID, g_param_spec_string ("id", "id", "id", NULL, G_PARAM_STATIC_NAME | G_PARAM_STATIC_NICK | G_PARAM_STATIC_BLURB | G_PARAM_READABLE | G_PARAM_WRITABLE | G_PARAM_CONSTRUCT_ONLY));
       g_object_class_install_property (G_OBJECT_CLASS (klass), UNITY_PLAYLIST_NAME, g_param_spec_string ("name", "name", "name", NULL, G_PARAM_STATIC_NAME | G_PARAM_STATIC_NICK | G_PARAM_STATIC_BLURB | G_PARAM_READABLE | G_PARAM_WRITABLE));
       g_object_class_install_property (G_OBJECT_CLASS (klass), UNITY_PLAYLIST_ICON, g_param_spec_object ("icon", "icon", "icon", G_TYPE_ICON, G_PARAM_STATIC_NAME | G_PARAM_STATIC_NICK | G_PARAM_STATIC_BLURB | G_PARAM_READABLE | G_PARAM_WRITABLE));
       g_object_class_install_property (G_OBJECT_CLASS (klass), UNITY_PLAYLIST_CREATION_DATE, g_param_spec_boxed ("creation-date", "creation-date", "creation-date", G_TYPE_DATE_TIME, G_PARAM_STATIC_NAME | G_PARAM_STATIC_NICK | G_PARAM_STATIC_BLURB | G_PARAM_READABLE | G_PARAM_WRITABLE));
       g_object_class_install_property (G_OBJECT_CLASS (klass), UNITY_PLAYLIST_MODIFICATION_DATE, g_param_spec_boxed ("modification-date", "modification-date", "modification-date", G_TYPE_DATE_TIME, G_PARAM_STATIC_NAME | G_PARAM_STATIC_NICK | G_PARAM_STATIC_BLURB | G_PARAM_READABLE | G_PARAM_WRITABLE));
       g_object_class_install_property (G_OBJECT_CLASS (klass), UNITY_PLAYLIST_LAST_PLAY_DATE, g_param_spec_boxed ("last-play-date", "last-play-date", "last-play-date", G_TYPE_DATE_TIME, G_PARAM_STATIC_NAME | G_PARAM_STATIC_NICK | G_PARAM_STATIC_BLURB | G_PARAM_READABLE | G_PARAM_WRITABLE));
}

Here is the call graph for this function:

Here is the caller graph for this function:

UnityPlaylist* unity_playlist_construct ( GType  object_type,
const gchar *  id 
)

Definition at line 529 of file unity-sound-menu.c.

                                                                             {
       UnityPlaylist * self = NULL;
       const gchar* _tmp0_;
       g_return_val_if_fail (id != NULL, NULL);
       _tmp0_ = id;
       self = (UnityPlaylist*) g_object_new (object_type, "id", _tmp0_, NULL);
       return self;
}

Here is the caller graph for this function:

static void unity_playlist_finalize ( GObject *  obj) [static]

Definition at line 701 of file unity-sound-menu.c.

                                                   {
       UnityPlaylist * self;
       self = G_TYPE_CHECK_INSTANCE_CAST (obj, UNITY_TYPE_PLAYLIST, UnityPlaylist);
       _g_free0 (self->priv->_id);
       _g_free0 (self->priv->_name);
       _g_object_unref0 (self->priv->_icon);
       _g_date_time_unref0 (self->priv->_creation_date);
       _g_date_time_unref0 (self->priv->_modification_date);
       _g_date_time_unref0 (self->priv->_last_play_date);
       G_OBJECT_CLASS (unity_playlist_parent_class)->finalize (obj);
}

Here is the caller graph for this function:

GDateTime* unity_playlist_get_creation_date ( UnityPlaylist *  self)

Definition at line 610 of file unity-sound-menu.c.

                                                                  {
       GDateTime* result;
       GDateTime* _tmp0_;
       g_return_val_if_fail (self != NULL, NULL);
       _tmp0_ = self->priv->_creation_date;
       result = _tmp0_;
       return result;
}

Here is the caller graph for this function:

GIcon* unity_playlist_get_icon ( UnityPlaylist *  self)

Definition at line 588 of file unity-sound-menu.c.

                                                     {
       GIcon* result;
       GIcon* _tmp0_;
       g_return_val_if_fail (self != NULL, NULL);
       _tmp0_ = self->priv->_icon;
       result = _tmp0_;
       return result;
}

Here is the caller graph for this function:

const gchar* unity_playlist_get_id ( UnityPlaylist *  self)

Definition at line 544 of file unity-sound-menu.c.

                                                         {
       const gchar* result;
       const gchar* _tmp0_;
       g_return_val_if_fail (self != NULL, NULL);
       _tmp0_ = self->priv->_id;
       result = _tmp0_;
       return result;
}

Here is the caller graph for this function:

GDateTime* unity_playlist_get_last_play_date ( UnityPlaylist *  self)

Definition at line 659 of file unity-sound-menu.c.

                                                                   {
       GDateTime* result;
       GDateTime* _tmp0_;
       g_return_val_if_fail (self != NULL, NULL);
       _tmp0_ = self->priv->_last_play_date;
       result = _tmp0_;
       return result;
}

Here is the caller graph for this function:

GDateTime* unity_playlist_get_modification_date ( UnityPlaylist *  self)

Definition at line 637 of file unity-sound-menu.c.

                                                                      {
       GDateTime* result;
       GDateTime* _tmp0_;
       g_return_val_if_fail (self != NULL, NULL);
       _tmp0_ = self->priv->_modification_date;
       result = _tmp0_;
       return result;
}

Here is the caller graph for this function:

const gchar* unity_playlist_get_name ( UnityPlaylist *  self)

Definition at line 566 of file unity-sound-menu.c.

                                                           {
       const gchar* result;
       const gchar* _tmp0_;
       g_return_val_if_fail (self != NULL, NULL);
       _tmp0_ = self->priv->_name;
       result = _tmp0_;
       return result;
}

Here is the caller graph for this function:

GType unity_playlist_get_type ( void  )

Definition at line 714 of file unity-sound-menu.c.

                                     {
       static volatile gsize unity_playlist_type_id__volatile = 0;
       if (g_once_init_enter (&unity_playlist_type_id__volatile)) {
              static const GTypeInfo g_define_type_info = { sizeof (UnityPlaylistClass), (GBaseInitFunc) NULL, (GBaseFinalizeFunc) NULL, (GClassInitFunc) unity_playlist_class_init, (GClassFinalizeFunc) NULL, NULL, sizeof (UnityPlaylist), 0, (GInstanceInitFunc) unity_playlist_instance_init, NULL };
              GType unity_playlist_type_id;
              unity_playlist_type_id = g_type_register_static (G_TYPE_OBJECT, "UnityPlaylist", &g_define_type_info, 0);
              g_once_init_leave (&unity_playlist_type_id__volatile, unity_playlist_type_id);
       }
       return unity_playlist_type_id__volatile;
}

Here is the call graph for this function:

static void unity_playlist_instance_init ( UnityPlaylist *  self) [static]

Definition at line 696 of file unity-sound-menu.c.

                                                                {
       self->priv = UNITY_PLAYLIST_GET_PRIVATE (self);
}

Here is the caller graph for this function:

UnityPlaylist* unity_playlist_new ( const gchar *  id)

Definition at line 539 of file unity-sound-menu.c.

Here is the call graph for this function:

Here is the caller graph for this function:

void unity_playlist_set_creation_date ( UnityPlaylist *  self,
GDateTime *  value 
)

Definition at line 625 of file unity-sound-menu.c.

                                                                              {
       GDateTime* _tmp0_;
       GDateTime* _tmp1_;
       g_return_if_fail (self != NULL);
       _tmp0_ = value;
       _tmp1_ = _g_date_time_ref0 (_tmp0_);
       _g_date_time_unref0 (self->priv->_creation_date);
       self->priv->_creation_date = _tmp1_;
       g_object_notify ((GObject *) self, "creation-date");
}

Here is the call graph for this function:

Here is the caller graph for this function:

void unity_playlist_set_icon ( UnityPlaylist *  self,
GIcon *  value 
)

Definition at line 598 of file unity-sound-menu.c.

                                                                 {
       GIcon* _tmp0_;
       GIcon* _tmp1_;
       g_return_if_fail (self != NULL);
       _tmp0_ = value;
       _tmp1_ = _g_object_ref0 (_tmp0_);
       _g_object_unref0 (self->priv->_icon);
       self->priv->_icon = _tmp1_;
       g_object_notify ((GObject *) self, "icon");
}

Here is the call graph for this function:

Here is the caller graph for this function:

static void unity_playlist_set_id ( UnityPlaylist *  self,
const gchar *  value 
) [static]

Definition at line 554 of file unity-sound-menu.c.

                                                                            {
       const gchar* _tmp0_;
       gchar* _tmp1_;
       g_return_if_fail (self != NULL);
       _tmp0_ = value;
       _tmp1_ = g_strdup (_tmp0_);
       _g_free0 (self->priv->_id);
       self->priv->_id = _tmp1_;
       g_object_notify ((GObject *) self, "id");
}

Here is the caller graph for this function:

void unity_playlist_set_last_play_date ( UnityPlaylist *  self,
GDateTime *  value 
)

Definition at line 669 of file unity-sound-menu.c.

                                                                               {
       GDateTime* _tmp0_;
       GDateTime* _tmp1_;
       g_return_if_fail (self != NULL);
       _tmp0_ = value;
       _tmp1_ = _g_date_time_ref0 (_tmp0_);
       _g_date_time_unref0 (self->priv->_last_play_date);
       self->priv->_last_play_date = _tmp1_;
       g_object_notify ((GObject *) self, "last-play-date");
}

Here is the call graph for this function:

Here is the caller graph for this function:

void unity_playlist_set_modification_date ( UnityPlaylist *  self,
GDateTime *  value 
)

Definition at line 647 of file unity-sound-menu.c.

                                                                                  {
       GDateTime* _tmp0_;
       GDateTime* _tmp1_;
       g_return_if_fail (self != NULL);
       _tmp0_ = value;
       _tmp1_ = _g_date_time_ref0 (_tmp0_);
       _g_date_time_unref0 (self->priv->_modification_date);
       self->priv->_modification_date = _tmp1_;
       g_object_notify ((GObject *) self, "modification-date");
}

Here is the call graph for this function:

Here is the caller graph for this function:

void unity_playlist_set_name ( UnityPlaylist *  self,
const gchar *  value 
)

Definition at line 576 of file unity-sound-menu.c.

                                                                       {
       const gchar* _tmp0_;
       gchar* _tmp1_;
       g_return_if_fail (self != NULL);
       _tmp0_ = value;
       _tmp1_ = g_strdup (_tmp0_);
       _g_free0 (self->priv->_name);
       self->priv->_name = _tmp1_;
       g_object_notify ((GObject *) self, "name");
}

Here is the caller graph for this function:

static void unity_track_metadata_class_init ( UnityTrackMetadataClass *  klass) [static]

Definition at line 412 of file unity-sound-menu.c.

                                                                              {
       unity_track_metadata_parent_class = g_type_class_peek_parent (klass);
       g_type_class_add_private (klass, sizeof (UnityTrackMetadataPrivate));
       G_OBJECT_CLASS (klass)->get_property = _vala_unity_track_metadata_get_property;
       G_OBJECT_CLASS (klass)->set_property = _vala_unity_track_metadata_set_property;
       G_OBJECT_CLASS (klass)->finalize = unity_track_metadata_finalize;
       g_object_class_install_property (G_OBJECT_CLASS (klass), UNITY_TRACK_METADATA_URI, g_param_spec_string ("uri", "uri", "uri", NULL, G_PARAM_STATIC_NAME | G_PARAM_STATIC_NICK | G_PARAM_STATIC_BLURB | G_PARAM_READABLE | G_PARAM_WRITABLE));
       g_object_class_install_property (G_OBJECT_CLASS (klass), UNITY_TRACK_METADATA_TRACK_NO, g_param_spec_int ("track-no", "track-no", "track-no", G_MININT, G_MAXINT, 0, G_PARAM_STATIC_NAME | G_PARAM_STATIC_NICK | G_PARAM_STATIC_BLURB | G_PARAM_READABLE | G_PARAM_WRITABLE));
       g_object_class_install_property (G_OBJECT_CLASS (klass), UNITY_TRACK_METADATA_ARTIST, g_param_spec_string ("artist", "artist", "artist", NULL, G_PARAM_STATIC_NAME | G_PARAM_STATIC_NICK | G_PARAM_STATIC_BLURB | G_PARAM_READABLE | G_PARAM_WRITABLE));
       g_object_class_install_property (G_OBJECT_CLASS (klass), UNITY_TRACK_METADATA_TITLE, g_param_spec_string ("title", "title", "title", NULL, G_PARAM_STATIC_NAME | G_PARAM_STATIC_NICK | G_PARAM_STATIC_BLURB | G_PARAM_READABLE | G_PARAM_WRITABLE));
       g_object_class_install_property (G_OBJECT_CLASS (klass), UNITY_TRACK_METADATA_ALBUM, g_param_spec_string ("album", "album", "album", NULL, G_PARAM_STATIC_NAME | G_PARAM_STATIC_NICK | G_PARAM_STATIC_BLURB | G_PARAM_READABLE | G_PARAM_WRITABLE));
       g_object_class_install_property (G_OBJECT_CLASS (klass), UNITY_TRACK_METADATA_LENGTH, g_param_spec_uint ("length", "length", "length", 0, G_MAXUINT, 0U, G_PARAM_STATIC_NAME | G_PARAM_STATIC_NICK | G_PARAM_STATIC_BLURB | G_PARAM_READABLE | G_PARAM_WRITABLE));
       g_object_class_install_property (G_OBJECT_CLASS (klass), UNITY_TRACK_METADATA_ART_LOCATION, g_param_spec_object ("art-location", "art-location", "art-location", G_TYPE_FILE, G_PARAM_STATIC_NAME | G_PARAM_STATIC_NICK | G_PARAM_STATIC_BLURB | G_PARAM_READABLE | G_PARAM_WRITABLE));
       g_object_class_install_property (G_OBJECT_CLASS (klass), UNITY_TRACK_METADATA_ART_ICON, g_param_spec_object ("art-icon", "art-icon", "art-icon", G_TYPE_ICON, G_PARAM_STATIC_NAME | G_PARAM_STATIC_NICK | G_PARAM_STATIC_BLURB | G_PARAM_READABLE | G_PARAM_WRITABLE));
}

Here is the call graph for this function:

Here is the caller graph for this function:

UnityTrackMetadata* unity_track_metadata_construct ( GType  object_type)

Definition at line 167 of file unity-sound-menu.c.

                                                                       {
       UnityTrackMetadata * self = NULL;
       self = (UnityTrackMetadata*) g_object_new (object_type, NULL);
       return self;
}

Here is the caller graph for this function:

UnityTrackMetadata* unity_track_metadata_construct_full ( GType  object_type,
const gchar *  uri,
gint  track_no,
const gchar *  title,
const gchar *  artist,
const gchar *  album,
guint  length 
)

Definition at line 179 of file unity-sound-menu.c.

                                                                                                                                                                                        {
       UnityTrackMetadata * self = NULL;
       const gchar* _tmp0_;
       gint _tmp1_;
       const gchar* _tmp2_;
       const gchar* _tmp3_;
       const gchar* _tmp4_;
       guint _tmp5_;
       g_return_val_if_fail (uri != NULL, NULL);
       g_return_val_if_fail (title != NULL, NULL);
       g_return_val_if_fail (artist != NULL, NULL);
       g_return_val_if_fail (album != NULL, NULL);
       _tmp0_ = uri;
       _tmp1_ = track_no;
       _tmp2_ = title;
       _tmp3_ = artist;
       _tmp4_ = album;
       _tmp5_ = length;
       self = (UnityTrackMetadata*) g_object_new (object_type, "uri", _tmp0_, "track-no", _tmp1_, "title", _tmp2_, "artist", _tmp3_, "album", _tmp4_, "length", _tmp5_, NULL);
       return self;
}

Here is the caller graph for this function:

static void unity_track_metadata_finalize ( GObject *  obj) [static]

Definition at line 434 of file unity-sound-menu.c.

                                                         {
       UnityTrackMetadata * self;
       self = G_TYPE_CHECK_INSTANCE_CAST (obj, UNITY_TYPE_TRACK_METADATA, UnityTrackMetadata);
       _g_free0 (self->priv->_uri);
       _g_free0 (self->priv->_artist);
       _g_free0 (self->priv->_title);
       _g_free0 (self->priv->_album);
       _g_object_unref0 (self->priv->_art_icon);
       _g_object_unref0 (self->priv->_art_file);
       G_OBJECT_CLASS (unity_track_metadata_parent_class)->finalize (obj);
}

Here is the caller graph for this function:

const gchar* unity_track_metadata_get_album ( UnityTrackMetadata *  self)

Definition at line 292 of file unity-sound-menu.c.

                                                                       {
       const gchar* result;
       const gchar* _tmp0_;
       g_return_val_if_fail (self != NULL, NULL);
       _tmp0_ = self->priv->_album;
       result = _tmp0_;
       return result;
}

Here is the caller graph for this function:

GIcon* unity_track_metadata_get_art_icon ( UnityTrackMetadata *  self)

Definition at line 367 of file unity-sound-menu.c.

                                                                    {
       GIcon* result;
       GIcon* _tmp0_;
       g_return_val_if_fail (self != NULL, NULL);
       _tmp0_ = self->priv->_art_icon;
       result = _tmp0_;
       return result;
}

Here is the caller graph for this function:

GFile* unity_track_metadata_get_art_location ( UnityTrackMetadata *  self)

Definition at line 333 of file unity-sound-menu.c.

                                                                        {
       GFile* result;
       GFile* _tmp0_;
       g_return_val_if_fail (self != NULL, NULL);
       _tmp0_ = self->priv->_art_file;
       result = _tmp0_;
       return result;
}

Here is the caller graph for this function:

const gchar* unity_track_metadata_get_artist ( UnityTrackMetadata *  self)

Definition at line 248 of file unity-sound-menu.c.

                                                                        {
       const gchar* result;
       const gchar* _tmp0_;
       g_return_val_if_fail (self != NULL, NULL);
       _tmp0_ = self->priv->_artist;
       result = _tmp0_;
       return result;
}

Here is the caller graph for this function:

guint unity_track_metadata_get_length ( UnityTrackMetadata *  self)

Definition at line 314 of file unity-sound-menu.c.

                                                                 {
       guint result;
       guint _tmp0_;
       g_return_val_if_fail (self != NULL, 0U);
       _tmp0_ = self->priv->_length;
       result = _tmp0_;
       return result;
}

Here is the caller graph for this function:

const gchar* unity_track_metadata_get_title ( UnityTrackMetadata *  self)

Definition at line 270 of file unity-sound-menu.c.

                                                                       {
       const gchar* result;
       const gchar* _tmp0_;
       g_return_val_if_fail (self != NULL, NULL);
       _tmp0_ = self->priv->_title;
       result = _tmp0_;
       return result;
}

Here is the caller graph for this function:

gint unity_track_metadata_get_track_no ( UnityTrackMetadata *  self)

Definition at line 229 of file unity-sound-menu.c.

                                                                  {
       gint result;
       gint _tmp0_;
       g_return_val_if_fail (self != NULL, 0);
       _tmp0_ = self->priv->_track_no;
       result = _tmp0_;
       return result;
}

Here is the caller graph for this function:

Definition at line 447 of file unity-sound-menu.c.

                                           {
       static volatile gsize unity_track_metadata_type_id__volatile = 0;
       if (g_once_init_enter (&unity_track_metadata_type_id__volatile)) {
              static const GTypeInfo g_define_type_info = { sizeof (UnityTrackMetadataClass), (GBaseInitFunc) NULL, (GBaseFinalizeFunc) NULL, (GClassInitFunc) unity_track_metadata_class_init, (GClassFinalizeFunc) NULL, NULL, sizeof (UnityTrackMetadata), 0, (GInstanceInitFunc) unity_track_metadata_instance_init, NULL };
              GType unity_track_metadata_type_id;
              unity_track_metadata_type_id = g_type_register_static (G_TYPE_OBJECT, "UnityTrackMetadata", &g_define_type_info, 0);
              g_once_init_leave (&unity_track_metadata_type_id__volatile, unity_track_metadata_type_id);
       }
       return unity_track_metadata_type_id__volatile;
}

Here is the call graph for this function:

const gchar* unity_track_metadata_get_uri ( UnityTrackMetadata *  self)

Definition at line 207 of file unity-sound-menu.c.

                                                                     {
       const gchar* result;
       const gchar* _tmp0_;
       g_return_val_if_fail (self != NULL, NULL);
       _tmp0_ = self->priv->_uri;
       result = _tmp0_;
       return result;
}

Here is the caller graph for this function:

static void unity_track_metadata_instance_init ( UnityTrackMetadata *  self) [static]

Definition at line 429 of file unity-sound-menu.c.

                                                                           {
       self->priv = UNITY_TRACK_METADATA_GET_PRIVATE (self);
}

Here is the caller graph for this function:

UnityTrackMetadata* unity_track_metadata_new ( void  )

Definition at line 174 of file unity-sound-menu.c.

Here is the call graph for this function:

Here is the caller graph for this function:

UnityTrackMetadata* unity_track_metadata_new_full ( const gchar *  uri,
gint  track_no,
const gchar *  title,
const gchar *  artist,
const gchar *  album,
guint  length 
)

Definition at line 202 of file unity-sound-menu.c.

                                                                                                                                                               {
       return unity_track_metadata_construct_full (UNITY_TYPE_TRACK_METADATA, uri, track_no, title, artist, album, length);
}

Here is the call graph for this function:

Here is the caller graph for this function:

void unity_track_metadata_set_album ( UnityTrackMetadata *  self,
const gchar *  value 
)

Definition at line 302 of file unity-sound-menu.c.

                                                                                   {
       const gchar* _tmp0_;
       gchar* _tmp1_;
       g_return_if_fail (self != NULL);
       _tmp0_ = value;
       _tmp1_ = g_strdup (_tmp0_);
       _g_free0 (self->priv->_album);
       self->priv->_album = _tmp1_;
       g_object_notify ((GObject *) self, "album");
}

Here is the caller graph for this function:

void unity_track_metadata_set_art_icon ( UnityTrackMetadata *  self,
GIcon *  value 
)

Definition at line 377 of file unity-sound-menu.c.

                                                                                {
       GIcon* _tmp0_;
       GIcon* _tmp1_;
       GIcon* _tmp2_;
       g_return_if_fail (self != NULL);
       _tmp0_ = value;
       _tmp1_ = _g_object_ref0 (_tmp0_);
       _g_object_unref0 (self->priv->_art_icon);
       self->priv->_art_icon = _tmp1_;
       _tmp2_ = self->priv->_art_icon;
       if (G_TYPE_CHECK_INSTANCE_TYPE (_tmp2_, g_file_icon_get_type ())) {
              GIcon* _tmp3_;
              GFileIcon* _tmp4_;
              GFileIcon* file_icon;
              GFileIcon* _tmp5_;
              GFile* _tmp6_ = NULL;
              GFile* _tmp7_;
              _tmp3_ = self->priv->_art_icon;
              _tmp4_ = _g_object_ref0 (G_TYPE_CHECK_INSTANCE_TYPE (_tmp3_, g_file_icon_get_type ()) ? ((GFileIcon*) _tmp3_) : NULL);
              file_icon = _tmp4_;
              _tmp5_ = file_icon;
              _tmp6_ = g_file_icon_get_file (_tmp5_);
              _tmp7_ = _g_object_ref0 (_tmp6_);
              _g_object_unref0 (self->priv->_art_file);
              self->priv->_art_file = _tmp7_;
              _g_object_unref0 (file_icon);
       } else {
              _g_object_unref0 (self->priv->_art_file);
              self->priv->_art_file = NULL;
       }
       g_object_notify ((GObject*) self, "art-location");
       g_object_notify ((GObject *) self, "art-icon");
}

Here is the call graph for this function:

Here is the caller graph for this function:

void unity_track_metadata_set_art_location ( UnityTrackMetadata *  self,
GFile *  value 
)

Definition at line 348 of file unity-sound-menu.c.

                                                                                    {
       GFile* _tmp0_;
       GFile* _tmp1_;
       GFile* _tmp2_;
       GFileIcon* _tmp3_;
       g_return_if_fail (self != NULL);
       _tmp0_ = value;
       _tmp1_ = _g_object_ref0 (_tmp0_);
       _g_object_unref0 (self->priv->_art_file);
       self->priv->_art_file = _tmp1_;
       _tmp2_ = self->priv->_art_file;
       _tmp3_ = (GFileIcon*) g_file_icon_new (_tmp2_);
       _g_object_unref0 (self->priv->_art_icon);
       self->priv->_art_icon = (GIcon*) _tmp3_;
       g_object_notify ((GObject*) self, "art-icon");
       g_object_notify ((GObject *) self, "art-location");
}

Here is the call graph for this function:

Here is the caller graph for this function:

void unity_track_metadata_set_artist ( UnityTrackMetadata *  self,
const gchar *  value 
)

Definition at line 258 of file unity-sound-menu.c.

                                                                                    {
       const gchar* _tmp0_;
       gchar* _tmp1_;
       g_return_if_fail (self != NULL);
       _tmp0_ = value;
       _tmp1_ = g_strdup (_tmp0_);
       _g_free0 (self->priv->_artist);
       self->priv->_artist = _tmp1_;
       g_object_notify ((GObject *) self, "artist");
}

Here is the caller graph for this function:

void unity_track_metadata_set_length ( UnityTrackMetadata *  self,
guint  value 
)

Definition at line 324 of file unity-sound-menu.c.

                                                                             {
       guint _tmp0_;
       g_return_if_fail (self != NULL);
       _tmp0_ = value;
       self->priv->_length = _tmp0_;
       g_object_notify ((GObject *) self, "length");
}

Here is the caller graph for this function:

void unity_track_metadata_set_title ( UnityTrackMetadata *  self,
const gchar *  value 
)

Definition at line 280 of file unity-sound-menu.c.

                                                                                   {
       const gchar* _tmp0_;
       gchar* _tmp1_;
       g_return_if_fail (self != NULL);
       _tmp0_ = value;
       _tmp1_ = g_strdup (_tmp0_);
       _g_free0 (self->priv->_title);
       self->priv->_title = _tmp1_;
       g_object_notify ((GObject *) self, "title");
}

Here is the caller graph for this function:

void unity_track_metadata_set_track_no ( UnityTrackMetadata *  self,
gint  value 
)

Definition at line 239 of file unity-sound-menu.c.

                                                                              {
       gint _tmp0_;
       g_return_if_fail (self != NULL);
       _tmp0_ = value;
       self->priv->_track_no = _tmp0_;
       g_object_notify ((GObject *) self, "track-no");
}

Here is the caller graph for this function:

void unity_track_metadata_set_uri ( UnityTrackMetadata *  self,
const gchar *  value 
)

Definition at line 217 of file unity-sound-menu.c.

                                                                                 {
       const gchar* _tmp0_;
       gchar* _tmp1_;
       g_return_if_fail (self != NULL);
       _tmp0_ = value;
       _tmp1_ = g_strdup (_tmp0_);
       _g_free0 (self->priv->_uri);
       self->priv->_uri = _tmp1_;
       g_object_notify ((GObject *) self, "uri");
}

Here is the caller graph for this function:


Variable Documentation

gpointer unity_music_player_parent_class = NULL [static]

Definition at line 105 of file unity-sound-menu.c.

gpointer unity_playlist_parent_class = NULL [static]

Definition at line 104 of file unity-sound-menu.c.

gpointer unity_track_metadata_parent_class = NULL [static]

Definition at line 103 of file unity-sound-menu.c.