Back to index

unity-lens-music  6.0.0
Classes | Defines | Typedefs | Functions | Variables
daemon.c File Reference
#include <glib.h>
#include <glib-object.h>
#include <stdlib.h>
#include <string.h>
#include <unity.h>
#include <glib/gi18n-lib.h>
#include <gio/gio.h>
#include <gio/gdesktopappinfo.h>
#include <stdio.h>

Go to the source code of this file.

Classes

struct  _UnityMusicLensDaemon
struct  _UnityMusicLensDaemonClass
struct  _UnityMusicLensDaemonPrivate

Defines

#define UNITY_MUSIC_LENS_TYPE_DAEMON   (unity_music_lens_daemon_get_type ())
#define UNITY_MUSIC_LENS_DAEMON(obj)   (G_TYPE_CHECK_INSTANCE_CAST ((obj), UNITY_MUSIC_LENS_TYPE_DAEMON, UnityMusicLensDaemon))
#define UNITY_MUSIC_LENS_DAEMON_CLASS(klass)   (G_TYPE_CHECK_CLASS_CAST ((klass), UNITY_MUSIC_LENS_TYPE_DAEMON, UnityMusicLensDaemonClass))
#define UNITY_MUSIC_LENS_IS_DAEMON(obj)   (G_TYPE_CHECK_INSTANCE_TYPE ((obj), UNITY_MUSIC_LENS_TYPE_DAEMON))
#define UNITY_MUSIC_LENS_IS_DAEMON_CLASS(klass)   (G_TYPE_CHECK_CLASS_TYPE ((klass), UNITY_MUSIC_LENS_TYPE_DAEMON))
#define UNITY_MUSIC_LENS_DAEMON_GET_CLASS(obj)   (G_TYPE_INSTANCE_GET_CLASS ((obj), UNITY_MUSIC_LENS_TYPE_DAEMON, UnityMusicLensDaemonClass))
#define UNITY_MUSIC_LENS_TYPE_SIMPLE_SCOPE   (unity_music_lens_simple_scope_get_type ())
#define UNITY_MUSIC_LENS_SIMPLE_SCOPE(obj)   (G_TYPE_CHECK_INSTANCE_CAST ((obj), UNITY_MUSIC_LENS_TYPE_SIMPLE_SCOPE, UnityMusicLensSimpleScope))
#define UNITY_MUSIC_LENS_SIMPLE_SCOPE_CLASS(klass)   (G_TYPE_CHECK_CLASS_CAST ((klass), UNITY_MUSIC_LENS_TYPE_SIMPLE_SCOPE, UnityMusicLensSimpleScopeClass))
#define UNITY_MUSIC_LENS_IS_SIMPLE_SCOPE(obj)   (G_TYPE_CHECK_INSTANCE_TYPE ((obj), UNITY_MUSIC_LENS_TYPE_SIMPLE_SCOPE))
#define UNITY_MUSIC_LENS_IS_SIMPLE_SCOPE_CLASS(klass)   (G_TYPE_CHECK_CLASS_TYPE ((klass), UNITY_MUSIC_LENS_TYPE_SIMPLE_SCOPE))
#define UNITY_MUSIC_LENS_SIMPLE_SCOPE_GET_CLASS(obj)   (G_TYPE_INSTANCE_GET_CLASS ((obj), UNITY_MUSIC_LENS_TYPE_SIMPLE_SCOPE, UnityMusicLensSimpleScopeClass))
#define UNITY_MUSIC_LENS_TYPE_BANSHEE_SCOPE_PROXY   (unity_music_lens_banshee_scope_proxy_get_type ())
#define UNITY_MUSIC_LENS_BANSHEE_SCOPE_PROXY(obj)   (G_TYPE_CHECK_INSTANCE_CAST ((obj), UNITY_MUSIC_LENS_TYPE_BANSHEE_SCOPE_PROXY, UnityMusicLensBansheeScopeProxy))
#define UNITY_MUSIC_LENS_BANSHEE_SCOPE_PROXY_CLASS(klass)   (G_TYPE_CHECK_CLASS_CAST ((klass), UNITY_MUSIC_LENS_TYPE_BANSHEE_SCOPE_PROXY, UnityMusicLensBansheeScopeProxyClass))
#define UNITY_MUSIC_LENS_IS_BANSHEE_SCOPE_PROXY(obj)   (G_TYPE_CHECK_INSTANCE_TYPE ((obj), UNITY_MUSIC_LENS_TYPE_BANSHEE_SCOPE_PROXY))
#define UNITY_MUSIC_LENS_IS_BANSHEE_SCOPE_PROXY_CLASS(klass)   (G_TYPE_CHECK_CLASS_TYPE ((klass), UNITY_MUSIC_LENS_TYPE_BANSHEE_SCOPE_PROXY))
#define UNITY_MUSIC_LENS_BANSHEE_SCOPE_PROXY_GET_CLASS(obj)   (G_TYPE_INSTANCE_GET_CLASS ((obj), UNITY_MUSIC_LENS_TYPE_BANSHEE_SCOPE_PROXY, UnityMusicLensBansheeScopeProxyClass))
#define UNITY_MUSIC_LENS_TYPE_RHYTHMBOX_SCOPE   (unity_music_lens_rhythmbox_scope_get_type ())
#define UNITY_MUSIC_LENS_RHYTHMBOX_SCOPE(obj)   (G_TYPE_CHECK_INSTANCE_CAST ((obj), UNITY_MUSIC_LENS_TYPE_RHYTHMBOX_SCOPE, UnityMusicLensRhythmboxScope))
#define UNITY_MUSIC_LENS_RHYTHMBOX_SCOPE_CLASS(klass)   (G_TYPE_CHECK_CLASS_CAST ((klass), UNITY_MUSIC_LENS_TYPE_RHYTHMBOX_SCOPE, UnityMusicLensRhythmboxScopeClass))
#define UNITY_MUSIC_LENS_IS_RHYTHMBOX_SCOPE(obj)   (G_TYPE_CHECK_INSTANCE_TYPE ((obj), UNITY_MUSIC_LENS_TYPE_RHYTHMBOX_SCOPE))
#define UNITY_MUSIC_LENS_IS_RHYTHMBOX_SCOPE_CLASS(klass)   (G_TYPE_CHECK_CLASS_TYPE ((klass), UNITY_MUSIC_LENS_TYPE_RHYTHMBOX_SCOPE))
#define UNITY_MUSIC_LENS_RHYTHMBOX_SCOPE_GET_CLASS(obj)   (G_TYPE_INSTANCE_GET_CLASS ((obj), UNITY_MUSIC_LENS_TYPE_RHYTHMBOX_SCOPE, UnityMusicLensRhythmboxScopeClass))
#define _g_object_unref0(var)   ((var == NULL) ? NULL : (var = (g_object_unref (var), NULL)))
#define __g_list_free__g_object_unref0_0(var)   ((var == NULL) ? NULL : (var = (_g_list_free__g_object_unref0_ (var), NULL)))
#define _g_error_free0(var)   ((var == NULL) ? NULL : (var = (g_error_free (var), NULL)))
#define UNITY_MUSIC_LENS_ICON_PATH   "/usr/share/icons/unity-icon-theme/places/svg/"
#define UNITY_MUSIC_LENS_DAEMON_GET_PRIVATE(o)   (G_TYPE_INSTANCE_GET_PRIVATE ((o), UNITY_MUSIC_LENS_TYPE_DAEMON, UnityMusicLensDaemonPrivate))
#define UNITY_MUSIC_LENS_GENRE_BLUES_ID   "blues"
#define UNITY_MUSIC_LENS_GENRE_CLASSIC_ID   "classic"
#define UNITY_MUSIC_LENS_GENRE_COUNTRY_ID   "country"
#define UNITY_MUSIC_LENS_GENRE_DISCO_ID   "disco"
#define UNITY_MUSIC_LENS_GENRE_FUNK_ID   "funk"
#define UNITY_MUSIC_LENS_GENRE_ROCK_ID   "rock"
#define UNITY_MUSIC_LENS_GENRE_METAL_ID   "metal"
#define UNITY_MUSIC_LENS_GENRE_HIPHOP_ID   "hip-hop"
#define UNITY_MUSIC_LENS_GENRE_HOUSE_ID   "house"
#define UNITY_MUSIC_LENS_GENRE_NEWWAVE_ID   "new-wave"
#define UNITY_MUSIC_LENS_GENRE_RANDB_ID   "r-and-b"
#define UNITY_MUSIC_LENS_GENRE_PUNK_ID   "punk"
#define UNITY_MUSIC_LENS_GENRE_JAZZ_ID   "jazz"
#define UNITY_MUSIC_LENS_GENRE_POP_ID   "pop"
#define UNITY_MUSIC_LENS_GENRE_REGGAE_ID   "reggae"
#define UNITY_MUSIC_LENS_GENRE_SOUL_ID   "soul"
#define UNITY_MUSIC_LENS_GENRE_TECHNO_ID   "techno"
#define UNITY_MUSIC_LENS_GENRE_OTHER_ID   "other"

Typedefs

typedef struct _UnityMusicLensDaemon
typedef struct _UnityMusicLensDaemonClass
typedef struct _UnityMusicLensDaemonPrivate
typedef struct _UnityMusicLensSimpleScope
typedef struct _UnityMusicLensSimpleScopeClass
typedef struct _UnityMusicLensBansheeScopeProxy
typedef struct _UnityMusicLensBansheeScopeProxyClass
typedef struct _UnityMusicLensRhythmboxScope
typedef struct _UnityMusicLensRhythmboxScopeClass

Functions

GType unity_music_lens_daemon_get_type (void)
static void unity_music_lens_daemon_populate_filters (UnityMusicLensDaemon *self)
static void _g_object_unref0_ (gpointer var)
static void _g_list_free__g_object_unref0_ (GList *self)
static void unity_music_lens_daemon_populate_categories (UnityMusicLensDaemon *self)
UnityMusicLensDaemon * unity_music_lens_daemon_new (void)
UnityMusicLensDaemon * unity_music_lens_daemon_construct (GType object_type)
static GObject * unity_music_lens_daemon_constructor (GType type, guint n_construct_properties, GObjectConstructParam *construct_properties)
UnityMusicLensBansheeScopeProxy * unity_music_lens_banshee_scope_proxy_new (void)
UnityMusicLensBansheeScopeProxy * unity_music_lens_banshee_scope_proxy_construct (GType object_type)
UnityScope * unity_music_lens_simple_scope_get_scope (UnityMusicLensSimpleScope *self)
UnityMusicLensRhythmboxScope * unity_music_lens_rhythmbox_scope_new (void)
UnityMusicLensRhythmboxScope * unity_music_lens_rhythmbox_scope_construct (GType object_type)
static void unity_music_lens_daemon_finalize (GObject *obj)
static gpointer _g_object_ref0 (gpointer self)
static void unity_music_lens_daemon_class_init (UnityMusicLensDaemonClass *klass)
static void unity_music_lens_daemon_instance_init (UnityMusicLensDaemon *self)

Variables

static gpointer unity_music_lens_daemon_parent_class = NULL

Class Documentation

struct _UnityMusicLensDaemon

Definition at line 78 of file daemon.c.

Class Members
GObject parent_instance
UnityMusicLensDaemonPrivate * priv
struct _UnityMusicLensDaemonClass

Definition at line 83 of file daemon.c.

Class Members
GObjectClass parent_class
struct _UnityMusicLensDaemonPrivate

Definition at line 87 of file daemon.c.

Class Members
UnityMusicLensBansheeScopeProxy * banshee
UnityLens * lens
UnityMusicLensRhythmboxScope * rb

Define Documentation

#define __g_list_free__g_object_unref0_0 (   var)    ((var == NULL) ? NULL : (var = (_g_list_free__g_object_unref0_ (var), NULL)))

Definition at line 75 of file daemon.c.

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

Definition at line 76 of file daemon.c.

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

Definition at line 74 of file daemon.c.

#define UNITY_MUSIC_LENS_BANSHEE_SCOPE_PROXY (   obj)    (G_TYPE_CHECK_INSTANCE_CAST ((obj), UNITY_MUSIC_LENS_TYPE_BANSHEE_SCOPE_PROXY, UnityMusicLensBansheeScopeProxy))

Definition at line 56 of file daemon.c.

#define UNITY_MUSIC_LENS_BANSHEE_SCOPE_PROXY_CLASS (   klass)    (G_TYPE_CHECK_CLASS_CAST ((klass), UNITY_MUSIC_LENS_TYPE_BANSHEE_SCOPE_PROXY, UnityMusicLensBansheeScopeProxyClass))

Definition at line 57 of file daemon.c.

#define UNITY_MUSIC_LENS_BANSHEE_SCOPE_PROXY_GET_CLASS (   obj)    (G_TYPE_INSTANCE_GET_CLASS ((obj), UNITY_MUSIC_LENS_TYPE_BANSHEE_SCOPE_PROXY, UnityMusicLensBansheeScopeProxyClass))

Definition at line 60 of file daemon.c.

#define UNITY_MUSIC_LENS_DAEMON (   obj)    (G_TYPE_CHECK_INSTANCE_CAST ((obj), UNITY_MUSIC_LENS_TYPE_DAEMON, UnityMusicLensDaemon))

Definition at line 35 of file daemon.c.

#define UNITY_MUSIC_LENS_DAEMON_CLASS (   klass)    (G_TYPE_CHECK_CLASS_CAST ((klass), UNITY_MUSIC_LENS_TYPE_DAEMON, UnityMusicLensDaemonClass))

Definition at line 36 of file daemon.c.

#define UNITY_MUSIC_LENS_DAEMON_GET_CLASS (   obj)    (G_TYPE_INSTANCE_GET_CLASS ((obj), UNITY_MUSIC_LENS_TYPE_DAEMON, UnityMusicLensDaemonClass))

Definition at line 39 of file daemon.c.

#define UNITY_MUSIC_LENS_DAEMON_GET_PRIVATE (   o)    (G_TYPE_INSTANCE_GET_PRIVATE ((o), UNITY_MUSIC_LENS_TYPE_DAEMON, UnityMusicLensDaemonPrivate))
#define UNITY_MUSIC_LENS_GENRE_BLUES_ID   "blues"

Definition at line 106 of file daemon.c.

#define UNITY_MUSIC_LENS_GENRE_CLASSIC_ID   "classic"

Definition at line 107 of file daemon.c.

#define UNITY_MUSIC_LENS_GENRE_COUNTRY_ID   "country"

Definition at line 108 of file daemon.c.

#define UNITY_MUSIC_LENS_GENRE_DISCO_ID   "disco"

Definition at line 109 of file daemon.c.

#define UNITY_MUSIC_LENS_GENRE_FUNK_ID   "funk"

Definition at line 110 of file daemon.c.

#define UNITY_MUSIC_LENS_GENRE_HIPHOP_ID   "hip-hop"

Definition at line 113 of file daemon.c.

#define UNITY_MUSIC_LENS_GENRE_HOUSE_ID   "house"

Definition at line 114 of file daemon.c.

#define UNITY_MUSIC_LENS_GENRE_JAZZ_ID   "jazz"

Definition at line 118 of file daemon.c.

#define UNITY_MUSIC_LENS_GENRE_METAL_ID   "metal"

Definition at line 112 of file daemon.c.

#define UNITY_MUSIC_LENS_GENRE_NEWWAVE_ID   "new-wave"

Definition at line 115 of file daemon.c.

#define UNITY_MUSIC_LENS_GENRE_OTHER_ID   "other"

Definition at line 123 of file daemon.c.

#define UNITY_MUSIC_LENS_GENRE_POP_ID   "pop"

Definition at line 119 of file daemon.c.

#define UNITY_MUSIC_LENS_GENRE_PUNK_ID   "punk"

Definition at line 117 of file daemon.c.

#define UNITY_MUSIC_LENS_GENRE_RANDB_ID   "r-and-b"

Definition at line 116 of file daemon.c.

#define UNITY_MUSIC_LENS_GENRE_REGGAE_ID   "reggae"

Definition at line 120 of file daemon.c.

#define UNITY_MUSIC_LENS_GENRE_ROCK_ID   "rock"

Definition at line 111 of file daemon.c.

#define UNITY_MUSIC_LENS_GENRE_SOUL_ID   "soul"

Definition at line 121 of file daemon.c.

#define UNITY_MUSIC_LENS_GENRE_TECHNO_ID   "techno"

Definition at line 122 of file daemon.c.

#define UNITY_MUSIC_LENS_ICON_PATH   "/usr/share/icons/unity-icon-theme/places/svg/"

Definition at line 96 of file daemon.c.

#define UNITY_MUSIC_LENS_IS_BANSHEE_SCOPE_PROXY (   obj)    (G_TYPE_CHECK_INSTANCE_TYPE ((obj), UNITY_MUSIC_LENS_TYPE_BANSHEE_SCOPE_PROXY))

Definition at line 58 of file daemon.c.

#define UNITY_MUSIC_LENS_IS_BANSHEE_SCOPE_PROXY_CLASS (   klass)    (G_TYPE_CHECK_CLASS_TYPE ((klass), UNITY_MUSIC_LENS_TYPE_BANSHEE_SCOPE_PROXY))

Definition at line 59 of file daemon.c.

#define UNITY_MUSIC_LENS_IS_DAEMON (   obj)    (G_TYPE_CHECK_INSTANCE_TYPE ((obj), UNITY_MUSIC_LENS_TYPE_DAEMON))

Definition at line 37 of file daemon.c.

#define UNITY_MUSIC_LENS_IS_DAEMON_CLASS (   klass)    (G_TYPE_CHECK_CLASS_TYPE ((klass), UNITY_MUSIC_LENS_TYPE_DAEMON))

Definition at line 38 of file daemon.c.

#define UNITY_MUSIC_LENS_IS_RHYTHMBOX_SCOPE (   obj)    (G_TYPE_CHECK_INSTANCE_TYPE ((obj), UNITY_MUSIC_LENS_TYPE_RHYTHMBOX_SCOPE))

Definition at line 68 of file daemon.c.

#define UNITY_MUSIC_LENS_IS_RHYTHMBOX_SCOPE_CLASS (   klass)    (G_TYPE_CHECK_CLASS_TYPE ((klass), UNITY_MUSIC_LENS_TYPE_RHYTHMBOX_SCOPE))

Definition at line 69 of file daemon.c.

#define UNITY_MUSIC_LENS_IS_SIMPLE_SCOPE (   obj)    (G_TYPE_CHECK_INSTANCE_TYPE ((obj), UNITY_MUSIC_LENS_TYPE_SIMPLE_SCOPE))

Definition at line 48 of file daemon.c.

#define UNITY_MUSIC_LENS_IS_SIMPLE_SCOPE_CLASS (   klass)    (G_TYPE_CHECK_CLASS_TYPE ((klass), UNITY_MUSIC_LENS_TYPE_SIMPLE_SCOPE))

Definition at line 49 of file daemon.c.

#define UNITY_MUSIC_LENS_RHYTHMBOX_SCOPE (   obj)    (G_TYPE_CHECK_INSTANCE_CAST ((obj), UNITY_MUSIC_LENS_TYPE_RHYTHMBOX_SCOPE, UnityMusicLensRhythmboxScope))

Definition at line 66 of file daemon.c.

#define UNITY_MUSIC_LENS_RHYTHMBOX_SCOPE_CLASS (   klass)    (G_TYPE_CHECK_CLASS_CAST ((klass), UNITY_MUSIC_LENS_TYPE_RHYTHMBOX_SCOPE, UnityMusicLensRhythmboxScopeClass))

Definition at line 67 of file daemon.c.

#define UNITY_MUSIC_LENS_RHYTHMBOX_SCOPE_GET_CLASS (   obj)    (G_TYPE_INSTANCE_GET_CLASS ((obj), UNITY_MUSIC_LENS_TYPE_RHYTHMBOX_SCOPE, UnityMusicLensRhythmboxScopeClass))

Definition at line 70 of file daemon.c.

#define UNITY_MUSIC_LENS_SIMPLE_SCOPE (   obj)    (G_TYPE_CHECK_INSTANCE_CAST ((obj), UNITY_MUSIC_LENS_TYPE_SIMPLE_SCOPE, UnityMusicLensSimpleScope))

Definition at line 46 of file daemon.c.

#define UNITY_MUSIC_LENS_SIMPLE_SCOPE_CLASS (   klass)    (G_TYPE_CHECK_CLASS_CAST ((klass), UNITY_MUSIC_LENS_TYPE_SIMPLE_SCOPE, UnityMusicLensSimpleScopeClass))

Definition at line 47 of file daemon.c.

#define UNITY_MUSIC_LENS_SIMPLE_SCOPE_GET_CLASS (   obj)    (G_TYPE_INSTANCE_GET_CLASS ((obj), UNITY_MUSIC_LENS_TYPE_SIMPLE_SCOPE, UnityMusicLensSimpleScopeClass))

Definition at line 50 of file daemon.c.

Definition at line 55 of file daemon.c.

Definition at line 34 of file daemon.c.

Definition at line 65 of file daemon.c.

Definition at line 45 of file daemon.c.


Typedef Documentation

Definition at line 62 of file daemon.c.

Definition at line 63 of file daemon.c.

typedef struct _UnityMusicLensDaemon

Definition at line 41 of file daemon.c.

Definition at line 42 of file daemon.c.

Definition at line 43 of file daemon.c.

Definition at line 72 of file daemon.c.

Definition at line 73 of file daemon.c.

Definition at line 52 of file daemon.c.

Definition at line 53 of file daemon.c.


Function Documentation

static void _g_list_free__g_object_unref0_ ( GList *  self) [static]

Definition at line 148 of file daemon.c.

                                                         {
       g_list_foreach (self, (GFunc) _g_object_unref0_, NULL);
       g_list_free (self);
}

Here is the call graph for this function:

static gpointer _g_object_ref0 ( gpointer  self) [static]

Definition at line 138 of file daemon.c.

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

Here is the caller graph for this function:

static void _g_object_unref0_ ( gpointer  var) [static]

Definition at line 143 of file daemon.c.

                                             {
       (var == NULL) ? NULL : (var = (g_object_unref (var), NULL));
}

Here is the caller graph for this function:

UnityMusicLensBansheeScopeProxy* unity_music_lens_banshee_scope_proxy_construct ( GType  object_type)

Definition at line 212 of file banshee-scope.c.

                                                                                                    {
       UnityMusicLensBansheeScopeProxy * self = NULL;
       UnityScope* _tmp0_;
       UnityScope* _tmp1_;
       UnityScope* _tmp2_;
       UnityScope* _tmp3_;
       UnityScope* _tmp4_;
       UnityScope* _tmp5_;
       UnityScope* _tmp6_;
       UnityScope* _tmp7_;
       UnityOptionsFilter* _tmp8_;
       UnityOptionsFilter* _tmp9_;
       const gchar* _tmp10_ = NULL;
       UnityFilterOption* _tmp11_ = NULL;
       UnityFilterOption* _tmp12_;
       GError * _inner_error_ = NULL;
       self = (UnityMusicLensBansheeScopeProxy*) unity_music_lens_simple_scope_construct (object_type);
       _tmp0_ = unity_scope_new ("/com/canonical/unity/scope/banshee");
       _tmp1_ = _tmp0_;
       unity_music_lens_simple_scope_set_scope ((UnityMusicLensSimpleScope*) self, _tmp1_);
       _g_object_unref0 (_tmp1_);
       _tmp2_ = unity_music_lens_simple_scope_get_scope ((UnityMusicLensSimpleScope*) self);
       _tmp3_ = _tmp2_;
       unity_scope_set_search_in_global (_tmp3_, TRUE);
       _tmp4_ = unity_music_lens_simple_scope_get_scope ((UnityMusicLensSimpleScope*) self);
       _tmp5_ = _tmp4_;
       g_signal_connect_object (_tmp5_, "activate-uri", (GCallback) _unity_music_lens_banshee_scope_proxy_activate_unity_scope_activate_uri, self, 0);
       _tmp6_ = unity_music_lens_simple_scope_get_scope ((UnityMusicLensSimpleScope*) self);
       _tmp7_ = _tmp6_;
       _tmp8_ = unity_scope_get_sources (_tmp7_);
       _tmp9_ = _tmp8_;
       _tmp10_ = _ ("Banshee");
       _tmp11_ = unity_options_filter_add_option (_tmp9_, "banshee", _tmp10_, NULL);
       _tmp12_ = _tmp11_;
       _g_object_unref0 (_tmp12_);
       unity_music_lens_simple_scope_initialize (UNITY_MUSIC_LENS_SIMPLE_SCOPE (self));
       {
              UnityMusicLensBansheeCollection* _tmp13_;
              UnityMusicLensBansheeCollection* _tmp14_;
              _tmp13_ = unity_music_lens_banshee_collection_new (&_inner_error_);
              _tmp14_ = _tmp13_;
              if (_inner_error_ != NULL) {
                     if (_inner_error_->domain == UNITY_MUSIC_LENS_DATABASE_ERROR) {
                            goto __catch0_unity_music_lens_database_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 NULL;
              }
              _g_object_unref0 (self->priv->collection);
              self->priv->collection = _tmp14_;
       }
       goto __finally0;
       __catch0_unity_music_lens_database_error:
       {
              GError* _error_ = NULL;
              _error_ = _inner_error_;
              _inner_error_ = NULL;
              g_printerr ("Failed to open the Banshee collection database\n");
              _g_error_free0 (_error_);
              return self;
       }
       __finally0:
       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 NULL;
       }
       return self;
}

Here is the call graph for this function:

Here is the caller graph for this function:

UnityMusicLensBansheeScopeProxy* unity_music_lens_banshee_scope_proxy_new ( void  )

Definition at line 284 of file banshee-scope.c.

Here is the call graph for this function:

Here is the caller graph for this function:

static void unity_music_lens_daemon_class_init ( UnityMusicLensDaemonClass *  klass) [static]

Definition at line 612 of file daemon.c.

                                                                                   {
       unity_music_lens_daemon_parent_class = g_type_class_peek_parent (klass);
       g_type_class_add_private (klass, sizeof (UnityMusicLensDaemonPrivate));
       G_OBJECT_CLASS (klass)->constructor = unity_music_lens_daemon_constructor;
       G_OBJECT_CLASS (klass)->finalize = unity_music_lens_daemon_finalize;
}

Here is the call graph for this function:

UnityMusicLensDaemon * unity_music_lens_daemon_construct ( GType  object_type)

Definition at line 489 of file daemon.c.

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

Here is the caller graph for this function:

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

Definition at line 501 of file daemon.c.

                                                                                                                                              {
       GObject * obj;
       GObjectClass * parent_class;
       UnityMusicLensDaemon * self;
       UnityLens* _tmp0_;
       UnityLens* _tmp1_;
       UnityLens* _tmp2_;
       const gchar* _tmp3_ = NULL;
       UnityLens* _tmp4_;
       const gchar* _tmp5_ = NULL;
       UnityLens* _tmp6_;
       GDesktopAppInfo* _tmp7_;
       GDesktopAppInfo* app_check;
       GDesktopAppInfo* _tmp8_;
       GDesktopAppInfo* _tmp14_;
       GDesktopAppInfo* _tmp15_;
       GError * _inner_error_ = NULL;
       parent_class = G_OBJECT_CLASS (unity_music_lens_daemon_parent_class);
       obj = parent_class->constructor (type, n_construct_properties, construct_properties);
       self = UNITY_MUSIC_LENS_DAEMON (obj);
       _tmp0_ = unity_lens_new ("/com/canonical/unity/lens/music", "music");
       _g_object_unref0 (self->priv->lens);
       self->priv->lens = _tmp0_;
       _tmp1_ = self->priv->lens;
       unity_lens_set_search_in_global (_tmp1_, TRUE);
       _tmp2_ = self->priv->lens;
       _tmp3_ = _ ("Search Music Collection");
       unity_lens_set_search_hint (_tmp2_, _tmp3_);
       _tmp4_ = self->priv->lens;
       _tmp5_ = _ ("Sources");
       unity_lens_set_sources_display_name (_tmp4_, _tmp5_);
       _tmp6_ = self->priv->lens;
       unity_lens_set_visible (_tmp6_, TRUE);
       unity_music_lens_daemon_populate_categories (self);
       unity_music_lens_daemon_populate_filters (self);
       _tmp7_ = g_desktop_app_info_new ("banshee.desktop");
       app_check = _tmp7_;
       _tmp8_ = app_check;
       if (_tmp8_ != NULL) {
              UnityMusicLensBansheeScopeProxy* _tmp9_;
              UnityLens* _tmp10_;
              UnityMusicLensBansheeScopeProxy* _tmp11_;
              UnityScope* _tmp12_;
              UnityScope* _tmp13_;
              _tmp9_ = unity_music_lens_banshee_scope_proxy_new ();
              _g_object_unref0 (self->priv->banshee);
              self->priv->banshee = _tmp9_;
              _tmp10_ = self->priv->lens;
              _tmp11_ = self->priv->banshee;
              _tmp12_ = unity_music_lens_simple_scope_get_scope ((UnityMusicLensSimpleScope*) _tmp11_);
              _tmp13_ = _tmp12_;
              unity_lens_add_local_scope (_tmp10_, _tmp13_);
       }
       _tmp14_ = g_desktop_app_info_new ("rhythmbox.desktop");
       _g_object_unref0 (app_check);
       app_check = _tmp14_;
       _tmp15_ = app_check;
       if (_tmp15_ != NULL) {
              UnityMusicLensRhythmboxScope* _tmp16_;
              UnityLens* _tmp17_;
              UnityMusicLensRhythmboxScope* _tmp18_;
              UnityScope* _tmp19_;
              UnityScope* _tmp20_;
              _tmp16_ = unity_music_lens_rhythmbox_scope_new ();
              _g_object_unref0 (self->priv->rb);
              self->priv->rb = _tmp16_;
              _tmp17_ = self->priv->lens;
              _tmp18_ = self->priv->rb;
              _tmp19_ = unity_music_lens_simple_scope_get_scope ((UnityMusicLensSimpleScope*) _tmp18_);
              _tmp20_ = _tmp19_;
              unity_lens_add_local_scope (_tmp17_, _tmp20_);
       }
       {
              UnityLens* _tmp21_;
              _tmp21_ = self->priv->lens;
              unity_lens_export (_tmp21_, &_inner_error_);
              if (_inner_error_ != NULL) {
                     if (_inner_error_->domain == G_IO_ERROR) {
                            goto __catch2_g_io_error;
                     }
                     _g_object_unref0 (app_check);
                     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_);
              }
       }
       goto __finally2;
       __catch2_g_io_error:
       {
              GError* e = NULL;
              FILE* _tmp22_;
              GError* _tmp23_;
              const gchar* _tmp24_;
              e = _inner_error_;
              _inner_error_ = NULL;
              _tmp22_ = stdout;
              _tmp23_ = e;
              _tmp24_ = _tmp23_->message;
              fprintf (_tmp22_, "error %s\n", _tmp24_);
              _g_error_free0 (e);
       }
       __finally2:
       if (_inner_error_ != NULL) {
              _g_object_unref0 (app_check);
              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_);
       }
       _g_object_unref0 (app_check);
       return obj;
}

Here is the call graph for this function:

Here is the caller graph for this function:

static void unity_music_lens_daemon_finalize ( GObject *  obj) [static]

Definition at line 625 of file daemon.c.

                                                            {
       UnityMusicLensDaemon * self;
       self = UNITY_MUSIC_LENS_DAEMON (obj);
       _g_object_unref0 (self->priv->lens);
       _g_object_unref0 (self->priv->banshee);
       _g_object_unref0 (self->priv->rb);
       G_OBJECT_CLASS (unity_music_lens_daemon_parent_class)->finalize (obj);
}

Here is the caller graph for this function:

Definition at line 97 of file daemon.c.

      {
       UNITY_MUSIC_LENS_DAEMON_DUMMY_PROPERTY
};
static void unity_music_lens_daemon_instance_init ( UnityMusicLensDaemon *  self) [static]

Definition at line 620 of file daemon.c.

                                                                                {
       self->priv = UNITY_MUSIC_LENS_DAEMON_GET_PRIVATE (self);
}
UnityMusicLensDaemon * unity_music_lens_daemon_new ( void  )

Definition at line 496 of file daemon.c.

Here is the call graph for this function:

Here is the caller graph for this function:

static void unity_music_lens_daemon_populate_categories ( UnityMusicLensDaemon *  self) [static]

Definition at line 365 of file daemon.c.

                                                                                     {
       GList* categories;
       GFile* _tmp0_ = NULL;
       GFile* icon_dir;
       const gchar* _tmp1_ = NULL;
       GFile* _tmp2_ = NULL;
       GFile* _tmp3_;
       GFileIcon* _tmp4_;
       GFileIcon* _tmp5_;
       UnityCategory* _tmp6_;
       UnityCategory* _tmp7_;
       UnityCategory* cat;
       UnityCategory* _tmp8_;
       UnityCategory* _tmp9_;
       const gchar* _tmp10_ = NULL;
       GFile* _tmp11_ = NULL;
       GFile* _tmp12_;
       GFileIcon* _tmp13_;
       GFileIcon* _tmp14_;
       UnityCategory* _tmp15_;
       UnityCategory* _tmp16_;
       UnityCategory* _tmp17_;
       const gchar* _tmp18_ = NULL;
       GFile* _tmp19_ = NULL;
       GFile* _tmp20_;
       GFileIcon* _tmp21_;
       GFileIcon* _tmp22_;
       UnityCategory* _tmp23_;
       UnityCategory* _tmp24_;
       UnityCategory* _tmp25_;
       const gchar* _tmp26_ = NULL;
       GFile* _tmp27_ = NULL;
       GFile* _tmp28_;
       GFileIcon* _tmp29_;
       GFileIcon* _tmp30_;
       UnityCategory* _tmp31_;
       UnityCategory* _tmp32_;
       UnityCategory* _tmp33_;
       const gchar* _tmp34_ = NULL;
       GFile* _tmp35_ = NULL;
       GFile* _tmp36_;
       GFileIcon* _tmp37_;
       GFileIcon* _tmp38_;
       UnityCategory* _tmp39_;
       UnityCategory* _tmp40_;
       UnityCategory* _tmp41_;
       UnityLens* _tmp42_;
       g_return_if_fail (self != NULL);
       categories = NULL;
       _tmp0_ = g_file_new_for_path (UNITY_MUSIC_LENS_ICON_PATH);
       icon_dir = _tmp0_;
       _tmp1_ = _ ("Songs");
       _tmp2_ = g_file_get_child (icon_dir, "group-songs.svg");
       _tmp3_ = _tmp2_;
       _tmp4_ = (GFileIcon*) g_file_icon_new (_tmp3_);
       _tmp5_ = _tmp4_;
       _tmp6_ = unity_category_new (_tmp1_, (GIcon*) _tmp5_, UNITY_CATEGORY_RENDERER_VERTICAL_TILE);
       _tmp7_ = _tmp6_;
       _g_object_unref0 (_tmp5_);
       _g_object_unref0 (_tmp3_);
       cat = _tmp7_;
       _tmp8_ = cat;
       _tmp9_ = _g_object_ref0 (_tmp8_);
       categories = g_list_append (categories, _tmp9_);
       _tmp10_ = _ ("Albums");
       _tmp11_ = g_file_get_child (icon_dir, "group-albums.svg");
       _tmp12_ = _tmp11_;
       _tmp13_ = (GFileIcon*) g_file_icon_new (_tmp12_);
       _tmp14_ = _tmp13_;
       _tmp15_ = unity_category_new (_tmp10_, (GIcon*) _tmp14_, UNITY_CATEGORY_RENDERER_VERTICAL_TILE);
       _g_object_unref0 (cat);
       cat = _tmp15_;
       _g_object_unref0 (_tmp14_);
       _g_object_unref0 (_tmp12_);
       _tmp16_ = cat;
       _tmp17_ = _g_object_ref0 (_tmp16_);
       categories = g_list_append (categories, _tmp17_);
       _tmp18_ = _ ("Available for Purchase");
       _tmp19_ = g_file_get_child (icon_dir, "group-purchase.svg");
       _tmp20_ = _tmp19_;
       _tmp21_ = (GFileIcon*) g_file_icon_new (_tmp20_);
       _tmp22_ = _tmp21_;
       _tmp23_ = unity_category_new (_tmp18_, (GIcon*) _tmp22_, UNITY_CATEGORY_RENDERER_VERTICAL_TILE);
       _g_object_unref0 (cat);
       cat = _tmp23_;
       _g_object_unref0 (_tmp22_);
       _g_object_unref0 (_tmp20_);
       _tmp24_ = cat;
       _tmp25_ = _g_object_ref0 (_tmp24_);
       categories = g_list_append (categories, _tmp25_);
       _tmp26_ = _ ("Music");
       _tmp27_ = g_file_get_child (icon_dir, "group-songs.svg");
       _tmp28_ = _tmp27_;
       _tmp29_ = (GFileIcon*) g_file_icon_new (_tmp28_);
       _tmp30_ = _tmp29_;
       _tmp31_ = unity_category_new (_tmp26_, (GIcon*) _tmp30_, UNITY_CATEGORY_RENDERER_VERTICAL_TILE);
       _g_object_unref0 (cat);
       cat = _tmp31_;
       _g_object_unref0 (_tmp30_);
       _g_object_unref0 (_tmp28_);
       _tmp32_ = cat;
       _tmp33_ = _g_object_ref0 (_tmp32_);
       categories = g_list_append (categories, _tmp33_);
       _tmp34_ = _ ("Radio");
       _tmp35_ = g_file_get_child (icon_dir, "group-songs.svg");
       _tmp36_ = _tmp35_;
       _tmp37_ = (GFileIcon*) g_file_icon_new (_tmp36_);
       _tmp38_ = _tmp37_;
       _tmp39_ = unity_category_new (_tmp34_, (GIcon*) _tmp38_, UNITY_CATEGORY_RENDERER_VERTICAL_TILE);
       _g_object_unref0 (cat);
       cat = _tmp39_;
       _g_object_unref0 (_tmp38_);
       _g_object_unref0 (_tmp36_);
       _tmp40_ = cat;
       _tmp41_ = _g_object_ref0 (_tmp40_);
       categories = g_list_append (categories, _tmp41_);
       _tmp42_ = self->priv->lens;
       unity_lens_set_categories (_tmp42_, categories);
       _g_object_unref0 (cat);
       _g_object_unref0 (icon_dir);
       __g_list_free__g_object_unref0_0 (categories);
}

Here is the call graph for this function:

Here is the caller graph for this function:

static void unity_music_lens_daemon_populate_filters ( UnityMusicLensDaemon *  self) [static]

Definition at line 154 of file daemon.c.

                                                                                  {
       GList* filters;
       UnityLens* _tmp81_;
       g_return_if_fail (self != NULL);
       filters = NULL;
       {
              const gchar* _tmp0_ = NULL;
              UnityMultiRangeFilter* _tmp1_;
              UnityMultiRangeFilter* filter;
              const gchar* _tmp2_ = NULL;
              UnityFilterOption* _tmp3_ = NULL;
              UnityFilterOption* _tmp4_;
              const gchar* _tmp5_ = NULL;
              UnityFilterOption* _tmp6_ = NULL;
              UnityFilterOption* _tmp7_;
              const gchar* _tmp8_ = NULL;
              UnityFilterOption* _tmp9_ = NULL;
              UnityFilterOption* _tmp10_;
              const gchar* _tmp11_ = NULL;
              UnityFilterOption* _tmp12_ = NULL;
              UnityFilterOption* _tmp13_;
              const gchar* _tmp14_ = NULL;
              UnityFilterOption* _tmp15_ = NULL;
              UnityFilterOption* _tmp16_;
              const gchar* _tmp17_ = NULL;
              UnityFilterOption* _tmp18_ = NULL;
              UnityFilterOption* _tmp19_;
              const gchar* _tmp20_ = NULL;
              UnityFilterOption* _tmp21_ = NULL;
              UnityFilterOption* _tmp22_;
              UnityFilter* _tmp23_;
              _tmp0_ = _ ("Decade");
              _tmp1_ = unity_multi_range_filter_new ("decade", _tmp0_, NULL, FALSE);
              filter = _tmp1_;
              _tmp2_ = _ ("Old");
              _tmp3_ = unity_options_filter_add_option ((UnityOptionsFilter*) filter, "0", _tmp2_, NULL);
              _tmp4_ = _tmp3_;
              _g_object_unref0 (_tmp4_);
              _tmp5_ = _ ("60s");
              _tmp6_ = unity_options_filter_add_option ((UnityOptionsFilter*) filter, "1960", _tmp5_, NULL);
              _tmp7_ = _tmp6_;
              _g_object_unref0 (_tmp7_);
              _tmp8_ = _ ("70s");
              _tmp9_ = unity_options_filter_add_option ((UnityOptionsFilter*) filter, "1970", _tmp8_, NULL);
              _tmp10_ = _tmp9_;
              _g_object_unref0 (_tmp10_);
              _tmp11_ = _ ("80s");
              _tmp12_ = unity_options_filter_add_option ((UnityOptionsFilter*) filter, "1980", _tmp11_, NULL);
              _tmp13_ = _tmp12_;
              _g_object_unref0 (_tmp13_);
              _tmp14_ = _ ("90s");
              _tmp15_ = unity_options_filter_add_option ((UnityOptionsFilter*) filter, "1990", _tmp14_, NULL);
              _tmp16_ = _tmp15_;
              _g_object_unref0 (_tmp16_);
              _tmp17_ = _ ("00s");
              _tmp18_ = unity_options_filter_add_option ((UnityOptionsFilter*) filter, "2000", _tmp17_, NULL);
              _tmp19_ = _tmp18_;
              _g_object_unref0 (_tmp19_);
              _tmp20_ = _ ("10s");
              _tmp21_ = unity_options_filter_add_option ((UnityOptionsFilter*) filter, "2010", _tmp20_, NULL);
              _tmp22_ = _tmp21_;
              _g_object_unref0 (_tmp22_);
              _tmp23_ = _g_object_ref0 ((UnityFilter*) filter);
              filters = g_list_append (filters, _tmp23_);
              _g_object_unref0 (filter);
       }
       {
              const gchar* _tmp24_ = NULL;
              UnityCheckOptionFilterCompact* _tmp25_;
              UnityCheckOptionFilterCompact* filter;
              const gchar* _tmp26_ = NULL;
              UnityFilterOption* _tmp27_ = NULL;
              UnityFilterOption* _tmp28_;
              const gchar* _tmp29_ = NULL;
              UnityFilterOption* _tmp30_ = NULL;
              UnityFilterOption* _tmp31_;
              const gchar* _tmp32_ = NULL;
              UnityFilterOption* _tmp33_ = NULL;
              UnityFilterOption* _tmp34_;
              const gchar* _tmp35_ = NULL;
              UnityFilterOption* _tmp36_ = NULL;
              UnityFilterOption* _tmp37_;
              const gchar* _tmp38_ = NULL;
              UnityFilterOption* _tmp39_ = NULL;
              UnityFilterOption* _tmp40_;
              const gchar* _tmp41_ = NULL;
              UnityFilterOption* _tmp42_ = NULL;
              UnityFilterOption* _tmp43_;
              const gchar* _tmp44_ = NULL;
              UnityFilterOption* _tmp45_ = NULL;
              UnityFilterOption* _tmp46_;
              const gchar* _tmp47_ = NULL;
              UnityFilterOption* _tmp48_ = NULL;
              UnityFilterOption* _tmp49_;
              const gchar* _tmp50_ = NULL;
              UnityFilterOption* _tmp51_ = NULL;
              UnityFilterOption* _tmp52_;
              const gchar* _tmp53_ = NULL;
              UnityFilterOption* _tmp54_ = NULL;
              UnityFilterOption* _tmp55_;
              const gchar* _tmp56_ = NULL;
              UnityFilterOption* _tmp57_ = NULL;
              UnityFilterOption* _tmp58_;
              const gchar* _tmp59_ = NULL;
              UnityFilterOption* _tmp60_ = NULL;
              UnityFilterOption* _tmp61_;
              const gchar* _tmp62_ = NULL;
              UnityFilterOption* _tmp63_ = NULL;
              UnityFilterOption* _tmp64_;
              const gchar* _tmp65_ = NULL;
              UnityFilterOption* _tmp66_ = NULL;
              UnityFilterOption* _tmp67_;
              const gchar* _tmp68_ = NULL;
              UnityFilterOption* _tmp69_ = NULL;
              UnityFilterOption* _tmp70_;
              const gchar* _tmp71_ = NULL;
              UnityFilterOption* _tmp72_ = NULL;
              UnityFilterOption* _tmp73_;
              const gchar* _tmp74_ = NULL;
              UnityFilterOption* _tmp75_ = NULL;
              UnityFilterOption* _tmp76_;
              const gchar* _tmp77_ = NULL;
              UnityFilterOption* _tmp78_ = NULL;
              UnityFilterOption* _tmp79_;
              UnityFilter* _tmp80_;
              _tmp24_ = _ ("Genre");
              _tmp25_ = unity_check_option_filter_compact_new ("genre", _tmp24_, NULL, FALSE);
              filter = _tmp25_;
              unity_options_filter_set_sort_type ((UnityOptionsFilter*) filter, UNITY_OPTIONS_FILTER_SORT_TYPE_DISPLAY_NAME);
              _tmp26_ = _ ("Blues");
              _tmp27_ = unity_options_filter_add_option ((UnityOptionsFilter*) filter, UNITY_MUSIC_LENS_GENRE_BLUES_ID, _tmp26_, NULL);
              _tmp28_ = _tmp27_;
              _g_object_unref0 (_tmp28_);
              _tmp29_ = _ ("Classic");
              _tmp30_ = unity_options_filter_add_option ((UnityOptionsFilter*) filter, UNITY_MUSIC_LENS_GENRE_CLASSIC_ID, _tmp29_, NULL);
              _tmp31_ = _tmp30_;
              _g_object_unref0 (_tmp31_);
              _tmp32_ = _ ("Country");
              _tmp33_ = unity_options_filter_add_option ((UnityOptionsFilter*) filter, UNITY_MUSIC_LENS_GENRE_COUNTRY_ID, _tmp32_, NULL);
              _tmp34_ = _tmp33_;
              _g_object_unref0 (_tmp34_);
              _tmp35_ = _ ("Disco");
              _tmp36_ = unity_options_filter_add_option ((UnityOptionsFilter*) filter, UNITY_MUSIC_LENS_GENRE_DISCO_ID, _tmp35_, NULL);
              _tmp37_ = _tmp36_;
              _g_object_unref0 (_tmp37_);
              _tmp38_ = _ ("Funk");
              _tmp39_ = unity_options_filter_add_option ((UnityOptionsFilter*) filter, UNITY_MUSIC_LENS_GENRE_FUNK_ID, _tmp38_, NULL);
              _tmp40_ = _tmp39_;
              _g_object_unref0 (_tmp40_);
              _tmp41_ = _ ("Rock");
              _tmp42_ = unity_options_filter_add_option ((UnityOptionsFilter*) filter, UNITY_MUSIC_LENS_GENRE_ROCK_ID, _tmp41_, NULL);
              _tmp43_ = _tmp42_;
              _g_object_unref0 (_tmp43_);
              _tmp44_ = _ ("Metal");
              _tmp45_ = unity_options_filter_add_option ((UnityOptionsFilter*) filter, UNITY_MUSIC_LENS_GENRE_METAL_ID, _tmp44_, NULL);
              _tmp46_ = _tmp45_;
              _g_object_unref0 (_tmp46_);
              _tmp47_ = _ ("Hip-hop");
              _tmp48_ = unity_options_filter_add_option ((UnityOptionsFilter*) filter, UNITY_MUSIC_LENS_GENRE_HIPHOP_ID, _tmp47_, NULL);
              _tmp49_ = _tmp48_;
              _g_object_unref0 (_tmp49_);
              _tmp50_ = _ ("House");
              _tmp51_ = unity_options_filter_add_option ((UnityOptionsFilter*) filter, UNITY_MUSIC_LENS_GENRE_HOUSE_ID, _tmp50_, NULL);
              _tmp52_ = _tmp51_;
              _g_object_unref0 (_tmp52_);
              _tmp53_ = _ ("New-wave");
              _tmp54_ = unity_options_filter_add_option ((UnityOptionsFilter*) filter, UNITY_MUSIC_LENS_GENRE_NEWWAVE_ID, _tmp53_, NULL);
              _tmp55_ = _tmp54_;
              _g_object_unref0 (_tmp55_);
              _tmp56_ = _ ("R&B");
              _tmp57_ = unity_options_filter_add_option ((UnityOptionsFilter*) filter, UNITY_MUSIC_LENS_GENRE_RANDB_ID, _tmp56_, NULL);
              _tmp58_ = _tmp57_;
              _g_object_unref0 (_tmp58_);
              _tmp59_ = _ ("Punk");
              _tmp60_ = unity_options_filter_add_option ((UnityOptionsFilter*) filter, UNITY_MUSIC_LENS_GENRE_PUNK_ID, _tmp59_, NULL);
              _tmp61_ = _tmp60_;
              _g_object_unref0 (_tmp61_);
              _tmp62_ = _ ("Jazz");
              _tmp63_ = unity_options_filter_add_option ((UnityOptionsFilter*) filter, UNITY_MUSIC_LENS_GENRE_JAZZ_ID, _tmp62_, NULL);
              _tmp64_ = _tmp63_;
              _g_object_unref0 (_tmp64_);
              _tmp65_ = _ ("Pop");
              _tmp66_ = unity_options_filter_add_option ((UnityOptionsFilter*) filter, UNITY_MUSIC_LENS_GENRE_POP_ID, _tmp65_, NULL);
              _tmp67_ = _tmp66_;
              _g_object_unref0 (_tmp67_);
              _tmp68_ = _ ("Reggae");
              _tmp69_ = unity_options_filter_add_option ((UnityOptionsFilter*) filter, UNITY_MUSIC_LENS_GENRE_REGGAE_ID, _tmp68_, NULL);
              _tmp70_ = _tmp69_;
              _g_object_unref0 (_tmp70_);
              _tmp71_ = _ ("Soul");
              _tmp72_ = unity_options_filter_add_option ((UnityOptionsFilter*) filter, UNITY_MUSIC_LENS_GENRE_SOUL_ID, _tmp71_, NULL);
              _tmp73_ = _tmp72_;
              _g_object_unref0 (_tmp73_);
              _tmp74_ = _ ("Techno");
              _tmp75_ = unity_options_filter_add_option ((UnityOptionsFilter*) filter, UNITY_MUSIC_LENS_GENRE_TECHNO_ID, _tmp74_, NULL);
              _tmp76_ = _tmp75_;
              _g_object_unref0 (_tmp76_);
              _tmp77_ = _ ("Other");
              _tmp78_ = unity_options_filter_add_option ((UnityOptionsFilter*) filter, UNITY_MUSIC_LENS_GENRE_OTHER_ID, _tmp77_, NULL);
              _tmp79_ = _tmp78_;
              _g_object_unref0 (_tmp79_);
              _tmp80_ = _g_object_ref0 ((UnityFilter*) filter);
              filters = g_list_append (filters, _tmp80_);
              _g_object_unref0 (filter);
       }
       _tmp81_ = self->priv->lens;
       unity_lens_set_filters (_tmp81_, filters);
       __g_list_free__g_object_unref0_0 (filters);
}

Here is the call graph for this function:

Here is the caller graph for this function:

UnityMusicLensRhythmboxScope * unity_music_lens_rhythmbox_scope_construct ( GType  object_type)

Definition at line 262 of file rhythmbox-scope.c.

                                                                                             {
       UnityMusicLensRhythmboxScope * self = NULL;
       UnityScope* _tmp0_;
       UnityScope* _tmp1_;
       UnityScope* _tmp2_;
       UnityScope* _tmp3_;
       UnityScope* _tmp4_;
       UnityScope* _tmp5_;
       UnityScope* _tmp6_;
       UnityScope* _tmp7_;
       UnityOptionsFilter* _tmp8_;
       UnityOptionsFilter* _tmp9_;
       const gchar* _tmp10_ = NULL;
       UnityFilterOption* _tmp11_ = NULL;
       UnityFilterOption* _tmp12_;
       UnityMusicLensRhythmboxCollection* _tmp13_;
       self = (UnityMusicLensRhythmboxScope*) unity_music_lens_simple_scope_construct (object_type);
       _tmp0_ = unity_scope_new ("/com/canonical/unity/scope/rhythmbox");
       _tmp1_ = _tmp0_;
       unity_music_lens_simple_scope_set_scope ((UnityMusicLensSimpleScope*) self, _tmp1_);
       _g_object_unref0 (_tmp1_);
       _tmp2_ = unity_music_lens_simple_scope_get_scope ((UnityMusicLensSimpleScope*) self);
       _tmp3_ = _tmp2_;
       unity_scope_set_search_in_global (_tmp3_, TRUE);
       _tmp4_ = unity_music_lens_simple_scope_get_scope ((UnityMusicLensSimpleScope*) self);
       _tmp5_ = _tmp4_;
       g_signal_connect_object (_tmp5_, "activate-uri", (GCallback) _unity_music_lens_rhythmbox_scope_activate_unity_scope_activate_uri, self, 0);
       _tmp6_ = unity_music_lens_simple_scope_get_scope ((UnityMusicLensSimpleScope*) self);
       _tmp7_ = _tmp6_;
       _tmp8_ = unity_scope_get_sources (_tmp7_);
       _tmp9_ = _tmp8_;
       _tmp10_ = _ ("Rhythmbox");
       _tmp11_ = unity_options_filter_add_option (_tmp9_, "rhythmbox", _tmp10_, NULL);
       _tmp12_ = _tmp11_;
       _g_object_unref0 (_tmp12_);
       unity_music_lens_simple_scope_initialize (UNITY_MUSIC_LENS_SIMPLE_SCOPE (self));
       _tmp13_ = unity_music_lens_rhythmbox_collection_new ();
       _g_object_unref0 (self->priv->collection);
       self->priv->collection = _tmp13_;
       self->priv->db_ready = FALSE;
       return self;
}

Here is the call graph for this function:

Here is the caller graph for this function:

UnityMusicLensRhythmboxScope * unity_music_lens_rhythmbox_scope_new ( void  )

Definition at line 306 of file rhythmbox-scope.c.

Here is the call graph for this function:

Here is the caller graph for this function:

UnityScope* unity_music_lens_simple_scope_get_scope ( UnityMusicLensSimpleScope *  self)

Definition at line 701 of file simple-scope.c.

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

Variable Documentation

gpointer unity_music_lens_daemon_parent_class = NULL [static]

Definition at line 94 of file daemon.c.