Back to index

libunity  5.92.0
Classes | Defines | Typedefs | Functions | Variables
unity-scope.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>
#include <unity-protocol.h>

Go to the source code of this file.

Classes

struct  _UnityScopePrivate
struct  _UnityScopeImpl
struct  _UnityScopeImplClass
struct  _UnityScopeActivateData
struct  _UnityScopeUpdatePreviewPropertyData
struct  _UnityScopeSearchData
struct  _UnityScopeGlobalSearchData

Defines

#define UNITY_TYPE_SCOPE_IMPL   (unity_scope_impl_get_type ())
#define UNITY_SCOPE_IMPL(obj)   (G_TYPE_CHECK_INSTANCE_CAST ((obj), UNITY_TYPE_SCOPE_IMPL, UnityScopeImpl))
#define UNITY_SCOPE_IMPL_CLASS(klass)   (G_TYPE_CHECK_CLASS_CAST ((klass), UNITY_TYPE_SCOPE_IMPL, UnityScopeImplClass))
#define UNITY_IS_SCOPE_IMPL(obj)   (G_TYPE_CHECK_INSTANCE_TYPE ((obj), UNITY_TYPE_SCOPE_IMPL))
#define UNITY_IS_SCOPE_IMPL_CLASS(klass)   (G_TYPE_CHECK_CLASS_TYPE ((klass), UNITY_TYPE_SCOPE_IMPL))
#define UNITY_SCOPE_IMPL_GET_CLASS(obj)   (G_TYPE_INSTANCE_GET_CLASS ((obj), UNITY_TYPE_SCOPE_IMPL, UnityScopeImplClass))
#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 _g_hash_table_unref0(var)   ((var == NULL) ? NULL : (var = (g_hash_table_unref (var), NULL)))
#define _g_error_free0(var)   ((var == NULL) ? NULL : (var = (g_error_free (var), NULL)))
#define UNITY_SCOPE_GET_PRIVATE(o)   (G_TYPE_INSTANCE_GET_PRIVATE ((o), UNITY_TYPE_SCOPE, UnityScopePrivate))

Typedefs

typedef struct _UnityScopeImpl
typedef struct _UnityScopeImplClass
typedef struct _UnityScopeImplPrivate
typedef struct _UnityScopeActivateData
typedef struct _UnityScopeUpdatePreviewPropertyData
typedef struct _UnityScopeSearchData
typedef struct _UnityScopeGlobalSearchData

Functions

GType unity_scope_impl_get_type (void)
static void _g_object_unref0_ (gpointer var)
static void _g_list_free__g_object_unref0_ (GList *self)
void unity_scope_impl_export (UnityScopeImpl *self, GError **error)
static void unity_scope_set_exported (UnityScope *self, gboolean value)
static void unity_scope_prepare_search (UnityScope *self)
static void _g_free0_ (gpointer var)
 Invalidates current search and queues new search.
static void _g_variant_unref0_ (gpointer var)
void unity_scope_impl_update_search_key (UnityScopeImpl *self, UnityLensSearch *ls, UnitySearchType search_type)
void unity_scope_impl_schedule_search_changed (UnityScopeImpl *self, UnityLensSearch *search, UnitySearchType search_type, gboolean wait_for_view, GAsyncReadyCallback _callback_, gpointer _user_data_)
void unity_scope_impl_schedule_search_changed_finish (UnityScopeImpl *self, GAsyncResult *_res_)
void unity_scope_impl_invalidate_search (UnityScopeImpl *self, UnitySearchType search_type)
UnityLensSearch * unity_scope_get_last_search (UnityScope *self, UnitySearchType search_type)
void unity_scope_set_last_search (UnityScope *self, UnityLensSearch *search, UnitySearchType search_type)
void unity_scope_set_view_type_internal (UnityScope *self, UnityProtocolViewType view_type)
void unity_scope_impl_set_view_type (UnityScopeImpl *self, UnityProtocolViewType value)
void unity_scope_set_active_sources_internal (UnityScope *self, gchar **active_sources_, int active_sources__length1)
static gboolean _vala_string_array_contains (gchar **stack, int stack_length, gchar *needle)
void unity_filter_option_set_active (UnityFilterOption *self, gboolean value)
void unity_scope_set_local (UnityScope *self, gboolean is_local_)
DeeSerializableModel * unity_scope_get_filter_model (UnityScope *self)
static void unity_scope_activate_data_free (gpointer _data)
void unity_scope_activate (UnityScope *self, const gchar *uri, UnityProtocolActionType action_type, GAsyncReadyCallback _callback_, gpointer _user_data_)
void unity_scope_activate_finish (UnityScope *self, GAsyncResult *_res_, UnityProtocolActivationReplyRaw *result)
static gboolean unity_scope_activate_co (UnityScopeActivateData *_data_)
static void unity_scope_activate_ready (GObject *source_object, GAsyncResult *_res_, gpointer _user_data_)
static void unity_scope_update_preview_property_data_free (gpointer _data)
void unity_scope_update_preview_property (UnityScope *self, const gchar *uri, GHashTable *values, GAsyncReadyCallback _callback_, gpointer _user_data_)
GHashTable * unity_scope_update_preview_property_finish (UnityScope *self, GAsyncResult *_res_)
static gboolean unity_scope_update_preview_property_co (UnityScopeUpdatePreviewPropertyData *_data_)
static void unity_scope_update_preview_property_ready (GObject *source_object, GAsyncResult *_res_, gpointer _user_data_)
static void unity_scope_search_data_free (gpointer _data)
void unity_scope_search (UnityScope *self, const gchar *search_string, GHashTable *hints, GAsyncReadyCallback _callback_, gpointer _user_data_)
GHashTable * unity_scope_search_finish (UnityScope *self, GAsyncResult *_res_, GError **error)
static gboolean unity_scope_search_co (UnityScopeSearchData *_data_)
static void unity_scope_search_ready (GObject *source_object, GAsyncResult *_res_, gpointer _user_data_)
static void unity_scope_global_search_data_free (gpointer _data)
void unity_scope_global_search (UnityScope *self, const gchar *search_string, GHashTable *hints, GAsyncReadyCallback _callback_, gpointer _user_data_)
GHashTable * unity_scope_global_search_finish (UnityScope *self, GAsyncResult *_res_, GError **error)
static gboolean unity_scope_global_search_co (UnityScopeGlobalSearchData *_data_)
static void unity_scope_global_search_ready (GObject *source_object, GAsyncResult *_res_, gpointer _user_data_)
void unity_scope_set_sources (UnityScope *self, UnityOptionsFilter *value)
static void g_cclosure_user_marshal_OBJECT__STRING (GClosure *closure, GValue *return_value, guint n_param_values, const GValue *param_values, gpointer invocation_hint, gpointer marshal_data)
static void g_cclosure_user_marshal_VOID__BOXED_INT (GClosure *closure, GValue *return_value, guint n_param_values, const GValue *param_values, gpointer invocation_hint, gpointer marshal_data)
static void g_cclosure_user_marshal_VOID__OBJECT_ENUM_OBJECT (GClosure *closure, GValue *return_value, guint n_param_values, const GValue *param_values, gpointer invocation_hint, gpointer marshal_data)
static void g_cclosure_user_marshal_STRING__OBJECT (GClosure *closure, GValue *return_value, guint n_param_values, const GValue *param_values, gpointer invocation_hint, gpointer marshal_data)
static GObject * unity_scope_constructor (GType type, guint n_construct_properties, GObjectConstructParam *construct_properties)
UnityScopeImpl * unity_scope_impl_new (UnityScope *owner)
UnityScopeImpl * unity_scope_impl_construct (GType object_type, UnityScope *owner)
static void unity_scope_finalize (GObject *obj)
static void _vala_unity_scope_get_property (GObject *object, guint property_id, GValue *value, GParamSpec *pspec)
static void _vala_unity_scope_set_property (GObject *object, guint property_id, const GValue *value, GParamSpec *pspec)
static void _vala_array_destroy (gpointer array, gint array_length, GDestroyNotify destroy_func)
static void _vala_array_free (gpointer array, gint array_length, GDestroyNotify destroy_func)
GType unity_search_type_get_type (void)
UnityScope * unity_scope_construct (GType object_type, const gchar *dbus_path_)
UnityScope * unity_scope_new (const gchar *dbus_path_)
void unity_scope_export (UnityScope *self, GError **error)
static gpointer _g_object_ref0 (gpointer self)
UnityFilter * unity_scope_get_filter (UnityScope *self, const gchar *id)
void unity_scope_queue_search_changed (UnityScope *self, UnitySearchType search_type)
void unity_scope_invalidate_search (UnityScope *self, UnitySearchType search_type)
 Invalidates last search.
static const gchar * string_to_string (const gchar *self)
static gpointer _g_hash_table_ref0 (gpointer self)
gboolean unity_scope_get_active (UnityScope *self)
void unity_scope_set_active (UnityScope *self, gboolean value)
gboolean unity_scope_get_exported (UnityScope *self)
gboolean unity_scope_get_search_in_global (UnityScope *self)
void unity_scope_set_search_in_global (UnityScope *self, gboolean value)
const gchar * unity_scope_get_dbus_path (UnityScope *self)
static void unity_scope_set_dbus_path (UnityScope *self, const gchar *value)
UnityOptionsFilter * unity_scope_get_sources (UnityScope *self)
GList * unity_scope_get_filters (UnityScope *self)
DeeSerializableModel * unity_scope_get_results_model (UnityScope *self)
DeeSerializableModel * unity_scope_get_global_results_model (UnityScope *self)
static void unity_scope_class_init (UnityScopeClass *klass)
static void unity_scope_instance_init (UnityScope *self)
GType unity_scope_get_type (void)

Variables

static gpointer unity_scope_parent_class = NULL

Class Documentation

struct _UnityScopePrivate

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

Class Members
gboolean _active
gchar * _dbus_path
gboolean _exported
UnityScopeImpl * _pimpl
gboolean _search_in_global
UnityOptionsFilter * _sources
gboolean is_local
UnityLensSearch * last_search
struct _UnityScopeImpl

Definition at line 1016 of file unity-internal.h.

Collaboration diagram for _UnityScopeImpl:
Class Members
DeeSerializableModel * _filters_model
DeeSerializableModel * _global_results_model
DeeSerializableModel * _results_model
GObject parent_instance
UnityScopeImplPrivate * priv
struct _UnityScopeImplClass

Definition at line 1024 of file unity-internal.h.

Class Members
GObjectClass parent_class
struct _UnityScopeActivateData

Definition at line 77 of file unity-scope.c.

Collaboration diagram for _UnityScopeActivateData:
Class Members
GSimpleAsyncResult * _async_result
GError * _inner_error_
GAsyncResult * _res_
GObject * _source_object_
int _state_
UnityScopeImpl * _tmp0_
gchar * _tmp10_
GHashTable * _tmp11_
const gchar * _tmp1_
UnityProtocolActionType _tmp2_
UnityProtocolActivationReplyRaw _tmp3_
GError * _tmp4_
const gchar * _tmp5_
const gchar * _tmp6_
gchar * _tmp7_
gchar * _tmp8_
const gchar * _tmp9_
UnityProtocolActionType action_type
GError * e
UnityProtocolActivationReplyRaw reply
UnityProtocolActivationReplyRaw res
UnityProtocolActivationReplyRaw result
UnityScope * self
gchar * uri
struct _UnityScopeUpdatePreviewPropertyData

Definition at line 104 of file unity-scope.c.

Collaboration diagram for _UnityScopeUpdatePreviewPropertyData:
Class Members
GSimpleAsyncResult * _async_result
GError * _inner_error_
GAsyncResult * _res_
GObject * _source_object_
int _state_
UnityScopeImpl * _tmp0_
GEqualFunc _tmp10_
GHashTable * _tmp11_
const gchar * _tmp1_
GHashTable * _tmp2_
GHashTable * _tmp3_
GError * _tmp4_
const gchar * _tmp5_
const gchar * _tmp6_
gchar * _tmp7_
gchar * _tmp8_
GHashFunc _tmp9_
GError * e
GHashTable * reply
GHashTable * result
UnityScope * self
gchar * uri
GHashTable * values
struct _UnityScopeSearchData

Definition at line 130 of file unity-scope.c.

Collaboration diagram for _UnityScopeSearchData:
Class Members
GSimpleAsyncResult * _async_result
GError * _inner_error_
GAsyncResult * _res_
GHashTable * _result_
GObject * _source_object_
int _state_
UnityScopeImpl * _tmp0_
const gchar * _tmp1_
GHashTable * _tmp2_
GHashTable * _tmp3_
GHashTable * hints
GHashTable * result
gchar * search_string
UnityScope * self
struct _UnityScopeGlobalSearchData

Definition at line 147 of file unity-scope.c.

Collaboration diagram for _UnityScopeGlobalSearchData:
Class Members
GSimpleAsyncResult * _async_result
GError * _inner_error_
GAsyncResult * _res_
GHashTable * _result_
GObject * _source_object_
int _state_
UnityScopeImpl * _tmp0_
const gchar * _tmp1_
GHashTable * _tmp2_
GHashTable * _tmp3_
GHashTable * hints
GHashTable * result
gchar * search_string
UnityScope * self

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 45 of file unity-scope.c.

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

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

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

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

#define _g_hash_table_unref0 (   var)    ((var == NULL) ? NULL : (var = (g_hash_table_unref (var), NULL)))

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

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

Definition at line 44 of file unity-scope.c.

#define UNITY_IS_SCOPE_IMPL (   obj)    (G_TYPE_CHECK_INSTANCE_TYPE ((obj), UNITY_TYPE_SCOPE_IMPL))

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

#define UNITY_IS_SCOPE_IMPL_CLASS (   klass)    (G_TYPE_CHECK_CLASS_TYPE ((klass), UNITY_TYPE_SCOPE_IMPL))

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

#define UNITY_SCOPE_GET_PRIVATE (   o)    (G_TYPE_INSTANCE_GET_PRIVATE ((o), UNITY_TYPE_SCOPE, UnityScopePrivate))
#define UNITY_SCOPE_IMPL (   obj)    (G_TYPE_CHECK_INSTANCE_CAST ((obj), UNITY_TYPE_SCOPE_IMPL, UnityScopeImpl))

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

#define UNITY_SCOPE_IMPL_CLASS (   klass)    (G_TYPE_CHECK_CLASS_CAST ((klass), UNITY_TYPE_SCOPE_IMPL, UnityScopeImplClass))

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

#define UNITY_SCOPE_IMPL_GET_CLASS (   obj)    (G_TYPE_INSTANCE_GET_CLASS ((obj), UNITY_TYPE_SCOPE_IMPL, UnityScopeImplClass))

Definition at line 39 of file unity-scope.c.

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


Typedef Documentation

typedef struct _UnityScopeActivateData

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

Definition at line 52 of file unity-scope.c.

typedef struct _UnityScopeImpl

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

typedef struct _UnityScopeImplClass

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

typedef struct _UnityScopeImplPrivate

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

typedef struct _UnityScopeSearchData

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

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


Function Documentation

static void _g_free0_ ( gpointer  var) [static]

Invalidates current search and queues new search.

This method will invalidate (and cancel) last search and queue a new search (with the same search_string). The Scope.search_changed signal will be emitted immediately in case the Lens managing this scope is active, or as soon as it becomes active.

Parameters:
search_type,:Type of search to queue.

Definition at line 360 of file unity-scope.c.

                                     {
       var = (g_free (var), NULL);
}

Here is the caller graph for this function:

static gpointer _g_hash_table_ref0 ( gpointer  self) [static]

Definition at line 757 of file unity-scope.c.

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

Here is the caller graph for this function:

static void _g_list_free__g_object_unref0_ ( GList *  self) [static]

Definition at line 252 of file unity-scope.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 308 of file unity-scope.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 247 of file unity-scope.c.

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

Here is the caller graph for this function:

static void _g_variant_unref0_ ( gpointer  var) [static]

Definition at line 365 of file unity-scope.c.

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

Here is the caller graph for this function:

static void _vala_array_destroy ( gpointer  array,
gint  array_length,
GDestroyNotify  destroy_func 
) [static]

Definition at line 1451 of file unity-scope.c.

                                                                                                 {
       if ((array != NULL) && (destroy_func != NULL)) {
              int i;
              for (i = 0; i < array_length; i = i + 1) {
                     if (((gpointer*) array)[i] != NULL) {
                            destroy_func (((gpointer*) array)[i]);
                     }
              }
       }
}

Here is the caller graph for this function:

static void _vala_array_free ( gpointer  array,
gint  array_length,
GDestroyNotify  destroy_func 
) [static]

Definition at line 1463 of file unity-scope.c.

                                                                                              {
       _vala_array_destroy (array, array_length, destroy_func);
       g_free (array);
}

Here is the call graph for this function:

static gboolean _vala_string_array_contains ( gchar **  stack,
int  stack_length,
gchar *  needle 
) [static]

Definition at line 520 of file unity-scope.c.

                                                                                             {
       int i;
       for (i = 0; i < stack_length; i++) {
              if (g_strcmp0 (stack[i], needle) == 0) {
                     return TRUE;
              }
       }
       return FALSE;
}

Here is the caller graph for this function:

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

Definition at line 1390 of file unity-scope.c.

                                                                                                                     {
       UnityScope * self;
       self = G_TYPE_CHECK_INSTANCE_CAST (object, UNITY_TYPE_SCOPE, UnityScope);
       switch (property_id) {
              case UNITY_SCOPE_ACTIVE:
              g_value_set_boolean (value, unity_scope_get_active (self));
              break;
              case UNITY_SCOPE_EXPORTED:
              g_value_set_boolean (value, unity_scope_get_exported (self));
              break;
              case UNITY_SCOPE_SEARCH_IN_GLOBAL:
              g_value_set_boolean (value, unity_scope_get_search_in_global (self));
              break;
              case UNITY_SCOPE_DBUS_PATH:
              g_value_set_string (value, unity_scope_get_dbus_path (self));
              break;
              case UNITY_SCOPE_SOURCES:
              g_value_set_object (value, unity_scope_get_sources (self));
              break;
              case UNITY_SCOPE_FILTERS:
              g_value_set_pointer (value, unity_scope_get_filters (self));
              break;
              case UNITY_SCOPE_RESULTS_MODEL:
              g_value_set_object (value, unity_scope_get_results_model (self));
              break;
              case UNITY_SCOPE_GLOBAL_RESULTS_MODEL:
              g_value_set_object (value, unity_scope_get_global_results_model (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_scope_set_property ( GObject *  object,
guint  property_id,
const GValue *  value,
GParamSpec *  pspec 
) [static]

Definition at line 1425 of file unity-scope.c.

                                                                                                                           {
       UnityScope * self;
       self = G_TYPE_CHECK_INSTANCE_CAST (object, UNITY_TYPE_SCOPE, UnityScope);
       switch (property_id) {
              case UNITY_SCOPE_ACTIVE:
              unity_scope_set_active (self, g_value_get_boolean (value));
              break;
              case UNITY_SCOPE_EXPORTED:
              unity_scope_set_exported (self, g_value_get_boolean (value));
              break;
              case UNITY_SCOPE_SEARCH_IN_GLOBAL:
              unity_scope_set_search_in_global (self, g_value_get_boolean (value));
              break;
              case UNITY_SCOPE_DBUS_PATH:
              unity_scope_set_dbus_path (self, g_value_get_string (value));
              break;
              case UNITY_SCOPE_SOURCES:
              unity_scope_set_sources (self, g_value_get_object (value));
              break;
              default:
              G_OBJECT_WARN_INVALID_PROPERTY_ID (object, property_id, pspec);
              break;
       }
}

Here is the call graph for this function:

Here is the caller graph for this function:

static void g_cclosure_user_marshal_OBJECT__STRING ( GClosure *  closure,
GValue *  return_value,
guint  n_param_values,
const GValue *  param_values,
gpointer  invocation_hint,
gpointer  marshal_data 
) [static]

Definition at line 1224 of file unity-scope.c.

                                                                                                                                                                                                   {
       typedef gpointer (*GMarshalFunc_OBJECT__STRING) (gpointer data1, const char* arg_1, gpointer data2);
       register GMarshalFunc_OBJECT__STRING callback;
       register GCClosure * cc;
       register gpointer data1;
       register gpointer data2;
       gpointer v_return;
       cc = (GCClosure *) closure;
       g_return_if_fail (return_value != NULL);
       g_return_if_fail (n_param_values == 2);
       if (G_CCLOSURE_SWAP_DATA (closure)) {
              data1 = closure->data;
              data2 = param_values->data[0].v_pointer;
       } else {
              data1 = param_values->data[0].v_pointer;
              data2 = closure->data;
       }
       callback = (GMarshalFunc_OBJECT__STRING) (marshal_data ? marshal_data : cc->callback);
       v_return = callback (data1, g_value_get_string (param_values + 1), data2);
       g_value_take_object (return_value, v_return);
}

Here is the caller graph for this function:

static void g_cclosure_user_marshal_STRING__OBJECT ( GClosure *  closure,
GValue *  return_value,
guint  n_param_values,
const GValue *  param_values,
gpointer  invocation_hint,
gpointer  marshal_data 
) [static]

Definition at line 1287 of file unity-scope.c.

                                                                                                                                                                                                   {
       typedef const char* (*GMarshalFunc_STRING__OBJECT) (gpointer data1, gpointer arg_1, gpointer data2);
       register GMarshalFunc_STRING__OBJECT callback;
       register GCClosure * cc;
       register gpointer data1;
       register gpointer data2;
       const char* v_return;
       cc = (GCClosure *) closure;
       g_return_if_fail (return_value != NULL);
       g_return_if_fail (n_param_values == 2);
       if (G_CCLOSURE_SWAP_DATA (closure)) {
              data1 = closure->data;
              data2 = param_values->data[0].v_pointer;
       } else {
              data1 = param_values->data[0].v_pointer;
              data2 = closure->data;
       }
       callback = (GMarshalFunc_STRING__OBJECT) (marshal_data ? marshal_data : cc->callback);
       v_return = callback (data1, g_value_get_object (param_values + 1), data2);
       g_value_take_string (return_value, v_return);
}

Here is the caller graph for this function:

static void g_cclosure_user_marshal_VOID__BOXED_INT ( GClosure *  closure,
GValue *  return_value,
guint  n_param_values,
const GValue *  param_values,
gpointer  invocation_hint,
gpointer  marshal_data 
) [static]

Definition at line 1247 of file unity-scope.c.

                                                                                                                                                                                                    {
       typedef void (*GMarshalFunc_VOID__BOXED_INT) (gpointer data1, gpointer arg_1, gint arg_2, gpointer data2);
       register GMarshalFunc_VOID__BOXED_INT callback;
       register GCClosure * cc;
       register gpointer data1;
       register gpointer data2;
       cc = (GCClosure *) closure;
       g_return_if_fail (n_param_values == 3);
       if (G_CCLOSURE_SWAP_DATA (closure)) {
              data1 = closure->data;
              data2 = param_values->data[0].v_pointer;
       } else {
              data1 = param_values->data[0].v_pointer;
              data2 = closure->data;
       }
       callback = (GMarshalFunc_VOID__BOXED_INT) (marshal_data ? marshal_data : cc->callback);
       callback (data1, g_value_get_boxed (param_values + 1), g_value_get_int (param_values + 2), data2);
}

Here is the caller graph for this function:

static void g_cclosure_user_marshal_VOID__OBJECT_ENUM_OBJECT ( GClosure *  closure,
GValue *  return_value,
guint  n_param_values,
const GValue *  param_values,
gpointer  invocation_hint,
gpointer  marshal_data 
) [static]

Definition at line 1267 of file unity-scope.c.

                                                                                                                                                                                                             {
       typedef void (*GMarshalFunc_VOID__OBJECT_ENUM_OBJECT) (gpointer data1, gpointer arg_1, gint arg_2, gpointer arg_3, gpointer data2);
       register GMarshalFunc_VOID__OBJECT_ENUM_OBJECT callback;
       register GCClosure * cc;
       register gpointer data1;
       register gpointer data2;
       cc = (GCClosure *) closure;
       g_return_if_fail (n_param_values == 4);
       if (G_CCLOSURE_SWAP_DATA (closure)) {
              data1 = closure->data;
              data2 = param_values->data[0].v_pointer;
       } else {
              data1 = param_values->data[0].v_pointer;
              data2 = closure->data;
       }
       callback = (GMarshalFunc_VOID__OBJECT_ENUM_OBJECT) (marshal_data ? marshal_data : cc->callback);
       callback (data1, g_value_get_object (param_values + 1), g_value_get_enum (param_values + 2), g_value_get_object (param_values + 3), data2);
}

Here is the caller graph for this function:

static const gchar* string_to_string ( const gchar *  self) [static]

Definition at line 655 of file unity-scope.c.

                                                         {
       const gchar* result = NULL;
       g_return_val_if_fail (self != NULL, NULL);
       result = self;
       return result;
}

Here is the caller graph for this function:

void unity_filter_option_set_active ( UnityFilterOption *  self,
gboolean  value 
)

Definition at line 760 of file unity-lens-filters.c.

                                                                              {
       gboolean _tmp0_;
       g_return_if_fail (self != NULL);
       _tmp0_ = value;
       self->priv->_active = _tmp0_;
       g_object_notify ((GObject *) self, "active");
}
void unity_scope_activate ( UnityScope *  self,
const gchar *  uri,
UnityProtocolActionType  action_type,
GAsyncReadyCallback  _callback_,
gpointer  _user_data_ 
)

Definition at line 617 of file unity-scope.c.

                                                                                                                                                          {
       UnityScopeActivateData* _data_;
       UnityScope* _tmp0_;
       const gchar* _tmp1_;
       gchar* _tmp2_;
       UnityProtocolActionType _tmp3_;
       _data_ = g_slice_new0 (UnityScopeActivateData);
       _data_->_async_result = g_simple_async_result_new (G_OBJECT (self), _callback_, _user_data_, unity_scope_activate);
       g_simple_async_result_set_op_res_gpointer (_data_->_async_result, _data_, unity_scope_activate_data_free);
       _tmp0_ = _g_object_ref0 (self);
       _data_->self = _tmp0_;
       _tmp1_ = uri;
       _tmp2_ = g_strdup (_tmp1_);
       _data_->uri = _tmp2_;
       _tmp3_ = action_type;
       _data_->action_type = _tmp3_;
       unity_scope_activate_co (_data_);
}

Here is the call graph for this function:

Here is the caller graph for this function:

static gboolean unity_scope_activate_co ( UnityScopeActivateData *  _data_) [static]

Definition at line 663 of file unity-scope.c.

                                                                         {
       switch (_data_->_state_) {
              case 0:
              goto _state_0;
              case 1:
              goto _state_1;
              default:
              g_assert_not_reached ();
       }
       _state_0:
       {
              _data_->_tmp0_ = _data_->self->priv->_pimpl;
              _data_->_tmp1_ = _data_->uri;
              _data_->_tmp2_ = _data_->action_type;
              memset (&_data_->_tmp3_, 0, sizeof (UnityProtocolActivationReplyRaw));
              _data_->_state_ = 1;
              unity_protocol_scope_service_activate ((UnityProtocolScopeService*) _data_->_tmp0_, _data_->_tmp1_, (guint) _data_->_tmp2_, unity_scope_activate_ready, _data_);
              return FALSE;
              _state_1:
              unity_protocol_scope_service_activate_finish ((UnityProtocolScopeService*) _data_->_tmp0_, _data_->_res_, &_data_->_tmp3_, &_data_->_inner_error_);
              _data_->reply = _data_->_tmp3_;
              if (_data_->_inner_error_ != NULL) {
                     goto __catch19_g_error;
              }
              _data_->result = _data_->reply;
              if (_data_->_state_ == 0) {
                     g_simple_async_result_complete_in_idle (_data_->_async_result);
              } else {
                     g_simple_async_result_complete (_data_->_async_result);
              }
              g_object_unref (_data_->_async_result);
              return FALSE;
       }
       goto __finally19;
       __catch19_g_error:
       {
              _data_->e = _data_->_inner_error_;
              _data_->_inner_error_ = NULL;
              _data_->_tmp4_ = _data_->e;
              _data_->_tmp5_ = _data_->_tmp4_->message;
              _data_->_tmp6_ = NULL;
              _data_->_tmp6_ = string_to_string (_data_->_tmp5_);
              _data_->_tmp7_ = NULL;
              _data_->_tmp7_ = g_strconcat ("Unable to activate scope: ", _data_->_tmp6_, NULL);
              _data_->_tmp8_ = _data_->_tmp7_;
              g_warning ("unity-scope.vala:200: %s", _data_->_tmp8_);
              _g_free0 (_data_->_tmp8_);
              _g_error_free0 (_data_->e);
       }
       __finally19:
       if (_data_->_inner_error_ != NULL) {
              g_critical ("file %s: line %d: uncaught error: %s (%s, %d)", __FILE__, __LINE__, _data_->_inner_error_->message, g_quark_to_string (_data_->_inner_error_->domain), _data_->_inner_error_->code);
              g_clear_error (&_data_->_inner_error_);
              return FALSE;
       }
       memset (&_data_->res, 0, sizeof (UnityProtocolActivationReplyRaw));
       _data_->_tmp9_ = _data_->uri;
       _data_->_tmp10_ = g_strdup (_data_->_tmp9_);
       _g_free0 (_data_->res.uri);
       _data_->res.uri = _data_->_tmp10_;
       _data_->res.handled = (guint) UNITY_HANDLED_TYPE_NOT_HANDLED;
       _data_->_tmp11_ = g_hash_table_new_full (NULL, NULL, _g_free0_, _g_variant_unref0_);
       _g_hash_table_unref0 (_data_->res.hints);
       _data_->res.hints = _data_->_tmp11_;
       _data_->result = _data_->res;
       if (_data_->_state_ == 0) {
              g_simple_async_result_complete_in_idle (_data_->_async_result);
       } else {
              g_simple_async_result_complete (_data_->_async_result);
       }
       g_object_unref (_data_->_async_result);
       return FALSE;
       unity_protocol_activation_reply_raw_destroy (&_data_->res);
       if (_data_->_state_ == 0) {
              g_simple_async_result_complete_in_idle (_data_->_async_result);
       } else {
              g_simple_async_result_complete (_data_->_async_result);
       }
       g_object_unref (_data_->_async_result);
       return FALSE;
}

Here is the call graph for this function:

Here is the caller graph for this function:

static void unity_scope_activate_data_free ( gpointer  _data) [static]

Definition at line 607 of file unity-scope.c.

                                                            {
       UnityScopeActivateData* _data_;
       _data_ = _data;
       _g_free0 (_data_->uri);
       unity_protocol_activation_reply_raw_destroy (&_data_->result);
       _g_object_unref0 (_data_->self);
       g_slice_free (UnityScopeActivateData, _data_);
}

Here is the call graph for this function:

Here is the caller graph for this function:

void unity_scope_activate_finish ( UnityScope *  self,
GAsyncResult *  _res_,
UnityProtocolActivationReplyRaw *  result 
)

Definition at line 637 of file unity-scope.c.

                                                                                                                  {
       UnityScopeActivateData* _data_;
       UnityProtocolActivationReplyRaw _tmp0_ = {0};
       _data_ = g_simple_async_result_get_op_res_gpointer (G_SIMPLE_ASYNC_RESULT (_res_));
       unity_protocol_activation_reply_raw_copy (&_data_->result, &_tmp0_);
       *result = _tmp0_;
}

Here is the call graph for this function:

Here is the caller graph for this function:

static void unity_scope_activate_ready ( GObject *  source_object,
GAsyncResult *  _res_,
gpointer  _user_data_ 
) [static]

Definition at line 646 of file unity-scope.c.

                                                                                                           {
       UnityScopeActivateData* _data_;
       _data_ = _user_data_;
       _data_->_source_object_ = source_object;
       _data_->_res_ = _res_;
       unity_scope_activate_co (_data_);
}

Here is the call graph for this function:

Here is the caller graph for this function:

static void unity_scope_class_init ( UnityScopeClass *  klass) [static]

Definition at line 1332 of file unity-scope.c.

                                                             {
       unity_scope_parent_class = g_type_class_peek_parent (klass);
       g_type_class_add_private (klass, sizeof (UnityScopePrivate));
       G_OBJECT_CLASS (klass)->get_property = _vala_unity_scope_get_property;
       G_OBJECT_CLASS (klass)->set_property = _vala_unity_scope_set_property;
       G_OBJECT_CLASS (klass)->constructor = unity_scope_constructor;
       G_OBJECT_CLASS (klass)->finalize = unity_scope_finalize;
       g_object_class_install_property (G_OBJECT_CLASS (klass), UNITY_SCOPE_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_PARAM_WRITABLE));
       g_object_class_install_property (G_OBJECT_CLASS (klass), UNITY_SCOPE_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_SCOPE_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_SCOPE_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_SCOPE_SOURCES, g_param_spec_object ("sources", "sources", "sources", UNITY_TYPE_OPTIONS_FILTER, 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_SCOPE_FILTERS, g_param_spec_pointer ("filters", "filters", "filters", 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_SCOPE_RESULTS_MODEL, g_param_spec_object ("results-model", "results-model", "results-model", dee_serializable_model_get_type (), 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_SCOPE_GLOBAL_RESULTS_MODEL, g_param_spec_object ("global-results-model", "global-results-model", "global-results-model", dee_serializable_model_get_type (), G_PARAM_STATIC_NAME | G_PARAM_STATIC_NICK | G_PARAM_STATIC_BLURB | G_PARAM_READABLE));
       g_signal_new ("activate_uri", UNITY_TYPE_SCOPE, G_SIGNAL_RUN_LAST, 0, NULL, NULL, g_cclosure_user_marshal_OBJECT__STRING, UNITY_TYPE_ACTIVATION_RESPONSE, 1, G_TYPE_STRING);
       g_signal_new ("preview_uri", UNITY_TYPE_SCOPE, G_SIGNAL_RUN_LAST, 0, NULL, NULL, g_cclosure_user_marshal_OBJECT__STRING, UNITY_TYPE_PREVIEW, 1, G_TYPE_STRING);
       g_signal_new ("filters_changed", UNITY_TYPE_SCOPE, G_SIGNAL_RUN_LAST, 0, NULL, NULL, g_cclosure_marshal_VOID__VOID, G_TYPE_NONE, 0);
       g_signal_new ("active_sources_changed", UNITY_TYPE_SCOPE, G_SIGNAL_RUN_LAST, 0, NULL, NULL, g_cclosure_user_marshal_VOID__BOXED_INT, G_TYPE_NONE, 2, G_TYPE_STRV, G_TYPE_INT);
       g_signal_new ("search_changed", UNITY_TYPE_SCOPE, G_SIGNAL_RUN_LAST, 0, NULL, NULL, g_cclosure_user_marshal_VOID__OBJECT_ENUM_OBJECT, G_TYPE_NONE, 3, UNITY_TYPE_LENS_SEARCH, UNITY_TYPE_SEARCH_TYPE, g_cancellable_get_type ());
       g_signal_new ("generate_search_key", UNITY_TYPE_SCOPE, G_SIGNAL_RUN_LAST | G_SIGNAL_DETAILED, 0, NULL, NULL, g_cclosure_user_marshal_STRING__OBJECT, G_TYPE_STRING, 1, UNITY_TYPE_LENS_SEARCH);
}

Here is the call graph for this function:

Here is the caller graph for this function:

UnityScope* unity_scope_construct ( GType  object_type,
const gchar *  dbus_path_ 
)

Definition at line 258 of file unity-scope.c.

                                                                               {
       UnityScope * self = NULL;
       const gchar* _tmp0_;
       g_return_val_if_fail (dbus_path_ != NULL, NULL);
       _tmp0_ = dbus_path_;
       self = (UnityScope*) g_object_new (object_type, "dbus-path", _tmp0_, NULL);
       return self;
}

Here is the caller graph for this function:

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

Definition at line 1310 of file unity-scope.c.

                                                                                                                                  {
       GObject * obj;
       GObjectClass * parent_class;
       UnityScope * self;
       UnityCheckOptionFilter* _tmp0_;
       UnityCheckOptionFilter* _tmp1_;
       UnityScopeImpl* _tmp2_;
       parent_class = G_OBJECT_CLASS (unity_scope_parent_class);
       obj = parent_class->constructor (type, n_construct_properties, construct_properties);
       self = G_TYPE_CHECK_INSTANCE_CAST (obj, UNITY_TYPE_SCOPE, UnityScope);
       _tmp0_ = unity_check_option_filter_new ("sources", "Sources", NULL, TRUE);
       _tmp1_ = _tmp0_;
       unity_scope_set_sources (self, (UnityOptionsFilter*) _tmp1_);
       _g_object_unref0 (_tmp1_);
       _tmp2_ = unity_scope_impl_new (self);
       _g_object_unref0 (self->priv->_pimpl);
       self->priv->_pimpl = _tmp2_;
       G_STATIC_ASSERT (UNITY_SEARCH_TYPE_N_TYPES == 2);
       return obj;
}

Here is the call graph for this function:

Here is the caller graph for this function:

void unity_scope_export ( UnityScope *  self,
GError **  error 
)

Definition at line 273 of file unity-scope.c.

                                                           {
       gboolean _tmp0_ = FALSE;
       gboolean _tmp1_;
       gboolean _tmp3_;
       GError * _inner_error_ = NULL;
       g_return_if_fail (self != NULL);
       _tmp1_ = self->priv->_exported;
       if (!_tmp1_) {
              gboolean _tmp2_;
              _tmp2_ = self->priv->is_local;
              _tmp0_ = !_tmp2_;
       } else {
              _tmp0_ = FALSE;
       }
       _tmp3_ = _tmp0_;
       if (_tmp3_) {
              UnityScopeImpl* _tmp4_;
              _tmp4_ = self->priv->_pimpl;
              unity_scope_impl_export (_tmp4_, &_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_scope_set_exported (self, TRUE);
              unity_scope_prepare_search (self);
       }
}

Here is the call graph for this function:

Here is the caller graph for this function:

static void unity_scope_finalize ( GObject *  obj) [static]

Definition at line 1366 of file unity-scope.c.

                                                {
       UnityScope * self;
       self = G_TYPE_CHECK_INSTANCE_CAST (obj, UNITY_TYPE_SCOPE, UnityScope);
       _g_free0 (self->priv->_dbus_path);
       _g_object_unref0 (self->priv->_sources);
       _vala_array_destroy (self->priv->last_search, 2, (GDestroyNotify) g_object_unref);
       _g_object_unref0 (self->priv->_pimpl);
       __g_list_free__g_object_unref0_0 (self->_filters);
       G_OBJECT_CLASS (unity_scope_parent_class)->finalize (obj);
}

Here is the call graph for this function:

Here is the caller graph for this function:

gboolean unity_scope_get_active ( UnityScope *  self)

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

const gchar* unity_scope_get_dbus_path ( UnityScope *  self)

Definition at line 1146 of file unity-scope.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_scope_get_exported ( UnityScope *  self)

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

UnityFilter* unity_scope_get_filter ( UnityScope *  self,
const gchar *  id 
)

Definition at line 313 of file unity-scope.c.

                                                                        {
       UnityFilter* result = NULL;
       GList* _tmp0_;
       g_return_val_if_fail (self != NULL, NULL);
       g_return_val_if_fail (id != NULL, NULL);
       _tmp0_ = self->_filters;
       {
              GList* filter_collection = NULL;
              GList* filter_it = NULL;
              filter_collection = _tmp0_;
              for (filter_it = filter_collection; filter_it != NULL; filter_it = filter_it->next) {
                     UnityFilter* _tmp1_;
                     UnityFilter* filter = NULL;
                     _tmp1_ = _g_object_ref0 ((UnityFilter*) filter_it->data);
                     filter = _tmp1_;
                     {
                            UnityFilter* _tmp2_;
                            const gchar* _tmp3_;
                            const gchar* _tmp4_;
                            const gchar* _tmp5_;
                            _tmp2_ = filter;
                            _tmp3_ = unity_filter_get_id (_tmp2_);
                            _tmp4_ = _tmp3_;
                            _tmp5_ = id;
                            if (g_strcmp0 (_tmp4_, _tmp5_) == 0) {
                                   result = filter;
                                   return result;
                            }
                            _g_object_unref0 (filter);
                     }
              }
       }
       result = NULL;
       return result;
}

Here is the call graph for this function:

DeeSerializableModel* unity_scope_get_filter_model ( UnityScope *  self)

Definition at line 595 of file unity-scope.c.

                                                                      {
       DeeSerializableModel* result = NULL;
       UnityScopeImpl* _tmp0_;
       DeeSerializableModel* _tmp1_;
       g_return_val_if_fail (self != NULL, NULL);
       _tmp0_ = self->priv->_pimpl;
       _tmp1_ = _tmp0_->_filters_model;
       result = _tmp1_;
       return result;
}

Here is the caller graph for this function:

GList* unity_scope_get_filters ( UnityScope *  self)

Definition at line 1190 of file unity-scope.c.

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

Here is the caller graph for this function:

DeeSerializableModel* unity_scope_get_global_results_model ( UnityScope *  self)

Definition at line 1212 of file unity-scope.c.

                                                                              {
       DeeSerializableModel* result;
       UnityScopeImpl* _tmp0_;
       DeeSerializableModel* _tmp1_;
       g_return_val_if_fail (self != NULL, NULL);
       _tmp0_ = self->priv->_pimpl;
       _tmp1_ = _tmp0_->_global_results_model;
       result = _tmp1_;
       return result;
}

Here is the caller graph for this function:

UnityLensSearch* unity_scope_get_last_search ( UnityScope *  self,
UnitySearchType  search_type 
)

Definition at line 482 of file unity-scope.c.

                                                                                             {
       UnityLensSearch* result = NULL;
       UnitySearchType _tmp0_;
       UnityLensSearch* _tmp1_;
       g_return_val_if_fail (self != NULL, NULL);
       _tmp0_ = search_type;
       _tmp1_ = self->priv->last_search[_tmp0_];
       result = _tmp1_;
       return result;
}

Here is the caller graph for this function:

DeeSerializableModel* unity_scope_get_results_model ( UnityScope *  self)

Definition at line 1200 of file unity-scope.c.

                                                                       {
       DeeSerializableModel* result;
       UnityScopeImpl* _tmp0_;
       DeeSerializableModel* _tmp1_;
       g_return_val_if_fail (self != NULL, NULL);
       _tmp0_ = self->priv->_pimpl;
       _tmp1_ = _tmp0_->_results_model;
       result = _tmp1_;
       return result;
}

Here is the caller graph for this function:

gboolean unity_scope_get_search_in_global ( UnityScope *  self)

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

UnityOptionsFilter* unity_scope_get_sources ( UnityScope *  self)

Definition at line 1168 of file unity-scope.c.

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

Here is the caller graph for this function:

GType unity_scope_get_type ( void  )

Definition at line 1378 of file unity-scope.c.

                                  {
       static volatile gsize unity_scope_type_id__volatile = 0;
       if (g_once_init_enter (&unity_scope_type_id__volatile)) {
              static const GTypeInfo g_define_type_info = { sizeof (UnityScopeClass), (GBaseInitFunc) NULL, (GBaseFinalizeFunc) NULL, (GClassInitFunc) unity_scope_class_init, (GClassFinalizeFunc) NULL, NULL, sizeof (UnityScope), 0, (GInstanceInitFunc) unity_scope_instance_init, NULL };
              GType unity_scope_type_id;
              unity_scope_type_id = g_type_register_static (G_TYPE_OBJECT, "UnityScope", &g_define_type_info, 0);
              g_once_init_leave (&unity_scope_type_id__volatile, unity_scope_type_id);
       }
       return unity_scope_type_id__volatile;
}

Here is the call graph for this function:

void unity_scope_global_search ( UnityScope *  self,
const gchar *  search_string,
GHashTable *  hints,
GAsyncReadyCallback  _callback_,
gpointer  _user_data_ 
)

Definition at line 995 of file unity-scope.c.

                                                                                                                                                       {
       UnityScopeGlobalSearchData* _data_;
       UnityScope* _tmp0_;
       const gchar* _tmp1_;
       gchar* _tmp2_;
       GHashTable* _tmp3_;
       GHashTable* _tmp4_;
       _data_ = g_slice_new0 (UnityScopeGlobalSearchData);
       _data_->_async_result = g_simple_async_result_new (G_OBJECT (self), _callback_, _user_data_, unity_scope_global_search);
       g_simple_async_result_set_op_res_gpointer (_data_->_async_result, _data_, unity_scope_global_search_data_free);
       _tmp0_ = _g_object_ref0 (self);
       _data_->self = _tmp0_;
       _tmp1_ = search_string;
       _tmp2_ = g_strdup (_tmp1_);
       _data_->search_string = _tmp2_;
       _tmp3_ = hints;
       _tmp4_ = _g_hash_table_ref0 (_tmp3_);
       _data_->hints = _tmp4_;
       unity_scope_global_search_co (_data_);
}

Here is the call graph for this function:

Here is the caller graph for this function:

static gboolean unity_scope_global_search_co ( UnityScopeGlobalSearchData *  _data_) [static]

Definition at line 1039 of file unity-scope.c.

                                                                                  {
       switch (_data_->_state_) {
              case 0:
              goto _state_0;
              case 1:
              goto _state_1;
              default:
              g_assert_not_reached ();
       }
       _state_0:
       _data_->_tmp0_ = _data_->self->priv->_pimpl;
       _data_->_tmp1_ = _data_->search_string;
       _data_->_tmp2_ = _data_->hints;
       _data_->_state_ = 1;
       unity_protocol_scope_service_global_search ((UnityProtocolScopeService*) _data_->_tmp0_, _data_->_tmp1_, _data_->_tmp2_, unity_scope_global_search_ready, _data_);
       return FALSE;
       _state_1:
       _data_->_tmp3_ = NULL;
       _data_->_tmp3_ = unity_protocol_scope_service_global_search_finish ((UnityProtocolScopeService*) _data_->_tmp0_, _data_->_res_, &_data_->_inner_error_);
       _data_->_result_ = _data_->_tmp3_;
       if (_data_->_inner_error_ != NULL) {
              g_simple_async_result_set_from_error (_data_->_async_result, _data_->_inner_error_);
              g_error_free (_data_->_inner_error_);
              if (_data_->_state_ == 0) {
                     g_simple_async_result_complete_in_idle (_data_->_async_result);
              } else {
                     g_simple_async_result_complete (_data_->_async_result);
              }
              g_object_unref (_data_->_async_result);
              return FALSE;
       }
       _data_->result = _data_->_result_;
       if (_data_->_state_ == 0) {
              g_simple_async_result_complete_in_idle (_data_->_async_result);
       } else {
              g_simple_async_result_complete (_data_->_async_result);
       }
       g_object_unref (_data_->_async_result);
       return FALSE;
       _g_hash_table_unref0 (_data_->_result_);
       if (_data_->_state_ == 0) {
              g_simple_async_result_complete_in_idle (_data_->_async_result);
       } else {
              g_simple_async_result_complete (_data_->_async_result);
       }
       g_object_unref (_data_->_async_result);
       return FALSE;
}

Here is the call graph for this function:

Here is the caller graph for this function:

static void unity_scope_global_search_data_free ( gpointer  _data) [static]

Definition at line 984 of file unity-scope.c.

                                                                 {
       UnityScopeGlobalSearchData* _data_;
       _data_ = _data;
       _g_free0 (_data_->search_string);
       _g_hash_table_unref0 (_data_->hints);
       _g_hash_table_unref0 (_data_->result);
       _g_object_unref0 (_data_->self);
       g_slice_free (UnityScopeGlobalSearchData, _data_);
}

Here is the caller graph for this function:

GHashTable* unity_scope_global_search_finish ( UnityScope *  self,
GAsyncResult *  _res_,
GError **  error 
)

Definition at line 1017 of file unity-scope.c.

                                                                                                     {
       GHashTable* result;
       UnityScopeGlobalSearchData* _data_;
       if (g_simple_async_result_propagate_error (G_SIMPLE_ASYNC_RESULT (_res_), error)) {
              return NULL;
       }
       _data_ = g_simple_async_result_get_op_res_gpointer (G_SIMPLE_ASYNC_RESULT (_res_));
       result = _data_->result;
       _data_->result = NULL;
       return result;
}

Here is the caller graph for this function:

static void unity_scope_global_search_ready ( GObject *  source_object,
GAsyncResult *  _res_,
gpointer  _user_data_ 
) [static]

Definition at line 1030 of file unity-scope.c.

                                                                                                                {
       UnityScopeGlobalSearchData* _data_;
       _data_ = _user_data_;
       _data_->_source_object_ = source_object;
       _data_->_res_ = _res_;
       unity_scope_global_search_co (_data_);
}

Here is the call graph for this function:

Here is the caller graph for this function:

UnityScopeImpl* unity_scope_impl_construct ( GType  object_type,
UnityScope *  owner 
)
void unity_scope_impl_export ( UnityScopeImpl *  self,
GError **  error 
)

Definition at line 803 of file unity-scope-private.c.

                                                                    {
       gchar* _tmp0_ = NULL;
       gchar* _tmp1_;
       GDBusConnection* _tmp2_ = NULL;
       GDBusConnection* conn;
       GDBusConnection* _tmp3_;
       UnityScope* _tmp4_;
       const gchar* _tmp5_;
       const gchar* _tmp6_;
       guint _tmp7_ = 0U;
       guint _tmp8_;
       GError * _inner_error_ = NULL;
       g_return_if_fail (self != NULL);
       _tmp0_ = unity_scope_impl_create_dbus_name (self);
       _tmp1_ = _tmp0_;
       unity_scope_impl_create_shared_models (self, _tmp1_);
       _g_free0 (_tmp1_);
       _tmp2_ = g_bus_get_sync (G_BUS_TYPE_SESSION, NULL, &_inner_error_);
       conn = _tmp2_;
       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;
              }
       }
       _tmp3_ = conn;
       _tmp4_ = self->priv->_owner;
       _tmp5_ = unity_scope_get_dbus_path (_tmp4_);
       _tmp6_ = _tmp5_;
       _tmp7_ = unity_protocol_scope_service_register_object (G_TYPE_CHECK_INSTANCE_TYPE (self, UNITY_PROTOCOL_TYPE_SCOPE_SERVICE) ? ((UnityProtocolScopeService*) self) : NULL, _tmp3_, _tmp6_, &_inner_error_);
       _tmp8_ = _tmp7_;
       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 = _tmp8_;
       unity_scope_impl_queue_info_changed (self);
       _g_object_unref0 (conn);
}

Here is the call graph for this function:

GType unity_scope_impl_get_type ( void  )

Definition at line 167 of file unity-scope.c.

      {
       UNITY_SCOPE_DUMMY_PROPERTY,
       UNITY_SCOPE_ACTIVE,
       UNITY_SCOPE_EXPORTED,
       UNITY_SCOPE_SEARCH_IN_GLOBAL,
       UNITY_SCOPE_DBUS_PATH,
       UNITY_SCOPE_SOURCES,
       UNITY_SCOPE_FILTERS,
       UNITY_SCOPE_RESULTS_MODEL,
       UNITY_SCOPE_GLOBAL_RESULTS_MODEL
};

Here is the call graph for this function:

void unity_scope_impl_invalidate_search ( UnityScopeImpl *  self,
UnitySearchType  search_type 
)

Definition at line 2127 of file unity-scope-private.c.

                                                                                            {
       UnitySearchType _tmp0_;
       gchar** _tmp1_;
       gint _tmp1__length1;
       UnitySearchType _tmp2_;
       gchar* _tmp3_;
       g_return_if_fail (self != NULL);
       _tmp0_ = search_type;
       g_return_if_fail (_tmp0_ < UNITY_SEARCH_TYPE_N_TYPES);
       _tmp1_ = self->priv->search_keys;
       _tmp1__length1 = self->priv->search_keys_length1;
       _tmp2_ = search_type;
       _g_free0 (_tmp1_[_tmp2_]);
       _tmp1_[_tmp2_] = NULL;
       _tmp3_ = _tmp1_[_tmp2_];
}
UnityScopeImpl* unity_scope_impl_new ( UnityScope *  owner)

Definition at line 595 of file unity-scope-private.c.

Here is the call graph for this function:

void unity_scope_impl_schedule_search_changed ( UnityScopeImpl *  self,
UnityLensSearch *  search,
UnitySearchType  search_type,
gboolean  wait_for_view,
GAsyncReadyCallback  _callback_,
gpointer  _user_data_ 
)

Definition at line 1817 of file unity-scope-private.c.

                                                                                                                                                                                                         {
       UnityScopeImplScheduleSearchChangedData* _data_;
       UnityScopeImpl* _tmp0_;
       UnityLensSearch* _tmp1_;
       UnityLensSearch* _tmp2_;
       UnitySearchType _tmp3_;
       gboolean _tmp4_;
       _data_ = g_slice_new0 (UnityScopeImplScheduleSearchChangedData);
       _data_->_async_result = g_simple_async_result_new (G_OBJECT (self), _callback_, _user_data_, unity_scope_impl_schedule_search_changed);
       g_simple_async_result_set_op_res_gpointer (_data_->_async_result, _data_, unity_scope_impl_schedule_search_changed_data_free);
       _tmp0_ = _g_object_ref0 (self);
       _data_->self = _tmp0_;
       _tmp1_ = search;
       _tmp2_ = _g_object_ref0 (_tmp1_);
       _data_->search = _tmp2_;
       _tmp3_ = search_type;
       _data_->search_type = _tmp3_;
       _tmp4_ = wait_for_view;
       _data_->wait_for_view = _tmp4_;
       unity_scope_impl_schedule_search_changed_co (_data_);
}

Here is the call graph for this function:

void unity_scope_impl_schedule_search_changed_finish ( UnityScopeImpl *  self,
GAsyncResult *  _res_ 
)

Definition at line 1840 of file unity-scope-private.c.

                                                                                                 {
       UnityScopeImplScheduleSearchChangedData* _data_;
       _data_ = g_simple_async_result_get_op_res_gpointer (G_SIMPLE_ASYNC_RESULT (_res_));
}
void unity_scope_impl_set_view_type ( UnityScopeImpl *  self,
UnityProtocolViewType  value 
)

Definition at line 3113 of file unity-scope-private.c.

                                                                                        {
       UnityProtocolViewType _tmp0_;
       g_return_if_fail (self != NULL);
       _tmp0_ = value;
       self->priv->_view_type = _tmp0_;
       g_object_notify ((GObject *) self, "view-type");
}
void unity_scope_impl_update_search_key ( UnityScopeImpl *  self,
UnityLensSearch *  ls,
UnitySearchType  search_type 
)

Definition at line 2052 of file unity-scope-private.c.

                                                                                                                 {
       UnitySearchType _tmp0_;
       UnityLensSearch* _tmp1_;
       UnitySearchType _tmp2_;
       gchar* _tmp3_ = NULL;
       gchar* search_key;
       gchar** _tmp4_;
       gint _tmp4__length1;
       UnitySearchType _tmp5_;
       gchar* _tmp6_;
       gchar* _tmp7_;
       UnityScope* _tmp8_;
       UnityLensSearch* _tmp9_;
       UnitySearchType _tmp10_;
       g_return_if_fail (self != NULL);
       g_return_if_fail (ls != NULL);
       _tmp0_ = search_type;
       g_return_if_fail (_tmp0_ < UNITY_SEARCH_TYPE_N_TYPES);
       _tmp1_ = ls;
       _tmp2_ = search_type;
       _tmp3_ = unity_scope_impl_get_search_key (self, _tmp1_, _tmp2_);
       search_key = _tmp3_;
       _tmp4_ = self->priv->search_keys;
       _tmp4__length1 = self->priv->search_keys_length1;
       _tmp5_ = search_type;
       _tmp6_ = g_strdup (search_key);
       _g_free0 (_tmp4_[_tmp5_]);
       _tmp4_[_tmp5_] = _tmp6_;
       _tmp7_ = _tmp4_[_tmp5_];
       _tmp8_ = self->priv->_owner;
       _tmp9_ = ls;
       _tmp10_ = search_type;
       unity_scope_set_last_search (_tmp8_, _tmp9_, _tmp10_);
       _g_free0 (search_key);
}

Here is the call graph for this function:

static void unity_scope_instance_init ( UnityScope *  self) [static]

Definition at line 1356 of file unity-scope.c.

                                                          {
       self->priv = UNITY_SCOPE_GET_PRIVATE (self);
       self->priv->_active = FALSE;
       self->priv->_exported = FALSE;
       self->priv->_search_in_global = TRUE;
       self->priv->is_local = FALSE;
       self->_filters = NULL;
}

Here is the caller graph for this function:

void unity_scope_invalidate_search ( UnityScope *  self,
UnitySearchType  search_type 
)

Invalidates last search.

Invalidate last search, so that the next search request will trigger the Scope.search_changed signal even if the search would be otherwise discarded because of unchanged search key.

Parameters:
search_type,:Type of search to invalidate.
See also:
Scope.generate_search_key

Definition at line 463 of file unity-scope.c.

                                                                                   {
       UnitySearchType _tmp0_;
       UnityScopeImpl* _tmp1_;
       UnitySearchType _tmp2_;
       UnitySearchType _tmp3_;
       UnityLensSearch* _tmp4_;
       g_return_if_fail (self != NULL);
       _tmp0_ = search_type;
       g_return_if_fail (_tmp0_ < UNITY_SEARCH_TYPE_N_TYPES);
       _tmp1_ = self->priv->_pimpl;
       _tmp2_ = search_type;
       unity_scope_impl_invalidate_search (_tmp1_, _tmp2_);
       _tmp3_ = search_type;
       _g_object_unref0 (self->priv->last_search[_tmp3_]);
       self->priv->last_search[_tmp3_] = NULL;
       _tmp4_ = self->priv->last_search[_tmp3_];
}

Here is the call graph for this function:

Here is the caller graph for this function:

UnityScope* unity_scope_new ( const gchar *  dbus_path_)

Definition at line 268 of file unity-scope.c.

                                                      {
       return unity_scope_construct (UNITY_TYPE_SCOPE, dbus_path_);
}

Here is the call graph for this function:

Here is the caller graph for this function:

static void unity_scope_prepare_search ( UnityScope *  self) [static]

Definition at line 585 of file unity-scope.c.

                                                          {
       gboolean _tmp0_;
       g_return_if_fail (self != NULL);
       _tmp0_ = self->priv->_search_in_global;
       if (_tmp0_) {
              unity_scope_queue_search_changed (self, UNITY_SEARCH_TYPE_GLOBAL);
       }
}

Here is the call graph for this function:

Here is the caller graph for this function:

void unity_scope_queue_search_changed ( UnityScope *  self,
UnitySearchType  search_type 
)

Definition at line 370 of file unity-scope.c.

                                                                                      {
       UnitySearchType _tmp0_;
       UnitySearchType _tmp1_;
       gboolean is_global_search;
       UnitySearchType _tmp2_;
       UnityLensSearch* _tmp3_;
       UnityLensSearch* _tmp4_;
       UnityLensSearch* search;
       UnitySearchType _tmp5_;
       UnityLensSearch* _tmp6_;
       UnityScopeImpl* _tmp21_;
       UnityLensSearch* _tmp22_;
       UnitySearchType _tmp23_;
       UnityScopeImpl* _tmp24_;
       UnityLensSearch* _tmp25_;
       UnitySearchType _tmp26_;
       g_return_if_fail (self != NULL);
       _tmp0_ = search_type;
       g_return_if_fail (_tmp0_ < UNITY_SEARCH_TYPE_N_TYPES);
       _tmp1_ = search_type;
       is_global_search = _tmp1_ == UNITY_SEARCH_TYPE_GLOBAL;
       _tmp2_ = search_type;
       _tmp3_ = self->priv->last_search[_tmp2_];
       _tmp4_ = _g_object_ref0 (_tmp3_);
       search = _tmp4_;
       _tmp5_ = search_type;
       unity_scope_invalidate_search (self, _tmp5_);
       _tmp6_ = search;
       if (_tmp6_ == NULL) {
              GHashFunc _tmp7_;
              GEqualFunc _tmp8_;
              GHashTable* _tmp9_;
              GHashTable* ht;
              DeeSerializableModel* _tmp10_ = NULL;
              gboolean _tmp11_;
              DeeSerializableModel* _tmp16_;
              DeeSerializableModel* _tmp17_;
              DeeSerializableModel* model;
              GHashTable* _tmp18_;
              DeeSerializableModel* _tmp19_;
              UnityLensSearch* _tmp20_;
              _tmp7_ = g_str_hash;
              _tmp8_ = g_str_equal;
              _tmp9_ = g_hash_table_new_full (_tmp7_, _tmp8_, _g_free0_, _g_variant_unref0_);
              ht = _tmp9_;
              _tmp11_ = is_global_search;
              if (_tmp11_) {
                     DeeSerializableModel* _tmp12_;
                     DeeSerializableModel* _tmp13_;
                     _tmp12_ = unity_scope_get_global_results_model (self);
                     _tmp13_ = _tmp12_;
                     _tmp10_ = _tmp13_;
              } else {
                     DeeSerializableModel* _tmp14_;
                     DeeSerializableModel* _tmp15_;
                     _tmp14_ = unity_scope_get_results_model (self);
                     _tmp15_ = _tmp14_;
                     _tmp10_ = _tmp15_;
              }
              _tmp16_ = _tmp10_;
              _tmp17_ = _g_object_ref0 (_tmp16_);
              model = _tmp17_;
              _tmp18_ = ht;
              _tmp19_ = model;
              _tmp20_ = unity_lens_search_new ("", _tmp18_, _tmp19_);
              g_object_ref_sink (_tmp20_);
              _g_object_unref0 (search);
              search = _tmp20_;
              _g_object_unref0 (model);
              _g_hash_table_unref0 (ht);
       }
       _tmp21_ = self->priv->_pimpl;
       _tmp22_ = search;
       _tmp23_ = search_type;
       unity_scope_impl_update_search_key (_tmp21_, _tmp22_, _tmp23_);
       _tmp24_ = self->priv->_pimpl;
       _tmp25_ = search;
       _tmp26_ = search_type;
       unity_scope_impl_schedule_search_changed (_tmp24_, _tmp25_, _tmp26_, TRUE, NULL, NULL);
       _g_object_unref0 (search);
}

Here is the call graph for this function:

Here is the caller graph for this function:

void unity_scope_search ( UnityScope *  self,
const gchar *  search_string,
GHashTable *  hints,
GAsyncReadyCallback  _callback_,
gpointer  _user_data_ 
)

Definition at line 890 of file unity-scope.c.

                                                                                                                                                {
       UnityScopeSearchData* _data_;
       UnityScope* _tmp0_;
       const gchar* _tmp1_;
       gchar* _tmp2_;
       GHashTable* _tmp3_;
       GHashTable* _tmp4_;
       _data_ = g_slice_new0 (UnityScopeSearchData);
       _data_->_async_result = g_simple_async_result_new (G_OBJECT (self), _callback_, _user_data_, unity_scope_search);
       g_simple_async_result_set_op_res_gpointer (_data_->_async_result, _data_, unity_scope_search_data_free);
       _tmp0_ = _g_object_ref0 (self);
       _data_->self = _tmp0_;
       _tmp1_ = search_string;
       _tmp2_ = g_strdup (_tmp1_);
       _data_->search_string = _tmp2_;
       _tmp3_ = hints;
       _tmp4_ = _g_hash_table_ref0 (_tmp3_);
       _data_->hints = _tmp4_;
       unity_scope_search_co (_data_);
}

Here is the call graph for this function:

Here is the caller graph for this function:

static gboolean unity_scope_search_co ( UnityScopeSearchData *  _data_) [static]

Definition at line 934 of file unity-scope.c.

                                                                     {
       switch (_data_->_state_) {
              case 0:
              goto _state_0;
              case 1:
              goto _state_1;
              default:
              g_assert_not_reached ();
       }
       _state_0:
       _data_->_tmp0_ = _data_->self->priv->_pimpl;
       _data_->_tmp1_ = _data_->search_string;
       _data_->_tmp2_ = _data_->hints;
       _data_->_state_ = 1;
       unity_protocol_scope_service_search ((UnityProtocolScopeService*) _data_->_tmp0_, _data_->_tmp1_, _data_->_tmp2_, unity_scope_search_ready, _data_);
       return FALSE;
       _state_1:
       _data_->_tmp3_ = NULL;
       _data_->_tmp3_ = unity_protocol_scope_service_search_finish ((UnityProtocolScopeService*) _data_->_tmp0_, _data_->_res_, &_data_->_inner_error_);
       _data_->_result_ = _data_->_tmp3_;
       if (_data_->_inner_error_ != NULL) {
              g_simple_async_result_set_from_error (_data_->_async_result, _data_->_inner_error_);
              g_error_free (_data_->_inner_error_);
              if (_data_->_state_ == 0) {
                     g_simple_async_result_complete_in_idle (_data_->_async_result);
              } else {
                     g_simple_async_result_complete (_data_->_async_result);
              }
              g_object_unref (_data_->_async_result);
              return FALSE;
       }
       _data_->result = _data_->_result_;
       if (_data_->_state_ == 0) {
              g_simple_async_result_complete_in_idle (_data_->_async_result);
       } else {
              g_simple_async_result_complete (_data_->_async_result);
       }
       g_object_unref (_data_->_async_result);
       return FALSE;
       _g_hash_table_unref0 (_data_->_result_);
       if (_data_->_state_ == 0) {
              g_simple_async_result_complete_in_idle (_data_->_async_result);
       } else {
              g_simple_async_result_complete (_data_->_async_result);
       }
       g_object_unref (_data_->_async_result);
       return FALSE;
}

Here is the call graph for this function:

Here is the caller graph for this function:

static void unity_scope_search_data_free ( gpointer  _data) [static]

Definition at line 879 of file unity-scope.c.

                                                          {
       UnityScopeSearchData* _data_;
       _data_ = _data;
       _g_free0 (_data_->search_string);
       _g_hash_table_unref0 (_data_->hints);
       _g_hash_table_unref0 (_data_->result);
       _g_object_unref0 (_data_->self);
       g_slice_free (UnityScopeSearchData, _data_);
}

Here is the caller graph for this function:

GHashTable* unity_scope_search_finish ( UnityScope *  self,
GAsyncResult *  _res_,
GError **  error 
)

Definition at line 912 of file unity-scope.c.

                                                                                              {
       GHashTable* result;
       UnityScopeSearchData* _data_;
       if (g_simple_async_result_propagate_error (G_SIMPLE_ASYNC_RESULT (_res_), error)) {
              return NULL;
       }
       _data_ = g_simple_async_result_get_op_res_gpointer (G_SIMPLE_ASYNC_RESULT (_res_));
       result = _data_->result;
       _data_->result = NULL;
       return result;
}

Here is the caller graph for this function:

static void unity_scope_search_ready ( GObject *  source_object,
GAsyncResult *  _res_,
gpointer  _user_data_ 
) [static]

Definition at line 925 of file unity-scope.c.

                                                                                                         {
       UnityScopeSearchData* _data_;
       _data_ = _user_data_;
       _data_->_source_object_ = source_object;
       _data_->_res_ = _res_;
       unity_scope_search_co (_data_);
}

Here is the call graph for this function:

Here is the caller graph for this function:

void unity_scope_set_active ( UnityScope *  self,
gboolean  value 
)

Definition at line 1099 of file unity-scope.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_scope_set_active_sources_internal ( UnityScope *  self,
gchar **  active_sources_,
int  active_sources__length1 
)

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

                                                                                                                      {
       UnityOptionsFilter* _tmp0_;
       GList* _tmp1_;
       gchar** _tmp8_;
       gint _tmp8__length1;
       g_return_if_fail (self != NULL);
       _tmp0_ = self->priv->_sources;
       _tmp1_ = _tmp0_->options;
       {
              GList* filter_option_collection = NULL;
              GList* filter_option_it = NULL;
              filter_option_collection = _tmp1_;
              for (filter_option_it = filter_option_collection; filter_option_it != NULL; filter_option_it = filter_option_it->next) {
                     UnityFilterOption* _tmp2_;
                     UnityFilterOption* filter_option = NULL;
                     _tmp2_ = _g_object_ref0 ((UnityFilterOption*) filter_option_it->data);
                     filter_option = _tmp2_;
                     {
                            UnityFilterOption* _tmp3_;
                            UnityFilterOption* _tmp4_;
                            const gchar* _tmp5_;
                            const gchar* _tmp6_;
                            gchar** _tmp7_;
                            gint _tmp7__length1;
                            _tmp3_ = filter_option;
                            _tmp4_ = filter_option;
                            _tmp5_ = unity_filter_option_get_id (_tmp4_);
                            _tmp6_ = _tmp5_;
                            _tmp7_ = active_sources_;
                            _tmp7__length1 = active_sources__length1;
                            unity_filter_option_set_active (_tmp3_, _vala_string_array_contains (_tmp7_, _tmp7__length1, _tmp6_));
                            _g_object_unref0 (filter_option);
                     }
              }
       }
       _tmp8_ = active_sources_;
       _tmp8__length1 = active_sources__length1;
       g_signal_emit_by_name (self, "active-sources-changed", _tmp8_, _tmp8__length1);
}

Here is the call graph for this function:

Here is the caller graph for this function:

static void unity_scope_set_dbus_path ( UnityScope *  self,
const gchar *  value 
) [static]

Definition at line 1156 of file unity-scope.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_scope_set_exported ( UnityScope *  self,
gboolean  value 
) [static]

Definition at line 1118 of file unity-scope.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_scope_set_last_search ( UnityScope *  self,
UnityLensSearch *  search,
UnitySearchType  search_type 
)

Definition at line 494 of file unity-scope.c.

                                                                                                          {
       UnitySearchType _tmp0_;
       UnityLensSearch* _tmp1_;
       UnityLensSearch* _tmp2_;
       UnityLensSearch* _tmp3_;
       g_return_if_fail (self != NULL);
       g_return_if_fail (search != NULL);
       _tmp0_ = search_type;
       _tmp1_ = search;
       _tmp2_ = _g_object_ref0 (_tmp1_);
       _g_object_unref0 (self->priv->last_search[_tmp0_]);
       self->priv->last_search[_tmp0_] = _tmp2_;
       _tmp3_ = self->priv->last_search[_tmp0_];
}

Here is the call graph for this function:

Here is the caller graph for this function:

void unity_scope_set_local ( UnityScope *  self,
gboolean  is_local_ 
)

Definition at line 572 of file unity-scope.c.

                                                                  {
       gboolean _tmp0_;
       gboolean _tmp1_;
       g_return_if_fail (self != NULL);
       _tmp0_ = is_local_;
       self->priv->is_local = _tmp0_;
       _tmp1_ = self->priv->is_local;
       if (_tmp1_) {
              unity_scope_prepare_search (self);
       }
}

Here is the call graph for this function:

Here is the caller graph for this function:

void unity_scope_set_search_in_global ( UnityScope *  self,
gboolean  value 
)

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

void unity_scope_set_sources ( UnityScope *  self,
UnityOptionsFilter *  value 
)

Definition at line 1178 of file unity-scope.c.

                                                                           {
       UnityOptionsFilter* _tmp0_;
       UnityOptionsFilter* _tmp1_;
       g_return_if_fail (self != NULL);
       _tmp0_ = value;
       _tmp1_ = _g_object_ref0 (_tmp0_);
       _g_object_unref0 (self->priv->_sources);
       self->priv->_sources = _tmp1_;
       g_object_notify ((GObject *) self, "sources");
}

Here is the call graph for this function:

Here is the caller graph for this function:

void unity_scope_set_view_type_internal ( UnityScope *  self,
UnityProtocolViewType  view_type 
)

Definition at line 510 of file unity-scope.c.

                                                                                            {
       UnityScopeImpl* _tmp0_;
       UnityProtocolViewType _tmp1_;
       g_return_if_fail (self != NULL);
       _tmp0_ = self->priv->_pimpl;
       _tmp1_ = view_type;
       unity_scope_impl_set_view_type (_tmp0_, _tmp1_);
}

Here is the call graph for this function:

Here is the caller graph for this function:

void unity_scope_update_preview_property ( UnityScope *  self,
const gchar *  uri,
GHashTable *  values,
GAsyncReadyCallback  _callback_,
gpointer  _user_data_ 
)

Definition at line 762 of file unity-scope.c.

                                                                                                                                                        {
       UnityScopeUpdatePreviewPropertyData* _data_;
       UnityScope* _tmp0_;
       const gchar* _tmp1_;
       gchar* _tmp2_;
       GHashTable* _tmp3_;
       GHashTable* _tmp4_;
       _data_ = g_slice_new0 (UnityScopeUpdatePreviewPropertyData);
       _data_->_async_result = g_simple_async_result_new (G_OBJECT (self), _callback_, _user_data_, unity_scope_update_preview_property);
       g_simple_async_result_set_op_res_gpointer (_data_->_async_result, _data_, unity_scope_update_preview_property_data_free);
       _tmp0_ = _g_object_ref0 (self);
       _data_->self = _tmp0_;
       _tmp1_ = uri;
       _tmp2_ = g_strdup (_tmp1_);
       _data_->uri = _tmp2_;
       _tmp3_ = values;
       _tmp4_ = _g_hash_table_ref0 (_tmp3_);
       _data_->values = _tmp4_;
       unity_scope_update_preview_property_co (_data_);
}

Here is the call graph for this function:

Here is the caller graph for this function:

static gboolean unity_scope_update_preview_property_co ( UnityScopeUpdatePreviewPropertyData *  _data_) [static]

Definition at line 803 of file unity-scope.c.

                                                                                                     {
       switch (_data_->_state_) {
              case 0:
              goto _state_0;
              case 1:
              goto _state_1;
              default:
              g_assert_not_reached ();
       }
       _state_0:
       {
              _data_->_tmp0_ = _data_->self->priv->_pimpl;
              _data_->_tmp1_ = _data_->uri;
              _data_->_tmp2_ = _data_->values;
              _data_->_state_ = 1;
              unity_protocol_scope_service_update_preview_property ((UnityProtocolScopeService*) _data_->_tmp0_, _data_->_tmp1_, _data_->_tmp2_, unity_scope_update_preview_property_ready, _data_);
              return FALSE;
              _state_1:
              _data_->_tmp3_ = NULL;
              _data_->_tmp3_ = unity_protocol_scope_service_update_preview_property_finish ((UnityProtocolScopeService*) _data_->_tmp0_, _data_->_res_, &_data_->_inner_error_);
              _data_->reply = _data_->_tmp3_;
              if (_data_->_inner_error_ != NULL) {
                     goto __catch20_g_error;
              }
              _data_->result = _data_->reply;
              if (_data_->_state_ == 0) {
                     g_simple_async_result_complete_in_idle (_data_->_async_result);
              } else {
                     g_simple_async_result_complete (_data_->_async_result);
              }
              g_object_unref (_data_->_async_result);
              return FALSE;
       }
       goto __finally20;
       __catch20_g_error:
       {
              _data_->e = _data_->_inner_error_;
              _data_->_inner_error_ = NULL;
              _data_->_tmp4_ = _data_->e;
              _data_->_tmp5_ = _data_->_tmp4_->message;
              _data_->_tmp6_ = NULL;
              _data_->_tmp6_ = string_to_string (_data_->_tmp5_);
              _data_->_tmp7_ = NULL;
              _data_->_tmp7_ = g_strconcat ("Unable to update preview property: ", _data_->_tmp6_, NULL);
              _data_->_tmp8_ = _data_->_tmp7_;
              g_warning ("unity-scope.vala:215: %s", _data_->_tmp8_);
              _g_free0 (_data_->_tmp8_);
              _g_error_free0 (_data_->e);
       }
       __finally20:
       if (_data_->_inner_error_ != NULL) {
              g_critical ("file %s: line %d: uncaught error: %s (%s, %d)", __FILE__, __LINE__, _data_->_inner_error_->message, g_quark_to_string (_data_->_inner_error_->domain), _data_->_inner_error_->code);
              g_clear_error (&_data_->_inner_error_);
              return FALSE;
       }
       _data_->_tmp9_ = g_str_hash;
       _data_->_tmp10_ = g_str_equal;
       _data_->_tmp11_ = g_hash_table_new_full (_data_->_tmp9_, _data_->_tmp10_, _g_free0_, _g_variant_unref0_);
       _data_->result = _data_->_tmp11_;
       if (_data_->_state_ == 0) {
              g_simple_async_result_complete_in_idle (_data_->_async_result);
       } else {
              g_simple_async_result_complete (_data_->_async_result);
       }
       g_object_unref (_data_->_async_result);
       return FALSE;
       if (_data_->_state_ == 0) {
              g_simple_async_result_complete_in_idle (_data_->_async_result);
       } else {
              g_simple_async_result_complete (_data_->_async_result);
       }
       g_object_unref (_data_->_async_result);
       return FALSE;
}

Here is the call graph for this function:

Here is the caller graph for this function:

static void unity_scope_update_preview_property_data_free ( gpointer  _data) [static]

Definition at line 746 of file unity-scope.c.

                                                                           {
       UnityScopeUpdatePreviewPropertyData* _data_;
       _data_ = _data;
       _g_free0 (_data_->uri);
       _g_hash_table_unref0 (_data_->values);
       _g_hash_table_unref0 (_data_->result);
       _g_object_unref0 (_data_->self);
       g_slice_free (UnityScopeUpdatePreviewPropertyData, _data_);
}

Here is the caller graph for this function:

GHashTable* unity_scope_update_preview_property_finish ( UnityScope *  self,
GAsyncResult *  _res_ 
)

Definition at line 784 of file unity-scope.c.

                                                                                               {
       GHashTable* result;
       UnityScopeUpdatePreviewPropertyData* _data_;
       _data_ = g_simple_async_result_get_op_res_gpointer (G_SIMPLE_ASYNC_RESULT (_res_));
       result = _data_->result;
       _data_->result = NULL;
       return result;
}

Here is the caller graph for this function:

static void unity_scope_update_preview_property_ready ( GObject *  source_object,
GAsyncResult *  _res_,
gpointer  _user_data_ 
) [static]

Definition at line 794 of file unity-scope.c.

                                                                                                                          {
       UnityScopeUpdatePreviewPropertyData* _data_;
       _data_ = _user_data_;
       _data_->_source_object_ = source_object;
       _data_->_res_ = _res_;
       unity_scope_update_preview_property_co (_data_);
}

Here is the call graph for this function:

Here is the caller graph for this function:

GType unity_search_type_get_type ( void  )

Definition at line 235 of file unity-scope.c.

                                        {
       static volatile gsize unity_search_type_type_id__volatile = 0;
       if (g_once_init_enter (&unity_search_type_type_id__volatile)) {
              static const GEnumValue values[] = {{UNITY_SEARCH_TYPE_DEFAULT, "UNITY_SEARCH_TYPE_DEFAULT", "default"}, {UNITY_SEARCH_TYPE_GLOBAL, "UNITY_SEARCH_TYPE_GLOBAL", "global"}, {UNITY_SEARCH_TYPE_N_TYPES, "UNITY_SEARCH_TYPE_N_TYPES", "n-types"}, {0, NULL, NULL}};
              GType unity_search_type_type_id;
              unity_search_type_type_id = g_enum_register_static ("UnitySearchType", values);
              g_once_init_leave (&unity_search_type_type_id__volatile, unity_search_type_type_id);
       }
       return unity_search_type_type_id__volatile;
}

Variable Documentation

gpointer unity_scope_parent_class = NULL [static]

Definition at line 165 of file unity-scope.c.