Back to index

libunity  5.92.0
protocol-previews.c
Go to the documentation of this file.
00001 /* protocol-previews.c generated by valac 0.17.2, the Vala compiler
00002  * generated from protocol-previews.vala, do not modify */
00003 
00004 /*
00005  * Copyright (C) 2012 Canonical, Ltd.
00006  *
00007  * This library is free software; you can redistribute it and/or modify
00008  * it under the terms of the GNU Lesser General Public License
00009  * version 3.0 as published by the Free Software Foundation.
00010  *
00011  * This library is distributed in the hope that it will be useful,
00012  * but WITHOUT ANY WARRANTY; without even the implied warranty of
00013  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
00014  * GNU Lesser General Public License version 3.0 for more details.
00015  *
00016  * You should have received a copy of the GNU Lesser General Public
00017  * License along with this library. If not, see
00018  * <http://www.gnu.org/licenses/>.
00019  *
00020  * Authored by Michal Hruby <michal.hruby@canonical.com>
00021  *
00022  */
00023 
00024 #include <glib.h>
00025 #include <glib-object.h>
00026 #include <stdlib.h>
00027 #include <string.h>
00028 #include <dee.h>
00029 #include <gio/gio.h>
00030 #include <float.h>
00031 #include <math.h>
00032 
00033 
00034 #define UNITY_PROTOCOL_TYPE_PREVIEW_RAW (unity_protocol_preview_raw_get_type ())
00035 
00036 #define UNITY_PROTOCOL_TYPE_PREVIEW_ACTION_RAW (unity_protocol_preview_action_raw_get_type ())
00037 typedef struct _UnityProtocolPreviewActionRaw UnityProtocolPreviewActionRaw;
00038 
00039 #define UNITY_PROTOCOL_TYPE_INFO_HINT_RAW (unity_protocol_info_hint_raw_get_type ())
00040 typedef struct _UnityProtocolInfoHintRaw UnityProtocolInfoHintRaw;
00041 typedef struct _UnityProtocolPreviewRaw UnityProtocolPreviewRaw;
00042 #define _g_free0(var) (var = (g_free (var), NULL))
00043 #define _g_hash_table_unref0(var) ((var == NULL) ? NULL : (var = (g_hash_table_unref (var), NULL)))
00044 
00045 #define UNITY_PROTOCOL_TYPE_LAYOUT_HINT (unity_protocol_layout_hint_get_type ())
00046 #define _g_variant_unref0(var) ((var == NULL) ? NULL : (var = (g_variant_unref (var), NULL)))
00047 
00048 #define UNITY_PROTOCOL_TYPE_PREVIEW (unity_protocol_preview_get_type ())
00049 #define UNITY_PROTOCOL_PREVIEW(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), UNITY_PROTOCOL_TYPE_PREVIEW, UnityProtocolPreview))
00050 #define UNITY_PROTOCOL_PREVIEW_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), UNITY_PROTOCOL_TYPE_PREVIEW, UnityProtocolPreviewClass))
00051 #define UNITY_PROTOCOL_IS_PREVIEW(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), UNITY_PROTOCOL_TYPE_PREVIEW))
00052 #define UNITY_PROTOCOL_IS_PREVIEW_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), UNITY_PROTOCOL_TYPE_PREVIEW))
00053 #define UNITY_PROTOCOL_PREVIEW_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), UNITY_PROTOCOL_TYPE_PREVIEW, UnityProtocolPreviewClass))
00054 
00055 typedef struct _UnityProtocolPreview UnityProtocolPreview;
00056 typedef struct _UnityProtocolPreviewClass UnityProtocolPreviewClass;
00057 typedef struct _UnityProtocolPreviewPrivate UnityProtocolPreviewPrivate;
00058 #define _g_object_unref0(var) ((var == NULL) ? NULL : (var = (g_object_unref (var), NULL)))
00059 #define _unity_protocol_preview_action_raw_free0(var) ((var == NULL) ? NULL : (var = (unity_protocol_preview_action_raw_free (var), NULL)))
00060 #define _unity_protocol_info_hint_raw_free0(var) ((var == NULL) ? NULL : (var = (unity_protocol_info_hint_raw_free (var), NULL)))
00061 #define _g_error_free0(var) ((var == NULL) ? NULL : (var = (g_error_free (var), NULL)))
00062 
00063 #define UNITY_PROTOCOL_TYPE_GENERIC_PREVIEW (unity_protocol_generic_preview_get_type ())
00064 #define UNITY_PROTOCOL_GENERIC_PREVIEW(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), UNITY_PROTOCOL_TYPE_GENERIC_PREVIEW, UnityProtocolGenericPreview))
00065 #define UNITY_PROTOCOL_GENERIC_PREVIEW_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), UNITY_PROTOCOL_TYPE_GENERIC_PREVIEW, UnityProtocolGenericPreviewClass))
00066 #define UNITY_PROTOCOL_IS_GENERIC_PREVIEW(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), UNITY_PROTOCOL_TYPE_GENERIC_PREVIEW))
00067 #define UNITY_PROTOCOL_IS_GENERIC_PREVIEW_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), UNITY_PROTOCOL_TYPE_GENERIC_PREVIEW))
00068 #define UNITY_PROTOCOL_GENERIC_PREVIEW_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), UNITY_PROTOCOL_TYPE_GENERIC_PREVIEW, UnityProtocolGenericPreviewClass))
00069 
00070 typedef struct _UnityProtocolGenericPreview UnityProtocolGenericPreview;
00071 typedef struct _UnityProtocolGenericPreviewClass UnityProtocolGenericPreviewClass;
00072 #define _g_type_class_unref0(var) ((var == NULL) ? NULL : (var = (g_type_class_unref (var), NULL)))
00073 
00074 #define UNITY_PROTOCOL_TYPE_APPLICATION_PREVIEW (unity_protocol_application_preview_get_type ())
00075 #define UNITY_PROTOCOL_APPLICATION_PREVIEW(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), UNITY_PROTOCOL_TYPE_APPLICATION_PREVIEW, UnityProtocolApplicationPreview))
00076 #define UNITY_PROTOCOL_APPLICATION_PREVIEW_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), UNITY_PROTOCOL_TYPE_APPLICATION_PREVIEW, UnityProtocolApplicationPreviewClass))
00077 #define UNITY_PROTOCOL_IS_APPLICATION_PREVIEW(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), UNITY_PROTOCOL_TYPE_APPLICATION_PREVIEW))
00078 #define UNITY_PROTOCOL_IS_APPLICATION_PREVIEW_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), UNITY_PROTOCOL_TYPE_APPLICATION_PREVIEW))
00079 #define UNITY_PROTOCOL_APPLICATION_PREVIEW_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), UNITY_PROTOCOL_TYPE_APPLICATION_PREVIEW, UnityProtocolApplicationPreviewClass))
00080 
00081 typedef struct _UnityProtocolApplicationPreview UnityProtocolApplicationPreview;
00082 typedef struct _UnityProtocolApplicationPreviewClass UnityProtocolApplicationPreviewClass;
00083 
00084 #define UNITY_PROTOCOL_TYPE_MUSIC_PREVIEW (unity_protocol_music_preview_get_type ())
00085 #define UNITY_PROTOCOL_MUSIC_PREVIEW(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), UNITY_PROTOCOL_TYPE_MUSIC_PREVIEW, UnityProtocolMusicPreview))
00086 #define UNITY_PROTOCOL_MUSIC_PREVIEW_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), UNITY_PROTOCOL_TYPE_MUSIC_PREVIEW, UnityProtocolMusicPreviewClass))
00087 #define UNITY_PROTOCOL_IS_MUSIC_PREVIEW(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), UNITY_PROTOCOL_TYPE_MUSIC_PREVIEW))
00088 #define UNITY_PROTOCOL_IS_MUSIC_PREVIEW_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), UNITY_PROTOCOL_TYPE_MUSIC_PREVIEW))
00089 #define UNITY_PROTOCOL_MUSIC_PREVIEW_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), UNITY_PROTOCOL_TYPE_MUSIC_PREVIEW, UnityProtocolMusicPreviewClass))
00090 
00091 typedef struct _UnityProtocolMusicPreview UnityProtocolMusicPreview;
00092 typedef struct _UnityProtocolMusicPreviewClass UnityProtocolMusicPreviewClass;
00093 
00094 #define UNITY_PROTOCOL_TYPE_MOVIE_PREVIEW (unity_protocol_movie_preview_get_type ())
00095 #define UNITY_PROTOCOL_MOVIE_PREVIEW(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), UNITY_PROTOCOL_TYPE_MOVIE_PREVIEW, UnityProtocolMoviePreview))
00096 #define UNITY_PROTOCOL_MOVIE_PREVIEW_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), UNITY_PROTOCOL_TYPE_MOVIE_PREVIEW, UnityProtocolMoviePreviewClass))
00097 #define UNITY_PROTOCOL_IS_MOVIE_PREVIEW(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), UNITY_PROTOCOL_TYPE_MOVIE_PREVIEW))
00098 #define UNITY_PROTOCOL_IS_MOVIE_PREVIEW_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), UNITY_PROTOCOL_TYPE_MOVIE_PREVIEW))
00099 #define UNITY_PROTOCOL_MOVIE_PREVIEW_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), UNITY_PROTOCOL_TYPE_MOVIE_PREVIEW, UnityProtocolMoviePreviewClass))
00100 
00101 typedef struct _UnityProtocolMoviePreview UnityProtocolMoviePreview;
00102 typedef struct _UnityProtocolMoviePreviewClass UnityProtocolMoviePreviewClass;
00103 
00104 #define UNITY_PROTOCOL_TYPE_SERIES_PREVIEW (unity_protocol_series_preview_get_type ())
00105 #define UNITY_PROTOCOL_SERIES_PREVIEW(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), UNITY_PROTOCOL_TYPE_SERIES_PREVIEW, UnityProtocolSeriesPreview))
00106 #define UNITY_PROTOCOL_SERIES_PREVIEW_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), UNITY_PROTOCOL_TYPE_SERIES_PREVIEW, UnityProtocolSeriesPreviewClass))
00107 #define UNITY_PROTOCOL_IS_SERIES_PREVIEW(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), UNITY_PROTOCOL_TYPE_SERIES_PREVIEW))
00108 #define UNITY_PROTOCOL_IS_SERIES_PREVIEW_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), UNITY_PROTOCOL_TYPE_SERIES_PREVIEW))
00109 #define UNITY_PROTOCOL_SERIES_PREVIEW_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), UNITY_PROTOCOL_TYPE_SERIES_PREVIEW, UnityProtocolSeriesPreviewClass))
00110 
00111 typedef struct _UnityProtocolSeriesPreview UnityProtocolSeriesPreview;
00112 typedef struct _UnityProtocolSeriesPreviewClass UnityProtocolSeriesPreviewClass;
00113 #define _unity_protocol_preview_raw_free0(var) ((var == NULL) ? NULL : (var = (unity_protocol_preview_raw_free (var), NULL)))
00114 typedef struct _UnityProtocolGenericPreviewPrivate UnityProtocolGenericPreviewPrivate;
00115 #define _g_variant_type_free0(var) ((var == NULL) ? NULL : (var = (g_variant_type_free (var), NULL)))
00116 typedef struct _UnityProtocolApplicationPreviewPrivate UnityProtocolApplicationPreviewPrivate;
00117 typedef struct _Block1Data Block1Data;
00118 typedef struct _UnityProtocolMusicPreviewPrivate UnityProtocolMusicPreviewPrivate;
00119 typedef struct _Block2Data Block2Data;
00120 typedef struct _UnityProtocolMoviePreviewPrivate UnityProtocolMoviePreviewPrivate;
00121 typedef struct _Block3Data Block3Data;
00122 
00123 #define UNITY_PROTOCOL_TYPE_SERIES_ITEM_RAW (unity_protocol_series_item_raw_get_type ())
00124 typedef struct _UnityProtocolSeriesItemRaw UnityProtocolSeriesItemRaw;
00125 typedef struct _UnityProtocolSeriesPreviewPrivate UnityProtocolSeriesPreviewPrivate;
00126 #define _unity_protocol_series_item_raw_free0(var) ((var == NULL) ? NULL : (var = (unity_protocol_series_item_raw_free (var), NULL)))
00127 typedef struct _Block4Data Block4Data;
00128 
00129 struct _UnityProtocolPreviewActionRaw {
00130        gchar* id;
00131        gchar* display_name;
00132        gchar* icon_hint;
00133        guint layout_hint;
00134        GHashTable* hints;
00135 };
00136 
00137 struct _UnityProtocolInfoHintRaw {
00138        gchar* id;
00139        gchar* display_name;
00140        gchar* icon_hint;
00141        GVariant* value;
00142 };
00143 
00144 struct _UnityProtocolPreviewRaw {
00145        gchar* renderer_name;
00146        gchar* title;
00147        gchar* subtitle;
00148        gchar* description;
00149        gchar* thumbnail_hint;
00150        UnityProtocolPreviewActionRaw* actions;
00151        gint actions_length1;
00152        gint _actions_size_;
00153        UnityProtocolInfoHintRaw* info_hints;
00154        gint info_hints_length1;
00155        gint _info_hints_size_;
00156        GHashTable* hints;
00157 };
00158 
00159 typedef enum  {
00160        UNITY_PROTOCOL_LAYOUT_HINT_NONE,
00161        UNITY_PROTOCOL_LAYOUT_HINT_LEFT,
00162        UNITY_PROTOCOL_LAYOUT_HINT_RIGHT,
00163        UNITY_PROTOCOL_LAYOUT_HINT_TOP,
00164        UNITY_PROTOCOL_LAYOUT_HINT_BOTTOM
00165 } UnityProtocolLayoutHint;
00166 
00167 struct _UnityProtocolPreview {
00168        GObject parent_instance;
00169        UnityProtocolPreviewPrivate * priv;
00170 };
00171 
00172 struct _UnityProtocolPreviewClass {
00173        GObjectClass parent_class;
00174        void (*begin_updates) (UnityProtocolPreview* self);
00175        GHashTable* (*end_updates_as_hashtable) (UnityProtocolPreview* self);
00176        GVariant* (*end_updates) (UnityProtocolPreview* self);
00177        const gchar* (*get_renderer_name) (UnityProtocolPreview* self);
00178        void (*update_property) (UnityProtocolPreview* self, GHashTable* properties);
00179        void (*add_properties) (UnityProtocolPreview* self, GHashTable* properties);
00180 };
00181 
00182 struct _UnityProtocolPreviewPrivate {
00183        gchar* _title;
00184        gchar* _subtitle;
00185        gchar* _description;
00186        GIcon* _thumbnail;
00187        UnityProtocolPreviewRaw _raw;
00188        UnityProtocolPreviewActionRaw* _actions_raw;
00189        gint _actions_raw_length1;
00190        gint __actions_raw_size_;
00191        UnityProtocolInfoHintRaw* _info_hints;
00192        gint _info_hints_length1;
00193        gint __info_hints_size_;
00194        GHashTable* _updates;
00195 };
00196 
00197 struct _UnityProtocolGenericPreview {
00198        UnityProtocolPreview parent_instance;
00199        UnityProtocolGenericPreviewPrivate * priv;
00200 };
00201 
00202 struct _UnityProtocolGenericPreviewClass {
00203        UnityProtocolPreviewClass parent_class;
00204 };
00205 
00206 struct _UnityProtocolApplicationPreview {
00207        UnityProtocolPreview parent_instance;
00208        UnityProtocolApplicationPreviewPrivate * priv;
00209 };
00210 
00211 struct _UnityProtocolApplicationPreviewClass {
00212        UnityProtocolPreviewClass parent_class;
00213 };
00214 
00215 struct _UnityProtocolApplicationPreviewPrivate {
00216        GIcon* _app_icon;
00217        gchar* _license;
00218        gchar* _copyright;
00219        gchar* _last_update;
00220        gfloat _rating;
00221        guint _num_ratings;
00222 };
00223 
00224 struct _Block1Data {
00225        int _ref_count_;
00226        UnityProtocolApplicationPreview* _result_;
00227 };
00228 
00229 struct _UnityProtocolMusicPreview {
00230        UnityProtocolPreview parent_instance;
00231        UnityProtocolMusicPreviewPrivate * priv;
00232 };
00233 
00234 struct _UnityProtocolMusicPreviewClass {
00235        UnityProtocolPreviewClass parent_class;
00236 };
00237 
00238 struct _UnityProtocolMusicPreviewPrivate {
00239        gchar* _track_data_swarm_name;
00240        gchar* _track_data_address;
00241 };
00242 
00243 struct _Block2Data {
00244        int _ref_count_;
00245        UnityProtocolMusicPreview* _result_;
00246 };
00247 
00248 struct _UnityProtocolMoviePreview {
00249        UnityProtocolPreview parent_instance;
00250        UnityProtocolMoviePreviewPrivate * priv;
00251 };
00252 
00253 struct _UnityProtocolMoviePreviewClass {
00254        UnityProtocolPreviewClass parent_class;
00255 };
00256 
00257 struct _UnityProtocolMoviePreviewPrivate {
00258        gchar* _year;
00259        gfloat _rating;
00260        guint _num_ratings;
00261 };
00262 
00263 struct _Block3Data {
00264        int _ref_count_;
00265        UnityProtocolMoviePreview* _result_;
00266 };
00267 
00268 struct _UnityProtocolSeriesItemRaw {
00269        gchar* uri;
00270        gchar* title;
00271        gchar* icon_hint;
00272 };
00273 
00274 struct _UnityProtocolSeriesPreview {
00275        UnityProtocolPreview parent_instance;
00276        UnityProtocolSeriesPreviewPrivate * priv;
00277 };
00278 
00279 struct _UnityProtocolSeriesPreviewClass {
00280        UnityProtocolPreviewClass parent_class;
00281 };
00282 
00283 struct _UnityProtocolSeriesPreviewPrivate {
00284        gint _selected_item;
00285        UnityProtocolPreview* _child_preview;
00286        UnityProtocolSeriesItemRaw* _items;
00287        gint _items_length1;
00288        gint __items_size_;
00289        gulong _selected_item_sig_id;
00290 };
00291 
00292 struct _Block4Data {
00293        int _ref_count_;
00294        UnityProtocolSeriesPreview* _result_;
00295 };
00296 
00297 
00298 static gpointer unity_protocol_preview_parent_class = NULL;
00299 static gboolean unity_protocol_preview_parsers_registered;
00300 static gboolean unity_protocol_preview_parsers_registered = FALSE;
00301 static DeeSerializableIface* unity_protocol_preview_dee_serializable_parent_iface = NULL;
00302 static gpointer unity_protocol_generic_preview_parent_class = NULL;
00303 static gpointer unity_protocol_application_preview_parent_class = NULL;
00304 static gpointer unity_protocol_music_preview_parent_class = NULL;
00305 static gpointer unity_protocol_movie_preview_parent_class = NULL;
00306 static gpointer unity_protocol_series_preview_parent_class = NULL;
00307 
00308 GType unity_protocol_preview_raw_get_type (void) G_GNUC_CONST;
00309 GType unity_protocol_preview_action_raw_get_type (void) G_GNUC_CONST;
00310 UnityProtocolPreviewActionRaw* unity_protocol_preview_action_raw_dup (const UnityProtocolPreviewActionRaw* self);
00311 void unity_protocol_preview_action_raw_free (UnityProtocolPreviewActionRaw* self);
00312 void unity_protocol_preview_action_raw_copy (const UnityProtocolPreviewActionRaw* self, UnityProtocolPreviewActionRaw* dest);
00313 void unity_protocol_preview_action_raw_destroy (UnityProtocolPreviewActionRaw* self);
00314 GType unity_protocol_info_hint_raw_get_type (void) G_GNUC_CONST;
00315 UnityProtocolInfoHintRaw* unity_protocol_info_hint_raw_dup (const UnityProtocolInfoHintRaw* self);
00316 void unity_protocol_info_hint_raw_free (UnityProtocolInfoHintRaw* self);
00317 void unity_protocol_info_hint_raw_copy (const UnityProtocolInfoHintRaw* self, UnityProtocolInfoHintRaw* dest);
00318 void unity_protocol_info_hint_raw_destroy (UnityProtocolInfoHintRaw* self);
00319 UnityProtocolPreviewRaw* unity_protocol_preview_raw_dup (const UnityProtocolPreviewRaw* self);
00320 void unity_protocol_preview_raw_free (UnityProtocolPreviewRaw* self);
00321 void unity_protocol_preview_raw_copy (const UnityProtocolPreviewRaw* self, UnityProtocolPreviewRaw* dest);
00322 void unity_protocol_preview_raw_destroy (UnityProtocolPreviewRaw* self);
00323 static void _vala_UnityProtocolPreviewActionRaw_array_free (UnityProtocolPreviewActionRaw* array, gint array_length);
00324 static void _vala_UnityProtocolInfoHintRaw_array_free (UnityProtocolInfoHintRaw* array, gint array_length);
00325 #define UNITY_PROTOCOL_PREVIEW_RAW_SIGNATURE "(sssssa(sssua{sv})a(sssv)a{sv})"
00326 void unity_protocol_preview_raw_init (UnityProtocolPreviewRaw *self);
00327 static void _g_free0_ (gpointer var);
00328 static void _g_variant_unref0_ (gpointer var);
00329 UnityProtocolPreviewRaw* unity_protocol_preview_raw_from_variant (GVariant* v);
00330 static void _variant_get1 (GVariant* value, UnityProtocolPreviewRaw* result);
00331 GVariant* unity_protocol_preview_raw_to_variant (UnityProtocolPreviewRaw *self);
00332 static GVariant* _variant_new2 (UnityProtocolPreviewRaw value);
00333 static UnityProtocolPreviewActionRaw* _vala_array_dup1 (UnityProtocolPreviewActionRaw* self, int length);
00334 static UnityProtocolInfoHintRaw* _vala_array_dup2 (UnityProtocolInfoHintRaw* self, int length);
00335 GType unity_protocol_layout_hint_get_type (void) G_GNUC_CONST;
00336 void unity_protocol_preview_action_raw_init (UnityProtocolPreviewActionRaw *self);
00337 UnityProtocolPreviewActionRaw* unity_protocol_preview_action_raw_from_variant (GVariant* v);
00338 static void _variant_get3 (GVariant* value, UnityProtocolPreviewActionRaw* result);
00339 GVariant* unity_protocol_preview_action_raw_to_variant (UnityProtocolPreviewActionRaw *self);
00340 static GVariant* _variant_new4 (UnityProtocolPreviewActionRaw value);
00341 GType unity_protocol_preview_get_type (void) G_GNUC_CONST;
00342 #define UNITY_PROTOCOL_PREVIEW_GET_PRIVATE(o) (G_TYPE_INSTANCE_GET_PRIVATE ((o), UNITY_PROTOCOL_TYPE_PREVIEW, UnityProtocolPreviewPrivate))
00343 enum  {
00344        UNITY_PROTOCOL_PREVIEW_DUMMY_PROPERTY,
00345        UNITY_PROTOCOL_PREVIEW_TITLE,
00346        UNITY_PROTOCOL_PREVIEW_SUBTITLE,
00347        UNITY_PROTOCOL_PREVIEW_DESCRIPTION,
00348        UNITY_PROTOCOL_PREVIEW_THUMBNAIL
00349 };
00350 void unity_protocol_preview_begin_updates (UnityProtocolPreview* self);
00351 static void unity_protocol_preview_real_begin_updates (UnityProtocolPreview* self);
00352 GHashTable* unity_protocol_preview_end_updates_as_hashtable (UnityProtocolPreview* self);
00353 static GHashTable* unity_protocol_preview_real_end_updates_as_hashtable (UnityProtocolPreview* self);
00354 GVariant* unity_protocol_preview_end_updates (UnityProtocolPreview* self);
00355 static GVariant* unity_protocol_preview_real_end_updates (UnityProtocolPreview* self);
00356 static GVariant* _variant_new5 (GHashTable* value);
00357 void unity_protocol_preview_add_action (UnityProtocolPreview* self, const gchar* id, const gchar* display_name, GIcon* icon, guint layout_hint);
00358 static void _vala_array_add1 (UnityProtocolPreviewActionRaw** array, int* length, int* size, const UnityProtocolPreviewActionRaw* value);
00359 UnityProtocolPreviewActionRaw* unity_protocol_preview_get_actions (UnityProtocolPreview* self, int* result_length1);
00360 void unity_protocol_preview_add_info_hint (UnityProtocolPreview* self, const gchar* id, const gchar* display_name, GIcon* icon_hint, GVariant* value);
00361 static void _vala_array_add2 (UnityProtocolInfoHintRaw** array, int* length, int* size, const UnityProtocolInfoHintRaw* value);
00362 const gchar* unity_protocol_preview_get_renderer_name (UnityProtocolPreview* self);
00363 static const gchar* unity_protocol_preview_real_get_renderer_name (UnityProtocolPreview* self);
00364 UnityProtocolInfoHintRaw* unity_protocol_preview_get_info_hints (UnityProtocolPreview* self, int* result_length1);
00365 void unity_protocol_preview_update_property (UnityProtocolPreview* self, GHashTable* properties);
00366 static void unity_protocol_preview_real_update_property (UnityProtocolPreview* self, GHashTable* properties);
00367 void unity_protocol_preview_add_properties (UnityProtocolPreview* self, GHashTable* properties);
00368 static void unity_protocol_preview_real_add_properties (UnityProtocolPreview* self, GHashTable* properties);
00369 void unity_protocol_preview_add_update (UnityProtocolPreview* self, const gchar* property, GVariant* value);
00370 GHashTable* unity_protocol_preview_get_properties (UnityProtocolPreview* self);
00371 static GVariant* unity_protocol_preview_real_serialize (DeeSerializable* base);
00372 const gchar* unity_protocol_preview_get_title (UnityProtocolPreview* self);
00373 const gchar* unity_protocol_preview_get_subtitle (UnityProtocolPreview* self);
00374 const gchar* unity_protocol_preview_get_description (UnityProtocolPreview* self);
00375 GIcon* unity_protocol_preview_get_thumbnail (UnityProtocolPreview* self);
00376 static UnityProtocolPreviewActionRaw* _vala_array_dup3 (UnityProtocolPreviewActionRaw* self, int length);
00377 static UnityProtocolInfoHintRaw* _vala_array_dup4 (UnityProtocolInfoHintRaw* self, int length);
00378 GIcon* unity_protocol_preview_string_to_icon (const gchar* s);
00379 GIcon* unity_protocol_preview_variant_to_icon (GVariant* v);
00380 static void unity_protocol_preview_register_parsers (void);
00381 GType unity_protocol_generic_preview_get_type (void) G_GNUC_CONST;
00382 GType unity_protocol_application_preview_get_type (void) G_GNUC_CONST;
00383 GType unity_protocol_music_preview_get_type (void) G_GNUC_CONST;
00384 GType unity_protocol_movie_preview_get_type (void) G_GNUC_CONST;
00385 GType unity_protocol_series_preview_get_type (void) G_GNUC_CONST;
00386 UnityProtocolPreview* unity_protocol_preview_parse (GVariant* data);
00387 #define UNITY_PROTOCOL_GENERIC_PREVIEW_RENDERER_NAME "preview-generic"
00388 #define UNITY_PROTOCOL_APPLICATION_PREVIEW_RENDERER_NAME "preview-application"
00389 #define UNITY_PROTOCOL_MUSIC_PREVIEW_RENDERER_NAME "preview-music"
00390 #define UNITY_PROTOCOL_MOVIE_PREVIEW_RENDERER_NAME "preview-movie"
00391 #define UNITY_PROTOCOL_SERIES_PREVIEW_RENDERER_NAME "preview-series"
00392 gpointer unity_protocol_preview_deserialize (GType t_type, GBoxedCopyFunc t_dup_func, GDestroyNotify t_destroy_func, GVariant* data, GHashTable** out_properties);
00393 void unity_protocol_preview_set_title (UnityProtocolPreview* self, const gchar* value);
00394 void unity_protocol_preview_set_subtitle (UnityProtocolPreview* self, const gchar* value);
00395 void unity_protocol_preview_set_description (UnityProtocolPreview* self, const gchar* value);
00396 void unity_protocol_preview_set_thumbnail (UnityProtocolPreview* self, GIcon* value);
00397 void unity_protocol_preview_checked_set (GVariant* v, GFunc f, void* f_target);
00398 UnityProtocolPreview* unity_protocol_preview_construct (GType object_type);
00399 static void unity_protocol_preview_finalize (GObject* obj);
00400 static void _vala_unity_protocol_preview_get_property (GObject * object, guint property_id, GValue * value, GParamSpec * pspec);
00401 static void _vala_unity_protocol_preview_set_property (GObject * object, guint property_id, const GValue * value, GParamSpec * pspec);
00402 enum  {
00403        UNITY_PROTOCOL_GENERIC_PREVIEW_DUMMY_PROPERTY
00404 };
00405 UnityProtocolGenericPreview* unity_protocol_generic_preview_new (void);
00406 UnityProtocolGenericPreview* unity_protocol_generic_preview_construct (GType object_type);
00407 static const gchar* unity_protocol_generic_preview_real_get_renderer_name (UnityProtocolPreview* base);
00408 static GObject* _unity_protocol_generic_preview___lambda2_ (GVariant* data);
00409 static GObject* __unity_protocol_generic_preview___lambda2__dee_serializable_parse_func (GVariant* data);
00410 #define UNITY_PROTOCOL_APPLICATION_PREVIEW_GET_PRIVATE(o) (G_TYPE_INSTANCE_GET_PRIVATE ((o), UNITY_PROTOCOL_TYPE_APPLICATION_PREVIEW, UnityProtocolApplicationPreviewPrivate))
00411 enum  {
00412        UNITY_PROTOCOL_APPLICATION_PREVIEW_DUMMY_PROPERTY,
00413        UNITY_PROTOCOL_APPLICATION_PREVIEW_APP_ICON,
00414        UNITY_PROTOCOL_APPLICATION_PREVIEW_LICENSE,
00415        UNITY_PROTOCOL_APPLICATION_PREVIEW_COPYRIGHT,
00416        UNITY_PROTOCOL_APPLICATION_PREVIEW_LAST_UPDATE,
00417        UNITY_PROTOCOL_APPLICATION_PREVIEW_RATING,
00418        UNITY_PROTOCOL_APPLICATION_PREVIEW_NUM_RATINGS
00419 };
00420 UnityProtocolApplicationPreview* unity_protocol_application_preview_new (void);
00421 UnityProtocolApplicationPreview* unity_protocol_application_preview_construct (GType object_type);
00422 static const gchar* unity_protocol_application_preview_real_get_renderer_name (UnityProtocolPreview* base);
00423 static void unity_protocol_application_preview_real_add_properties (UnityProtocolPreview* base, GHashTable* properties);
00424 GIcon* unity_protocol_application_preview_get_app_icon (UnityProtocolApplicationPreview* self);
00425 static GVariant* _variant_new6 (gchar* value);
00426 const gchar* unity_protocol_application_preview_get_license (UnityProtocolApplicationPreview* self);
00427 static GVariant* _variant_new7 (const gchar* value);
00428 const gchar* unity_protocol_application_preview_get_copyright (UnityProtocolApplicationPreview* self);
00429 static GVariant* _variant_new8 (const gchar* value);
00430 const gchar* unity_protocol_application_preview_get_last_update (UnityProtocolApplicationPreview* self);
00431 static GVariant* _variant_new9 (const gchar* value);
00432 gfloat unity_protocol_application_preview_get_rating (UnityProtocolApplicationPreview* self);
00433 static GVariant* _variant_new10 (gdouble value);
00434 guint unity_protocol_application_preview_get_num_ratings (UnityProtocolApplicationPreview* self);
00435 static GVariant* _variant_new11 (guint value);
00436 void unity_protocol_application_preview_set_app_icon (UnityProtocolApplicationPreview* self, GIcon* value);
00437 void unity_protocol_application_preview_set_license (UnityProtocolApplicationPreview* self, const gchar* value);
00438 void unity_protocol_application_preview_set_copyright (UnityProtocolApplicationPreview* self, const gchar* value);
00439 void unity_protocol_application_preview_set_last_update (UnityProtocolApplicationPreview* self, const gchar* value);
00440 void unity_protocol_application_preview_set_rating (UnityProtocolApplicationPreview* self, gfloat value);
00441 void unity_protocol_application_preview_set_num_ratings (UnityProtocolApplicationPreview* self, guint value);
00442 static GObject* _unity_protocol_application_preview___lambda3_ (GVariant* data);
00443 static Block1Data* block1_data_ref (Block1Data* _data1_);
00444 static void block1_data_unref (void * _userdata_);
00445 static void __lambda4_ (Block1Data* _data1_, GVariant* v);
00446 static void ___lambda4__gfunc (gconstpointer data, gpointer self);
00447 static void __lambda5_ (Block1Data* _data1_, GVariant* v);
00448 static void ___lambda5__gfunc (gconstpointer data, gpointer self);
00449 static void __lambda6_ (Block1Data* _data1_, GVariant* v);
00450 static void ___lambda6__gfunc (gconstpointer data, gpointer self);
00451 static void __lambda7_ (Block1Data* _data1_, GVariant* v);
00452 static void ___lambda7__gfunc (gconstpointer data, gpointer self);
00453 static void __lambda8_ (Block1Data* _data1_, GVariant* v);
00454 static void ___lambda8__gfunc (gconstpointer data, gpointer self);
00455 static void __lambda9_ (Block1Data* _data1_, GVariant* v);
00456 static void ___lambda9__gfunc (gconstpointer data, gpointer self);
00457 static GObject* __unity_protocol_application_preview___lambda3__dee_serializable_parse_func (GVariant* data);
00458 static void unity_protocol_application_preview_finalize (GObject* obj);
00459 static void _vala_unity_protocol_application_preview_get_property (GObject * object, guint property_id, GValue * value, GParamSpec * pspec);
00460 static void _vala_unity_protocol_application_preview_set_property (GObject * object, guint property_id, const GValue * value, GParamSpec * pspec);
00461 #define UNITY_PROTOCOL_MUSIC_PREVIEW_GET_PRIVATE(o) (G_TYPE_INSTANCE_GET_PRIVATE ((o), UNITY_PROTOCOL_TYPE_MUSIC_PREVIEW, UnityProtocolMusicPreviewPrivate))
00462 enum  {
00463        UNITY_PROTOCOL_MUSIC_PREVIEW_DUMMY_PROPERTY,
00464        UNITY_PROTOCOL_MUSIC_PREVIEW_TRACK_DATA_SWARM_NAME,
00465        UNITY_PROTOCOL_MUSIC_PREVIEW_TRACK_DATA_ADDRESS
00466 };
00467 UnityProtocolMusicPreview* unity_protocol_music_preview_new (void);
00468 UnityProtocolMusicPreview* unity_protocol_music_preview_construct (GType object_type);
00469 static const gchar* unity_protocol_music_preview_real_get_renderer_name (UnityProtocolPreview* base);
00470 static void unity_protocol_music_preview_real_add_properties (UnityProtocolPreview* base, GHashTable* properties);
00471 const gchar* unity_protocol_music_preview_get_track_data_swarm_name (UnityProtocolMusicPreview* self);
00472 static GVariant* _variant_new12 (const gchar* value);
00473 const gchar* unity_protocol_music_preview_get_track_data_address (UnityProtocolMusicPreview* self);
00474 static GVariant* _variant_new13 (const gchar* value);
00475 void unity_protocol_music_preview_play_uri (UnityProtocolMusicPreview* self, const gchar* uri);
00476 static GVariant* _variant_new14 (const gchar* value);
00477 static GVariant* _variant_new15 (const gchar* value);
00478 void unity_protocol_music_preview_pause_uri (UnityProtocolMusicPreview* self, const gchar* uri);
00479 static GVariant* _variant_new16 (const gchar* value);
00480 static GVariant* _variant_new17 (const gchar* value);
00481 void unity_protocol_music_preview_set_track_data_swarm_name (UnityProtocolMusicPreview* self, const gchar* value);
00482 void unity_protocol_music_preview_set_track_data_address (UnityProtocolMusicPreview* self, const gchar* value);
00483 static GObject* _unity_protocol_music_preview___lambda10_ (GVariant* data);
00484 static Block2Data* block2_data_ref (Block2Data* _data2_);
00485 static void block2_data_unref (void * _userdata_);
00486 static void __lambda11_ (Block2Data* _data2_, GVariant* v);
00487 static void ___lambda11__gfunc (gconstpointer data, gpointer self);
00488 static void __lambda12_ (Block2Data* _data2_, GVariant* v);
00489 static void ___lambda12__gfunc (gconstpointer data, gpointer self);
00490 static GObject* __unity_protocol_music_preview___lambda10__dee_serializable_parse_func (GVariant* data);
00491 static void unity_protocol_music_preview_finalize (GObject* obj);
00492 static void _vala_unity_protocol_music_preview_get_property (GObject * object, guint property_id, GValue * value, GParamSpec * pspec);
00493 static void _vala_unity_protocol_music_preview_set_property (GObject * object, guint property_id, const GValue * value, GParamSpec * pspec);
00494 #define UNITY_PROTOCOL_MOVIE_PREVIEW_GET_PRIVATE(o) (G_TYPE_INSTANCE_GET_PRIVATE ((o), UNITY_PROTOCOL_TYPE_MOVIE_PREVIEW, UnityProtocolMoviePreviewPrivate))
00495 enum  {
00496        UNITY_PROTOCOL_MOVIE_PREVIEW_DUMMY_PROPERTY,
00497        UNITY_PROTOCOL_MOVIE_PREVIEW_YEAR,
00498        UNITY_PROTOCOL_MOVIE_PREVIEW_RATING,
00499        UNITY_PROTOCOL_MOVIE_PREVIEW_NUM_RATINGS
00500 };
00501 UnityProtocolMoviePreview* unity_protocol_movie_preview_new (void);
00502 UnityProtocolMoviePreview* unity_protocol_movie_preview_construct (GType object_type);
00503 static const gchar* unity_protocol_movie_preview_real_get_renderer_name (UnityProtocolPreview* base);
00504 static void unity_protocol_movie_preview_real_add_properties (UnityProtocolPreview* base, GHashTable* properties);
00505 gfloat unity_protocol_movie_preview_get_rating (UnityProtocolMoviePreview* self);
00506 static GVariant* _variant_new18 (gdouble value);
00507 guint unity_protocol_movie_preview_get_num_ratings (UnityProtocolMoviePreview* self);
00508 static GVariant* _variant_new19 (guint value);
00509 const gchar* unity_protocol_movie_preview_get_year (UnityProtocolMoviePreview* self);
00510 static GVariant* _variant_new20 (const gchar* value);
00511 void unity_protocol_movie_preview_set_year (UnityProtocolMoviePreview* self, const gchar* value);
00512 void unity_protocol_movie_preview_set_rating (UnityProtocolMoviePreview* self, gfloat value);
00513 void unity_protocol_movie_preview_set_num_ratings (UnityProtocolMoviePreview* self, guint value);
00514 static GObject* _unity_protocol_movie_preview___lambda13_ (GVariant* data);
00515 static Block3Data* block3_data_ref (Block3Data* _data3_);
00516 static void block3_data_unref (void * _userdata_);
00517 static void __lambda14_ (Block3Data* _data3_, GVariant* v);
00518 static void ___lambda14__gfunc (gconstpointer data, gpointer self);
00519 static void __lambda15_ (Block3Data* _data3_, GVariant* v);
00520 static void ___lambda15__gfunc (gconstpointer data, gpointer self);
00521 static void __lambda16_ (Block3Data* _data3_, GVariant* v);
00522 static void ___lambda16__gfunc (gconstpointer data, gpointer self);
00523 static GObject* __unity_protocol_movie_preview___lambda13__dee_serializable_parse_func (GVariant* data);
00524 static void unity_protocol_movie_preview_finalize (GObject* obj);
00525 static void _vala_unity_protocol_movie_preview_get_property (GObject * object, guint property_id, GValue * value, GParamSpec * pspec);
00526 static void _vala_unity_protocol_movie_preview_set_property (GObject * object, guint property_id, const GValue * value, GParamSpec * pspec);
00527 GType unity_protocol_series_item_raw_get_type (void) G_GNUC_CONST;
00528 UnityProtocolSeriesItemRaw* unity_protocol_series_item_raw_dup (const UnityProtocolSeriesItemRaw* self);
00529 void unity_protocol_series_item_raw_free (UnityProtocolSeriesItemRaw* self);
00530 void unity_protocol_series_item_raw_copy (const UnityProtocolSeriesItemRaw* self, UnityProtocolSeriesItemRaw* dest);
00531 void unity_protocol_series_item_raw_destroy (UnityProtocolSeriesItemRaw* self);
00532 #define UNITY_PROTOCOL_SERIES_PREVIEW_GET_PRIVATE(o) (G_TYPE_INSTANCE_GET_PRIVATE ((o), UNITY_PROTOCOL_TYPE_SERIES_PREVIEW, UnityProtocolSeriesPreviewPrivate))
00533 enum  {
00534        UNITY_PROTOCOL_SERIES_PREVIEW_DUMMY_PROPERTY,
00535        UNITY_PROTOCOL_SERIES_PREVIEW_SELECTED_ITEM,
00536        UNITY_PROTOCOL_SERIES_PREVIEW_CHILD_PREVIEW
00537 };
00538 static void _vala_UnityProtocolSeriesItemRaw_array_free (UnityProtocolSeriesItemRaw* array, gint array_length);
00539 UnityProtocolSeriesPreview* unity_protocol_series_preview_new (void);
00540 UnityProtocolSeriesPreview* unity_protocol_series_preview_construct (GType object_type);
00541 static void unity_protocol_series_preview_real_begin_updates (UnityProtocolPreview* base);
00542 static void ___lambda17_ (UnityProtocolSeriesPreview* self);
00543 gint unity_protocol_series_preview_get_selected_item (UnityProtocolSeriesPreview* self);
00544 static GVariant* _variant_new21 (gint value);
00545 static void ____lambda17__g_object_notify (GObject* _sender, GParamSpec* pspec, gpointer self);
00546 static GHashTable* unity_protocol_series_preview_real_end_updates_as_hashtable (UnityProtocolPreview* base);
00547 void unity_protocol_series_preview_add_series_item (UnityProtocolSeriesPreview* self, const gchar* title, const gchar* uri, GIcon* icon);
00548 static void _vala_array_add3 (UnityProtocolSeriesItemRaw** array, int* length, int* size, const UnityProtocolSeriesItemRaw* value);
00549 UnityProtocolSeriesItemRaw* unity_protocol_series_preview_get_items (UnityProtocolSeriesPreview* self, int* result_length1);
00550 static const gchar* unity_protocol_series_preview_real_get_renderer_name (UnityProtocolPreview* base);
00551 static void unity_protocol_series_preview_real_update_property (UnityProtocolPreview* base, GHashTable* properties);
00552 void unity_protocol_series_preview_set_selected_item (UnityProtocolSeriesPreview* self, gint value);
00553 static void unity_protocol_series_preview_real_add_properties (UnityProtocolPreview* base, GHashTable* properties);
00554 static GVariant* _variant_new22 (UnityProtocolSeriesItemRaw* value, gint value_length1);
00555 UnityProtocolPreview* unity_protocol_series_preview_get_child_preview (UnityProtocolSeriesPreview* self);
00556 static GVariant* _variant_new23 (gint value);
00557 void unity_protocol_series_preview_set_child_preview (UnityProtocolSeriesPreview* self, UnityProtocolPreview* value);
00558 static GObject* _unity_protocol_series_preview___lambda18_ (GVariant* data);
00559 static Block4Data* block4_data_ref (Block4Data* _data4_);
00560 static void block4_data_unref (void * _userdata_);
00561 static void __lambda19_ (Block4Data* _data4_, GVariant* v);
00562 static UnityProtocolSeriesItemRaw* _variant_get24 (GVariant* value, int* result_length1);
00563 static void ___lambda19__gfunc (gconstpointer data, gpointer self);
00564 static void __lambda20_ (Block4Data* _data4_, GVariant* v);
00565 static void ___lambda20__gfunc (gconstpointer data, gpointer self);
00566 static void __lambda21_ (Block4Data* _data4_, GVariant* v);
00567 static void ___lambda21__gfunc (gconstpointer data, gpointer self);
00568 static GObject* __unity_protocol_series_preview___lambda18__dee_serializable_parse_func (GVariant* data);
00569 static void unity_protocol_series_preview_finalize (GObject* obj);
00570 static void _vala_unity_protocol_series_preview_get_property (GObject * object, guint property_id, GValue * value, GParamSpec * pspec);
00571 static void _vala_unity_protocol_series_preview_set_property (GObject * object, guint property_id, const GValue * value, GParamSpec * pspec);
00572 
00573 
00574 static void _vala_UnityProtocolPreviewActionRaw_array_free (UnityProtocolPreviewActionRaw* array, gint array_length) {
00575        if (array != NULL) {
00576               int i;
00577               for (i = 0; i < array_length; i = i + 1) {
00578                      unity_protocol_preview_action_raw_destroy (&array[i]);
00579               }
00580        }
00581        g_free (array);
00582 }
00583 
00584 
00585 static void _vala_UnityProtocolInfoHintRaw_array_free (UnityProtocolInfoHintRaw* array, gint array_length) {
00586        if (array != NULL) {
00587               int i;
00588               for (i = 0; i < array_length; i = i + 1) {
00589                      unity_protocol_info_hint_raw_destroy (&array[i]);
00590               }
00591        }
00592        g_free (array);
00593 }
00594 
00595 
00596 static void _g_free0_ (gpointer var) {
00597        var = (g_free (var), NULL);
00598 }
00599 
00600 
00601 static void _g_variant_unref0_ (gpointer var) {
00602        (var == NULL) ? NULL : (var = (g_variant_unref (var), NULL));
00603 }
00604 
00605 
00606 void unity_protocol_preview_raw_init (UnityProtocolPreviewRaw *self) {
00607        GHashFunc _tmp0_;
00608        GEqualFunc _tmp1_;
00609        GHashTable* _tmp2_;
00610        memset (self, 0, sizeof (UnityProtocolPreviewRaw));
00611        _tmp0_ = g_str_hash;
00612        _tmp1_ = g_str_equal;
00613        _tmp2_ = g_hash_table_new_full (_tmp0_, _tmp1_, _g_free0_, _g_variant_unref0_);
00614        _g_hash_table_unref0 ((*self).hints);
00615        (*self).hints = _tmp2_;
00616 }
00617 
00618 
00619 static void _variant_get1 (GVariant* value, UnityProtocolPreviewRaw* result) {
00620        UnityProtocolPreviewRaw _tmp2_;
00621        GVariantIter _tmp3_;
00622        GVariant* _tmp4_;
00623        GVariant* _tmp5_;
00624        GVariant* _tmp6_;
00625        GVariant* _tmp7_;
00626        GVariant* _tmp8_;
00627        GVariant* _tmp9_;
00628        UnityProtocolPreviewActionRaw* _tmp10_;
00629        int _tmp10__length;
00630        int _tmp10__size;
00631        int _tmp10__length1;
00632        GVariantIter _tmp11_;
00633        GVariant* _tmp12_;
00634        GVariant* _tmp24_;
00635        UnityProtocolInfoHintRaw* _tmp25_;
00636        int _tmp25__length;
00637        int _tmp25__size;
00638        int _tmp25__length1;
00639        GVariantIter _tmp26_;
00640        GVariant* _tmp27_;
00641        GVariant* _tmp34_;
00642        GHashTable* _tmp35_;
00643        GVariantIter _tmp36_;
00644        GVariant* _tmp37_;
00645        GVariant* _tmp38_;
00646        g_variant_iter_init (&_tmp3_, value);
00647        _tmp4_ = g_variant_iter_next_value (&_tmp3_);
00648        _tmp2_.renderer_name = g_variant_dup_string (_tmp4_, NULL);
00649        g_variant_unref (_tmp4_);
00650        _tmp5_ = g_variant_iter_next_value (&_tmp3_);
00651        _tmp2_.title = g_variant_dup_string (_tmp5_, NULL);
00652        g_variant_unref (_tmp5_);
00653        _tmp6_ = g_variant_iter_next_value (&_tmp3_);
00654        _tmp2_.subtitle = g_variant_dup_string (_tmp6_, NULL);
00655        g_variant_unref (_tmp6_);
00656        _tmp7_ = g_variant_iter_next_value (&_tmp3_);
00657        _tmp2_.description = g_variant_dup_string (_tmp7_, NULL);
00658        g_variant_unref (_tmp7_);
00659        _tmp8_ = g_variant_iter_next_value (&_tmp3_);
00660        _tmp2_.thumbnail_hint = g_variant_dup_string (_tmp8_, NULL);
00661        g_variant_unref (_tmp8_);
00662        _tmp9_ = g_variant_iter_next_value (&_tmp3_);
00663        _tmp10_ = g_new (UnityProtocolPreviewActionRaw, 5);
00664        _tmp10__length = 0;
00665        _tmp10__size = 4;
00666        _tmp10__length1 = 0;
00667        g_variant_iter_init (&_tmp11_, _tmp9_);
00668        for (; (_tmp12_ = g_variant_iter_next_value (&_tmp11_)) != NULL; _tmp10__length1++) {
00669               UnityProtocolPreviewActionRaw _tmp13_;
00670               GVariantIter _tmp14_;
00671               GVariant* _tmp15_;
00672               GVariant* _tmp16_;
00673               GVariant* _tmp17_;
00674               GVariant* _tmp18_;
00675               GVariant* _tmp19_;
00676               GHashTable* _tmp20_;
00677               GVariantIter _tmp21_;
00678               GVariant* _tmp22_;
00679               GVariant* _tmp23_;
00680               if (_tmp10__size == _tmp10__length) {
00681                      _tmp10__size = 2 * _tmp10__size;
00682                      _tmp10_ = g_renew (UnityProtocolPreviewActionRaw, _tmp10_, _tmp10__size + 1);
00683               }
00684               g_variant_iter_init (&_tmp14_, _tmp12_);
00685               _tmp15_ = g_variant_iter_next_value (&_tmp14_);
00686               _tmp13_.id = g_variant_dup_string (_tmp15_, NULL);
00687               g_variant_unref (_tmp15_);
00688               _tmp16_ = g_variant_iter_next_value (&_tmp14_);
00689               _tmp13_.display_name = g_variant_dup_string (_tmp16_, NULL);
00690               g_variant_unref (_tmp16_);
00691               _tmp17_ = g_variant_iter_next_value (&_tmp14_);
00692               _tmp13_.icon_hint = g_variant_dup_string (_tmp17_, NULL);
00693               g_variant_unref (_tmp17_);
00694               _tmp18_ = g_variant_iter_next_value (&_tmp14_);
00695               _tmp13_.layout_hint = g_variant_get_uint32 (_tmp18_);
00696               g_variant_unref (_tmp18_);
00697               _tmp19_ = g_variant_iter_next_value (&_tmp14_);
00698               _tmp20_ = g_hash_table_new_full (g_str_hash, g_str_equal, g_free, NULL);
00699               g_variant_iter_init (&_tmp21_, _tmp19_);
00700               while (g_variant_iter_loop (&_tmp21_, "{?*}", &_tmp22_, &_tmp23_)) {
00701                      g_hash_table_insert (_tmp20_, g_variant_dup_string (_tmp22_, NULL), g_variant_get_variant (_tmp23_));
00702               }
00703               _tmp13_.hints = _tmp20_;
00704               g_variant_unref (_tmp19_);
00705               _tmp10_[_tmp10__length++] = _tmp13_;
00706               g_variant_unref (_tmp12_);
00707        }
00708        _tmp2_.actions_length1 = _tmp10__length1;
00709        _tmp2_.actions = _tmp10_;
00710        g_variant_unref (_tmp9_);
00711        _tmp24_ = g_variant_iter_next_value (&_tmp3_);
00712        _tmp25_ = g_new (UnityProtocolInfoHintRaw, 5);
00713        _tmp25__length = 0;
00714        _tmp25__size = 4;
00715        _tmp25__length1 = 0;
00716        g_variant_iter_init (&_tmp26_, _tmp24_);
00717        for (; (_tmp27_ = g_variant_iter_next_value (&_tmp26_)) != NULL; _tmp25__length1++) {
00718               UnityProtocolInfoHintRaw _tmp28_;
00719               GVariantIter _tmp29_;
00720               GVariant* _tmp30_;
00721               GVariant* _tmp31_;
00722               GVariant* _tmp32_;
00723               GVariant* _tmp33_;
00724               if (_tmp25__size == _tmp25__length) {
00725                      _tmp25__size = 2 * _tmp25__size;
00726                      _tmp25_ = g_renew (UnityProtocolInfoHintRaw, _tmp25_, _tmp25__size + 1);
00727               }
00728               g_variant_iter_init (&_tmp29_, _tmp27_);
00729               _tmp30_ = g_variant_iter_next_value (&_tmp29_);
00730               _tmp28_.id = g_variant_dup_string (_tmp30_, NULL);
00731               g_variant_unref (_tmp30_);
00732               _tmp31_ = g_variant_iter_next_value (&_tmp29_);
00733               _tmp28_.display_name = g_variant_dup_string (_tmp31_, NULL);
00734               g_variant_unref (_tmp31_);
00735               _tmp32_ = g_variant_iter_next_value (&_tmp29_);
00736               _tmp28_.icon_hint = g_variant_dup_string (_tmp32_, NULL);
00737               g_variant_unref (_tmp32_);
00738               _tmp33_ = g_variant_iter_next_value (&_tmp29_);
00739               _tmp28_.value = g_variant_get_variant (_tmp33_);
00740               g_variant_unref (_tmp33_);
00741               _tmp25_[_tmp25__length++] = _tmp28_;
00742               g_variant_unref (_tmp27_);
00743        }
00744        _tmp2_.info_hints_length1 = _tmp25__length1;
00745        _tmp2_.info_hints = _tmp25_;
00746        g_variant_unref (_tmp24_);
00747        _tmp34_ = g_variant_iter_next_value (&_tmp3_);
00748        _tmp35_ = g_hash_table_new_full (g_str_hash, g_str_equal, g_free, NULL);
00749        g_variant_iter_init (&_tmp36_, _tmp34_);
00750        while (g_variant_iter_loop (&_tmp36_, "{?*}", &_tmp37_, &_tmp38_)) {
00751               g_hash_table_insert (_tmp35_, g_variant_dup_string (_tmp37_, NULL), g_variant_get_variant (_tmp38_));
00752        }
00753        _tmp2_.hints = _tmp35_;
00754        g_variant_unref (_tmp34_);
00755        *result = _tmp2_;
00756 }
00757 
00758 
00759 static gpointer _unity_protocol_preview_raw_dup0 (gpointer self) {
00760        return self ? unity_protocol_preview_raw_dup (self) : NULL;
00761 }
00762 
00763 
00764 UnityProtocolPreviewRaw* unity_protocol_preview_raw_from_variant (GVariant* v) {
00765        UnityProtocolPreviewRaw* result = NULL;
00766        GVariant* _tmp0_;
00767        UnityProtocolPreviewRaw _tmp1_;
00768        UnityProtocolPreviewRaw _tmp39_;
00769        UnityProtocolPreviewRaw* _tmp40_;
00770        UnityProtocolPreviewRaw* _tmp41_;
00771        g_return_val_if_fail (v != NULL, NULL);
00772        _tmp0_ = v;
00773        _variant_get1 (_tmp0_, &_tmp1_);
00774        _tmp39_ = _tmp1_;
00775        _tmp40_ = _unity_protocol_preview_raw_dup0 (&_tmp39_);
00776        _tmp41_ = _tmp40_;
00777        unity_protocol_preview_raw_destroy (&_tmp39_);
00778        result = _tmp41_;
00779        return result;
00780 }
00781 
00782 
00783 static GVariant* _variant_new2 (UnityProtocolPreviewRaw value) {
00784        GVariantBuilder _tmp0_;
00785        UnityProtocolPreviewActionRaw* _tmp1_;
00786        GVariantBuilder _tmp2_;
00787        int _tmp3_;
00788        UnityProtocolInfoHintRaw* _tmp9_;
00789        GVariantBuilder _tmp10_;
00790        int _tmp11_;
00791        GVariantBuilder _tmp13_;
00792        GHashTableIter _tmp14_;
00793        gpointer _tmp15_;
00794        gpointer _tmp16_;
00795        g_variant_builder_init (&_tmp0_, G_VARIANT_TYPE_TUPLE);
00796        g_variant_builder_add_value (&_tmp0_, g_variant_new_string (value.renderer_name));
00797        g_variant_builder_add_value (&_tmp0_, g_variant_new_string (value.title));
00798        g_variant_builder_add_value (&_tmp0_, g_variant_new_string (value.subtitle));
00799        g_variant_builder_add_value (&_tmp0_, g_variant_new_string (value.description));
00800        g_variant_builder_add_value (&_tmp0_, g_variant_new_string (value.thumbnail_hint));
00801        _tmp1_ = value.actions;
00802        g_variant_builder_init (&_tmp2_, G_VARIANT_TYPE ("a(sssua{sv})"));
00803        for (_tmp3_ = 0; _tmp3_ < value.actions_length1; _tmp3_++) {
00804               GVariantBuilder _tmp4_;
00805               GVariantBuilder _tmp5_;
00806               GHashTableIter _tmp6_;
00807               gpointer _tmp7_;
00808               gpointer _tmp8_;
00809               g_variant_builder_init (&_tmp4_, G_VARIANT_TYPE_TUPLE);
00810               g_variant_builder_add_value (&_tmp4_, g_variant_new_string ((*_tmp1_).id));
00811               g_variant_builder_add_value (&_tmp4_, g_variant_new_string ((*_tmp1_).display_name));
00812               g_variant_builder_add_value (&_tmp4_, g_variant_new_string ((*_tmp1_).icon_hint));
00813               g_variant_builder_add_value (&_tmp4_, g_variant_new_uint32 ((*_tmp1_).layout_hint));
00814               g_hash_table_iter_init (&_tmp6_, (*_tmp1_).hints);
00815               g_variant_builder_init (&_tmp5_, G_VARIANT_TYPE ("a{sv}"));
00816               while (g_hash_table_iter_next (&_tmp6_, &_tmp7_, &_tmp8_)) {
00817                      gchar* _key;
00818                      GVariant* _value;
00819                      _key = (gchar*) _tmp7_;
00820                      _value = (GVariant*) _tmp8_;
00821                      g_variant_builder_add (&_tmp5_, "{?*}", g_variant_new_string (_key), g_variant_new_variant (_value));
00822               }
00823               g_variant_builder_add_value (&_tmp4_, g_variant_builder_end (&_tmp5_));
00824               g_variant_builder_add_value (&_tmp2_, g_variant_builder_end (&_tmp4_));
00825               _tmp1_++;
00826        }
00827        g_variant_builder_add_value (&_tmp0_, g_variant_builder_end (&_tmp2_));
00828        _tmp9_ = value.info_hints;
00829        g_variant_builder_init (&_tmp10_, G_VARIANT_TYPE ("a(sssv)"));
00830        for (_tmp11_ = 0; _tmp11_ < value.info_hints_length1; _tmp11_++) {
00831               GVariantBuilder _tmp12_;
00832               g_variant_builder_init (&_tmp12_, G_VARIANT_TYPE_TUPLE);
00833               g_variant_builder_add_value (&_tmp12_, g_variant_new_string ((*_tmp9_).id));
00834               g_variant_builder_add_value (&_tmp12_, g_variant_new_string ((*_tmp9_).display_name));
00835               g_variant_builder_add_value (&_tmp12_, g_variant_new_string ((*_tmp9_).icon_hint));
00836               g_variant_builder_add_value (&_tmp12_, g_variant_new_variant ((*_tmp9_).value));
00837               g_variant_builder_add_value (&_tmp10_, g_variant_builder_end (&_tmp12_));
00838               _tmp9_++;
00839        }
00840        g_variant_builder_add_value (&_tmp0_, g_variant_builder_end (&_tmp10_));
00841        g_hash_table_iter_init (&_tmp14_, value.hints);
00842        g_variant_builder_init (&_tmp13_, G_VARIANT_TYPE ("a{sv}"));
00843        while (g_hash_table_iter_next (&_tmp14_, &_tmp15_, &_tmp16_)) {
00844               gchar* _key;
00845               GVariant* _value;
00846               _key = (gchar*) _tmp15_;
00847               _value = (GVariant*) _tmp16_;
00848               g_variant_builder_add (&_tmp13_, "{?*}", g_variant_new_string (_key), g_variant_new_variant (_value));
00849        }
00850        g_variant_builder_add_value (&_tmp0_, g_variant_builder_end (&_tmp13_));
00851        return g_variant_ref_sink (g_variant_builder_end (&_tmp0_));
00852 }
00853 
00854 
00855 GVariant* unity_protocol_preview_raw_to_variant (UnityProtocolPreviewRaw *self) {
00856        GVariant* result = NULL;
00857        GVariant* _tmp17_;
00858        _tmp17_ = _variant_new2 ((*self));
00859        result = _tmp17_;
00860        return result;
00861 }
00862 
00863 
00864 static UnityProtocolPreviewActionRaw* _vala_array_dup1 (UnityProtocolPreviewActionRaw* self, int length) {
00865        UnityProtocolPreviewActionRaw* result;
00866        int i;
00867        result = g_new0 (UnityProtocolPreviewActionRaw, length);
00868        for (i = 0; i < length; i++) {
00869               UnityProtocolPreviewActionRaw _tmp0_ = {0};
00870               unity_protocol_preview_action_raw_copy (&self[i], &_tmp0_);
00871               result[i] = _tmp0_;
00872        }
00873        return result;
00874 }
00875 
00876 
00877 static UnityProtocolInfoHintRaw* _vala_array_dup2 (UnityProtocolInfoHintRaw* self, int length) {
00878        UnityProtocolInfoHintRaw* result;
00879        int i;
00880        result = g_new0 (UnityProtocolInfoHintRaw, length);
00881        for (i = 0; i < length; i++) {
00882               UnityProtocolInfoHintRaw _tmp0_ = {0};
00883               unity_protocol_info_hint_raw_copy (&self[i], &_tmp0_);
00884               result[i] = _tmp0_;
00885        }
00886        return result;
00887 }
00888 
00889 
00890 static gpointer _g_hash_table_ref0 (gpointer self) {
00891        return self ? g_hash_table_ref (self) : NULL;
00892 }
00893 
00894 
00895 void unity_protocol_preview_raw_copy (const UnityProtocolPreviewRaw* self, UnityProtocolPreviewRaw* dest) {
00896        const gchar* _tmp0_;
00897        gchar* _tmp1_;
00898        const gchar* _tmp2_;
00899        gchar* _tmp3_;
00900        const gchar* _tmp4_;
00901        gchar* _tmp5_;
00902        const gchar* _tmp6_;
00903        gchar* _tmp7_;
00904        const gchar* _tmp8_;
00905        gchar* _tmp9_;
00906        UnityProtocolPreviewActionRaw* _tmp10_;
00907        gint _tmp10__length1;
00908        UnityProtocolPreviewActionRaw* _tmp11_;
00909        gint _tmp11__length1;
00910        UnityProtocolInfoHintRaw* _tmp12_;
00911        gint _tmp12__length1;
00912        UnityProtocolInfoHintRaw* _tmp13_;
00913        gint _tmp13__length1;
00914        GHashTable* _tmp14_;
00915        GHashTable* _tmp15_;
00916        _tmp0_ = (*self).renderer_name;
00917        _tmp1_ = g_strdup (_tmp0_);
00918        _g_free0 ((*dest).renderer_name);
00919        (*dest).renderer_name = _tmp1_;
00920        _tmp2_ = (*self).title;
00921        _tmp3_ = g_strdup (_tmp2_);
00922        _g_free0 ((*dest).title);
00923        (*dest).title = _tmp3_;
00924        _tmp4_ = (*self).subtitle;
00925        _tmp5_ = g_strdup (_tmp4_);
00926        _g_free0 ((*dest).subtitle);
00927        (*dest).subtitle = _tmp5_;
00928        _tmp6_ = (*self).description;
00929        _tmp7_ = g_strdup (_tmp6_);
00930        _g_free0 ((*dest).description);
00931        (*dest).description = _tmp7_;
00932        _tmp8_ = (*self).thumbnail_hint;
00933        _tmp9_ = g_strdup (_tmp8_);
00934        _g_free0 ((*dest).thumbnail_hint);
00935        (*dest).thumbnail_hint = _tmp9_;
00936        _tmp10_ = (*self).actions;
00937        _tmp10__length1 = (*self).actions_length1;
00938        _tmp11_ = (_tmp10_ != NULL) ? _vala_array_dup1 (_tmp10_, _tmp10__length1) : ((gpointer) _tmp10_);
00939        _tmp11__length1 = _tmp10__length1;
00940        (*dest).actions = (_vala_UnityProtocolPreviewActionRaw_array_free ((*dest).actions, (*dest).actions_length1), NULL);
00941        (*dest).actions = _tmp11_;
00942        (*dest).actions_length1 = _tmp11__length1;
00943        (*dest)._actions_size_ = (*dest).actions_length1;
00944        _tmp12_ = (*self).info_hints;
00945        _tmp12__length1 = (*self).info_hints_length1;
00946        _tmp13_ = (_tmp12_ != NULL) ? _vala_array_dup2 (_tmp12_, _tmp12__length1) : ((gpointer) _tmp12_);
00947        _tmp13__length1 = _tmp12__length1;
00948        (*dest).info_hints = (_vala_UnityProtocolInfoHintRaw_array_free ((*dest).info_hints, (*dest).info_hints_length1), NULL);
00949        (*dest).info_hints = _tmp13_;
00950        (*dest).info_hints_length1 = _tmp13__length1;
00951        (*dest)._info_hints_size_ = (*dest).info_hints_length1;
00952        _tmp14_ = (*self).hints;
00953        _tmp15_ = _g_hash_table_ref0 (_tmp14_);
00954        _g_hash_table_unref0 ((*dest).hints);
00955        (*dest).hints = _tmp15_;
00956 }
00957 
00958 
00959 void unity_protocol_preview_raw_destroy (UnityProtocolPreviewRaw* self) {
00960        _g_free0 ((*self).renderer_name);
00961        _g_free0 ((*self).title);
00962        _g_free0 ((*self).subtitle);
00963        _g_free0 ((*self).description);
00964        _g_free0 ((*self).thumbnail_hint);
00965        (*self).actions = (_vala_UnityProtocolPreviewActionRaw_array_free ((*self).actions, (*self).actions_length1), NULL);
00966        (*self).info_hints = (_vala_UnityProtocolInfoHintRaw_array_free ((*self).info_hints, (*self).info_hints_length1), NULL);
00967        _g_hash_table_unref0 ((*self).hints);
00968 }
00969 
00970 
00971 UnityProtocolPreviewRaw* unity_protocol_preview_raw_dup (const UnityProtocolPreviewRaw* self) {
00972        UnityProtocolPreviewRaw* dup;
00973        dup = g_new0 (UnityProtocolPreviewRaw, 1);
00974        unity_protocol_preview_raw_copy (self, dup);
00975        return dup;
00976 }
00977 
00978 
00979 void unity_protocol_preview_raw_free (UnityProtocolPreviewRaw* self) {
00980        unity_protocol_preview_raw_destroy (self);
00981        g_free (self);
00982 }
00983 
00984 
00985 GType unity_protocol_preview_raw_get_type (void) {
00986        static volatile gsize unity_protocol_preview_raw_type_id__volatile = 0;
00987        if (g_once_init_enter (&unity_protocol_preview_raw_type_id__volatile)) {
00988               GType unity_protocol_preview_raw_type_id;
00989               unity_protocol_preview_raw_type_id = g_boxed_type_register_static ("UnityProtocolPreviewRaw", (GBoxedCopyFunc) unity_protocol_preview_raw_dup, (GBoxedFreeFunc) unity_protocol_preview_raw_free);
00990               g_once_init_leave (&unity_protocol_preview_raw_type_id__volatile, unity_protocol_preview_raw_type_id);
00991        }
00992        return unity_protocol_preview_raw_type_id__volatile;
00993 }
00994 
00995 
00996 GType unity_protocol_layout_hint_get_type (void) {
00997        static volatile gsize unity_protocol_layout_hint_type_id__volatile = 0;
00998        if (g_once_init_enter (&unity_protocol_layout_hint_type_id__volatile)) {
00999               static const GEnumValue values[] = {{UNITY_PROTOCOL_LAYOUT_HINT_NONE, "UNITY_PROTOCOL_LAYOUT_HINT_NONE", "none"}, {UNITY_PROTOCOL_LAYOUT_HINT_LEFT, "UNITY_PROTOCOL_LAYOUT_HINT_LEFT", "left"}, {UNITY_PROTOCOL_LAYOUT_HINT_RIGHT, "UNITY_PROTOCOL_LAYOUT_HINT_RIGHT", "right"}, {UNITY_PROTOCOL_LAYOUT_HINT_TOP, "UNITY_PROTOCOL_LAYOUT_HINT_TOP", "top"}, {UNITY_PROTOCOL_LAYOUT_HINT_BOTTOM, "UNITY_PROTOCOL_LAYOUT_HINT_BOTTOM", "bottom"}, {0, NULL, NULL}};
01000               GType unity_protocol_layout_hint_type_id;
01001               unity_protocol_layout_hint_type_id = g_enum_register_static ("UnityProtocolLayoutHint", values);
01002               g_once_init_leave (&unity_protocol_layout_hint_type_id__volatile, unity_protocol_layout_hint_type_id);
01003        }
01004        return unity_protocol_layout_hint_type_id__volatile;
01005 }
01006 
01007 
01008 static gpointer _g_variant_ref0 (gpointer self) {
01009        return self ? g_variant_ref (self) : NULL;
01010 }
01011 
01012 
01013 void unity_protocol_info_hint_raw_copy (const UnityProtocolInfoHintRaw* self, UnityProtocolInfoHintRaw* dest) {
01014        const gchar* _tmp0_;
01015        gchar* _tmp1_;
01016        const gchar* _tmp2_;
01017        gchar* _tmp3_;
01018        const gchar* _tmp4_;
01019        gchar* _tmp5_;
01020        GVariant* _tmp6_;
01021        GVariant* _tmp7_;
01022        _tmp0_ = (*self).id;
01023        _tmp1_ = g_strdup (_tmp0_);
01024        _g_free0 ((*dest).id);
01025        (*dest).id = _tmp1_;
01026        _tmp2_ = (*self).display_name;
01027        _tmp3_ = g_strdup (_tmp2_);
01028        _g_free0 ((*dest).display_name);
01029        (*dest).display_name = _tmp3_;
01030        _tmp4_ = (*self).icon_hint;
01031        _tmp5_ = g_strdup (_tmp4_);
01032        _g_free0 ((*dest).icon_hint);
01033        (*dest).icon_hint = _tmp5_;
01034        _tmp6_ = (*self).value;
01035        _tmp7_ = _g_variant_ref0 (_tmp6_);
01036        _g_variant_unref0 ((*dest).value);
01037        (*dest).value = _tmp7_;
01038 }
01039 
01040 
01041 void unity_protocol_info_hint_raw_destroy (UnityProtocolInfoHintRaw* self) {
01042        _g_free0 ((*self).id);
01043        _g_free0 ((*self).display_name);
01044        _g_free0 ((*self).icon_hint);
01045        _g_variant_unref0 ((*self).value);
01046 }
01047 
01048 
01049 UnityProtocolInfoHintRaw* unity_protocol_info_hint_raw_dup (const UnityProtocolInfoHintRaw* self) {
01050        UnityProtocolInfoHintRaw* dup;
01051        dup = g_new0 (UnityProtocolInfoHintRaw, 1);
01052        unity_protocol_info_hint_raw_copy (self, dup);
01053        return dup;
01054 }
01055 
01056 
01057 void unity_protocol_info_hint_raw_free (UnityProtocolInfoHintRaw* self) {
01058        unity_protocol_info_hint_raw_destroy (self);
01059        g_free (self);
01060 }
01061 
01062 
01063 GType unity_protocol_info_hint_raw_get_type (void) {
01064        static volatile gsize unity_protocol_info_hint_raw_type_id__volatile = 0;
01065        if (g_once_init_enter (&unity_protocol_info_hint_raw_type_id__volatile)) {
01066               GType unity_protocol_info_hint_raw_type_id;
01067               unity_protocol_info_hint_raw_type_id = g_boxed_type_register_static ("UnityProtocolInfoHintRaw", (GBoxedCopyFunc) unity_protocol_info_hint_raw_dup, (GBoxedFreeFunc) unity_protocol_info_hint_raw_free);
01068               g_once_init_leave (&unity_protocol_info_hint_raw_type_id__volatile, unity_protocol_info_hint_raw_type_id);
01069        }
01070        return unity_protocol_info_hint_raw_type_id__volatile;
01071 }
01072 
01073 
01074 void unity_protocol_preview_action_raw_init (UnityProtocolPreviewActionRaw *self) {
01075        GHashFunc _tmp0_;
01076        GEqualFunc _tmp1_;
01077        GHashTable* _tmp2_;
01078        memset (self, 0, sizeof (UnityProtocolPreviewActionRaw));
01079        _tmp0_ = g_str_hash;
01080        _tmp1_ = g_str_equal;
01081        _tmp2_ = g_hash_table_new_full (_tmp0_, _tmp1_, _g_free0_, _g_variant_unref0_);
01082        _g_hash_table_unref0 ((*self).hints);
01083        (*self).hints = _tmp2_;
01084 }
01085 
01086 
01087 static void _variant_get3 (GVariant* value, UnityProtocolPreviewActionRaw* result) {
01088        UnityProtocolPreviewActionRaw _tmp2_;
01089        GVariantIter _tmp3_;
01090        GVariant* _tmp4_;
01091        GVariant* _tmp5_;
01092        GVariant* _tmp6_;
01093        GVariant* _tmp7_;
01094        GVariant* _tmp8_;
01095        GHashTable* _tmp9_;
01096        GVariantIter _tmp10_;
01097        GVariant* _tmp11_;
01098        GVariant* _tmp12_;
01099        g_variant_iter_init (&_tmp3_, value);
01100        _tmp4_ = g_variant_iter_next_value (&_tmp3_);
01101        _tmp2_.id = g_variant_dup_string (_tmp4_, NULL);
01102        g_variant_unref (_tmp4_);
01103        _tmp5_ = g_variant_iter_next_value (&_tmp3_);
01104        _tmp2_.display_name = g_variant_dup_string (_tmp5_, NULL);
01105        g_variant_unref (_tmp5_);
01106        _tmp6_ = g_variant_iter_next_value (&_tmp3_);
01107        _tmp2_.icon_hint = g_variant_dup_string (_tmp6_, NULL);
01108        g_variant_unref (_tmp6_);
01109        _tmp7_ = g_variant_iter_next_value (&_tmp3_);
01110        _tmp2_.layout_hint = g_variant_get_uint32 (_tmp7_);
01111        g_variant_unref (_tmp7_);
01112        _tmp8_ = g_variant_iter_next_value (&_tmp3_);
01113        _tmp9_ = g_hash_table_new_full (g_str_hash, g_str_equal, g_free, NULL);
01114        g_variant_iter_init (&_tmp10_, _tmp8_);
01115        while (g_variant_iter_loop (&_tmp10_, "{?*}", &_tmp11_, &_tmp12_)) {
01116               g_hash_table_insert (_tmp9_, g_variant_dup_string (_tmp11_, NULL), g_variant_get_variant (_tmp12_));
01117        }
01118        _tmp2_.hints = _tmp9_;
01119        g_variant_unref (_tmp8_);
01120        *result = _tmp2_;
01121 }
01122 
01123 
01124 static gpointer _unity_protocol_preview_action_raw_dup0 (gpointer self) {
01125        return self ? unity_protocol_preview_action_raw_dup (self) : NULL;
01126 }
01127 
01128 
01129 UnityProtocolPreviewActionRaw* unity_protocol_preview_action_raw_from_variant (GVariant* v) {
01130        UnityProtocolPreviewActionRaw* result = NULL;
01131        GVariant* _tmp0_;
01132        UnityProtocolPreviewActionRaw _tmp1_;
01133        UnityProtocolPreviewActionRaw _tmp13_;
01134        UnityProtocolPreviewActionRaw* _tmp14_;
01135        UnityProtocolPreviewActionRaw* _tmp15_;
01136        g_return_val_if_fail (v != NULL, NULL);
01137        _tmp0_ = v;
01138        _variant_get3 (_tmp0_, &_tmp1_);
01139        _tmp13_ = _tmp1_;
01140        _tmp14_ = _unity_protocol_preview_action_raw_dup0 (&_tmp13_);
01141        _tmp15_ = _tmp14_;
01142        unity_protocol_preview_action_raw_destroy (&_tmp13_);
01143        result = _tmp15_;
01144        return result;
01145 }
01146 
01147 
01148 static GVariant* _variant_new4 (UnityProtocolPreviewActionRaw value) {
01149        GVariantBuilder _tmp0_;
01150        GVariantBuilder _tmp1_;
01151        GHashTableIter _tmp2_;
01152        gpointer _tmp3_;
01153        gpointer _tmp4_;
01154        g_variant_builder_init (&_tmp0_, G_VARIANT_TYPE_TUPLE);
01155        g_variant_builder_add_value (&_tmp0_, g_variant_new_string (value.id));
01156        g_variant_builder_add_value (&_tmp0_, g_variant_new_string (value.display_name));
01157        g_variant_builder_add_value (&_tmp0_, g_variant_new_string (value.icon_hint));
01158        g_variant_builder_add_value (&_tmp0_, g_variant_new_uint32 (value.layout_hint));
01159        g_hash_table_iter_init (&_tmp2_, value.hints);
01160        g_variant_builder_init (&_tmp1_, G_VARIANT_TYPE ("a{sv}"));
01161        while (g_hash_table_iter_next (&_tmp2_, &_tmp3_, &_tmp4_)) {
01162               gchar* _key;
01163               GVariant* _value;
01164               _key = (gchar*) _tmp3_;
01165               _value = (GVariant*) _tmp4_;
01166               g_variant_builder_add (&_tmp1_, "{?*}", g_variant_new_string (_key), g_variant_new_variant (_value));
01167        }
01168        g_variant_builder_add_value (&_tmp0_, g_variant_builder_end (&_tmp1_));
01169        return g_variant_ref_sink (g_variant_builder_end (&_tmp0_));
01170 }
01171 
01172 
01173 GVariant* unity_protocol_preview_action_raw_to_variant (UnityProtocolPreviewActionRaw *self) {
01174        GVariant* result = NULL;
01175        GVariant* _tmp5_;
01176        _tmp5_ = _variant_new4 ((*self));
01177        result = _tmp5_;
01178        return result;
01179 }
01180 
01181 
01182 void unity_protocol_preview_action_raw_copy (const UnityProtocolPreviewActionRaw* self, UnityProtocolPreviewActionRaw* dest) {
01183        const gchar* _tmp0_;
01184        gchar* _tmp1_;
01185        const gchar* _tmp2_;
01186        gchar* _tmp3_;
01187        const gchar* _tmp4_;
01188        gchar* _tmp5_;
01189        guint _tmp6_;
01190        GHashTable* _tmp7_;
01191        GHashTable* _tmp8_;
01192        _tmp0_ = (*self).id;
01193        _tmp1_ = g_strdup (_tmp0_);
01194        _g_free0 ((*dest).id);
01195        (*dest).id = _tmp1_;
01196        _tmp2_ = (*self).display_name;
01197        _tmp3_ = g_strdup (_tmp2_);
01198        _g_free0 ((*dest).display_name);
01199        (*dest).display_name = _tmp3_;
01200        _tmp4_ = (*self).icon_hint;
01201        _tmp5_ = g_strdup (_tmp4_);
01202        _g_free0 ((*dest).icon_hint);
01203        (*dest).icon_hint = _tmp5_;
01204        _tmp6_ = (*self).layout_hint;
01205        (*dest).layout_hint = _tmp6_;
01206        _tmp7_ = (*self).hints;
01207        _tmp8_ = _g_hash_table_ref0 (_tmp7_);
01208        _g_hash_table_unref0 ((*dest).hints);
01209        (*dest).hints = _tmp8_;
01210 }
01211 
01212 
01213 void unity_protocol_preview_action_raw_destroy (UnityProtocolPreviewActionRaw* self) {
01214        _g_free0 ((*self).id);
01215        _g_free0 ((*self).display_name);
01216        _g_free0 ((*self).icon_hint);
01217        _g_hash_table_unref0 ((*self).hints);
01218 }
01219 
01220 
01221 UnityProtocolPreviewActionRaw* unity_protocol_preview_action_raw_dup (const UnityProtocolPreviewActionRaw* self) {
01222        UnityProtocolPreviewActionRaw* dup;
01223        dup = g_new0 (UnityProtocolPreviewActionRaw, 1);
01224        unity_protocol_preview_action_raw_copy (self, dup);
01225        return dup;
01226 }
01227 
01228 
01229 void unity_protocol_preview_action_raw_free (UnityProtocolPreviewActionRaw* self) {
01230        unity_protocol_preview_action_raw_destroy (self);
01231        g_free (self);
01232 }
01233 
01234 
01235 GType unity_protocol_preview_action_raw_get_type (void) {
01236        static volatile gsize unity_protocol_preview_action_raw_type_id__volatile = 0;
01237        if (g_once_init_enter (&unity_protocol_preview_action_raw_type_id__volatile)) {
01238               GType unity_protocol_preview_action_raw_type_id;
01239               unity_protocol_preview_action_raw_type_id = g_boxed_type_register_static ("UnityProtocolPreviewActionRaw", (GBoxedCopyFunc) unity_protocol_preview_action_raw_dup, (GBoxedFreeFunc) unity_protocol_preview_action_raw_free);
01240               g_once_init_leave (&unity_protocol_preview_action_raw_type_id__volatile, unity_protocol_preview_action_raw_type_id);
01241        }
01242        return unity_protocol_preview_action_raw_type_id__volatile;
01243 }
01244 
01245 
01246 static void unity_protocol_preview_real_begin_updates (UnityProtocolPreview* self) {
01247        GHashTable* _tmp0_;
01248        _tmp0_ = self->priv->_updates;
01249        if (_tmp0_ != NULL) {
01250               g_warning ("protocol-previews.vala:117: Called begin_updates without end_updates");
01251        } else {
01252               GHashFunc _tmp1_;
01253               GEqualFunc _tmp2_;
01254               GHashTable* _tmp3_;
01255               _tmp1_ = g_str_hash;
01256               _tmp2_ = g_str_equal;
01257               _tmp3_ = g_hash_table_new_full (_tmp1_, _tmp2_, _g_free0_, _g_variant_unref0_);
01258               _g_hash_table_unref0 (self->priv->_updates);
01259               self->priv->_updates = _tmp3_;
01260        }
01261 }
01262 
01263 
01264 void unity_protocol_preview_begin_updates (UnityProtocolPreview* self) {
01265        g_return_if_fail (self != NULL);
01266        UNITY_PROTOCOL_PREVIEW_GET_CLASS (self)->begin_updates (self);
01267 }
01268 
01269 
01270 static GHashTable* unity_protocol_preview_real_end_updates_as_hashtable (UnityProtocolPreview* self) {
01271        GHashTable* result = NULL;
01272        GHashTable* _tmp0_;
01273        GHashTable* _tmp1_;
01274        GHashTable* _tmp2_;
01275        GHashTable* _result_;
01276        _tmp0_ = self->priv->_updates;
01277        if (_tmp0_ == NULL) {
01278               g_warning ("protocol-previews.vala:129: Called end_updates without begin_updates");
01279        }
01280        _tmp1_ = self->priv->_updates;
01281        _tmp2_ = _g_hash_table_ref0 (_tmp1_);
01282        _result_ = _tmp2_;
01283        _g_hash_table_unref0 (self->priv->_updates);
01284        self->priv->_updates = NULL;
01285        result = _result_;
01286        return result;
01287 }
01288 
01289 
01290 GHashTable* unity_protocol_preview_end_updates_as_hashtable (UnityProtocolPreview* self) {
01291        g_return_val_if_fail (self != NULL, NULL);
01292        return UNITY_PROTOCOL_PREVIEW_GET_CLASS (self)->end_updates_as_hashtable (self);
01293 }
01294 
01295 
01296 static GVariant* _variant_new5 (GHashTable* value) {
01297        GVariantBuilder _tmp2_;
01298        GHashTableIter _tmp3_;
01299        gpointer _tmp4_;
01300        gpointer _tmp5_;
01301        g_hash_table_iter_init (&_tmp3_, value);
01302        g_variant_builder_init (&_tmp2_, G_VARIANT_TYPE ("a{sv}"));
01303        while (g_hash_table_iter_next (&_tmp3_, &_tmp4_, &_tmp5_)) {
01304               gchar* _key;
01305               GVariant* _value;
01306               _key = (gchar*) _tmp4_;
01307               _value = (GVariant*) _tmp5_;
01308               g_variant_builder_add (&_tmp2_, "{?*}", g_variant_new_string (_key), g_variant_new_variant (_value));
01309        }
01310        return g_variant_ref_sink (g_variant_builder_end (&_tmp2_));
01311 }
01312 
01313 
01314 static GVariant* unity_protocol_preview_real_end_updates (UnityProtocolPreview* self) {
01315        GVariant* result = NULL;
01316        GHashTable* _tmp0_ = NULL;
01317        GHashTable* _result_;
01318        GHashTable* _tmp1_;
01319        GVariant* _tmp6_;
01320        GVariant* _tmp7_;
01321        _tmp0_ = unity_protocol_preview_end_updates_as_hashtable (self);
01322        _result_ = _tmp0_;
01323        _tmp1_ = _result_;
01324        _tmp6_ = _variant_new5 (_tmp1_);
01325        _tmp7_ = _tmp6_;
01326        _g_hash_table_unref0 (_tmp1_);
01327        result = _tmp7_;
01328        return result;
01329 }
01330 
01331 
01332 GVariant* unity_protocol_preview_end_updates (UnityProtocolPreview* self) {
01333        g_return_val_if_fail (self != NULL, NULL);
01334        return UNITY_PROTOCOL_PREVIEW_GET_CLASS (self)->end_updates (self);
01335 }
01336 
01337 
01338 static void _vala_array_add1 (UnityProtocolPreviewActionRaw** array, int* length, int* size, const UnityProtocolPreviewActionRaw* value) {
01339        if ((*length) == (*size)) {
01340               *size = (*size) ? (2 * (*size)) : 4;
01341               *array = g_renew (UnityProtocolPreviewActionRaw, *array, *size);
01342        }
01343        (*array)[(*length)++] = *value;
01344 }
01345 
01346 
01347 void unity_protocol_preview_add_action (UnityProtocolPreview* self, const gchar* id, const gchar* display_name, GIcon* icon, guint layout_hint) {
01348        UnityProtocolPreviewActionRaw _tmp0_ = {0};
01349        UnityProtocolPreviewActionRaw _tmp1_;
01350        UnityProtocolPreviewActionRaw* _tmp2_;
01351        UnityProtocolPreviewActionRaw* _tmp3_;
01352        UnityProtocolPreviewActionRaw* action_raw;
01353        UnityProtocolPreviewActionRaw* _tmp4_;
01354        const gchar* _tmp5_;
01355        gchar* _tmp6_;
01356        UnityProtocolPreviewActionRaw* _tmp7_;
01357        const gchar* _tmp8_;
01358        gchar* _tmp9_;
01359        gchar* _tmp10_ = NULL;
01360        GIcon* _tmp11_;
01361        UnityProtocolPreviewActionRaw* _tmp15_;
01362        const gchar* _tmp16_;
01363        gchar* _tmp17_;
01364        UnityProtocolPreviewActionRaw* _tmp18_;
01365        guint _tmp19_;
01366        UnityProtocolPreviewActionRaw* _tmp20_;
01367        gint _tmp20__length1;
01368        UnityProtocolPreviewActionRaw* _tmp21_;
01369        UnityProtocolPreviewActionRaw* _tmp22_;
01370        UnityProtocolPreviewActionRaw _tmp23_ = {0};
01371        g_return_if_fail (self != NULL);
01372        g_return_if_fail (id != NULL);
01373        g_return_if_fail (display_name != NULL);
01374        unity_protocol_preview_action_raw_init (&_tmp0_);
01375        _tmp1_ = _tmp0_;
01376        _tmp2_ = _unity_protocol_preview_action_raw_dup0 (&_tmp1_);
01377        _tmp3_ = _tmp2_;
01378        unity_protocol_preview_action_raw_destroy (&_tmp1_);
01379        action_raw = _tmp3_;
01380        _tmp4_ = action_raw;
01381        _tmp5_ = id;
01382        _tmp6_ = g_strdup (_tmp5_);
01383        _g_free0 ((*_tmp4_).id);
01384        (*_tmp4_).id = _tmp6_;
01385        _tmp7_ = action_raw;
01386        _tmp8_ = display_name;
01387        _tmp9_ = g_strdup (_tmp8_);
01388        _g_free0 ((*_tmp7_).display_name);
01389        (*_tmp7_).display_name = _tmp9_;
01390        _tmp11_ = icon;
01391        if (_tmp11_ != NULL) {
01392               GIcon* _tmp12_;
01393               gchar* _tmp13_ = NULL;
01394               _tmp12_ = icon;
01395               _tmp13_ = g_icon_to_string (_tmp12_);
01396               _g_free0 (_tmp10_);
01397               _tmp10_ = _tmp13_;
01398        } else {
01399               gchar* _tmp14_;
01400               _tmp14_ = g_strdup ("");
01401               _g_free0 (_tmp10_);
01402               _tmp10_ = _tmp14_;
01403        }
01404        _tmp15_ = action_raw;
01405        _tmp16_ = _tmp10_;
01406        _tmp17_ = g_strdup (_tmp16_);
01407        _g_free0 ((*_tmp15_).icon_hint);
01408        (*_tmp15_).icon_hint = _tmp17_;
01409        _tmp18_ = action_raw;
01410        _tmp19_ = layout_hint;
01411        (*_tmp18_).layout_hint = _tmp19_;
01412        _tmp20_ = self->priv->_actions_raw;
01413        _tmp20__length1 = self->priv->_actions_raw_length1;
01414        _tmp21_ = action_raw;
01415        action_raw = NULL;
01416        _tmp22_ = _tmp21_;
01417        unity_protocol_preview_action_raw_copy (_tmp22_, &_tmp23_);
01418        _vala_array_add1 (&self->priv->_actions_raw, &self->priv->_actions_raw_length1, &self->priv->__actions_raw_size_, &_tmp23_);
01419        _unity_protocol_preview_action_raw_free0 (_tmp22_);
01420        _g_free0 (_tmp10_);
01421        _unity_protocol_preview_action_raw_free0 (action_raw);
01422 }
01423 
01424 
01425 UnityProtocolPreviewActionRaw* unity_protocol_preview_get_actions (UnityProtocolPreview* self, int* result_length1) {
01426        UnityProtocolPreviewActionRaw* result = NULL;
01427        UnityProtocolPreviewActionRaw* _tmp0_;
01428        gint _tmp0__length1;
01429        UnityProtocolPreviewActionRaw* _tmp1_;
01430        gint _tmp1__length1;
01431        g_return_val_if_fail (self != NULL, NULL);
01432        _tmp0_ = self->priv->_actions_raw;
01433        _tmp0__length1 = self->priv->_actions_raw_length1;
01434        _tmp1_ = _tmp0_;
01435        _tmp1__length1 = _tmp0__length1;
01436        if (result_length1) {
01437               *result_length1 = _tmp1__length1;
01438        }
01439        result = _tmp1_;
01440        return result;
01441 }
01442 
01443 
01444 static gpointer _unity_protocol_info_hint_raw_dup0 (gpointer self) {
01445        return self ? unity_protocol_info_hint_raw_dup (self) : NULL;
01446 }
01447 
01448 
01449 static void _vala_array_add2 (UnityProtocolInfoHintRaw** array, int* length, int* size, const UnityProtocolInfoHintRaw* value) {
01450        if ((*length) == (*size)) {
01451               *size = (*size) ? (2 * (*size)) : 4;
01452               *array = g_renew (UnityProtocolInfoHintRaw, *array, *size);
01453        }
01454        (*array)[(*length)++] = *value;
01455 }
01456 
01457 
01458 void unity_protocol_preview_add_info_hint (UnityProtocolPreview* self, const gchar* id, const gchar* display_name, GIcon* icon_hint, GVariant* value) {
01459        UnityProtocolInfoHintRaw _tmp0_ = {0};
01460        UnityProtocolInfoHintRaw _tmp1_;
01461        UnityProtocolInfoHintRaw* _tmp2_;
01462        UnityProtocolInfoHintRaw* _tmp3_;
01463        UnityProtocolInfoHintRaw* info;
01464        UnityProtocolInfoHintRaw* _tmp4_;
01465        const gchar* _tmp5_;
01466        gchar* _tmp6_;
01467        UnityProtocolInfoHintRaw* _tmp7_;
01468        const gchar* _tmp8_;
01469        gchar* _tmp9_;
01470        gchar* _tmp10_ = NULL;
01471        GIcon* _tmp11_;
01472        UnityProtocolInfoHintRaw* _tmp15_;
01473        const gchar* _tmp16_;
01474        gchar* _tmp17_;
01475        UnityProtocolInfoHintRaw* _tmp18_;
01476        GVariant* _tmp19_;
01477        GVariant* _tmp20_;
01478        UnityProtocolInfoHintRaw* _tmp21_;
01479        gint _tmp21__length1;
01480        UnityProtocolInfoHintRaw* _tmp22_;
01481        UnityProtocolInfoHintRaw* _tmp23_;
01482        UnityProtocolInfoHintRaw _tmp24_ = {0};
01483        g_return_if_fail (self != NULL);
01484        g_return_if_fail (id != NULL);
01485        g_return_if_fail (display_name != NULL);
01486        g_return_if_fail (value != NULL);
01487        memset (&_tmp0_, 0, sizeof (UnityProtocolInfoHintRaw));
01488        _tmp1_ = _tmp0_;
01489        _tmp2_ = _unity_protocol_info_hint_raw_dup0 (&_tmp1_);
01490        _tmp3_ = _tmp2_;
01491        unity_protocol_info_hint_raw_destroy (&_tmp1_);
01492        info = _tmp3_;
01493        _tmp4_ = info;
01494        _tmp5_ = id;
01495        _tmp6_ = g_strdup (_tmp5_);
01496        _g_free0 ((*_tmp4_).id);
01497        (*_tmp4_).id = _tmp6_;
01498        _tmp7_ = info;
01499        _tmp8_ = display_name;
01500        _tmp9_ = g_strdup (_tmp8_);
01501        _g_free0 ((*_tmp7_).display_name);
01502        (*_tmp7_).display_name = _tmp9_;
01503        _tmp11_ = icon_hint;
01504        if (_tmp11_ != NULL) {
01505               GIcon* _tmp12_;
01506               gchar* _tmp13_ = NULL;
01507               _tmp12_ = icon_hint;
01508               _tmp13_ = g_icon_to_string (_tmp12_);
01509               _g_free0 (_tmp10_);
01510               _tmp10_ = _tmp13_;
01511        } else {
01512               gchar* _tmp14_;
01513               _tmp14_ = g_strdup ("");
01514               _g_free0 (_tmp10_);
01515               _tmp10_ = _tmp14_;
01516        }
01517        _tmp15_ = info;
01518        _tmp16_ = _tmp10_;
01519        _tmp17_ = g_strdup (_tmp16_);
01520        _g_free0 ((*_tmp15_).icon_hint);
01521        (*_tmp15_).icon_hint = _tmp17_;
01522        _tmp18_ = info;
01523        _tmp19_ = value;
01524        _tmp20_ = _g_variant_ref0 (_tmp19_);
01525        _g_variant_unref0 ((*_tmp18_).value);
01526        (*_tmp18_).value = _tmp20_;
01527        _tmp21_ = self->priv->_info_hints;
01528        _tmp21__length1 = self->priv->_info_hints_length1;
01529        _tmp22_ = info;
01530        info = NULL;
01531        _tmp23_ = _tmp22_;
01532        unity_protocol_info_hint_raw_copy (_tmp23_, &_tmp24_);
01533        _vala_array_add2 (&self->priv->_info_hints, &self->priv->_info_hints_length1, &self->priv->__info_hints_size_, &_tmp24_);
01534        _unity_protocol_info_hint_raw_free0 (_tmp23_);
01535        _g_free0 (_tmp10_);
01536        _unity_protocol_info_hint_raw_free0 (info);
01537 }
01538 
01539 
01540 static const gchar* unity_protocol_preview_real_get_renderer_name (UnityProtocolPreview* self) {
01541        g_critical ("Type `%s' does not implement abstract method `unity_protocol_preview_get_renderer_name'", g_type_name (G_TYPE_FROM_INSTANCE (self)));
01542        return NULL;
01543 }
01544 
01545 
01546 const gchar* unity_protocol_preview_get_renderer_name (UnityProtocolPreview* self) {
01547        g_return_val_if_fail (self != NULL, NULL);
01548        return UNITY_PROTOCOL_PREVIEW_GET_CLASS (self)->get_renderer_name (self);
01549 }
01550 
01551 
01552 UnityProtocolInfoHintRaw* unity_protocol_preview_get_info_hints (UnityProtocolPreview* self, int* result_length1) {
01553        UnityProtocolInfoHintRaw* result = NULL;
01554        UnityProtocolInfoHintRaw* _tmp0_;
01555        gint _tmp0__length1;
01556        UnityProtocolInfoHintRaw* _tmp1_;
01557        gint _tmp1__length1;
01558        g_return_val_if_fail (self != NULL, NULL);
01559        _tmp0_ = self->priv->_info_hints;
01560        _tmp0__length1 = self->priv->_info_hints_length1;
01561        _tmp1_ = _tmp0_;
01562        _tmp1__length1 = _tmp0__length1;
01563        if (result_length1) {
01564               *result_length1 = _tmp1__length1;
01565        }
01566        result = _tmp1_;
01567        return result;
01568 }
01569 
01570 
01571 static void unity_protocol_preview_real_update_property (UnityProtocolPreview* self, GHashTable* properties) {
01572        g_return_if_fail (properties != NULL);
01573 }
01574 
01575 
01576 void unity_protocol_preview_update_property (UnityProtocolPreview* self, GHashTable* properties) {
01577        g_return_if_fail (self != NULL);
01578        UNITY_PROTOCOL_PREVIEW_GET_CLASS (self)->update_property (self, properties);
01579 }
01580 
01581 
01582 static void unity_protocol_preview_real_add_properties (UnityProtocolPreview* self, GHashTable* properties) {
01583        g_return_if_fail (properties != NULL);
01584 }
01585 
01586 
01587 void unity_protocol_preview_add_properties (UnityProtocolPreview* self, GHashTable* properties) {
01588        g_return_if_fail (self != NULL);
01589        UNITY_PROTOCOL_PREVIEW_GET_CLASS (self)->add_properties (self, properties);
01590 }
01591 
01592 
01593 void unity_protocol_preview_add_update (UnityProtocolPreview* self, const gchar* property, GVariant* value) {
01594        GHashTable* _tmp0_;
01595        g_return_if_fail (self != NULL);
01596        g_return_if_fail (property != NULL);
01597        g_return_if_fail (value != NULL);
01598        _tmp0_ = self->priv->_updates;
01599        if (_tmp0_ != NULL) {
01600               GHashTable* _tmp1_;
01601               const gchar* _tmp2_;
01602               gchar* _tmp3_;
01603               GVariant* _tmp4_;
01604               GVariant* _tmp5_;
01605               _tmp1_ = self->priv->_updates;
01606               _tmp2_ = property;
01607               _tmp3_ = g_strdup (_tmp2_);
01608               _tmp4_ = value;
01609               _tmp5_ = _g_variant_ref0 (_tmp4_);
01610               g_hash_table_insert (_tmp1_, _tmp3_, _tmp5_);
01611        }
01612 }
01613 
01614 
01615 GHashTable* unity_protocol_preview_get_properties (UnityProtocolPreview* self) {
01616        GHashTable* result = NULL;
01617        GHashFunc _tmp0_;
01618        GEqualFunc _tmp1_;
01619        GHashTable* _tmp2_;
01620        GHashTable* properties;
01621        g_return_val_if_fail (self != NULL, NULL);
01622        _tmp0_ = g_str_hash;
01623        _tmp1_ = g_str_equal;
01624        _tmp2_ = g_hash_table_new_full (_tmp0_, _tmp1_, _g_free0_, _g_variant_unref0_);
01625        properties = _tmp2_;
01626        unity_protocol_preview_add_properties (self, properties);
01627        result = properties;
01628        return result;
01629 }
01630 
01631 
01632 static UnityProtocolPreviewActionRaw* _vala_array_dup3 (UnityProtocolPreviewActionRaw* self, int length) {
01633        UnityProtocolPreviewActionRaw* result;
01634        int i;
01635        result = g_new0 (UnityProtocolPreviewActionRaw, length);
01636        for (i = 0; i < length; i++) {
01637               UnityProtocolPreviewActionRaw _tmp0_ = {0};
01638               unity_protocol_preview_action_raw_copy (&self[i], &_tmp0_);
01639               result[i] = _tmp0_;
01640        }
01641        return result;
01642 }
01643 
01644 
01645 static UnityProtocolInfoHintRaw* _vala_array_dup4 (UnityProtocolInfoHintRaw* self, int length) {
01646        UnityProtocolInfoHintRaw* result;
01647        int i;
01648        result = g_new0 (UnityProtocolInfoHintRaw, length);
01649        for (i = 0; i < length; i++) {
01650               UnityProtocolInfoHintRaw _tmp0_ = {0};
01651               unity_protocol_info_hint_raw_copy (&self[i], &_tmp0_);
01652               result[i] = _tmp0_;
01653        }
01654        return result;
01655 }
01656 
01657 
01658 static GVariant* unity_protocol_preview_real_serialize (DeeSerializable* base) {
01659        UnityProtocolPreview * self;
01660        GVariant* result = NULL;
01661        const gchar* _tmp0_ = NULL;
01662        gchar* _tmp1_;
01663        const gchar* _tmp2_ = NULL;
01664        const gchar* _tmp3_;
01665        const gchar* _tmp5_;
01666        gchar* _tmp6_;
01667        const gchar* _tmp7_ = NULL;
01668        const gchar* _tmp8_;
01669        const gchar* _tmp10_;
01670        gchar* _tmp11_;
01671        const gchar* _tmp12_ = NULL;
01672        const gchar* _tmp13_;
01673        const gchar* _tmp15_;
01674        gchar* _tmp16_;
01675        gchar* _tmp17_ = NULL;
01676        GIcon* _tmp18_;
01677        const gchar* _tmp22_;
01678        gchar* _tmp23_;
01679        UnityProtocolPreviewActionRaw* _tmp24_;
01680        gint _tmp24__length1;
01681        UnityProtocolPreviewActionRaw* _tmp25_;
01682        gint _tmp25__length1;
01683        UnityProtocolInfoHintRaw* _tmp26_;
01684        gint _tmp26__length1;
01685        UnityProtocolInfoHintRaw* _tmp27_;
01686        gint _tmp27__length1;
01687        GHashTable* _tmp28_ = NULL;
01688        GVariant* _tmp29_ = NULL;
01689        self = (UnityProtocolPreview*) base;
01690        _tmp0_ = unity_protocol_preview_get_renderer_name (self);
01691        _tmp1_ = g_strdup (_tmp0_);
01692        _g_free0 (self->priv->_raw.renderer_name);
01693        self->priv->_raw.renderer_name = _tmp1_;
01694        _tmp3_ = self->priv->_title;
01695        if (_tmp3_ != NULL) {
01696               const gchar* _tmp4_;
01697               _tmp4_ = self->priv->_title;
01698               _tmp2_ = _tmp4_;
01699        } else {
01700               _tmp2_ = "";
01701        }
01702        _tmp5_ = _tmp2_;
01703        _tmp6_ = g_strdup (_tmp5_);
01704        _g_free0 (self->priv->_raw.title);
01705        self->priv->_raw.title = _tmp6_;
01706        _tmp8_ = self->priv->_subtitle;
01707        if (_tmp8_ != NULL) {
01708               const gchar* _tmp9_;
01709               _tmp9_ = self->priv->_subtitle;
01710               _tmp7_ = _tmp9_;
01711        } else {
01712               _tmp7_ = "";
01713        }
01714        _tmp10_ = _tmp7_;
01715        _tmp11_ = g_strdup (_tmp10_);
01716        _g_free0 (self->priv->_raw.subtitle);
01717        self->priv->_raw.subtitle = _tmp11_;
01718        _tmp13_ = self->priv->_description;
01719        if (_tmp13_ != NULL) {
01720               const gchar* _tmp14_;
01721               _tmp14_ = self->priv->_description;
01722               _tmp12_ = _tmp14_;
01723        } else {
01724               _tmp12_ = "";
01725        }
01726        _tmp15_ = _tmp12_;
01727        _tmp16_ = g_strdup (_tmp15_);
01728        _g_free0 (self->priv->_raw.description);
01729        self->priv->_raw.description = _tmp16_;
01730        _tmp18_ = self->priv->_thumbnail;
01731        if (_tmp18_ != NULL) {
01732               GIcon* _tmp19_;
01733               gchar* _tmp20_ = NULL;
01734               _tmp19_ = self->priv->_thumbnail;
01735               _tmp20_ = g_icon_to_string (_tmp19_);
01736               _g_free0 (_tmp17_);
01737               _tmp17_ = _tmp20_;
01738        } else {
01739               gchar* _tmp21_;
01740               _tmp21_ = g_strdup ("");
01741               _g_free0 (_tmp17_);
01742               _tmp17_ = _tmp21_;
01743        }
01744        _tmp22_ = _tmp17_;
01745        _tmp23_ = g_strdup (_tmp22_);
01746        _g_free0 (self->priv->_raw.thumbnail_hint);
01747        self->priv->_raw.thumbnail_hint = _tmp23_;
01748        _tmp24_ = self->priv->_actions_raw;
01749        _tmp24__length1 = self->priv->_actions_raw_length1;
01750        _tmp25_ = (_tmp24_ != NULL) ? _vala_array_dup3 (_tmp24_, _tmp24__length1) : ((gpointer) _tmp24_);
01751        _tmp25__length1 = _tmp24__length1;
01752        self->priv->_raw.actions = (_vala_UnityProtocolPreviewActionRaw_array_free (self->priv->_raw.actions, self->priv->_raw.actions_length1), NULL);
01753        self->priv->_raw.actions = _tmp25_;
01754        self->priv->_raw.actions_length1 = _tmp25__length1;
01755        self->priv->_raw._actions_size_ = self->priv->_raw.actions_length1;
01756        _tmp26_ = self->priv->_info_hints;
01757        _tmp26__length1 = self->priv->_info_hints_length1;
01758        _tmp27_ = (_tmp26_ != NULL) ? _vala_array_dup4 (_tmp26_, _tmp26__length1) : ((gpointer) _tmp26_);
01759        _tmp27__length1 = _tmp26__length1;
01760        self->priv->_raw.info_hints = (_vala_UnityProtocolInfoHintRaw_array_free (self->priv->_raw.info_hints, self->priv->_raw.info_hints_length1), NULL);
01761        self->priv->_raw.info_hints = _tmp27_;
01762        self->priv->_raw.info_hints_length1 = _tmp27__length1;
01763        self->priv->_raw._info_hints_size_ = self->priv->_raw.info_hints_length1;
01764        _tmp28_ = unity_protocol_preview_get_properties (self);
01765        _g_hash_table_unref0 (self->priv->_raw.hints);
01766        self->priv->_raw.hints = _tmp28_;
01767        _tmp29_ = unity_protocol_preview_raw_to_variant (&self->priv->_raw);
01768        result = _tmp29_;
01769        _g_free0 (_tmp17_);
01770        return result;
01771 }
01772 
01773 
01774 static gchar string_get (const gchar* self, glong index) {
01775        gchar result = '\0';
01776        glong _tmp0_;
01777        gchar _tmp1_;
01778        g_return_val_if_fail (self != NULL, '\0');
01779        _tmp0_ = index;
01780        _tmp1_ = ((gchar*) self)[_tmp0_];
01781        result = _tmp1_;
01782        return result;
01783 }
01784 
01785 
01786 GIcon* unity_protocol_preview_string_to_icon (const gchar* s) {
01787        GIcon* result = NULL;
01788        const gchar* _tmp0_;
01789        gchar _tmp1_ = '\0';
01790        GError * _inner_error_ = NULL;
01791        g_return_val_if_fail (s != NULL, NULL);
01792        _tmp0_ = s;
01793        _tmp1_ = string_get (_tmp0_, (glong) 0);
01794        if (_tmp1_ != '\0') {
01795               {
01796                      const gchar* _tmp2_;
01797                      GIcon* _tmp3_ = NULL;
01798                      GIcon* _tmp4_;
01799                      _tmp2_ = s;
01800                      _tmp3_ = g_icon_new_for_string (_tmp2_, &_inner_error_);
01801                      _tmp4_ = _tmp3_;
01802                      if (_inner_error_ != NULL) {
01803                             goto __catch0_g_error;
01804                      }
01805                      result = _tmp4_;
01806                      return result;
01807               }
01808               goto __finally0;
01809               __catch0_g_error:
01810               {
01811                      GError* err = NULL;
01812                      GError* _tmp5_;
01813                      const gchar* _tmp6_;
01814                      err = _inner_error_;
01815                      _inner_error_ = NULL;
01816                      _tmp5_ = err;
01817                      _tmp6_ = _tmp5_->message;
01818                      g_warning ("protocol-previews.vala:230: Failed to deserialize GIcon: %s", _tmp6_);
01819                      result = NULL;
01820                      _g_error_free0 (err);
01821                      return result;
01822               }
01823               __finally0:
01824               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);
01825               g_clear_error (&_inner_error_);
01826               return NULL;
01827        }
01828        result = NULL;
01829        return result;
01830 }
01831 
01832 
01833 GIcon* unity_protocol_preview_variant_to_icon (GVariant* v) {
01834        GIcon* result = NULL;
01835        GIcon* _tmp0_ = NULL;
01836        GVariant* _tmp1_;
01837        _tmp1_ = v;
01838        if (_tmp1_ != NULL) {
01839               GVariant* _tmp2_;
01840               const gchar* _tmp3_ = NULL;
01841               GIcon* _tmp4_ = NULL;
01842               _tmp2_ = v;
01843               _tmp3_ = g_variant_get_string (_tmp2_, NULL);
01844               _tmp4_ = unity_protocol_preview_string_to_icon (_tmp3_);
01845               _g_object_unref0 (_tmp0_);
01846               _tmp0_ = _tmp4_;
01847        } else {
01848               _g_object_unref0 (_tmp0_);
01849               _tmp0_ = NULL;
01850        }
01851        result = _tmp0_;
01852        return result;
01853 }
01854 
01855 
01856 static void unity_protocol_preview_register_parsers (void) {
01857        GTypeClass* _tmp0_ = NULL;
01858        GTypeClass* _tmp1_;
01859        GTypeClass* _tmp2_ = NULL;
01860        GTypeClass* _tmp3_;
01861        GTypeClass* _tmp4_ = NULL;
01862        GTypeClass* _tmp5_;
01863        GTypeClass* _tmp6_ = NULL;
01864        GTypeClass* _tmp7_;
01865        GTypeClass* _tmp8_ = NULL;
01866        GTypeClass* _tmp9_;
01867        _tmp0_ = g_type_class_ref (UNITY_PROTOCOL_TYPE_GENERIC_PREVIEW);
01868        _tmp1_ = _tmp0_;
01869        _g_type_class_unref0 (_tmp1_);
01870        _tmp2_ = g_type_class_ref (UNITY_PROTOCOL_TYPE_APPLICATION_PREVIEW);
01871        _tmp3_ = _tmp2_;
01872        _g_type_class_unref0 (_tmp3_);
01873        _tmp4_ = g_type_class_ref (UNITY_PROTOCOL_TYPE_MUSIC_PREVIEW);
01874        _tmp5_ = _tmp4_;
01875        _g_type_class_unref0 (_tmp5_);
01876        _tmp6_ = g_type_class_ref (UNITY_PROTOCOL_TYPE_MOVIE_PREVIEW);
01877        _tmp7_ = _tmp6_;
01878        _g_type_class_unref0 (_tmp7_);
01879        _tmp8_ = g_type_class_ref (UNITY_PROTOCOL_TYPE_SERIES_PREVIEW);
01880        _tmp9_ = _tmp8_;
01881        _g_type_class_unref0 (_tmp9_);
01882 }
01883 
01884 
01885 static gpointer _g_object_ref0 (gpointer self) {
01886        return self ? g_object_ref (self) : NULL;
01887 }
01888 
01889 
01890 UnityProtocolPreview* unity_protocol_preview_parse (GVariant* data) {
01891        UnityProtocolPreview* result = NULL;
01892        gboolean _tmp0_;
01893        GObject* result_obj;
01894        GVariant* _tmp1_;
01895        GVariant* _tmp2_ = NULL;
01896        GVariant* _tmp3_;
01897        const gchar* _tmp4_ = NULL;
01898        const gchar* _tmp5_;
01899        const gchar* renderer;
01900        const gchar* _tmp6_;
01901        const gchar* _tmp7_;
01902        GQuark _tmp9_ = 0U;
01903        GObject* _tmp21_;
01904        UnityProtocolPreview* _tmp22_;
01905        g_return_val_if_fail (data != NULL, NULL);
01906        _tmp0_ = unity_protocol_preview_parsers_registered;
01907        if (!_tmp0_) {
01908               unity_protocol_preview_register_parsers ();
01909               unity_protocol_preview_parsers_registered = TRUE;
01910        }
01911        result_obj = NULL;
01912        _tmp1_ = data;
01913        _tmp2_ = g_variant_get_child_value (_tmp1_, (gsize) 0);
01914        _tmp3_ = _tmp2_;
01915        _tmp4_ = g_variant_get_string (_tmp3_, NULL);
01916        _tmp5_ = _tmp4_;
01917        _g_variant_unref0 (_tmp3_);
01918        renderer = _tmp5_;
01919        _tmp6_ = renderer;
01920        _tmp7_ = _tmp6_;
01921        _tmp9_ = (NULL == _tmp7_) ? 0 : g_quark_from_string (_tmp7_);
01922        if (_tmp9_ == g_quark_from_string (UNITY_PROTOCOL_GENERIC_PREVIEW_RENDERER_NAME)) {
01923               switch (0) {
01924                      default:
01925                      {
01926                             GVariant* _tmp10_;
01927                             GObject* _tmp11_ = NULL;
01928                             _tmp10_ = data;
01929                             _tmp11_ = dee_serializable_parse (_tmp10_, UNITY_PROTOCOL_TYPE_GENERIC_PREVIEW);
01930                             _g_object_unref0 (result_obj);
01931                             result_obj = _tmp11_;
01932                             break;
01933                      }
01934               }
01935        } else if (_tmp9_ == g_quark_from_string (UNITY_PROTOCOL_APPLICATION_PREVIEW_RENDERER_NAME)) {
01936               switch (0) {
01937                      default:
01938                      {
01939                             GVariant* _tmp12_;
01940                             GObject* _tmp13_ = NULL;
01941                             _tmp12_ = data;
01942                             _tmp13_ = dee_serializable_parse (_tmp12_, UNITY_PROTOCOL_TYPE_APPLICATION_PREVIEW);
01943                             _g_object_unref0 (result_obj);
01944                             result_obj = _tmp13_;
01945                             break;
01946                      }
01947               }
01948        } else if (_tmp9_ == g_quark_from_string (UNITY_PROTOCOL_MUSIC_PREVIEW_RENDERER_NAME)) {
01949               switch (0) {
01950                      default:
01951                      {
01952                             GVariant* _tmp14_;
01953                             GObject* _tmp15_ = NULL;
01954                             _tmp14_ = data;
01955                             _tmp15_ = dee_serializable_parse (_tmp14_, UNITY_PROTOCOL_TYPE_MUSIC_PREVIEW);
01956                             _g_object_unref0 (result_obj);
01957                             result_obj = _tmp15_;
01958                             break;
01959                      }
01960               }
01961        } else if (_tmp9_ == g_quark_from_string (UNITY_PROTOCOL_MOVIE_PREVIEW_RENDERER_NAME)) {
01962               switch (0) {
01963                      default:
01964                      {
01965                             GVariant* _tmp16_;
01966                             GObject* _tmp17_ = NULL;
01967                             _tmp16_ = data;
01968                             _tmp17_ = dee_serializable_parse (_tmp16_, UNITY_PROTOCOL_TYPE_MOVIE_PREVIEW);
01969                             _g_object_unref0 (result_obj);
01970                             result_obj = _tmp17_;
01971                             break;
01972                      }
01973               }
01974        } else if (_tmp9_ == g_quark_from_string (UNITY_PROTOCOL_SERIES_PREVIEW_RENDERER_NAME)) {
01975               switch (0) {
01976                      default:
01977                      {
01978                             GVariant* _tmp18_;
01979                             GObject* _tmp19_ = NULL;
01980                             _tmp18_ = data;
01981                             _tmp19_ = dee_serializable_parse (_tmp18_, UNITY_PROTOCOL_TYPE_SERIES_PREVIEW);
01982                             _g_object_unref0 (result_obj);
01983                             result_obj = _tmp19_;
01984                             break;
01985                      }
01986               }
01987        } else {
01988               switch (0) {
01989                      default:
01990                      {
01991                             const gchar* _tmp20_;
01992                             _tmp20_ = renderer;
01993                             g_warning ("protocol-previews.vala:280: Unknown preview renderer: %s", _tmp20_);
01994                             break;
01995                      }
01996               }
01997        }
01998        _tmp21_ = result_obj;
01999        _tmp22_ = _g_object_ref0 (G_TYPE_CHECK_INSTANCE_TYPE (_tmp21_, UNITY_PROTOCOL_TYPE_PREVIEW) ? ((UnityProtocolPreview*) _tmp21_) : NULL);
02000        result = _tmp22_;
02001        _g_object_unref0 (result_obj);
02002        return result;
02003 }
02004 
02005 
02006 gpointer unity_protocol_preview_deserialize (GType t_type, GBoxedCopyFunc t_dup_func, GDestroyNotify t_destroy_func, GVariant* data, GHashTable** out_properties) {
02007        GHashTable* _vala_out_properties = NULL;
02008        gpointer result = NULL;
02009        gboolean _tmp0_ = FALSE;
02010        GObject* _tmp1_ = NULL;
02011        GObject* _tmp2_;
02012        UnityProtocolPreview* _result_;
02013        GVariant* _tmp3_;
02014        UnityProtocolPreviewRaw* _tmp4_ = NULL;
02015        UnityProtocolPreviewRaw* raw;
02016        GHashTable* _tmp5_;
02017        GHashTable* _tmp6_;
02018        const gchar* _tmp7_;
02019        const gchar* _tmp8_;
02020        const gchar* _tmp9_;
02021        const gchar* _tmp10_;
02022        GIcon* _tmp11_ = NULL;
02023        GIcon* _tmp12_;
02024        UnityProtocolPreviewActionRaw* _tmp13_;
02025        gint _tmp13__length1;
02026        UnityProtocolInfoHintRaw* _tmp14_;
02027        gint _tmp14__length1;
02028        gpointer _tmp15_;
02029        g_return_val_if_fail (data != NULL, NULL);
02030        _tmp0_ = g_type_is_a (t_type, UNITY_PROTOCOL_TYPE_PREVIEW);
02031        g_return_val_if_fail (_tmp0_, NULL);
02032        _tmp1_ = g_object_new (t_type, NULL);
02033        _tmp2_ = G_IS_INITIALLY_UNOWNED (_tmp1_) ? g_object_ref_sink (_tmp1_) : _tmp1_;
02034        _result_ = G_TYPE_CHECK_INSTANCE_TYPE (_tmp2_, UNITY_PROTOCOL_TYPE_PREVIEW) ? ((UnityProtocolPreview*) _tmp2_) : NULL;
02035        _tmp3_ = data;
02036        _tmp4_ = unity_protocol_preview_raw_from_variant (_tmp3_);
02037        raw = _tmp4_;
02038        _tmp5_ = (*raw).hints;
02039        _tmp6_ = _g_hash_table_ref0 (_tmp5_);
02040        _g_hash_table_unref0 (_vala_out_properties);
02041        _vala_out_properties = _tmp6_;
02042        _tmp7_ = (*raw).title;
02043        unity_protocol_preview_set_title (_result_, _tmp7_);
02044        _tmp8_ = (*raw).subtitle;
02045        unity_protocol_preview_set_subtitle (_result_, _tmp8_);
02046        _tmp9_ = (*raw).description;
02047        unity_protocol_preview_set_description (_result_, _tmp9_);
02048        _tmp10_ = (*raw).thumbnail_hint;
02049        _tmp11_ = unity_protocol_preview_string_to_icon (_tmp10_);
02050        _tmp12_ = _tmp11_;
02051        unity_protocol_preview_set_thumbnail (_result_, _tmp12_);
02052        _g_object_unref0 (_tmp12_);
02053        _tmp13_ = (*raw).actions;
02054        _tmp13__length1 = (*raw).actions_length1;
02055        (*raw).actions = NULL;
02056        _result_->priv->_actions_raw = (_vala_UnityProtocolPreviewActionRaw_array_free (_result_->priv->_actions_raw, _result_->priv->_actions_raw_length1), NULL);
02057        _result_->priv->_actions_raw = _tmp13_;
02058        _result_->priv->_actions_raw_length1 = _tmp13__length1;
02059        _result_->priv->__actions_raw_size_ = _result_->priv->_actions_raw_length1;
02060        _tmp14_ = (*raw).info_hints;
02061        _tmp14__length1 = (*raw).info_hints_length1;
02062        (*raw).info_hints = NULL;
02063        _result_->priv->_info_hints = (_vala_UnityProtocolInfoHintRaw_array_free (_result_->priv->_info_hints, _result_->priv->_info_hints_length1), NULL);
02064        _result_->priv->_info_hints = _tmp14_;
02065        _result_->priv->_info_hints_length1 = _tmp14__length1;
02066        _result_->priv->__info_hints_size_ = _result_->priv->_info_hints_length1;
02067        _tmp15_ = ((((gconstpointer) _result_) != NULL) && (t_dup_func != NULL)) ? t_dup_func ((gpointer) ((gconstpointer) _result_)) : ((gpointer) ((gconstpointer) _result_));
02068        result = _tmp15_;
02069        _unity_protocol_preview_raw_free0 (raw);
02070        _g_object_unref0 (_result_);
02071        if (out_properties) {
02072               *out_properties = _vala_out_properties;
02073        } else {
02074               _g_hash_table_unref0 (_vala_out_properties);
02075        }
02076        return result;
02077 }
02078 
02079 
02080 void unity_protocol_preview_checked_set (GVariant* v, GFunc f, void* f_target) {
02081        GVariant* _tmp0_;
02082        _tmp0_ = v;
02083        if (_tmp0_ != NULL) {
02084               GFunc _tmp1_;
02085               void* _tmp1__target;
02086               GVariant* _tmp2_;
02087               _tmp1_ = f;
02088               _tmp1__target = f_target;
02089               _tmp2_ = v;
02090               _tmp1_ (_tmp2_, _tmp1__target);
02091        }
02092 }
02093 
02094 
02095 UnityProtocolPreview* unity_protocol_preview_construct (GType object_type) {
02096        UnityProtocolPreview * self = NULL;
02097        self = (UnityProtocolPreview*) g_object_new (object_type, NULL);
02098        return self;
02099 }
02100 
02101 
02102 const gchar* unity_protocol_preview_get_title (UnityProtocolPreview* self) {
02103        const gchar* result;
02104        const gchar* _tmp0_;
02105        g_return_val_if_fail (self != NULL, NULL);
02106        _tmp0_ = self->priv->_title;
02107        result = _tmp0_;
02108        return result;
02109 }
02110 
02111 
02112 void unity_protocol_preview_set_title (UnityProtocolPreview* self, const gchar* value) {
02113        const gchar* _tmp0_;
02114        gchar* _tmp1_;
02115        g_return_if_fail (self != NULL);
02116        _tmp0_ = value;
02117        _tmp1_ = g_strdup (_tmp0_);
02118        _g_free0 (self->priv->_title);
02119        self->priv->_title = _tmp1_;
02120        g_object_notify ((GObject *) self, "title");
02121 }
02122 
02123 
02124 const gchar* unity_protocol_preview_get_subtitle (UnityProtocolPreview* self) {
02125        const gchar* result;
02126        const gchar* _tmp0_;
02127        g_return_val_if_fail (self != NULL, NULL);
02128        _tmp0_ = self->priv->_subtitle;
02129        result = _tmp0_;
02130        return result;
02131 }
02132 
02133 
02134 void unity_protocol_preview_set_subtitle (UnityProtocolPreview* self, const gchar* value) {
02135        const gchar* _tmp0_;
02136        gchar* _tmp1_;
02137        g_return_if_fail (self != NULL);
02138        _tmp0_ = value;
02139        _tmp1_ = g_strdup (_tmp0_);
02140        _g_free0 (self->priv->_subtitle);
02141        self->priv->_subtitle = _tmp1_;
02142        g_object_notify ((GObject *) self, "subtitle");
02143 }
02144 
02145 
02146 const gchar* unity_protocol_preview_get_description (UnityProtocolPreview* self) {
02147        const gchar* result;
02148        const gchar* _tmp0_;
02149        g_return_val_if_fail (self != NULL, NULL);
02150        _tmp0_ = self->priv->_description;
02151        result = _tmp0_;
02152        return result;
02153 }
02154 
02155 
02156 void unity_protocol_preview_set_description (UnityProtocolPreview* self, const gchar* value) {
02157        const gchar* _tmp0_;
02158        gchar* _tmp1_;
02159        g_return_if_fail (self != NULL);
02160        _tmp0_ = value;
02161        _tmp1_ = g_strdup (_tmp0_);
02162        _g_free0 (self->priv->_description);
02163        self->priv->_description = _tmp1_;
02164        g_object_notify ((GObject *) self, "description");
02165 }
02166 
02167 
02168 GIcon* unity_protocol_preview_get_thumbnail (UnityProtocolPreview* self) {
02169        GIcon* result;
02170        GIcon* _tmp0_;
02171        g_return_val_if_fail (self != NULL, NULL);
02172        _tmp0_ = self->priv->_thumbnail;
02173        result = _tmp0_;
02174        return result;
02175 }
02176 
02177 
02178 void unity_protocol_preview_set_thumbnail (UnityProtocolPreview* self, GIcon* value) {
02179        GIcon* _tmp0_;
02180        GIcon* _tmp1_;
02181        g_return_if_fail (self != NULL);
02182        _tmp0_ = value;
02183        _tmp1_ = _g_object_ref0 (_tmp0_);
02184        _g_object_unref0 (self->priv->_thumbnail);
02185        self->priv->_thumbnail = _tmp1_;
02186        g_object_notify ((GObject *) self, "thumbnail");
02187 }
02188 
02189 
02190 static void unity_protocol_preview_class_init (UnityProtocolPreviewClass * klass) {
02191        unity_protocol_preview_parent_class = g_type_class_peek_parent (klass);
02192        g_type_class_add_private (klass, sizeof (UnityProtocolPreviewPrivate));
02193        UNITY_PROTOCOL_PREVIEW_CLASS (klass)->begin_updates = unity_protocol_preview_real_begin_updates;
02194        UNITY_PROTOCOL_PREVIEW_CLASS (klass)->end_updates_as_hashtable = unity_protocol_preview_real_end_updates_as_hashtable;
02195        UNITY_PROTOCOL_PREVIEW_CLASS (klass)->end_updates = unity_protocol_preview_real_end_updates;
02196        UNITY_PROTOCOL_PREVIEW_CLASS (klass)->get_renderer_name = unity_protocol_preview_real_get_renderer_name;
02197        UNITY_PROTOCOL_PREVIEW_CLASS (klass)->update_property = unity_protocol_preview_real_update_property;
02198        UNITY_PROTOCOL_PREVIEW_CLASS (klass)->add_properties = unity_protocol_preview_real_add_properties;
02199        G_OBJECT_CLASS (klass)->get_property = _vala_unity_protocol_preview_get_property;
02200        G_OBJECT_CLASS (klass)->set_property = _vala_unity_protocol_preview_set_property;
02201        G_OBJECT_CLASS (klass)->finalize = unity_protocol_preview_finalize;
02202        g_object_class_install_property (G_OBJECT_CLASS (klass), UNITY_PROTOCOL_PREVIEW_TITLE, g_param_spec_string ("title", "title", "title", NULL, G_PARAM_STATIC_NAME | G_PARAM_STATIC_NICK | G_PARAM_STATIC_BLURB | G_PARAM_READABLE | G_PARAM_WRITABLE));
02203        g_object_class_install_property (G_OBJECT_CLASS (klass), UNITY_PROTOCOL_PREVIEW_SUBTITLE, g_param_spec_string ("subtitle", "subtitle", "subtitle", NULL, G_PARAM_STATIC_NAME | G_PARAM_STATIC_NICK | G_PARAM_STATIC_BLURB | G_PARAM_READABLE | G_PARAM_WRITABLE));
02204        g_object_class_install_property (G_OBJECT_CLASS (klass), UNITY_PROTOCOL_PREVIEW_DESCRIPTION, g_param_spec_string ("description", "description", "description", NULL, G_PARAM_STATIC_NAME | G_PARAM_STATIC_NICK | G_PARAM_STATIC_BLURB | G_PARAM_READABLE | G_PARAM_WRITABLE));
02205        g_object_class_install_property (G_OBJECT_CLASS (klass), UNITY_PROTOCOL_PREVIEW_THUMBNAIL, g_param_spec_object ("thumbnail", "thumbnail", "thumbnail", G_TYPE_ICON, G_PARAM_STATIC_NAME | G_PARAM_STATIC_NICK | G_PARAM_STATIC_BLURB | G_PARAM_READABLE | G_PARAM_WRITABLE));
02206 }
02207 
02208 
02209 static void unity_protocol_preview_dee_serializable_interface_init (DeeSerializableIface * iface) {
02210        unity_protocol_preview_dee_serializable_parent_iface = g_type_interface_peek_parent (iface);
02211        iface->serialize = (GVariant* (*)(DeeSerializable*)) unity_protocol_preview_real_serialize;
02212 }
02213 
02214 
02215 static void unity_protocol_preview_instance_init (UnityProtocolPreview * self) {
02216        UnityProtocolPreviewRaw _tmp0_ = {0};
02217        self->priv = UNITY_PROTOCOL_PREVIEW_GET_PRIVATE (self);
02218        unity_protocol_preview_raw_init (&_tmp0_);
02219        self->priv->_raw = _tmp0_;
02220        self->priv->_actions_raw = NULL;
02221        self->priv->_info_hints = NULL;
02222        self->priv->_updates = NULL;
02223 }
02224 
02225 
02226 static void unity_protocol_preview_finalize (GObject* obj) {
02227        UnityProtocolPreview * self;
02228        self = G_TYPE_CHECK_INSTANCE_CAST (obj, UNITY_PROTOCOL_TYPE_PREVIEW, UnityProtocolPreview);
02229        _g_free0 (self->priv->_title);
02230        _g_free0 (self->priv->_subtitle);
02231        _g_free0 (self->priv->_description);
02232        _g_object_unref0 (self->priv->_thumbnail);
02233        unity_protocol_preview_raw_destroy (&self->priv->_raw);
02234        self->priv->_actions_raw = (_vala_UnityProtocolPreviewActionRaw_array_free (self->priv->_actions_raw, self->priv->_actions_raw_length1), NULL);
02235        self->priv->_info_hints = (_vala_UnityProtocolInfoHintRaw_array_free (self->priv->_info_hints, self->priv->_info_hints_length1), NULL);
02236        _g_hash_table_unref0 (self->priv->_updates);
02237        G_OBJECT_CLASS (unity_protocol_preview_parent_class)->finalize (obj);
02238 }
02239 
02240 
02241 GType unity_protocol_preview_get_type (void) {
02242        static volatile gsize unity_protocol_preview_type_id__volatile = 0;
02243        if (g_once_init_enter (&unity_protocol_preview_type_id__volatile)) {
02244               static const GTypeInfo g_define_type_info = { sizeof (UnityProtocolPreviewClass), (GBaseInitFunc) NULL, (GBaseFinalizeFunc) NULL, (GClassInitFunc) unity_protocol_preview_class_init, (GClassFinalizeFunc) NULL, NULL, sizeof (UnityProtocolPreview), 0, (GInstanceInitFunc) unity_protocol_preview_instance_init, NULL };
02245               static const GInterfaceInfo dee_serializable_info = { (GInterfaceInitFunc) unity_protocol_preview_dee_serializable_interface_init, (GInterfaceFinalizeFunc) NULL, NULL};
02246               GType unity_protocol_preview_type_id;
02247               unity_protocol_preview_type_id = g_type_register_static (G_TYPE_OBJECT, "UnityProtocolPreview", &g_define_type_info, G_TYPE_FLAG_ABSTRACT);
02248               g_type_add_interface_static (unity_protocol_preview_type_id, dee_serializable_get_type (), &dee_serializable_info);
02249               g_once_init_leave (&unity_protocol_preview_type_id__volatile, unity_protocol_preview_type_id);
02250        }
02251        return unity_protocol_preview_type_id__volatile;
02252 }
02253 
02254 
02255 static void _vala_unity_protocol_preview_get_property (GObject * object, guint property_id, GValue * value, GParamSpec * pspec) {
02256        UnityProtocolPreview * self;
02257        self = G_TYPE_CHECK_INSTANCE_CAST (object, UNITY_PROTOCOL_TYPE_PREVIEW, UnityProtocolPreview);
02258        switch (property_id) {
02259               case UNITY_PROTOCOL_PREVIEW_TITLE:
02260               g_value_set_string (value, unity_protocol_preview_get_title (self));
02261               break;
02262               case UNITY_PROTOCOL_PREVIEW_SUBTITLE:
02263               g_value_set_string (value, unity_protocol_preview_get_subtitle (self));
02264               break;
02265               case UNITY_PROTOCOL_PREVIEW_DESCRIPTION:
02266               g_value_set_string (value, unity_protocol_preview_get_description (self));
02267               break;
02268               case UNITY_PROTOCOL_PREVIEW_THUMBNAIL:
02269               g_value_set_object (value, unity_protocol_preview_get_thumbnail (self));
02270               break;
02271               default:
02272               G_OBJECT_WARN_INVALID_PROPERTY_ID (object, property_id, pspec);
02273               break;
02274        }
02275 }
02276 
02277 
02278 static void _vala_unity_protocol_preview_set_property (GObject * object, guint property_id, const GValue * value, GParamSpec * pspec) {
02279        UnityProtocolPreview * self;
02280        self = G_TYPE_CHECK_INSTANCE_CAST (object, UNITY_PROTOCOL_TYPE_PREVIEW, UnityProtocolPreview);
02281        switch (property_id) {
02282               case UNITY_PROTOCOL_PREVIEW_TITLE:
02283               unity_protocol_preview_set_title (self, g_value_get_string (value));
02284               break;
02285               case UNITY_PROTOCOL_PREVIEW_SUBTITLE:
02286               unity_protocol_preview_set_subtitle (self, g_value_get_string (value));
02287               break;
02288               case UNITY_PROTOCOL_PREVIEW_DESCRIPTION:
02289               unity_protocol_preview_set_description (self, g_value_get_string (value));
02290               break;
02291               case UNITY_PROTOCOL_PREVIEW_THUMBNAIL:
02292               unity_protocol_preview_set_thumbnail (self, g_value_get_object (value));
02293               break;
02294               default:
02295               G_OBJECT_WARN_INVALID_PROPERTY_ID (object, property_id, pspec);
02296               break;
02297        }
02298 }
02299 
02300 
02301 UnityProtocolGenericPreview* unity_protocol_generic_preview_construct (GType object_type) {
02302        UnityProtocolGenericPreview * self = NULL;
02303        self = (UnityProtocolGenericPreview*) g_object_new (object_type, NULL);
02304        return self;
02305 }
02306 
02307 
02308 UnityProtocolGenericPreview* unity_protocol_generic_preview_new (void) {
02309        return unity_protocol_generic_preview_construct (UNITY_PROTOCOL_TYPE_GENERIC_PREVIEW);
02310 }
02311 
02312 
02313 static const gchar* unity_protocol_generic_preview_real_get_renderer_name (UnityProtocolPreview* base) {
02314        UnityProtocolGenericPreview * self;
02315        const gchar* result = NULL;
02316        self = (UnityProtocolGenericPreview*) base;
02317        result = UNITY_PROTOCOL_GENERIC_PREVIEW_RENDERER_NAME;
02318        return result;
02319 }
02320 
02321 
02322 static GObject* _unity_protocol_generic_preview___lambda2_ (GVariant* data) {
02323        GObject* result = NULL;
02324        GVariant* _tmp0_;
02325        GVariant* _tmp1_ = NULL;
02326        GVariant* _tmp2_;
02327        const gchar* _tmp3_ = NULL;
02328        const gchar* _tmp4_;
02329        const gchar* renderer;
02330        const gchar* _tmp5_;
02331        UnityProtocolGenericPreview* _result_ = NULL;
02332        GVariant* _tmp6_;
02333        gpointer _tmp7_ = NULL;
02334        g_return_val_if_fail (data != NULL, NULL);
02335        _tmp0_ = data;
02336        _tmp1_ = g_variant_get_child_value (_tmp0_, (gsize) 0);
02337        _tmp2_ = _tmp1_;
02338        _tmp3_ = g_variant_get_string (_tmp2_, NULL);
02339        _tmp4_ = _tmp3_;
02340        _g_variant_unref0 (_tmp2_);
02341        renderer = _tmp4_;
02342        _tmp5_ = renderer;
02343        g_warn_if_fail (g_strcmp0 (_tmp5_, UNITY_PROTOCOL_GENERIC_PREVIEW_RENDERER_NAME) == 0);
02344        _tmp6_ = data;
02345        _tmp7_ = unity_protocol_preview_deserialize (UNITY_PROTOCOL_TYPE_GENERIC_PREVIEW, (GBoxedCopyFunc) g_object_ref, g_object_unref, _tmp6_, NULL);
02346        _g_object_unref0 (_result_);
02347        _result_ = (UnityProtocolGenericPreview*) _tmp7_;
02348        result = (GObject*) _result_;
02349        return result;
02350 }
02351 
02352 
02353 static GObject* __unity_protocol_generic_preview___lambda2__dee_serializable_parse_func (GVariant* data) {
02354        GObject* result;
02355        result = _unity_protocol_generic_preview___lambda2_ (data);
02356        return result;
02357 }
02358 
02359 
02360 static void unity_protocol_generic_preview_class_init (UnityProtocolGenericPreviewClass * klass) {
02361        GVariantType* _tmp0_;
02362        GVariantType* _tmp1_;
02363        unity_protocol_generic_preview_parent_class = g_type_class_peek_parent (klass);
02364        UNITY_PROTOCOL_PREVIEW_CLASS (klass)->get_renderer_name = unity_protocol_generic_preview_real_get_renderer_name;
02365        _tmp0_ = g_variant_type_new (UNITY_PROTOCOL_PREVIEW_RAW_SIGNATURE);
02366        _tmp1_ = _tmp0_;
02367        dee_serializable_register_parser (UNITY_PROTOCOL_TYPE_GENERIC_PREVIEW, _tmp1_, __unity_protocol_generic_preview___lambda2__dee_serializable_parse_func);
02368        _g_variant_type_free0 (_tmp1_);
02369 }
02370 
02371 
02372 static void unity_protocol_generic_preview_instance_init (UnityProtocolGenericPreview * self) {
02373 }
02374 
02375 
02376 GType unity_protocol_generic_preview_get_type (void) {
02377        static volatile gsize unity_protocol_generic_preview_type_id__volatile = 0;
02378        if (g_once_init_enter (&unity_protocol_generic_preview_type_id__volatile)) {
02379               static const GTypeInfo g_define_type_info = { sizeof (UnityProtocolGenericPreviewClass), (GBaseInitFunc) NULL, (GBaseFinalizeFunc) NULL, (GClassInitFunc) unity_protocol_generic_preview_class_init, (GClassFinalizeFunc) NULL, NULL, sizeof (UnityProtocolGenericPreview), 0, (GInstanceInitFunc) unity_protocol_generic_preview_instance_init, NULL };
02380               GType unity_protocol_generic_preview_type_id;
02381               unity_protocol_generic_preview_type_id = g_type_register_static (UNITY_PROTOCOL_TYPE_PREVIEW, "UnityProtocolGenericPreview", &g_define_type_info, 0);
02382               g_once_init_leave (&unity_protocol_generic_preview_type_id__volatile, unity_protocol_generic_preview_type_id);
02383        }
02384        return unity_protocol_generic_preview_type_id__volatile;
02385 }
02386 
02387 
02388 UnityProtocolApplicationPreview* unity_protocol_application_preview_construct (GType object_type) {
02389        UnityProtocolApplicationPreview * self = NULL;
02390        self = (UnityProtocolApplicationPreview*) g_object_new (object_type, NULL);
02391        return self;
02392 }
02393 
02394 
02395 UnityProtocolApplicationPreview* unity_protocol_application_preview_new (void) {
02396        return unity_protocol_application_preview_construct (UNITY_PROTOCOL_TYPE_APPLICATION_PREVIEW);
02397 }
02398 
02399 
02400 static const gchar* unity_protocol_application_preview_real_get_renderer_name (UnityProtocolPreview* base) {
02401        UnityProtocolApplicationPreview * self;
02402        const gchar* result = NULL;
02403        self = (UnityProtocolApplicationPreview*) base;
02404        result = UNITY_PROTOCOL_APPLICATION_PREVIEW_RENDERER_NAME;
02405        return result;
02406 }
02407 
02408 
02409 static GVariant* _variant_new6 (gchar* value) {
02410        return g_variant_ref_sink (g_variant_new_string (value));
02411 }
02412 
02413 
02414 static GVariant* _variant_new7 (const gchar* value) {
02415        return g_variant_ref_sink (g_variant_new_string (value));
02416 }
02417 
02418 
02419 static GVariant* _variant_new8 (const gchar* value) {
02420        return g_variant_ref_sink (g_variant_new_string (value));
02421 }
02422 
02423 
02424 static GVariant* _variant_new9 (const gchar* value) {
02425        return g_variant_ref_sink (g_variant_new_string (value));
02426 }
02427 
02428 
02429 static GVariant* _variant_new10 (gdouble value) {
02430        return g_variant_ref_sink (g_variant_new_double (value));
02431 }
02432 
02433 
02434 static GVariant* _variant_new11 (guint value) {
02435        return g_variant_ref_sink (g_variant_new_uint32 (value));
02436 }
02437 
02438 
02439 static void unity_protocol_application_preview_real_add_properties (UnityProtocolPreview* base, GHashTable* properties) {
02440        UnityProtocolApplicationPreview * self;
02441        GHashTable* _tmp0_;
02442        GIcon* _tmp1_;
02443        const gchar* _tmp8_;
02444        const gchar* _tmp13_;
02445        const gchar* _tmp18_;
02446        gfloat _tmp23_;
02447        guint _tmp28_;
02448        self = (UnityProtocolApplicationPreview*) base;
02449        g_return_if_fail (properties != NULL);
02450        _tmp0_ = properties;
02451        UNITY_PROTOCOL_PREVIEW_CLASS (unity_protocol_application_preview_parent_class)->add_properties (G_TYPE_CHECK_INSTANCE_CAST (self, UNITY_PROTOCOL_TYPE_PREVIEW, UnityProtocolPreview), _tmp0_);
02452        _tmp1_ = self->priv->_app_icon;
02453        if (_tmp1_ != NULL) {
02454               GHashTable* _tmp2_;
02455               gchar* _tmp3_;
02456               GIcon* _tmp4_;
02457               gchar* _tmp5_ = NULL;
02458               gchar* _tmp6_;
02459               GVariant* _tmp7_;
02460               _tmp2_ = properties;
02461               _tmp3_ = g_strdup ("application-icon");
02462               _tmp4_ = self->priv->_app_icon;
02463               _tmp5_ = g_icon_to_string (_tmp4_);
02464               _tmp6_ = _tmp5_;
02465               _tmp7_ = _variant_new6 (_tmp6_);
02466               g_hash_table_insert (_tmp2_, _tmp3_, _tmp7_);
02467               _g_free0 (_tmp6_);
02468        }
02469        _tmp8_ = self->priv->_license;
02470        if (_tmp8_ != NULL) {
02471               GHashTable* _tmp9_;
02472               gchar* _tmp10_;
02473               const gchar* _tmp11_;
02474               GVariant* _tmp12_;
02475               _tmp9_ = properties;
02476               _tmp10_ = g_strdup ("license");
02477               _tmp11_ = self->priv->_license;
02478               _tmp12_ = _variant_new7 (_tmp11_);
02479               g_hash_table_insert (_tmp9_, _tmp10_, _tmp12_);
02480        }
02481        _tmp13_ = self->priv->_copyright;
02482        if (_tmp13_ != NULL) {
02483               GHashTable* _tmp14_;
02484               gchar* _tmp15_;
02485               const gchar* _tmp16_;
02486               GVariant* _tmp17_;
02487               _tmp14_ = properties;
02488               _tmp15_ = g_strdup ("copyright");
02489               _tmp16_ = self->priv->_copyright;
02490               _tmp17_ = _variant_new8 (_tmp16_);
02491               g_hash_table_insert (_tmp14_, _tmp15_, _tmp17_);
02492        }
02493        _tmp18_ = self->priv->_last_update;
02494        if (_tmp18_ != NULL) {
02495               GHashTable* _tmp19_;
02496               gchar* _tmp20_;
02497               const gchar* _tmp21_;
02498               GVariant* _tmp22_;
02499               _tmp19_ = properties;
02500               _tmp20_ = g_strdup ("last-update");
02501               _tmp21_ = self->priv->_last_update;
02502               _tmp22_ = _variant_new9 (_tmp21_);
02503               g_hash_table_insert (_tmp19_, _tmp20_, _tmp22_);
02504        }
02505        _tmp23_ = self->priv->_rating;
02506        if (_tmp23_ >= 0.0f) {
02507               GHashTable* _tmp24_;
02508               gchar* _tmp25_;
02509               gfloat _tmp26_;
02510               GVariant* _tmp27_;
02511               _tmp24_ = properties;
02512               _tmp25_ = g_strdup ("rating");
02513               _tmp26_ = self->priv->_rating;
02514               _tmp27_ = _variant_new10 ((gdouble) _tmp26_);
02515               g_hash_table_insert (_tmp24_, _tmp25_, _tmp27_);
02516        }
02517        _tmp28_ = self->priv->_num_ratings;
02518        if (_tmp28_ > ((guint) 0)) {
02519               GHashTable* _tmp29_;
02520               gchar* _tmp30_;
02521               guint _tmp31_;
02522               GVariant* _tmp32_;
02523               _tmp29_ = properties;
02524               _tmp30_ = g_strdup ("num-ratings");
02525               _tmp31_ = self->priv->_num_ratings;
02526               _tmp32_ = _variant_new11 (_tmp31_);
02527               g_hash_table_insert (_tmp29_, _tmp30_, _tmp32_);
02528        }
02529 }
02530 
02531 
02532 GIcon* unity_protocol_application_preview_get_app_icon (UnityProtocolApplicationPreview* self) {
02533        GIcon* result;
02534        GIcon* _tmp0_;
02535        g_return_val_if_fail (self != NULL, NULL);
02536        _tmp0_ = self->priv->_app_icon;
02537        result = _tmp0_;
02538        return result;
02539 }
02540 
02541 
02542 void unity_protocol_application_preview_set_app_icon (UnityProtocolApplicationPreview* self, GIcon* value) {
02543        GIcon* _tmp0_;
02544        GIcon* _tmp1_;
02545        g_return_if_fail (self != NULL);
02546        _tmp0_ = value;
02547        _tmp1_ = _g_object_ref0 (_tmp0_);
02548        _g_object_unref0 (self->priv->_app_icon);
02549        self->priv->_app_icon = _tmp1_;
02550        g_object_notify ((GObject *) self, "app-icon");
02551 }
02552 
02553 
02554 const gchar* unity_protocol_application_preview_get_license (UnityProtocolApplicationPreview* self) {
02555        const gchar* result;
02556        const gchar* _tmp0_;
02557        g_return_val_if_fail (self != NULL, NULL);
02558        _tmp0_ = self->priv->_license;
02559        result = _tmp0_;
02560        return result;
02561 }
02562 
02563 
02564 void unity_protocol_application_preview_set_license (UnityProtocolApplicationPreview* self, const gchar* value) {
02565        const gchar* _tmp0_;
02566        gchar* _tmp1_;
02567        g_return_if_fail (self != NULL);
02568        _tmp0_ = value;
02569        _tmp1_ = g_strdup (_tmp0_);
02570        _g_free0 (self->priv->_license);
02571        self->priv->_license = _tmp1_;
02572        g_object_notify ((GObject *) self, "license");
02573 }
02574 
02575 
02576 const gchar* unity_protocol_application_preview_get_copyright (UnityProtocolApplicationPreview* self) {
02577        const gchar* result;
02578        const gchar* _tmp0_;
02579        g_return_val_if_fail (self != NULL, NULL);
02580        _tmp0_ = self->priv->_copyright;
02581        result = _tmp0_;
02582        return result;
02583 }
02584 
02585 
02586 void unity_protocol_application_preview_set_copyright (UnityProtocolApplicationPreview* self, const gchar* value) {
02587        const gchar* _tmp0_;
02588        gchar* _tmp1_;
02589        g_return_if_fail (self != NULL);
02590        _tmp0_ = value;
02591        _tmp1_ = g_strdup (_tmp0_);
02592        _g_free0 (self->priv->_copyright);
02593        self->priv->_copyright = _tmp1_;
02594        g_object_notify ((GObject *) self, "copyright");
02595 }
02596 
02597 
02598 const gchar* unity_protocol_application_preview_get_last_update (UnityProtocolApplicationPreview* self) {
02599        const gchar* result;
02600        const gchar* _tmp0_;
02601        g_return_val_if_fail (self != NULL, NULL);
02602        _tmp0_ = self->priv->_last_update;
02603        result = _tmp0_;
02604        return result;
02605 }
02606 
02607 
02608 void unity_protocol_application_preview_set_last_update (UnityProtocolApplicationPreview* self, const gchar* value) {
02609        const gchar* _tmp0_;
02610        gchar* _tmp1_;
02611        g_return_if_fail (self != NULL);
02612        _tmp0_ = value;
02613        _tmp1_ = g_strdup (_tmp0_);
02614        _g_free0 (self->priv->_last_update);
02615        self->priv->_last_update = _tmp1_;
02616        g_object_notify ((GObject *) self, "last-update");
02617 }
02618 
02619 
02620 gfloat unity_protocol_application_preview_get_rating (UnityProtocolApplicationPreview* self) {
02621        gfloat result;
02622        gfloat _tmp0_;
02623        g_return_val_if_fail (self != NULL, 0.0F);
02624        _tmp0_ = self->priv->_rating;
02625        result = _tmp0_;
02626        return result;
02627 }
02628 
02629 
02630 void unity_protocol_application_preview_set_rating (UnityProtocolApplicationPreview* self, gfloat value) {
02631        gfloat _tmp0_;
02632        g_return_if_fail (self != NULL);
02633        _tmp0_ = value;
02634        self->priv->_rating = _tmp0_;
02635        g_object_notify ((GObject *) self, "rating");
02636 }
02637 
02638 
02639 guint unity_protocol_application_preview_get_num_ratings (UnityProtocolApplicationPreview* self) {
02640        guint result;
02641        guint _tmp0_;
02642        g_return_val_if_fail (self != NULL, 0U);
02643        _tmp0_ = self->priv->_num_ratings;
02644        result = _tmp0_;
02645        return result;
02646 }
02647 
02648 
02649 void unity_protocol_application_preview_set_num_ratings (UnityProtocolApplicationPreview* self, guint value) {
02650        guint _tmp0_;
02651        g_return_if_fail (self != NULL);
02652        _tmp0_ = value;
02653        self->priv->_num_ratings = _tmp0_;
02654        g_object_notify ((GObject *) self, "num-ratings");
02655 }
02656 
02657 
02658 static Block1Data* block1_data_ref (Block1Data* _data1_) {
02659        g_atomic_int_inc (&_data1_->_ref_count_);
02660        return _data1_;
02661 }
02662 
02663 
02664 static void block1_data_unref (void * _userdata_) {
02665        Block1Data* _data1_;
02666        _data1_ = (Block1Data*) _userdata_;
02667        if (g_atomic_int_dec_and_test (&_data1_->_ref_count_)) {
02668               _g_object_unref0 (_data1_->_result_);
02669               g_slice_free (Block1Data, _data1_);
02670        }
02671 }
02672 
02673 
02674 static void __lambda4_ (Block1Data* _data1_, GVariant* v) {
02675        UnityProtocolApplicationPreview* _tmp0_;
02676        GVariant* _tmp1_;
02677        GIcon* _tmp2_ = NULL;
02678        GIcon* _tmp3_;
02679        g_return_if_fail (v != NULL);
02680        _tmp0_ = _data1_->_result_;
02681        _tmp1_ = v;
02682        _tmp2_ = unity_protocol_preview_variant_to_icon (_tmp1_);
02683        _tmp3_ = _tmp2_;
02684        unity_protocol_application_preview_set_app_icon (_tmp0_, _tmp3_);
02685        _g_object_unref0 (_tmp3_);
02686 }
02687 
02688 
02689 static void ___lambda4__gfunc (gconstpointer data, gpointer self) {
02690        __lambda4_ (self, data);
02691 }
02692 
02693 
02694 static void __lambda5_ (Block1Data* _data1_, GVariant* v) {
02695        UnityProtocolApplicationPreview* _tmp0_;
02696        GVariant* _tmp1_;
02697        const gchar* _tmp2_ = NULL;
02698        g_return_if_fail (v != NULL);
02699        _tmp0_ = _data1_->_result_;
02700        _tmp1_ = v;
02701        _tmp2_ = g_variant_get_string (_tmp1_, NULL);
02702        unity_protocol_application_preview_set_license (_tmp0_, _tmp2_);
02703 }
02704 
02705 
02706 static void ___lambda5__gfunc (gconstpointer data, gpointer self) {
02707        __lambda5_ (self, data);
02708 }
02709 
02710 
02711 static void __lambda6_ (Block1Data* _data1_, GVariant* v) {
02712        UnityProtocolApplicationPreview* _tmp0_;
02713        GVariant* _tmp1_;
02714        const gchar* _tmp2_ = NULL;
02715        g_return_if_fail (v != NULL);
02716        _tmp0_ = _data1_->_result_;
02717        _tmp1_ = v;
02718        _tmp2_ = g_variant_get_string (_tmp1_, NULL);
02719        unity_protocol_application_preview_set_copyright (_tmp0_, _tmp2_);
02720 }
02721 
02722 
02723 static void ___lambda6__gfunc (gconstpointer data, gpointer self) {
02724        __lambda6_ (self, data);
02725 }
02726 
02727 
02728 static void __lambda7_ (Block1Data* _data1_, GVariant* v) {
02729        UnityProtocolApplicationPreview* _tmp0_;
02730        GVariant* _tmp1_;
02731        const gchar* _tmp2_ = NULL;
02732        g_return_if_fail (v != NULL);
02733        _tmp0_ = _data1_->_result_;
02734        _tmp1_ = v;
02735        _tmp2_ = g_variant_get_string (_tmp1_, NULL);
02736        unity_protocol_application_preview_set_last_update (_tmp0_, _tmp2_);
02737 }
02738 
02739 
02740 static void ___lambda7__gfunc (gconstpointer data, gpointer self) {
02741        __lambda7_ (self, data);
02742 }
02743 
02744 
02745 static void __lambda8_ (Block1Data* _data1_, GVariant* v) {
02746        UnityProtocolApplicationPreview* _tmp0_;
02747        GVariant* _tmp1_;
02748        gdouble _tmp2_ = 0.0;
02749        g_return_if_fail (v != NULL);
02750        _tmp0_ = _data1_->_result_;
02751        _tmp1_ = v;
02752        _tmp2_ = g_variant_get_double (_tmp1_);
02753        unity_protocol_application_preview_set_rating (_tmp0_, (gfloat) _tmp2_);
02754 }
02755 
02756 
02757 static void ___lambda8__gfunc (gconstpointer data, gpointer self) {
02758        __lambda8_ (self, data);
02759 }
02760 
02761 
02762 static void __lambda9_ (Block1Data* _data1_, GVariant* v) {
02763        UnityProtocolApplicationPreview* _tmp0_;
02764        GVariant* _tmp1_;
02765        guint32 _tmp2_ = 0U;
02766        g_return_if_fail (v != NULL);
02767        _tmp0_ = _data1_->_result_;
02768        _tmp1_ = v;
02769        _tmp2_ = g_variant_get_uint32 (_tmp1_);
02770        unity_protocol_application_preview_set_num_ratings (_tmp0_, (guint) _tmp2_);
02771 }
02772 
02773 
02774 static void ___lambda9__gfunc (gconstpointer data, gpointer self) {
02775        __lambda9_ (self, data);
02776 }
02777 
02778 
02779 static GObject* _unity_protocol_application_preview___lambda3_ (GVariant* data) {
02780        GObject* result = NULL;
02781        Block1Data* _data1_;
02782        GVariant* _tmp0_;
02783        GVariant* _tmp1_ = NULL;
02784        GVariant* _tmp2_;
02785        const gchar* _tmp3_ = NULL;
02786        const gchar* _tmp4_;
02787        const gchar* renderer;
02788        const gchar* _tmp5_;
02789        GHashTable* properties = NULL;
02790        GVariant* _tmp6_;
02791        GHashTable* _tmp7_ = NULL;
02792        gpointer _tmp8_ = NULL;
02793        GHashTable* _tmp9_;
02794        gconstpointer _tmp10_ = NULL;
02795        GHashTable* _tmp11_;
02796        gconstpointer _tmp12_ = NULL;
02797        GHashTable* _tmp13_;
02798        gconstpointer _tmp14_ = NULL;
02799        GHashTable* _tmp15_;
02800        gconstpointer _tmp16_ = NULL;
02801        GHashTable* _tmp17_;
02802        gconstpointer _tmp18_ = NULL;
02803        GHashTable* _tmp19_;
02804        gconstpointer _tmp20_ = NULL;
02805        UnityProtocolApplicationPreview* _tmp21_;
02806        GObject* _tmp22_;
02807        g_return_val_if_fail (data != NULL, NULL);
02808        _data1_ = g_slice_new0 (Block1Data);
02809        _data1_->_ref_count_ = 1;
02810        _tmp0_ = data;
02811        _tmp1_ = g_variant_get_child_value (_tmp0_, (gsize) 0);
02812        _tmp2_ = _tmp1_;
02813        _tmp3_ = g_variant_get_string (_tmp2_, NULL);
02814        _tmp4_ = _tmp3_;
02815        _g_variant_unref0 (_tmp2_);
02816        renderer = _tmp4_;
02817        _tmp5_ = renderer;
02818        g_warn_if_fail (g_strcmp0 (_tmp5_, UNITY_PROTOCOL_APPLICATION_PREVIEW_RENDERER_NAME) == 0);
02819        _tmp6_ = data;
02820        _tmp8_ = unity_protocol_preview_deserialize (UNITY_PROTOCOL_TYPE_APPLICATION_PREVIEW, (GBoxedCopyFunc) g_object_ref, g_object_unref, _tmp6_, &_tmp7_);
02821        _g_hash_table_unref0 (properties);
02822        properties = _tmp7_;
02823        _data1_->_result_ = (UnityProtocolApplicationPreview*) _tmp8_;
02824        _tmp9_ = properties;
02825        _tmp10_ = g_hash_table_lookup (_tmp9_, "application-icon");
02826        unity_protocol_preview_checked_set ((GVariant*) _tmp10_, ___lambda4__gfunc, _data1_);
02827        _tmp11_ = properties;
02828        _tmp12_ = g_hash_table_lookup (_tmp11_, "license");
02829        unity_protocol_preview_checked_set ((GVariant*) _tmp12_, ___lambda5__gfunc, _data1_);
02830        _tmp13_ = properties;
02831        _tmp14_ = g_hash_table_lookup (_tmp13_, "copyright");
02832        unity_protocol_preview_checked_set ((GVariant*) _tmp14_, ___lambda6__gfunc, _data1_);
02833        _tmp15_ = properties;
02834        _tmp16_ = g_hash_table_lookup (_tmp15_, "last-update");
02835        unity_protocol_preview_checked_set ((GVariant*) _tmp16_, ___lambda7__gfunc, _data1_);
02836        _tmp17_ = properties;
02837        _tmp18_ = g_hash_table_lookup (_tmp17_, "rating");
02838        unity_protocol_preview_checked_set ((GVariant*) _tmp18_, ___lambda8__gfunc, _data1_);
02839        _tmp19_ = properties;
02840        _tmp20_ = g_hash_table_lookup (_tmp19_, "num-ratings");
02841        unity_protocol_preview_checked_set ((GVariant*) _tmp20_, ___lambda9__gfunc, _data1_);
02842        _tmp21_ = _data1_->_result_;
02843        _tmp22_ = _g_object_ref0 ((GObject*) _tmp21_);
02844        result = _tmp22_;
02845        _g_hash_table_unref0 (properties);
02846        block1_data_unref (_data1_);
02847        _data1_ = NULL;
02848        return result;
02849 }
02850 
02851 
02852 static GObject* __unity_protocol_application_preview___lambda3__dee_serializable_parse_func (GVariant* data) {
02853        GObject* result;
02854        result = _unity_protocol_application_preview___lambda3_ (data);
02855        return result;
02856 }
02857 
02858 
02859 static void unity_protocol_application_preview_class_init (UnityProtocolApplicationPreviewClass * klass) {
02860        GVariantType* _tmp0_;
02861        GVariantType* _tmp1_;
02862        unity_protocol_application_preview_parent_class = g_type_class_peek_parent (klass);
02863        g_type_class_add_private (klass, sizeof (UnityProtocolApplicationPreviewPrivate));
02864        UNITY_PROTOCOL_PREVIEW_CLASS (klass)->get_renderer_name = unity_protocol_application_preview_real_get_renderer_name;
02865        UNITY_PROTOCOL_PREVIEW_CLASS (klass)->add_properties = unity_protocol_application_preview_real_add_properties;
02866        G_OBJECT_CLASS (klass)->get_property = _vala_unity_protocol_application_preview_get_property;
02867        G_OBJECT_CLASS (klass)->set_property = _vala_unity_protocol_application_preview_set_property;
02868        G_OBJECT_CLASS (klass)->finalize = unity_protocol_application_preview_finalize;
02869        g_object_class_install_property (G_OBJECT_CLASS (klass), UNITY_PROTOCOL_APPLICATION_PREVIEW_APP_ICON, g_param_spec_object ("app-icon", "app-icon", "app-icon", G_TYPE_ICON, G_PARAM_STATIC_NAME | G_PARAM_STATIC_NICK | G_PARAM_STATIC_BLURB | G_PARAM_READABLE | G_PARAM_WRITABLE));
02870        g_object_class_install_property (G_OBJECT_CLASS (klass), UNITY_PROTOCOL_APPLICATION_PREVIEW_LICENSE, g_param_spec_string ("license", "license", "license", NULL, G_PARAM_STATIC_NAME | G_PARAM_STATIC_NICK | G_PARAM_STATIC_BLURB | G_PARAM_READABLE | G_PARAM_WRITABLE));
02871        g_object_class_install_property (G_OBJECT_CLASS (klass), UNITY_PROTOCOL_APPLICATION_PREVIEW_COPYRIGHT, g_param_spec_string ("copyright", "copyright", "copyright", NULL, G_PARAM_STATIC_NAME | G_PARAM_STATIC_NICK | G_PARAM_STATIC_BLURB | G_PARAM_READABLE | G_PARAM_WRITABLE));
02872        g_object_class_install_property (G_OBJECT_CLASS (klass), UNITY_PROTOCOL_APPLICATION_PREVIEW_LAST_UPDATE, g_param_spec_string ("last-update", "last-update", "last-update", NULL, G_PARAM_STATIC_NAME | G_PARAM_STATIC_NICK | G_PARAM_STATIC_BLURB | G_PARAM_READABLE | G_PARAM_WRITABLE));
02873        g_object_class_install_property (G_OBJECT_CLASS (klass), UNITY_PROTOCOL_APPLICATION_PREVIEW_RATING, g_param_spec_float ("rating", "rating", "rating", -G_MAXFLOAT, G_MAXFLOAT, 0.0F, G_PARAM_STATIC_NAME | G_PARAM_STATIC_NICK | G_PARAM_STATIC_BLURB | G_PARAM_READABLE | G_PARAM_WRITABLE));
02874        g_object_class_install_property (G_OBJECT_CLASS (klass), UNITY_PROTOCOL_APPLICATION_PREVIEW_NUM_RATINGS, g_param_spec_uint ("num-ratings", "num-ratings", "num-ratings", 0, G_MAXUINT, 0U, G_PARAM_STATIC_NAME | G_PARAM_STATIC_NICK | G_PARAM_STATIC_BLURB | G_PARAM_READABLE | G_PARAM_WRITABLE));
02875        _tmp0_ = g_variant_type_new (UNITY_PROTOCOL_PREVIEW_RAW_SIGNATURE);
02876        _tmp1_ = _tmp0_;
02877        dee_serializable_register_parser (UNITY_PROTOCOL_TYPE_APPLICATION_PREVIEW, _tmp1_, __unity_protocol_application_preview___lambda3__dee_serializable_parse_func);
02878        _g_variant_type_free0 (_tmp1_);
02879 }
02880 
02881 
02882 static void unity_protocol_application_preview_instance_init (UnityProtocolApplicationPreview * self) {
02883        self->priv = UNITY_PROTOCOL_APPLICATION_PREVIEW_GET_PRIVATE (self);
02884 }
02885 
02886 
02887 static void unity_protocol_application_preview_finalize (GObject* obj) {
02888        UnityProtocolApplicationPreview * self;
02889        self = G_TYPE_CHECK_INSTANCE_CAST (obj, UNITY_PROTOCOL_TYPE_APPLICATION_PREVIEW, UnityProtocolApplicationPreview);
02890        _g_object_unref0 (self->priv->_app_icon);
02891        _g_free0 (self->priv->_license);
02892        _g_free0 (self->priv->_copyright);
02893        _g_free0 (self->priv->_last_update);
02894        G_OBJECT_CLASS (unity_protocol_application_preview_parent_class)->finalize (obj);
02895 }
02896 
02897 
02898 GType unity_protocol_application_preview_get_type (void) {
02899        static volatile gsize unity_protocol_application_preview_type_id__volatile = 0;
02900        if (g_once_init_enter (&unity_protocol_application_preview_type_id__volatile)) {
02901               static const GTypeInfo g_define_type_info = { sizeof (UnityProtocolApplicationPreviewClass), (GBaseInitFunc) NULL, (GBaseFinalizeFunc) NULL, (GClassInitFunc) unity_protocol_application_preview_class_init, (GClassFinalizeFunc) NULL, NULL, sizeof (UnityProtocolApplicationPreview), 0, (GInstanceInitFunc) unity_protocol_application_preview_instance_init, NULL };
02902               GType unity_protocol_application_preview_type_id;
02903               unity_protocol_application_preview_type_id = g_type_register_static (UNITY_PROTOCOL_TYPE_PREVIEW, "UnityProtocolApplicationPreview", &g_define_type_info, 0);
02904               g_once_init_leave (&unity_protocol_application_preview_type_id__volatile, unity_protocol_application_preview_type_id);
02905        }
02906        return unity_protocol_application_preview_type_id__volatile;
02907 }
02908 
02909 
02910 static void _vala_unity_protocol_application_preview_get_property (GObject * object, guint property_id, GValue * value, GParamSpec * pspec) {
02911        UnityProtocolApplicationPreview * self;
02912        self = G_TYPE_CHECK_INSTANCE_CAST (object, UNITY_PROTOCOL_TYPE_APPLICATION_PREVIEW, UnityProtocolApplicationPreview);
02913        switch (property_id) {
02914               case UNITY_PROTOCOL_APPLICATION_PREVIEW_APP_ICON:
02915               g_value_set_object (value, unity_protocol_application_preview_get_app_icon (self));
02916               break;
02917               case UNITY_PROTOCOL_APPLICATION_PREVIEW_LICENSE:
02918               g_value_set_string (value, unity_protocol_application_preview_get_license (self));
02919               break;
02920               case UNITY_PROTOCOL_APPLICATION_PREVIEW_COPYRIGHT:
02921               g_value_set_string (value, unity_protocol_application_preview_get_copyright (self));
02922               break;
02923               case UNITY_PROTOCOL_APPLICATION_PREVIEW_LAST_UPDATE:
02924               g_value_set_string (value, unity_protocol_application_preview_get_last_update (self));
02925               break;
02926               case UNITY_PROTOCOL_APPLICATION_PREVIEW_RATING:
02927               g_value_set_float (value, unity_protocol_application_preview_get_rating (self));
02928               break;
02929               case UNITY_PROTOCOL_APPLICATION_PREVIEW_NUM_RATINGS:
02930               g_value_set_uint (value, unity_protocol_application_preview_get_num_ratings (self));
02931               break;
02932               default:
02933               G_OBJECT_WARN_INVALID_PROPERTY_ID (object, property_id, pspec);
02934               break;
02935        }
02936 }
02937 
02938 
02939 static void _vala_unity_protocol_application_preview_set_property (GObject * object, guint property_id, const GValue * value, GParamSpec * pspec) {
02940        UnityProtocolApplicationPreview * self;
02941        self = G_TYPE_CHECK_INSTANCE_CAST (object, UNITY_PROTOCOL_TYPE_APPLICATION_PREVIEW, UnityProtocolApplicationPreview);
02942        switch (property_id) {
02943               case UNITY_PROTOCOL_APPLICATION_PREVIEW_APP_ICON:
02944               unity_protocol_application_preview_set_app_icon (self, g_value_get_object (value));
02945               break;
02946               case UNITY_PROTOCOL_APPLICATION_PREVIEW_LICENSE:
02947               unity_protocol_application_preview_set_license (self, g_value_get_string (value));
02948               break;
02949               case UNITY_PROTOCOL_APPLICATION_PREVIEW_COPYRIGHT:
02950               unity_protocol_application_preview_set_copyright (self, g_value_get_string (value));
02951               break;
02952               case UNITY_PROTOCOL_APPLICATION_PREVIEW_LAST_UPDATE:
02953               unity_protocol_application_preview_set_last_update (self, g_value_get_string (value));
02954               break;
02955               case UNITY_PROTOCOL_APPLICATION_PREVIEW_RATING:
02956               unity_protocol_application_preview_set_rating (self, g_value_get_float (value));
02957               break;
02958               case UNITY_PROTOCOL_APPLICATION_PREVIEW_NUM_RATINGS:
02959               unity_protocol_application_preview_set_num_ratings (self, g_value_get_uint (value));
02960               break;
02961               default:
02962               G_OBJECT_WARN_INVALID_PROPERTY_ID (object, property_id, pspec);
02963               break;
02964        }
02965 }
02966 
02967 
02968 UnityProtocolMusicPreview* unity_protocol_music_preview_construct (GType object_type) {
02969        UnityProtocolMusicPreview * self = NULL;
02970        self = (UnityProtocolMusicPreview*) g_object_new (object_type, NULL);
02971        return self;
02972 }
02973 
02974 
02975 UnityProtocolMusicPreview* unity_protocol_music_preview_new (void) {
02976        return unity_protocol_music_preview_construct (UNITY_PROTOCOL_TYPE_MUSIC_PREVIEW);
02977 }
02978 
02979 
02980 static const gchar* unity_protocol_music_preview_real_get_renderer_name (UnityProtocolPreview* base) {
02981        UnityProtocolMusicPreview * self;
02982        const gchar* result = NULL;
02983        self = (UnityProtocolMusicPreview*) base;
02984        result = UNITY_PROTOCOL_MUSIC_PREVIEW_RENDERER_NAME;
02985        return result;
02986 }
02987 
02988 
02989 static GVariant* _variant_new12 (const gchar* value) {
02990        return g_variant_ref_sink (g_variant_new_string (value));
02991 }
02992 
02993 
02994 static GVariant* _variant_new13 (const gchar* value) {
02995        return g_variant_ref_sink (g_variant_new_string (value));
02996 }
02997 
02998 
02999 static void unity_protocol_music_preview_real_add_properties (UnityProtocolPreview* base, GHashTable* properties) {
03000        UnityProtocolMusicPreview * self;
03001        GHashTable* _tmp0_;
03002        const gchar* _tmp1_;
03003        const gchar* _tmp6_;
03004        self = (UnityProtocolMusicPreview*) base;
03005        g_return_if_fail (properties != NULL);
03006        _tmp0_ = properties;
03007        UNITY_PROTOCOL_PREVIEW_CLASS (unity_protocol_music_preview_parent_class)->add_properties (G_TYPE_CHECK_INSTANCE_CAST (self, UNITY_PROTOCOL_TYPE_PREVIEW, UnityProtocolPreview), _tmp0_);
03008        _tmp1_ = self->priv->_track_data_swarm_name;
03009        if (_tmp1_ != NULL) {
03010               GHashTable* _tmp2_;
03011               gchar* _tmp3_;
03012               const gchar* _tmp4_;
03013               GVariant* _tmp5_;
03014               _tmp2_ = properties;
03015               _tmp3_ = g_strdup ("track-data-swarm-name");
03016               _tmp4_ = self->priv->_track_data_swarm_name;
03017               _tmp5_ = _variant_new12 (_tmp4_);
03018               g_hash_table_insert (_tmp2_, _tmp3_, _tmp5_);
03019        }
03020        _tmp6_ = self->priv->_track_data_address;
03021        if (_tmp6_ != NULL) {
03022               GHashTable* _tmp7_;
03023               gchar* _tmp8_;
03024               const gchar* _tmp9_;
03025               GVariant* _tmp10_;
03026               _tmp7_ = properties;
03027               _tmp8_ = g_strdup ("track-data-address");
03028               _tmp9_ = self->priv->_track_data_address;
03029               _tmp10_ = _variant_new13 (_tmp9_);
03030               g_hash_table_insert (_tmp7_, _tmp8_, _tmp10_);
03031        }
03032 }
03033 
03034 
03035 static GVariant* _variant_new14 (const gchar* value) {
03036        return g_variant_ref_sink (g_variant_new_string (value));
03037 }
03038 
03039 
03040 static GVariant* _variant_new15 (const gchar* value) {
03041        return g_variant_ref_sink (g_variant_new_string (value));
03042 }
03043 
03044 
03045 void unity_protocol_music_preview_play_uri (UnityProtocolMusicPreview* self, const gchar* uri) {
03046        GVariant* _tmp0_;
03047        const gchar* _tmp1_;
03048        GVariant* _tmp2_;
03049        g_return_if_fail (self != NULL);
03050        g_return_if_fail (uri != NULL);
03051        _tmp0_ = _variant_new14 ("play");
03052        unity_protocol_preview_add_update ((UnityProtocolPreview*) self, "action", _tmp0_);
03053        _tmp1_ = uri;
03054        _tmp2_ = _variant_new15 (_tmp1_);
03055        unity_protocol_preview_add_update ((UnityProtocolPreview*) self, "uri", _tmp2_);
03056 }
03057 
03058 
03059 static GVariant* _variant_new16 (const gchar* value) {
03060        return g_variant_ref_sink (g_variant_new_string (value));
03061 }
03062 
03063 
03064 static GVariant* _variant_new17 (const gchar* value) {
03065        return g_variant_ref_sink (g_variant_new_string (value));
03066 }
03067 
03068 
03069 void unity_protocol_music_preview_pause_uri (UnityProtocolMusicPreview* self, const gchar* uri) {
03070        GVariant* _tmp0_;
03071        const gchar* _tmp1_;
03072        GVariant* _tmp2_;
03073        g_return_if_fail (self != NULL);
03074        g_return_if_fail (uri != NULL);
03075        _tmp0_ = _variant_new16 ("pause");
03076        unity_protocol_preview_add_update ((UnityProtocolPreview*) self, "action", _tmp0_);
03077        _tmp1_ = uri;
03078        _tmp2_ = _variant_new17 (_tmp1_);
03079        unity_protocol_preview_add_update ((UnityProtocolPreview*) self, "uri", _tmp2_);
03080 }
03081 
03082 
03083 const gchar* unity_protocol_music_preview_get_track_data_swarm_name (UnityProtocolMusicPreview* self) {
03084        const gchar* result;
03085        const gchar* _tmp0_;
03086        g_return_val_if_fail (self != NULL, NULL);
03087        _tmp0_ = self->priv->_track_data_swarm_name;
03088        result = _tmp0_;
03089        return result;
03090 }
03091 
03092 
03093 void unity_protocol_music_preview_set_track_data_swarm_name (UnityProtocolMusicPreview* self, const gchar* value) {
03094        const gchar* _tmp0_;
03095        gchar* _tmp1_;
03096        g_return_if_fail (self != NULL);
03097        _tmp0_ = value;
03098        _tmp1_ = g_strdup (_tmp0_);
03099        _g_free0 (self->priv->_track_data_swarm_name);
03100        self->priv->_track_data_swarm_name = _tmp1_;
03101        g_object_notify ((GObject *) self, "track-data-swarm-name");
03102 }
03103 
03104 
03105 const gchar* unity_protocol_music_preview_get_track_data_address (UnityProtocolMusicPreview* self) {
03106        const gchar* result;
03107        const gchar* _tmp0_;
03108        g_return_val_if_fail (self != NULL, NULL);
03109        _tmp0_ = self->priv->_track_data_address;
03110        result = _tmp0_;
03111        return result;
03112 }
03113 
03114 
03115 void unity_protocol_music_preview_set_track_data_address (UnityProtocolMusicPreview* self, const gchar* value) {
03116        const gchar* _tmp0_;
03117        gchar* _tmp1_;
03118        g_return_if_fail (self != NULL);
03119        _tmp0_ = value;
03120        _tmp1_ = g_strdup (_tmp0_);
03121        _g_free0 (self->priv->_track_data_address);
03122        self->priv->_track_data_address = _tmp1_;
03123        g_object_notify ((GObject *) self, "track-data-address");
03124 }
03125 
03126 
03127 static Block2Data* block2_data_ref (Block2Data* _data2_) {
03128        g_atomic_int_inc (&_data2_->_ref_count_);
03129        return _data2_;
03130 }
03131 
03132 
03133 static void block2_data_unref (void * _userdata_) {
03134        Block2Data* _data2_;
03135        _data2_ = (Block2Data*) _userdata_;
03136        if (g_atomic_int_dec_and_test (&_data2_->_ref_count_)) {
03137               _g_object_unref0 (_data2_->_result_);
03138               g_slice_free (Block2Data, _data2_);
03139        }
03140 }
03141 
03142 
03143 static void __lambda11_ (Block2Data* _data2_, GVariant* v) {
03144        UnityProtocolMusicPreview* _tmp0_;
03145        GVariant* _tmp1_;
03146        const gchar* _tmp2_ = NULL;
03147        g_return_if_fail (v != NULL);
03148        _tmp0_ = _data2_->_result_;
03149        _tmp1_ = v;
03150        _tmp2_ = g_variant_get_string (_tmp1_, NULL);
03151        unity_protocol_music_preview_set_track_data_swarm_name (_tmp0_, _tmp2_);
03152 }
03153 
03154 
03155 static void ___lambda11__gfunc (gconstpointer data, gpointer self) {
03156        __lambda11_ (self, data);
03157 }
03158 
03159 
03160 static void __lambda12_ (Block2Data* _data2_, GVariant* v) {
03161        UnityProtocolMusicPreview* _tmp0_;
03162        GVariant* _tmp1_;
03163        const gchar* _tmp2_ = NULL;
03164        g_return_if_fail (v != NULL);
03165        _tmp0_ = _data2_->_result_;
03166        _tmp1_ = v;
03167        _tmp2_ = g_variant_get_string (_tmp1_, NULL);
03168        unity_protocol_music_preview_set_track_data_address (_tmp0_, _tmp2_);
03169 }
03170 
03171 
03172 static void ___lambda12__gfunc (gconstpointer data, gpointer self) {
03173        __lambda12_ (self, data);
03174 }
03175 
03176 
03177 static GObject* _unity_protocol_music_preview___lambda10_ (GVariant* data) {
03178        GObject* result = NULL;
03179        Block2Data* _data2_;
03180        GVariant* _tmp0_;
03181        GVariant* _tmp1_ = NULL;
03182        GVariant* _tmp2_;
03183        const gchar* _tmp3_ = NULL;
03184        const gchar* _tmp4_;
03185        const gchar* renderer;
03186        const gchar* _tmp5_;
03187        GHashTable* properties = NULL;
03188        GVariant* _tmp6_;
03189        GHashTable* _tmp7_ = NULL;
03190        gpointer _tmp8_ = NULL;
03191        GHashTable* _tmp9_;
03192        gconstpointer _tmp10_ = NULL;
03193        GHashTable* _tmp11_;
03194        gconstpointer _tmp12_ = NULL;
03195        UnityProtocolMusicPreview* _tmp13_;
03196        GObject* _tmp14_;
03197        g_return_val_if_fail (data != NULL, NULL);
03198        _data2_ = g_slice_new0 (Block2Data);
03199        _data2_->_ref_count_ = 1;
03200        _tmp0_ = data;
03201        _tmp1_ = g_variant_get_child_value (_tmp0_, (gsize) 0);
03202        _tmp2_ = _tmp1_;
03203        _tmp3_ = g_variant_get_string (_tmp2_, NULL);
03204        _tmp4_ = _tmp3_;
03205        _g_variant_unref0 (_tmp2_);
03206        renderer = _tmp4_;
03207        _tmp5_ = renderer;
03208        g_warn_if_fail (g_strcmp0 (_tmp5_, UNITY_PROTOCOL_MUSIC_PREVIEW_RENDERER_NAME) == 0);
03209        _tmp6_ = data;
03210        _tmp8_ = unity_protocol_preview_deserialize (UNITY_PROTOCOL_TYPE_MUSIC_PREVIEW, (GBoxedCopyFunc) g_object_ref, g_object_unref, _tmp6_, &_tmp7_);
03211        _g_hash_table_unref0 (properties);
03212        properties = _tmp7_;
03213        _data2_->_result_ = (UnityProtocolMusicPreview*) _tmp8_;
03214        _tmp9_ = properties;
03215        _tmp10_ = g_hash_table_lookup (_tmp9_, "track-data-swarm-name");
03216        unity_protocol_preview_checked_set ((GVariant*) _tmp10_, ___lambda11__gfunc, _data2_);
03217        _tmp11_ = properties;
03218        _tmp12_ = g_hash_table_lookup (_tmp11_, "track-data-address");
03219        unity_protocol_preview_checked_set ((GVariant*) _tmp12_, ___lambda12__gfunc, _data2_);
03220        _tmp13_ = _data2_->_result_;
03221        _tmp14_ = _g_object_ref0 ((GObject*) _tmp13_);
03222        result = _tmp14_;
03223        _g_hash_table_unref0 (properties);
03224        block2_data_unref (_data2_);
03225        _data2_ = NULL;
03226        return result;
03227 }
03228 
03229 
03230 static GObject* __unity_protocol_music_preview___lambda10__dee_serializable_parse_func (GVariant* data) {
03231        GObject* result;
03232        result = _unity_protocol_music_preview___lambda10_ (data);
03233        return result;
03234 }
03235 
03236 
03237 static void unity_protocol_music_preview_class_init (UnityProtocolMusicPreviewClass * klass) {
03238        GVariantType* _tmp0_;
03239        GVariantType* _tmp1_;
03240        unity_protocol_music_preview_parent_class = g_type_class_peek_parent (klass);
03241        g_type_class_add_private (klass, sizeof (UnityProtocolMusicPreviewPrivate));
03242        UNITY_PROTOCOL_PREVIEW_CLASS (klass)->get_renderer_name = unity_protocol_music_preview_real_get_renderer_name;
03243        UNITY_PROTOCOL_PREVIEW_CLASS (klass)->add_properties = unity_protocol_music_preview_real_add_properties;
03244        G_OBJECT_CLASS (klass)->get_property = _vala_unity_protocol_music_preview_get_property;
03245        G_OBJECT_CLASS (klass)->set_property = _vala_unity_protocol_music_preview_set_property;
03246        G_OBJECT_CLASS (klass)->finalize = unity_protocol_music_preview_finalize;
03247        g_object_class_install_property (G_OBJECT_CLASS (klass), UNITY_PROTOCOL_MUSIC_PREVIEW_TRACK_DATA_SWARM_NAME, g_param_spec_string ("track-data-swarm-name", "track-data-swarm-name", "track-data-swarm-name", NULL, G_PARAM_STATIC_NAME | G_PARAM_STATIC_NICK | G_PARAM_STATIC_BLURB | G_PARAM_READABLE | G_PARAM_WRITABLE));
03248        g_object_class_install_property (G_OBJECT_CLASS (klass), UNITY_PROTOCOL_MUSIC_PREVIEW_TRACK_DATA_ADDRESS, g_param_spec_string ("track-data-address", "track-data-address", "track-data-address", NULL, G_PARAM_STATIC_NAME | G_PARAM_STATIC_NICK | G_PARAM_STATIC_BLURB | G_PARAM_READABLE | G_PARAM_WRITABLE));
03249        _tmp0_ = g_variant_type_new (UNITY_PROTOCOL_PREVIEW_RAW_SIGNATURE);
03250        _tmp1_ = _tmp0_;
03251        dee_serializable_register_parser (UNITY_PROTOCOL_TYPE_MUSIC_PREVIEW, _tmp1_, __unity_protocol_music_preview___lambda10__dee_serializable_parse_func);
03252        _g_variant_type_free0 (_tmp1_);
03253 }
03254 
03255 
03256 static void unity_protocol_music_preview_instance_init (UnityProtocolMusicPreview * self) {
03257        self->priv = UNITY_PROTOCOL_MUSIC_PREVIEW_GET_PRIVATE (self);
03258 }
03259 
03260 
03261 static void unity_protocol_music_preview_finalize (GObject* obj) {
03262        UnityProtocolMusicPreview * self;
03263        self = G_TYPE_CHECK_INSTANCE_CAST (obj, UNITY_PROTOCOL_TYPE_MUSIC_PREVIEW, UnityProtocolMusicPreview);
03264        _g_free0 (self->priv->_track_data_swarm_name);
03265        _g_free0 (self->priv->_track_data_address);
03266        G_OBJECT_CLASS (unity_protocol_music_preview_parent_class)->finalize (obj);
03267 }
03268 
03269 
03270 GType unity_protocol_music_preview_get_type (void) {
03271        static volatile gsize unity_protocol_music_preview_type_id__volatile = 0;
03272        if (g_once_init_enter (&unity_protocol_music_preview_type_id__volatile)) {
03273               static const GTypeInfo g_define_type_info = { sizeof (UnityProtocolMusicPreviewClass), (GBaseInitFunc) NULL, (GBaseFinalizeFunc) NULL, (GClassInitFunc) unity_protocol_music_preview_class_init, (GClassFinalizeFunc) NULL, NULL, sizeof (UnityProtocolMusicPreview), 0, (GInstanceInitFunc) unity_protocol_music_preview_instance_init, NULL };
03274               GType unity_protocol_music_preview_type_id;
03275               unity_protocol_music_preview_type_id = g_type_register_static (UNITY_PROTOCOL_TYPE_PREVIEW, "UnityProtocolMusicPreview", &g_define_type_info, 0);
03276               g_once_init_leave (&unity_protocol_music_preview_type_id__volatile, unity_protocol_music_preview_type_id);
03277        }
03278        return unity_protocol_music_preview_type_id__volatile;
03279 }
03280 
03281 
03282 static void _vala_unity_protocol_music_preview_get_property (GObject * object, guint property_id, GValue * value, GParamSpec * pspec) {
03283        UnityProtocolMusicPreview * self;
03284        self = G_TYPE_CHECK_INSTANCE_CAST (object, UNITY_PROTOCOL_TYPE_MUSIC_PREVIEW, UnityProtocolMusicPreview);
03285        switch (property_id) {
03286               case UNITY_PROTOCOL_MUSIC_PREVIEW_TRACK_DATA_SWARM_NAME:
03287               g_value_set_string (value, unity_protocol_music_preview_get_track_data_swarm_name (self));
03288               break;
03289               case UNITY_PROTOCOL_MUSIC_PREVIEW_TRACK_DATA_ADDRESS:
03290               g_value_set_string (value, unity_protocol_music_preview_get_track_data_address (self));
03291               break;
03292               default:
03293               G_OBJECT_WARN_INVALID_PROPERTY_ID (object, property_id, pspec);
03294               break;
03295        }
03296 }
03297 
03298 
03299 static void _vala_unity_protocol_music_preview_set_property (GObject * object, guint property_id, const GValue * value, GParamSpec * pspec) {
03300        UnityProtocolMusicPreview * self;
03301        self = G_TYPE_CHECK_INSTANCE_CAST (object, UNITY_PROTOCOL_TYPE_MUSIC_PREVIEW, UnityProtocolMusicPreview);
03302        switch (property_id) {
03303               case UNITY_PROTOCOL_MUSIC_PREVIEW_TRACK_DATA_SWARM_NAME:
03304               unity_protocol_music_preview_set_track_data_swarm_name (self, g_value_get_string (value));
03305               break;
03306               case UNITY_PROTOCOL_MUSIC_PREVIEW_TRACK_DATA_ADDRESS:
03307               unity_protocol_music_preview_set_track_data_address (self, g_value_get_string (value));
03308               break;
03309               default:
03310               G_OBJECT_WARN_INVALID_PROPERTY_ID (object, property_id, pspec);
03311               break;
03312        }
03313 }
03314 
03315 
03316 UnityProtocolMoviePreview* unity_protocol_movie_preview_construct (GType object_type) {
03317        UnityProtocolMoviePreview * self = NULL;
03318        self = (UnityProtocolMoviePreview*) g_object_new (object_type, NULL);
03319        return self;
03320 }
03321 
03322 
03323 UnityProtocolMoviePreview* unity_protocol_movie_preview_new (void) {
03324        return unity_protocol_movie_preview_construct (UNITY_PROTOCOL_TYPE_MOVIE_PREVIEW);
03325 }
03326 
03327 
03328 static const gchar* unity_protocol_movie_preview_real_get_renderer_name (UnityProtocolPreview* base) {
03329        UnityProtocolMoviePreview * self;
03330        const gchar* result = NULL;
03331        self = (UnityProtocolMoviePreview*) base;
03332        result = UNITY_PROTOCOL_MOVIE_PREVIEW_RENDERER_NAME;
03333        return result;
03334 }
03335 
03336 
03337 static GVariant* _variant_new18 (gdouble value) {
03338        return g_variant_ref_sink (g_variant_new_double (value));
03339 }
03340 
03341 
03342 static GVariant* _variant_new19 (guint value) {
03343        return g_variant_ref_sink (g_variant_new_uint32 (value));
03344 }
03345 
03346 
03347 static GVariant* _variant_new20 (const gchar* value) {
03348        return g_variant_ref_sink (g_variant_new_string (value));
03349 }
03350 
03351 
03352 static void unity_protocol_movie_preview_real_add_properties (UnityProtocolPreview* base, GHashTable* properties) {
03353        UnityProtocolMoviePreview * self;
03354        GHashTable* _tmp0_;
03355        gfloat _tmp1_;
03356        guint _tmp6_;
03357        const gchar* _tmp11_;
03358        self = (UnityProtocolMoviePreview*) base;
03359        g_return_if_fail (properties != NULL);
03360        _tmp0_ = properties;
03361        UNITY_PROTOCOL_PREVIEW_CLASS (unity_protocol_movie_preview_parent_class)->add_properties (G_TYPE_CHECK_INSTANCE_CAST (self, UNITY_PROTOCOL_TYPE_PREVIEW, UnityProtocolPreview), _tmp0_);
03362        _tmp1_ = self->priv->_rating;
03363        if (_tmp1_ >= 0.0f) {
03364               GHashTable* _tmp2_;
03365               gchar* _tmp3_;
03366               gfloat _tmp4_;
03367               GVariant* _tmp5_;
03368               _tmp2_ = properties;
03369               _tmp3_ = g_strdup ("rating");
03370               _tmp4_ = self->priv->_rating;
03371               _tmp5_ = _variant_new18 ((gdouble) _tmp4_);
03372               g_hash_table_insert (_tmp2_, _tmp3_, _tmp5_);
03373        }
03374        _tmp6_ = self->priv->_num_ratings;
03375        if (_tmp6_ > ((guint) 0)) {
03376               GHashTable* _tmp7_;
03377               gchar* _tmp8_;
03378               guint _tmp9_;
03379               GVariant* _tmp10_;
03380               _tmp7_ = properties;
03381               _tmp8_ = g_strdup ("num-ratings");
03382               _tmp9_ = self->priv->_num_ratings;
03383               _tmp10_ = _variant_new19 (_tmp9_);
03384               g_hash_table_insert (_tmp7_, _tmp8_, _tmp10_);
03385        }
03386        _tmp11_ = self->priv->_year;
03387        if (_tmp11_ != NULL) {
03388               GHashTable* _tmp12_;
03389               gchar* _tmp13_;
03390               const gchar* _tmp14_;
03391               GVariant* _tmp15_;
03392               _tmp12_ = properties;
03393               _tmp13_ = g_strdup ("year");
03394               _tmp14_ = self->priv->_year;
03395               _tmp15_ = _variant_new20 (_tmp14_);
03396               g_hash_table_insert (_tmp12_, _tmp13_, _tmp15_);
03397        }
03398 }
03399 
03400 
03401 const gchar* unity_protocol_movie_preview_get_year (UnityProtocolMoviePreview* self) {
03402        const gchar* result;
03403        const gchar* _tmp0_;
03404        g_return_val_if_fail (self != NULL, NULL);
03405        _tmp0_ = self->priv->_year;
03406        result = _tmp0_;
03407        return result;
03408 }
03409 
03410 
03411 void unity_protocol_movie_preview_set_year (UnityProtocolMoviePreview* self, const gchar* value) {
03412        const gchar* _tmp0_;
03413        gchar* _tmp1_;
03414        g_return_if_fail (self != NULL);
03415        _tmp0_ = value;
03416        _tmp1_ = g_strdup (_tmp0_);
03417        _g_free0 (self->priv->_year);
03418        self->priv->_year = _tmp1_;
03419        g_object_notify ((GObject *) self, "year");
03420 }
03421 
03422 
03423 gfloat unity_protocol_movie_preview_get_rating (UnityProtocolMoviePreview* self) {
03424        gfloat result;
03425        gfloat _tmp0_;
03426        g_return_val_if_fail (self != NULL, 0.0F);
03427        _tmp0_ = self->priv->_rating;
03428        result = _tmp0_;
03429        return result;
03430 }
03431 
03432 
03433 void unity_protocol_movie_preview_set_rating (UnityProtocolMoviePreview* self, gfloat value) {
03434        gfloat _tmp0_;
03435        g_return_if_fail (self != NULL);
03436        _tmp0_ = value;
03437        self->priv->_rating = _tmp0_;
03438        g_object_notify ((GObject *) self, "rating");
03439 }
03440 
03441 
03442 guint unity_protocol_movie_preview_get_num_ratings (UnityProtocolMoviePreview* self) {
03443        guint result;
03444        guint _tmp0_;
03445        g_return_val_if_fail (self != NULL, 0U);
03446        _tmp0_ = self->priv->_num_ratings;
03447        result = _tmp0_;
03448        return result;
03449 }
03450 
03451 
03452 void unity_protocol_movie_preview_set_num_ratings (UnityProtocolMoviePreview* self, guint value) {
03453        guint _tmp0_;
03454        g_return_if_fail (self != NULL);
03455        _tmp0_ = value;
03456        self->priv->_num_ratings = _tmp0_;
03457        g_object_notify ((GObject *) self, "num-ratings");
03458 }
03459 
03460 
03461 static Block3Data* block3_data_ref (Block3Data* _data3_) {
03462        g_atomic_int_inc (&_data3_->_ref_count_);
03463        return _data3_;
03464 }
03465 
03466 
03467 static void block3_data_unref (void * _userdata_) {
03468        Block3Data* _data3_;
03469        _data3_ = (Block3Data*) _userdata_;
03470        if (g_atomic_int_dec_and_test (&_data3_->_ref_count_)) {
03471               _g_object_unref0 (_data3_->_result_);
03472               g_slice_free (Block3Data, _data3_);
03473        }
03474 }
03475 
03476 
03477 static void __lambda14_ (Block3Data* _data3_, GVariant* v) {
03478        UnityProtocolMoviePreview* _tmp0_;
03479        GVariant* _tmp1_;
03480        gdouble _tmp2_ = 0.0;
03481        g_return_if_fail (v != NULL);
03482        _tmp0_ = _data3_->_result_;
03483        _tmp1_ = v;
03484        _tmp2_ = g_variant_get_double (_tmp1_);
03485        unity_protocol_movie_preview_set_rating (_tmp0_, (gfloat) _tmp2_);
03486 }
03487 
03488 
03489 static void ___lambda14__gfunc (gconstpointer data, gpointer self) {
03490        __lambda14_ (self, data);
03491 }
03492 
03493 
03494 static void __lambda15_ (Block3Data* _data3_, GVariant* v) {
03495        UnityProtocolMoviePreview* _tmp0_;
03496        GVariant* _tmp1_;
03497        guint32 _tmp2_ = 0U;
03498        g_return_if_fail (v != NULL);
03499        _tmp0_ = _data3_->_result_;
03500        _tmp1_ = v;
03501        _tmp2_ = g_variant_get_uint32 (_tmp1_);
03502        unity_protocol_movie_preview_set_num_ratings (_tmp0_, (guint) _tmp2_);
03503 }
03504 
03505 
03506 static void ___lambda15__gfunc (gconstpointer data, gpointer self) {
03507        __lambda15_ (self, data);
03508 }
03509 
03510 
03511 static void __lambda16_ (Block3Data* _data3_, GVariant* v) {
03512        UnityProtocolMoviePreview* _tmp0_;
03513        GVariant* _tmp1_;
03514        const gchar* _tmp2_ = NULL;
03515        g_return_if_fail (v != NULL);
03516        _tmp0_ = _data3_->_result_;
03517        _tmp1_ = v;
03518        _tmp2_ = g_variant_get_string (_tmp1_, NULL);
03519        unity_protocol_movie_preview_set_year (_tmp0_, _tmp2_);
03520 }
03521 
03522 
03523 static void ___lambda16__gfunc (gconstpointer data, gpointer self) {
03524        __lambda16_ (self, data);
03525 }
03526 
03527 
03528 static GObject* _unity_protocol_movie_preview___lambda13_ (GVariant* data) {
03529        GObject* result = NULL;
03530        Block3Data* _data3_;
03531        GVariant* _tmp0_;
03532        GVariant* _tmp1_ = NULL;
03533        GVariant* _tmp2_;
03534        const gchar* _tmp3_ = NULL;
03535        const gchar* _tmp4_;
03536        const gchar* renderer;
03537        const gchar* _tmp5_;
03538        GHashTable* properties = NULL;
03539        GVariant* _tmp6_;
03540        GHashTable* _tmp7_ = NULL;
03541        gpointer _tmp8_ = NULL;
03542        GHashTable* _tmp9_;
03543        gconstpointer _tmp10_ = NULL;
03544        GHashTable* _tmp11_;
03545        gconstpointer _tmp12_ = NULL;
03546        GHashTable* _tmp13_;
03547        gconstpointer _tmp14_ = NULL;
03548        UnityProtocolMoviePreview* _tmp15_;
03549        GObject* _tmp16_;
03550        g_return_val_if_fail (data != NULL, NULL);
03551        _data3_ = g_slice_new0 (Block3Data);
03552        _data3_->_ref_count_ = 1;
03553        _tmp0_ = data;
03554        _tmp1_ = g_variant_get_child_value (_tmp0_, (gsize) 0);
03555        _tmp2_ = _tmp1_;
03556        _tmp3_ = g_variant_get_string (_tmp2_, NULL);
03557        _tmp4_ = _tmp3_;
03558        _g_variant_unref0 (_tmp2_);
03559        renderer = _tmp4_;
03560        _tmp5_ = renderer;
03561        g_warn_if_fail (g_strcmp0 (_tmp5_, UNITY_PROTOCOL_MOVIE_PREVIEW_RENDERER_NAME) == 0);
03562        _tmp6_ = data;
03563        _tmp8_ = unity_protocol_preview_deserialize (UNITY_PROTOCOL_TYPE_MOVIE_PREVIEW, (GBoxedCopyFunc) g_object_ref, g_object_unref, _tmp6_, &_tmp7_);
03564        _g_hash_table_unref0 (properties);
03565        properties = _tmp7_;
03566        _data3_->_result_ = (UnityProtocolMoviePreview*) _tmp8_;
03567        _tmp9_ = properties;
03568        _tmp10_ = g_hash_table_lookup (_tmp9_, "rating");
03569        unity_protocol_preview_checked_set ((GVariant*) _tmp10_, ___lambda14__gfunc, _data3_);
03570        _tmp11_ = properties;
03571        _tmp12_ = g_hash_table_lookup (_tmp11_, "num-ratings");
03572        unity_protocol_preview_checked_set ((GVariant*) _tmp12_, ___lambda15__gfunc, _data3_);
03573        _tmp13_ = properties;
03574        _tmp14_ = g_hash_table_lookup (_tmp13_, "year");
03575        unity_protocol_preview_checked_set ((GVariant*) _tmp14_, ___lambda16__gfunc, _data3_);
03576        _tmp15_ = _data3_->_result_;
03577        _tmp16_ = _g_object_ref0 ((GObject*) _tmp15_);
03578        result = _tmp16_;
03579        _g_hash_table_unref0 (properties);
03580        block3_data_unref (_data3_);
03581        _data3_ = NULL;
03582        return result;
03583 }
03584 
03585 
03586 static GObject* __unity_protocol_movie_preview___lambda13__dee_serializable_parse_func (GVariant* data) {
03587        GObject* result;
03588        result = _unity_protocol_movie_preview___lambda13_ (data);
03589        return result;
03590 }
03591 
03592 
03593 static void unity_protocol_movie_preview_class_init (UnityProtocolMoviePreviewClass * klass) {
03594        GVariantType* _tmp0_;
03595        GVariantType* _tmp1_;
03596        unity_protocol_movie_preview_parent_class = g_type_class_peek_parent (klass);
03597        g_type_class_add_private (klass, sizeof (UnityProtocolMoviePreviewPrivate));
03598        UNITY_PROTOCOL_PREVIEW_CLASS (klass)->get_renderer_name = unity_protocol_movie_preview_real_get_renderer_name;
03599        UNITY_PROTOCOL_PREVIEW_CLASS (klass)->add_properties = unity_protocol_movie_preview_real_add_properties;
03600        G_OBJECT_CLASS (klass)->get_property = _vala_unity_protocol_movie_preview_get_property;
03601        G_OBJECT_CLASS (klass)->set_property = _vala_unity_protocol_movie_preview_set_property;
03602        G_OBJECT_CLASS (klass)->finalize = unity_protocol_movie_preview_finalize;
03603        g_object_class_install_property (G_OBJECT_CLASS (klass), UNITY_PROTOCOL_MOVIE_PREVIEW_YEAR, g_param_spec_string ("year", "year", "year", NULL, G_PARAM_STATIC_NAME | G_PARAM_STATIC_NICK | G_PARAM_STATIC_BLURB | G_PARAM_READABLE | G_PARAM_WRITABLE));
03604        g_object_class_install_property (G_OBJECT_CLASS (klass), UNITY_PROTOCOL_MOVIE_PREVIEW_RATING, g_param_spec_float ("rating", "rating", "rating", -G_MAXFLOAT, G_MAXFLOAT, 0.0F, G_PARAM_STATIC_NAME | G_PARAM_STATIC_NICK | G_PARAM_STATIC_BLURB | G_PARAM_READABLE | G_PARAM_WRITABLE));
03605        g_object_class_install_property (G_OBJECT_CLASS (klass), UNITY_PROTOCOL_MOVIE_PREVIEW_NUM_RATINGS, g_param_spec_uint ("num-ratings", "num-ratings", "num-ratings", 0, G_MAXUINT, 0U, G_PARAM_STATIC_NAME | G_PARAM_STATIC_NICK | G_PARAM_STATIC_BLURB | G_PARAM_READABLE | G_PARAM_WRITABLE));
03606        _tmp0_ = g_variant_type_new (UNITY_PROTOCOL_PREVIEW_RAW_SIGNATURE);
03607        _tmp1_ = _tmp0_;
03608        dee_serializable_register_parser (UNITY_PROTOCOL_TYPE_MOVIE_PREVIEW, _tmp1_, __unity_protocol_movie_preview___lambda13__dee_serializable_parse_func);
03609        _g_variant_type_free0 (_tmp1_);
03610 }
03611 
03612 
03613 static void unity_protocol_movie_preview_instance_init (UnityProtocolMoviePreview * self) {
03614        self->priv = UNITY_PROTOCOL_MOVIE_PREVIEW_GET_PRIVATE (self);
03615 }
03616 
03617 
03618 static void unity_protocol_movie_preview_finalize (GObject* obj) {
03619        UnityProtocolMoviePreview * self;
03620        self = G_TYPE_CHECK_INSTANCE_CAST (obj, UNITY_PROTOCOL_TYPE_MOVIE_PREVIEW, UnityProtocolMoviePreview);
03621        _g_free0 (self->priv->_year);
03622        G_OBJECT_CLASS (unity_protocol_movie_preview_parent_class)->finalize (obj);
03623 }
03624 
03625 
03626 GType unity_protocol_movie_preview_get_type (void) {
03627        static volatile gsize unity_protocol_movie_preview_type_id__volatile = 0;
03628        if (g_once_init_enter (&unity_protocol_movie_preview_type_id__volatile)) {
03629               static const GTypeInfo g_define_type_info = { sizeof (UnityProtocolMoviePreviewClass), (GBaseInitFunc) NULL, (GBaseFinalizeFunc) NULL, (GClassInitFunc) unity_protocol_movie_preview_class_init, (GClassFinalizeFunc) NULL, NULL, sizeof (UnityProtocolMoviePreview), 0, (GInstanceInitFunc) unity_protocol_movie_preview_instance_init, NULL };
03630               GType unity_protocol_movie_preview_type_id;
03631               unity_protocol_movie_preview_type_id = g_type_register_static (UNITY_PROTOCOL_TYPE_PREVIEW, "UnityProtocolMoviePreview", &g_define_type_info, 0);
03632               g_once_init_leave (&unity_protocol_movie_preview_type_id__volatile, unity_protocol_movie_preview_type_id);
03633        }
03634        return unity_protocol_movie_preview_type_id__volatile;
03635 }
03636 
03637 
03638 static void _vala_unity_protocol_movie_preview_get_property (GObject * object, guint property_id, GValue * value, GParamSpec * pspec) {
03639        UnityProtocolMoviePreview * self;
03640        self = G_TYPE_CHECK_INSTANCE_CAST (object, UNITY_PROTOCOL_TYPE_MOVIE_PREVIEW, UnityProtocolMoviePreview);
03641        switch (property_id) {
03642               case UNITY_PROTOCOL_MOVIE_PREVIEW_YEAR:
03643               g_value_set_string (value, unity_protocol_movie_preview_get_year (self));
03644               break;
03645               case UNITY_PROTOCOL_MOVIE_PREVIEW_RATING:
03646               g_value_set_float (value, unity_protocol_movie_preview_get_rating (self));
03647               break;
03648               case UNITY_PROTOCOL_MOVIE_PREVIEW_NUM_RATINGS:
03649               g_value_set_uint (value, unity_protocol_movie_preview_get_num_ratings (self));
03650               break;
03651               default:
03652               G_OBJECT_WARN_INVALID_PROPERTY_ID (object, property_id, pspec);
03653               break;
03654        }
03655 }
03656 
03657 
03658 static void _vala_unity_protocol_movie_preview_set_property (GObject * object, guint property_id, const GValue * value, GParamSpec * pspec) {
03659        UnityProtocolMoviePreview * self;
03660        self = G_TYPE_CHECK_INSTANCE_CAST (object, UNITY_PROTOCOL_TYPE_MOVIE_PREVIEW, UnityProtocolMoviePreview);
03661        switch (property_id) {
03662               case UNITY_PROTOCOL_MOVIE_PREVIEW_YEAR:
03663               unity_protocol_movie_preview_set_year (self, g_value_get_string (value));
03664               break;
03665               case UNITY_PROTOCOL_MOVIE_PREVIEW_RATING:
03666               unity_protocol_movie_preview_set_rating (self, g_value_get_float (value));
03667               break;
03668               case UNITY_PROTOCOL_MOVIE_PREVIEW_NUM_RATINGS:
03669               unity_protocol_movie_preview_set_num_ratings (self, g_value_get_uint (value));
03670               break;
03671               default:
03672               G_OBJECT_WARN_INVALID_PROPERTY_ID (object, property_id, pspec);
03673               break;
03674        }
03675 }
03676 
03677 
03678 void unity_protocol_series_item_raw_copy (const UnityProtocolSeriesItemRaw* self, UnityProtocolSeriesItemRaw* dest) {
03679        const gchar* _tmp0_;
03680        gchar* _tmp1_;
03681        const gchar* _tmp2_;
03682        gchar* _tmp3_;
03683        const gchar* _tmp4_;
03684        gchar* _tmp5_;
03685        _tmp0_ = (*self).uri;
03686        _tmp1_ = g_strdup (_tmp0_);
03687        _g_free0 ((*dest).uri);
03688        (*dest).uri = _tmp1_;
03689        _tmp2_ = (*self).title;
03690        _tmp3_ = g_strdup (_tmp2_);
03691        _g_free0 ((*dest).title);
03692        (*dest).title = _tmp3_;
03693        _tmp4_ = (*self).icon_hint;
03694        _tmp5_ = g_strdup (_tmp4_);
03695        _g_free0 ((*dest).icon_hint);
03696        (*dest).icon_hint = _tmp5_;
03697 }
03698 
03699 
03700 void unity_protocol_series_item_raw_destroy (UnityProtocolSeriesItemRaw* self) {
03701        _g_free0 ((*self).uri);
03702        _g_free0 ((*self).title);
03703        _g_free0 ((*self).icon_hint);
03704 }
03705 
03706 
03707 UnityProtocolSeriesItemRaw* unity_protocol_series_item_raw_dup (const UnityProtocolSeriesItemRaw* self) {
03708        UnityProtocolSeriesItemRaw* dup;
03709        dup = g_new0 (UnityProtocolSeriesItemRaw, 1);
03710        unity_protocol_series_item_raw_copy (self, dup);
03711        return dup;
03712 }
03713 
03714 
03715 void unity_protocol_series_item_raw_free (UnityProtocolSeriesItemRaw* self) {
03716        unity_protocol_series_item_raw_destroy (self);
03717        g_free (self);
03718 }
03719 
03720 
03721 GType unity_protocol_series_item_raw_get_type (void) {
03722        static volatile gsize unity_protocol_series_item_raw_type_id__volatile = 0;
03723        if (g_once_init_enter (&unity_protocol_series_item_raw_type_id__volatile)) {
03724               GType unity_protocol_series_item_raw_type_id;
03725               unity_protocol_series_item_raw_type_id = g_boxed_type_register_static ("UnityProtocolSeriesItemRaw", (GBoxedCopyFunc) unity_protocol_series_item_raw_dup, (GBoxedFreeFunc) unity_protocol_series_item_raw_free);
03726               g_once_init_leave (&unity_protocol_series_item_raw_type_id__volatile, unity_protocol_series_item_raw_type_id);
03727        }
03728        return unity_protocol_series_item_raw_type_id__volatile;
03729 }
03730 
03731 
03732 static void _vala_UnityProtocolSeriesItemRaw_array_free (UnityProtocolSeriesItemRaw* array, gint array_length) {
03733        if (array != NULL) {
03734               int i;
03735               for (i = 0; i < array_length; i = i + 1) {
03736                      unity_protocol_series_item_raw_destroy (&array[i]);
03737               }
03738        }
03739        g_free (array);
03740 }
03741 
03742 
03743 UnityProtocolSeriesPreview* unity_protocol_series_preview_construct (GType object_type) {
03744        UnityProtocolSeriesPreview * self = NULL;
03745        self = (UnityProtocolSeriesPreview*) g_object_new (object_type, NULL);
03746        return self;
03747 }
03748 
03749 
03750 UnityProtocolSeriesPreview* unity_protocol_series_preview_new (void) {
03751        return unity_protocol_series_preview_construct (UNITY_PROTOCOL_TYPE_SERIES_PREVIEW);
03752 }
03753 
03754 
03755 static GVariant* _variant_new21 (gint value) {
03756        return g_variant_ref_sink (g_variant_new_int32 (value));
03757 }
03758 
03759 
03760 static void ___lambda17_ (UnityProtocolSeriesPreview* self) {
03761        gint _tmp0_;
03762        GVariant* _tmp1_;
03763        _tmp0_ = self->priv->_selected_item;
03764        _tmp1_ = _variant_new21 (_tmp0_);
03765        unity_protocol_preview_add_update ((UnityProtocolPreview*) self, "series-active-index", _tmp1_);
03766 }
03767 
03768 
03769 static void ____lambda17__g_object_notify (GObject* _sender, GParamSpec* pspec, gpointer self) {
03770        ___lambda17_ (self);
03771 }
03772 
03773 
03774 static void unity_protocol_series_preview_real_begin_updates (UnityProtocolPreview* base) {
03775        UnityProtocolSeriesPreview * self;
03776        gulong _tmp0_;
03777        self = (UnityProtocolSeriesPreview*) base;
03778        UNITY_PROTOCOL_PREVIEW_CLASS (unity_protocol_series_preview_parent_class)->begin_updates (G_TYPE_CHECK_INSTANCE_CAST (self, UNITY_PROTOCOL_TYPE_PREVIEW, UnityProtocolPreview));
03779        _tmp0_ = self->priv->_selected_item_sig_id;
03780        if (_tmp0_ == ((gulong) 0)) {
03781               gulong _tmp1_ = 0UL;
03782               _tmp1_ = g_signal_connect_object ((GObject*) self, "notify::selected-item", (GCallback) ____lambda17__g_object_notify, self, 0);
03783               self->priv->_selected_item_sig_id = _tmp1_;
03784        }
03785 }
03786 
03787 
03788 static GHashTable* unity_protocol_series_preview_real_end_updates_as_hashtable (UnityProtocolPreview* base) {
03789        UnityProtocolSeriesPreview * self;
03790        GHashTable* result = NULL;
03791        gulong _tmp0_;
03792        GHashTable* _tmp2_ = NULL;
03793        self = (UnityProtocolSeriesPreview*) base;
03794        _tmp0_ = self->priv->_selected_item_sig_id;
03795        if (_tmp0_ > ((gulong) 0)) {
03796               gulong _tmp1_;
03797               _tmp1_ = self->priv->_selected_item_sig_id;
03798               g_signal_handler_disconnect (self, _tmp1_);
03799               self->priv->_selected_item_sig_id = (gulong) 0;
03800        }
03801        _tmp2_ = UNITY_PROTOCOL_PREVIEW_CLASS (unity_protocol_series_preview_parent_class)->end_updates_as_hashtable (G_TYPE_CHECK_INSTANCE_CAST (self, UNITY_PROTOCOL_TYPE_PREVIEW, UnityProtocolPreview));
03802        result = _tmp2_;
03803        return result;
03804 }
03805 
03806 
03807 static gpointer _unity_protocol_series_item_raw_dup0 (gpointer self) {
03808        return self ? unity_protocol_series_item_raw_dup (self) : NULL;
03809 }
03810 
03811 
03812 static void _vala_array_add3 (UnityProtocolSeriesItemRaw** array, int* length, int* size, const UnityProtocolSeriesItemRaw* value) {
03813        if ((*length) == (*size)) {
03814               *size = (*size) ? (2 * (*size)) : 4;
03815               *array = g_renew (UnityProtocolSeriesItemRaw, *array, *size);
03816        }
03817        (*array)[(*length)++] = *value;
03818 }
03819 
03820 
03821 void unity_protocol_series_preview_add_series_item (UnityProtocolSeriesPreview* self, const gchar* title, const gchar* uri, GIcon* icon) {
03822        UnityProtocolSeriesItemRaw _tmp0_ = {0};
03823        UnityProtocolSeriesItemRaw _tmp1_;
03824        UnityProtocolSeriesItemRaw* _tmp2_;
03825        UnityProtocolSeriesItemRaw* _tmp3_;
03826        UnityProtocolSeriesItemRaw* item;
03827        UnityProtocolSeriesItemRaw* _tmp4_;
03828        const gchar* _tmp5_;
03829        gchar* _tmp6_;
03830        UnityProtocolSeriesItemRaw* _tmp7_;
03831        const gchar* _tmp8_;
03832        gchar* _tmp9_;
03833        gchar* _tmp10_ = NULL;
03834        GIcon* _tmp11_;
03835        UnityProtocolSeriesItemRaw* _tmp15_;
03836        const gchar* _tmp16_;
03837        gchar* _tmp17_;
03838        UnityProtocolSeriesItemRaw* _tmp18_;
03839        gint _tmp18__length1;
03840        UnityProtocolSeriesItemRaw* _tmp19_;
03841        UnityProtocolSeriesItemRaw* _tmp20_;
03842        UnityProtocolSeriesItemRaw _tmp21_ = {0};
03843        g_return_if_fail (self != NULL);
03844        g_return_if_fail (title != NULL);
03845        g_return_if_fail (uri != NULL);
03846        memset (&_tmp0_, 0, sizeof (UnityProtocolSeriesItemRaw));
03847        _tmp1_ = _tmp0_;
03848        _tmp2_ = _unity_protocol_series_item_raw_dup0 (&_tmp1_);
03849        _tmp3_ = _tmp2_;
03850        unity_protocol_series_item_raw_destroy (&_tmp1_);
03851        item = _tmp3_;
03852        _tmp4_ = item;
03853        _tmp5_ = uri;
03854        _tmp6_ = g_strdup (_tmp5_);
03855        _g_free0 ((*_tmp4_).uri);
03856        (*_tmp4_).uri = _tmp6_;
03857        _tmp7_ = item;
03858        _tmp8_ = title;
03859        _tmp9_ = g_strdup (_tmp8_);
03860        _g_free0 ((*_tmp7_).title);
03861        (*_tmp7_).title = _tmp9_;
03862        _tmp11_ = icon;
03863        if (_tmp11_ != NULL) {
03864               GIcon* _tmp12_;
03865               gchar* _tmp13_ = NULL;
03866               _tmp12_ = icon;
03867               _tmp13_ = g_icon_to_string (_tmp12_);
03868               _g_free0 (_tmp10_);
03869               _tmp10_ = _tmp13_;
03870        } else {
03871               gchar* _tmp14_;
03872               _tmp14_ = g_strdup ("");
03873               _g_free0 (_tmp10_);
03874               _tmp10_ = _tmp14_;
03875        }
03876        _tmp15_ = item;
03877        _tmp16_ = _tmp10_;
03878        _tmp17_ = g_strdup (_tmp16_);
03879        _g_free0 ((*_tmp15_).icon_hint);
03880        (*_tmp15_).icon_hint = _tmp17_;
03881        _tmp18_ = self->priv->_items;
03882        _tmp18__length1 = self->priv->_items_length1;
03883        _tmp19_ = item;
03884        item = NULL;
03885        _tmp20_ = _tmp19_;
03886        unity_protocol_series_item_raw_copy (_tmp20_, &_tmp21_);
03887        _vala_array_add3 (&self->priv->_items, &self->priv->_items_length1, &self->priv->__items_size_, &_tmp21_);
03888        _unity_protocol_series_item_raw_free0 (_tmp20_);
03889        _g_free0 (_tmp10_);
03890        _unity_protocol_series_item_raw_free0 (item);
03891 }
03892 
03893 
03894 UnityProtocolSeriesItemRaw* unity_protocol_series_preview_get_items (UnityProtocolSeriesPreview* self, int* result_length1) {
03895        UnityProtocolSeriesItemRaw* result = NULL;
03896        UnityProtocolSeriesItemRaw* _tmp0_;
03897        gint _tmp0__length1;
03898        UnityProtocolSeriesItemRaw* _tmp1_;
03899        gint _tmp1__length1;
03900        g_return_val_if_fail (self != NULL, NULL);
03901        _tmp0_ = self->priv->_items;
03902        _tmp0__length1 = self->priv->_items_length1;
03903        _tmp1_ = _tmp0_;
03904        _tmp1__length1 = _tmp0__length1;
03905        if (result_length1) {
03906               *result_length1 = _tmp1__length1;
03907        }
03908        result = _tmp1_;
03909        return result;
03910 }
03911 
03912 
03913 static const gchar* unity_protocol_series_preview_real_get_renderer_name (UnityProtocolPreview* base) {
03914        UnityProtocolSeriesPreview * self;
03915        const gchar* result = NULL;
03916        self = (UnityProtocolSeriesPreview*) base;
03917        result = UNITY_PROTOCOL_SERIES_PREVIEW_RENDERER_NAME;
03918        return result;
03919 }
03920 
03921 
03922 static void unity_protocol_series_preview_real_update_property (UnityProtocolPreview* base, GHashTable* properties) {
03923        UnityProtocolSeriesPreview * self;
03924        GHashTable* _tmp0_;
03925        GHashTable* _tmp1_;
03926        gboolean _tmp2_ = FALSE;
03927        self = (UnityProtocolSeriesPreview*) base;
03928        g_return_if_fail (properties != NULL);
03929        _tmp0_ = properties;
03930        UNITY_PROTOCOL_PREVIEW_CLASS (unity_protocol_series_preview_parent_class)->update_property (G_TYPE_CHECK_INSTANCE_CAST (self, UNITY_PROTOCOL_TYPE_PREVIEW, UnityProtocolPreview), _tmp0_);
03931        _tmp1_ = properties;
03932        _tmp2_ = g_hash_table_contains (_tmp1_, "series-active-index");
03933        if (_tmp2_) {
03934               GHashTable* _tmp3_;
03935               gconstpointer _tmp4_ = NULL;
03936               gint32 _tmp5_ = 0;
03937               _tmp3_ = properties;
03938               _tmp4_ = g_hash_table_lookup (_tmp3_, "series-active-index");
03939               _tmp5_ = g_variant_get_int32 ((GVariant*) _tmp4_);
03940               unity_protocol_series_preview_set_selected_item (self, (gint) _tmp5_);
03941        }
03942 }
03943 
03944 
03945 static GVariant* _variant_new22 (UnityProtocolSeriesItemRaw* value, gint value_length1) {
03946        UnityProtocolSeriesItemRaw* _tmp5_;
03947        GVariantBuilder _tmp6_;
03948        int _tmp7_;
03949        _tmp5_ = value;
03950        g_variant_builder_init (&_tmp6_, G_VARIANT_TYPE ("a(sss)"));
03951        for (_tmp7_ = 0; _tmp7_ < value_length1; _tmp7_++) {
03952               GVariantBuilder _tmp8_;
03953               g_variant_builder_init (&_tmp8_, G_VARIANT_TYPE_TUPLE);
03954               g_variant_builder_add_value (&_tmp8_, g_variant_new_string ((*_tmp5_).uri));
03955               g_variant_builder_add_value (&_tmp8_, g_variant_new_string ((*_tmp5_).title));
03956               g_variant_builder_add_value (&_tmp8_, g_variant_new_string ((*_tmp5_).icon_hint));
03957               g_variant_builder_add_value (&_tmp6_, g_variant_builder_end (&_tmp8_));
03958               _tmp5_++;
03959        }
03960        return g_variant_ref_sink (g_variant_builder_end (&_tmp6_));
03961 }
03962 
03963 
03964 static GVariant* _variant_new23 (gint value) {
03965        return g_variant_ref_sink (g_variant_new_int32 (value));
03966 }
03967 
03968 
03969 static void unity_protocol_series_preview_real_add_properties (UnityProtocolPreview* base, GHashTable* properties) {
03970        UnityProtocolSeriesPreview * self;
03971        GHashTable* _tmp0_;
03972        UnityProtocolSeriesItemRaw* _tmp1_;
03973        gint _tmp1__length1;
03974        UnityProtocolPreview* _tmp10_;
03975        gint _tmp15_;
03976        self = (UnityProtocolSeriesPreview*) base;
03977        g_return_if_fail (properties != NULL);
03978        _tmp0_ = properties;
03979        UNITY_PROTOCOL_PREVIEW_CLASS (unity_protocol_series_preview_parent_class)->add_properties (G_TYPE_CHECK_INSTANCE_CAST (self, UNITY_PROTOCOL_TYPE_PREVIEW, UnityProtocolPreview), _tmp0_);
03980        _tmp1_ = self->priv->_items;
03981        _tmp1__length1 = self->priv->_items_length1;
03982        if (_tmp1__length1 > 0) {
03983               GHashTable* _tmp2_;
03984               gchar* _tmp3_;
03985               UnityProtocolSeriesItemRaw* _tmp4_;
03986               gint _tmp4__length1;
03987               GVariant* _tmp9_;
03988               _tmp2_ = properties;
03989               _tmp3_ = g_strdup ("series-items");
03990               _tmp4_ = self->priv->_items;
03991               _tmp4__length1 = self->priv->_items_length1;
03992               _tmp9_ = _variant_new22 (_tmp4_, _tmp4__length1);
03993               g_hash_table_insert (_tmp2_, _tmp3_, _tmp9_);
03994        }
03995        _tmp10_ = self->priv->_child_preview;
03996        if (_tmp10_ != NULL) {
03997               GHashTable* _tmp11_;
03998               gchar* _tmp12_;
03999               UnityProtocolPreview* _tmp13_;
04000               GVariant* _tmp14_ = NULL;
04001               _tmp11_ = properties;
04002               _tmp12_ = g_strdup ("current-preview");
04003               _tmp13_ = self->priv->_child_preview;
04004               _tmp14_ = dee_serializable_serialize ((DeeSerializable*) _tmp13_);
04005               g_hash_table_insert (_tmp11_, _tmp12_, _tmp14_);
04006        }
04007        _tmp15_ = self->priv->_selected_item;
04008        if (_tmp15_ >= 0) {
04009               GHashTable* _tmp16_;
04010               gchar* _tmp17_;
04011               gint _tmp18_;
04012               GVariant* _tmp19_;
04013               _tmp16_ = properties;
04014               _tmp17_ = g_strdup ("series-active-index");
04015               _tmp18_ = self->priv->_selected_item;
04016               _tmp19_ = _variant_new23 (_tmp18_);
04017               g_hash_table_insert (_tmp16_, _tmp17_, _tmp19_);
04018        }
04019 }
04020 
04021 
04022 gint unity_protocol_series_preview_get_selected_item (UnityProtocolSeriesPreview* self) {
04023        gint result;
04024        gint _tmp0_;
04025        g_return_val_if_fail (self != NULL, 0);
04026        _tmp0_ = self->priv->_selected_item;
04027        result = _tmp0_;
04028        return result;
04029 }
04030 
04031 
04032 void unity_protocol_series_preview_set_selected_item (UnityProtocolSeriesPreview* self, gint value) {
04033        gint _tmp0_;
04034        g_return_if_fail (self != NULL);
04035        _tmp0_ = value;
04036        self->priv->_selected_item = _tmp0_;
04037        g_object_notify ((GObject *) self, "selected-item");
04038 }
04039 
04040 
04041 UnityProtocolPreview* unity_protocol_series_preview_get_child_preview (UnityProtocolSeriesPreview* self) {
04042        UnityProtocolPreview* result;
04043        UnityProtocolPreview* _tmp0_;
04044        g_return_val_if_fail (self != NULL, NULL);
04045        _tmp0_ = self->priv->_child_preview;
04046        result = _tmp0_;
04047        return result;
04048 }
04049 
04050 
04051 void unity_protocol_series_preview_set_child_preview (UnityProtocolSeriesPreview* self, UnityProtocolPreview* value) {
04052        UnityProtocolPreview* _tmp0_;
04053        UnityProtocolPreview* _tmp1_;
04054        g_return_if_fail (self != NULL);
04055        _tmp0_ = value;
04056        _tmp1_ = _g_object_ref0 (_tmp0_);
04057        _g_object_unref0 (self->priv->_child_preview);
04058        self->priv->_child_preview = _tmp1_;
04059        g_object_notify ((GObject *) self, "child-preview");
04060 }
04061 
04062 
04063 static Block4Data* block4_data_ref (Block4Data* _data4_) {
04064        g_atomic_int_inc (&_data4_->_ref_count_);
04065        return _data4_;
04066 }
04067 
04068 
04069 static void block4_data_unref (void * _userdata_) {
04070        Block4Data* _data4_;
04071        _data4_ = (Block4Data*) _userdata_;
04072        if (g_atomic_int_dec_and_test (&_data4_->_ref_count_)) {
04073               _g_object_unref0 (_data4_->_result_);
04074               g_slice_free (Block4Data, _data4_);
04075        }
04076 }
04077 
04078 
04079 static UnityProtocolSeriesItemRaw* _variant_get24 (GVariant* value, int* result_length1) {
04080        UnityProtocolSeriesItemRaw* _tmp2_;
04081        int _tmp2__length;
04082        int _tmp2__size;
04083        int _tmp2__length1;
04084        GVariantIter _tmp3_;
04085        GVariant* _tmp4_;
04086        _tmp2_ = g_new (UnityProtocolSeriesItemRaw, 5);
04087        _tmp2__length = 0;
04088        _tmp2__size = 4;
04089        _tmp2__length1 = 0;
04090        g_variant_iter_init (&_tmp3_, value);
04091        for (; (_tmp4_ = g_variant_iter_next_value (&_tmp3_)) != NULL; _tmp2__length1++) {
04092               UnityProtocolSeriesItemRaw _tmp5_;
04093               GVariantIter _tmp6_;
04094               GVariant* _tmp7_;
04095               GVariant* _tmp8_;
04096               GVariant* _tmp9_;
04097               if (_tmp2__size == _tmp2__length) {
04098                      _tmp2__size = 2 * _tmp2__size;
04099                      _tmp2_ = g_renew (UnityProtocolSeriesItemRaw, _tmp2_, _tmp2__size + 1);
04100               }
04101               g_variant_iter_init (&_tmp6_, _tmp4_);
04102               _tmp7_ = g_variant_iter_next_value (&_tmp6_);
04103               _tmp5_.uri = g_variant_dup_string (_tmp7_, NULL);
04104               g_variant_unref (_tmp7_);
04105               _tmp8_ = g_variant_iter_next_value (&_tmp6_);
04106               _tmp5_.title = g_variant_dup_string (_tmp8_, NULL);
04107               g_variant_unref (_tmp8_);
04108               _tmp9_ = g_variant_iter_next_value (&_tmp6_);
04109               _tmp5_.icon_hint = g_variant_dup_string (_tmp9_, NULL);
04110               g_variant_unref (_tmp9_);
04111               _tmp2_[_tmp2__length++] = _tmp5_;
04112               g_variant_unref (_tmp4_);
04113        }
04114        *result_length1 = _tmp2__length1;
04115        return _tmp2_;
04116 }
04117 
04118 
04119 static void __lambda19_ (Block4Data* _data4_, GVariant* v) {
04120        GVariant* _tmp0_;
04121        UnityProtocolSeriesItemRaw* _tmp1_;
04122        gint _tmp1__length1;
04123        UnityProtocolSeriesItemRaw* items;
04124        gint items_length1;
04125        gint _items_size_;
04126        UnityProtocolSeriesPreview* _tmp10_;
04127        UnityProtocolSeriesItemRaw* _tmp11_;
04128        gint _tmp11__length1;
04129        g_return_if_fail (v != NULL);
04130        _tmp0_ = v;
04131        _tmp1_ = _variant_get24 (_tmp0_, &_tmp1__length1);
04132        items = _tmp1_;
04133        items_length1 = _tmp1__length1;
04134        _items_size_ = items_length1;
04135        _tmp10_ = _data4_->_result_;
04136        _tmp11_ = items;
04137        _tmp11__length1 = items_length1;
04138        items = NULL;
04139        _tmp10_->priv->_items = (_vala_UnityProtocolSeriesItemRaw_array_free (_tmp10_->priv->_items, _tmp10_->priv->_items_length1), NULL);
04140        _tmp10_->priv->_items = _tmp11_;
04141        _tmp10_->priv->_items_length1 = _tmp11__length1;
04142        _tmp10_->priv->__items_size_ = _tmp10_->priv->_items_length1;
04143        items = (_vala_UnityProtocolSeriesItemRaw_array_free (items, items_length1), NULL);
04144 }
04145 
04146 
04147 static void ___lambda19__gfunc (gconstpointer data, gpointer self) {
04148        __lambda19_ (self, data);
04149 }
04150 
04151 
04152 static void __lambda20_ (Block4Data* _data4_, GVariant* v) {
04153        UnityProtocolSeriesPreview* _tmp0_;
04154        GVariant* _tmp1_;
04155        gint32 _tmp2_ = 0;
04156        g_return_if_fail (v != NULL);
04157        _tmp0_ = _data4_->_result_;
04158        _tmp1_ = v;
04159        _tmp2_ = g_variant_get_int32 (_tmp1_);
04160        unity_protocol_series_preview_set_selected_item (_tmp0_, (gint) _tmp2_);
04161 }
04162 
04163 
04164 static void ___lambda20__gfunc (gconstpointer data, gpointer self) {
04165        __lambda20_ (self, data);
04166 }
04167 
04168 
04169 static void __lambda21_ (Block4Data* _data4_, GVariant* v) {
04170        UnityProtocolSeriesPreview* _tmp0_;
04171        GVariant* _tmp1_;
04172        UnityProtocolPreview* _tmp2_ = NULL;
04173        UnityProtocolPreview* _tmp3_;
04174        g_return_if_fail (v != NULL);
04175        _tmp0_ = _data4_->_result_;
04176        _tmp1_ = v;
04177        _tmp2_ = unity_protocol_preview_parse (_tmp1_);
04178        _tmp3_ = _tmp2_;
04179        unity_protocol_series_preview_set_child_preview (_tmp0_, _tmp3_);
04180        _g_object_unref0 (_tmp3_);
04181 }
04182 
04183 
04184 static void ___lambda21__gfunc (gconstpointer data, gpointer self) {
04185        __lambda21_ (self, data);
04186 }
04187 
04188 
04189 static GObject* _unity_protocol_series_preview___lambda18_ (GVariant* data) {
04190        GObject* result = NULL;
04191        Block4Data* _data4_;
04192        GVariant* _tmp0_;
04193        GVariant* _tmp1_ = NULL;
04194        GVariant* _tmp2_;
04195        const gchar* _tmp3_ = NULL;
04196        const gchar* _tmp4_;
04197        const gchar* renderer;
04198        const gchar* _tmp5_;
04199        GHashTable* properties = NULL;
04200        GVariant* _tmp6_;
04201        GHashTable* _tmp7_ = NULL;
04202        gpointer _tmp8_ = NULL;
04203        GHashTable* _tmp9_;
04204        gconstpointer _tmp10_ = NULL;
04205        GHashTable* _tmp11_;
04206        gconstpointer _tmp12_ = NULL;
04207        GHashTable* _tmp13_;
04208        gconstpointer _tmp14_ = NULL;
04209        UnityProtocolSeriesPreview* _tmp15_;
04210        GObject* _tmp16_;
04211        g_return_val_if_fail (data != NULL, NULL);
04212        _data4_ = g_slice_new0 (Block4Data);
04213        _data4_->_ref_count_ = 1;
04214        _tmp0_ = data;
04215        _tmp1_ = g_variant_get_child_value (_tmp0_, (gsize) 0);
04216        _tmp2_ = _tmp1_;
04217        _tmp3_ = g_variant_get_string (_tmp2_, NULL);
04218        _tmp4_ = _tmp3_;
04219        _g_variant_unref0 (_tmp2_);
04220        renderer = _tmp4_;
04221        _tmp5_ = renderer;
04222        g_warn_if_fail (g_strcmp0 (_tmp5_, UNITY_PROTOCOL_SERIES_PREVIEW_RENDERER_NAME) == 0);
04223        _tmp6_ = data;
04224        _tmp8_ = unity_protocol_preview_deserialize (UNITY_PROTOCOL_TYPE_SERIES_PREVIEW, (GBoxedCopyFunc) g_object_ref, g_object_unref, _tmp6_, &_tmp7_);
04225        _g_hash_table_unref0 (properties);
04226        properties = _tmp7_;
04227        _data4_->_result_ = (UnityProtocolSeriesPreview*) _tmp8_;
04228        _tmp9_ = properties;
04229        _tmp10_ = g_hash_table_lookup (_tmp9_, "series-items");
04230        unity_protocol_preview_checked_set ((GVariant*) _tmp10_, ___lambda19__gfunc, _data4_);
04231        _tmp11_ = properties;
04232        _tmp12_ = g_hash_table_lookup (_tmp11_, "series-active-index");
04233        unity_protocol_preview_checked_set ((GVariant*) _tmp12_, ___lambda20__gfunc, _data4_);
04234        _tmp13_ = properties;
04235        _tmp14_ = g_hash_table_lookup (_tmp13_, "current-preview");
04236        unity_protocol_preview_checked_set ((GVariant*) _tmp14_, ___lambda21__gfunc, _data4_);
04237        _tmp15_ = _data4_->_result_;
04238        _tmp16_ = _g_object_ref0 ((GObject*) _tmp15_);
04239        result = _tmp16_;
04240        _g_hash_table_unref0 (properties);
04241        block4_data_unref (_data4_);
04242        _data4_ = NULL;
04243        return result;
04244 }
04245 
04246 
04247 static GObject* __unity_protocol_series_preview___lambda18__dee_serializable_parse_func (GVariant* data) {
04248        GObject* result;
04249        result = _unity_protocol_series_preview___lambda18_ (data);
04250        return result;
04251 }
04252 
04253 
04254 static void unity_protocol_series_preview_class_init (UnityProtocolSeriesPreviewClass * klass) {
04255        GVariantType* _tmp0_;
04256        GVariantType* _tmp1_;
04257        unity_protocol_series_preview_parent_class = g_type_class_peek_parent (klass);
04258        g_type_class_add_private (klass, sizeof (UnityProtocolSeriesPreviewPrivate));
04259        UNITY_PROTOCOL_PREVIEW_CLASS (klass)->begin_updates = unity_protocol_series_preview_real_begin_updates;
04260        UNITY_PROTOCOL_PREVIEW_CLASS (klass)->end_updates_as_hashtable = unity_protocol_series_preview_real_end_updates_as_hashtable;
04261        UNITY_PROTOCOL_PREVIEW_CLASS (klass)->get_renderer_name = unity_protocol_series_preview_real_get_renderer_name;
04262        UNITY_PROTOCOL_PREVIEW_CLASS (klass)->update_property = unity_protocol_series_preview_real_update_property;
04263        UNITY_PROTOCOL_PREVIEW_CLASS (klass)->add_properties = unity_protocol_series_preview_real_add_properties;
04264        G_OBJECT_CLASS (klass)->get_property = _vala_unity_protocol_series_preview_get_property;
04265        G_OBJECT_CLASS (klass)->set_property = _vala_unity_protocol_series_preview_set_property;
04266        G_OBJECT_CLASS (klass)->finalize = unity_protocol_series_preview_finalize;
04267        g_object_class_install_property (G_OBJECT_CLASS (klass), UNITY_PROTOCOL_SERIES_PREVIEW_SELECTED_ITEM, g_param_spec_int ("selected-item", "selected-item", "selected-item", G_MININT, G_MAXINT, 0, G_PARAM_STATIC_NAME | G_PARAM_STATIC_NICK | G_PARAM_STATIC_BLURB | G_PARAM_READABLE | G_PARAM_WRITABLE));
04268        g_object_class_install_property (G_OBJECT_CLASS (klass), UNITY_PROTOCOL_SERIES_PREVIEW_CHILD_PREVIEW, g_param_spec_object ("child-preview", "child-preview", "child-preview", UNITY_PROTOCOL_TYPE_PREVIEW, G_PARAM_STATIC_NAME | G_PARAM_STATIC_NICK | G_PARAM_STATIC_BLURB | G_PARAM_READABLE | G_PARAM_WRITABLE));
04269        _tmp0_ = g_variant_type_new (UNITY_PROTOCOL_PREVIEW_RAW_SIGNATURE);
04270        _tmp1_ = _tmp0_;
04271        dee_serializable_register_parser (UNITY_PROTOCOL_TYPE_SERIES_PREVIEW, _tmp1_, __unity_protocol_series_preview___lambda18__dee_serializable_parse_func);
04272        _g_variant_type_free0 (_tmp1_);
04273 }
04274 
04275 
04276 static void unity_protocol_series_preview_instance_init (UnityProtocolSeriesPreview * self) {
04277        self->priv = UNITY_PROTOCOL_SERIES_PREVIEW_GET_PRIVATE (self);
04278        self->priv->_items = NULL;
04279        self->priv->_selected_item_sig_id = (gulong) 0;
04280 }
04281 
04282 
04283 static void unity_protocol_series_preview_finalize (GObject* obj) {
04284        UnityProtocolSeriesPreview * self;
04285        self = G_TYPE_CHECK_INSTANCE_CAST (obj, UNITY_PROTOCOL_TYPE_SERIES_PREVIEW, UnityProtocolSeriesPreview);
04286        _g_object_unref0 (self->priv->_child_preview);
04287        self->priv->_items = (_vala_UnityProtocolSeriesItemRaw_array_free (self->priv->_items, self->priv->_items_length1), NULL);
04288        G_OBJECT_CLASS (unity_protocol_series_preview_parent_class)->finalize (obj);
04289 }
04290 
04291 
04292 GType unity_protocol_series_preview_get_type (void) {
04293        static volatile gsize unity_protocol_series_preview_type_id__volatile = 0;
04294        if (g_once_init_enter (&unity_protocol_series_preview_type_id__volatile)) {
04295               static const GTypeInfo g_define_type_info = { sizeof (UnityProtocolSeriesPreviewClass), (GBaseInitFunc) NULL, (GBaseFinalizeFunc) NULL, (GClassInitFunc) unity_protocol_series_preview_class_init, (GClassFinalizeFunc) NULL, NULL, sizeof (UnityProtocolSeriesPreview), 0, (GInstanceInitFunc) unity_protocol_series_preview_instance_init, NULL };
04296               GType unity_protocol_series_preview_type_id;
04297               unity_protocol_series_preview_type_id = g_type_register_static (UNITY_PROTOCOL_TYPE_PREVIEW, "UnityProtocolSeriesPreview", &g_define_type_info, 0);
04298               g_once_init_leave (&unity_protocol_series_preview_type_id__volatile, unity_protocol_series_preview_type_id);
04299        }
04300        return unity_protocol_series_preview_type_id__volatile;
04301 }
04302 
04303 
04304 static void _vala_unity_protocol_series_preview_get_property (GObject * object, guint property_id, GValue * value, GParamSpec * pspec) {
04305        UnityProtocolSeriesPreview * self;
04306        self = G_TYPE_CHECK_INSTANCE_CAST (object, UNITY_PROTOCOL_TYPE_SERIES_PREVIEW, UnityProtocolSeriesPreview);
04307        switch (property_id) {
04308               case UNITY_PROTOCOL_SERIES_PREVIEW_SELECTED_ITEM:
04309               g_value_set_int (value, unity_protocol_series_preview_get_selected_item (self));
04310               break;
04311               case UNITY_PROTOCOL_SERIES_PREVIEW_CHILD_PREVIEW:
04312               g_value_set_object (value, unity_protocol_series_preview_get_child_preview (self));
04313               break;
04314               default:
04315               G_OBJECT_WARN_INVALID_PROPERTY_ID (object, property_id, pspec);
04316               break;
04317        }
04318 }
04319 
04320 
04321 static void _vala_unity_protocol_series_preview_set_property (GObject * object, guint property_id, const GValue * value, GParamSpec * pspec) {
04322        UnityProtocolSeriesPreview * self;
04323        self = G_TYPE_CHECK_INSTANCE_CAST (object, UNITY_PROTOCOL_TYPE_SERIES_PREVIEW, UnityProtocolSeriesPreview);
04324        switch (property_id) {
04325               case UNITY_PROTOCOL_SERIES_PREVIEW_SELECTED_ITEM:
04326               unity_protocol_series_preview_set_selected_item (self, g_value_get_int (value));
04327               break;
04328               case UNITY_PROTOCOL_SERIES_PREVIEW_CHILD_PREVIEW:
04329               unity_protocol_series_preview_set_child_preview (self, g_value_get_object (value));
04330               break;
04331               default:
04332               G_OBJECT_WARN_INVALID_PROPERTY_ID (object, property_id, pspec);
04333               break;
04334        }
04335 }
04336 
04337 
04338