Back to index

libunity  5.92.0
Classes | Defines | Typedefs | Functions | Variables
unity-lens.c File Reference
#include <glib.h>
#include <glib-object.h>
#include "unity.h"
#include <stdlib.h>
#include <string.h>
#include <gio/gio.h>
#include <dee.h>

Go to the source code of this file.

Classes

struct  _UnityLensPrivate

Defines

#define UNITY_TYPE_LENS_IMPL   (unity_lens_impl_get_type ())
#define UNITY_LENS_IMPL(obj)   (G_TYPE_CHECK_INSTANCE_CAST ((obj), UNITY_TYPE_LENS_IMPL, UnityLensImpl))
#define UNITY_LENS_IMPL_CLASS(klass)   (G_TYPE_CHECK_CLASS_CAST ((klass), UNITY_TYPE_LENS_IMPL, UnityLensImplClass))
#define UNITY_IS_LENS_IMPL(obj)   (G_TYPE_CHECK_INSTANCE_TYPE ((obj), UNITY_TYPE_LENS_IMPL))
#define UNITY_IS_LENS_IMPL_CLASS(klass)   (G_TYPE_CHECK_CLASS_TYPE ((klass), UNITY_TYPE_LENS_IMPL))
#define UNITY_LENS_IMPL_GET_CLASS(obj)   (G_TYPE_INSTANCE_GET_CLASS ((obj), UNITY_TYPE_LENS_IMPL, UnityLensImplClass))
#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_list_free__g_object_unref0_0(var)   ((var == NULL) ? NULL : (var = (_g_list_free__g_object_unref0_ (var), NULL)))
#define UNITY_TYPE_RESULTS_SYNCHRONIZER   (unity_results_synchronizer_get_type ())
#define UNITY_RESULTS_SYNCHRONIZER(obj)   (G_TYPE_CHECK_INSTANCE_CAST ((obj), UNITY_TYPE_RESULTS_SYNCHRONIZER, UnityResultsSynchronizer))
#define UNITY_RESULTS_SYNCHRONIZER_CLASS(klass)   (G_TYPE_CHECK_CLASS_CAST ((klass), UNITY_TYPE_RESULTS_SYNCHRONIZER, UnityResultsSynchronizerClass))
#define UNITY_IS_RESULTS_SYNCHRONIZER(obj)   (G_TYPE_CHECK_INSTANCE_TYPE ((obj), UNITY_TYPE_RESULTS_SYNCHRONIZER))
#define UNITY_IS_RESULTS_SYNCHRONIZER_CLASS(klass)   (G_TYPE_CHECK_CLASS_TYPE ((klass), UNITY_TYPE_RESULTS_SYNCHRONIZER))
#define UNITY_RESULTS_SYNCHRONIZER_GET_CLASS(obj)   (G_TYPE_INSTANCE_GET_CLASS ((obj), UNITY_TYPE_RESULTS_SYNCHRONIZER, UnityResultsSynchronizerClass))
#define UNITY_LENS_GET_PRIVATE(o)   (G_TYPE_INSTANCE_GET_PRIVATE ((o), UNITY_TYPE_LENS, UnityLensPrivate))
#define UNITY_LENS_SOURCES_FILTER_ID   "unity-sources"

Typedefs

typedef struct _UnityLensImpl
typedef struct _UnityLensImplClass
typedef struct _UnityResultsSynchronizer
typedef struct _UnityResultsSynchronizerClass

Functions

GType unity_lens_impl_get_type (void)
static void _g_object_unref0_ (gpointer var)
static void _g_list_free__g_object_unref0_ (GList *self)
void unity_lens_impl_export (UnityLensImpl *self, GError **error)
static void unity_lens_set_exported (UnityLens *self, gboolean value)
void unity_lens_impl_add_local_scope (UnityLensImpl *self, UnityScope *scope)
void unity_lens_set_active_internal (UnityLens *self, gboolean is_active)
static void unity_lens_set_active (UnityLens *self, gboolean value)
UnityOptionsFilter * unity_lens_get_sources_internal (UnityLens *self)
UnityOptionsFilter * unity_lens_impl_get_sources (UnityLensImpl *self)
DeeModel * unity_lens_get_model_internal (UnityLens *self, gint index)
DeeModel * unity_lens_impl_get_model (UnityLensImpl *self, gint index)
static void unity_lens_set_searching (UnityLens *self, gboolean value)
void unity_lens_impl_load_filters (UnityLensImpl *self, GList *filters)
void unity_lens_impl_load_categories (UnityLensImpl *self, GList *categories)
GType unity_results_synchronizer_get_type (void)
UnityLens * unity_lens_construct (GType object_type, const gchar *dbus_path_, const gchar *id_)
UnityLens * unity_lens_new (const gchar *dbus_path_, const gchar *id_)
void unity_lens_export (UnityLens *self, GError **error)
void unity_lens_add_local_scope (UnityLens *self, UnityScope *scope)
gboolean unity_lens_get_active (UnityLens *self)
gboolean unity_lens_get_visible (UnityLens *self)
void unity_lens_set_visible (UnityLens *self, gboolean value)
gboolean unity_lens_get_searching (UnityLens *self)
gboolean unity_lens_get_exported (UnityLens *self)
gboolean unity_lens_get_search_in_global (UnityLens *self)
void unity_lens_set_search_in_global (UnityLens *self, gboolean value)
const gchar * unity_lens_get_id (UnityLens *self)
static void unity_lens_set_id (UnityLens *self, const gchar *value)
const gchar * unity_lens_get_dbus_path (UnityLens *self)
static void unity_lens_set_dbus_path (UnityLens *self, const gchar *value)
const gchar * unity_lens_get_search_hint (UnityLens *self)
void unity_lens_set_search_hint (UnityLens *self, const gchar *value)
GList * unity_lens_get_filters (UnityLens *self)
static gpointer _g_object_ref0 (gpointer self)
void unity_lens_set_filters (UnityLens *self, GList *value)
GList * unity_lens_get_categories (UnityLens *self)
void unity_lens_set_categories (UnityLens *self, GList *value)
UnityMergeStrategy * unity_lens_get_merge_strategy (UnityLens *self)
void unity_lens_set_merge_strategy (UnityLens *self, UnityMergeStrategy *value)
UnityMergeStrategy * unity_lens_get_global_merge_strategy (UnityLens *self)
void unity_lens_set_global_merge_strategy (UnityLens *self, UnityMergeStrategy *value)
const gchar * unity_lens_get_sources_display_name (UnityLens *self)
void unity_lens_set_sources_display_name (UnityLens *self, const gchar *value)
static GObject * unity_lens_constructor (GType type, guint n_construct_properties, GObjectConstructParam *construct_properties)
static void unity_lens_class_init (UnityLensClass *klass)
static void unity_lens_instance_init (UnityLens *self)
static void unity_lens_finalize (GObject *obj)
GType unity_lens_get_type (void)
static void _vala_unity_lens_get_property (GObject *object, guint property_id, GValue *value, GParamSpec *pspec)
static void _vala_unity_lens_set_property (GObject *object, guint property_id, const GValue *value, GParamSpec *pspec)

Variables

static gpointer unity_lens_parent_class = NULL

Class Documentation

struct _UnityLensPrivate

Definition at line 56 of file unity-lens.c.

Class Members
gboolean _active
GList * _categories
gchar * _dbus_path
gboolean _exported
GList * _filters
gchar * _id
UnityLensImpl * _pimpl
gchar * _search_hint
gboolean _search_in_global
gboolean _searching
gchar * _sources_display_name
gboolean _visible

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 44 of file unity-lens.c.

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

Definition at line 42 of file unity-lens.c.

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

Definition at line 43 of file unity-lens.c.

#define UNITY_IS_LENS_IMPL (   obj)    (G_TYPE_CHECK_INSTANCE_TYPE ((obj), UNITY_TYPE_LENS_IMPL))

Definition at line 36 of file unity-lens.c.

#define UNITY_IS_LENS_IMPL_CLASS (   klass)    (G_TYPE_CHECK_CLASS_TYPE ((klass), UNITY_TYPE_LENS_IMPL))

Definition at line 37 of file unity-lens.c.

#define UNITY_IS_RESULTS_SYNCHRONIZER (   obj)    (G_TYPE_CHECK_INSTANCE_TYPE ((obj), UNITY_TYPE_RESULTS_SYNCHRONIZER))

Definition at line 49 of file unity-lens.c.

#define UNITY_IS_RESULTS_SYNCHRONIZER_CLASS (   klass)    (G_TYPE_CHECK_CLASS_TYPE ((klass), UNITY_TYPE_RESULTS_SYNCHRONIZER))

Definition at line 50 of file unity-lens.c.

#define UNITY_LENS_GET_PRIVATE (   o)    (G_TYPE_INSTANCE_GET_PRIVATE ((o), UNITY_TYPE_LENS, UnityLensPrivate))
#define UNITY_LENS_IMPL (   obj)    (G_TYPE_CHECK_INSTANCE_CAST ((obj), UNITY_TYPE_LENS_IMPL, UnityLensImpl))

Definition at line 34 of file unity-lens.c.

#define UNITY_LENS_IMPL_CLASS (   klass)    (G_TYPE_CHECK_CLASS_CAST ((klass), UNITY_TYPE_LENS_IMPL, UnityLensImplClass))

Definition at line 35 of file unity-lens.c.

#define UNITY_LENS_IMPL_GET_CLASS (   obj)    (G_TYPE_INSTANCE_GET_CLASS ((obj), UNITY_TYPE_LENS_IMPL, UnityLensImplClass))

Definition at line 38 of file unity-lens.c.

#define UNITY_LENS_SOURCES_FILTER_ID   "unity-sources"

Definition at line 94 of file unity-lens.c.

#define UNITY_RESULTS_SYNCHRONIZER (   obj)    (G_TYPE_CHECK_INSTANCE_CAST ((obj), UNITY_TYPE_RESULTS_SYNCHRONIZER, UnityResultsSynchronizer))

Definition at line 47 of file unity-lens.c.

#define UNITY_RESULTS_SYNCHRONIZER_CLASS (   klass)    (G_TYPE_CHECK_CLASS_CAST ((klass), UNITY_TYPE_RESULTS_SYNCHRONIZER, UnityResultsSynchronizerClass))

Definition at line 48 of file unity-lens.c.

#define UNITY_RESULTS_SYNCHRONIZER_GET_CLASS (   obj)    (G_TYPE_INSTANCE_GET_CLASS ((obj), UNITY_TYPE_RESULTS_SYNCHRONIZER, UnityResultsSynchronizerClass))

Definition at line 51 of file unity-lens.c.

Definition at line 33 of file unity-lens.c.

Definition at line 46 of file unity-lens.c.


Typedef Documentation

typedef struct _UnityLensImpl

Definition at line 40 of file unity-lens.c.

typedef struct _UnityLensImplClass

Definition at line 41 of file unity-lens.c.

typedef struct _UnityResultsSynchronizer

Definition at line 53 of file unity-lens.c.

Definition at line 54 of file unity-lens.c.


Function Documentation

static void _g_list_free__g_object_unref0_ ( GList *  self) [static]

Definition at line 125 of file unity-lens.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 389 of file unity-lens.c.

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

Here is the caller graph for this function:

static void _g_object_unref0_ ( gpointer  var) [static]

Here is the caller graph for this function:

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

Definition at line 644 of file unity-lens.c.

                                                                                                                    {
       UnityLens * self;
       self = G_TYPE_CHECK_INSTANCE_CAST (object, UNITY_TYPE_LENS, UnityLens);
       switch (property_id) {
              case UNITY_LENS_ACTIVE:
              g_value_set_boolean (value, unity_lens_get_active (self));
              break;
              case UNITY_LENS_VISIBLE:
              g_value_set_boolean (value, unity_lens_get_visible (self));
              break;
              case UNITY_LENS_SEARCHING:
              g_value_set_boolean (value, unity_lens_get_searching (self));
              break;
              case UNITY_LENS_EXPORTED:
              g_value_set_boolean (value, unity_lens_get_exported (self));
              break;
              case UNITY_LENS_SEARCH_IN_GLOBAL:
              g_value_set_boolean (value, unity_lens_get_search_in_global (self));
              break;
              case UNITY_LENS_ID:
              g_value_set_string (value, unity_lens_get_id (self));
              break;
              case UNITY_LENS_DBUS_PATH:
              g_value_set_string (value, unity_lens_get_dbus_path (self));
              break;
              case UNITY_LENS_SEARCH_HINT:
              g_value_set_string (value, unity_lens_get_search_hint (self));
              break;
              case UNITY_LENS_FILTERS:
              g_value_set_pointer (value, unity_lens_get_filters (self));
              break;
              case UNITY_LENS_CATEGORIES:
              g_value_set_pointer (value, unity_lens_get_categories (self));
              break;
              case UNITY_LENS_MERGE_STRATEGY:
              g_value_set_object (value, unity_lens_get_merge_strategy (self));
              break;
              case UNITY_LENS_GLOBAL_MERGE_STRATEGY:
              g_value_set_object (value, unity_lens_get_global_merge_strategy (self));
              break;
              case UNITY_LENS_SOURCES_DISPLAY_NAME:
              g_value_set_string (value, unity_lens_get_sources_display_name (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_lens_set_property ( GObject *  object,
guint  property_id,
const GValue *  value,
GParamSpec *  pspec 
) [static]

Definition at line 694 of file unity-lens.c.

                                                                                                                          {
       UnityLens * self;
       self = G_TYPE_CHECK_INSTANCE_CAST (object, UNITY_TYPE_LENS, UnityLens);
       switch (property_id) {
              case UNITY_LENS_ACTIVE:
              unity_lens_set_active (self, g_value_get_boolean (value));
              break;
              case UNITY_LENS_VISIBLE:
              unity_lens_set_visible (self, g_value_get_boolean (value));
              break;
              case UNITY_LENS_SEARCHING:
              unity_lens_set_searching (self, g_value_get_boolean (value));
              break;
              case UNITY_LENS_EXPORTED:
              unity_lens_set_exported (self, g_value_get_boolean (value));
              break;
              case UNITY_LENS_SEARCH_IN_GLOBAL:
              unity_lens_set_search_in_global (self, g_value_get_boolean (value));
              break;
              case UNITY_LENS_ID:
              unity_lens_set_id (self, g_value_get_string (value));
              break;
              case UNITY_LENS_DBUS_PATH:
              unity_lens_set_dbus_path (self, g_value_get_string (value));
              break;
              case UNITY_LENS_SEARCH_HINT:
              unity_lens_set_search_hint (self, g_value_get_string (value));
              break;
              case UNITY_LENS_FILTERS:
              unity_lens_set_filters (self, g_value_get_pointer (value));
              break;
              case UNITY_LENS_CATEGORIES:
              unity_lens_set_categories (self, g_value_get_pointer (value));
              break;
              case UNITY_LENS_MERGE_STRATEGY:
              unity_lens_set_merge_strategy (self, g_value_get_object (value));
              break;
              case UNITY_LENS_GLOBAL_MERGE_STRATEGY:
              unity_lens_set_global_merge_strategy (self, g_value_get_object (value));
              break;
              case UNITY_LENS_SOURCES_DISPLAY_NAME:
              unity_lens_set_sources_display_name (self, g_value_get_string (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:

void unity_lens_add_local_scope ( UnityLens *  self,
UnityScope *  scope 
)

Definition at line 173 of file unity-lens.c.

                                                                     {
       UnityLensImpl* _tmp0_;
       UnityScope* _tmp1_;
       g_return_if_fail (self != NULL);
       g_return_if_fail (scope != NULL);
       _tmp0_ = self->priv->_pimpl;
       _tmp1_ = scope;
       unity_lens_impl_add_local_scope (_tmp0_, _tmp1_);
}

Here is the call graph for this function:

Here is the caller graph for this function:

static void unity_lens_class_init ( UnityLensClass *  klass) [static]

Definition at line 583 of file unity-lens.c.

                                                           {
       unity_lens_parent_class = g_type_class_peek_parent (klass);
       g_type_class_add_private (klass, sizeof (UnityLensPrivate));
       G_OBJECT_CLASS (klass)->get_property = _vala_unity_lens_get_property;
       G_OBJECT_CLASS (klass)->set_property = _vala_unity_lens_set_property;
       G_OBJECT_CLASS (klass)->constructor = unity_lens_constructor;
       G_OBJECT_CLASS (klass)->finalize = unity_lens_finalize;
       g_object_class_install_property (G_OBJECT_CLASS (klass), UNITY_LENS_ACTIVE, g_param_spec_boolean ("active", "active", "active", FALSE, G_PARAM_STATIC_NAME | G_PARAM_STATIC_NICK | G_PARAM_STATIC_BLURB | G_PARAM_READABLE));
       g_object_class_install_property (G_OBJECT_CLASS (klass), UNITY_LENS_VISIBLE, g_param_spec_boolean ("visible", "visible", "visible", TRUE, 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_LENS_SEARCHING, g_param_spec_boolean ("searching", "searching", "searching", FALSE, G_PARAM_STATIC_NAME | G_PARAM_STATIC_NICK | G_PARAM_STATIC_BLURB | G_PARAM_READABLE));
       g_object_class_install_property (G_OBJECT_CLASS (klass), UNITY_LENS_EXPORTED, g_param_spec_boolean ("exported", "exported", "exported", FALSE, G_PARAM_STATIC_NAME | G_PARAM_STATIC_NICK | G_PARAM_STATIC_BLURB | G_PARAM_READABLE));
       g_object_class_install_property (G_OBJECT_CLASS (klass), UNITY_LENS_SEARCH_IN_GLOBAL, g_param_spec_boolean ("search-in-global", "search-in-global", "search-in-global", TRUE, 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_LENS_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_LENS_DBUS_PATH, g_param_spec_string ("dbus-path", "dbus-path", "dbus-path", 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_LENS_SEARCH_HINT, g_param_spec_string ("search-hint", "search-hint", "search-hint", 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_LENS_FILTERS, g_param_spec_pointer ("filters", "filters", "filters", 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_LENS_CATEGORIES, g_param_spec_pointer ("categories", "categories", "categories", 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_LENS_MERGE_STRATEGY, g_param_spec_object ("merge-strategy", "merge-strategy", "merge-strategy", UNITY_TYPE_MERGE_STRATEGY, 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_LENS_GLOBAL_MERGE_STRATEGY, g_param_spec_object ("global-merge-strategy", "global-merge-strategy", "global-merge-strategy", UNITY_TYPE_MERGE_STRATEGY, 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_LENS_SOURCES_DISPLAY_NAME, g_param_spec_string ("sources-display-name", "sources-display-name", "sources-display-name", NULL, G_PARAM_STATIC_NAME | G_PARAM_STATIC_NICK | G_PARAM_STATIC_BLURB | G_PARAM_READABLE | G_PARAM_WRITABLE | G_PARAM_CONSTRUCT));
}

Here is the call graph for this function:

Here is the caller graph for this function:

UnityLens* unity_lens_construct ( GType  object_type,
const gchar *  dbus_path_,
const gchar *  id_ 
)

Definition at line 131 of file unity-lens.c.

                                                                                               {
       UnityLens * self = NULL;
       const gchar* _tmp0_;
       const gchar* _tmp1_;
       g_return_val_if_fail (dbus_path_ != NULL, NULL);
       g_return_val_if_fail (id_ != NULL, NULL);
       _tmp0_ = dbus_path_;
       _tmp1_ = id_;
       self = (UnityLens*) g_object_new (object_type, "dbus-path", _tmp0_, "id", _tmp1_, "sources-display-name", "", NULL);
       return self;
}

Here is the caller graph for this function:

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

Definition at line 568 of file unity-lens.c.

                                                                                                                                 {
       GObject * obj;
       GObjectClass * parent_class;
       UnityLens * self;
       UnityLensImpl* _tmp0_;
       parent_class = G_OBJECT_CLASS (unity_lens_parent_class);
       obj = parent_class->constructor (type, n_construct_properties, construct_properties);
       self = G_TYPE_CHECK_INSTANCE_CAST (obj, UNITY_TYPE_LENS, UnityLens);
       _tmp0_ = unity_lens_impl_new (self);
       _g_object_unref0 (self->priv->_pimpl);
       self->priv->_pimpl = _tmp0_;
       return obj;
}

Here is the call graph for this function:

Here is the caller graph for this function:

void unity_lens_export ( UnityLens *  self,
GError **  error 
)

Definition at line 149 of file unity-lens.c.

                                                         {
       gboolean _tmp0_;
       GError * _inner_error_ = NULL;
       g_return_if_fail (self != NULL);
       _tmp0_ = self->priv->_exported;
       if (!_tmp0_) {
              UnityLensImpl* _tmp1_;
              _tmp1_ = self->priv->_pimpl;
              unity_lens_impl_export (_tmp1_, &_inner_error_);
              if (_inner_error_ != NULL) {
                     if (_inner_error_->domain == G_IO_ERROR) {
                            g_propagate_error (error, _inner_error_);
                            return;
                     } else {
                            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;
                     }
              }
              unity_lens_set_exported (self, TRUE);
       }
}

Here is the call graph for this function:

Here is the caller graph for this function:

static void unity_lens_finalize ( GObject *  obj) [static]

Definition at line 618 of file unity-lens.c.

                                               {
       UnityLens * self;
       self = G_TYPE_CHECK_INSTANCE_CAST (obj, UNITY_TYPE_LENS, UnityLens);
       _g_free0 (self->priv->_id);
       _g_free0 (self->priv->_dbus_path);
       _g_free0 (self->priv->_search_hint);
       _g_free0 (self->priv->_sources_display_name);
       _g_object_unref0 (self->priv->_pimpl);
       __g_list_free__g_object_unref0_0 (self->priv->_categories);
       __g_list_free__g_object_unref0_0 (self->priv->_filters);
       G_OBJECT_CLASS (unity_lens_parent_class)->finalize (obj);
}

Here is the caller graph for this function:

gboolean unity_lens_get_active ( UnityLens *  self)

Definition at line 218 of file unity-lens.c.

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

Here is the caller graph for this function:

GList* unity_lens_get_categories ( UnityLens *  self)

Definition at line 429 of file unity-lens.c.

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

Here is the caller graph for this function:

const gchar* unity_lens_get_dbus_path ( UnityLens *  self)

Definition at line 335 of file unity-lens.c.

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

Here is the caller graph for this function:

gboolean unity_lens_get_exported ( UnityLens *  self)

Definition at line 275 of file unity-lens.c.

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

Here is the caller graph for this function:

GList* unity_lens_get_filters ( UnityLens *  self)

Definition at line 379 of file unity-lens.c.

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

Here is the caller graph for this function:

UnityMergeStrategy* unity_lens_get_global_merge_strategy ( UnityLens *  self)

Definition at line 513 of file unity-lens.c.

                                                                           {
       UnityMergeStrategy* result;
       UnityLensImpl* _tmp0_;
       UnityResultsSynchronizer* _tmp1_;
       UnityResultsSynchronizer* _tmp2_;
       UnityMergeStrategy* _tmp3_;
       UnityMergeStrategy* _tmp4_;
       g_return_val_if_fail (self != NULL, NULL);
       _tmp0_ = self->priv->_pimpl;
       _tmp1_ = unity_lens_impl_get_global_results_sync (_tmp0_);
       _tmp2_ = _tmp1_;
       _tmp3_ = unity_results_synchronizer_get_merge_strategy (_tmp2_);
       _tmp4_ = _tmp3_;
       result = _tmp4_;
       return result;
}

Here is the call graph for this function:

Here is the caller graph for this function:

const gchar* unity_lens_get_id ( UnityLens *  self)

Definition at line 313 of file unity-lens.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:

UnityMergeStrategy* unity_lens_get_merge_strategy ( UnityLens *  self)

Definition at line 480 of file unity-lens.c.

                                                                    {
       UnityMergeStrategy* result;
       UnityLensImpl* _tmp0_;
       UnityResultsSynchronizer* _tmp1_;
       UnityResultsSynchronizer* _tmp2_;
       UnityMergeStrategy* _tmp3_;
       UnityMergeStrategy* _tmp4_;
       g_return_val_if_fail (self != NULL, NULL);
       _tmp0_ = self->priv->_pimpl;
       _tmp1_ = unity_lens_impl_get_results_sync (_tmp0_);
       _tmp2_ = _tmp1_;
       _tmp3_ = unity_results_synchronizer_get_merge_strategy (_tmp2_);
       _tmp4_ = _tmp3_;
       result = _tmp4_;
       return result;
}

Here is the call graph for this function:

Here is the caller graph for this function:

DeeModel* unity_lens_get_model_internal ( UnityLens *  self,
gint  index 
)

Definition at line 204 of file unity-lens.c.

                                                                      {
       DeeModel* result = NULL;
       UnityLensImpl* _tmp0_;
       gint _tmp1_;
       DeeModel* _tmp2_ = NULL;
       g_return_val_if_fail (self != NULL, NULL);
       _tmp0_ = self->priv->_pimpl;
       _tmp1_ = index;
       _tmp2_ = unity_lens_impl_get_model (_tmp0_, _tmp1_);
       result = _tmp2_;
       return result;
}

Here is the call graph for this function:

Here is the caller graph for this function:

const gchar* unity_lens_get_search_hint ( UnityLens *  self)

Definition at line 357 of file unity-lens.c.

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

Here is the caller graph for this function:

gboolean unity_lens_get_search_in_global ( UnityLens *  self)

Definition at line 294 of file unity-lens.c.

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

Here is the caller graph for this function:

gboolean unity_lens_get_searching ( UnityLens *  self)

Definition at line 256 of file unity-lens.c.

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

Here is the caller graph for this function:

const gchar* unity_lens_get_sources_display_name ( UnityLens *  self)

Definition at line 546 of file unity-lens.c.

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

Here is the caller graph for this function:

UnityOptionsFilter* unity_lens_get_sources_internal ( UnityLens *  self)

Definition at line 192 of file unity-lens.c.

                                                                      {
       UnityOptionsFilter* result = NULL;
       UnityLensImpl* _tmp0_;
       UnityOptionsFilter* _tmp1_ = NULL;
       g_return_val_if_fail (self != NULL, NULL);
       _tmp0_ = self->priv->_pimpl;
       _tmp1_ = unity_lens_impl_get_sources (_tmp0_);
       result = _tmp1_;
       return result;
}

Here is the call graph for this function:

Here is the caller graph for this function:

GType unity_lens_get_type ( void  )

Definition at line 632 of file unity-lens.c.

                                 {
       static volatile gsize unity_lens_type_id__volatile = 0;
       if (g_once_init_enter (&unity_lens_type_id__volatile)) {
              static const GTypeInfo g_define_type_info = { sizeof (UnityLensClass), (GBaseInitFunc) NULL, (GBaseFinalizeFunc) NULL, (GClassInitFunc) unity_lens_class_init, (GClassFinalizeFunc) NULL, NULL, sizeof (UnityLens), 0, (GInstanceInitFunc) unity_lens_instance_init, NULL };
              GType unity_lens_type_id;
              unity_lens_type_id = g_type_register_static (G_TYPE_OBJECT, "UnityLens", &g_define_type_info, 0);
              g_once_init_leave (&unity_lens_type_id__volatile, unity_lens_type_id);
       }
       return unity_lens_type_id__volatile;
}

Here is the call graph for this function:

gboolean unity_lens_get_visible ( UnityLens *  self)

Definition at line 237 of file unity-lens.c.

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

Here is the caller graph for this function:

void unity_lens_impl_add_local_scope ( UnityLensImpl *  self,
UnityScope *  scope 
)

Definition at line 2290 of file unity-lens-private.c.

                                                                              {
       UnityScopeFactory* _tmp0_;
       UnityScope* _tmp1_;
       g_return_if_fail (self != NULL);
       g_return_if_fail (scope != NULL);
       _tmp0_ = self->priv->_scope_factory;
       _tmp1_ = scope;
       unity_scope_factory_add_local_scope (_tmp0_, _tmp1_);
}

Here is the call graph for this function:

void unity_lens_impl_export ( UnityLensImpl *  self,
GError **  error 
)

Definition at line 941 of file unity-lens-private.c.

                                                                  {
       GDBusConnection* _tmp0_ = NULL;
       GDBusConnection* conn;
       GDBusConnection* _tmp1_;
       UnityLens* _tmp2_;
       const gchar* _tmp3_;
       const gchar* _tmp4_;
       guint _tmp5_ = 0U;
       guint _tmp6_;
       GError * _inner_error_ = NULL;
       g_return_if_fail (self != NULL);
       _tmp0_ = g_bus_get_sync (G_BUS_TYPE_SESSION, NULL, &_inner_error_);
       conn = _tmp0_;
       if (_inner_error_ != NULL) {
              if (_inner_error_->domain == G_IO_ERROR) {
                     g_propagate_error (error, _inner_error_);
                     return;
              } else {
                     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;
              }
       }
       _tmp1_ = conn;
       _tmp2_ = self->priv->_owner;
       _tmp3_ = unity_lens_get_dbus_path (_tmp2_);
       _tmp4_ = _tmp3_;
       _tmp5_ = unity_protocol_lens_service_register_object (G_TYPE_CHECK_INSTANCE_TYPE (self, UNITY_PROTOCOL_TYPE_LENS_SERVICE) ? ((UnityProtocolLensService*) self) : NULL, _tmp1_, _tmp4_, &_inner_error_);
       _tmp6_ = _tmp5_;
       if (_inner_error_ != NULL) {
              if (_inner_error_->domain == G_IO_ERROR) {
                     g_propagate_error (error, _inner_error_);
                     _g_object_unref0 (conn);
                     return;
              } else {
                     _g_object_unref0 (conn);
                     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;
              }
       }
       self->priv->_dbus_id = _tmp6_;
       unity_lens_impl_queue_info_changed (self);
       _g_object_unref0 (conn);
}

Here is the call graph for this function:

DeeModel* unity_lens_impl_get_model ( UnityLensImpl *  self,
gint  index 
)

Definition at line 2311 of file unity-lens-private.c.

                                                                      {
       DeeModel* result = NULL;
       gint _tmp0_;
       gint _tmp1_;
       gint _tmp2_;
       g_return_val_if_fail (self != NULL, NULL);
       _tmp0_ = index;
       _tmp1_ = index;
       g_return_val_if_fail ((_tmp0_ >= 0) && (_tmp1_ <= 3), NULL);
       _tmp2_ = index;
       switch (_tmp2_) {
              case 0:
              {
                     DeeSharedModel* _tmp3_;
                     _tmp3_ = self->priv->_results_model;
                     result = (DeeModel*) _tmp3_;
                     return result;
              }
              case 1:
              {
                     DeeSharedModel* _tmp4_;
                     _tmp4_ = self->priv->_global_results_model;
                     result = (DeeModel*) _tmp4_;
                     return result;
              }
              case 2:
              {
                     DeeSharedModel* _tmp5_;
                     _tmp5_ = self->priv->_filters_model;
                     result = (DeeModel*) _tmp5_;
                     return result;
              }
              case 3:
              {
                     DeeSharedModel* _tmp6_;
                     _tmp6_ = self->priv->_categories_model;
                     result = (DeeModel*) _tmp6_;
                     return result;
              }
              default:
              break;
       }
       result = NULL;
       return result;
}
UnityOptionsFilter* unity_lens_impl_get_sources ( UnityLensImpl *  self)

Definition at line 2301 of file unity-lens-private.c.

                                                                      {
       UnityOptionsFilter* result = NULL;
       UnityOptionsFilter* _tmp0_;
       g_return_val_if_fail (self != NULL, NULL);
       _tmp0_ = self->priv->_sources;
       result = _tmp0_;
       return result;
}
GType unity_lens_impl_get_type ( void  )

Definition at line 74 of file unity-lens.c.

      {
       UNITY_LENS_DUMMY_PROPERTY,
       UNITY_LENS_ACTIVE,
       UNITY_LENS_VISIBLE,
       UNITY_LENS_SEARCHING,
       UNITY_LENS_EXPORTED,
       UNITY_LENS_SEARCH_IN_GLOBAL,
       UNITY_LENS_ID,
       UNITY_LENS_DBUS_PATH,
       UNITY_LENS_SEARCH_HINT,
       UNITY_LENS_FILTERS,
       UNITY_LENS_CATEGORIES,
       UNITY_LENS_MERGE_STRATEGY,
       UNITY_LENS_GLOBAL_MERGE_STRATEGY,
       UNITY_LENS_SOURCES_DISPLAY_NAME
};

Here is the call graph for this function:

void unity_lens_impl_load_categories ( UnityLensImpl *  self,
GList *  categories 
)

Definition at line 993 of file unity-lens-private.c.

                                                                              {
       GList* _tmp0_;
       g_return_if_fail (self != NULL);
       _tmp0_ = categories;
       {
              GList* category_collection = NULL;
              GList* category_it = NULL;
              category_collection = _tmp0_;
              for (category_it = category_collection; category_it != NULL; category_it = category_it->next) {
                     UnityCategory* _tmp1_;
                     UnityCategory* category = NULL;
                     _tmp1_ = _g_object_ref0 ((UnityCategory*) category_it->data);
                     category = _tmp1_;
                     {
                            gchar* _tmp2_ = NULL;
                            UnityCategory* _tmp3_;
                            GIcon* _tmp4_;
                            GIcon* _tmp5_;
                            const gchar* _tmp11_;
                            gchar* _tmp12_;
                            gchar* icon_hint_s;
                            DeeSharedModel* _tmp13_;
                            UnityCategory* _tmp14_;
                            const gchar* _tmp15_;
                            const gchar* _tmp16_;
                            const gchar* _tmp17_;
                            UnityCategory* _tmp18_;
                            const gchar* _tmp19_;
                            const gchar* _tmp20_;
                            UnityCategory* _tmp21_;
                            GHashTable* _tmp22_;
                            GHashTable* _tmp23_;
                            GVariant* _tmp24_ = NULL;
                            GVariant* _tmp25_;
                            _tmp3_ = category;
                            _tmp4_ = unity_category_get_icon_hint (_tmp3_);
                            _tmp5_ = _tmp4_;
                            if (_tmp5_ != NULL) {
                                   UnityCategory* _tmp6_;
                                   GIcon* _tmp7_;
                                   GIcon* _tmp8_;
                                   gchar* _tmp9_ = NULL;
                                   _tmp6_ = category;
                                   _tmp7_ = unity_category_get_icon_hint (_tmp6_);
                                   _tmp8_ = _tmp7_;
                                   _tmp9_ = g_icon_to_string (_tmp8_);
                                   _g_free0 (_tmp2_);
                                   _tmp2_ = _tmp9_;
                            } else {
                                   gchar* _tmp10_;
                                   _tmp10_ = g_strdup ("");
                                   _g_free0 (_tmp2_);
                                   _tmp2_ = _tmp10_;
                            }
                            _tmp11_ = _tmp2_;
                            _tmp12_ = g_strdup (_tmp11_);
                            icon_hint_s = _tmp12_;
                            _tmp13_ = self->priv->_categories_model;
                            _tmp14_ = category;
                            _tmp15_ = unity_category_get_name (_tmp14_);
                            _tmp16_ = _tmp15_;
                            _tmp17_ = icon_hint_s;
                            _tmp18_ = category;
                            _tmp19_ = unity_category_get_renderer (_tmp18_);
                            _tmp20_ = _tmp19_;
                            _tmp21_ = category;
                            _tmp22_ = unity_category_get_hints (_tmp21_);
                            _tmp23_ = _tmp22_;
                            _tmp24_ = unity_tools_hash_table_to_asv (_tmp23_);
                            _tmp25_ = _tmp24_;
                            dee_model_append ((DeeModel*) _tmp13_, _tmp16_, _tmp17_, _tmp20_, _tmp25_, NULL);
                            _g_variant_unref0 (_tmp25_);
                            _g_free0 (icon_hint_s);
                            _g_free0 (_tmp2_);
                            _g_object_unref0 (category);
                     }
              }
       }
}

Here is the call graph for this function:

void unity_lens_impl_load_filters ( UnityLensImpl *  self,
GList *  filters 
)

Definition at line 1079 of file unity-lens-private.c.

                                                                        {
       DeeSharedModel* _tmp0_;
       GList* _tmp1_;
       GList* _tmp3_;
       GList* _tmp4_ = NULL;
       GList* filters_and_sources;
       UnityOptionsFilter* _tmp5_;
       GList* _tmp6_;
       guint _tmp7_ = 0U;
       GList* _tmp9_;
       g_return_if_fail (self != NULL);
       _tmp0_ = self->priv->_filters_model;
       dee_model_clear ((DeeModel*) _tmp0_);
       _tmp1_ = filters;
       {
              GList* filter_collection = NULL;
              GList* filter_it = NULL;
              filter_collection = _tmp1_;
              for (filter_it = filter_collection; filter_it != NULL; filter_it = filter_it->next) {
                     UnityFilter* filter = NULL;
                     filter = (UnityFilter*) filter_it->data;
                     {
                            UnityFilter* _tmp2_;
                            _tmp2_ = filter;
                            g_signal_connect_object (_tmp2_, "changed", (GCallback) _unity_lens_impl_on_filter_changed_unity_filter_changed, self, 0);
                     }
              }
       }
       _tmp3_ = filters;
       _tmp4_ = g_list_copy (_tmp3_);
       filters_and_sources = _tmp4_;
       _tmp5_ = self->priv->_sources;
       _tmp6_ = _tmp5_->options;
       _tmp7_ = g_list_length (_tmp6_);
       if (_tmp7_ > ((guint) 0)) {
              UnityOptionsFilter* _tmp8_;
              _tmp8_ = self->priv->_sources;
              filters_and_sources = g_list_append (filters_and_sources, (UnityFilter*) _tmp8_);
       }
       _tmp9_ = filters_and_sources;
       {
              GList* filter_collection = NULL;
              GList* filter_it = NULL;
              filter_collection = _tmp9_;
              for (filter_it = filter_collection; filter_it != NULL; filter_it = filter_it->next) {
                     UnityFilter* filter = NULL;
                     filter = (UnityFilter*) filter_it->data;
                     {
                            gchar* _tmp10_ = NULL;
                            UnityFilter* _tmp11_;
                            GIcon* _tmp12_;
                            GIcon* _tmp13_;
                            const gchar* _tmp19_;
                            gchar* _tmp20_;
                            gchar* icon_hint_s;
                            DeeSharedModel* _tmp21_;
                            UnityFilter* _tmp22_;
                            const gchar* _tmp23_;
                            const gchar* _tmp24_;
                            UnityFilter* _tmp25_;
                            const gchar* _tmp26_;
                            const gchar* _tmp27_;
                            const gchar* _tmp28_;
                            UnityFilter* _tmp29_;
                            UnityFilterRenderer _tmp30_;
                            UnityFilterRenderer _tmp31_;
                            const gchar* _tmp32_ = NULL;
                            UnityFilter* _tmp33_;
                            GHashTable* _tmp34_ = NULL;
                            GHashTable* _tmp35_;
                            GVariant* _tmp36_ = NULL;
                            GVariant* _tmp37_;
                            UnityFilter* _tmp38_;
                            gboolean _tmp39_;
                            gboolean _tmp40_;
                            UnityFilter* _tmp41_;
                            gboolean _tmp42_;
                            gboolean _tmp43_;
                            UnityFilter* _tmp44_;
                            gboolean _tmp45_;
                            gboolean _tmp46_;
                            _tmp11_ = filter;
                            _tmp12_ = unity_filter_get_icon_hint (_tmp11_);
                            _tmp13_ = _tmp12_;
                            if (_tmp13_ != NULL) {
                                   UnityFilter* _tmp14_;
                                   GIcon* _tmp15_;
                                   GIcon* _tmp16_;
                                   gchar* _tmp17_ = NULL;
                                   _tmp14_ = filter;
                                   _tmp15_ = unity_filter_get_icon_hint (_tmp14_);
                                   _tmp16_ = _tmp15_;
                                   _tmp17_ = g_icon_to_string (_tmp16_);
                                   _g_free0 (_tmp10_);
                                   _tmp10_ = _tmp17_;
                            } else {
                                   gchar* _tmp18_;
                                   _tmp18_ = g_strdup ("");
                                   _g_free0 (_tmp10_);
                                   _tmp10_ = _tmp18_;
                            }
                            _tmp19_ = _tmp10_;
                            _tmp20_ = g_strdup (_tmp19_);
                            icon_hint_s = _tmp20_;
                            _tmp21_ = self->priv->_filters_model;
                            _tmp22_ = filter;
                            _tmp23_ = unity_filter_get_id (_tmp22_);
                            _tmp24_ = _tmp23_;
                            _tmp25_ = filter;
                            _tmp26_ = unity_filter_get_display_name (_tmp25_);
                            _tmp27_ = _tmp26_;
                            _tmp28_ = icon_hint_s;
                            _tmp29_ = filter;
                            _tmp30_ = unity_filter_get_renderer (_tmp29_);
                            _tmp31_ = _tmp30_;
                            _tmp32_ = unity_filter_get_renderer_name (_tmp31_);
                            _tmp33_ = filter;
                            _tmp34_ = unity_filter_get_hints (_tmp33_);
                            _tmp35_ = _tmp34_;
                            _tmp36_ = unity_tools_hash_table_to_asv (_tmp35_);
                            _tmp37_ = _tmp36_;
                            _tmp38_ = filter;
                            _tmp39_ = unity_filter_get_visible (_tmp38_);
                            _tmp40_ = _tmp39_;
                            _tmp41_ = filter;
                            _tmp42_ = unity_filter_get_collapsed (_tmp41_);
                            _tmp43_ = _tmp42_;
                            _tmp44_ = filter;
                            _tmp45_ = unity_filter_get_filtering (_tmp44_);
                            _tmp46_ = _tmp45_;
                            dee_model_append ((DeeModel*) _tmp21_, _tmp24_, _tmp27_, _tmp28_, _tmp32_, _tmp37_, _tmp40_, _tmp43_, _tmp46_, NULL);
                            _g_variant_unref0 (_tmp37_);
                            _g_hash_table_unref0 (_tmp35_);
                            _g_free0 (icon_hint_s);
                            _g_free0 (_tmp10_);
                     }
              }
       }
       _g_list_free0 (filters_and_sources);
}

Here is the call graph for this function:

static void unity_lens_instance_init ( UnityLens *  self) [static]

Definition at line 606 of file unity-lens.c.

                                                        {
       self->priv = UNITY_LENS_GET_PRIVATE (self);
       self->priv->_active = FALSE;
       self->priv->_visible = TRUE;
       self->priv->_searching = FALSE;
       self->priv->_exported = FALSE;
       self->priv->_search_in_global = TRUE;
       self->priv->_categories = NULL;
       self->priv->_filters = NULL;
}

Here is the caller graph for this function:

UnityLens* unity_lens_new ( const gchar *  dbus_path_,
const gchar *  id_ 
)

Definition at line 144 of file unity-lens.c.

                                                                      {
       return unity_lens_construct (UNITY_TYPE_LENS, dbus_path_, id_);
}

Here is the call graph for this function:

Here is the caller graph for this function:

static void unity_lens_set_active ( UnityLens *  self,
gboolean  value 
) [static]

Definition at line 228 of file unity-lens.c.

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

Here is the caller graph for this function:

void unity_lens_set_active_internal ( UnityLens *  self,
gboolean  is_active 
)

Definition at line 184 of file unity-lens.c.

                                                                          {
       gboolean _tmp0_;
       g_return_if_fail (self != NULL);
       _tmp0_ = is_active;
       unity_lens_set_active (self, _tmp0_);
}

Here is the call graph for this function:

Here is the caller graph for this function:

void unity_lens_set_categories ( UnityLens *  self,
GList *  value 
)

Definition at line 439 of file unity-lens.c.

                                                               {
       GList* _tmp0_;
       g_return_if_fail (self != NULL);
       _tmp0_ = self->priv->_categories;
       if (_tmp0_ == NULL) {
              GList* _tmp1_;
              UnityLensImpl* _tmp5_;
              GList* _tmp6_;
              __g_list_free__g_object_unref0_0 (self->priv->_categories);
              self->priv->_categories = NULL;
              _tmp1_ = value;
              {
                     GList* cat_collection = NULL;
                     GList* cat_it = NULL;
                     cat_collection = _tmp1_;
                     for (cat_it = cat_collection; cat_it != NULL; cat_it = cat_it->next) {
                            UnityCategory* _tmp2_;
                            UnityCategory* cat = NULL;
                            _tmp2_ = _g_object_ref0 ((UnityCategory*) cat_it->data);
                            cat = _tmp2_;
                            {
                                   UnityCategory* _tmp3_;
                                   UnityCategory* _tmp4_;
                                   _tmp3_ = cat;
                                   _tmp4_ = _g_object_ref0 (_tmp3_);
                                   self->priv->_categories = g_list_prepend (self->priv->_categories, _tmp4_);
                                   _g_object_unref0 (cat);
                            }
                     }
              }
              self->priv->_categories = g_list_reverse (self->priv->_categories);
              _tmp5_ = self->priv->_pimpl;
              _tmp6_ = self->priv->_categories;
              unity_lens_impl_load_categories (_tmp5_, _tmp6_);
       } else {
              g_warning ("unity-lens.vala:62: Categories can only be set once");
       }
       g_object_notify ((GObject *) self, "categories");
}

Here is the call graph for this function:

Here is the caller graph for this function:

static void unity_lens_set_dbus_path ( UnityLens *  self,
const gchar *  value 
) [static]

Definition at line 345 of file unity-lens.c.

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

Here is the caller graph for this function:

static void unity_lens_set_exported ( UnityLens *  self,
gboolean  value 
) [static]

Definition at line 285 of file unity-lens.c.

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

Here is the caller graph for this function:

void unity_lens_set_filters ( UnityLens *  self,
GList *  value 
)

Definition at line 394 of file unity-lens.c.

                                                            {
       GList* _tmp0_;
       UnityLensImpl* _tmp4_;
       GList* _tmp5_;
       g_return_if_fail (self != NULL);
       __g_list_free__g_object_unref0_0 (self->priv->_filters);
       self->priv->_filters = NULL;
       _tmp0_ = value;
       {
              GList* f_collection = NULL;
              GList* f_it = NULL;
              f_collection = _tmp0_;
              for (f_it = f_collection; f_it != NULL; f_it = f_it->next) {
                     UnityFilter* _tmp1_;
                     UnityFilter* f = NULL;
                     _tmp1_ = _g_object_ref0 ((UnityFilter*) f_it->data);
                     f = _tmp1_;
                     {
                            UnityFilter* _tmp2_;
                            UnityFilter* _tmp3_;
                            _tmp2_ = f;
                            _tmp3_ = _g_object_ref0 (_tmp2_);
                            self->priv->_filters = g_list_prepend (self->priv->_filters, _tmp3_);
                            _g_object_unref0 (f);
                     }
              }
       }
       self->priv->_filters = g_list_reverse (self->priv->_filters);
       _tmp4_ = self->priv->_pimpl;
       _tmp5_ = self->priv->_filters;
       unity_lens_impl_load_filters (_tmp4_, _tmp5_);
       g_object_notify ((GObject *) self, "filters");
}

Here is the call graph for this function:

Here is the caller graph for this function:

void unity_lens_set_global_merge_strategy ( UnityLens *  self,
UnityMergeStrategy *  value 
)

Definition at line 531 of file unity-lens.c.

                                                                                       {
       UnityLensImpl* _tmp0_;
       UnityResultsSynchronizer* _tmp1_;
       UnityResultsSynchronizer* _tmp2_;
       UnityMergeStrategy* _tmp3_;
       g_return_if_fail (self != NULL);
       _tmp0_ = self->priv->_pimpl;
       _tmp1_ = unity_lens_impl_get_global_results_sync (_tmp0_);
       _tmp2_ = _tmp1_;
       _tmp3_ = value;
       unity_results_synchronizer_set_merge_strategy (_tmp2_, _tmp3_);
       g_object_notify ((GObject *) self, "global-merge-strategy");
}

Here is the call graph for this function:

Here is the caller graph for this function:

static void unity_lens_set_id ( UnityLens *  self,
const gchar *  value 
) [static]

Definition at line 323 of file unity-lens.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_lens_set_merge_strategy ( UnityLens *  self,
UnityMergeStrategy *  value 
)

Definition at line 498 of file unity-lens.c.

                                                                                {
       UnityLensImpl* _tmp0_;
       UnityResultsSynchronizer* _tmp1_;
       UnityResultsSynchronizer* _tmp2_;
       UnityMergeStrategy* _tmp3_;
       g_return_if_fail (self != NULL);
       _tmp0_ = self->priv->_pimpl;
       _tmp1_ = unity_lens_impl_get_results_sync (_tmp0_);
       _tmp2_ = _tmp1_;
       _tmp3_ = value;
       unity_results_synchronizer_set_merge_strategy (_tmp2_, _tmp3_);
       g_object_notify ((GObject *) self, "merge-strategy");
}

Here is the call graph for this function:

Here is the caller graph for this function:

void unity_lens_set_search_hint ( UnityLens *  self,
const gchar *  value 
)

Definition at line 367 of file unity-lens.c.

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

Here is the caller graph for this function:

void unity_lens_set_search_in_global ( UnityLens *  self,
gboolean  value 
)

Definition at line 304 of file unity-lens.c.

                                                                       {
       gboolean _tmp0_;
       g_return_if_fail (self != NULL);
       _tmp0_ = value;
       self->priv->_search_in_global = _tmp0_;
       g_object_notify ((GObject *) self, "search-in-global");
}

Here is the caller graph for this function:

static void unity_lens_set_searching ( UnityLens *  self,
gboolean  value 
) [static]

Definition at line 266 of file unity-lens.c.

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

Here is the caller graph for this function:

void unity_lens_set_sources_display_name ( UnityLens *  self,
const gchar *  value 
)

Definition at line 556 of file unity-lens.c.

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

Here is the caller graph for this function:

void unity_lens_set_visible ( UnityLens *  self,
gboolean  value 
)

Definition at line 247 of file unity-lens.c.

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

Here is the caller graph for this function:

Definition at line 107 of file unity-lens.c.

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

Variable Documentation

gpointer unity_lens_parent_class = NULL [static]

Definition at line 72 of file unity-lens.c.