Logo Search packages:      
Sourcecode: unity version File versions  Download package

places-results-view.c

/* places-results-view.c generated by valac, the Vala compiler
 * generated from places-results-view.vala, do not modify */

/*
 * Copyright (C) 2010 Canonical Ltd
 *
 * This program is free software: you can redistribute it and/or modify
 * it under the terms of the GNU General Public License version 3 as
 * published by the Free Software Foundation.
 *
 * This program is distributed in the hope that it will be useful,
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 * GNU General Public License for more details.
 *
 * You should have received a copy of the GNU General Public License
 * along with this program.  If not, see <http://www.gnu.org/licenses/>.
 *
 * Authored by Neil Jagdish Patel <neil.patel@canonical.com>
 *
 */

#include <glib.h>
#include <glib-object.h>
#include <clutk/clutk.h>
#include <clutter/clutter.h>
#include <stdlib.h>
#include <string.h>
#include <dee.h>
#include <gee.h>
#include <float.h>
#include <math.h>


#define UNITY_PLACES_VIEWS_TYPE_GROUP_COLUMNS (unity_places_views_group_columns_get_type ())

#define UNITY_PLACES_VIEWS_TYPE_RESULT_COLUMNS (unity_places_views_result_columns_get_type ())

#define UNITY_PLACES_TYPE_PLACE_VIEW (unity_places_place_view_get_type ())
#define UNITY_PLACES_PLACE_VIEW(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), UNITY_PLACES_TYPE_PLACE_VIEW, UnityPlacesPlaceView))
#define UNITY_PLACES_IS_PLACE_VIEW(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), UNITY_PLACES_TYPE_PLACE_VIEW))
#define UNITY_PLACES_PLACE_VIEW_GET_INTERFACE(obj) (G_TYPE_INSTANCE_GET_INTERFACE ((obj), UNITY_PLACES_TYPE_PLACE_VIEW, UnityPlacesPlaceViewIface))

typedef struct _UnityPlacesPlaceView UnityPlacesPlaceView;
typedef struct _UnityPlacesPlaceViewIface UnityPlacesPlaceViewIface;

#define UNITY_PLACES_VIEWS_TYPE_RESULTS_VIEW (unity_places_views_results_view_get_type ())
#define UNITY_PLACES_VIEWS_RESULTS_VIEW(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), UNITY_PLACES_VIEWS_TYPE_RESULTS_VIEW, UnityPlacesViewsResultsView))
#define UNITY_PLACES_VIEWS_RESULTS_VIEW_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), UNITY_PLACES_VIEWS_TYPE_RESULTS_VIEW, UnityPlacesViewsResultsViewClass))
#define UNITY_PLACES_VIEWS_IS_RESULTS_VIEW(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), UNITY_PLACES_VIEWS_TYPE_RESULTS_VIEW))
#define UNITY_PLACES_VIEWS_IS_RESULTS_VIEW_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), UNITY_PLACES_VIEWS_TYPE_RESULTS_VIEW))
#define UNITY_PLACES_VIEWS_RESULTS_VIEW_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), UNITY_PLACES_VIEWS_TYPE_RESULTS_VIEW, UnityPlacesViewsResultsViewClass))

typedef struct _UnityPlacesViewsResultsView UnityPlacesViewsResultsView;
typedef struct _UnityPlacesViewsResultsViewClass UnityPlacesViewsResultsViewClass;
typedef struct _UnityPlacesViewsResultsViewPrivate UnityPlacesViewsResultsViewPrivate;

#define UNITY_PLACES_VIEWS_TYPE_GROUP_VIEW (unity_places_views_group_view_get_type ())
#define UNITY_PLACES_VIEWS_GROUP_VIEW(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), UNITY_PLACES_VIEWS_TYPE_GROUP_VIEW, UnityPlacesViewsGroupView))
#define UNITY_PLACES_VIEWS_GROUP_VIEW_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), UNITY_PLACES_VIEWS_TYPE_GROUP_VIEW, UnityPlacesViewsGroupViewClass))
#define UNITY_PLACES_VIEWS_IS_GROUP_VIEW(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), UNITY_PLACES_VIEWS_TYPE_GROUP_VIEW))
#define UNITY_PLACES_VIEWS_IS_GROUP_VIEW_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), UNITY_PLACES_VIEWS_TYPE_GROUP_VIEW))
#define UNITY_PLACES_VIEWS_GROUP_VIEW_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), UNITY_PLACES_VIEWS_TYPE_GROUP_VIEW, UnityPlacesViewsGroupViewClass))

typedef struct _UnityPlacesViewsGroupView UnityPlacesViewsGroupView;
typedef struct _UnityPlacesViewsGroupViewClass UnityPlacesViewsGroupViewClass;

#define UNITY_PLACES_APPLICATION_TYPE_APPLICATION_GROUP (unity_places_application_application_group_get_type ())
#define UNITY_PLACES_APPLICATION_APPLICATION_GROUP(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), UNITY_PLACES_APPLICATION_TYPE_APPLICATION_GROUP, UnityPlacesApplicationApplicationGroup))
#define UNITY_PLACES_APPLICATION_APPLICATION_GROUP_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), UNITY_PLACES_APPLICATION_TYPE_APPLICATION_GROUP, UnityPlacesApplicationApplicationGroupClass))
#define UNITY_PLACES_APPLICATION_IS_APPLICATION_GROUP(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), UNITY_PLACES_APPLICATION_TYPE_APPLICATION_GROUP))
#define UNITY_PLACES_APPLICATION_IS_APPLICATION_GROUP_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), UNITY_PLACES_APPLICATION_TYPE_APPLICATION_GROUP))
#define UNITY_PLACES_APPLICATION_APPLICATION_GROUP_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), UNITY_PLACES_APPLICATION_TYPE_APPLICATION_GROUP, UnityPlacesApplicationApplicationGroupClass))

typedef struct _UnityPlacesApplicationApplicationGroup UnityPlacesApplicationApplicationGroup;
typedef struct _UnityPlacesApplicationApplicationGroupClass UnityPlacesApplicationApplicationGroupClass;
#define _g_object_unref0(var) ((var == NULL) ? NULL : (var = (g_object_unref (var), NULL)))
#define _g_free0(var) (var = (g_free (var), NULL))
typedef struct _UnityPlacesApplicationApplicationGroupPrivate UnityPlacesApplicationApplicationGroupPrivate;

#define UNITY_PLACES_APPLICATION_TYPE_APPLICATION_ICON (unity_places_application_application_icon_get_type ())
#define UNITY_PLACES_APPLICATION_APPLICATION_ICON(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), UNITY_PLACES_APPLICATION_TYPE_APPLICATION_ICON, UnityPlacesApplicationApplicationIcon))
#define UNITY_PLACES_APPLICATION_APPLICATION_ICON_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), UNITY_PLACES_APPLICATION_TYPE_APPLICATION_ICON, UnityPlacesApplicationApplicationIconClass))
#define UNITY_PLACES_APPLICATION_IS_APPLICATION_ICON(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), UNITY_PLACES_APPLICATION_TYPE_APPLICATION_ICON))
#define UNITY_PLACES_APPLICATION_IS_APPLICATION_ICON_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), UNITY_PLACES_APPLICATION_TYPE_APPLICATION_ICON))
#define UNITY_PLACES_APPLICATION_APPLICATION_ICON_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), UNITY_PLACES_APPLICATION_TYPE_APPLICATION_ICON, UnityPlacesApplicationApplicationIconClass))

typedef struct _UnityPlacesApplicationApplicationIcon UnityPlacesApplicationApplicationIcon;
typedef struct _UnityPlacesApplicationApplicationIconClass UnityPlacesApplicationApplicationIconClass;
#define _unity_places_application_application_icon_unref0(var) ((var == NULL) ? NULL : (var = (unity_places_application_application_icon_unref (var), NULL)))
typedef struct _UnityPlacesViewsGroupViewPrivate UnityPlacesViewsGroupViewPrivate;

#define UNITY_PLACES_VIEWS_TYPE_GROUP_LABEL (unity_places_views_group_label_get_type ())
#define UNITY_PLACES_VIEWS_GROUP_LABEL(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), UNITY_PLACES_VIEWS_TYPE_GROUP_LABEL, UnityPlacesViewsGroupLabel))
#define UNITY_PLACES_VIEWS_GROUP_LABEL_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), UNITY_PLACES_VIEWS_TYPE_GROUP_LABEL, UnityPlacesViewsGroupLabelClass))
#define UNITY_PLACES_VIEWS_IS_GROUP_LABEL(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), UNITY_PLACES_VIEWS_TYPE_GROUP_LABEL))
#define UNITY_PLACES_VIEWS_IS_GROUP_LABEL_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), UNITY_PLACES_VIEWS_TYPE_GROUP_LABEL))
#define UNITY_PLACES_VIEWS_GROUP_LABEL_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), UNITY_PLACES_VIEWS_TYPE_GROUP_LABEL, UnityPlacesViewsGroupLabelClass))

typedef struct _UnityPlacesViewsGroupLabel UnityPlacesViewsGroupLabel;
typedef struct _UnityPlacesViewsGroupLabelClass UnityPlacesViewsGroupLabelClass;
typedef struct _UnityPlacesViewsGroupLabelPrivate UnityPlacesViewsGroupLabelPrivate;

typedef enum  {
      UNITY_PLACES_VIEWS_GROUP_COLUMNS_NAME = 0
} UnityPlacesViewsGroupColumns;

typedef enum  {
      UNITY_PLACES_VIEWS_RESULT_COLUMNS_NAME = 0,
      UNITY_PLACES_VIEWS_RESULT_COLUMNS_COMMENT,
      UNITY_PLACES_VIEWS_RESULT_COLUMNS_ICON_NAME,
      UNITY_PLACES_VIEWS_RESULT_COLUMNS_GROUP,
      UNITY_PLACES_VIEWS_RESULT_COLUMNS_URI
} UnityPlacesViewsResultColumns;

struct _UnityPlacesPlaceViewIface {
      GTypeInterface parent_iface;
      void (*init_with_properties) (UnityPlacesPlaceView* self, GHashTable* props);
};

struct _UnityPlacesViewsResultsView {
      CtkBox parent_instance;
      UnityPlacesViewsResultsViewPrivate * priv;
};

struct _UnityPlacesViewsResultsViewClass {
      CtkBoxClass parent_class;
};

struct _UnityPlacesViewsResultsViewPrivate {
      DeeSharedModel* groups_model;
      DeeSharedModel* results_model;
      UnityPlacesViewsGroupView* group_view;
      CtkVBox* results_view;
      GeeHashMap* groups;
};

struct _UnityPlacesApplicationApplicationGroup {
      CtkBox parent_instance;
      UnityPlacesApplicationApplicationGroupPrivate * priv;
      gint n_items;
};

struct _UnityPlacesApplicationApplicationGroupClass {
      CtkBoxClass parent_class;
};

struct _UnityPlacesViewsGroupView {
      CtkBox parent_instance;
      UnityPlacesViewsGroupViewPrivate * priv;
};

struct _UnityPlacesViewsGroupViewClass {
      CtkBoxClass parent_class;
};

struct _UnityPlacesViewsGroupLabel {
      CtkText parent_instance;
      UnityPlacesViewsGroupLabelPrivate * priv;
};

struct _UnityPlacesViewsGroupLabelClass {
      CtkTextClass parent_class;
};

struct _UnityPlacesViewsGroupLabelPrivate {
      DeeModel* _model;
      DeeModelIter* _iter;
      ClutterActor* bg;
};


static gpointer unity_places_views_results_view_parent_class = NULL;
static UnityPlacesPlaceViewIface* unity_places_views_results_view_unity_places_place_view_parent_iface = NULL;
static gpointer unity_places_views_group_view_parent_class = NULL;
static gpointer unity_places_views_group_label_parent_class = NULL;

GType unity_places_views_group_columns_get_type (void);
GType unity_places_views_result_columns_get_type (void);
GType unity_places_place_view_get_type (void);
GType unity_places_views_results_view_get_type (void);
GType unity_places_views_group_view_get_type (void);
GType unity_places_application_application_group_get_type (void);
#define UNITY_PLACES_VIEWS_RESULTS_VIEW_GET_PRIVATE(o) (G_TYPE_INSTANCE_GET_PRIVATE ((o), UNITY_PLACES_VIEWS_TYPE_RESULTS_VIEW, UnityPlacesViewsResultsViewPrivate))
enum  {
      UNITY_PLACES_VIEWS_RESULTS_VIEW_DUMMY_PROPERTY
};
UnityPlacesViewsResultsView* unity_places_views_results_view_new (void);
UnityPlacesViewsResultsView* unity_places_views_results_view_construct (GType object_type);
static void unity_places_views_results_view_real_allocate (ClutterActor* base, const ClutterActorBox* box, ClutterAllocationFlags flags);
static void unity_places_views_results_view_on_group_added (UnityPlacesViewsResultsView* self, DeeModel* model, DeeModelIter* iter);
static void _unity_places_views_results_view_on_group_added_dee_model_row_added (DeeModel* _sender, DeeModelIter* iter, gpointer self);
static void unity_places_views_results_view_on_group_changed (UnityPlacesViewsResultsView* self, DeeModel* model, DeeModelIter* iter);
static void _unity_places_views_results_view_on_group_changed_dee_model_row_changed (DeeModel* _sender, DeeModelIter* iter, gpointer self);
static void unity_places_views_results_view_on_group_removed (UnityPlacesViewsResultsView* self, DeeModel* model, DeeModelIter* iter);
static void _unity_places_views_results_view_on_group_removed_dee_model_row_removed (DeeModel* _sender, DeeModelIter* iter, gpointer self);
static void unity_places_views_results_view_on_result_added (UnityPlacesViewsResultsView* self, DeeModel* model, DeeModelIter* iter);
static void _unity_places_views_results_view_on_result_added_dee_model_row_added (DeeModel* _sender, DeeModelIter* iter, gpointer self);
static void unity_places_views_results_view_on_result_changed (UnityPlacesViewsResultsView* self, DeeModel* model, DeeModelIter* iter);
static void _unity_places_views_results_view_on_result_changed_dee_model_row_changed (DeeModel* _sender, DeeModelIter* iter, gpointer self);
static void unity_places_views_results_view_on_result_removed (UnityPlacesViewsResultsView* self, DeeModel* model, DeeModelIter* iter);
static void _unity_places_views_results_view_on_result_removed_dee_model_row_removed (DeeModel* _sender, DeeModelIter* iter, gpointer self);
static void unity_places_views_results_view_real_init_with_properties (UnityPlacesPlaceView* base, GHashTable* props);
void unity_places_views_group_view_add (UnityPlacesViewsGroupView* self, DeeModel* model, DeeModelIter* iter);
UnityPlacesApplicationApplicationGroup* unity_places_application_application_group_new (const char* group_name);
UnityPlacesApplicationApplicationGroup* unity_places_application_application_group_construct (GType object_type, const char* group_name);
gpointer unity_places_application_application_icon_ref (gpointer instance);
void unity_places_application_application_icon_unref (gpointer instance);
GParamSpec* unity_places_application_param_spec_application_icon (const gchar* name, const gchar* nick, const gchar* blurb, GType object_type, GParamFlags flags);
void unity_places_application_value_set_application_icon (GValue* value, gpointer v_object);
void unity_places_application_value_take_application_icon (GValue* value, gpointer v_object);
gpointer unity_places_application_value_get_application_icon (const GValue* value);
GType unity_places_application_application_icon_get_type (void);
UnityPlacesApplicationApplicationIcon* unity_places_application_application_icon_new (gint width, const char* name, const char* icon_name, const char* tooltip);
UnityPlacesApplicationApplicationIcon* unity_places_application_application_icon_construct (GType object_type, gint width, const char* name, const char* icon_name, const char* tooltip);
void unity_places_application_application_group_add_icon (UnityPlacesApplicationApplicationGroup* self, UnityPlacesApplicationApplicationIcon* app);
UnityPlacesViewsGroupView* unity_places_views_group_view_new (void);
UnityPlacesViewsGroupView* unity_places_views_group_view_construct (GType object_type);
static GObject * unity_places_views_results_view_constructor (GType type, guint n_construct_properties, GObjectConstructParam * construct_properties);
static void unity_places_views_results_view_finalize (GObject* obj);
enum  {
      UNITY_PLACES_VIEWS_GROUP_VIEW_DUMMY_PROPERTY
};
UnityPlacesViewsGroupLabel* unity_places_views_group_label_new (DeeModel* model, DeeModelIter* iter);
UnityPlacesViewsGroupLabel* unity_places_views_group_label_construct (GType object_type, DeeModel* model, DeeModelIter* iter);
GType unity_places_views_group_label_get_type (void);
static GObject * unity_places_views_group_view_constructor (GType type, guint n_construct_properties, GObjectConstructParam * construct_properties);
#define UNITY_PLACES_VIEWS_GROUP_LABEL_GET_PRIVATE(o) (G_TYPE_INSTANCE_GET_PRIVATE ((o), UNITY_PLACES_VIEWS_TYPE_GROUP_LABEL, UnityPlacesViewsGroupLabelPrivate))
enum  {
      UNITY_PLACES_VIEWS_GROUP_LABEL_DUMMY_PROPERTY,
      UNITY_PLACES_VIEWS_GROUP_LABEL_MODEL,
      UNITY_PLACES_VIEWS_GROUP_LABEL_ITER
};
static void unity_places_views_group_label_real_allocate (ClutterActor* base, const ClutterActorBox* box, ClutterAllocationFlags flags);
static void unity_places_views_group_label_real_map (ClutterActor* base);
static void unity_places_views_group_label_real_unmap (ClutterActor* base);
static void unity_places_views_group_label_real_show (ClutterActor* base);
static void unity_places_views_group_label_real_hide (ClutterActor* base);
static void unity_places_views_group_label_real_paint (ClutterActor* base);
DeeModel* unity_places_views_group_label_get_model (UnityPlacesViewsGroupLabel* self);
static void unity_places_views_group_label_set_model (UnityPlacesViewsGroupLabel* self, DeeModel* value);
DeeModelIter* unity_places_views_group_label_get_iter (UnityPlacesViewsGroupLabel* self);
static void unity_places_views_group_label_set_iter (UnityPlacesViewsGroupLabel* self, DeeModelIter* value);
static GObject * unity_places_views_group_label_constructor (GType type, guint n_construct_properties, GObjectConstructParam * construct_properties);
static void unity_places_views_group_label_finalize (GObject* obj);
static void unity_places_views_group_label_get_property (GObject * object, guint property_id, GValue * value, GParamSpec * pspec);
static void unity_places_views_group_label_set_property (GObject * object, guint property_id, const GValue * value, GParamSpec * pspec);



GType unity_places_views_group_columns_get_type (void) {
      static volatile gsize unity_places_views_group_columns_type_id__volatile = 0;
      if (g_once_init_enter (&unity_places_views_group_columns_type_id__volatile)) {
            static const GEnumValue values[] = {{UNITY_PLACES_VIEWS_GROUP_COLUMNS_NAME, "UNITY_PLACES_VIEWS_GROUP_COLUMNS_NAME", "name"}, {0, NULL, NULL}};
            GType unity_places_views_group_columns_type_id;
            unity_places_views_group_columns_type_id = g_enum_register_static ("UnityPlacesViewsGroupColumns", values);
            g_once_init_leave (&unity_places_views_group_columns_type_id__volatile, unity_places_views_group_columns_type_id);
      }
      return unity_places_views_group_columns_type_id__volatile;
}


GType unity_places_views_result_columns_get_type (void) {
      static volatile gsize unity_places_views_result_columns_type_id__volatile = 0;
      if (g_once_init_enter (&unity_places_views_result_columns_type_id__volatile)) {
            static const GEnumValue values[] = {{UNITY_PLACES_VIEWS_RESULT_COLUMNS_NAME, "UNITY_PLACES_VIEWS_RESULT_COLUMNS_NAME", "name"}, {UNITY_PLACES_VIEWS_RESULT_COLUMNS_COMMENT, "UNITY_PLACES_VIEWS_RESULT_COLUMNS_COMMENT", "comment"}, {UNITY_PLACES_VIEWS_RESULT_COLUMNS_ICON_NAME, "UNITY_PLACES_VIEWS_RESULT_COLUMNS_ICON_NAME", "icon-name"}, {UNITY_PLACES_VIEWS_RESULT_COLUMNS_GROUP, "UNITY_PLACES_VIEWS_RESULT_COLUMNS_GROUP", "group"}, {UNITY_PLACES_VIEWS_RESULT_COLUMNS_URI, "UNITY_PLACES_VIEWS_RESULT_COLUMNS_URI", "uri"}, {0, NULL, NULL}};
            GType unity_places_views_result_columns_type_id;
            unity_places_views_result_columns_type_id = g_enum_register_static ("UnityPlacesViewsResultColumns", values);
            g_once_init_leave (&unity_places_views_result_columns_type_id__volatile, unity_places_views_result_columns_type_id);
      }
      return unity_places_views_result_columns_type_id__volatile;
}


UnityPlacesViewsResultsView* unity_places_views_results_view_construct (GType object_type) {
      UnityPlacesViewsResultsView * self;
      self = (UnityPlacesViewsResultsView*) g_object_new (object_type, "orientation", CTK_ORIENTATION_VERTICAL, NULL);
      return self;
}


UnityPlacesViewsResultsView* unity_places_views_results_view_new (void) {
      return unity_places_views_results_view_construct (UNITY_PLACES_VIEWS_TYPE_RESULTS_VIEW);
}


static void unity_places_views_results_view_real_allocate (ClutterActor* base, const ClutterActorBox* box, ClutterAllocationFlags flags) {
      UnityPlacesViewsResultsView * self;
      ClutterActorBox _tmp0_ = {0};
      ClutterActorBox child_box;
      float width = 0.0F;
      float height = 0.0F;
      float padding;
      float natheight;
      self = (UnityPlacesViewsResultsView*) base;
      child_box = (_tmp0_.x1 = (float) 0, _tmp0_.y1 = (float) 0, _tmp0_.x2 = (float) 0, _tmp0_.y2 = (float) 0, _tmp0_);
      padding = (float) 24;
      natheight = (float) 0;
      width = ((*box).x2 - (*box).x1) - (padding * 2);
      height = ((*box).y2 - (*box).y1) - (padding * 2);
      child_box.x1 = padding;
      child_box.x2 = width;
      child_box.y1 = padding;
      child_box.y2 = padding * 2;
      clutter_actor_allocate ((ClutterActor*) self->priv->group_view, &child_box, flags);
      clutter_actor_get_preferred_height ((ClutterActor*) self->priv->results_view, width, &natheight, &natheight);
      child_box.y1 = child_box.y1 + child_box.y2;
      child_box.y2 = child_box.y1 + natheight;
      clutter_actor_allocate ((ClutterActor*) self->priv->results_view, &child_box, flags);
}


static void _unity_places_views_results_view_on_group_added_dee_model_row_added (DeeModel* _sender, DeeModelIter* iter, gpointer self) {
      unity_places_views_results_view_on_group_added (self, _sender, iter);
}


static void _unity_places_views_results_view_on_group_changed_dee_model_row_changed (DeeModel* _sender, DeeModelIter* iter, gpointer self) {
      unity_places_views_results_view_on_group_changed (self, _sender, iter);
}


static void _unity_places_views_results_view_on_group_removed_dee_model_row_removed (DeeModel* _sender, DeeModelIter* iter, gpointer self) {
      unity_places_views_results_view_on_group_removed (self, _sender, iter);
}


static void _unity_places_views_results_view_on_result_added_dee_model_row_added (DeeModel* _sender, DeeModelIter* iter, gpointer self) {
      unity_places_views_results_view_on_result_added (self, _sender, iter);
}


static void _unity_places_views_results_view_on_result_changed_dee_model_row_changed (DeeModel* _sender, DeeModelIter* iter, gpointer self) {
      unity_places_views_results_view_on_result_changed (self, _sender, iter);
}


static void _unity_places_views_results_view_on_result_removed_dee_model_row_removed (DeeModel* _sender, DeeModelIter* iter, gpointer self) {
      unity_places_views_results_view_on_result_removed (self, _sender, iter);
}


static void unity_places_views_results_view_real_init_with_properties (UnityPlacesPlaceView* base, GHashTable* props) {
      UnityPlacesViewsResultsView * self;
      char* group_model_name;
      char* results_model_name;
      DeeSharedModel* _tmp0_;
      DeeSharedModel* _tmp1_;
      self = (UnityPlacesViewsResultsView*) base;
      g_return_if_fail (props != NULL);
      group_model_name = g_strdup ((const char*) g_hash_table_lookup (props, "groups-model"));
      results_model_name = g_strdup ((const char*) g_hash_table_lookup (props, "results-model"));
      self->priv->groups_model = (_tmp0_ = (DeeSharedModel*) dee_shared_model_new_with_name (group_model_name), _g_object_unref0 (self->priv->groups_model), _tmp0_);
      self->priv->results_model = (_tmp1_ = (DeeSharedModel*) dee_shared_model_new_with_name (results_model_name), _g_object_unref0 (self->priv->results_model), _tmp1_);
      g_signal_connect_object ((DeeModel*) self->priv->groups_model, "row-added", (GCallback) _unity_places_views_results_view_on_group_added_dee_model_row_added, self, 0);
      g_signal_connect_object ((DeeModel*) self->priv->groups_model, "row-changed", (GCallback) _unity_places_views_results_view_on_group_changed_dee_model_row_changed, self, 0);
      g_signal_connect_object ((DeeModel*) self->priv->groups_model, "row-removed", (GCallback) _unity_places_views_results_view_on_group_removed_dee_model_row_removed, self, 0);
      g_signal_connect_object ((DeeModel*) self->priv->results_model, "row-added", (GCallback) _unity_places_views_results_view_on_result_added_dee_model_row_added, self, 0);
      g_signal_connect_object ((DeeModel*) self->priv->results_model, "row-changed", (GCallback) _unity_places_views_results_view_on_result_changed_dee_model_row_changed, self, 0);
      g_signal_connect_object ((DeeModel*) self->priv->results_model, "row-removed", (GCallback) _unity_places_views_results_view_on_result_removed_dee_model_row_removed, self, 0);
      dee_shared_model_connect (self->priv->groups_model);
      dee_shared_model_connect (self->priv->results_model);
      _g_free0 (group_model_name);
      _g_free0 (results_model_name);
}


static void unity_places_views_results_view_on_group_added (UnityPlacesViewsResultsView* self, DeeModel* model, DeeModelIter* iter) {
      g_return_if_fail (self != NULL);
      g_return_if_fail (model != NULL);
      g_return_if_fail (iter != NULL);
      unity_places_views_group_view_add (self->priv->group_view, model, iter);
}


static void unity_places_views_results_view_on_group_changed (UnityPlacesViewsResultsView* self, DeeModel* model, DeeModelIter* iter) {
      g_return_if_fail (self != NULL);
      g_return_if_fail (model != NULL);
      g_return_if_fail (iter != NULL);
}


static void unity_places_views_results_view_on_group_removed (UnityPlacesViewsResultsView* self, DeeModel* model, DeeModelIter* iter) {
      g_return_if_fail (self != NULL);
      g_return_if_fail (model != NULL);
      g_return_if_fail (iter != NULL);
}


static void unity_places_views_results_view_on_result_added (UnityPlacesViewsResultsView* self, DeeModel* model, DeeModelIter* iter) {
      char* group_name;
      UnityPlacesApplicationApplicationGroup* group;
      g_return_if_fail (self != NULL);
      g_return_if_fail (model != NULL);
      g_return_if_fail (iter != NULL);
      group_name = g_strdup (dee_model_get_string (model, iter, (guint) UNITY_PLACES_VIEWS_RESULT_COLUMNS_GROUP));
      group = (UnityPlacesApplicationApplicationGroup*) gee_abstract_map_get ((GeeAbstractMap*) self->priv->groups, group_name);
      if (!UNITY_PLACES_APPLICATION_IS_APPLICATION_GROUP (group)) {
            UnityPlacesApplicationApplicationGroup* _tmp0_;
            group = (_tmp0_ = g_object_ref_sink (unity_places_application_application_group_new (group_name)), _g_object_unref0 (group), _tmp0_);
            clutter_container_add_actor ((ClutterContainer*) self->priv->results_view, (ClutterActor*) group);
            clutter_actor_show ((ClutterActor*) group);
            gee_abstract_map_set ((GeeAbstractMap*) self->priv->groups, group_name, group);
      }
      if (group->n_items < 6) {
            UnityPlacesApplicationApplicationIcon* app;
            char* name;
            char* icon_name;
            char* comment;
            UnityPlacesApplicationApplicationIcon* _tmp1_;
            app = NULL;
            name = g_strdup (dee_model_get_string (model, iter, (guint) UNITY_PLACES_VIEWS_RESULT_COLUMNS_NAME));
            icon_name = g_strdup (dee_model_get_string (model, iter, (guint) UNITY_PLACES_VIEWS_RESULT_COLUMNS_ICON_NAME));
            comment = g_strdup (dee_model_get_string (model, iter, (guint) UNITY_PLACES_VIEWS_RESULT_COLUMNS_COMMENT));
            app = (_tmp1_ = unity_places_application_application_icon_new (48, name, icon_name, comment), _unity_places_application_application_icon_unref0 (app), _tmp1_);
            unity_places_application_application_group_add_icon (group, app);
            _unity_places_application_application_icon_unref0 (app);
            _g_free0 (name);
            _g_free0 (icon_name);
            _g_free0 (comment);
      }
      _g_free0 (group_name);
      _g_object_unref0 (group);
}


static void unity_places_views_results_view_on_result_changed (UnityPlacesViewsResultsView* self, DeeModel* model, DeeModelIter* iter) {
      g_return_if_fail (self != NULL);
      g_return_if_fail (model != NULL);
      g_return_if_fail (iter != NULL);
}


static void unity_places_views_results_view_on_result_removed (UnityPlacesViewsResultsView* self, DeeModel* model, DeeModelIter* iter) {
      g_return_if_fail (self != NULL);
      g_return_if_fail (model != NULL);
      g_return_if_fail (iter != NULL);
}


static GObject * unity_places_views_results_view_constructor (GType type, guint n_construct_properties, GObjectConstructParam * construct_properties) {
      GObject * obj;
      GObjectClass * parent_class;
      UnityPlacesViewsResultsView * self;
      parent_class = G_OBJECT_CLASS (unity_places_views_results_view_parent_class);
      obj = parent_class->constructor (type, n_construct_properties, construct_properties);
      self = UNITY_PLACES_VIEWS_RESULTS_VIEW (obj);
      {
            UnityPlacesViewsGroupView* _tmp0_;
            CtkVBox* _tmp1_;
            GeeHashMap* _tmp2_;
            self->priv->group_view = (_tmp0_ = g_object_ref_sink (unity_places_views_group_view_new ()), _g_object_unref0 (self->priv->group_view), _tmp0_);
            clutter_container_add_actor ((ClutterContainer*) self, (ClutterActor*) self->priv->group_view);
            clutter_actor_show ((ClutterActor*) self->priv->group_view);
            self->priv->results_view = (_tmp1_ = g_object_ref_sink ((CtkVBox*) ctk_vbox_new ((guint) 12)), _g_object_unref0 (self->priv->results_view), _tmp1_);
            ctk_box_set_homogeneous ((CtkBox*) self->priv->results_view, FALSE);
            clutter_container_add_actor ((ClutterContainer*) self, (ClutterActor*) self->priv->results_view);
            clutter_actor_show ((ClutterActor*) self->priv->results_view);
            self->priv->groups = (_tmp2_ = gee_hash_map_new (G_TYPE_STRING, (GBoxedCopyFunc) g_strdup, g_free, UNITY_PLACES_APPLICATION_TYPE_APPLICATION_GROUP, (GBoxedCopyFunc) g_object_ref, g_object_unref, NULL, NULL, NULL), _g_object_unref0 (self->priv->groups), _tmp2_);
      }
      return obj;
}


static void unity_places_views_results_view_class_init (UnityPlacesViewsResultsViewClass * klass) {
      unity_places_views_results_view_parent_class = g_type_class_peek_parent (klass);
      g_type_class_add_private (klass, sizeof (UnityPlacesViewsResultsViewPrivate));
      CLUTTER_ACTOR_CLASS (klass)->allocate = unity_places_views_results_view_real_allocate;
      G_OBJECT_CLASS (klass)->constructor = unity_places_views_results_view_constructor;
      G_OBJECT_CLASS (klass)->finalize = unity_places_views_results_view_finalize;
}


static void unity_places_views_results_view_unity_places_place_view_interface_init (UnityPlacesPlaceViewIface * iface) {
      unity_places_views_results_view_unity_places_place_view_parent_iface = g_type_interface_peek_parent (iface);
      iface->init_with_properties = unity_places_views_results_view_real_init_with_properties;
}


static void unity_places_views_results_view_instance_init (UnityPlacesViewsResultsView * self) {
      self->priv = UNITY_PLACES_VIEWS_RESULTS_VIEW_GET_PRIVATE (self);
}


static void unity_places_views_results_view_finalize (GObject* obj) {
      UnityPlacesViewsResultsView * self;
      self = UNITY_PLACES_VIEWS_RESULTS_VIEW (obj);
      _g_object_unref0 (self->priv->groups_model);
      _g_object_unref0 (self->priv->results_model);
      _g_object_unref0 (self->priv->group_view);
      _g_object_unref0 (self->priv->results_view);
      _g_object_unref0 (self->priv->groups);
      G_OBJECT_CLASS (unity_places_views_results_view_parent_class)->finalize (obj);
}


GType unity_places_views_results_view_get_type (void) {
      static volatile gsize unity_places_views_results_view_type_id__volatile = 0;
      if (g_once_init_enter (&unity_places_views_results_view_type_id__volatile)) {
            static const GTypeInfo g_define_type_info = { sizeof (UnityPlacesViewsResultsViewClass), (GBaseInitFunc) NULL, (GBaseFinalizeFunc) NULL, (GClassInitFunc) unity_places_views_results_view_class_init, (GClassFinalizeFunc) NULL, NULL, sizeof (UnityPlacesViewsResultsView), 0, (GInstanceInitFunc) unity_places_views_results_view_instance_init, NULL };
            static const GInterfaceInfo unity_places_place_view_info = { (GInterfaceInitFunc) unity_places_views_results_view_unity_places_place_view_interface_init, (GInterfaceFinalizeFunc) NULL, NULL};
            GType unity_places_views_results_view_type_id;
            unity_places_views_results_view_type_id = g_type_register_static (CTK_TYPE_BOX, "UnityPlacesViewsResultsView", &g_define_type_info, 0);
            g_type_add_interface_static (unity_places_views_results_view_type_id, UNITY_PLACES_TYPE_PLACE_VIEW, &unity_places_place_view_info);
            g_once_init_leave (&unity_places_views_results_view_type_id__volatile, unity_places_views_results_view_type_id);
      }
      return unity_places_views_results_view_type_id__volatile;
}


UnityPlacesViewsGroupView* unity_places_views_group_view_construct (GType object_type) {
      UnityPlacesViewsGroupView * self;
      self = (UnityPlacesViewsGroupView*) g_object_new (object_type, "orientation", CTK_ORIENTATION_HORIZONTAL, "spacing", 12, "homogeneous", FALSE, NULL);
      return self;
}


UnityPlacesViewsGroupView* unity_places_views_group_view_new (void) {
      return unity_places_views_group_view_construct (UNITY_PLACES_VIEWS_TYPE_GROUP_VIEW);
}


void unity_places_views_group_view_add (UnityPlacesViewsGroupView* self, DeeModel* model, DeeModelIter* iter) {
      UnityPlacesViewsGroupLabel* text;
      g_return_if_fail (self != NULL);
      g_return_if_fail (model != NULL);
      g_return_if_fail (iter != NULL);
      text = g_object_ref_sink (unity_places_views_group_label_new (model, iter));
      clutter_container_add_actor ((ClutterContainer*) self, (ClutterActor*) text);
      clutter_actor_show ((ClutterActor*) text);
      _g_object_unref0 (text);
}


static GObject * unity_places_views_group_view_constructor (GType type, guint n_construct_properties, GObjectConstructParam * construct_properties) {
      GObject * obj;
      GObjectClass * parent_class;
      UnityPlacesViewsGroupView * self;
      parent_class = G_OBJECT_CLASS (unity_places_views_group_view_parent_class);
      obj = parent_class->constructor (type, n_construct_properties, construct_properties);
      self = UNITY_PLACES_VIEWS_GROUP_VIEW (obj);
      {
      }
      return obj;
}


static void unity_places_views_group_view_class_init (UnityPlacesViewsGroupViewClass * klass) {
      unity_places_views_group_view_parent_class = g_type_class_peek_parent (klass);
      G_OBJECT_CLASS (klass)->constructor = unity_places_views_group_view_constructor;
}


static void unity_places_views_group_view_instance_init (UnityPlacesViewsGroupView * self) {
}


GType unity_places_views_group_view_get_type (void) {
      static volatile gsize unity_places_views_group_view_type_id__volatile = 0;
      if (g_once_init_enter (&unity_places_views_group_view_type_id__volatile)) {
            static const GTypeInfo g_define_type_info = { sizeof (UnityPlacesViewsGroupViewClass), (GBaseInitFunc) NULL, (GBaseFinalizeFunc) NULL, (GClassInitFunc) unity_places_views_group_view_class_init, (GClassFinalizeFunc) NULL, NULL, sizeof (UnityPlacesViewsGroupView), 0, (GInstanceInitFunc) unity_places_views_group_view_instance_init, NULL };
            GType unity_places_views_group_view_type_id;
            unity_places_views_group_view_type_id = g_type_register_static (CTK_TYPE_BOX, "UnityPlacesViewsGroupView", &g_define_type_info, 0);
            g_once_init_leave (&unity_places_views_group_view_type_id__volatile, unity_places_views_group_view_type_id);
      }
      return unity_places_views_group_view_type_id__volatile;
}


UnityPlacesViewsGroupLabel* unity_places_views_group_label_construct (GType object_type, DeeModel* model, DeeModelIter* iter) {
      UnityPlacesViewsGroupLabel * self;
      g_return_val_if_fail (model != NULL, NULL);
      g_return_val_if_fail (iter != NULL, NULL);
      self = (UnityPlacesViewsGroupLabel*) g_object_new (object_type, "model", model, "iter", iter, "text", dee_model_get_string (model, iter, (guint) UNITY_PLACES_VIEWS_GROUP_COLUMNS_NAME), NULL);
      return self;
}


UnityPlacesViewsGroupLabel* unity_places_views_group_label_new (DeeModel* model, DeeModelIter* iter) {
      return unity_places_views_group_label_construct (UNITY_PLACES_VIEWS_TYPE_GROUP_LABEL, model, iter);
}


static void unity_places_views_group_label_real_allocate (ClutterActor* base, const ClutterActorBox* box, ClutterAllocationFlags flags) {
      UnityPlacesViewsGroupLabel * self;
      ClutterActorBox _tmp0_ = {0};
      ClutterActorBox child_box;
      self = (UnityPlacesViewsGroupLabel*) base;
      CLUTTER_ACTOR_CLASS (unity_places_views_group_label_parent_class)->allocate ((ClutterActor*) CTK_TEXT (self), box, flags);
      child_box = (_tmp0_.x1 = (float) 0, _tmp0_.y1 = (float) 0, _tmp0_.x2 = (float) 0, _tmp0_.y2 = (float) 0, _tmp0_);
      child_box.x2 = (*box).x2 - (*box).x1;
      child_box.y2 = ((*box).y2 - (*box).y1) - 3;
      clutter_actor_allocate (self->priv->bg, &child_box, flags);
}


static void unity_places_views_group_label_real_map (ClutterActor* base) {
      UnityPlacesViewsGroupLabel * self;
      self = (UnityPlacesViewsGroupLabel*) base;
      CLUTTER_ACTOR_CLASS (unity_places_views_group_label_parent_class)->map ((ClutterActor*) CTK_TEXT (self));
      clutter_actor_map (self->priv->bg);
}


static void unity_places_views_group_label_real_unmap (ClutterActor* base) {
      UnityPlacesViewsGroupLabel * self;
      self = (UnityPlacesViewsGroupLabel*) base;
      CLUTTER_ACTOR_CLASS (unity_places_views_group_label_parent_class)->unmap ((ClutterActor*) CTK_TEXT (self));
      clutter_actor_unmap (self->priv->bg);
}


static void unity_places_views_group_label_real_show (ClutterActor* base) {
      UnityPlacesViewsGroupLabel * self;
      self = (UnityPlacesViewsGroupLabel*) base;
      CLUTTER_ACTOR_CLASS (unity_places_views_group_label_parent_class)->show ((ClutterActor*) CTK_TEXT (self));
      clutter_actor_show (self->priv->bg);
}


static void unity_places_views_group_label_real_hide (ClutterActor* base) {
      UnityPlacesViewsGroupLabel * self;
      self = (UnityPlacesViewsGroupLabel*) base;
      CLUTTER_ACTOR_CLASS (unity_places_views_group_label_parent_class)->hide ((ClutterActor*) CTK_TEXT (self));
      clutter_actor_hide (self->priv->bg);
}


static void unity_places_views_group_label_real_paint (ClutterActor* base) {
      UnityPlacesViewsGroupLabel * self;
      self = (UnityPlacesViewsGroupLabel*) base;
      clutter_actor_paint (self->priv->bg);
      CLUTTER_ACTOR_CLASS (unity_places_views_group_label_parent_class)->paint ((ClutterActor*) CTK_TEXT (self));
}


DeeModel* unity_places_views_group_label_get_model (UnityPlacesViewsGroupLabel* self) {
      DeeModel* result;
      g_return_val_if_fail (self != NULL, NULL);
      result = self->priv->_model;
      return result;
}


static void unity_places_views_group_label_set_model (UnityPlacesViewsGroupLabel* self, DeeModel* value) {
      g_return_if_fail (self != NULL);
      self->priv->_model = value;
      g_object_notify ((GObject *) self, "model");
}


DeeModelIter* unity_places_views_group_label_get_iter (UnityPlacesViewsGroupLabel* self) {
      DeeModelIter* result;
      g_return_val_if_fail (self != NULL, NULL);
      result = self->priv->_iter;
      return result;
}


static void unity_places_views_group_label_set_iter (UnityPlacesViewsGroupLabel* self, DeeModelIter* value) {
      g_return_if_fail (self != NULL);
      self->priv->_iter = value;
      g_object_notify ((GObject *) self, "iter");
}


static gpointer _g_object_ref0 (gpointer self) {
      return self ? g_object_ref (self) : NULL;
}


static GObject * unity_places_views_group_label_constructor (GType type, guint n_construct_properties, GObjectConstructParam * construct_properties) {
      GObject * obj;
      GObjectClass * parent_class;
      UnityPlacesViewsGroupLabel * self;
      parent_class = G_OBJECT_CLASS (unity_places_views_group_label_parent_class);
      obj = parent_class->constructor (type, n_construct_properties, construct_properties);
      self = UNITY_PLACES_VIEWS_GROUP_LABEL (obj);
      {
            ClutterColor _tmp3_ = {0};
            ClutterColor white;
            ClutterRectangle* rect;
            ClutterActor* _tmp4_;
            white = (_tmp3_.red = (guint8) 0xff, _tmp3_.green = (guint8) 0xff, _tmp3_.blue = (guint8) 0xff, _tmp3_.alpha = (guint8) 0x33, _tmp3_);
            rect = g_object_ref_sink ((ClutterRectangle*) clutter_rectangle_new_with_color (&white));
            self->priv->bg = (_tmp4_ = _g_object_ref0 (CLUTTER_ACTOR (rect)), _g_object_unref0 (self->priv->bg), _tmp4_);
            clutter_actor_set_parent (self->priv->bg, (ClutterActor*) self);
            clutter_actor_show (self->priv->bg);
            _g_object_unref0 (rect);
      }
      return obj;
}


static void unity_places_views_group_label_class_init (UnityPlacesViewsGroupLabelClass * klass) {
      unity_places_views_group_label_parent_class = g_type_class_peek_parent (klass);
      g_type_class_add_private (klass, sizeof (UnityPlacesViewsGroupLabelPrivate));
      CLUTTER_ACTOR_CLASS (klass)->allocate = unity_places_views_group_label_real_allocate;
      CLUTTER_ACTOR_CLASS (klass)->map = unity_places_views_group_label_real_map;
      CLUTTER_ACTOR_CLASS (klass)->unmap = unity_places_views_group_label_real_unmap;
      CLUTTER_ACTOR_CLASS (klass)->show = unity_places_views_group_label_real_show;
      CLUTTER_ACTOR_CLASS (klass)->hide = unity_places_views_group_label_real_hide;
      CLUTTER_ACTOR_CLASS (klass)->paint = unity_places_views_group_label_real_paint;
      G_OBJECT_CLASS (klass)->get_property = unity_places_views_group_label_get_property;
      G_OBJECT_CLASS (klass)->set_property = unity_places_views_group_label_set_property;
      G_OBJECT_CLASS (klass)->constructor = unity_places_views_group_label_constructor;
      G_OBJECT_CLASS (klass)->finalize = unity_places_views_group_label_finalize;
      g_object_class_install_property (G_OBJECT_CLASS (klass), UNITY_PLACES_VIEWS_GROUP_LABEL_MODEL, g_param_spec_object ("model", "model", "model", DEE_TYPE_MODEL, 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_PLACES_VIEWS_GROUP_LABEL_ITER, g_param_spec_pointer ("iter", "iter", "iter", G_PARAM_STATIC_NAME | G_PARAM_STATIC_NICK | G_PARAM_STATIC_BLURB | G_PARAM_READABLE | G_PARAM_WRITABLE | G_PARAM_CONSTRUCT_ONLY));
}


static void unity_places_views_group_label_instance_init (UnityPlacesViewsGroupLabel * self) {
      self->priv = UNITY_PLACES_VIEWS_GROUP_LABEL_GET_PRIVATE (self);
}


static void unity_places_views_group_label_finalize (GObject* obj) {
      UnityPlacesViewsGroupLabel * self;
      self = UNITY_PLACES_VIEWS_GROUP_LABEL (obj);
      _g_object_unref0 (self->priv->bg);
      G_OBJECT_CLASS (unity_places_views_group_label_parent_class)->finalize (obj);
}


GType unity_places_views_group_label_get_type (void) {
      static volatile gsize unity_places_views_group_label_type_id__volatile = 0;
      if (g_once_init_enter (&unity_places_views_group_label_type_id__volatile)) {
            static const GTypeInfo g_define_type_info = { sizeof (UnityPlacesViewsGroupLabelClass), (GBaseInitFunc) NULL, (GBaseFinalizeFunc) NULL, (GClassInitFunc) unity_places_views_group_label_class_init, (GClassFinalizeFunc) NULL, NULL, sizeof (UnityPlacesViewsGroupLabel), 0, (GInstanceInitFunc) unity_places_views_group_label_instance_init, NULL };
            GType unity_places_views_group_label_type_id;
            unity_places_views_group_label_type_id = g_type_register_static (CTK_TYPE_TEXT, "UnityPlacesViewsGroupLabel", &g_define_type_info, 0);
            g_once_init_leave (&unity_places_views_group_label_type_id__volatile, unity_places_views_group_label_type_id);
      }
      return unity_places_views_group_label_type_id__volatile;
}


static void unity_places_views_group_label_get_property (GObject * object, guint property_id, GValue * value, GParamSpec * pspec) {
      UnityPlacesViewsGroupLabel * self;
      self = UNITY_PLACES_VIEWS_GROUP_LABEL (object);
      switch (property_id) {
            case UNITY_PLACES_VIEWS_GROUP_LABEL_MODEL:
            g_value_set_object (value, unity_places_views_group_label_get_model (self));
            break;
            case UNITY_PLACES_VIEWS_GROUP_LABEL_ITER:
            g_value_set_pointer (value, unity_places_views_group_label_get_iter (self));
            break;
            default:
            G_OBJECT_WARN_INVALID_PROPERTY_ID (object, property_id, pspec);
            break;
      }
}


static void unity_places_views_group_label_set_property (GObject * object, guint property_id, const GValue * value, GParamSpec * pspec) {
      UnityPlacesViewsGroupLabel * self;
      self = UNITY_PLACES_VIEWS_GROUP_LABEL (object);
      switch (property_id) {
            case UNITY_PLACES_VIEWS_GROUP_LABEL_MODEL:
            unity_places_views_group_label_set_model (self, g_value_get_object (value));
            break;
            case UNITY_PLACES_VIEWS_GROUP_LABEL_ITER:
            unity_places_views_group_label_set_iter (self, g_value_get_pointer (value));
            break;
            default:
            G_OBJECT_WARN_INVALID_PROPERTY_ID (object, property_id, pspec);
            break;
      }
}





Generated by  Doxygen 1.6.0   Back to index