Back to index

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

Go to the source code of this file.

Classes

struct  _UnityTesterUnityToolUi
struct  _UnityTesterUnityToolUiClass
struct  _UnityTesterUnityToolUiPrivate
struct  _Block13Data
struct  _UnityTesterDBusLensUtilDBusObjectAddress
struct  _UnityTesterLensInfo

Defines

#define UNITY_TESTER_TYPE_UNITY_TOOL_UI   (unity_tester_unity_tool_ui_get_type ())
#define UNITY_TESTER_UNITY_TOOL_UI(obj)   (G_TYPE_CHECK_INSTANCE_CAST ((obj), UNITY_TESTER_TYPE_UNITY_TOOL_UI, UnityTesterUnityToolUi))
#define UNITY_TESTER_UNITY_TOOL_UI_CLASS(klass)   (G_TYPE_CHECK_CLASS_CAST ((klass), UNITY_TESTER_TYPE_UNITY_TOOL_UI, UnityTesterUnityToolUiClass))
#define UNITY_TESTER_IS_UNITY_TOOL_UI(obj)   (G_TYPE_CHECK_INSTANCE_TYPE ((obj), UNITY_TESTER_TYPE_UNITY_TOOL_UI))
#define UNITY_TESTER_IS_UNITY_TOOL_UI_CLASS(klass)   (G_TYPE_CHECK_CLASS_TYPE ((klass), UNITY_TESTER_TYPE_UNITY_TOOL_UI))
#define UNITY_TESTER_UNITY_TOOL_UI_GET_CLASS(obj)   (G_TYPE_INSTANCE_GET_CLASS ((obj), UNITY_TESTER_TYPE_UNITY_TOOL_UI, UnityTesterUnityToolUiClass))
#define _g_object_unref0(var)   ((var == NULL) ? NULL : (var = (g_object_unref (var), NULL)))
#define _g_error_free0(var)   ((var == NULL) ? NULL : (var = (g_error_free (var), NULL)))
#define _g_free0(var)   (var = (g_free (var), NULL))
#define UNITY_TESTER_TYPE_DBUS_LENS_UTIL   (unity_tester_dbus_lens_util_get_type ())
#define UNITY_TESTER_DBUS_LENS_UTIL(obj)   (G_TYPE_CHECK_INSTANCE_CAST ((obj), UNITY_TESTER_TYPE_DBUS_LENS_UTIL, UnityTesterDBusLensUtil))
#define UNITY_TESTER_DBUS_LENS_UTIL_CLASS(klass)   (G_TYPE_CHECK_CLASS_CAST ((klass), UNITY_TESTER_TYPE_DBUS_LENS_UTIL, UnityTesterDBusLensUtilClass))
#define UNITY_TESTER_IS_DBUS_LENS_UTIL(obj)   (G_TYPE_CHECK_INSTANCE_TYPE ((obj), UNITY_TESTER_TYPE_DBUS_LENS_UTIL))
#define UNITY_TESTER_IS_DBUS_LENS_UTIL_CLASS(klass)   (G_TYPE_CHECK_CLASS_TYPE ((klass), UNITY_TESTER_TYPE_DBUS_LENS_UTIL))
#define UNITY_TESTER_DBUS_LENS_UTIL_GET_CLASS(obj)   (G_TYPE_INSTANCE_GET_CLASS ((obj), UNITY_TESTER_TYPE_DBUS_LENS_UTIL, UnityTesterDBusLensUtilClass))
#define _unity_tester_dbus_lens_util_unref0(var)   ((var == NULL) ? NULL : (var = (unity_tester_dbus_lens_util_unref (var), NULL)))
#define UNITY_TESTER_DBUS_LENS_UTIL_TYPE_DBUS_OBJECT_ADDRESS   (unity_tester_dbus_lens_util_dbus_object_address_get_type ())
#define UNITY_TESTER_TYPE_LENS_INFO   (unity_tester_lens_info_get_type ())
#define UNITY_TESTER_UNITY_TOOL_UI_GET_PRIVATE(o)   (G_TYPE_INSTANCE_GET_PRIVATE ((o), UNITY_TESTER_TYPE_UNITY_TOOL_UI, UnityTesterUnityToolUiPrivate))

Typedefs

typedef struct _UnityTesterUnityToolUi
typedef struct _UnityTesterUnityToolUiClass
typedef struct _UnityTesterUnityToolUiPrivate
typedef struct _UnityTesterDBusLensUtil
typedef struct _UnityTesterDBusLensUtilClass
typedef struct _Block13Data
typedef struct _UnityTesterDBusLensUtilDBusObjectAddress
typedef struct _UnityTesterLensInfo

Functions

GType unity_tester_unity_tool_ui_get_type (void)
UnityTesterUnityToolUi * unity_tester_unity_tool_ui_new (void)
UnityTesterUnityToolUi * unity_tester_unity_tool_ui_construct (GType object_type)
gboolean unity_tester_unity_tool_ui_init_gui (UnityTesterUnityToolUi *self)
static void _gtk_main_quit_gtk_widget_destroy (GtkWidget *_sender, gpointer self)
static void unity_tester_unity_tool_ui_show_connect_dialog (UnityTesterUnityToolUi *self)
static void unity_tester_unity_tool_ui_ui_load_error (UnityTesterUnityToolUi *self, const gchar *message)
static void unity_tester_unity_tool_ui_discover_lens (UnityTesterUnityToolUi *self)
gpointer unity_tester_dbus_lens_util_ref (gpointer instance)
void unity_tester_dbus_lens_util_unref (gpointer instance)
GParamSpec * unity_tester_param_spec_dbus_lens_util (const gchar *name, const gchar *nick, const gchar *blurb, GType object_type, GParamFlags flags)
void unity_tester_value_set_dbus_lens_util (GValue *value, gpointer v_object)
void unity_tester_value_take_dbus_lens_util (GValue *value, gpointer v_object)
gpointer unity_tester_value_get_dbus_lens_util (const GValue *value)
GType unity_tester_dbus_lens_util_get_type (void)
static gpointer _g_object_ref0 (gpointer self)
static Block13Data * block13_data_ref (Block13Data *_data13_)
static void block13_data_unref (void *_userdata_)
static void __lambda3_ (Block13Data *_data13_, GObject *obj, GAsyncResult *res)
static void ___lambda3__gasync_ready_callback (GObject *source_object, GAsyncResult *res, gpointer self)
void unity_tester_unity_tool_ui_on_lens_combobox_clicked (GtkMenuItem *item, UnityTesterUnityToolUi *self)
void unity_tester_unity_tool_ui_on_connect_clicked (GtkMenuItem *item, UnityTesterUnityToolUi *self)
static void unity_tester_unity_tool_ui_results_row_added_cb (UnityTesterUnityToolUi *self, DeeModel *model, DeeModelIter *iter)
static void unity_tester_unity_tool_ui_filters_row_added_cb (UnityTesterUnityToolUi *self, DeeModel *model, DeeModelIter *iter)
static void unity_tester_unity_tool_ui_update_status (UnityTesterUnityToolUi *self)
static void unity_tester_unity_tool_ui_model_synchronized_cb (UnityTesterUnityToolUi *self)
static void unity_tester_unity_tool_ui_filter_model_synchronized_cb (UnityTesterUnityToolUi *self)
void unity_tester_unity_tool_ui_on_lens_connect (GtkDialog *dlg, gint response, UnityTesterUnityToolUi *self)
 Triggered clicking 'Ok' in the connection dialog.
void unity_tester_unity_tool_ui_on_from_lens_clicked (GtkButton *btn, UnityTesterUnityToolUi *self)
 Triggered by clicking 'From lens file' button in the connection dialog.
static void unity_tester_unity_tool_ui_append_log_message (UnityTesterUnityToolUi *self, const gchar *message)
 Appends log message to 'Log' tab.
static void __lambda6_ (UnityTesterUnityToolUi *self, const gchar *msg)
 Request lens info via debus, creates dee models.
static void ___lambda6__gfunc (gconstpointer data, gpointer self)
static void _unity_tester_unity_tool_ui_model_synchronized_cb_g_object_notify (GObject *_sender, GParamSpec *pspec, gpointer self)
static void _unity_tester_unity_tool_ui_results_row_added_cb_dee_model_row_added (DeeModel *_sender, DeeModelIter *iter, gpointer self)
static void _unity_tester_unity_tool_ui_filter_model_synchronized_cb_g_object_notify (GObject *_sender, GParamSpec *pspec, gpointer self)
static void _unity_tester_unity_tool_ui_filters_row_added_cb_dee_model_row_added (DeeModel *_sender, DeeModelIter *iter, gpointer self)
static void unity_tester_unity_tool_ui_request_lens_info (UnityTesterUnityToolUi *self)
void unity_tester_unity_tool_ui_on_results_button_clicked (GtkButton *btn, UnityTesterUnityToolUi *self)
static void ____lambda8_ (UnityTesterUnityToolUi *self, GVariant *_result_)
 Triggered by clicking 'Search' button.
static void _____lambda8__gfunc (gconstpointer data, gpointer self)
static void ____lambda9_ (UnityTesterUnityToolUi *self, const gchar *msg)
static void _____lambda9__gfunc (gconstpointer data, gpointer self)
void unity_tester_unity_tool_ui_on_search_button_clicked (GtkButton *btn, UnityTesterUnityToolUi *self)
static void unity_tester_unity_tool_ui_handle_error (UnityTesterUnityToolUi *self, const gchar *message)
 Helper method that stops spinner and puts error message on statusbar.
static void unity_tester_unity_tool_ui_class_init (UnityTesterUnityToolUiClass *klass)
static void unity_tester_unity_tool_ui_instance_init (UnityTesterUnityToolUi *self)
static void unity_tester_unity_tool_ui_finalize (GObject *obj)
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)
static gint _vala_array_length (gpointer array)

Variables

static gpointer unity_tester_unity_tool_ui_parent_class = NULL
gchar * unity_tester_options_lens_dbus_path = NULL
gchar * unity_tester_options_lens_dbus_name = NULL

Class Documentation

struct _UnityTesterUnityToolUi

Definition at line 65 of file unity-tool-ui.c.

Collaboration diagram for _UnityTesterUnityToolUi:
Class Members
GObject parent_instance
UnityTesterUnityToolUiPrivate * priv
struct _UnityTesterUnityToolUiClass

Definition at line 70 of file unity-tool-ui.c.

Class Members
GObjectClass parent_class
struct _UnityTesterUnityToolUiPrivate

Definition at line 74 of file unity-tool-ui.c.

Class Members
GtkEntry * dbus_name_entry
GtkEntry * dbus_path_entry
DeeSharedModel * dee_filters_model
DeeSharedModel * dee_results_model
gulong filters_model_sync_sig_id
GtkDialog * lens_connect_dlg
GtkSpinner * lens_discovery_spinner
GtkComboBox * lens_list_combobox
GtkListStore * lens_list_model
GtkTextBuffer * log_buffer
gulong model_sync_sig_id
GtkButton * search_button
GtkEntry * search_entry
GtkRadioButton * search_type_global_rbutton
GtkSpinner * spinner
GtkStatusbar * statusbar
guint statusbar_error_ctx
guint statusbar_info_ctx
GtkListStore * ui_filter_model
GtkListStore * uimodel
struct _Block13Data

Definition at line 203 of file test-lens.c.

Class Members
Block12Data * _data12_
int _ref_count_
UnityTesterDBusLensUtil * c
GtkTreeIter iter
UnityLensSearch * lens_search
UnityTesterUnityToolUi * self
struct _UnityTesterDBusLensUtilDBusObjectAddress

Definition at line 54 of file unity-tool-dbus-util.c.

Class Members
gchar * dbus_name
gchar * dbus_path
struct _UnityTesterLensInfo

Definition at line 109 of file unity-tool-ui.c.

Class Members
gchar * categories_model_name
gchar * dbus_path
gchar * filters_model_name
gchar * global_results_model_name
GHashTable * hints
gchar * private_connection_name
gchar * results_model_name
gchar * search_hint
gboolean search_in_global
gboolean visible

Define Documentation

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

Definition at line 44 of file unity-tool-ui.c.

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

Definition at line 45 of file unity-tool-ui.c.

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

Definition at line 43 of file unity-tool-ui.c.

#define _unity_tester_dbus_lens_util_unref0 (   var)    ((var == NULL) ? NULL : (var = (unity_tester_dbus_lens_util_unref (var), NULL)))

Definition at line 57 of file unity-tool-ui.c.

#define UNITY_TESTER_DBUS_LENS_UTIL (   obj)    (G_TYPE_CHECK_INSTANCE_CAST ((obj), UNITY_TESTER_TYPE_DBUS_LENS_UTIL, UnityTesterDBusLensUtil))

Definition at line 48 of file unity-tool-ui.c.

#define UNITY_TESTER_DBUS_LENS_UTIL_CLASS (   klass)    (G_TYPE_CHECK_CLASS_CAST ((klass), UNITY_TESTER_TYPE_DBUS_LENS_UTIL, UnityTesterDBusLensUtilClass))

Definition at line 49 of file unity-tool-ui.c.

#define UNITY_TESTER_DBUS_LENS_UTIL_GET_CLASS (   obj)    (G_TYPE_INSTANCE_GET_CLASS ((obj), UNITY_TESTER_TYPE_DBUS_LENS_UTIL, UnityTesterDBusLensUtilClass))

Definition at line 52 of file unity-tool-ui.c.

Definition at line 59 of file unity-tool-ui.c.

#define UNITY_TESTER_IS_DBUS_LENS_UTIL (   obj)    (G_TYPE_CHECK_INSTANCE_TYPE ((obj), UNITY_TESTER_TYPE_DBUS_LENS_UTIL))

Definition at line 50 of file unity-tool-ui.c.

#define UNITY_TESTER_IS_DBUS_LENS_UTIL_CLASS (   klass)    (G_TYPE_CHECK_CLASS_TYPE ((klass), UNITY_TESTER_TYPE_DBUS_LENS_UTIL))

Definition at line 51 of file unity-tool-ui.c.

#define UNITY_TESTER_IS_UNITY_TOOL_UI (   obj)    (G_TYPE_CHECK_INSTANCE_TYPE ((obj), UNITY_TESTER_TYPE_UNITY_TOOL_UI))

Definition at line 36 of file unity-tool-ui.c.

#define UNITY_TESTER_IS_UNITY_TOOL_UI_CLASS (   klass)    (G_TYPE_CHECK_CLASS_TYPE ((klass), UNITY_TESTER_TYPE_UNITY_TOOL_UI))

Definition at line 37 of file unity-tool-ui.c.

Definition at line 47 of file unity-tool-ui.c.

Definition at line 62 of file unity-tool-ui.c.

Definition at line 33 of file unity-tool-ui.c.

#define UNITY_TESTER_UNITY_TOOL_UI (   obj)    (G_TYPE_CHECK_INSTANCE_CAST ((obj), UNITY_TESTER_TYPE_UNITY_TOOL_UI, UnityTesterUnityToolUi))

Definition at line 34 of file unity-tool-ui.c.

#define UNITY_TESTER_UNITY_TOOL_UI_CLASS (   klass)    (G_TYPE_CHECK_CLASS_CAST ((klass), UNITY_TESTER_TYPE_UNITY_TOOL_UI, UnityTesterUnityToolUiClass))

Definition at line 35 of file unity-tool-ui.c.

#define UNITY_TESTER_UNITY_TOOL_UI_GET_CLASS (   obj)    (G_TYPE_INSTANCE_GET_CLASS ((obj), UNITY_TESTER_TYPE_UNITY_TOOL_UI, UnityTesterUnityToolUiClass))

Definition at line 38 of file unity-tool-ui.c.

#define UNITY_TESTER_UNITY_TOOL_UI_GET_PRIVATE (   o)    (G_TYPE_INSTANCE_GET_PRIVATE ((o), UNITY_TESTER_TYPE_UNITY_TOOL_UI, UnityTesterUnityToolUiPrivate))

Typedef Documentation

typedef struct _Block13Data

Definition at line 56 of file unity-tool-ui.c.

typedef struct _UnityTesterDBusLensUtil

Definition at line 54 of file unity-tool-ui.c.

Definition at line 55 of file unity-tool-ui.c.

Definition at line 60 of file unity-tool-ui.c.

typedef struct _UnityTesterLensInfo

Definition at line 63 of file unity-tool-ui.c.

typedef struct _UnityTesterUnityToolUi

Definition at line 40 of file unity-tool-ui.c.

Definition at line 41 of file unity-tool-ui.c.

Definition at line 42 of file unity-tool-ui.c.


Function Documentation

static void _____lambda8__gfunc ( gconstpointer  data,
gpointer  self 
) [static]

Definition at line 1259 of file unity-tool-ui.c.

                                                                    {
       ____lambda8_ (self, data);
}

Here is the call graph for this function:

Here is the caller graph for this function:

static void _____lambda9__gfunc ( gconstpointer  data,
gpointer  self 
) [static]

Definition at line 1271 of file unity-tool-ui.c.

                                                                    {
       ____lambda9_ (self, data);
}

Here is the call graph for this function:

Here is the caller graph for this function:

static void ____lambda8_ ( UnityTesterUnityToolUi *  self,
GVariant *  _result_ 
) [static]

Triggered by clicking 'Search' button.

Starts lens search over dbus.

Definition at line 1241 of file unity-tool-ui.c.

                                                                            {
       GVariant* _tmp0_;
       gchar* _tmp1_ = NULL;
       gchar* _tmp2_;
       gchar* _tmp3_;
       gchar* _tmp4_;
       _tmp0_ = _result_;
       _tmp1_ = g_variant_print (_tmp0_, TRUE);
       _tmp2_ = _tmp1_;
       _tmp3_ = g_strconcat (_tmp2_, "\n", NULL);
       _tmp4_ = _tmp3_;
       unity_tester_unity_tool_ui_append_log_message (self, _tmp4_);
       _g_free0 (_tmp4_);
       _g_free0 (_tmp2_);
       unity_tester_unity_tool_ui_request_lens_info (self);
}

Here is the call graph for this function:

Here is the caller graph for this function:

static void ____lambda9_ ( UnityTesterUnityToolUi *  self,
const gchar *  msg 
) [static]

Definition at line 1264 of file unity-tool-ui.c.

                                                                          {
       const gchar* _tmp0_;
       _tmp0_ = msg;
       unity_tester_unity_tool_ui_handle_error (self, _tmp0_);
}

Here is the call graph for this function:

Here is the caller graph for this function:

static void ___lambda3__gasync_ready_callback ( GObject *  source_object,
GAsyncResult *  res,
gpointer  self 
) [static]

Definition at line 478 of file unity-tool-ui.c.

                                                                                                         {
       __lambda3_ (self, source_object, res);
       block13_data_unref (self);
}

Here is the call graph for this function:

Here is the caller graph for this function:

static void ___lambda6__gfunc ( gconstpointer  data,
gpointer  self 
) [static]

Definition at line 1122 of file unity-tool-ui.c.

                                                                  {
       __lambda6_ (self, data);
}

Here is the call graph for this function:

Here is the caller graph for this function:

static void __lambda3_ ( Block13Data *  _data13_,
GObject *  obj,
GAsyncResult *  res 
) [static]

Definition at line 400 of file unity-tool-ui.c.

                                                                                {
       UnityTesterUnityToolUi * self;
       GError * _inner_error_ = NULL;
       self = _data13_->self;
       g_return_if_fail (res != NULL);
       {
              GAsyncResult* _tmp0_;
              GList* _tmp1_ = NULL;
              GList* results;
              GtkSpinner* _tmp11_;
              _tmp0_ = res;
              _tmp1_ = unity_tester_dbus_lens_util_findLenses_finish (_data13_->c, _tmp0_, &_inner_error_);
              results = _tmp1_;
              if (_inner_error_ != NULL) {
                     goto __catch10_g_error;
              }
              {
                     GList* addr_collection = NULL;
                     GList* addr_it = NULL;
                     addr_collection = results;
                     for (addr_it = addr_collection; addr_it != NULL; addr_it = addr_it->next) {
                            UnityTesterDBusLensUtilDBusObjectAddress _tmp2_ = {0};
                            UnityTesterDBusLensUtilDBusObjectAddress addr = {0};
                            unity_tester_dbus_lens_util_dbus_object_address_copy ((UnityTesterDBusLensUtilDBusObjectAddress*) addr_it->data, &_tmp2_);
                            addr = _tmp2_;
                            {
                                   GtkListStore* _tmp3_;
                                   GtkTreeIter _tmp4_ = {0};
                                   GtkListStore* _tmp5_;
                                   GtkTreeIter _tmp6_;
                                   UnityTesterDBusLensUtilDBusObjectAddress _tmp7_;
                                   const gchar* _tmp8_;
                                   UnityTesterDBusLensUtilDBusObjectAddress _tmp9_;
                                   const gchar* _tmp10_;
                                   _tmp3_ = self->priv->lens_list_model;
                                   gtk_list_store_append (_tmp3_, &_tmp4_);
                                   _data13_->iter = _tmp4_;
                                   _tmp5_ = self->priv->lens_list_model;
                                   _tmp6_ = _data13_->iter;
                                   _tmp7_ = addr;
                                   _tmp8_ = _tmp7_.dbus_name;
                                   _tmp9_ = addr;
                                   _tmp10_ = _tmp9_.dbus_path;
                                   gtk_list_store_set (_tmp5_, &_tmp6_, 0, _tmp8_, 1, _tmp10_, -1, -1);
                                   unity_tester_dbus_lens_util_dbus_object_address_destroy (&addr);
                            }
                     }
              }
              _tmp11_ = self->priv->lens_discovery_spinner;
              gtk_spinner_stop (_tmp11_);
       }
       goto __finally10;
       __catch10_g_error:
       {
              GError* e = NULL;
              FILE* _tmp12_;
              GError* _tmp13_;
              const gchar* _tmp14_;
              GtkSpinner* _tmp15_;
              e = _inner_error_;
              _inner_error_ = NULL;
              _tmp12_ = stderr;
              _tmp13_ = e;
              _tmp14_ = _tmp13_->message;
              fprintf (_tmp12_, "DBus Lens auto-discovery failed %s\n", _tmp14_);
              _tmp15_ = self->priv->lens_discovery_spinner;
              gtk_spinner_stop (_tmp15_);
              _g_error_free0 (e);
       }
       __finally10:
       if (_inner_error_ != NULL) {
              g_critical ("file %s: line %d: uncaught error: %s (%s, %d)", __FILE__, __LINE__, _inner_error_->message, g_quark_to_string (_inner_error_->domain), _inner_error_->code);
              g_clear_error (&_inner_error_);
              return;
       }
}

Here is the call graph for this function:

Here is the caller graph for this function:

static void __lambda6_ ( UnityTesterUnityToolUi *  self,
const gchar *  msg 
) [static]

Request lens info via debus, creates dee models.

Definition at line 1115 of file unity-tool-ui.c.

                                                                        {
       const gchar* _tmp0_;
       _tmp0_ = msg;
       unity_tester_unity_tool_ui_handle_error (self, _tmp0_);
}

Here is the call graph for this function:

Here is the caller graph for this function:

static gpointer _g_object_ref0 ( gpointer  self) [static]

Definition at line 209 of file unity-tool-ui.c.

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

Here is the caller graph for this function:

static void _gtk_main_quit_gtk_widget_destroy ( GtkWidget *  _sender,
gpointer  self 
) [static]

Definition at line 214 of file unity-tool-ui.c.

                                                                                  {
       gtk_main_quit ();
}

Here is the caller graph for this function:

static void _unity_tester_unity_tool_ui_filter_model_synchronized_cb_g_object_notify ( GObject *  _sender,
GParamSpec *  pspec,
gpointer  self 
) [static]

Definition at line 1137 of file unity-tool-ui.c.

Here is the call graph for this function:

Here is the caller graph for this function:

static void _unity_tester_unity_tool_ui_filters_row_added_cb_dee_model_row_added ( DeeModel *  _sender,
DeeModelIter *  iter,
gpointer  self 
) [static]

Definition at line 1142 of file unity-tool-ui.c.

Here is the call graph for this function:

Here is the caller graph for this function:

static void _unity_tester_unity_tool_ui_model_synchronized_cb_g_object_notify ( GObject *  _sender,
GParamSpec *  pspec,
gpointer  self 
) [static]

Definition at line 1127 of file unity-tool-ui.c.

Here is the call graph for this function:

Here is the caller graph for this function:

static void _unity_tester_unity_tool_ui_results_row_added_cb_dee_model_row_added ( DeeModel *  _sender,
DeeModelIter *  iter,
gpointer  self 
) [static]

Definition at line 1132 of file unity-tool-ui.c.

Here is the call graph for this function:

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 1454 of file unity-tool-ui.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 1466 of file unity-tool-ui.c.

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

Here is the call graph for this function:

Here is the caller graph for this function:

static gint _vala_array_length ( gpointer  array) [static]

Definition at line 1472 of file unity-tool-ui.c.

                                                {
       int length;
       length = 0;
       if (array) {
              while (((gpointer*) array)[length]) {
                     length++;
              }
       }
       return length;
}

Here is the caller graph for this function:

static Block13Data* block13_data_ref ( Block13Data *  _data13_) [static]

Definition at line 381 of file unity-tool-ui.c.

                                                             {
       g_atomic_int_inc (&_data13_->_ref_count_);
       return _data13_;
}

Here is the caller graph for this function:

static void block13_data_unref ( void *  _userdata_) [static]

Definition at line 387 of file unity-tool-ui.c.

                                                   {
       Block13Data* _data13_;
       _data13_ = (Block13Data*) _userdata_;
       if (g_atomic_int_dec_and_test (&_data13_->_ref_count_)) {
              UnityTesterUnityToolUi * self;
              self = _data13_->self;
              _unity_tester_dbus_lens_util_unref0 (_data13_->c);
              _g_object_unref0 (self);
              g_slice_free (Block13Data, _data13_);
       }
}

Here is the caller graph for this function:

Definition at line 145 of file unity-tool-ui.c.

                                                                                 {
       UnityTesterUnityToolUi * self = NULL;
       self = (UnityTesterUnityToolUi*) g_object_new (object_type, NULL);
       return self;
}
gpointer unity_tester_dbus_lens_util_ref ( gpointer  instance)

Definition at line 1163 of file unity-tool-dbus-util.c.

                                                             {
       UnityTesterDBusLensUtil* self;
       self = instance;
       g_atomic_int_inc (&self->ref_count);
       return instance;
}

Here is the caller graph for this function:

void unity_tester_dbus_lens_util_unref ( gpointer  instance)

Definition at line 1171 of file unity-tool-dbus-util.c.

                                                           {
       UnityTesterDBusLensUtil* self;
       self = instance;
       if (g_atomic_int_dec_and_test (&self->ref_count)) {
              UNITY_TESTER_DBUS_LENS_UTIL_GET_CLASS (self)->finalize (self);
              g_type_free_instance ((GTypeInstance *) self);
       }
}

Here is the caller graph for this function:

GParamSpec* unity_tester_param_spec_dbus_lens_util ( const gchar *  name,
const gchar *  nick,
const gchar *  blurb,
GType  object_type,
GParamFlags  flags 
)

Definition at line 1071 of file unity-tool-dbus-util.c.

                                                                                                                                                    {
       UnityTesterParamSpecDBusLensUtil* spec;
       g_return_val_if_fail (g_type_is_a (object_type, UNITY_TESTER_TYPE_DBUS_LENS_UTIL), NULL);
       spec = g_param_spec_internal (G_TYPE_PARAM_OBJECT, name, nick, blurb, flags);
       G_PARAM_SPEC (spec)->value_type = object_type;
       return G_PARAM_SPEC (spec);
}
static void unity_tester_unity_tool_ui_append_log_message ( UnityTesterUnityToolUi *  self,
const gchar *  message 
) [static]

Appends log message to 'Log' tab.

Definition at line 1095 of file unity-tool-ui.c.

                                                                                                               {
       GtkTextIter iter = {0};
       GtkTextBuffer* _tmp0_;
       GtkTextIter _tmp1_ = {0};
       GtkTextBuffer* _tmp2_;
       const gchar* _tmp3_;
       g_return_if_fail (self != NULL);
       g_return_if_fail (message != NULL);
       _tmp0_ = self->priv->log_buffer;
       gtk_text_buffer_get_end_iter (_tmp0_, &_tmp1_);
       iter = _tmp1_;
       _tmp2_ = self->priv->log_buffer;
       _tmp3_ = message;
       gtk_text_buffer_insert (_tmp2_, &iter, _tmp3_, -1);
}

Here is the caller graph for this function:

static void unity_tester_unity_tool_ui_class_init ( UnityTesterUnityToolUiClass *  klass) [static]

Definition at line 1391 of file unity-tool-ui.c.

                                                                                        {
       unity_tester_unity_tool_ui_parent_class = g_type_class_peek_parent (klass);
       g_type_class_add_private (klass, sizeof (UnityTesterUnityToolUiPrivate));
       G_OBJECT_CLASS (klass)->finalize = unity_tester_unity_tool_ui_finalize;
}

Here is the call graph for this function:

UnityTesterUnityToolUi* unity_tester_unity_tool_ui_construct ( GType  object_type)

Here is the caller graph for this function:

static void unity_tester_unity_tool_ui_discover_lens ( UnityTesterUnityToolUi *  self) [static]

Definition at line 484 of file unity-tool-ui.c.

                                                                                    {
       Block13Data* _data13_;
       GtkSpinner* _tmp0_;
       GtkListStore* _tmp1_;
       GtkTreeIter _tmp2_ = {0};
       GtkListStore* _tmp3_;
       GtkTreeIter _tmp4_;
       UnityTesterDBusLensUtil* _tmp5_;
       g_return_if_fail (self != NULL);
       _data13_ = g_slice_new0 (Block13Data);
       _data13_->_ref_count_ = 1;
       _data13_->self = g_object_ref (self);
       _tmp0_ = self->priv->lens_discovery_spinner;
       gtk_spinner_start (_tmp0_);
       _tmp1_ = self->priv->lens_list_model;
       gtk_list_store_append (_tmp1_, &_tmp2_);
       _data13_->iter = _tmp2_;
       _tmp3_ = self->priv->lens_list_model;
       _tmp4_ = _data13_->iter;
       gtk_list_store_set (_tmp3_, &_tmp4_, 0, "", 1, "", -1, -1);
       _tmp5_ = unity_tester_dbus_lens_util_new ();
       _data13_->c = _tmp5_;
       unity_tester_dbus_lens_util_findLenses (_data13_->c, ___lambda3__gasync_ready_callback, block13_data_ref (_data13_));
       block13_data_unref (_data13_);
       _data13_ = NULL;
}

Here is the call graph for this function:

Here is the caller graph for this function:

static void unity_tester_unity_tool_ui_filter_model_synchronized_cb ( UnityTesterUnityToolUi *  self) [static]

Definition at line 886 of file unity-tool-ui.c.

                                                                                                   {
       g_return_if_fail (self != NULL);
       _g_object_unref0 (self->priv->dee_filters_model);
       self->priv->dee_filters_model = NULL;
}

Here is the caller graph for this function:

static void unity_tester_unity_tool_ui_filters_row_added_cb ( UnityTesterUnityToolUi *  self,
DeeModel *  model,
DeeModelIter *  iter 
) [static]

Definition at line 750 of file unity-tool-ui.c.

                                                                                                                                {
       DeeModel* _tmp0_;
       DeeModelIter* _tmp1_;
       GVariant** _tmp2_;
       GVariant** _tmp3_ = NULL;
       GVariant** row;
       gint row_length1;
       gint _row_size_;
       GtkTreeIter uiiter = {0};
       GtkListStore* _tmp4_;
       GtkTreeIter _tmp5_ = {0};
       GtkListStore* _tmp6_;
       GtkTreeIter _tmp7_;
       GVariant* _tmp8_;
       const gchar* _tmp9_ = NULL;
       GVariant* _tmp10_;
       const gchar* _tmp11_ = NULL;
       GVariant* _tmp12_;
       const gchar* _tmp13_ = NULL;
       GVariant* _tmp14_;
       const gchar* _tmp15_ = NULL;
       GVariant* _tmp16_;
       gchar* _tmp17_ = NULL;
       gchar* _tmp18_;
       GVariant* _tmp19_;
       gboolean _tmp20_ = FALSE;
       GVariant* _tmp21_;
       gboolean _tmp22_ = FALSE;
       GVariant* _tmp23_;
       gboolean _tmp24_ = FALSE;
       g_return_if_fail (self != NULL);
       g_return_if_fail (model != NULL);
       g_return_if_fail (iter != NULL);
       _tmp0_ = model;
       _tmp1_ = iter;
       _tmp3_ = _tmp2_ = dee_model_get_row (_tmp0_, _tmp1_, NULL);
       row = _tmp3_;
       row_length1 = _vala_array_length (_tmp2_);
       _row_size_ = row_length1;
       _tmp4_ = self->priv->ui_filter_model;
       gtk_list_store_append (_tmp4_, &_tmp5_);
       uiiter = _tmp5_;
       _tmp6_ = self->priv->ui_filter_model;
       _tmp7_ = uiiter;
       _tmp8_ = row[0];
       _tmp9_ = g_variant_get_string (_tmp8_, NULL);
       _tmp10_ = row[1];
       _tmp11_ = g_variant_get_string (_tmp10_, NULL);
       _tmp12_ = row[2];
       _tmp13_ = g_variant_get_string (_tmp12_, NULL);
       _tmp14_ = row[3];
       _tmp15_ = g_variant_get_string (_tmp14_, NULL);
       _tmp16_ = row[4];
       _tmp17_ = g_variant_print (_tmp16_, TRUE);
       _tmp18_ = _tmp17_;
       _tmp19_ = row[5];
       _tmp20_ = g_variant_get_boolean (_tmp19_);
       _tmp21_ = row[6];
       _tmp22_ = g_variant_get_boolean (_tmp21_);
       _tmp23_ = row[7];
       _tmp24_ = g_variant_get_boolean (_tmp23_);
       gtk_list_store_set (_tmp6_, &_tmp7_, 0, _tmp9_, 1, _tmp11_, 2, _tmp13_, 3, _tmp15_, 4, _tmp18_, 5, _tmp20_, 6, _tmp22_, 7, _tmp24_, -1, -1);
       _g_free0 (_tmp18_);
       row = (_vala_array_free (row, row_length1, (GDestroyNotify) g_variant_unref), NULL);
}

Here is the call graph for this function:

Here is the caller graph for this function:

static void unity_tester_unity_tool_ui_finalize ( GObject *  obj) [static]

Definition at line 1419 of file unity-tool-ui.c.

                                                               {
       UnityTesterUnityToolUi * self;
       self = G_TYPE_CHECK_INSTANCE_CAST (obj, UNITY_TESTER_TYPE_UNITY_TOOL_UI, UnityTesterUnityToolUi);
       _g_object_unref0 (self->priv->search_type_global_rbutton);
       _g_object_unref0 (self->priv->lens_connect_dlg);
       _g_object_unref0 (self->priv->spinner);
       _g_object_unref0 (self->priv->lens_discovery_spinner);
       _g_object_unref0 (self->priv->search_button);
       _g_object_unref0 (self->priv->statusbar);
       _g_object_unref0 (self->priv->log_buffer);
       _g_object_unref0 (self->priv->search_entry);
       _g_object_unref0 (self->priv->dbus_name_entry);
       _g_object_unref0 (self->priv->dbus_path_entry);
       _g_object_unref0 (self->priv->lens_list_combobox);
       _g_object_unref0 (self->priv->uimodel);
       _g_object_unref0 (self->priv->ui_filter_model);
       _g_object_unref0 (self->priv->lens_list_model);
       _g_object_unref0 (self->priv->dee_results_model);
       _g_object_unref0 (self->priv->dee_filters_model);
       G_OBJECT_CLASS (unity_tester_unity_tool_ui_parent_class)->finalize (obj);
}

Here is the caller graph for this function:

Definition at line 127 of file unity-tool-ui.c.

      {
       UNITY_TESTER_UNITY_TOOL_UI_DUMMY_PROPERTY
};
static void unity_tester_unity_tool_ui_handle_error ( UnityTesterUnityToolUi *  self,
const gchar *  message 
) [static]

Helper method that stops spinner and puts error message on statusbar.

Definition at line 1362 of file unity-tool-ui.c.

                                                                                                         {
       GtkSpinner* _tmp0_;
       GtkStatusbar* _tmp1_;
       guint _tmp2_;
       GtkStatusbar* _tmp3_;
       guint _tmp4_;
       const gchar* _tmp5_;
       const gchar* _tmp6_;
       gchar* _tmp7_;
       gchar* _tmp8_;
       g_return_if_fail (self != NULL);
       g_return_if_fail (message != NULL);
       _tmp0_ = self->priv->spinner;
       gtk_spinner_stop (_tmp0_);
       _tmp1_ = self->priv->statusbar;
       _tmp2_ = self->priv->statusbar_error_ctx;
       gtk_statusbar_pop (_tmp1_, _tmp2_);
       _tmp3_ = self->priv->statusbar;
       _tmp4_ = self->priv->statusbar_error_ctx;
       _tmp5_ = message;
       gtk_statusbar_push (_tmp3_, _tmp4_, _tmp5_);
       _tmp6_ = message;
       _tmp7_ = g_strconcat (_tmp6_, "\n", NULL);
       _tmp8_ = _tmp7_;
       unity_tester_unity_tool_ui_append_log_message (self, _tmp8_);
       _g_free0 (_tmp8_);
}

Here is the call graph for this function:

Here is the caller graph for this function:

gboolean unity_tester_unity_tool_ui_init_gui ( UnityTesterUnityToolUi *  self)

Definition at line 219 of file unity-tool-ui.c.

                                                                            {
       gboolean result = FALSE;
       GtkBuilder* _tmp0_;
       GtkBuilder* builder;
       GError * _inner_error_ = NULL;
       g_return_val_if_fail (self != NULL, FALSE);
       _tmp0_ = gtk_builder_new ();
       builder = _tmp0_;
       {
              GtkBuilder* _tmp1_;
              GtkBuilder* _tmp2_;
              GtkBuilder* _tmp3_;
              GObject* _tmp4_ = NULL;
              GtkSpinner* _tmp5_;
              GtkBuilder* _tmp6_;
              GObject* _tmp7_ = NULL;
              GtkWindow* _tmp8_;
              GtkWindow* window;
              GtkWindow* _tmp9_;
              GtkWindow* _tmp10_;
              GtkBuilder* _tmp11_;
              GObject* _tmp12_ = NULL;
              GtkListStore* _tmp13_;
              GtkBuilder* _tmp14_;
              GObject* _tmp15_ = NULL;
              GtkListStore* _tmp16_;
              GtkBuilder* _tmp17_;
              GObject* _tmp18_ = NULL;
              GtkEntry* _tmp19_;
              GtkBuilder* _tmp20_;
              GObject* _tmp21_ = NULL;
              GtkRadioButton* _tmp22_;
              GtkBuilder* _tmp23_;
              GObject* _tmp24_ = NULL;
              GtkButton* _tmp25_;
              GtkBuilder* _tmp26_;
              GObject* _tmp27_ = NULL;
              GtkStatusbar* _tmp28_;
              GtkBuilder* _tmp29_;
              GObject* _tmp30_ = NULL;
              GtkTextBuffer* _tmp31_;
              GtkStatusbar* _tmp32_;
              guint _tmp33_ = 0U;
              GtkStatusbar* _tmp34_;
              guint _tmp35_ = 0U;
              _tmp1_ = builder;
              gtk_builder_add_from_resource (_tmp1_, "/com/canonical/Unity/unity-tool/unity-tool.ui", &_inner_error_);
              if (_inner_error_ != NULL) {
                     goto __catch9_g_error;
              }
              _tmp2_ = builder;
              gtk_builder_connect_signals (_tmp2_, self);
              _tmp3_ = builder;
              _tmp4_ = gtk_builder_get_object (_tmp3_, "spinner");
              _tmp5_ = _g_object_ref0 (G_TYPE_CHECK_INSTANCE_TYPE (_tmp4_, GTK_TYPE_SPINNER) ? ((GtkSpinner*) _tmp4_) : NULL);
              _g_object_unref0 (self->priv->spinner);
              self->priv->spinner = _tmp5_;
              _tmp6_ = builder;
              _tmp7_ = gtk_builder_get_object (_tmp6_, "window");
              _tmp8_ = _g_object_ref0 (G_TYPE_CHECK_INSTANCE_TYPE (_tmp7_, GTK_TYPE_WINDOW) ? ((GtkWindow*) _tmp7_) : NULL);
              window = _tmp8_;
              _tmp9_ = window;
              g_signal_connect ((GtkWidget*) _tmp9_, "destroy", (GCallback) _gtk_main_quit_gtk_widget_destroy, NULL);
              _tmp10_ = window;
              gtk_widget_show_all ((GtkWidget*) _tmp10_);
              _tmp11_ = builder;
              _tmp12_ = gtk_builder_get_object (_tmp11_, "results_model");
              _tmp13_ = _g_object_ref0 (G_TYPE_CHECK_INSTANCE_TYPE (_tmp12_, GTK_TYPE_LIST_STORE) ? ((GtkListStore*) _tmp12_) : NULL);
              _g_object_unref0 (self->priv->uimodel);
              self->priv->uimodel = _tmp13_;
              _tmp14_ = builder;
              _tmp15_ = gtk_builder_get_object (_tmp14_, "filters_model");
              _tmp16_ = _g_object_ref0 (G_TYPE_CHECK_INSTANCE_TYPE (_tmp15_, GTK_TYPE_LIST_STORE) ? ((GtkListStore*) _tmp15_) : NULL);
              _g_object_unref0 (self->priv->ui_filter_model);
              self->priv->ui_filter_model = _tmp16_;
              _tmp17_ = builder;
              _tmp18_ = gtk_builder_get_object (_tmp17_, "search_entry");
              _tmp19_ = _g_object_ref0 (G_TYPE_CHECK_INSTANCE_TYPE (_tmp18_, GTK_TYPE_ENTRY) ? ((GtkEntry*) _tmp18_) : NULL);
              _g_object_unref0 (self->priv->search_entry);
              self->priv->search_entry = _tmp19_;
              _tmp20_ = builder;
              _tmp21_ = gtk_builder_get_object (_tmp20_, "search_type_global");
              _tmp22_ = _g_object_ref0 (G_TYPE_CHECK_INSTANCE_TYPE (_tmp21_, GTK_TYPE_RADIO_BUTTON) ? ((GtkRadioButton*) _tmp21_) : NULL);
              _g_object_unref0 (self->priv->search_type_global_rbutton);
              self->priv->search_type_global_rbutton = _tmp22_;
              _tmp23_ = builder;
              _tmp24_ = gtk_builder_get_object (_tmp23_, "search_button");
              _tmp25_ = _g_object_ref0 (G_TYPE_CHECK_INSTANCE_TYPE (_tmp24_, GTK_TYPE_BUTTON) ? ((GtkButton*) _tmp24_) : NULL);
              _g_object_unref0 (self->priv->search_button);
              self->priv->search_button = _tmp25_;
              _tmp26_ = builder;
              _tmp27_ = gtk_builder_get_object (_tmp26_, "statusbar");
              _tmp28_ = _g_object_ref0 (G_TYPE_CHECK_INSTANCE_TYPE (_tmp27_, GTK_TYPE_STATUSBAR) ? ((GtkStatusbar*) _tmp27_) : NULL);
              _g_object_unref0 (self->priv->statusbar);
              self->priv->statusbar = _tmp28_;
              _tmp29_ = builder;
              _tmp30_ = gtk_builder_get_object (_tmp29_, "log_buffer");
              _tmp31_ = _g_object_ref0 (G_TYPE_CHECK_INSTANCE_TYPE (_tmp30_, GTK_TYPE_TEXT_BUFFER) ? ((GtkTextBuffer*) _tmp30_) : NULL);
              _g_object_unref0 (self->priv->log_buffer);
              self->priv->log_buffer = _tmp31_;
              _tmp32_ = self->priv->statusbar;
              _tmp33_ = gtk_statusbar_get_context_id (_tmp32_, "Info");
              self->priv->statusbar_info_ctx = _tmp33_;
              _tmp34_ = self->priv->statusbar;
              _tmp35_ = gtk_statusbar_get_context_id (_tmp34_, "Error");
              self->priv->statusbar_error_ctx = _tmp35_;
              unity_tester_unity_tool_ui_show_connect_dialog (self);
              _g_object_unref0 (window);
       }
       goto __finally9;
       __catch9_g_error:
       {
              GError* e = NULL;
              GError* _tmp36_;
              const gchar* _tmp37_;
              e = _inner_error_;
              _inner_error_ = NULL;
              _tmp36_ = e;
              _tmp37_ = _tmp36_->message;
              unity_tester_unity_tool_ui_ui_load_error (self, _tmp37_);
              result = FALSE;
              _g_error_free0 (e);
              _g_object_unref0 (builder);
              return result;
       }
       __finally9:
       if (_inner_error_ != NULL) {
              _g_object_unref0 (builder);
              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 FALSE;
       }
       result = TRUE;
       _g_object_unref0 (builder);
       return result;
}

Here is the call graph for this function:

Here is the caller graph for this function:

static void unity_tester_unity_tool_ui_instance_init ( UnityTesterUnityToolUi *  self) [static]

Definition at line 1398 of file unity-tool-ui.c.

                                                                                     {
       self->priv = UNITY_TESTER_UNITY_TOOL_UI_GET_PRIVATE (self);
       self->priv->search_type_global_rbutton = NULL;
       self->priv->lens_connect_dlg = NULL;
       self->priv->spinner = NULL;
       self->priv->lens_discovery_spinner = NULL;
       self->priv->search_button = NULL;
       self->priv->statusbar = NULL;
       self->priv->log_buffer = NULL;
       self->priv->search_entry = NULL;
       self->priv->dbus_name_entry = NULL;
       self->priv->dbus_path_entry = NULL;
       self->priv->lens_list_combobox = NULL;
       self->priv->uimodel = NULL;
       self->priv->ui_filter_model = NULL;
       self->priv->lens_list_model = NULL;
       self->priv->dee_results_model = NULL;
       self->priv->dee_filters_model = NULL;
}
static void unity_tester_unity_tool_ui_model_synchronized_cb ( UnityTesterUnityToolUi *  self) [static]

Definition at line 865 of file unity-tool-ui.c.

                                                                                            {
       GtkSpinner* _tmp0_;
       DeeSharedModel* _tmp1_;
       guint _tmp2_ = 0U;
       gchar* _tmp3_ = NULL;
       gchar* _tmp4_;
       g_return_if_fail (self != NULL);
       _tmp0_ = self->priv->spinner;
       gtk_spinner_stop (_tmp0_);
       unity_tester_unity_tool_ui_update_status (self);
       _tmp1_ = self->priv->dee_results_model;
       _tmp2_ = dee_model_get_n_rows ((DeeModel*) _tmp1_);
       _tmp3_ = g_strdup_printf ("Search returned %u records\n", _tmp2_);
       _tmp4_ = _tmp3_;
       unity_tester_unity_tool_ui_append_log_message (self, _tmp4_);
       _g_free0 (_tmp4_);
       _g_object_unref0 (self->priv->dee_results_model);
       self->priv->dee_results_model = NULL;
}

Here is the call graph for this function:

Here is the caller graph for this function:

UnityTesterUnityToolUi * unity_tester_unity_tool_ui_new ( void  )

Definition at line 204 of file unity-tool-ui.c.

Here is the call graph for this function:

Here is the caller graph for this function:

void unity_tester_unity_tool_ui_on_connect_clicked ( GtkMenuItem *  item,
UnityTesterUnityToolUi *  self 
)

Definition at line 561 of file unity-tool-ui.c.

                                                                                                     {
       g_return_if_fail (self != NULL);
       g_return_if_fail (item != NULL);
       unity_tester_unity_tool_ui_show_connect_dialog (self);
}

Here is the call graph for this function:

void unity_tester_unity_tool_ui_on_from_lens_clicked ( GtkButton *  btn,
UnityTesterUnityToolUi *  self 
)

Triggered by clicking 'From lens file' button in the connection dialog.

Opens file browser letting the user pick a .lens file.

Definition at line 988 of file unity-tool-ui.c.

                                                                                                    {
       GtkFileFilter* _tmp0_;
       GtkFileFilter* filter;
       GtkFileFilter* _tmp1_;
       GtkFileFilter* _tmp2_;
       GtkFileChooserDialog* _tmp3_;
       GtkFileChooserDialog* file_chooser;
       GtkFileChooserDialog* _tmp4_;
       GtkFileFilter* _tmp5_;
       GtkFileChooserDialog* _tmp6_;
       gint _tmp7_ = 0;
       GtkFileChooserDialog* _tmp24_;
       GError * _inner_error_ = NULL;
       g_return_if_fail (self != NULL);
       g_return_if_fail (btn != NULL);
       _tmp0_ = gtk_file_filter_new ();
       g_object_ref_sink (_tmp0_);
       filter = _tmp0_;
       _tmp1_ = filter;
       gtk_buildable_set_name ((GtkBuildable*) _tmp1_, "Lens files");
       _tmp2_ = filter;
       gtk_file_filter_add_pattern (_tmp2_, "*.lens");
       _tmp3_ = (GtkFileChooserDialog*) gtk_file_chooser_dialog_new ("Open Lens file", NULL, GTK_FILE_CHOOSER_ACTION_OPEN, GTK_STOCK_CANCEL, 0, GTK_STOCK_OPEN, 1, NULL);
       g_object_ref_sink (_tmp3_);
       file_chooser = _tmp3_;
       _tmp4_ = file_chooser;
       _tmp5_ = filter;
       gtk_file_chooser_set_filter ((GtkFileChooser*) _tmp4_, _tmp5_);
       _tmp6_ = file_chooser;
       _tmp7_ = gtk_dialog_run ((GtkDialog*) _tmp6_);
       if (_tmp7_ == 1) {
              {
                     GtkFileChooserDialog* _tmp8_;
                     gchar* _tmp9_ = NULL;
                     gchar* _tmp10_;
                     GtkEntry* _tmp11_;
                     const gchar* _tmp12_;
                     GtkEntry* _tmp13_;
                     const gchar* _tmp14_;
                     _tmp8_ = file_chooser;
                     _tmp9_ = gtk_file_chooser_get_filename ((GtkFileChooser*) _tmp8_);
                     _tmp10_ = _tmp9_;
                     unity_tester_get_lens_params_from_file (_tmp10_, &_inner_error_);
                     _g_free0 (_tmp10_);
                     if (_inner_error_ != NULL) {
                            goto __catch12_g_error;
                     }
                     _tmp11_ = self->priv->dbus_name_entry;
                     _tmp12_ = unity_tester_options_lens_dbus_name;
                     gtk_entry_set_text (_tmp11_, _tmp12_);
                     _tmp13_ = self->priv->dbus_path_entry;
                     _tmp14_ = unity_tester_options_lens_dbus_path;
                     gtk_entry_set_text (_tmp13_, _tmp14_);
              }
              goto __finally12;
              __catch12_g_error:
              {
                     GError* e = NULL;
                     GError* _tmp15_;
                     const gchar* _tmp16_;
                     gchar* _tmp17_ = NULL;
                     gchar* _tmp18_;
                     GtkMessageDialog* _tmp19_;
                     GtkDialog* _tmp20_;
                     GtkDialog* dlg;
                     GtkDialog* _tmp21_;
                     GtkDialog* _tmp22_;
                     GtkDialog* _tmp23_;
                     e = _inner_error_;
                     _inner_error_ = NULL;
                     _tmp15_ = e;
                     _tmp16_ = _tmp15_->message;
                     _tmp17_ = g_strdup_printf ("Error loading lens parameters from file:\n%s", _tmp16_);
                     _tmp18_ = _tmp17_;
                     _tmp19_ = (GtkMessageDialog*) gtk_message_dialog_new (NULL, GTK_DIALOG_DESTROY_WITH_PARENT | GTK_DIALOG_MODAL, GTK_MESSAGE_ERROR, GTK_BUTTONS_CLOSE, _tmp18_);
                     g_object_ref_sink (_tmp19_);
                     _tmp20_ = (GtkDialog*) _tmp19_;
                     _g_free0 (_tmp18_);
                     dlg = _tmp20_;
                     _tmp21_ = dlg;
                     gtk_window_set_title ((GtkWindow*) _tmp21_, "Error loading lens file");
                     _tmp22_ = dlg;
                     gtk_dialog_run (_tmp22_);
                     _tmp23_ = dlg;
                     gtk_widget_destroy ((GtkWidget*) _tmp23_);
                     _g_object_unref0 (dlg);
                     _g_error_free0 (e);
              }
              __finally12:
              if (_inner_error_ != NULL) {
                     _g_object_unref0 (file_chooser);
                     _g_object_unref0 (filter);
                     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;
              }
       }
       _tmp24_ = file_chooser;
       gtk_widget_destroy ((GtkWidget*) _tmp24_);
       _g_object_unref0 (file_chooser);
       _g_object_unref0 (filter);
}

Here is the call graph for this function:

void unity_tester_unity_tool_ui_on_lens_combobox_clicked ( GtkMenuItem *  item,
UnityTesterUnityToolUi *  self 
)

Definition at line 512 of file unity-tool-ui.c.

                                                                                                           {
       GtkTreeIter iter = {0};
       GtkComboBox* _tmp0_;
       gint _tmp1_ = 0;
       g_return_if_fail (self != NULL);
       g_return_if_fail (item != NULL);
       _tmp0_ = self->priv->lens_list_combobox;
       _tmp1_ = gtk_combo_box_get_active (_tmp0_);
       if (_tmp1_ > 0) {
              GtkComboBox* _tmp2_;
              GtkTreeIter _tmp3_ = {0};
              gboolean _tmp4_ = FALSE;
              _tmp2_ = self->priv->lens_list_combobox;
              _tmp4_ = gtk_combo_box_get_active_iter (_tmp2_, &_tmp3_);
              iter = _tmp3_;
              if (_tmp4_) {
                     GValue val = {0};
                     GtkListStore* _tmp5_;
                     GtkTreeIter _tmp6_;
                     GValue _tmp7_ = {0};
                     GtkEntry* _tmp8_;
                     const gchar* _tmp9_ = NULL;
                     GtkListStore* _tmp10_;
                     GtkTreeIter _tmp11_;
                     GValue _tmp12_ = {0};
                     GtkEntry* _tmp13_;
                     const gchar* _tmp14_ = NULL;
                     _tmp5_ = self->priv->lens_list_model;
                     _tmp6_ = iter;
                     gtk_tree_model_get_value ((GtkTreeModel*) _tmp5_, &_tmp6_, 0, &_tmp7_);
                     G_IS_VALUE (&val) ? (g_value_unset (&val), NULL) : NULL;
                     val = _tmp7_;
                     _tmp8_ = self->priv->dbus_name_entry;
                     _tmp9_ = g_value_get_string (&val);
                     gtk_entry_set_text (_tmp8_, _tmp9_);
                     _tmp10_ = self->priv->lens_list_model;
                     _tmp11_ = iter;
                     gtk_tree_model_get_value ((GtkTreeModel*) _tmp10_, &_tmp11_, 1, &_tmp12_);
                     G_IS_VALUE (&val) ? (g_value_unset (&val), NULL) : NULL;
                     val = _tmp12_;
                     _tmp13_ = self->priv->dbus_path_entry;
                     _tmp14_ = g_value_get_string (&val);
                     gtk_entry_set_text (_tmp13_, _tmp14_);
                     G_IS_VALUE (&val) ? (g_value_unset (&val), NULL) : NULL;
              }
       }
}
void unity_tester_unity_tool_ui_on_lens_connect ( GtkDialog *  dlg,
gint  response,
UnityTesterUnityToolUi *  self 
)

Triggered clicking 'Ok' in the connection dialog.

Definition at line 896 of file unity-tool-ui.c.

                                                                                                              {
       gint _tmp0_;
       gboolean _tmp9_ = FALSE;
       gboolean _tmp10_ = FALSE;
       gboolean _tmp11_ = FALSE;
       const gchar* _tmp12_;
       gboolean _tmp16_;
       gboolean _tmp18_;
       gboolean _tmp22_;
       GtkDialog* _tmp27_;
       g_return_if_fail (self != NULL);
       g_return_if_fail (dlg != NULL);
       _tmp0_ = response;
       if (_tmp0_ == 1) {
              GtkEntry* _tmp1_;
              const gchar* _tmp2_;
              const gchar* _tmp3_;
              gchar* _tmp4_;
              GtkEntry* _tmp5_;
              const gchar* _tmp6_;
              const gchar* _tmp7_;
              gchar* _tmp8_;
              _tmp1_ = self->priv->dbus_name_entry;
              _tmp2_ = gtk_entry_get_text (_tmp1_);
              _tmp3_ = _tmp2_;
              _tmp4_ = g_strdup (_tmp3_);
              _g_free0 (unity_tester_options_lens_dbus_name);
              unity_tester_options_lens_dbus_name = _tmp4_;
              _tmp5_ = self->priv->dbus_path_entry;
              _tmp6_ = gtk_entry_get_text (_tmp5_);
              _tmp7_ = _tmp6_;
              _tmp8_ = g_strdup (_tmp7_);
              _g_free0 (unity_tester_options_lens_dbus_path);
              unity_tester_options_lens_dbus_path = _tmp8_;
       }
       _tmp12_ = unity_tester_options_lens_dbus_path;
       if (_tmp12_ == NULL) {
              _tmp11_ = TRUE;
       } else {
              const gchar* _tmp13_;
              gint _tmp14_;
              gint _tmp15_;
              _tmp13_ = unity_tester_options_lens_dbus_path;
              _tmp14_ = strlen (_tmp13_);
              _tmp15_ = _tmp14_;
              _tmp11_ = _tmp15_ == 0;
       }
       _tmp16_ = _tmp11_;
       if (_tmp16_) {
              _tmp10_ = TRUE;
       } else {
              const gchar* _tmp17_;
              _tmp17_ = unity_tester_options_lens_dbus_name;
              _tmp10_ = _tmp17_ == NULL;
       }
       _tmp18_ = _tmp10_;
       if (_tmp18_) {
              _tmp9_ = TRUE;
       } else {
              const gchar* _tmp19_;
              gint _tmp20_;
              gint _tmp21_;
              _tmp19_ = unity_tester_options_lens_dbus_name;
              _tmp20_ = strlen (_tmp19_);
              _tmp21_ = _tmp20_;
              _tmp9_ = _tmp21_ == 0;
       }
       _tmp22_ = _tmp9_;
       if (_tmp22_) {
              GtkEntry* _tmp23_;
              GtkButton* _tmp24_;
              _tmp23_ = self->priv->search_entry;
              gtk_widget_set_sensitive ((GtkWidget*) _tmp23_, FALSE);
              _tmp24_ = self->priv->search_button;
              gtk_widget_set_sensitive ((GtkWidget*) _tmp24_, FALSE);
       } else {
              GtkEntry* _tmp25_;
              GtkButton* _tmp26_;
              _tmp25_ = self->priv->search_entry;
              gtk_widget_set_sensitive ((GtkWidget*) _tmp25_, TRUE);
              _tmp26_ = self->priv->search_button;
              gtk_widget_set_sensitive ((GtkWidget*) _tmp26_, TRUE);
       }
       _tmp27_ = dlg;
       gtk_widget_destroy ((GtkWidget*) _tmp27_);
}
void unity_tester_unity_tool_ui_on_results_button_clicked ( GtkButton *  btn,
UnityTesterUnityToolUi *  self 
)

Definition at line 1231 of file unity-tool-ui.c.

                                                                                                         {
       g_return_if_fail (self != NULL);
       g_return_if_fail (btn != NULL);
       unity_tester_unity_tool_ui_request_lens_info (self);
}

Here is the call graph for this function:

void unity_tester_unity_tool_ui_on_search_button_clicked ( GtkButton *  btn,
UnityTesterUnityToolUi *  self 
)

Definition at line 1276 of file unity-tool-ui.c.

                                                                                                        {
       GtkEntry* _tmp0_;
       const gchar* _tmp1_;
       const gchar* _tmp2_;
       gchar* _tmp3_;
       gchar* text;
       const gchar* _tmp4_;
       g_return_if_fail (self != NULL);
       g_return_if_fail (btn != NULL);
       _tmp0_ = self->priv->search_entry;
       _tmp1_ = gtk_entry_get_text (_tmp0_);
       _tmp2_ = _tmp1_;
       _tmp3_ = g_strdup (_tmp2_);
       text = _tmp3_;
       _tmp4_ = text;
       if (g_strcmp0 (_tmp4_, "") != 0) {
              GtkSpinner* _tmp5_;
              gboolean _tmp6_ = FALSE;
              const gchar* _tmp7_;
              gboolean _tmp8_ = FALSE;
              gboolean _tmp11_;
              _tmp5_ = self->priv->spinner;
              gtk_spinner_start (_tmp5_);
              _tmp7_ = unity_tester_options_lens_dbus_name;
              _tmp8_ = g_dbus_is_name (_tmp7_);
              if (_tmp8_) {
                     const gchar* _tmp9_;
                     gboolean _tmp10_ = FALSE;
                     _tmp9_ = unity_tester_options_lens_dbus_path;
                     _tmp10_ = g_variant_is_object_path (_tmp9_);
                     _tmp6_ = _tmp10_;
              } else {
                     _tmp6_ = FALSE;
              }
              _tmp11_ = _tmp6_;
              if (_tmp11_) {
                     const gchar* _tmp12_ = NULL;
                     GtkRadioButton* _tmp13_;
                     gboolean _tmp14_ = FALSE;
                     const gchar* _tmp15_;
                     const gchar* _tmp16_;
                     const gchar* _tmp17_;
                     const gchar* _tmp18_;
                     gchar* _tmp19_ = NULL;
                     gchar* _tmp20_;
                     gint _tmp21_ = 0;
                     GtkRadioButton* _tmp22_;
                     gboolean _tmp23_ = FALSE;
                     const gchar* _tmp24_;
                     gint _tmp25_;
                     _tmp13_ = self->priv->search_type_global_rbutton;
                     _tmp14_ = gtk_toggle_button_get_active ((GtkToggleButton*) _tmp13_);
                     if (_tmp14_) {
                            _tmp12_ = "global";
                     } else {
                            _tmp12_ = "local";
                     }
                     _tmp15_ = text;
                     _tmp16_ = _tmp12_;
                     _tmp17_ = unity_tester_options_lens_dbus_name;
                     _tmp18_ = unity_tester_options_lens_dbus_path;
                     _tmp19_ = g_strdup_printf ("Query: '%s' (%s), DBus name: %s, DBus path: %s\n", _tmp15_, _tmp16_, _tmp17_, _tmp18_);
                     _tmp20_ = _tmp19_;
                     unity_tester_unity_tool_ui_append_log_message (self, _tmp20_);
                     _g_free0 (_tmp20_);
                     _tmp22_ = self->priv->search_type_global_rbutton;
                     _tmp23_ = gtk_toggle_button_get_active ((GtkToggleButton*) _tmp22_);
                     if (_tmp23_) {
                            _tmp21_ = 1;
                     } else {
                            _tmp21_ = 0;
                     }
                     _tmp24_ = text;
                     _tmp25_ = _tmp21_;
                     unity_tester_call_lens_search (_tmp24_, _tmp25_, _____lambda8__gfunc, self, _____lambda9__gfunc, self);
              } else {
                     unity_tester_unity_tool_ui_handle_error (self, "Invalid DBus name/path");
              }
       }
       _g_free0 (text);
}

Here is the call graph for this function:

static void unity_tester_unity_tool_ui_request_lens_info ( UnityTesterUnityToolUi *  self) [static]

Definition at line 1147 of file unity-tool-ui.c.

                                                                                        {
       GtkSpinner* _tmp0_;
       DeeSharedModel* _tmp1_;
       DeeSharedModel* _tmp2_;
       GtkListStore* _tmp3_;
       GtkListStore* _tmp4_;
       UnityTesterLensInfo _tmp5_ = {0};
       UnityTesterLensInfo info;
       const gchar* _tmp6_ = NULL;
       GtkRadioButton* _tmp7_;
       gboolean _tmp8_ = FALSE;
       const gchar* _tmp13_;
       gchar* _tmp14_;
       gchar* model_name;
       DeeSharedModel* _tmp15_;
       DeeSharedModel* _tmp16_;
       gulong _tmp17_ = 0UL;
       DeeSharedModel* _tmp18_;
       UnityTesterLensInfo _tmp19_;
       const gchar* _tmp20_;
       DeeSharedModel* _tmp21_;
       DeeSharedModel* _tmp22_;
       gulong _tmp23_ = 0UL;
       DeeSharedModel* _tmp24_;
       g_return_if_fail (self != NULL);
       _tmp0_ = self->priv->spinner;
       gtk_spinner_start (_tmp0_);
       _tmp1_ = self->priv->dee_filters_model;
       if (_tmp1_ != NULL) {
              _g_object_unref0 (self->priv->dee_filters_model);
              self->priv->dee_filters_model = NULL;
       }
       _tmp2_ = self->priv->dee_results_model;
       if (_tmp2_ != NULL) {
              _g_object_unref0 (self->priv->dee_results_model);
              self->priv->dee_results_model = NULL;
       }
       _tmp3_ = self->priv->uimodel;
       gtk_list_store_clear (_tmp3_);
       _tmp4_ = self->priv->ui_filter_model;
       gtk_list_store_clear (_tmp4_);
       unity_tester_get_lens_info (___lambda6__gfunc, self, &_tmp5_);
       info = _tmp5_;
       _tmp7_ = self->priv->search_type_global_rbutton;
       _tmp8_ = gtk_toggle_button_get_active ((GtkToggleButton*) _tmp7_);
       if (_tmp8_) {
              UnityTesterLensInfo _tmp9_;
              const gchar* _tmp10_;
              _tmp9_ = info;
              _tmp10_ = _tmp9_.global_results_model_name;
              _tmp6_ = _tmp10_;
       } else {
              UnityTesterLensInfo _tmp11_;
              const gchar* _tmp12_;
              _tmp11_ = info;
              _tmp12_ = _tmp11_.results_model_name;
              _tmp6_ = _tmp12_;
       }
       _tmp13_ = _tmp6_;
       _tmp14_ = g_strdup (_tmp13_);
       model_name = _tmp14_;
       _tmp15_ = (DeeSharedModel*) dee_shared_model_new (model_name);
       _g_object_unref0 (self->priv->dee_results_model);
       self->priv->dee_results_model = _tmp15_;
       _tmp16_ = self->priv->dee_results_model;
       _tmp17_ = g_signal_connect_object ((GObject*) _tmp16_, "notify::synchronized", (GCallback) _unity_tester_unity_tool_ui_model_synchronized_cb_g_object_notify, self, 0);
       self->priv->model_sync_sig_id = _tmp17_;
       _tmp18_ = self->priv->dee_results_model;
       g_signal_connect_object ((DeeModel*) _tmp18_, "row-added", (GCallback) _unity_tester_unity_tool_ui_results_row_added_cb_dee_model_row_added, self, 0);
       _tmp19_ = info;
       _tmp20_ = _tmp19_.filters_model_name;
       _tmp21_ = (DeeSharedModel*) dee_shared_model_new (_tmp20_);
       _g_object_unref0 (self->priv->dee_filters_model);
       self->priv->dee_filters_model = _tmp21_;
       _tmp22_ = self->priv->dee_filters_model;
       _tmp23_ = g_signal_connect_object ((GObject*) _tmp22_, "notify::synchronized", (GCallback) _unity_tester_unity_tool_ui_filter_model_synchronized_cb_g_object_notify, self, 0);
       self->priv->filters_model_sync_sig_id = _tmp23_;
       _tmp24_ = self->priv->dee_filters_model;
       g_signal_connect_object ((DeeModel*) _tmp24_, "row-added", (GCallback) _unity_tester_unity_tool_ui_filters_row_added_cb_dee_model_row_added, self, 0);
       _g_free0 (model_name);
       unity_tester_lens_info_destroy (&info);
}

Here is the call graph for this function:

Here is the caller graph for this function:

static void unity_tester_unity_tool_ui_results_row_added_cb ( UnityTesterUnityToolUi *  self,
DeeModel *  model,
DeeModelIter *  iter 
) [static]

Definition at line 690 of file unity-tool-ui.c.

                                                                                                                                {
       DeeModel* _tmp0_;
       DeeModelIter* _tmp1_;
       GVariant** _tmp2_;
       GVariant** _tmp3_ = NULL;
       GVariant** row;
       gint row_length1;
       gint _row_size_;
       GtkTreeIter uiiter = {0};
       GtkListStore* _tmp4_;
       GtkTreeIter _tmp5_ = {0};
       GtkListStore* _tmp6_;
       GtkTreeIter _tmp7_;
       GVariant* _tmp8_;
       const gchar* _tmp9_ = NULL;
       GVariant* _tmp10_;
       const gchar* _tmp11_ = NULL;
       GVariant* _tmp12_;
       guint32 _tmp13_ = 0U;
       GVariant* _tmp14_;
       const gchar* _tmp15_ = NULL;
       GVariant* _tmp16_;
       const gchar* _tmp17_ = NULL;
       GVariant* _tmp18_;
       const gchar* _tmp19_ = NULL;
       GVariant* _tmp20_;
       const gchar* _tmp21_ = NULL;
       g_return_if_fail (self != NULL);
       g_return_if_fail (model != NULL);
       g_return_if_fail (iter != NULL);
       _tmp0_ = model;
       _tmp1_ = iter;
       _tmp3_ = _tmp2_ = dee_model_get_row (_tmp0_, _tmp1_, NULL);
       row = _tmp3_;
       row_length1 = _vala_array_length (_tmp2_);
       _row_size_ = row_length1;
       _tmp4_ = self->priv->uimodel;
       gtk_list_store_append (_tmp4_, &_tmp5_);
       uiiter = _tmp5_;
       _tmp6_ = self->priv->uimodel;
       _tmp7_ = uiiter;
       _tmp8_ = row[0];
       _tmp9_ = g_variant_get_string (_tmp8_, NULL);
       _tmp10_ = row[1];
       _tmp11_ = g_variant_get_string (_tmp10_, NULL);
       _tmp12_ = row[2];
       _tmp13_ = g_variant_get_uint32 (_tmp12_);
       _tmp14_ = row[3];
       _tmp15_ = g_variant_get_string (_tmp14_, NULL);
       _tmp16_ = row[4];
       _tmp17_ = g_variant_get_string (_tmp16_, NULL);
       _tmp18_ = row[5];
       _tmp19_ = g_variant_get_string (_tmp18_, NULL);
       _tmp20_ = row[6];
       _tmp21_ = g_variant_get_string (_tmp20_, NULL);
       gtk_list_store_set (_tmp6_, &_tmp7_, 0, _tmp9_, 1, _tmp11_, 2, _tmp13_, 3, _tmp15_, 4, _tmp17_, 5, _tmp19_, 6, _tmp21_, -1, -1);
       row = (_vala_array_free (row, row_length1, (GDestroyNotify) g_variant_unref), NULL);
}

Here is the call graph for this function:

Here is the caller graph for this function:

static void unity_tester_unity_tool_ui_show_connect_dialog ( UnityTesterUnityToolUi *  self) [static]

Definition at line 568 of file unity-tool-ui.c.

                                                                                          {
       GtkBuilder* _tmp0_;
       GtkBuilder* builder;
       GError * _inner_error_ = NULL;
       g_return_if_fail (self != NULL);
       _tmp0_ = gtk_builder_new ();
       builder = _tmp0_;
       {
              GObject* _tmp1_ = NULL;
              GtkSpinner* _tmp2_;
              GObject* _tmp3_ = NULL;
              GtkListStore* _tmp4_;
              GObject* _tmp5_ = NULL;
              GtkComboBox* _tmp6_;
              GObject* _tmp7_ = NULL;
              GtkEntry* _tmp8_;
              GObject* _tmp9_ = NULL;
              GtkEntry* _tmp10_;
              GObject* _tmp11_ = NULL;
              GtkDialog* _tmp12_;
              gboolean _tmp13_ = FALSE;
              gboolean _tmp14_ = FALSE;
              gboolean _tmp15_ = FALSE;
              const gchar* _tmp16_;
              gboolean _tmp18_;
              gboolean _tmp20_;
              gboolean _tmp22_;
              GtkDialog* _tmp27_;
              gtk_builder_add_from_resource (builder, "/com/canonical/Unity/unity-tool/dbus-lens-connect.ui", &_inner_error_);
              if (_inner_error_ != NULL) {
                     goto __catch11_g_error;
              }
              gtk_builder_connect_signals (builder, self);
              _tmp1_ = gtk_builder_get_object (builder, "lens_discovery_spinner");
              _tmp2_ = _g_object_ref0 (G_TYPE_CHECK_INSTANCE_TYPE (_tmp1_, GTK_TYPE_SPINNER) ? ((GtkSpinner*) _tmp1_) : NULL);
              _g_object_unref0 (self->priv->lens_discovery_spinner);
              self->priv->lens_discovery_spinner = _tmp2_;
              _tmp3_ = gtk_builder_get_object (builder, "lens_list_model");
              _tmp4_ = _g_object_ref0 (G_TYPE_CHECK_INSTANCE_TYPE (_tmp3_, GTK_TYPE_LIST_STORE) ? ((GtkListStore*) _tmp3_) : NULL);
              _g_object_unref0 (self->priv->lens_list_model);
              self->priv->lens_list_model = _tmp4_;
              _tmp5_ = gtk_builder_get_object (builder, "lens_list_combobox");
              _tmp6_ = _g_object_ref0 (G_TYPE_CHECK_INSTANCE_TYPE (_tmp5_, GTK_TYPE_COMBO_BOX) ? ((GtkComboBox*) _tmp5_) : NULL);
              _g_object_unref0 (self->priv->lens_list_combobox);
              self->priv->lens_list_combobox = _tmp6_;
              _tmp7_ = gtk_builder_get_object (builder, "dbus_name_entry");
              _tmp8_ = _g_object_ref0 (G_TYPE_CHECK_INSTANCE_TYPE (_tmp7_, GTK_TYPE_ENTRY) ? ((GtkEntry*) _tmp7_) : NULL);
              _g_object_unref0 (self->priv->dbus_name_entry);
              self->priv->dbus_name_entry = _tmp8_;
              _tmp9_ = gtk_builder_get_object (builder, "dbus_path_entry");
              _tmp10_ = _g_object_ref0 (G_TYPE_CHECK_INSTANCE_TYPE (_tmp9_, GTK_TYPE_ENTRY) ? ((GtkEntry*) _tmp9_) : NULL);
              _g_object_unref0 (self->priv->dbus_path_entry);
              self->priv->dbus_path_entry = _tmp10_;
              _tmp11_ = gtk_builder_get_object (builder, "lens_connect_dialog");
              _tmp12_ = _g_object_ref0 (G_TYPE_CHECK_INSTANCE_TYPE (_tmp11_, GTK_TYPE_DIALOG) ? ((GtkDialog*) _tmp11_) : NULL);
              _g_object_unref0 (self->priv->lens_connect_dlg);
              self->priv->lens_connect_dlg = _tmp12_;
              unity_tester_unity_tool_ui_discover_lens (self);
              _tmp16_ = unity_tester_options_lens_dbus_path;
              if (_tmp16_ != NULL) {
                     const gchar* _tmp17_;
                     _tmp17_ = unity_tester_options_lens_dbus_path;
                     _tmp15_ = g_strcmp0 (_tmp17_, "") != 0;
              } else {
                     _tmp15_ = FALSE;
              }
              _tmp18_ = _tmp15_;
              if (_tmp18_) {
                     const gchar* _tmp19_;
                     _tmp19_ = unity_tester_options_lens_dbus_name;
                     _tmp14_ = _tmp19_ != NULL;
              } else {
                     _tmp14_ = FALSE;
              }
              _tmp20_ = _tmp14_;
              if (_tmp20_) {
                     const gchar* _tmp21_;
                     _tmp21_ = unity_tester_options_lens_dbus_name;
                     _tmp13_ = g_strcmp0 (_tmp21_, "") != 0;
              } else {
                     _tmp13_ = FALSE;
              }
              _tmp22_ = _tmp13_;
              if (_tmp22_) {
                     GtkEntry* _tmp23_;
                     const gchar* _tmp24_;
                     GtkEntry* _tmp25_;
                     const gchar* _tmp26_;
                     _tmp23_ = self->priv->dbus_name_entry;
                     _tmp24_ = unity_tester_options_lens_dbus_name;
                     gtk_entry_set_text (_tmp23_, _tmp24_);
                     _tmp25_ = self->priv->dbus_path_entry;
                     _tmp26_ = unity_tester_options_lens_dbus_path;
                     gtk_entry_set_text (_tmp25_, _tmp26_);
              }
              _tmp27_ = self->priv->lens_connect_dlg;
              gtk_widget_show_all ((GtkWidget*) _tmp27_);
       }
       goto __finally11;
       __catch11_g_error:
       {
              GError* e = NULL;
              GError* _tmp28_;
              const gchar* _tmp29_;
              e = _inner_error_;
              _inner_error_ = NULL;
              _tmp28_ = e;
              _tmp29_ = _tmp28_->message;
              unity_tester_unity_tool_ui_ui_load_error (self, _tmp29_);
              _g_error_free0 (e);
       }
       __finally11:
       if (_inner_error_ != NULL) {
              _g_object_unref0 (builder);
              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;
       }
       _g_object_unref0 (builder);
}

Here is the call graph for this function:

Here is the caller graph for this function:

static void unity_tester_unity_tool_ui_ui_load_error ( UnityTesterUnityToolUi *  self,
const gchar *  message 
) [static]

Definition at line 357 of file unity-tool-ui.c.

                                                                                                          {
       const gchar* _tmp0_;
       gchar* _tmp1_ = NULL;
       gchar* _tmp2_;
       GtkMessageDialog* _tmp3_;
       GtkDialog* _tmp4_;
       GtkDialog* dlg;
       g_return_if_fail (self != NULL);
       g_return_if_fail (message != NULL);
       _tmp0_ = message;
       _tmp1_ = g_strdup_printf ("Error loading UI file:\n%s", _tmp0_);
       _tmp2_ = _tmp1_;
       _tmp3_ = (GtkMessageDialog*) gtk_message_dialog_new (NULL, GTK_DIALOG_DESTROY_WITH_PARENT | GTK_DIALOG_MODAL, GTK_MESSAGE_ERROR, GTK_BUTTONS_CLOSE, _tmp2_);
       g_object_ref_sink (_tmp3_);
       _tmp4_ = (GtkDialog*) _tmp3_;
       _g_free0 (_tmp2_);
       dlg = _tmp4_;
       gtk_window_set_title ((GtkWindow*) dlg, "Error creating UI");
       gtk_dialog_run (dlg);
       gtk_widget_destroy ((GtkWidget*) dlg);
       _g_object_unref0 (dlg);
}

Here is the caller graph for this function:

static void unity_tester_unity_tool_ui_update_status ( UnityTesterUnityToolUi *  self) [static]

Definition at line 817 of file unity-tool-ui.c.

                                                                                    {
       GtkStatusbar* _tmp0_;
       guint _tmp1_;
       GtkStatusbar* _tmp2_;
       guint _tmp3_;
       DeeSharedModel* _tmp4_;
       guint _tmp5_ = 0U;
       gchar* _tmp6_ = NULL;
       gchar* _tmp7_;
       gchar* _tmp8_;
       gchar* _tmp9_;
       const gchar* _tmp10_;
       gchar* _tmp11_;
       gchar* _tmp12_;
       gchar* _tmp13_;
       gchar* _tmp14_;
       const gchar* _tmp15_;
       gchar* _tmp16_;
       gchar* _tmp17_;
       g_return_if_fail (self != NULL);
       _tmp0_ = self->priv->statusbar;
       _tmp1_ = self->priv->statusbar_info_ctx;
       gtk_statusbar_pop (_tmp0_, _tmp1_);
       _tmp2_ = self->priv->statusbar;
       _tmp3_ = self->priv->statusbar_info_ctx;
       _tmp4_ = self->priv->dee_results_model;
       _tmp5_ = dee_model_get_n_rows ((DeeModel*) _tmp4_);
       _tmp6_ = g_strdup_printf ("%u records", _tmp5_);
       _tmp7_ = _tmp6_;
       _tmp8_ = g_strconcat (_tmp7_, ", DBus name: ", NULL);
       _tmp9_ = _tmp8_;
       _tmp10_ = unity_tester_options_lens_dbus_name;
       _tmp11_ = g_strconcat (_tmp9_, _tmp10_, NULL);
       _tmp12_ = _tmp11_;
       _tmp13_ = g_strconcat (_tmp12_, " path: ", NULL);
       _tmp14_ = _tmp13_;
       _tmp15_ = unity_tester_options_lens_dbus_path;
       _tmp16_ = g_strconcat (_tmp14_, _tmp15_, NULL);
       _tmp17_ = _tmp16_;
       gtk_statusbar_push (_tmp2_, _tmp3_, _tmp17_);
       _g_free0 (_tmp17_);
       _g_free0 (_tmp14_);
       _g_free0 (_tmp12_);
       _g_free0 (_tmp9_);
       _g_free0 (_tmp7_);
}

Here is the caller graph for this function:

gpointer unity_tester_value_get_dbus_lens_util ( const GValue *  value)

Definition at line 1080 of file unity-tool-dbus-util.c.

                                                                     {
       g_return_val_if_fail (G_TYPE_CHECK_VALUE_TYPE (value, UNITY_TESTER_TYPE_DBUS_LENS_UTIL), NULL);
       return value->data[0].v_pointer;
}
void unity_tester_value_set_dbus_lens_util ( GValue *  value,
gpointer  v_object 
)

Definition at line 1086 of file unity-tool-dbus-util.c.

                                                                              {
       UnityTesterDBusLensUtil* old;
       g_return_if_fail (G_TYPE_CHECK_VALUE_TYPE (value, UNITY_TESTER_TYPE_DBUS_LENS_UTIL));
       old = value->data[0].v_pointer;
       if (v_object) {
              g_return_if_fail (G_TYPE_CHECK_INSTANCE_TYPE (v_object, UNITY_TESTER_TYPE_DBUS_LENS_UTIL));
              g_return_if_fail (g_value_type_compatible (G_TYPE_FROM_INSTANCE (v_object), G_VALUE_TYPE (value)));
              value->data[0].v_pointer = v_object;
              unity_tester_dbus_lens_util_ref (value->data[0].v_pointer);
       } else {
              value->data[0].v_pointer = NULL;
       }
       if (old) {
              unity_tester_dbus_lens_util_unref (old);
       }
}

Here is the call graph for this function:

void unity_tester_value_take_dbus_lens_util ( GValue *  value,
gpointer  v_object 
)

Definition at line 1104 of file unity-tool-dbus-util.c.

                                                                               {
       UnityTesterDBusLensUtil* old;
       g_return_if_fail (G_TYPE_CHECK_VALUE_TYPE (value, UNITY_TESTER_TYPE_DBUS_LENS_UTIL));
       old = value->data[0].v_pointer;
       if (v_object) {
              g_return_if_fail (G_TYPE_CHECK_INSTANCE_TYPE (v_object, UNITY_TESTER_TYPE_DBUS_LENS_UTIL));
              g_return_if_fail (g_value_type_compatible (G_TYPE_FROM_INSTANCE (v_object), G_VALUE_TYPE (value)));
              value->data[0].v_pointer = v_object;
       } else {
              value->data[0].v_pointer = NULL;
       }
       if (old) {
              unity_tester_dbus_lens_util_unref (old);
       }
}

Here is the call graph for this function:


Variable Documentation

Definition at line 158 of file unity-tool.c.

Definition at line 160 of file unity-tool.c.

gpointer unity_tester_unity_tool_ui_parent_class = NULL [static]

Definition at line 123 of file unity-tool-ui.c.