~cjgomes-it/+junk/pantheon-notify

« back to all changes in this revision

Viewing changes to build/src/notification.c

  • Committer: Carlos Gomes
  • Date: 2014-01-05 00:16:55 UTC
  • Revision ID: cjgomes.it@gmail.com-20140105001655-jxnlrqrw79l6sbrs
first release

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
/* notification.c generated by valac 0.22.0, the Vala compiler
 
2
 * generated from notification.vala, do not modify */
 
3
 
 
4
 
 
5
#include <glib.h>
 
6
#include <glib-object.h>
 
7
#include <clutter/clutter.h>
 
8
#include <libwnck/libwnck.h>
 
9
#include <granite.h>
 
10
#include <gtk/gtk.h>
 
11
#include <gio/gio.h>
 
12
#include <clutter-gtk/clutter-gtk.h>
 
13
#include <cairo.h>
 
14
#include <stdlib.h>
 
15
#include <string.h>
 
16
#include <float.h>
 
17
#include <math.h>
 
18
#include <pango/pango.h>
 
19
#include <gdk/gdk.h>
 
20
#include <gdk-pixbuf/gdk-pixbuf.h>
 
21
 
 
22
 
 
23
#define TYPE_NOTIFICATION (notification_get_type ())
 
24
#define NOTIFICATION(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_NOTIFICATION, Notification))
 
25
#define NOTIFICATION_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_NOTIFICATION, NotificationClass))
 
26
#define IS_NOTIFICATION(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_NOTIFICATION))
 
27
#define IS_NOTIFICATION_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_NOTIFICATION))
 
28
#define NOTIFICATION_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_NOTIFICATION, NotificationClass))
 
29
 
 
30
typedef struct _Notification Notification;
 
31
typedef struct _NotificationClass NotificationClass;
 
32
typedef struct _NotificationPrivate NotificationPrivate;
 
33
 
 
34
#define NOTIFICATION_TYPE_URGENCY (notification_urgency_get_type ())
 
35
 
 
36
#define TYPE_NOTIFY_SERVER (notify_server_get_type ())
 
37
#define NOTIFY_SERVER(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_NOTIFY_SERVER, NotifyServer))
 
38
#define NOTIFY_SERVER_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_NOTIFY_SERVER, NotifyServerClass))
 
39
#define IS_NOTIFY_SERVER(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_NOTIFY_SERVER))
 
40
#define IS_NOTIFY_SERVER_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_NOTIFY_SERVER))
 
41
#define NOTIFY_SERVER_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_NOTIFY_SERVER, NotifyServerClass))
 
42
 
 
43
typedef struct _NotifyServer NotifyServer;
 
44
typedef struct _NotifyServerClass NotifyServerClass;
 
45
#define _g_object_unref0(var) ((var == NULL) ? NULL : (var = (g_object_unref (var), NULL)))
 
46
#define _g_free0(var) (var = (g_free (var), NULL))
 
47
#define _g_error_free0(var) ((var == NULL) ? NULL : (var = (g_error_free (var), NULL)))
 
48
typedef struct _NotifyServerPrivate NotifyServerPrivate;
 
49
#define _g_variant_unref0(var) ((var == NULL) ? NULL : (var = (g_variant_unref (var), NULL)))
 
50
 
 
51
typedef enum  {
 
52
        NOTIFICATION_URGENCY_LOW = 0,
 
53
        NOTIFICATION_URGENCY_NORMAL = 1,
 
54
        NOTIFICATION_URGENCY_CRITICAL = 2
 
55
} NotificationUrgency;
 
56
 
 
57
struct _Notification {
 
58
        ClutterGroup parent_instance;
 
59
        NotificationPrivate * priv;
 
60
        NotificationUrgency urgency;
 
61
        guint32 id;
 
62
        WnckWindow* app_window;
 
63
};
 
64
 
 
65
struct _NotificationClass {
 
66
        ClutterGroupClass parent_class;
 
67
};
 
68
 
 
69
struct _NotificationPrivate {
 
70
        GraniteDrawingBufferSurface* buffer;
 
71
        GtkEventBox* draw_ref;
 
72
        ClutterTexture* closeb;
 
73
        ClutterCairoTexture* background;
 
74
        NotifyServer* server;
 
75
        gboolean block_anim;
 
76
        guint timer;
 
77
        guint32 timeout;
 
78
        GtkClutterTexture* tex;
 
79
        ClutterText* text;
 
80
        ClutterText* title;
 
81
};
 
82
 
 
83
struct _NotifyServer {
 
84
        GObject parent_instance;
 
85
        NotifyServerPrivate * priv;
 
86
        gint id_counter;
 
87
        GtkWindow* main_window;
 
88
        ClutterBox* box;
 
89
};
 
90
 
 
91
struct _NotifyServerClass {
 
92
        GObjectClass parent_class;
 
93
};
 
94
 
 
95
 
 
96
static gpointer notification_parent_class = NULL;
 
97
 
 
98
GType notification_get_type (void) G_GNUC_CONST;
 
99
GType notification_urgency_get_type (void) G_GNUC_CONST;
 
100
GType notify_server_get_type (void) G_GNUC_CONST;
 
101
guint notify_server_register_object (void* object, GDBusConnection* connection, const gchar* path, GError** error);
 
102
#define NOTIFICATION_GET_PRIVATE(o) (G_TYPE_INSTANCE_GET_PRIVATE ((o), TYPE_NOTIFICATION, NotificationPrivate))
 
103
enum  {
 
104
        NOTIFICATION_DUMMY_PROPERTY
 
105
};
 
106
void notification_on_allocation_changed (Notification* self, ClutterActorBox* alloc, ClutterAllocationFlags flags);
 
107
static void _notification_on_allocation_changed_clutter_actor_allocation_changed (ClutterActor* _sender, ClutterActorBox* box, ClutterAllocationFlags flags, gpointer self);
 
108
gboolean notification_draw_background (Notification* self, cairo_t* cr);
 
109
static gboolean _notification_draw_background_clutter_cairo_texture_draw (ClutterCairoTexture* _sender, cairo_t* cr, gpointer self);
 
110
gboolean notification_on_close_clicked (Notification* self, ClutterButtonEvent* event);
 
111
static gboolean _notification_on_close_clicked_clutter_actor_button_press_event (ClutterActor* _sender, ClutterButtonEvent* event, gpointer self);
 
112
Notification* notification_new (const gchar* name, const gchar* body, const gchar* icon, guint32 _timeout, const gchar* app, NotifyServer* _server, GHashTable* hints, guint32 _id, gchar** actions, int actions_length1);
 
113
Notification* notification_construct (GType object_type, const gchar* name, const gchar* body, const gchar* icon, guint32 _timeout, const gchar* app, NotifyServer* _server, GHashTable* hints, guint32 _id, gchar** actions, int actions_length1);
 
114
#define WIDTH 320
 
115
#define CONSTANTS_PKGDATADIR "/usr/local/share/pantheon-notify"
 
116
#define HEIGHT 76
 
117
void notification_set_pix (Notification* self, GHashTable* hints, const gchar* app, const gchar* icon);
 
118
#define SHADOW 10
 
119
void notification_set_text (Notification* self, const gchar* name, const gchar* body);
 
120
void notification_ready (Notification* self);
 
121
static void _notification_ready_clutter_animation_completed (ClutterAnimation* _sender, gpointer self);
 
122
void notification_close (Notification* self, gboolean fast_close);
 
123
static gboolean notification_real_button_release_event (ClutterActor* base, ClutterButtonEvent* event);
 
124
static gboolean notification_real_leave_event (ClutterActor* base, ClutterCrossingEvent* event);
 
125
static gboolean ___lambda4_ (Notification* self);
 
126
static gboolean ____lambda4__gsource_func (gpointer self);
 
127
static gboolean notification_real_enter_event (ClutterActor* base, ClutterCrossingEvent* event);
 
128
#define EXPIRE 7000
 
129
static gboolean ___lambda3_ (Notification* self);
 
130
static gboolean ____lambda3__gsource_func (gpointer self);
 
131
static guint8* _vala_array_dup1 (guint8* self, int length);
 
132
void notification_updated (Notification* self);
 
133
static void ___lambda5_ (Notification* self);
 
134
static gboolean __lambda6_ (Notification* self);
 
135
static gboolean ___lambda6__gsource_func (gpointer self);
 
136
static void ____lambda5__clutter_animation_completed (ClutterAnimation* _sender, gpointer self);
 
137
static void notification_done (Notification* self);
 
138
static void _notification_done_clutter_animation_completed (ClutterAnimation* _sender, gpointer self);
 
139
void notify_server_update_input_shape (NotifyServer* self);
 
140
static void notification_finalize (GObject* obj);
 
141
 
 
142
 
 
143
static void _notification_on_allocation_changed_clutter_actor_allocation_changed (ClutterActor* _sender, ClutterActorBox* box, ClutterAllocationFlags flags, gpointer self) {
 
144
#line 138 "/home/cjgomes/builds/pantheon-notify/src/notification.vala"
 
145
        notification_on_allocation_changed (self, box, flags);
 
146
#line 147 "notification.c"
 
147
}
 
148
 
 
149
 
 
150
static gboolean _notification_draw_background_clutter_cairo_texture_draw (ClutterCairoTexture* _sender, cairo_t* cr, gpointer self) {
 
151
        gboolean result;
 
152
        result = notification_draw_background (self, cr);
 
153
#line 140 "/home/cjgomes/builds/pantheon-notify/src/notification.vala"
 
154
        return result;
 
155
#line 156 "notification.c"
 
156
}
 
157
 
 
158
 
 
159
static gboolean _notification_on_close_clicked_clutter_actor_button_press_event (ClutterActor* _sender, ClutterButtonEvent* event, gpointer self) {
 
160
        gboolean result;
 
161
        result = notification_on_close_clicked (self, event);
 
162
#line 141 "/home/cjgomes/builds/pantheon-notify/src/notification.vala"
 
163
        return result;
 
164
#line 165 "notification.c"
 
165
}
 
166
 
 
167
 
 
168
GType notification_urgency_get_type (void) {
 
169
        static volatile gsize notification_urgency_type_id__volatile = 0;
 
170
        if (g_once_init_enter (&notification_urgency_type_id__volatile)) {
 
171
                static const GEnumValue values[] = {{NOTIFICATION_URGENCY_LOW, "NOTIFICATION_URGENCY_LOW", "low"}, {NOTIFICATION_URGENCY_NORMAL, "NOTIFICATION_URGENCY_NORMAL", "normal"}, {NOTIFICATION_URGENCY_CRITICAL, "NOTIFICATION_URGENCY_CRITICAL", "critical"}, {0, NULL, NULL}};
 
172
                GType notification_urgency_type_id;
 
173
                notification_urgency_type_id = g_enum_register_static ("NotificationUrgency", values);
 
174
                g_once_init_leave (&notification_urgency_type_id__volatile, notification_urgency_type_id);
 
175
        }
 
176
        return notification_urgency_type_id__volatile;
 
177
}
 
178
 
 
179
 
 
180
static gpointer _g_object_ref0 (gpointer self) {
 
181
#line 34 "/home/cjgomes/builds/pantheon-notify/src/notification.vala"
 
182
        return self ? g_object_ref (self) : NULL;
 
183
#line 184 "notification.c"
 
184
}
 
185
 
 
186
 
 
187
static gboolean string_contains (const gchar* self, const gchar* needle) {
 
188
        gboolean result = FALSE;
 
189
        const gchar* _tmp0_ = NULL;
 
190
        gchar* _tmp1_ = NULL;
 
191
#line 1237 "/usr/share/vala-0.22/vapi/glib-2.0.vapi"
 
192
        g_return_val_if_fail (self != NULL, FALSE);
 
193
#line 1237 "/usr/share/vala-0.22/vapi/glib-2.0.vapi"
 
194
        g_return_val_if_fail (needle != NULL, FALSE);
 
195
#line 1238 "/usr/share/vala-0.22/vapi/glib-2.0.vapi"
 
196
        _tmp0_ = needle;
 
197
#line 1238 "/usr/share/vala-0.22/vapi/glib-2.0.vapi"
 
198
        _tmp1_ = strstr ((gchar*) self, (gchar*) _tmp0_);
 
199
#line 1238 "/usr/share/vala-0.22/vapi/glib-2.0.vapi"
 
200
        result = _tmp1_ != NULL;
 
201
#line 1238 "/usr/share/vala-0.22/vapi/glib-2.0.vapi"
 
202
        return result;
 
203
#line 204 "notification.c"
 
204
}
 
205
 
 
206
 
 
207
static void _notification_ready_clutter_animation_completed (ClutterAnimation* _sender, gpointer self) {
 
208
#line 126 "/home/cjgomes/builds/pantheon-notify/src/notification.vala"
 
209
        notification_ready (self);
 
210
#line 211 "notification.c"
 
211
}
 
212
 
 
213
 
 
214
Notification* notification_construct (GType object_type, const gchar* name, const gchar* body, const gchar* icon, guint32 _timeout, const gchar* app, NotifyServer* _server, GHashTable* hints, guint32 _id, gchar** actions, int actions_length1) {
 
215
        Notification * self = NULL;
 
216
        NotifyServer* _tmp0_ = NULL;
 
217
        NotifyServer* _tmp1_ = NULL;
 
218
        guint32 _tmp2_ = 0U;
 
219
        guint32 _tmp3_ = 0U;
 
220
        gfloat _tmp4_ = 0.0F;
 
221
        gfloat _tmp5_ = 0.0F;
 
222
        gfloat _tmp6_ = 0.0F;
 
223
        gfloat _tmp7_ = 0.0F;
 
224
        ClutterVertex _tmp8_ = {0};
 
225
        WnckScreen* _tmp9_ = NULL;
 
226
        WnckScreen* _tmp10_ = NULL;
 
227
        GList* _tmp11_ = NULL;
 
228
        ClutterTexture* _tmp30_ = NULL;
 
229
        ClutterTexture* _tmp31_ = NULL;
 
230
        ClutterTexture* _tmp32_ = NULL;
 
231
        ClutterTexture* _tmp33_ = NULL;
 
232
        ClutterTexture* _tmp34_ = NULL;
 
233
        ClutterTexture* _tmp35_ = NULL;
 
234
        ClutterCairoTexture* _tmp36_ = NULL;
 
235
        ClutterCairoTexture* _tmp37_ = NULL;
 
236
        ClutterCairoTexture* _tmp38_ = NULL;
 
237
        ClutterBindConstraint* _tmp39_ = NULL;
 
238
        ClutterBindConstraint* _tmp40_ = NULL;
 
239
        ClutterCairoTexture* _tmp41_ = NULL;
 
240
        ClutterBindConstraint* _tmp42_ = NULL;
 
241
        ClutterBindConstraint* _tmp43_ = NULL;
 
242
        ClutterCairoTexture* _tmp44_ = NULL;
 
243
        GtkEventBox* _tmp45_ = NULL;
 
244
        GtkCssProvider* css = NULL;
 
245
        GtkCssProvider* _tmp46_ = NULL;
 
246
        GtkEventBox* _tmp49_ = NULL;
 
247
        GtkStyleContext* _tmp50_ = NULL;
 
248
        GHashTable* _tmp51_ = NULL;
 
249
        gboolean _tmp52_ = FALSE;
 
250
        GtkClutterTexture* _tmp62_ = NULL;
 
251
        GHashTable* _tmp63_ = NULL;
 
252
        const gchar* _tmp64_ = NULL;
 
253
        const gchar* _tmp65_ = NULL;
 
254
        GtkClutterTexture* _tmp66_ = NULL;
 
255
        GtkClutterTexture* _tmp67_ = NULL;
 
256
        GtkClutterTexture* _tmp68_ = NULL;
 
257
        GtkClutterTexture* _tmp69_ = NULL;
 
258
        ClutterText* _tmp70_ = NULL;
 
259
        ClutterText* _tmp71_ = NULL;
 
260
        const gchar* _tmp72_ = NULL;
 
261
        const gchar* _tmp73_ = NULL;
 
262
        ClutterText* _tmp74_ = NULL;
 
263
        ClutterText* _tmp75_ = NULL;
 
264
        ClutterText* _tmp76_ = NULL;
 
265
        gfloat _tmp77_ = 0.0F;
 
266
        gfloat _tmp78_ = 0.0F;
 
267
        ClutterText* _tmp79_ = NULL;
 
268
        ClutterText* _tmp80_ = NULL;
 
269
        ClutterText* _tmp81_ = NULL;
 
270
        ClutterText* _tmp82_ = NULL;
 
271
        ClutterText* _tmp83_ = NULL;
 
272
        ClutterText* _tmp84_ = NULL;
 
273
        gfloat _tmp85_ = 0.0F;
 
274
        gfloat _tmp86_ = 0.0F;
 
275
        ClutterBindConstraint* _tmp87_ = NULL;
 
276
        ClutterBindConstraint* _tmp88_ = NULL;
 
277
        ClutterText* _tmp89_ = NULL;
 
278
        ClutterText* _tmp90_ = NULL;
 
279
        ClutterText* _tmp91_ = NULL;
 
280
        gfloat _tmp92_ = 0.0F;
 
281
        gfloat _tmp93_ = 0.0F;
 
282
        ClutterText* _tmp94_ = NULL;
 
283
        ClutterText* _tmp95_ = NULL;
 
284
        GtkClutterTexture* _tmp96_ = NULL;
 
285
        gfloat _tmp97_ = 0.0F;
 
286
        gfloat _tmp98_ = 0.0F;
 
287
        GtkClutterTexture* _tmp99_ = NULL;
 
288
        gfloat _tmp100_ = 0.0F;
 
289
        gfloat _tmp101_ = 0.0F;
 
290
        ClutterCairoTexture* _tmp102_ = NULL;
 
291
        GtkClutterTexture* _tmp103_ = NULL;
 
292
        ClutterText* _tmp104_ = NULL;
 
293
        ClutterText* _tmp105_ = NULL;
 
294
        ClutterTexture* _tmp106_ = NULL;
 
295
        ClutterAnimation* a = NULL;
 
296
        ClutterAnimation* _tmp107_ = NULL;
 
297
        ClutterAnimation* _tmp108_ = NULL;
 
298
        ClutterTexture* _tmp109_ = NULL;
 
299
        guint _tmp110_ = 0U;
 
300
        GError * _inner_error_ = NULL;
 
301
#line 31 "/home/cjgomes/builds/pantheon-notify/src/notification.vala"
 
302
        g_return_val_if_fail (name != NULL, NULL);
 
303
#line 31 "/home/cjgomes/builds/pantheon-notify/src/notification.vala"
 
304
        g_return_val_if_fail (body != NULL, NULL);
 
305
#line 31 "/home/cjgomes/builds/pantheon-notify/src/notification.vala"
 
306
        g_return_val_if_fail (icon != NULL, NULL);
 
307
#line 31 "/home/cjgomes/builds/pantheon-notify/src/notification.vala"
 
308
        g_return_val_if_fail (app != NULL, NULL);
 
309
#line 31 "/home/cjgomes/builds/pantheon-notify/src/notification.vala"
 
310
        g_return_val_if_fail (_server != NULL, NULL);
 
311
#line 31 "/home/cjgomes/builds/pantheon-notify/src/notification.vala"
 
312
        g_return_val_if_fail (hints != NULL, NULL);
 
313
#line 31 "/home/cjgomes/builds/pantheon-notify/src/notification.vala"
 
314
        self = (Notification*) g_object_new (object_type, NULL);
 
315
#line 34 "/home/cjgomes/builds/pantheon-notify/src/notification.vala"
 
316
        _tmp0_ = _server;
 
317
#line 34 "/home/cjgomes/builds/pantheon-notify/src/notification.vala"
 
318
        _tmp1_ = _g_object_ref0 (_tmp0_);
 
319
#line 34 "/home/cjgomes/builds/pantheon-notify/src/notification.vala"
 
320
        _g_object_unref0 (self->priv->server);
 
321
#line 34 "/home/cjgomes/builds/pantheon-notify/src/notification.vala"
 
322
        self->priv->server = _tmp1_;
 
323
#line 35 "/home/cjgomes/builds/pantheon-notify/src/notification.vala"
 
324
        _tmp2_ = _id;
 
325
#line 35 "/home/cjgomes/builds/pantheon-notify/src/notification.vala"
 
326
        self->id = _tmp2_;
 
327
#line 36 "/home/cjgomes/builds/pantheon-notify/src/notification.vala"
 
328
        self->priv->block_anim = TRUE;
 
329
#line 37 "/home/cjgomes/builds/pantheon-notify/src/notification.vala"
 
330
        g_object_set ((ClutterActor*) self, "scale-gravity", CLUTTER_GRAVITY_CENTER, NULL);
 
331
#line 38 "/home/cjgomes/builds/pantheon-notify/src/notification.vala"
 
332
        clutter_actor_set_width ((ClutterActor*) self, (gfloat) WIDTH);
 
333
#line 39 "/home/cjgomes/builds/pantheon-notify/src/notification.vala"
 
334
        clutter_actor_set_reactive ((ClutterActor*) self, TRUE);
 
335
#line 40 "/home/cjgomes/builds/pantheon-notify/src/notification.vala"
 
336
        self->priv->timer = (guint) 0;
 
337
#line 41 "/home/cjgomes/builds/pantheon-notify/src/notification.vala"
 
338
        _tmp3_ = _timeout;
 
339
#line 41 "/home/cjgomes/builds/pantheon-notify/src/notification.vala"
 
340
        self->priv->timeout = _tmp3_;
 
341
#line 43 "/home/cjgomes/builds/pantheon-notify/src/notification.vala"
 
342
        g_object_set ((ClutterActor*) self, "rotation-angle-x", (gdouble) 90.0f, NULL);
 
343
#line 44 "/home/cjgomes/builds/pantheon-notify/src/notification.vala"
 
344
        clutter_actor_set_opacity ((ClutterActor*) self, (guint) 0);
 
345
#line 45 "/home/cjgomes/builds/pantheon-notify/src/notification.vala"
 
346
        clutter_actor_set_height ((ClutterActor*) self, 30.0f);
 
347
#line 46 "/home/cjgomes/builds/pantheon-notify/src/notification.vala"
 
348
        _tmp4_ = clutter_actor_get_width ((ClutterActor*) self);
 
349
#line 46 "/home/cjgomes/builds/pantheon-notify/src/notification.vala"
 
350
        _tmp5_ = _tmp4_;
 
351
#line 46 "/home/cjgomes/builds/pantheon-notify/src/notification.vala"
 
352
        _tmp6_ = clutter_actor_get_height ((ClutterActor*) self);
 
353
#line 46 "/home/cjgomes/builds/pantheon-notify/src/notification.vala"
 
354
        _tmp7_ = _tmp6_;
 
355
#line 46 "/home/cjgomes/builds/pantheon-notify/src/notification.vala"
 
356
        _tmp8_.x = _tmp5_ / 2;
 
357
#line 46 "/home/cjgomes/builds/pantheon-notify/src/notification.vala"
 
358
        _tmp8_.y = _tmp7_ / 2;
 
359
#line 46 "/home/cjgomes/builds/pantheon-notify/src/notification.vala"
 
360
        _tmp8_.z = (gfloat) (-100);
 
361
#line 46 "/home/cjgomes/builds/pantheon-notify/src/notification.vala"
 
362
        g_object_set ((ClutterActor*) self, "rotation-center-x", &_tmp8_, NULL);
 
363
#line 49 "/home/cjgomes/builds/pantheon-notify/src/notification.vala"
 
364
        _tmp9_ = wnck_screen_get_default ();
 
365
#line 49 "/home/cjgomes/builds/pantheon-notify/src/notification.vala"
 
366
        wnck_screen_force_update (_tmp9_);
 
367
#line 50 "/home/cjgomes/builds/pantheon-notify/src/notification.vala"
 
368
        _tmp10_ = wnck_screen_get_default ();
 
369
#line 50 "/home/cjgomes/builds/pantheon-notify/src/notification.vala"
 
370
        _tmp11_ = wnck_screen_get_windows (_tmp10_);
 
371
#line 372 "notification.c"
 
372
        {
 
373
                GList* w_collection = NULL;
 
374
                GList* w_it = NULL;
 
375
#line 50 "/home/cjgomes/builds/pantheon-notify/src/notification.vala"
 
376
                w_collection = _tmp11_;
 
377
#line 50 "/home/cjgomes/builds/pantheon-notify/src/notification.vala"
 
378
                for (w_it = w_collection; w_it != NULL; w_it = w_it->next) {
 
379
#line 380 "notification.c"
 
380
                        WnckWindow* _tmp12_ = NULL;
 
381
                        WnckWindow* w = NULL;
 
382
#line 50 "/home/cjgomes/builds/pantheon-notify/src/notification.vala"
 
383
                        _tmp12_ = _g_object_ref0 ((WnckWindow*) w_it->data);
 
384
#line 50 "/home/cjgomes/builds/pantheon-notify/src/notification.vala"
 
385
                        w = _tmp12_;
 
386
#line 387 "notification.c"
 
387
                        {
 
388
                                WnckWindow* _tmp13_ = NULL;
 
389
                                const gchar* _tmp14_ = NULL;
 
390
                                gchar* _tmp15_ = NULL;
 
391
                                gchar* _tmp16_ = NULL;
 
392
                                const gchar* _tmp17_ = NULL;
 
393
                                gchar* _tmp18_ = NULL;
 
394
                                gchar* _tmp19_ = NULL;
 
395
                                gboolean _tmp20_ = FALSE;
 
396
                                gboolean _tmp21_ = FALSE;
 
397
#line 51 "/home/cjgomes/builds/pantheon-notify/src/notification.vala"
 
398
                                _tmp13_ = w;
 
399
#line 51 "/home/cjgomes/builds/pantheon-notify/src/notification.vala"
 
400
                                _tmp14_ = wnck_window_get_name (_tmp13_);
 
401
#line 51 "/home/cjgomes/builds/pantheon-notify/src/notification.vala"
 
402
                                _tmp15_ = g_utf8_strdown (_tmp14_, (gssize) (-1));
 
403
#line 51 "/home/cjgomes/builds/pantheon-notify/src/notification.vala"
 
404
                                _tmp16_ = _tmp15_;
 
405
#line 51 "/home/cjgomes/builds/pantheon-notify/src/notification.vala"
 
406
                                _tmp17_ = app;
 
407
#line 51 "/home/cjgomes/builds/pantheon-notify/src/notification.vala"
 
408
                                _tmp18_ = g_utf8_strdown (_tmp17_, (gssize) (-1));
 
409
#line 51 "/home/cjgomes/builds/pantheon-notify/src/notification.vala"
 
410
                                _tmp19_ = _tmp18_;
 
411
#line 51 "/home/cjgomes/builds/pantheon-notify/src/notification.vala"
 
412
                                _tmp20_ = string_contains (_tmp16_, _tmp19_);
 
413
#line 51 "/home/cjgomes/builds/pantheon-notify/src/notification.vala"
 
414
                                _tmp21_ = _tmp20_;
 
415
#line 51 "/home/cjgomes/builds/pantheon-notify/src/notification.vala"
 
416
                                _g_free0 (_tmp19_);
 
417
#line 51 "/home/cjgomes/builds/pantheon-notify/src/notification.vala"
 
418
                                _g_free0 (_tmp16_);
 
419
#line 51 "/home/cjgomes/builds/pantheon-notify/src/notification.vala"
 
420
                                if (_tmp21_) {
 
421
#line 422 "notification.c"
 
422
                                        WnckWindow* _tmp22_ = NULL;
 
423
                                        WnckWindow* _tmp23_ = NULL;
 
424
                                        WnckWindow* _tmp24_ = NULL;
 
425
                                        const gchar* _tmp25_ = NULL;
 
426
#line 52 "/home/cjgomes/builds/pantheon-notify/src/notification.vala"
 
427
                                        _tmp22_ = w;
 
428
#line 52 "/home/cjgomes/builds/pantheon-notify/src/notification.vala"
 
429
                                        _tmp23_ = _g_object_ref0 (_tmp22_);
 
430
#line 52 "/home/cjgomes/builds/pantheon-notify/src/notification.vala"
 
431
                                        _g_object_unref0 (self->app_window);
 
432
#line 52 "/home/cjgomes/builds/pantheon-notify/src/notification.vala"
 
433
                                        self->app_window = _tmp23_;
 
434
#line 53 "/home/cjgomes/builds/pantheon-notify/src/notification.vala"
 
435
                                        _tmp24_ = w;
 
436
#line 53 "/home/cjgomes/builds/pantheon-notify/src/notification.vala"
 
437
                                        _tmp25_ = wnck_window_get_name (_tmp24_);
 
438
#line 53 "/home/cjgomes/builds/pantheon-notify/src/notification.vala"
 
439
                                        g_debug ("notification.vala:53: Found matching window: %s", _tmp25_);
 
440
#line 441 "notification.c"
 
441
                                }
 
442
#line 50 "/home/cjgomes/builds/pantheon-notify/src/notification.vala"
 
443
                                _g_object_unref0 (w);
 
444
#line 445 "notification.c"
 
445
                        }
 
446
                }
 
447
        }
 
448
        {
 
449
                ClutterTexture* _tmp26_ = NULL;
 
450
                ClutterTexture* _tmp27_ = NULL;
 
451
#line 59 "/home/cjgomes/builds/pantheon-notify/src/notification.vala"
 
452
                _tmp27_ = (ClutterTexture*) clutter_texture_new_from_file (CONSTANTS_PKGDATADIR "/close.png", &_inner_error_);
 
453
#line 59 "/home/cjgomes/builds/pantheon-notify/src/notification.vala"
 
454
                g_object_ref_sink (_tmp27_);
 
455
#line 59 "/home/cjgomes/builds/pantheon-notify/src/notification.vala"
 
456
                _tmp26_ = _tmp27_;
 
457
#line 59 "/home/cjgomes/builds/pantheon-notify/src/notification.vala"
 
458
                if (_inner_error_ != NULL) {
 
459
#line 460 "notification.c"
 
460
                        goto __catch1_g_error;
 
461
                }
 
462
#line 59 "/home/cjgomes/builds/pantheon-notify/src/notification.vala"
 
463
                g_object_ref_sink (_tmp26_);
 
464
#line 59 "/home/cjgomes/builds/pantheon-notify/src/notification.vala"
 
465
                _g_object_unref0 (self->priv->closeb);
 
466
#line 59 "/home/cjgomes/builds/pantheon-notify/src/notification.vala"
 
467
                self->priv->closeb = _tmp26_;
 
468
#line 469 "notification.c"
 
469
        }
 
470
        goto __finally1;
 
471
        __catch1_g_error:
 
472
        {
 
473
                GError* e = NULL;
 
474
                GError* _tmp28_ = NULL;
 
475
                const gchar* _tmp29_ = NULL;
 
476
#line 58 "/home/cjgomes/builds/pantheon-notify/src/notification.vala"
 
477
                e = _inner_error_;
 
478
#line 58 "/home/cjgomes/builds/pantheon-notify/src/notification.vala"
 
479
                _inner_error_ = NULL;
 
480
#line 60 "/home/cjgomes/builds/pantheon-notify/src/notification.vala"
 
481
                _tmp28_ = e;
 
482
#line 60 "/home/cjgomes/builds/pantheon-notify/src/notification.vala"
 
483
                _tmp29_ = _tmp28_->message;
 
484
#line 60 "/home/cjgomes/builds/pantheon-notify/src/notification.vala"
 
485
                g_warning ("notification.vala:60: %s", _tmp29_);
 
486
#line 58 "/home/cjgomes/builds/pantheon-notify/src/notification.vala"
 
487
                _g_error_free0 (e);
 
488
#line 489 "notification.c"
 
489
        }
 
490
        __finally1:
 
491
#line 58 "/home/cjgomes/builds/pantheon-notify/src/notification.vala"
 
492
        if (_inner_error_ != NULL) {
 
493
#line 58 "/home/cjgomes/builds/pantheon-notify/src/notification.vala"
 
494
                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);
 
495
#line 58 "/home/cjgomes/builds/pantheon-notify/src/notification.vala"
 
496
                g_clear_error (&_inner_error_);
 
497
#line 58 "/home/cjgomes/builds/pantheon-notify/src/notification.vala"
 
498
                return NULL;
 
499
#line 500 "notification.c"
 
500
        }
 
501
#line 61 "/home/cjgomes/builds/pantheon-notify/src/notification.vala"
 
502
        _tmp30_ = self->priv->closeb;
 
503
#line 61 "/home/cjgomes/builds/pantheon-notify/src/notification.vala"
 
504
        clutter_actor_set_reactive ((ClutterActor*) _tmp30_, TRUE);
 
505
#line 62 "/home/cjgomes/builds/pantheon-notify/src/notification.vala"
 
506
        _tmp31_ = self->priv->closeb;
 
507
#line 62 "/home/cjgomes/builds/pantheon-notify/src/notification.vala"
 
508
        clutter_actor_set_width ((ClutterActor*) _tmp31_, (gfloat) 25);
 
509
#line 63 "/home/cjgomes/builds/pantheon-notify/src/notification.vala"
 
510
        _tmp32_ = self->priv->closeb;
 
511
#line 63 "/home/cjgomes/builds/pantheon-notify/src/notification.vala"
 
512
        clutter_actor_set_height ((ClutterActor*) _tmp32_, (gfloat) 25);
 
513
#line 64 "/home/cjgomes/builds/pantheon-notify/src/notification.vala"
 
514
        _tmp33_ = self->priv->closeb;
 
515
#line 64 "/home/cjgomes/builds/pantheon-notify/src/notification.vala"
 
516
        g_object_set ((ClutterActor*) _tmp33_, "scale-gravity", CLUTTER_GRAVITY_CENTER, NULL);
 
517
#line 65 "/home/cjgomes/builds/pantheon-notify/src/notification.vala"
 
518
        _tmp34_ = self->priv->closeb;
 
519
#line 65 "/home/cjgomes/builds/pantheon-notify/src/notification.vala"
 
520
        g_object_set ((ClutterActor*) _tmp34_, "scale-x", (gdouble) 0, NULL);
 
521
#line 66 "/home/cjgomes/builds/pantheon-notify/src/notification.vala"
 
522
        _tmp35_ = self->priv->closeb;
 
523
#line 66 "/home/cjgomes/builds/pantheon-notify/src/notification.vala"
 
524
        g_object_set ((ClutterActor*) _tmp35_, "scale-y", (gdouble) 0, NULL);
 
525
#line 69 "/home/cjgomes/builds/pantheon-notify/src/notification.vala"
 
526
        _tmp36_ = (ClutterCairoTexture*) clutter_cairo_texture_new ((guint) WIDTH, (guint) HEIGHT);
 
527
#line 69 "/home/cjgomes/builds/pantheon-notify/src/notification.vala"
 
528
        g_object_ref_sink (_tmp36_);
 
529
#line 69 "/home/cjgomes/builds/pantheon-notify/src/notification.vala"
 
530
        _g_object_unref0 (self->priv->background);
 
531
#line 69 "/home/cjgomes/builds/pantheon-notify/src/notification.vala"
 
532
        self->priv->background = _tmp36_;
 
533
#line 70 "/home/cjgomes/builds/pantheon-notify/src/notification.vala"
 
534
        _tmp37_ = self->priv->background;
 
535
#line 70 "/home/cjgomes/builds/pantheon-notify/src/notification.vala"
 
536
        clutter_cairo_texture_set_auto_resize (_tmp37_, TRUE);
 
537
#line 71 "/home/cjgomes/builds/pantheon-notify/src/notification.vala"
 
538
        _tmp38_ = self->priv->background;
 
539
#line 71 "/home/cjgomes/builds/pantheon-notify/src/notification.vala"
 
540
        _tmp39_ = (ClutterBindConstraint*) clutter_bind_constraint_new ((ClutterActor*) self, CLUTTER_BIND_WIDTH, (gfloat) 0);
 
541
#line 71 "/home/cjgomes/builds/pantheon-notify/src/notification.vala"
 
542
        g_object_ref_sink (_tmp39_);
 
543
#line 71 "/home/cjgomes/builds/pantheon-notify/src/notification.vala"
 
544
        _tmp40_ = _tmp39_;
 
545
#line 71 "/home/cjgomes/builds/pantheon-notify/src/notification.vala"
 
546
        clutter_actor_add_constraint ((ClutterActor*) _tmp38_, (ClutterConstraint*) _tmp40_);
 
547
#line 71 "/home/cjgomes/builds/pantheon-notify/src/notification.vala"
 
548
        _g_object_unref0 (_tmp40_);
 
549
#line 72 "/home/cjgomes/builds/pantheon-notify/src/notification.vala"
 
550
        _tmp41_ = self->priv->background;
 
551
#line 72 "/home/cjgomes/builds/pantheon-notify/src/notification.vala"
 
552
        _tmp42_ = (ClutterBindConstraint*) clutter_bind_constraint_new ((ClutterActor*) self, CLUTTER_BIND_HEIGHT, (gfloat) 0);
 
553
#line 72 "/home/cjgomes/builds/pantheon-notify/src/notification.vala"
 
554
        g_object_ref_sink (_tmp42_);
 
555
#line 72 "/home/cjgomes/builds/pantheon-notify/src/notification.vala"
 
556
        _tmp43_ = _tmp42_;
 
557
#line 72 "/home/cjgomes/builds/pantheon-notify/src/notification.vala"
 
558
        clutter_actor_add_constraint ((ClutterActor*) _tmp41_, (ClutterConstraint*) _tmp43_);
 
559
#line 72 "/home/cjgomes/builds/pantheon-notify/src/notification.vala"
 
560
        _g_object_unref0 (_tmp43_);
 
561
#line 73 "/home/cjgomes/builds/pantheon-notify/src/notification.vala"
 
562
        _tmp44_ = self->priv->background;
 
563
#line 73 "/home/cjgomes/builds/pantheon-notify/src/notification.vala"
 
564
        g_signal_connect_object (_tmp44_, "draw", (GCallback) _notification_draw_background_clutter_cairo_texture_draw, self, 0);
 
565
#line 74 "/home/cjgomes/builds/pantheon-notify/src/notification.vala"
 
566
        _tmp45_ = (GtkEventBox*) gtk_event_box_new ();
 
567
#line 74 "/home/cjgomes/builds/pantheon-notify/src/notification.vala"
 
568
        g_object_ref_sink (_tmp45_);
 
569
#line 74 "/home/cjgomes/builds/pantheon-notify/src/notification.vala"
 
570
        _g_object_unref0 (self->priv->draw_ref);
 
571
#line 74 "/home/cjgomes/builds/pantheon-notify/src/notification.vala"
 
572
        self->priv->draw_ref = _tmp45_;
 
573
#line 76 "/home/cjgomes/builds/pantheon-notify/src/notification.vala"
 
574
        _tmp46_ = gtk_css_provider_new ();
 
575
#line 76 "/home/cjgomes/builds/pantheon-notify/src/notification.vala"
 
576
        css = _tmp46_;
 
577
#line 578 "notification.c"
 
578
        {
 
579
#line 78 "/home/cjgomes/builds/pantheon-notify/src/notification.vala"
 
580
                gtk_css_provider_load_from_path (css, CONSTANTS_PKGDATADIR "/notifications.css", &_inner_error_);
 
581
#line 78 "/home/cjgomes/builds/pantheon-notify/src/notification.vala"
 
582
                if (_inner_error_ != NULL) {
 
583
#line 584 "notification.c"
 
584
                        goto __catch2_g_error;
 
585
                }
 
586
        }
 
587
        goto __finally2;
 
588
        __catch2_g_error:
 
589
        {
 
590
                GError* e = NULL;
 
591
                GError* _tmp47_ = NULL;
 
592
                const gchar* _tmp48_ = NULL;
 
593
#line 77 "/home/cjgomes/builds/pantheon-notify/src/notification.vala"
 
594
                e = _inner_error_;
 
595
#line 77 "/home/cjgomes/builds/pantheon-notify/src/notification.vala"
 
596
                _inner_error_ = NULL;
 
597
#line 79 "/home/cjgomes/builds/pantheon-notify/src/notification.vala"
 
598
                _tmp47_ = e;
 
599
#line 79 "/home/cjgomes/builds/pantheon-notify/src/notification.vala"
 
600
                _tmp48_ = _tmp47_->message;
 
601
#line 79 "/home/cjgomes/builds/pantheon-notify/src/notification.vala"
 
602
                g_warning ("notification.vala:79: %s", _tmp48_);
 
603
#line 77 "/home/cjgomes/builds/pantheon-notify/src/notification.vala"
 
604
                _g_error_free0 (e);
 
605
#line 606 "notification.c"
 
606
        }
 
607
        __finally2:
 
608
#line 77 "/home/cjgomes/builds/pantheon-notify/src/notification.vala"
 
609
        if (_inner_error_ != NULL) {
 
610
#line 77 "/home/cjgomes/builds/pantheon-notify/src/notification.vala"
 
611
                _g_object_unref0 (css);
 
612
#line 77 "/home/cjgomes/builds/pantheon-notify/src/notification.vala"
 
613
                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);
 
614
#line 77 "/home/cjgomes/builds/pantheon-notify/src/notification.vala"
 
615
                g_clear_error (&_inner_error_);
 
616
#line 77 "/home/cjgomes/builds/pantheon-notify/src/notification.vala"
 
617
                return NULL;
 
618
#line 619 "notification.c"
 
619
        }
 
620
#line 80 "/home/cjgomes/builds/pantheon-notify/src/notification.vala"
 
621
        _tmp49_ = self->priv->draw_ref;
 
622
#line 80 "/home/cjgomes/builds/pantheon-notify/src/notification.vala"
 
623
        _tmp50_ = gtk_widget_get_style_context ((GtkWidget*) _tmp49_);
 
624
#line 80 "/home/cjgomes/builds/pantheon-notify/src/notification.vala"
 
625
        gtk_style_context_add_provider (_tmp50_, (GtkStyleProvider*) css, (guint) GTK_STYLE_PROVIDER_PRIORITY_APPLICATION);
 
626
#line 83 "/home/cjgomes/builds/pantheon-notify/src/notification.vala"
 
627
        _tmp51_ = hints;
 
628
#line 83 "/home/cjgomes/builds/pantheon-notify/src/notification.vala"
 
629
        _tmp52_ = g_hash_table_contains (_tmp51_, "urgency");
 
630
#line 83 "/home/cjgomes/builds/pantheon-notify/src/notification.vala"
 
631
        if (_tmp52_) {
 
632
#line 633 "notification.c"
 
633
                GHashTable* _tmp53_ = NULL;
 
634
                gconstpointer _tmp54_ = NULL;
 
635
                guint8 _tmp55_ = 0U;
 
636
                NotificationUrgency _tmp56_ = 0;
 
637
#line 84 "/home/cjgomes/builds/pantheon-notify/src/notification.vala"
 
638
                _tmp53_ = hints;
 
639
#line 84 "/home/cjgomes/builds/pantheon-notify/src/notification.vala"
 
640
                _tmp54_ = g_hash_table_lookup (_tmp53_, "urgency");
 
641
#line 84 "/home/cjgomes/builds/pantheon-notify/src/notification.vala"
 
642
                _tmp55_ = g_variant_get_byte ((GVariant*) _tmp54_);
 
643
#line 84 "/home/cjgomes/builds/pantheon-notify/src/notification.vala"
 
644
                self->urgency = (NotificationUrgency) _tmp55_;
 
645
#line 85 "/home/cjgomes/builds/pantheon-notify/src/notification.vala"
 
646
                _tmp56_ = self->urgency;
 
647
#line 85 "/home/cjgomes/builds/pantheon-notify/src/notification.vala"
 
648
                if (_tmp56_ == NOTIFICATION_URGENCY_CRITICAL) {
 
649
#line 650 "notification.c"
 
650
                        GtkEventBox* _tmp57_ = NULL;
 
651
                        GtkStyleContext* _tmp58_ = NULL;
 
652
#line 86 "/home/cjgomes/builds/pantheon-notify/src/notification.vala"
 
653
                        _tmp57_ = self->priv->draw_ref;
 
654
#line 86 "/home/cjgomes/builds/pantheon-notify/src/notification.vala"
 
655
                        _tmp58_ = gtk_widget_get_style_context ((GtkWidget*) _tmp57_);
 
656
#line 86 "/home/cjgomes/builds/pantheon-notify/src/notification.vala"
 
657
                        gtk_style_context_add_class (_tmp58_, "critical");
 
658
#line 659 "notification.c"
 
659
                } else {
 
660
                        NotificationUrgency _tmp59_ = 0;
 
661
#line 87 "/home/cjgomes/builds/pantheon-notify/src/notification.vala"
 
662
                        _tmp59_ = self->urgency;
 
663
#line 87 "/home/cjgomes/builds/pantheon-notify/src/notification.vala"
 
664
                        if (_tmp59_ == NOTIFICATION_URGENCY_LOW) {
 
665
#line 666 "notification.c"
 
666
                                GtkEventBox* _tmp60_ = NULL;
 
667
                                GtkStyleContext* _tmp61_ = NULL;
 
668
#line 88 "/home/cjgomes/builds/pantheon-notify/src/notification.vala"
 
669
                                _tmp60_ = self->priv->draw_ref;
 
670
#line 88 "/home/cjgomes/builds/pantheon-notify/src/notification.vala"
 
671
                                _tmp61_ = gtk_widget_get_style_context ((GtkWidget*) _tmp60_);
 
672
#line 88 "/home/cjgomes/builds/pantheon-notify/src/notification.vala"
 
673
                                gtk_style_context_add_class (_tmp61_, "low");
 
674
#line 675 "notification.c"
 
675
                        }
 
676
                }
 
677
        } else {
 
678
#line 90 "/home/cjgomes/builds/pantheon-notify/src/notification.vala"
 
679
                self->urgency = NOTIFICATION_URGENCY_NORMAL;
 
680
#line 681 "notification.c"
 
681
        }
 
682
#line 94 "/home/cjgomes/builds/pantheon-notify/src/notification.vala"
 
683
        _tmp62_ = (GtkClutterTexture*) gtk_clutter_texture_new ();
 
684
#line 94 "/home/cjgomes/builds/pantheon-notify/src/notification.vala"
 
685
        g_object_ref_sink (_tmp62_);
 
686
#line 94 "/home/cjgomes/builds/pantheon-notify/src/notification.vala"
 
687
        _g_object_unref0 (self->priv->tex);
 
688
#line 94 "/home/cjgomes/builds/pantheon-notify/src/notification.vala"
 
689
        self->priv->tex = _tmp62_;
 
690
#line 95 "/home/cjgomes/builds/pantheon-notify/src/notification.vala"
 
691
        _tmp63_ = hints;
 
692
#line 95 "/home/cjgomes/builds/pantheon-notify/src/notification.vala"
 
693
        _tmp64_ = app;
 
694
#line 95 "/home/cjgomes/builds/pantheon-notify/src/notification.vala"
 
695
        _tmp65_ = icon;
 
696
#line 95 "/home/cjgomes/builds/pantheon-notify/src/notification.vala"
 
697
        notification_set_pix (self, _tmp63_, _tmp64_, _tmp65_);
 
698
#line 96 "/home/cjgomes/builds/pantheon-notify/src/notification.vala"
 
699
        _tmp66_ = self->priv->tex;
 
700
#line 96 "/home/cjgomes/builds/pantheon-notify/src/notification.vala"
 
701
        clutter_actor_set_y ((ClutterActor*) _tmp66_, (gfloat) (SHADOW + 3));
 
702
#line 97 "/home/cjgomes/builds/pantheon-notify/src/notification.vala"
 
703
        _tmp67_ = self->priv->tex;
 
704
#line 97 "/home/cjgomes/builds/pantheon-notify/src/notification.vala"
 
705
        clutter_actor_set_x ((ClutterActor*) _tmp67_, (gfloat) (SHADOW + 3));
 
706
#line 98 "/home/cjgomes/builds/pantheon-notify/src/notification.vala"
 
707
        _tmp68_ = self->priv->tex;
 
708
#line 98 "/home/cjgomes/builds/pantheon-notify/src/notification.vala"
 
709
        clutter_actor_set_width ((ClutterActor*) _tmp68_, (gfloat) 48);
 
710
#line 99 "/home/cjgomes/builds/pantheon-notify/src/notification.vala"
 
711
        _tmp69_ = self->priv->tex;
 
712
#line 99 "/home/cjgomes/builds/pantheon-notify/src/notification.vala"
 
713
        clutter_actor_set_height ((ClutterActor*) _tmp69_, (gfloat) 48);
 
714
#line 102 "/home/cjgomes/builds/pantheon-notify/src/notification.vala"
 
715
        _tmp70_ = (ClutterText*) clutter_text_new_with_text ("10 bold", "");
 
716
#line 102 "/home/cjgomes/builds/pantheon-notify/src/notification.vala"
 
717
        g_object_ref_sink (_tmp70_);
 
718
#line 102 "/home/cjgomes/builds/pantheon-notify/src/notification.vala"
 
719
        _g_object_unref0 (self->priv->title);
 
720
#line 102 "/home/cjgomes/builds/pantheon-notify/src/notification.vala"
 
721
        self->priv->title = _tmp70_;
 
722
#line 103 "/home/cjgomes/builds/pantheon-notify/src/notification.vala"
 
723
        _tmp71_ = (ClutterText*) clutter_text_new_with_text ("9", "");
 
724
#line 103 "/home/cjgomes/builds/pantheon-notify/src/notification.vala"
 
725
        g_object_ref_sink (_tmp71_);
 
726
#line 103 "/home/cjgomes/builds/pantheon-notify/src/notification.vala"
 
727
        _g_object_unref0 (self->priv->text);
 
728
#line 103 "/home/cjgomes/builds/pantheon-notify/src/notification.vala"
 
729
        self->priv->text = _tmp71_;
 
730
#line 105 "/home/cjgomes/builds/pantheon-notify/src/notification.vala"
 
731
        _tmp72_ = name;
 
732
#line 105 "/home/cjgomes/builds/pantheon-notify/src/notification.vala"
 
733
        _tmp73_ = body;
 
734
#line 105 "/home/cjgomes/builds/pantheon-notify/src/notification.vala"
 
735
        notification_set_text (self, _tmp72_, _tmp73_);
 
736
#line 106 "/home/cjgomes/builds/pantheon-notify/src/notification.vala"
 
737
        _tmp74_ = self->priv->text;
 
738
#line 106 "/home/cjgomes/builds/pantheon-notify/src/notification.vala"
 
739
        _tmp75_ = self->priv->title;
 
740
#line 106 "/home/cjgomes/builds/pantheon-notify/src/notification.vala"
 
741
        _tmp76_ = self->priv->text;
 
742
#line 106 "/home/cjgomes/builds/pantheon-notify/src/notification.vala"
 
743
        _tmp77_ = clutter_actor_get_x ((ClutterActor*) _tmp76_);
 
744
#line 106 "/home/cjgomes/builds/pantheon-notify/src/notification.vala"
 
745
        _tmp78_ = _tmp77_;
 
746
#line 106 "/home/cjgomes/builds/pantheon-notify/src/notification.vala"
 
747
        clutter_actor_set_width ((ClutterActor*) _tmp75_, (WIDTH - (_tmp78_ + SHADOW)) - 76);
 
748
#line 106 "/home/cjgomes/builds/pantheon-notify/src/notification.vala"
 
749
        clutter_actor_set_width ((ClutterActor*) _tmp74_, (WIDTH - (_tmp78_ + SHADOW)) - 76);
 
750
#line 107 "/home/cjgomes/builds/pantheon-notify/src/notification.vala"
 
751
        _tmp79_ = self->priv->text;
 
752
#line 107 "/home/cjgomes/builds/pantheon-notify/src/notification.vala"
 
753
        clutter_text_set_line_wrap (_tmp79_, TRUE);
 
754
#line 108 "/home/cjgomes/builds/pantheon-notify/src/notification.vala"
 
755
        _tmp80_ = self->priv->text;
 
756
#line 108 "/home/cjgomes/builds/pantheon-notify/src/notification.vala"
 
757
        clutter_text_set_line_wrap_mode (_tmp80_, PANGO_WRAP_WORD_CHAR);
 
758
#line 109 "/home/cjgomes/builds/pantheon-notify/src/notification.vala"
 
759
        _tmp81_ = self->priv->text;
 
760
#line 109 "/home/cjgomes/builds/pantheon-notify/src/notification.vala"
 
761
        _tmp82_ = self->priv->title;
 
762
#line 109 "/home/cjgomes/builds/pantheon-notify/src/notification.vala"
 
763
        clutter_text_set_ellipsize (_tmp82_, PANGO_ELLIPSIZE_END);
 
764
#line 109 "/home/cjgomes/builds/pantheon-notify/src/notification.vala"
 
765
        clutter_text_set_ellipsize (_tmp81_, PANGO_ELLIPSIZE_END);
 
766
#line 110 "/home/cjgomes/builds/pantheon-notify/src/notification.vala"
 
767
        _tmp83_ = self->priv->text;
 
768
#line 110 "/home/cjgomes/builds/pantheon-notify/src/notification.vala"
 
769
        _tmp84_ = self->priv->title;
 
770
#line 110 "/home/cjgomes/builds/pantheon-notify/src/notification.vala"
 
771
        _tmp85_ = clutter_actor_get_height ((ClutterActor*) _tmp84_);
 
772
#line 110 "/home/cjgomes/builds/pantheon-notify/src/notification.vala"
 
773
        _tmp86_ = _tmp85_;
 
774
#line 110 "/home/cjgomes/builds/pantheon-notify/src/notification.vala"
 
775
        _tmp87_ = (ClutterBindConstraint*) clutter_bind_constraint_new ((ClutterActor*) self, CLUTTER_BIND_HEIGHT, ((-SHADOW) - _tmp86_) - 20);
 
776
#line 110 "/home/cjgomes/builds/pantheon-notify/src/notification.vala"
 
777
        g_object_ref_sink (_tmp87_);
 
778
#line 110 "/home/cjgomes/builds/pantheon-notify/src/notification.vala"
 
779
        _tmp88_ = _tmp87_;
 
780
#line 110 "/home/cjgomes/builds/pantheon-notify/src/notification.vala"
 
781
        clutter_actor_add_constraint ((ClutterActor*) _tmp83_, (ClutterConstraint*) _tmp88_);
 
782
#line 110 "/home/cjgomes/builds/pantheon-notify/src/notification.vala"
 
783
        _g_object_unref0 (_tmp88_);
 
784
#line 111 "/home/cjgomes/builds/pantheon-notify/src/notification.vala"
 
785
        _tmp89_ = self->priv->title;
 
786
#line 111 "/home/cjgomes/builds/pantheon-notify/src/notification.vala"
 
787
        clutter_actor_set_y ((ClutterActor*) _tmp89_, (gfloat) (SHADOW + 8));
 
788
#line 112 "/home/cjgomes/builds/pantheon-notify/src/notification.vala"
 
789
        _tmp90_ = self->priv->text;
 
790
#line 112 "/home/cjgomes/builds/pantheon-notify/src/notification.vala"
 
791
        _tmp91_ = self->priv->title;
 
792
#line 112 "/home/cjgomes/builds/pantheon-notify/src/notification.vala"
 
793
        _tmp92_ = clutter_actor_get_height ((ClutterActor*) _tmp91_);
 
794
#line 112 "/home/cjgomes/builds/pantheon-notify/src/notification.vala"
 
795
        _tmp93_ = _tmp92_;
 
796
#line 112 "/home/cjgomes/builds/pantheon-notify/src/notification.vala"
 
797
        clutter_actor_set_y ((ClutterActor*) _tmp90_, (SHADOW + 8) + _tmp93_);
 
798
#line 113 "/home/cjgomes/builds/pantheon-notify/src/notification.vala"
 
799
        _tmp94_ = self->priv->text;
 
800
#line 113 "/home/cjgomes/builds/pantheon-notify/src/notification.vala"
 
801
        _tmp95_ = self->priv->title;
 
802
#line 113 "/home/cjgomes/builds/pantheon-notify/src/notification.vala"
 
803
        _tmp96_ = self->priv->tex;
 
804
#line 113 "/home/cjgomes/builds/pantheon-notify/src/notification.vala"
 
805
        _tmp97_ = clutter_actor_get_x ((ClutterActor*) _tmp96_);
 
806
#line 113 "/home/cjgomes/builds/pantheon-notify/src/notification.vala"
 
807
        _tmp98_ = _tmp97_;
 
808
#line 113 "/home/cjgomes/builds/pantheon-notify/src/notification.vala"
 
809
        _tmp99_ = self->priv->tex;
 
810
#line 113 "/home/cjgomes/builds/pantheon-notify/src/notification.vala"
 
811
        _tmp100_ = clutter_actor_get_width ((ClutterActor*) _tmp99_);
 
812
#line 113 "/home/cjgomes/builds/pantheon-notify/src/notification.vala"
 
813
        _tmp101_ = _tmp100_;
 
814
#line 113 "/home/cjgomes/builds/pantheon-notify/src/notification.vala"
 
815
        clutter_actor_set_x ((ClutterActor*) _tmp95_, (_tmp98_ + _tmp101_) + 5);
 
816
#line 113 "/home/cjgomes/builds/pantheon-notify/src/notification.vala"
 
817
        clutter_actor_set_x ((ClutterActor*) _tmp94_, (_tmp98_ + _tmp101_) + 5);
 
818
#line 116 "/home/cjgomes/builds/pantheon-notify/src/notification.vala"
 
819
        _tmp102_ = self->priv->background;
 
820
#line 116 "/home/cjgomes/builds/pantheon-notify/src/notification.vala"
 
821
        clutter_actor_add_child ((ClutterActor*) self, (ClutterActor*) _tmp102_);
 
822
#line 117 "/home/cjgomes/builds/pantheon-notify/src/notification.vala"
 
823
        _tmp103_ = self->priv->tex;
 
824
#line 117 "/home/cjgomes/builds/pantheon-notify/src/notification.vala"
 
825
        clutter_actor_add_child ((ClutterActor*) self, (ClutterActor*) _tmp103_);
 
826
#line 118 "/home/cjgomes/builds/pantheon-notify/src/notification.vala"
 
827
        _tmp104_ = self->priv->title;
 
828
#line 118 "/home/cjgomes/builds/pantheon-notify/src/notification.vala"
 
829
        clutter_actor_add_child ((ClutterActor*) self, (ClutterActor*) _tmp104_);
 
830
#line 119 "/home/cjgomes/builds/pantheon-notify/src/notification.vala"
 
831
        _tmp105_ = self->priv->text;
 
832
#line 119 "/home/cjgomes/builds/pantheon-notify/src/notification.vala"
 
833
        clutter_actor_add_child ((ClutterActor*) self, (ClutterActor*) _tmp105_);
 
834
#line 120 "/home/cjgomes/builds/pantheon-notify/src/notification.vala"
 
835
        _tmp106_ = self->priv->closeb;
 
836
#line 120 "/home/cjgomes/builds/pantheon-notify/src/notification.vala"
 
837
        clutter_actor_add_child ((ClutterActor*) self, (ClutterActor*) _tmp106_);
 
838
#line 124 "/home/cjgomes/builds/pantheon-notify/src/notification.vala"
 
839
        _tmp107_ = clutter_actor_animate ((ClutterActor*) self, (gulong) CLUTTER_EASE_OUT_BOUNCE, (guint) 650, "rotation-angle-x", 0.0f, "opacity", 255, "height", 0.0f + HEIGHT, NULL);
 
840
#line 124 "/home/cjgomes/builds/pantheon-notify/src/notification.vala"
 
841
        _tmp108_ = _g_object_ref0 (_tmp107_);
 
842
#line 124 "/home/cjgomes/builds/pantheon-notify/src/notification.vala"
 
843
        a = _tmp108_;
 
844
#line 126 "/home/cjgomes/builds/pantheon-notify/src/notification.vala"
 
845
        g_signal_connect_object (a, "completed", (GCallback) _notification_ready_clutter_animation_completed, self, 0);
 
846
#line 129 "/home/cjgomes/builds/pantheon-notify/src/notification.vala"
 
847
        _tmp109_ = self->priv->closeb;
 
848
#line 129 "/home/cjgomes/builds/pantheon-notify/src/notification.vala"
 
849
        g_signal_connect_object ((ClutterActor*) _tmp109_, "button-press-event", (GCallback) _notification_on_close_clicked_clutter_actor_button_press_event, self, 0);
 
850
#line 131 "/home/cjgomes/builds/pantheon-notify/src/notification.vala"
 
851
        _tmp110_ = ((GObject*) self)->ref_count;
 
852
#line 131 "/home/cjgomes/builds/pantheon-notify/src/notification.vala"
 
853
        g_debug ("notification.vala:131: End Refcount: %u", _tmp110_);
 
854
#line 133 "/home/cjgomes/builds/pantheon-notify/src/notification.vala"
 
855
        g_signal_connect_object ((ClutterActor*) self, "allocation-changed", (GCallback) _notification_on_allocation_changed_clutter_actor_allocation_changed, self, 0);
 
856
#line 31 "/home/cjgomes/builds/pantheon-notify/src/notification.vala"
 
857
        _g_object_unref0 (a);
 
858
#line 31 "/home/cjgomes/builds/pantheon-notify/src/notification.vala"
 
859
        _g_object_unref0 (css);
 
860
#line 31 "/home/cjgomes/builds/pantheon-notify/src/notification.vala"
 
861
        return self;
 
862
#line 863 "notification.c"
 
863
}
 
864
 
 
865
 
 
866
Notification* notification_new (const gchar* name, const gchar* body, const gchar* icon, guint32 _timeout, const gchar* app, NotifyServer* _server, GHashTable* hints, guint32 _id, gchar** actions, int actions_length1) {
 
867
#line 31 "/home/cjgomes/builds/pantheon-notify/src/notification.vala"
 
868
        return notification_construct (TYPE_NOTIFICATION, name, body, icon, _timeout, app, _server, hints, _id, actions, actions_length1);
 
869
#line 870 "notification.c"
 
870
}
 
871
 
 
872
 
 
873
gboolean notification_on_close_clicked (Notification* self, ClutterButtonEvent* event) {
 
874
        gboolean result = FALSE;
 
875
#line 144 "/home/cjgomes/builds/pantheon-notify/src/notification.vala"
 
876
        g_return_val_if_fail (self != NULL, FALSE);
 
877
#line 144 "/home/cjgomes/builds/pantheon-notify/src/notification.vala"
 
878
        g_return_val_if_fail (event != NULL, FALSE);
 
879
#line 146 "/home/cjgomes/builds/pantheon-notify/src/notification.vala"
 
880
        notification_close (self, TRUE);
 
881
#line 147 "/home/cjgomes/builds/pantheon-notify/src/notification.vala"
 
882
        result = TRUE;
 
883
#line 147 "/home/cjgomes/builds/pantheon-notify/src/notification.vala"
 
884
        return result;
 
885
#line 886 "notification.c"
 
886
}
 
887
 
 
888
 
 
889
static gboolean notification_real_button_release_event (ClutterActor* base, ClutterButtonEvent* event) {
 
890
        Notification * self;
 
891
        gboolean result = FALSE;
 
892
        WnckWindow* _tmp0_ = NULL;
 
893
#line 150 "/home/cjgomes/builds/pantheon-notify/src/notification.vala"
 
894
        self = (Notification*) base;
 
895
#line 150 "/home/cjgomes/builds/pantheon-notify/src/notification.vala"
 
896
        g_return_val_if_fail (event != NULL, FALSE);
 
897
#line 152 "/home/cjgomes/builds/pantheon-notify/src/notification.vala"
 
898
        _tmp0_ = self->app_window;
 
899
#line 152 "/home/cjgomes/builds/pantheon-notify/src/notification.vala"
 
900
        if (_tmp0_ != NULL) {
 
901
#line 902 "notification.c"
 
902
                WnckWindow* _tmp1_ = NULL;
 
903
                guint32 _tmp2_ = 0U;
 
904
#line 153 "/home/cjgomes/builds/pantheon-notify/src/notification.vala"
 
905
                _tmp1_ = self->app_window;
 
906
#line 153 "/home/cjgomes/builds/pantheon-notify/src/notification.vala"
 
907
                _tmp2_ = gtk_get_current_event_time ();
 
908
#line 153 "/home/cjgomes/builds/pantheon-notify/src/notification.vala"
 
909
                wnck_window_activate (_tmp1_, _tmp2_);
 
910
#line 911 "notification.c"
 
911
        }
 
912
#line 155 "/home/cjgomes/builds/pantheon-notify/src/notification.vala"
 
913
        result = TRUE;
 
914
#line 155 "/home/cjgomes/builds/pantheon-notify/src/notification.vala"
 
915
        return result;
 
916
#line 917 "notification.c"
 
917
}
 
918
 
 
919
 
 
920
static gboolean ___lambda4_ (Notification* self) {
 
921
        gboolean result = FALSE;
 
922
#line 168 "/home/cjgomes/builds/pantheon-notify/src/notification.vala"
 
923
        notification_close (self, FALSE);
 
924
#line 169 "/home/cjgomes/builds/pantheon-notify/src/notification.vala"
 
925
        result = FALSE;
 
926
#line 169 "/home/cjgomes/builds/pantheon-notify/src/notification.vala"
 
927
        return result;
 
928
#line 929 "notification.c"
 
929
}
 
930
 
 
931
 
 
932
static gboolean ____lambda4__gsource_func (gpointer self) {
 
933
        gboolean result;
 
934
        result = ___lambda4_ (self);
 
935
#line 167 "/home/cjgomes/builds/pantheon-notify/src/notification.vala"
 
936
        return result;
 
937
#line 938 "notification.c"
 
938
}
 
939
 
 
940
 
 
941
static gboolean notification_real_leave_event (ClutterActor* base, ClutterCrossingEvent* event) {
 
942
        Notification * self;
 
943
        gboolean result = FALSE;
 
944
        gboolean _tmp0_ = FALSE;
 
945
        ClutterTexture* _tmp1_ = NULL;
 
946
        NotificationUrgency _tmp2_ = 0;
 
947
        NotifyServer* _tmp9_ = NULL;
 
948
        GtkWindow* _tmp10_ = NULL;
 
949
        GdkWindow* _tmp11_ = NULL;
 
950
#line 158 "/home/cjgomes/builds/pantheon-notify/src/notification.vala"
 
951
        self = (Notification*) base;
 
952
#line 158 "/home/cjgomes/builds/pantheon-notify/src/notification.vala"
 
953
        g_return_val_if_fail (event != NULL, FALSE);
 
954
#line 160 "/home/cjgomes/builds/pantheon-notify/src/notification.vala"
 
955
        _tmp0_ = self->priv->block_anim;
 
956
#line 160 "/home/cjgomes/builds/pantheon-notify/src/notification.vala"
 
957
        if (_tmp0_) {
 
958
#line 161 "/home/cjgomes/builds/pantheon-notify/src/notification.vala"
 
959
                result = FALSE;
 
960
#line 161 "/home/cjgomes/builds/pantheon-notify/src/notification.vala"
 
961
                return result;
 
962
#line 963 "notification.c"
 
963
        }
 
964
#line 163 "/home/cjgomes/builds/pantheon-notify/src/notification.vala"
 
965
        _tmp1_ = self->priv->closeb;
 
966
#line 163 "/home/cjgomes/builds/pantheon-notify/src/notification.vala"
 
967
        clutter_actor_animate ((ClutterActor*) _tmp1_, (gulong) CLUTTER_EASE_IN_QUAD, (guint) 400, "scale-x", 0.0f, "scale-y", 0.0f, NULL);
 
968
#line 166 "/home/cjgomes/builds/pantheon-notify/src/notification.vala"
 
969
        _tmp2_ = self->urgency;
 
970
#line 166 "/home/cjgomes/builds/pantheon-notify/src/notification.vala"
 
971
        if (_tmp2_ != NOTIFICATION_URGENCY_CRITICAL) {
 
972
#line 973 "notification.c"
 
973
                guint32 _tmp3_ = 0U;
 
974
                guint32 _tmp4_ = 0U;
 
975
                guint32 _tmp5_ = 0U;
 
976
                guint32 _tmp7_ = 0U;
 
977
                guint _tmp8_ = 0U;
 
978
#line 167 "/home/cjgomes/builds/pantheon-notify/src/notification.vala"
 
979
                _tmp4_ = self->priv->timeout;
 
980
#line 167 "/home/cjgomes/builds/pantheon-notify/src/notification.vala"
 
981
                _tmp5_ = G_MAXUINT32;
 
982
#line 167 "/home/cjgomes/builds/pantheon-notify/src/notification.vala"
 
983
                if (_tmp4_ == _tmp5_) {
 
984
#line 167 "/home/cjgomes/builds/pantheon-notify/src/notification.vala"
 
985
                        _tmp3_ = (guint32) 3000;
 
986
#line 987 "notification.c"
 
987
                } else {
 
988
                        guint32 _tmp6_ = 0U;
 
989
#line 167 "/home/cjgomes/builds/pantheon-notify/src/notification.vala"
 
990
                        _tmp6_ = self->priv->timeout;
 
991
#line 167 "/home/cjgomes/builds/pantheon-notify/src/notification.vala"
 
992
                        _tmp3_ = _tmp6_;
 
993
#line 994 "notification.c"
 
994
                }
 
995
#line 167 "/home/cjgomes/builds/pantheon-notify/src/notification.vala"
 
996
                _tmp7_ = _tmp3_;
 
997
#line 167 "/home/cjgomes/builds/pantheon-notify/src/notification.vala"
 
998
                _tmp8_ = g_timeout_add_full (G_PRIORITY_DEFAULT, (guint) _tmp7_, ____lambda4__gsource_func, g_object_ref (self), g_object_unref);
 
999
#line 167 "/home/cjgomes/builds/pantheon-notify/src/notification.vala"
 
1000
                self->priv->timer = _tmp8_;
 
1001
#line 1002 "notification.c"
 
1002
        }
 
1003
#line 173 "/home/cjgomes/builds/pantheon-notify/src/notification.vala"
 
1004
        _tmp9_ = self->priv->server;
 
1005
#line 173 "/home/cjgomes/builds/pantheon-notify/src/notification.vala"
 
1006
        _tmp10_ = _tmp9_->main_window;
 
1007
#line 173 "/home/cjgomes/builds/pantheon-notify/src/notification.vala"
 
1008
        _tmp11_ = gtk_widget_get_window ((GtkWidget*) _tmp10_);
 
1009
#line 173 "/home/cjgomes/builds/pantheon-notify/src/notification.vala"
 
1010
        gdk_window_set_cursor (_tmp11_, NULL);
 
1011
#line 175 "/home/cjgomes/builds/pantheon-notify/src/notification.vala"
 
1012
        clutter_actor_animate ((ClutterActor*) self, (gulong) CLUTTER_EASE_OUT_QUAD, (guint) 400, "height", HEIGHT + 0.0f, NULL);
 
1013
#line 177 "/home/cjgomes/builds/pantheon-notify/src/notification.vala"
 
1014
        result = TRUE;
 
1015
#line 177 "/home/cjgomes/builds/pantheon-notify/src/notification.vala"
 
1016
        return result;
 
1017
#line 1018 "notification.c"
 
1018
}
 
1019
 
 
1020
 
 
1021
static gboolean notification_real_enter_event (ClutterActor* base, ClutterCrossingEvent* event) {
 
1022
        Notification * self;
 
1023
        gboolean result = FALSE;
 
1024
        gboolean _tmp0_ = FALSE;
 
1025
        ClutterTexture* _tmp1_ = NULL;
 
1026
        NotificationUrgency _tmp2_ = 0;
 
1027
        gfloat height = 0.0F;
 
1028
        ClutterText* _tmp4_ = NULL;
 
1029
        gfloat _tmp5_ = 0.0F;
 
1030
        gfloat new_h = 0.0F;
 
1031
        gfloat _tmp6_ = 0.0F;
 
1032
        gfloat _tmp7_ = 0.0F;
 
1033
        ClutterText* _tmp8_ = NULL;
 
1034
        gfloat _tmp9_ = 0.0F;
 
1035
        gfloat _tmp10_ = 0.0F;
 
1036
        gfloat _tmp11_ = 0.0F;
 
1037
        gfloat _tmp12_ = 0.0F;
 
1038
        WnckWindow* _tmp13_ = NULL;
 
1039
#line 180 "/home/cjgomes/builds/pantheon-notify/src/notification.vala"
 
1040
        self = (Notification*) base;
 
1041
#line 180 "/home/cjgomes/builds/pantheon-notify/src/notification.vala"
 
1042
        g_return_val_if_fail (event != NULL, FALSE);
 
1043
#line 182 "/home/cjgomes/builds/pantheon-notify/src/notification.vala"
 
1044
        _tmp0_ = self->priv->block_anim;
 
1045
#line 182 "/home/cjgomes/builds/pantheon-notify/src/notification.vala"
 
1046
        if (_tmp0_) {
 
1047
#line 183 "/home/cjgomes/builds/pantheon-notify/src/notification.vala"
 
1048
                result = FALSE;
 
1049
#line 183 "/home/cjgomes/builds/pantheon-notify/src/notification.vala"
 
1050
                return result;
 
1051
#line 1052 "notification.c"
 
1052
        }
 
1053
#line 185 "/home/cjgomes/builds/pantheon-notify/src/notification.vala"
 
1054
        _tmp1_ = self->priv->closeb;
 
1055
#line 185 "/home/cjgomes/builds/pantheon-notify/src/notification.vala"
 
1056
        clutter_actor_animate ((ClutterActor*) _tmp1_, (gulong) CLUTTER_EASE_OUT_ELASTIC, (guint) 400, "scale-x", 1.0f, "scale-y", 1.0f, NULL);
 
1057
#line 187 "/home/cjgomes/builds/pantheon-notify/src/notification.vala"
 
1058
        _tmp2_ = self->urgency;
 
1059
#line 187 "/home/cjgomes/builds/pantheon-notify/src/notification.vala"
 
1060
        if (_tmp2_ != NOTIFICATION_URGENCY_CRITICAL) {
 
1061
#line 1062 "notification.c"
 
1062
                guint _tmp3_ = 0U;
 
1063
#line 188 "/home/cjgomes/builds/pantheon-notify/src/notification.vala"
 
1064
                _tmp3_ = self->priv->timer;
 
1065
#line 188 "/home/cjgomes/builds/pantheon-notify/src/notification.vala"
 
1066
                g_source_remove (_tmp3_);
 
1067
#line 1068 "notification.c"
 
1068
        }
 
1069
#line 191 "/home/cjgomes/builds/pantheon-notify/src/notification.vala"
 
1070
        _tmp4_ = self->priv->text;
 
1071
#line 191 "/home/cjgomes/builds/pantheon-notify/src/notification.vala"
 
1072
        clutter_actor_get_preferred_size ((ClutterActor*) _tmp4_, NULL, NULL, NULL, &_tmp5_);
 
1073
#line 191 "/home/cjgomes/builds/pantheon-notify/src/notification.vala"
 
1074
        height = _tmp5_;
 
1075
#line 192 "/home/cjgomes/builds/pantheon-notify/src/notification.vala"
 
1076
        _tmp6_ = height;
 
1077
#line 192 "/home/cjgomes/builds/pantheon-notify/src/notification.vala"
 
1078
        _tmp7_ = height;
 
1079
#line 192 "/home/cjgomes/builds/pantheon-notify/src/notification.vala"
 
1080
        _tmp8_ = self->priv->text;
 
1081
#line 192 "/home/cjgomes/builds/pantheon-notify/src/notification.vala"
 
1082
        _tmp9_ = clutter_actor_get_height ((ClutterActor*) _tmp8_);
 
1083
#line 192 "/home/cjgomes/builds/pantheon-notify/src/notification.vala"
 
1084
        _tmp10_ = _tmp9_;
 
1085
#line 192 "/home/cjgomes/builds/pantheon-notify/src/notification.vala"
 
1086
        new_h = (_tmp6_ + (_tmp7_ - _tmp10_)) + SHADOW;
 
1087
#line 193 "/home/cjgomes/builds/pantheon-notify/src/notification.vala"
 
1088
        _tmp11_ = new_h;
 
1089
#line 193 "/home/cjgomes/builds/pantheon-notify/src/notification.vala"
 
1090
        if (_tmp11_ < ((gfloat) HEIGHT)) {
 
1091
#line 194 "/home/cjgomes/builds/pantheon-notify/src/notification.vala"
 
1092
                new_h = (gfloat) HEIGHT;
 
1093
#line 1094 "notification.c"
 
1094
        }
 
1095
#line 195 "/home/cjgomes/builds/pantheon-notify/src/notification.vala"
 
1096
        _tmp12_ = new_h;
 
1097
#line 195 "/home/cjgomes/builds/pantheon-notify/src/notification.vala"
 
1098
        clutter_actor_animate ((ClutterActor*) self, (gulong) CLUTTER_EASE_OUT_QUAD, (guint) 400, "height", _tmp12_, NULL);
 
1099
#line 197 "/home/cjgomes/builds/pantheon-notify/src/notification.vala"
 
1100
        _tmp13_ = self->app_window;
 
1101
#line 197 "/home/cjgomes/builds/pantheon-notify/src/notification.vala"
 
1102
        if (_tmp13_ != NULL) {
 
1103
#line 1104 "notification.c"
 
1104
                NotifyServer* _tmp14_ = NULL;
 
1105
                GtkWindow* _tmp15_ = NULL;
 
1106
                GdkWindow* _tmp16_ = NULL;
 
1107
                GdkCursor* _tmp17_ = NULL;
 
1108
                GdkCursor* _tmp18_ = NULL;
 
1109
#line 198 "/home/cjgomes/builds/pantheon-notify/src/notification.vala"
 
1110
                _tmp14_ = self->priv->server;
 
1111
#line 198 "/home/cjgomes/builds/pantheon-notify/src/notification.vala"
 
1112
                _tmp15_ = _tmp14_->main_window;
 
1113
#line 198 "/home/cjgomes/builds/pantheon-notify/src/notification.vala"
 
1114
                _tmp16_ = gtk_widget_get_window ((GtkWidget*) _tmp15_);
 
1115
#line 198 "/home/cjgomes/builds/pantheon-notify/src/notification.vala"
 
1116
                _tmp17_ = gdk_cursor_new (GDK_HAND1);
 
1117
#line 198 "/home/cjgomes/builds/pantheon-notify/src/notification.vala"
 
1118
                _tmp18_ = _tmp17_;
 
1119
#line 198 "/home/cjgomes/builds/pantheon-notify/src/notification.vala"
 
1120
                gdk_window_set_cursor (_tmp16_, _tmp18_);
 
1121
#line 198 "/home/cjgomes/builds/pantheon-notify/src/notification.vala"
 
1122
                _g_object_unref0 (_tmp18_);
 
1123
#line 1124 "notification.c"
 
1124
        }
 
1125
#line 200 "/home/cjgomes/builds/pantheon-notify/src/notification.vala"
 
1126
        result = TRUE;
 
1127
#line 200 "/home/cjgomes/builds/pantheon-notify/src/notification.vala"
 
1128
        return result;
 
1129
#line 1130 "notification.c"
 
1130
}
 
1131
 
 
1132
 
 
1133
static gboolean ___lambda3_ (Notification* self) {
 
1134
        gboolean result = FALSE;
 
1135
#line 209 "/home/cjgomes/builds/pantheon-notify/src/notification.vala"
 
1136
        notification_close (self, FALSE);
 
1137
#line 210 "/home/cjgomes/builds/pantheon-notify/src/notification.vala"
 
1138
        result = FALSE;
 
1139
#line 210 "/home/cjgomes/builds/pantheon-notify/src/notification.vala"
 
1140
        return result;
 
1141
#line 1142 "notification.c"
 
1142
}
 
1143
 
 
1144
 
 
1145
static gboolean ____lambda3__gsource_func (gpointer self) {
 
1146
        gboolean result;
 
1147
        result = ___lambda3_ (self);
 
1148
#line 208 "/home/cjgomes/builds/pantheon-notify/src/notification.vala"
 
1149
        return result;
 
1150
#line 1151 "notification.c"
 
1151
}
 
1152
 
 
1153
 
 
1154
void notification_ready (Notification* self) {
 
1155
        NotificationUrgency _tmp0_ = 0;
 
1156
#line 203 "/home/cjgomes/builds/pantheon-notify/src/notification.vala"
 
1157
        g_return_if_fail (self != NULL);
 
1158
#line 205 "/home/cjgomes/builds/pantheon-notify/src/notification.vala"
 
1159
        self->priv->block_anim = FALSE;
 
1160
#line 207 "/home/cjgomes/builds/pantheon-notify/src/notification.vala"
 
1161
        _tmp0_ = self->urgency;
 
1162
#line 207 "/home/cjgomes/builds/pantheon-notify/src/notification.vala"
 
1163
        if (_tmp0_ != NOTIFICATION_URGENCY_CRITICAL) {
 
1164
#line 1165 "notification.c"
 
1165
                guint32 _tmp1_ = 0U;
 
1166
                guint32 _tmp2_ = 0U;
 
1167
                guint32 _tmp3_ = 0U;
 
1168
                guint32 _tmp5_ = 0U;
 
1169
                guint _tmp6_ = 0U;
 
1170
#line 208 "/home/cjgomes/builds/pantheon-notify/src/notification.vala"
 
1171
                _tmp2_ = self->priv->timeout;
 
1172
#line 208 "/home/cjgomes/builds/pantheon-notify/src/notification.vala"
 
1173
                _tmp3_ = G_MAXUINT32;
 
1174
#line 208 "/home/cjgomes/builds/pantheon-notify/src/notification.vala"
 
1175
                if (_tmp2_ == _tmp3_) {
 
1176
#line 208 "/home/cjgomes/builds/pantheon-notify/src/notification.vala"
 
1177
                        _tmp1_ = (guint32) EXPIRE;
 
1178
#line 1179 "notification.c"
 
1179
                } else {
 
1180
                        guint32 _tmp4_ = 0U;
 
1181
#line 208 "/home/cjgomes/builds/pantheon-notify/src/notification.vala"
 
1182
                        _tmp4_ = self->priv->timeout;
 
1183
#line 208 "/home/cjgomes/builds/pantheon-notify/src/notification.vala"
 
1184
                        _tmp1_ = _tmp4_;
 
1185
#line 1186 "notification.c"
 
1186
                }
 
1187
#line 208 "/home/cjgomes/builds/pantheon-notify/src/notification.vala"
 
1188
                _tmp5_ = _tmp1_;
 
1189
#line 208 "/home/cjgomes/builds/pantheon-notify/src/notification.vala"
 
1190
                _tmp6_ = clutter_threads_add_timeout ((guint) _tmp5_, ____lambda3__gsource_func, self);
 
1191
#line 208 "/home/cjgomes/builds/pantheon-notify/src/notification.vala"
 
1192
                self->priv->timer = _tmp6_;
 
1193
#line 1194 "notification.c"
 
1194
        }
 
1195
}
 
1196
 
 
1197
 
 
1198
gboolean notification_draw_background (Notification* self, cairo_t* cr) {
 
1199
        gboolean result = FALSE;
 
1200
        cairo_t* _tmp0_ = NULL;
 
1201
        GraniteDrawingBufferSurface* _tmp1_ = NULL;
 
1202
        cairo_surface_t* _tmp2_ = NULL;
 
1203
        cairo_surface_t* _tmp3_ = NULL;
 
1204
        cairo_t* _tmp4_ = NULL;
 
1205
#line 215 "/home/cjgomes/builds/pantheon-notify/src/notification.vala"
 
1206
        g_return_val_if_fail (self != NULL, FALSE);
 
1207
#line 215 "/home/cjgomes/builds/pantheon-notify/src/notification.vala"
 
1208
        g_return_val_if_fail (cr != NULL, FALSE);
 
1209
#line 217 "/home/cjgomes/builds/pantheon-notify/src/notification.vala"
 
1210
        _tmp0_ = cr;
 
1211
#line 217 "/home/cjgomes/builds/pantheon-notify/src/notification.vala"
 
1212
        _tmp1_ = self->priv->buffer;
 
1213
#line 217 "/home/cjgomes/builds/pantheon-notify/src/notification.vala"
 
1214
        _tmp2_ = granite_drawing_buffer_surface_get_surface (_tmp1_);
 
1215
#line 217 "/home/cjgomes/builds/pantheon-notify/src/notification.vala"
 
1216
        _tmp3_ = _tmp2_;
 
1217
#line 217 "/home/cjgomes/builds/pantheon-notify/src/notification.vala"
 
1218
        cairo_set_source_surface (_tmp0_, _tmp3_, (gdouble) 0, (gdouble) 0);
 
1219
#line 218 "/home/cjgomes/builds/pantheon-notify/src/notification.vala"
 
1220
        _tmp4_ = cr;
 
1221
#line 218 "/home/cjgomes/builds/pantheon-notify/src/notification.vala"
 
1222
        cairo_paint (_tmp4_);
 
1223
#line 220 "/home/cjgomes/builds/pantheon-notify/src/notification.vala"
 
1224
        result = FALSE;
 
1225
#line 220 "/home/cjgomes/builds/pantheon-notify/src/notification.vala"
 
1226
        return result;
 
1227
#line 1228 "notification.c"
 
1228
}
 
1229
 
 
1230
 
 
1231
void notification_on_allocation_changed (Notification* self, ClutterActorBox* alloc, ClutterAllocationFlags flags) {
 
1232
        gfloat _tmp0_ = 0.0F;
 
1233
        gfloat _tmp1_ = 0.0F;
 
1234
        gfloat _tmp2_ = 0.0F;
 
1235
        gfloat _tmp3_ = 0.0F;
 
1236
        GraniteDrawingBufferSurface* _tmp4_ = NULL;
 
1237
        GraniteDrawingBufferSurface* _tmp5_ = NULL;
 
1238
        cairo_t* _tmp6_ = NULL;
 
1239
        cairo_t* _tmp7_ = NULL;
 
1240
        gfloat _tmp8_ = 0.0F;
 
1241
        gfloat _tmp9_ = 0.0F;
 
1242
        gfloat _tmp10_ = 0.0F;
 
1243
        gfloat _tmp11_ = 0.0F;
 
1244
        GraniteDrawingBufferSurface* _tmp12_ = NULL;
 
1245
        cairo_t* _tmp13_ = NULL;
 
1246
        cairo_t* _tmp14_ = NULL;
 
1247
        GraniteDrawingBufferSurface* _tmp15_ = NULL;
 
1248
        cairo_t* _tmp16_ = NULL;
 
1249
        cairo_t* _tmp17_ = NULL;
 
1250
        GraniteDrawingBufferSurface* _tmp18_ = NULL;
 
1251
        GtkEventBox* _tmp19_ = NULL;
 
1252
        GtkStyleContext* _tmp20_ = NULL;
 
1253
        GraniteDrawingBufferSurface* _tmp21_ = NULL;
 
1254
        cairo_t* _tmp22_ = NULL;
 
1255
        cairo_t* _tmp23_ = NULL;
 
1256
        gfloat _tmp24_ = 0.0F;
 
1257
        gfloat _tmp25_ = 0.0F;
 
1258
        gfloat _tmp26_ = 0.0F;
 
1259
        gfloat _tmp27_ = 0.0F;
 
1260
#line 223 "/home/cjgomes/builds/pantheon-notify/src/notification.vala"
 
1261
        g_return_if_fail (self != NULL);
 
1262
#line 223 "/home/cjgomes/builds/pantheon-notify/src/notification.vala"
 
1263
        g_return_if_fail (alloc != NULL);
 
1264
#line 224 "/home/cjgomes/builds/pantheon-notify/src/notification.vala"
 
1265
        _tmp0_ = clutter_actor_get_width ((ClutterActor*) self);
 
1266
#line 224 "/home/cjgomes/builds/pantheon-notify/src/notification.vala"
 
1267
        _tmp1_ = _tmp0_;
 
1268
#line 224 "/home/cjgomes/builds/pantheon-notify/src/notification.vala"
 
1269
        _tmp2_ = clutter_actor_get_height ((ClutterActor*) self);
 
1270
#line 224 "/home/cjgomes/builds/pantheon-notify/src/notification.vala"
 
1271
        _tmp3_ = _tmp2_;
 
1272
#line 224 "/home/cjgomes/builds/pantheon-notify/src/notification.vala"
 
1273
        _tmp4_ = granite_drawing_buffer_surface_new ((gint) _tmp1_, (gint) _tmp3_);
 
1274
#line 224 "/home/cjgomes/builds/pantheon-notify/src/notification.vala"
 
1275
        _g_object_unref0 (self->priv->buffer);
 
1276
#line 224 "/home/cjgomes/builds/pantheon-notify/src/notification.vala"
 
1277
        self->priv->buffer = _tmp4_;
 
1278
#line 225 "/home/cjgomes/builds/pantheon-notify/src/notification.vala"
 
1279
        _tmp5_ = self->priv->buffer;
 
1280
#line 225 "/home/cjgomes/builds/pantheon-notify/src/notification.vala"
 
1281
        _tmp6_ = granite_drawing_buffer_surface_get_context (_tmp5_);
 
1282
#line 225 "/home/cjgomes/builds/pantheon-notify/src/notification.vala"
 
1283
        _tmp7_ = _tmp6_;
 
1284
#line 225 "/home/cjgomes/builds/pantheon-notify/src/notification.vala"
 
1285
        _tmp8_ = clutter_actor_get_width ((ClutterActor*) self);
 
1286
#line 225 "/home/cjgomes/builds/pantheon-notify/src/notification.vala"
 
1287
        _tmp9_ = _tmp8_;
 
1288
#line 225 "/home/cjgomes/builds/pantheon-notify/src/notification.vala"
 
1289
        _tmp10_ = clutter_actor_get_height ((ClutterActor*) self);
 
1290
#line 225 "/home/cjgomes/builds/pantheon-notify/src/notification.vala"
 
1291
        _tmp11_ = _tmp10_;
 
1292
#line 225 "/home/cjgomes/builds/pantheon-notify/src/notification.vala"
 
1293
        granite_drawing_utilities_cairo_rounded_rectangle (_tmp7_, (gdouble) SHADOW, (gdouble) SHADOW, (gdouble) (_tmp9_ - (2 * SHADOW)), (gdouble) (_tmp11_ - (2 * SHADOW)), (gdouble) 7);
 
1294
#line 227 "/home/cjgomes/builds/pantheon-notify/src/notification.vala"
 
1295
        _tmp12_ = self->priv->buffer;
 
1296
#line 227 "/home/cjgomes/builds/pantheon-notify/src/notification.vala"
 
1297
        _tmp13_ = granite_drawing_buffer_surface_get_context (_tmp12_);
 
1298
#line 227 "/home/cjgomes/builds/pantheon-notify/src/notification.vala"
 
1299
        _tmp14_ = _tmp13_;
 
1300
#line 227 "/home/cjgomes/builds/pantheon-notify/src/notification.vala"
 
1301
        cairo_set_source_rgba (_tmp14_, (gdouble) 0, (gdouble) 0, (gdouble) 0, 0.4);
 
1302
#line 228 "/home/cjgomes/builds/pantheon-notify/src/notification.vala"
 
1303
        _tmp15_ = self->priv->buffer;
 
1304
#line 228 "/home/cjgomes/builds/pantheon-notify/src/notification.vala"
 
1305
        _tmp16_ = granite_drawing_buffer_surface_get_context (_tmp15_);
 
1306
#line 228 "/home/cjgomes/builds/pantheon-notify/src/notification.vala"
 
1307
        _tmp17_ = _tmp16_;
 
1308
#line 228 "/home/cjgomes/builds/pantheon-notify/src/notification.vala"
 
1309
        cairo_fill (_tmp17_);
 
1310
#line 229 "/home/cjgomes/builds/pantheon-notify/src/notification.vala"
 
1311
        _tmp18_ = self->priv->buffer;
 
1312
#line 229 "/home/cjgomes/builds/pantheon-notify/src/notification.vala"
 
1313
        granite_drawing_buffer_surface_exponential_blur (_tmp18_, SHADOW / 2);
 
1314
#line 230 "/home/cjgomes/builds/pantheon-notify/src/notification.vala"
 
1315
        _tmp19_ = self->priv->draw_ref;
 
1316
#line 230 "/home/cjgomes/builds/pantheon-notify/src/notification.vala"
 
1317
        _tmp20_ = gtk_widget_get_style_context ((GtkWidget*) _tmp19_);
 
1318
#line 230 "/home/cjgomes/builds/pantheon-notify/src/notification.vala"
 
1319
        _tmp21_ = self->priv->buffer;
 
1320
#line 230 "/home/cjgomes/builds/pantheon-notify/src/notification.vala"
 
1321
        _tmp22_ = granite_drawing_buffer_surface_get_context (_tmp21_);
 
1322
#line 230 "/home/cjgomes/builds/pantheon-notify/src/notification.vala"
 
1323
        _tmp23_ = _tmp22_;
 
1324
#line 230 "/home/cjgomes/builds/pantheon-notify/src/notification.vala"
 
1325
        _tmp24_ = clutter_actor_get_width ((ClutterActor*) self);
 
1326
#line 230 "/home/cjgomes/builds/pantheon-notify/src/notification.vala"
 
1327
        _tmp25_ = _tmp24_;
 
1328
#line 230 "/home/cjgomes/builds/pantheon-notify/src/notification.vala"
 
1329
        _tmp26_ = clutter_actor_get_height ((ClutterActor*) self);
 
1330
#line 230 "/home/cjgomes/builds/pantheon-notify/src/notification.vala"
 
1331
        _tmp27_ = _tmp26_;
 
1332
#line 230 "/home/cjgomes/builds/pantheon-notify/src/notification.vala"
 
1333
        gtk_render_activity (_tmp20_, _tmp23_, (gdouble) SHADOW, (gdouble) SHADOW, (gdouble) (_tmp25_ - (2 * SHADOW)), (gdouble) (_tmp27_ - (2 * SHADOW)));
 
1334
#line 1335 "notification.c"
 
1335
}
 
1336
 
 
1337
 
 
1338
static gpointer _g_variant_ref0 (gpointer self) {
 
1339
#line 246 "/home/cjgomes/builds/pantheon-notify/src/notification.vala"
 
1340
        return self ? g_variant_ref (self) : NULL;
 
1341
#line 1342 "notification.c"
 
1342
}
 
1343
 
 
1344
 
 
1345
static guint8* _vala_array_dup1 (guint8* self, int length) {
 
1346
#line 262 "/home/cjgomes/builds/pantheon-notify/src/notification.vala"
 
1347
        return g_memdup (self, length * sizeof (guint8));
 
1348
#line 1349 "notification.c"
 
1349
}
 
1350
 
 
1351
 
 
1352
void notification_set_pix (Notification* self, GHashTable* hints, const gchar* app, const gchar* icon) {
 
1353
        gboolean _tmp0_ = FALSE;
 
1354
        GHashTable* _tmp1_ = NULL;
 
1355
        gboolean _tmp2_ = FALSE;
 
1356
        gboolean _tmp5_ = FALSE;
 
1357
        GError * _inner_error_ = NULL;
 
1358
#line 234 "/home/cjgomes/builds/pantheon-notify/src/notification.vala"
 
1359
        g_return_if_fail (self != NULL);
 
1360
#line 234 "/home/cjgomes/builds/pantheon-notify/src/notification.vala"
 
1361
        g_return_if_fail (hints != NULL);
 
1362
#line 234 "/home/cjgomes/builds/pantheon-notify/src/notification.vala"
 
1363
        g_return_if_fail (app != NULL);
 
1364
#line 234 "/home/cjgomes/builds/pantheon-notify/src/notification.vala"
 
1365
        g_return_if_fail (icon != NULL);
 
1366
#line 243 "/home/cjgomes/builds/pantheon-notify/src/notification.vala"
 
1367
        _tmp1_ = hints;
 
1368
#line 243 "/home/cjgomes/builds/pantheon-notify/src/notification.vala"
 
1369
        _tmp2_ = g_hash_table_contains (_tmp1_, "image_data");
 
1370
#line 243 "/home/cjgomes/builds/pantheon-notify/src/notification.vala"
 
1371
        if (_tmp2_) {
 
1372
#line 243 "/home/cjgomes/builds/pantheon-notify/src/notification.vala"
 
1373
                _tmp0_ = TRUE;
 
1374
#line 1375 "notification.c"
 
1375
        } else {
 
1376
                GHashTable* _tmp3_ = NULL;
 
1377
                gboolean _tmp4_ = FALSE;
 
1378
#line 243 "/home/cjgomes/builds/pantheon-notify/src/notification.vala"
 
1379
                _tmp3_ = hints;
 
1380
#line 243 "/home/cjgomes/builds/pantheon-notify/src/notification.vala"
 
1381
                _tmp4_ = g_hash_table_contains (_tmp3_, "image-data");
 
1382
#line 243 "/home/cjgomes/builds/pantheon-notify/src/notification.vala"
 
1383
                _tmp0_ = _tmp4_;
 
1384
#line 1385 "notification.c"
 
1385
        }
 
1386
#line 243 "/home/cjgomes/builds/pantheon-notify/src/notification.vala"
 
1387
        _tmp5_ = _tmp0_;
 
1388
#line 243 "/home/cjgomes/builds/pantheon-notify/src/notification.vala"
 
1389
        if (_tmp5_) {
 
1390
#line 1391 "notification.c"
 
1391
                GVariant* image_data = NULL;
 
1392
                GHashTable* _tmp6_ = NULL;
 
1393
                gconstpointer _tmp7_ = NULL;
 
1394
                GVariant* _tmp8_ = NULL;
 
1395
                GVariant* _tmp9_ = NULL;
 
1396
                GVariant* _tmp13_ = NULL;
 
1397
                guchar* dummy_data = NULL;
 
1398
                gint dummy_data_length1 = 0;
 
1399
                gint _dummy_data_size_ = 0;
 
1400
                gboolean has_alpha = FALSE;
 
1401
                gint width = 0;
 
1402
                gint height = 0;
 
1403
                gint rowstride = 0;
 
1404
                gint bits_per_sample = 0;
 
1405
                gint n_channels = 0;
 
1406
                GVariant* _tmp14_ = NULL;
 
1407
                GVariant* pixels = NULL;
 
1408
                GVariant* _tmp15_ = NULL;
 
1409
                GVariant* _tmp16_ = NULL;
 
1410
                guchar* pixel_data = NULL;
 
1411
                GVariant* _tmp17_ = NULL;
 
1412
                void* _tmp18_ = NULL;
 
1413
                gint pixel_data_length1 = 0;
 
1414
                gint _pixel_data_size_ = 0;
 
1415
                GdkPixbuf* pix = NULL;
 
1416
                guchar* _tmp19_ = NULL;
 
1417
                gint _tmp19__length1 = 0;
 
1418
                guint8* _tmp20_ = NULL;
 
1419
                gint _tmp20__length1 = 0;
 
1420
                gboolean _tmp21_ = FALSE;
 
1421
                gint _tmp22_ = 0;
 
1422
                gint _tmp23_ = 0;
 
1423
                gint _tmp24_ = 0;
 
1424
                gint _tmp25_ = 0;
 
1425
                GdkPixbuf* _tmp26_ = NULL;
 
1426
                GdkPixbuf* scaled_pix = NULL;
 
1427
                GdkPixbuf* _tmp27_ = NULL;
 
1428
                GdkPixbuf* _tmp28_ = NULL;
 
1429
#line 244 "/home/cjgomes/builds/pantheon-notify/src/notification.vala"
 
1430
                g_debug ("notification.vala:244: Using image_data");
 
1431
#line 246 "/home/cjgomes/builds/pantheon-notify/src/notification.vala"
 
1432
                _tmp6_ = hints;
 
1433
#line 246 "/home/cjgomes/builds/pantheon-notify/src/notification.vala"
 
1434
                _tmp7_ = g_hash_table_lookup (_tmp6_, "image_data");
 
1435
#line 246 "/home/cjgomes/builds/pantheon-notify/src/notification.vala"
 
1436
                _tmp8_ = _g_variant_ref0 ((GVariant*) _tmp7_);
 
1437
#line 246 "/home/cjgomes/builds/pantheon-notify/src/notification.vala"
 
1438
                image_data = _tmp8_;
 
1439
#line 247 "/home/cjgomes/builds/pantheon-notify/src/notification.vala"
 
1440
                _tmp9_ = image_data;
 
1441
#line 247 "/home/cjgomes/builds/pantheon-notify/src/notification.vala"
 
1442
                if (_tmp9_ == NULL) {
 
1443
#line 1444 "notification.c"
 
1444
                        GHashTable* _tmp10_ = NULL;
 
1445
                        gconstpointer _tmp11_ = NULL;
 
1446
                        GVariant* _tmp12_ = NULL;
 
1447
#line 248 "/home/cjgomes/builds/pantheon-notify/src/notification.vala"
 
1448
                        _tmp10_ = hints;
 
1449
#line 248 "/home/cjgomes/builds/pantheon-notify/src/notification.vala"
 
1450
                        _tmp11_ = g_hash_table_lookup (_tmp10_, "image-data");
 
1451
#line 248 "/home/cjgomes/builds/pantheon-notify/src/notification.vala"
 
1452
                        _tmp12_ = _g_variant_ref0 ((GVariant*) _tmp11_);
 
1453
#line 248 "/home/cjgomes/builds/pantheon-notify/src/notification.vala"
 
1454
                        _g_variant_unref0 (image_data);
 
1455
#line 248 "/home/cjgomes/builds/pantheon-notify/src/notification.vala"
 
1456
                        image_data = _tmp12_;
 
1457
#line 1458 "notification.c"
 
1458
                }
 
1459
#line 250 "/home/cjgomes/builds/pantheon-notify/src/notification.vala"
 
1460
                _tmp13_ = image_data;
 
1461
#line 250 "/home/cjgomes/builds/pantheon-notify/src/notification.vala"
 
1462
                g_return_if_fail (_tmp13_ != NULL);
 
1463
#line 256 "/home/cjgomes/builds/pantheon-notify/src/notification.vala"
 
1464
                _tmp14_ = image_data;
 
1465
#line 256 "/home/cjgomes/builds/pantheon-notify/src/notification.vala"
 
1466
                g_variant_get (_tmp14_, "(iiibiiay)", &width, &height, &rowstride, &has_alpha, &bits_per_sample, &n_channels, &dummy_data, NULL);
 
1467
#line 259 "/home/cjgomes/builds/pantheon-notify/src/notification.vala"
 
1468
                _tmp15_ = image_data;
 
1469
#line 259 "/home/cjgomes/builds/pantheon-notify/src/notification.vala"
 
1470
                _tmp16_ = g_variant_get_child_value (_tmp15_, (gsize) 6);
 
1471
#line 259 "/home/cjgomes/builds/pantheon-notify/src/notification.vala"
 
1472
                pixels = _tmp16_;
 
1473
#line 260 "/home/cjgomes/builds/pantheon-notify/src/notification.vala"
 
1474
                _tmp17_ = pixels;
 
1475
#line 260 "/home/cjgomes/builds/pantheon-notify/src/notification.vala"
 
1476
                _tmp18_ = g_variant_get_data (_tmp17_);
 
1477
#line 260 "/home/cjgomes/builds/pantheon-notify/src/notification.vala"
 
1478
                pixel_data = (guchar*) _tmp18_;
 
1479
#line 260 "/home/cjgomes/builds/pantheon-notify/src/notification.vala"
 
1480
                pixel_data_length1 = -1;
 
1481
#line 260 "/home/cjgomes/builds/pantheon-notify/src/notification.vala"
 
1482
                _pixel_data_size_ = pixel_data_length1;
 
1483
#line 262 "/home/cjgomes/builds/pantheon-notify/src/notification.vala"
 
1484
                _tmp19_ = pixel_data;
 
1485
#line 262 "/home/cjgomes/builds/pantheon-notify/src/notification.vala"
 
1486
                _tmp19__length1 = pixel_data_length1;
 
1487
#line 262 "/home/cjgomes/builds/pantheon-notify/src/notification.vala"
 
1488
                _tmp20_ = (_tmp19_ != NULL) ? _vala_array_dup1 (_tmp19_, _tmp19__length1) : ((gpointer) _tmp19_);
 
1489
#line 262 "/home/cjgomes/builds/pantheon-notify/src/notification.vala"
 
1490
                _tmp20__length1 = _tmp19__length1;
 
1491
#line 262 "/home/cjgomes/builds/pantheon-notify/src/notification.vala"
 
1492
                _tmp21_ = has_alpha;
 
1493
#line 262 "/home/cjgomes/builds/pantheon-notify/src/notification.vala"
 
1494
                _tmp22_ = bits_per_sample;
 
1495
#line 262 "/home/cjgomes/builds/pantheon-notify/src/notification.vala"
 
1496
                _tmp23_ = width;
 
1497
#line 262 "/home/cjgomes/builds/pantheon-notify/src/notification.vala"
 
1498
                _tmp24_ = height;
 
1499
#line 262 "/home/cjgomes/builds/pantheon-notify/src/notification.vala"
 
1500
                _tmp25_ = rowstride;
 
1501
#line 262 "/home/cjgomes/builds/pantheon-notify/src/notification.vala"
 
1502
                _tmp26_ = gdk_pixbuf_new_from_data (_tmp20_, GDK_COLORSPACE_RGB, _tmp21_, _tmp22_, _tmp23_, _tmp24_, _tmp25_, (GdkPixbufDestroyNotify) NULL, NULL);
 
1503
#line 262 "/home/cjgomes/builds/pantheon-notify/src/notification.vala"
 
1504
                pix = _tmp26_;
 
1505
#line 265 "/home/cjgomes/builds/pantheon-notify/src/notification.vala"
 
1506
                _tmp27_ = pix;
 
1507
#line 265 "/home/cjgomes/builds/pantheon-notify/src/notification.vala"
 
1508
                _tmp28_ = gdk_pixbuf_scale_simple (_tmp27_, 48, 48, GDK_INTERP_HYPER);
 
1509
#line 265 "/home/cjgomes/builds/pantheon-notify/src/notification.vala"
 
1510
                scaled_pix = _tmp28_;
 
1511
#line 1512 "notification.c"
 
1512
                {
 
1513
                        GtkClutterTexture* _tmp29_ = NULL;
 
1514
                        GdkPixbuf* _tmp30_ = NULL;
 
1515
#line 268 "/home/cjgomes/builds/pantheon-notify/src/notification.vala"
 
1516
                        _tmp29_ = self->priv->tex;
 
1517
#line 268 "/home/cjgomes/builds/pantheon-notify/src/notification.vala"
 
1518
                        _tmp30_ = scaled_pix;
 
1519
#line 268 "/home/cjgomes/builds/pantheon-notify/src/notification.vala"
 
1520
                        gtk_clutter_texture_set_from_pixbuf (_tmp29_, _tmp30_, &_inner_error_);
 
1521
#line 268 "/home/cjgomes/builds/pantheon-notify/src/notification.vala"
 
1522
                        if (_inner_error_ != NULL) {
 
1523
#line 1524 "notification.c"
 
1524
                                goto __catch3_g_error;
 
1525
                        }
 
1526
                }
 
1527
                goto __finally3;
 
1528
                __catch3_g_error:
 
1529
                {
 
1530
                        GError* e = NULL;
 
1531
                        GError* _tmp31_ = NULL;
 
1532
                        const gchar* _tmp32_ = NULL;
 
1533
#line 267 "/home/cjgomes/builds/pantheon-notify/src/notification.vala"
 
1534
                        e = _inner_error_;
 
1535
#line 267 "/home/cjgomes/builds/pantheon-notify/src/notification.vala"
 
1536
                        _inner_error_ = NULL;
 
1537
#line 269 "/home/cjgomes/builds/pantheon-notify/src/notification.vala"
 
1538
                        _tmp31_ = e;
 
1539
#line 269 "/home/cjgomes/builds/pantheon-notify/src/notification.vala"
 
1540
                        _tmp32_ = _tmp31_->message;
 
1541
#line 269 "/home/cjgomes/builds/pantheon-notify/src/notification.vala"
 
1542
                        g_warning ("notification.vala:269: %s", _tmp32_);
 
1543
#line 267 "/home/cjgomes/builds/pantheon-notify/src/notification.vala"
 
1544
                        _g_error_free0 (e);
 
1545
#line 1546 "notification.c"
 
1546
                }
 
1547
                __finally3:
 
1548
#line 267 "/home/cjgomes/builds/pantheon-notify/src/notification.vala"
 
1549
                if (_inner_error_ != NULL) {
 
1550
#line 267 "/home/cjgomes/builds/pantheon-notify/src/notification.vala"
 
1551
                        _g_object_unref0 (scaled_pix);
 
1552
#line 267 "/home/cjgomes/builds/pantheon-notify/src/notification.vala"
 
1553
                        _g_object_unref0 (pix);
 
1554
#line 267 "/home/cjgomes/builds/pantheon-notify/src/notification.vala"
 
1555
                        _g_variant_unref0 (pixels);
 
1556
#line 267 "/home/cjgomes/builds/pantheon-notify/src/notification.vala"
 
1557
                        _g_variant_unref0 (image_data);
 
1558
#line 267 "/home/cjgomes/builds/pantheon-notify/src/notification.vala"
 
1559
                        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);
 
1560
#line 267 "/home/cjgomes/builds/pantheon-notify/src/notification.vala"
 
1561
                        g_clear_error (&_inner_error_);
 
1562
#line 267 "/home/cjgomes/builds/pantheon-notify/src/notification.vala"
 
1563
                        return;
 
1564
#line 1565 "notification.c"
 
1565
                }
 
1566
#line 243 "/home/cjgomes/builds/pantheon-notify/src/notification.vala"
 
1567
                _g_object_unref0 (scaled_pix);
 
1568
#line 243 "/home/cjgomes/builds/pantheon-notify/src/notification.vala"
 
1569
                _g_object_unref0 (pix);
 
1570
#line 243 "/home/cjgomes/builds/pantheon-notify/src/notification.vala"
 
1571
                _g_variant_unref0 (pixels);
 
1572
#line 243 "/home/cjgomes/builds/pantheon-notify/src/notification.vala"
 
1573
                _g_variant_unref0 (image_data);
 
1574
#line 1575 "notification.c"
 
1575
        } else {
 
1576
                GHashTable* _tmp33_ = NULL;
 
1577
                gboolean _tmp34_ = FALSE;
 
1578
#line 270 "/home/cjgomes/builds/pantheon-notify/src/notification.vala"
 
1579
                _tmp33_ = hints;
 
1580
#line 270 "/home/cjgomes/builds/pantheon-notify/src/notification.vala"
 
1581
                _tmp34_ = g_hash_table_contains (_tmp33_, "image-path");
 
1582
#line 270 "/home/cjgomes/builds/pantheon-notify/src/notification.vala"
 
1583
                if (_tmp34_) {
 
1584
#line 1585 "notification.c"
 
1585
                        GHashTable* _tmp35_ = NULL;
 
1586
                        gconstpointer _tmp36_ = NULL;
 
1587
                        const gchar* _tmp37_ = NULL;
 
1588
                        gboolean _tmp38_ = FALSE;
 
1589
#line 271 "/home/cjgomes/builds/pantheon-notify/src/notification.vala"
 
1590
                        g_debug ("notification.vala:271: Using image-path");
 
1591
#line 272 "/home/cjgomes/builds/pantheon-notify/src/notification.vala"
 
1592
                        _tmp35_ = hints;
 
1593
#line 272 "/home/cjgomes/builds/pantheon-notify/src/notification.vala"
 
1594
                        _tmp36_ = g_hash_table_lookup (_tmp35_, "image-path");
 
1595
#line 272 "/home/cjgomes/builds/pantheon-notify/src/notification.vala"
 
1596
                        _tmp37_ = g_variant_get_string ((GVariant*) _tmp36_, NULL);
 
1597
#line 272 "/home/cjgomes/builds/pantheon-notify/src/notification.vala"
 
1598
                        _tmp38_ = g_str_has_prefix (_tmp37_, "file://");
 
1599
#line 272 "/home/cjgomes/builds/pantheon-notify/src/notification.vala"
 
1600
                        if (_tmp38_) {
 
1601
#line 1602 "notification.c"
 
1602
                                GFile* file = NULL;
 
1603
                                GHashTable* _tmp39_ = NULL;
 
1604
                                gconstpointer _tmp40_ = NULL;
 
1605
                                const gchar* _tmp41_ = NULL;
 
1606
                                GFile* _tmp42_ = NULL;
 
1607
                                GtkClutterTexture* _tmp43_ = NULL;
 
1608
                                GFile* _tmp44_ = NULL;
 
1609
                                gchar* _tmp45_ = NULL;
 
1610
                                gchar* _tmp46_ = NULL;
 
1611
#line 273 "/home/cjgomes/builds/pantheon-notify/src/notification.vala"
 
1612
                                _tmp39_ = hints;
 
1613
#line 273 "/home/cjgomes/builds/pantheon-notify/src/notification.vala"
 
1614
                                _tmp40_ = g_hash_table_lookup (_tmp39_, "image-path");
 
1615
#line 273 "/home/cjgomes/builds/pantheon-notify/src/notification.vala"
 
1616
                                _tmp41_ = g_variant_get_string ((GVariant*) _tmp40_, NULL);
 
1617
#line 273 "/home/cjgomes/builds/pantheon-notify/src/notification.vala"
 
1618
                                _tmp42_ = g_file_new_for_uri (_tmp41_);
 
1619
#line 273 "/home/cjgomes/builds/pantheon-notify/src/notification.vala"
 
1620
                                file = _tmp42_;
 
1621
#line 274 "/home/cjgomes/builds/pantheon-notify/src/notification.vala"
 
1622
                                _tmp43_ = self->priv->tex;
 
1623
#line 274 "/home/cjgomes/builds/pantheon-notify/src/notification.vala"
 
1624
                                _tmp44_ = file;
 
1625
#line 274 "/home/cjgomes/builds/pantheon-notify/src/notification.vala"
 
1626
                                _tmp45_ = g_file_get_path (_tmp44_);
 
1627
#line 274 "/home/cjgomes/builds/pantheon-notify/src/notification.vala"
 
1628
                                _tmp46_ = _tmp45_;
 
1629
#line 274 "/home/cjgomes/builds/pantheon-notify/src/notification.vala"
 
1630
                                g_object_set ((ClutterTexture*) _tmp43_, "filename", _tmp46_, NULL);
 
1631
#line 274 "/home/cjgomes/builds/pantheon-notify/src/notification.vala"
 
1632
                                _g_free0 (_tmp46_);
 
1633
#line 272 "/home/cjgomes/builds/pantheon-notify/src/notification.vala"
 
1634
                                _g_object_unref0 (file);
 
1635
#line 1636 "notification.c"
 
1636
                        } else {
 
1637
                                {
 
1638
                                        GtkClutterTexture* _tmp47_ = NULL;
 
1639
                                        GtkImage* _tmp48_ = NULL;
 
1640
                                        GtkImage* _tmp49_ = NULL;
 
1641
                                        GHashTable* _tmp50_ = NULL;
 
1642
                                        gconstpointer _tmp51_ = NULL;
 
1643
                                        const gchar* _tmp52_ = NULL;
 
1644
#line 277 "/home/cjgomes/builds/pantheon-notify/src/notification.vala"
 
1645
                                        _tmp47_ = self->priv->tex;
 
1646
#line 277 "/home/cjgomes/builds/pantheon-notify/src/notification.vala"
 
1647
                                        _tmp48_ = (GtkImage*) gtk_image_new ();
 
1648
#line 277 "/home/cjgomes/builds/pantheon-notify/src/notification.vala"
 
1649
                                        g_object_ref_sink (_tmp48_);
 
1650
#line 277 "/home/cjgomes/builds/pantheon-notify/src/notification.vala"
 
1651
                                        _tmp49_ = _tmp48_;
 
1652
#line 277 "/home/cjgomes/builds/pantheon-notify/src/notification.vala"
 
1653
                                        _tmp50_ = hints;
 
1654
#line 277 "/home/cjgomes/builds/pantheon-notify/src/notification.vala"
 
1655
                                        _tmp51_ = g_hash_table_lookup (_tmp50_, "image-path");
 
1656
#line 277 "/home/cjgomes/builds/pantheon-notify/src/notification.vala"
 
1657
                                        _tmp52_ = g_variant_get_string ((GVariant*) _tmp51_, NULL);
 
1658
#line 277 "/home/cjgomes/builds/pantheon-notify/src/notification.vala"
 
1659
                                        gtk_clutter_texture_set_from_icon_name (_tmp47_, (GtkWidget*) _tmp49_, _tmp52_, GTK_ICON_SIZE_DIALOG, &_inner_error_);
 
1660
#line 277 "/home/cjgomes/builds/pantheon-notify/src/notification.vala"
 
1661
                                        _g_object_unref0 (_tmp49_);
 
1662
#line 277 "/home/cjgomes/builds/pantheon-notify/src/notification.vala"
 
1663
                                        if (_inner_error_ != NULL) {
 
1664
#line 1665 "notification.c"
 
1665
                                                goto __catch4_g_error;
 
1666
                                        }
 
1667
                                }
 
1668
                                goto __finally4;
 
1669
                                __catch4_g_error:
 
1670
                                {
 
1671
                                        GError* e = NULL;
 
1672
                                        GError* _tmp53_ = NULL;
 
1673
                                        const gchar* _tmp54_ = NULL;
 
1674
#line 276 "/home/cjgomes/builds/pantheon-notify/src/notification.vala"
 
1675
                                        e = _inner_error_;
 
1676
#line 276 "/home/cjgomes/builds/pantheon-notify/src/notification.vala"
 
1677
                                        _inner_error_ = NULL;
 
1678
#line 279 "/home/cjgomes/builds/pantheon-notify/src/notification.vala"
 
1679
                                        _tmp53_ = e;
 
1680
#line 279 "/home/cjgomes/builds/pantheon-notify/src/notification.vala"
 
1681
                                        _tmp54_ = _tmp53_->message;
 
1682
#line 279 "/home/cjgomes/builds/pantheon-notify/src/notification.vala"
 
1683
                                        g_warning ("notification.vala:279: %s", _tmp54_);
 
1684
#line 276 "/home/cjgomes/builds/pantheon-notify/src/notification.vala"
 
1685
                                        _g_error_free0 (e);
 
1686
#line 1687 "notification.c"
 
1687
                                }
 
1688
                                __finally4:
 
1689
#line 276 "/home/cjgomes/builds/pantheon-notify/src/notification.vala"
 
1690
                                if (_inner_error_ != NULL) {
 
1691
#line 276 "/home/cjgomes/builds/pantheon-notify/src/notification.vala"
 
1692
                                        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);
 
1693
#line 276 "/home/cjgomes/builds/pantheon-notify/src/notification.vala"
 
1694
                                        g_clear_error (&_inner_error_);
 
1695
#line 276 "/home/cjgomes/builds/pantheon-notify/src/notification.vala"
 
1696
                                        return;
 
1697
#line 1698 "notification.c"
 
1698
                                }
 
1699
                        }
 
1700
                } else {
 
1701
                        const gchar* _tmp55_ = NULL;
 
1702
#line 281 "/home/cjgomes/builds/pantheon-notify/src/notification.vala"
 
1703
                        _tmp55_ = icon;
 
1704
#line 281 "/home/cjgomes/builds/pantheon-notify/src/notification.vala"
 
1705
                        if (g_strcmp0 (_tmp55_, "") != 0) {
 
1706
#line 282 "/home/cjgomes/builds/pantheon-notify/src/notification.vala"
 
1707
                                g_debug ("notification.vala:282: Using app icon");
 
1708
#line 1709 "notification.c"
 
1709
                                {
 
1710
                                        GtkClutterTexture* _tmp56_ = NULL;
 
1711
                                        GtkImage* _tmp57_ = NULL;
 
1712
                                        GtkImage* _tmp58_ = NULL;
 
1713
                                        const gchar* _tmp59_ = NULL;
 
1714
#line 284 "/home/cjgomes/builds/pantheon-notify/src/notification.vala"
 
1715
                                        _tmp56_ = self->priv->tex;
 
1716
#line 284 "/home/cjgomes/builds/pantheon-notify/src/notification.vala"
 
1717
                                        _tmp57_ = (GtkImage*) gtk_image_new ();
 
1718
#line 284 "/home/cjgomes/builds/pantheon-notify/src/notification.vala"
 
1719
                                        g_object_ref_sink (_tmp57_);
 
1720
#line 284 "/home/cjgomes/builds/pantheon-notify/src/notification.vala"
 
1721
                                        _tmp58_ = _tmp57_;
 
1722
#line 284 "/home/cjgomes/builds/pantheon-notify/src/notification.vala"
 
1723
                                        _tmp59_ = icon;
 
1724
#line 284 "/home/cjgomes/builds/pantheon-notify/src/notification.vala"
 
1725
                                        gtk_clutter_texture_set_from_icon_name (_tmp56_, (GtkWidget*) _tmp58_, _tmp59_, GTK_ICON_SIZE_DIALOG, &_inner_error_);
 
1726
#line 284 "/home/cjgomes/builds/pantheon-notify/src/notification.vala"
 
1727
                                        _g_object_unref0 (_tmp58_);
 
1728
#line 284 "/home/cjgomes/builds/pantheon-notify/src/notification.vala"
 
1729
                                        if (_inner_error_ != NULL) {
 
1730
#line 1731 "notification.c"
 
1731
                                                goto __catch5_g_error;
 
1732
                                        }
 
1733
                                }
 
1734
                                goto __finally5;
 
1735
                                __catch5_g_error:
 
1736
                                {
 
1737
                                        GError* e = NULL;
 
1738
#line 283 "/home/cjgomes/builds/pantheon-notify/src/notification.vala"
 
1739
                                        e = _inner_error_;
 
1740
#line 283 "/home/cjgomes/builds/pantheon-notify/src/notification.vala"
 
1741
                                        _inner_error_ = NULL;
 
1742
#line 1743 "notification.c"
 
1743
                                        {
 
1744
                                                const gchar* _tmp60_ = NULL;
 
1745
                                                GtkClutterTexture* _tmp61_ = NULL;
 
1746
                                                GtkImage* _tmp62_ = NULL;
 
1747
                                                GtkImage* _tmp63_ = NULL;
 
1748
                                                const gchar* _tmp64_ = NULL;
 
1749
#line 287 "/home/cjgomes/builds/pantheon-notify/src/notification.vala"
 
1750
                                                _tmp60_ = icon;
 
1751
#line 287 "/home/cjgomes/builds/pantheon-notify/src/notification.vala"
 
1752
                                                g_debug ("notification.vala:287: Trying stock icon %s\n", _tmp60_);
 
1753
#line 288 "/home/cjgomes/builds/pantheon-notify/src/notification.vala"
 
1754
                                                _tmp61_ = self->priv->tex;
 
1755
#line 288 "/home/cjgomes/builds/pantheon-notify/src/notification.vala"
 
1756
                                                _tmp62_ = (GtkImage*) gtk_image_new ();
 
1757
#line 288 "/home/cjgomes/builds/pantheon-notify/src/notification.vala"
 
1758
                                                g_object_ref_sink (_tmp62_);
 
1759
#line 288 "/home/cjgomes/builds/pantheon-notify/src/notification.vala"
 
1760
                                                _tmp63_ = _tmp62_;
 
1761
#line 288 "/home/cjgomes/builds/pantheon-notify/src/notification.vala"
 
1762
                                                _tmp64_ = icon;
 
1763
#line 288 "/home/cjgomes/builds/pantheon-notify/src/notification.vala"
 
1764
                                                gtk_clutter_texture_set_from_stock (_tmp61_, (GtkWidget*) _tmp63_, _tmp64_, GTK_ICON_SIZE_DIALOG, &_inner_error_);
 
1765
#line 288 "/home/cjgomes/builds/pantheon-notify/src/notification.vala"
 
1766
                                                _g_object_unref0 (_tmp63_);
 
1767
#line 288 "/home/cjgomes/builds/pantheon-notify/src/notification.vala"
 
1768
                                                if (_inner_error_ != NULL) {
 
1769
#line 1770 "notification.c"
 
1770
                                                        goto __catch6_g_error;
 
1771
                                                }
 
1772
                                        }
 
1773
                                        goto __finally6;
 
1774
                                        __catch6_g_error:
 
1775
                                        {
 
1776
                                                GError* e = NULL;
 
1777
#line 286 "/home/cjgomes/builds/pantheon-notify/src/notification.vala"
 
1778
                                                e = _inner_error_;
 
1779
#line 286 "/home/cjgomes/builds/pantheon-notify/src/notification.vala"
 
1780
                                                _inner_error_ = NULL;
 
1781
#line 1782 "notification.c"
 
1782
                                                {
 
1783
                                                        const gchar* _tmp65_ = NULL;
 
1784
                                                        GtkClutterTexture* _tmp66_ = NULL;
 
1785
                                                        const gchar* _tmp67_ = NULL;
 
1786
#line 291 "/home/cjgomes/builds/pantheon-notify/src/notification.vala"
 
1787
                                                        _tmp65_ = icon;
 
1788
#line 291 "/home/cjgomes/builds/pantheon-notify/src/notification.vala"
 
1789
                                                        g_debug ("notification.vala:291: Trying file name %s\n", _tmp65_);
 
1790
#line 292 "/home/cjgomes/builds/pantheon-notify/src/notification.vala"
 
1791
                                                        _tmp66_ = self->priv->tex;
 
1792
#line 292 "/home/cjgomes/builds/pantheon-notify/src/notification.vala"
 
1793
                                                        _tmp67_ = icon;
 
1794
#line 292 "/home/cjgomes/builds/pantheon-notify/src/notification.vala"
 
1795
                                                        clutter_texture_set_from_file ((ClutterTexture*) _tmp66_, _tmp67_, &_inner_error_);
 
1796
#line 292 "/home/cjgomes/builds/pantheon-notify/src/notification.vala"
 
1797
                                                        if (_inner_error_ != NULL) {
 
1798
#line 1799 "notification.c"
 
1799
                                                                goto __catch7_g_error;
 
1800
                                                        }
 
1801
                                                }
 
1802
                                                goto __finally7;
 
1803
                                                __catch7_g_error:
 
1804
                                                {
 
1805
                                                        GError* e = NULL;
 
1806
#line 290 "/home/cjgomes/builds/pantheon-notify/src/notification.vala"
 
1807
                                                        e = _inner_error_;
 
1808
#line 290 "/home/cjgomes/builds/pantheon-notify/src/notification.vala"
 
1809
                                                        _inner_error_ = NULL;
 
1810
#line 1811 "notification.c"
 
1811
                                                        {
 
1812
                                                                const gchar* _tmp68_ = NULL;
 
1813
                                                                GtkClutterTexture* _tmp69_ = NULL;
 
1814
                                                                GtkImage* _tmp70_ = NULL;
 
1815
                                                                GtkImage* _tmp71_ = NULL;
 
1816
                                                                const gchar* _tmp72_ = NULL;
 
1817
#line 295 "/home/cjgomes/builds/pantheon-notify/src/notification.vala"
 
1818
                                                                _tmp68_ = app;
 
1819
#line 295 "/home/cjgomes/builds/pantheon-notify/src/notification.vala"
 
1820
                                                                g_print ("Trying app icon %s\n", _tmp68_);
 
1821
#line 296 "/home/cjgomes/builds/pantheon-notify/src/notification.vala"
 
1822
                                                                _tmp69_ = self->priv->tex;
 
1823
#line 296 "/home/cjgomes/builds/pantheon-notify/src/notification.vala"
 
1824
                                                                _tmp70_ = (GtkImage*) gtk_image_new ();
 
1825
#line 296 "/home/cjgomes/builds/pantheon-notify/src/notification.vala"
 
1826
                                                                g_object_ref_sink (_tmp70_);
 
1827
#line 296 "/home/cjgomes/builds/pantheon-notify/src/notification.vala"
 
1828
                                                                _tmp71_ = _tmp70_;
 
1829
#line 296 "/home/cjgomes/builds/pantheon-notify/src/notification.vala"
 
1830
                                                                _tmp72_ = app;
 
1831
#line 296 "/home/cjgomes/builds/pantheon-notify/src/notification.vala"
 
1832
                                                                gtk_clutter_texture_set_from_icon_name (_tmp69_, (GtkWidget*) _tmp71_, _tmp72_, GTK_ICON_SIZE_DIALOG, &_inner_error_);
 
1833
#line 296 "/home/cjgomes/builds/pantheon-notify/src/notification.vala"
 
1834
                                                                _g_object_unref0 (_tmp71_);
 
1835
#line 296 "/home/cjgomes/builds/pantheon-notify/src/notification.vala"
 
1836
                                                                if (_inner_error_ != NULL) {
 
1837
#line 1838 "notification.c"
 
1838
                                                                        goto __catch8_g_error;
 
1839
                                                                }
 
1840
                                                        }
 
1841
                                                        goto __finally8;
 
1842
                                                        __catch8_g_error:
 
1843
                                                        {
 
1844
                                                                GError* e = NULL;
 
1845
                                                                GError* _tmp73_ = NULL;
 
1846
                                                                const gchar* _tmp74_ = NULL;
 
1847
#line 294 "/home/cjgomes/builds/pantheon-notify/src/notification.vala"
 
1848
                                                                e = _inner_error_;
 
1849
#line 294 "/home/cjgomes/builds/pantheon-notify/src/notification.vala"
 
1850
                                                                _inner_error_ = NULL;
 
1851
#line 297 "/home/cjgomes/builds/pantheon-notify/src/notification.vala"
 
1852
                                                                _tmp73_ = e;
 
1853
#line 297 "/home/cjgomes/builds/pantheon-notify/src/notification.vala"
 
1854
                                                                _tmp74_ = _tmp73_->message;
 
1855
#line 297 "/home/cjgomes/builds/pantheon-notify/src/notification.vala"
 
1856
                                                                g_warning ("notification.vala:297: %s", _tmp74_);
 
1857
#line 294 "/home/cjgomes/builds/pantheon-notify/src/notification.vala"
 
1858
                                                                _g_error_free0 (e);
 
1859
#line 1860 "notification.c"
 
1860
                                                        }
 
1861
                                                        __finally8:
 
1862
#line 294 "/home/cjgomes/builds/pantheon-notify/src/notification.vala"
 
1863
                                                        if (_inner_error_ != NULL) {
 
1864
#line 294 "/home/cjgomes/builds/pantheon-notify/src/notification.vala"
 
1865
                                                                _g_error_free0 (e);
 
1866
#line 294 "/home/cjgomes/builds/pantheon-notify/src/notification.vala"
 
1867
                                                                _g_error_free0 (e);
 
1868
#line 294 "/home/cjgomes/builds/pantheon-notify/src/notification.vala"
 
1869
                                                                _g_error_free0 (e);
 
1870
#line 294 "/home/cjgomes/builds/pantheon-notify/src/notification.vala"
 
1871
                                                                _g_error_free0 (e);
 
1872
#line 294 "/home/cjgomes/builds/pantheon-notify/src/notification.vala"
 
1873
                                                                g_critical ("file %s: line %d: unexpected error: %s (%s, %d)", __FILE__, __LINE__, _inner_error_->message, g_quark_to_string (_inner_error_->domain), _inner_error_->code);
 
1874
#line 294 "/home/cjgomes/builds/pantheon-notify/src/notification.vala"
 
1875
                                                                g_clear_error (&_inner_error_);
 
1876
#line 294 "/home/cjgomes/builds/pantheon-notify/src/notification.vala"
 
1877
                                                                return;
 
1878
#line 1879 "notification.c"
 
1879
                                                        }
 
1880
#line 290 "/home/cjgomes/builds/pantheon-notify/src/notification.vala"
 
1881
                                                        _g_error_free0 (e);
 
1882
#line 1883 "notification.c"
 
1883
                                                }
 
1884
                                                __finally7:
 
1885
#line 290 "/home/cjgomes/builds/pantheon-notify/src/notification.vala"
 
1886
                                                if (_inner_error_ != NULL) {
 
1887
#line 290 "/home/cjgomes/builds/pantheon-notify/src/notification.vala"
 
1888
                                                        _g_error_free0 (e);
 
1889
#line 290 "/home/cjgomes/builds/pantheon-notify/src/notification.vala"
 
1890
                                                        _g_error_free0 (e);
 
1891
#line 290 "/home/cjgomes/builds/pantheon-notify/src/notification.vala"
 
1892
                                                        _g_error_free0 (e);
 
1893
#line 290 "/home/cjgomes/builds/pantheon-notify/src/notification.vala"
 
1894
                                                        g_critical ("file %s: line %d: unexpected error: %s (%s, %d)", __FILE__, __LINE__, _inner_error_->message, g_quark_to_string (_inner_error_->domain), _inner_error_->code);
 
1895
#line 290 "/home/cjgomes/builds/pantheon-notify/src/notification.vala"
 
1896
                                                        g_clear_error (&_inner_error_);
 
1897
#line 290 "/home/cjgomes/builds/pantheon-notify/src/notification.vala"
 
1898
                                                        return;
 
1899
#line 1900 "notification.c"
 
1900
                                                }
 
1901
#line 286 "/home/cjgomes/builds/pantheon-notify/src/notification.vala"
 
1902
                                                _g_error_free0 (e);
 
1903
#line 1904 "notification.c"
 
1904
                                        }
 
1905
                                        __finally6:
 
1906
#line 286 "/home/cjgomes/builds/pantheon-notify/src/notification.vala"
 
1907
                                        if (_inner_error_ != NULL) {
 
1908
#line 286 "/home/cjgomes/builds/pantheon-notify/src/notification.vala"
 
1909
                                                _g_error_free0 (e);
 
1910
#line 286 "/home/cjgomes/builds/pantheon-notify/src/notification.vala"
 
1911
                                                _g_error_free0 (e);
 
1912
#line 286 "/home/cjgomes/builds/pantheon-notify/src/notification.vala"
 
1913
                                                g_critical ("file %s: line %d: unexpected error: %s (%s, %d)", __FILE__, __LINE__, _inner_error_->message, g_quark_to_string (_inner_error_->domain), _inner_error_->code);
 
1914
#line 286 "/home/cjgomes/builds/pantheon-notify/src/notification.vala"
 
1915
                                                g_clear_error (&_inner_error_);
 
1916
#line 286 "/home/cjgomes/builds/pantheon-notify/src/notification.vala"
 
1917
                                                return;
 
1918
#line 1919 "notification.c"
 
1919
                                        }
 
1920
#line 283 "/home/cjgomes/builds/pantheon-notify/src/notification.vala"
 
1921
                                        _g_error_free0 (e);
 
1922
#line 1923 "notification.c"
 
1923
                                }
 
1924
                                __finally5:
 
1925
#line 283 "/home/cjgomes/builds/pantheon-notify/src/notification.vala"
 
1926
                                if (_inner_error_ != NULL) {
 
1927
#line 283 "/home/cjgomes/builds/pantheon-notify/src/notification.vala"
 
1928
                                        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);
 
1929
#line 283 "/home/cjgomes/builds/pantheon-notify/src/notification.vala"
 
1930
                                        g_clear_error (&_inner_error_);
 
1931
#line 283 "/home/cjgomes/builds/pantheon-notify/src/notification.vala"
 
1932
                                        return;
 
1933
#line 1934 "notification.c"
 
1934
                                }
 
1935
                        } else {
 
1936
                                {
 
1937
                                        GtkClutterTexture* _tmp75_ = NULL;
 
1938
                                        GtkImage* _tmp76_ = NULL;
 
1939
                                        GtkImage* _tmp77_ = NULL;
 
1940
                                        const gchar* _tmp78_ = NULL;
 
1941
                                        gchar* _tmp79_ = NULL;
 
1942
                                        gchar* _tmp80_ = NULL;
 
1943
#line 303 "/home/cjgomes/builds/pantheon-notify/src/notification.vala"
 
1944
                                        g_debug ("notification.vala:303: Using app name");
 
1945
#line 304 "/home/cjgomes/builds/pantheon-notify/src/notification.vala"
 
1946
                                        _tmp75_ = self->priv->tex;
 
1947
#line 304 "/home/cjgomes/builds/pantheon-notify/src/notification.vala"
 
1948
                                        _tmp76_ = (GtkImage*) gtk_image_new ();
 
1949
#line 304 "/home/cjgomes/builds/pantheon-notify/src/notification.vala"
 
1950
                                        g_object_ref_sink (_tmp76_);
 
1951
#line 304 "/home/cjgomes/builds/pantheon-notify/src/notification.vala"
 
1952
                                        _tmp77_ = _tmp76_;
 
1953
#line 304 "/home/cjgomes/builds/pantheon-notify/src/notification.vala"
 
1954
                                        _tmp78_ = app;
 
1955
#line 304 "/home/cjgomes/builds/pantheon-notify/src/notification.vala"
 
1956
                                        _tmp79_ = g_utf8_strdown (_tmp78_, (gssize) (-1));
 
1957
#line 304 "/home/cjgomes/builds/pantheon-notify/src/notification.vala"
 
1958
                                        _tmp80_ = _tmp79_;
 
1959
#line 304 "/home/cjgomes/builds/pantheon-notify/src/notification.vala"
 
1960
                                        gtk_clutter_texture_set_from_icon_name (_tmp75_, (GtkWidget*) _tmp77_, _tmp80_, GTK_ICON_SIZE_DIALOG, &_inner_error_);
 
1961
#line 304 "/home/cjgomes/builds/pantheon-notify/src/notification.vala"
 
1962
                                        _g_free0 (_tmp80_);
 
1963
#line 304 "/home/cjgomes/builds/pantheon-notify/src/notification.vala"
 
1964
                                        _g_object_unref0 (_tmp77_);
 
1965
#line 304 "/home/cjgomes/builds/pantheon-notify/src/notification.vala"
 
1966
                                        if (_inner_error_ != NULL) {
 
1967
#line 1968 "notification.c"
 
1968
                                                goto __catch9_g_error;
 
1969
                                        }
 
1970
                                }
 
1971
                                goto __finally9;
 
1972
                                __catch9_g_error:
 
1973
                                {
 
1974
                                        GError* e = NULL;
 
1975
#line 302 "/home/cjgomes/builds/pantheon-notify/src/notification.vala"
 
1976
                                        e = _inner_error_;
 
1977
#line 302 "/home/cjgomes/builds/pantheon-notify/src/notification.vala"
 
1978
                                        _inner_error_ = NULL;
 
1979
#line 306 "/home/cjgomes/builds/pantheon-notify/src/notification.vala"
 
1980
                                        g_debug ("notification.vala:306: Using fallback");
 
1981
#line 1982 "notification.c"
 
1982
                                        {
 
1983
                                                GtkClutterTexture* _tmp81_ = NULL;
 
1984
                                                GtkImage* _tmp82_ = NULL;
 
1985
                                                GtkImage* _tmp83_ = NULL;
 
1986
#line 308 "/home/cjgomes/builds/pantheon-notify/src/notification.vala"
 
1987
                                                _tmp81_ = self->priv->tex;
 
1988
#line 308 "/home/cjgomes/builds/pantheon-notify/src/notification.vala"
 
1989
                                                _tmp82_ = (GtkImage*) gtk_image_new ();
 
1990
#line 308 "/home/cjgomes/builds/pantheon-notify/src/notification.vala"
 
1991
                                                g_object_ref_sink (_tmp82_);
 
1992
#line 308 "/home/cjgomes/builds/pantheon-notify/src/notification.vala"
 
1993
                                                _tmp83_ = _tmp82_;
 
1994
#line 308 "/home/cjgomes/builds/pantheon-notify/src/notification.vala"
 
1995
                                                gtk_clutter_texture_set_from_icon_name (_tmp81_, (GtkWidget*) _tmp83_, "dialog-information", GTK_ICON_SIZE_DIALOG, &_inner_error_);
 
1996
#line 308 "/home/cjgomes/builds/pantheon-notify/src/notification.vala"
 
1997
                                                _g_object_unref0 (_tmp83_);
 
1998
#line 308 "/home/cjgomes/builds/pantheon-notify/src/notification.vala"
 
1999
                                                if (_inner_error_ != NULL) {
 
2000
#line 2001 "notification.c"
 
2001
                                                        goto __catch10_g_error;
 
2002
                                                }
 
2003
                                        }
 
2004
                                        goto __finally10;
 
2005
                                        __catch10_g_error:
 
2006
                                        {
 
2007
                                                GError* e = NULL;
 
2008
                                                GError* _tmp84_ = NULL;
 
2009
                                                const gchar* _tmp85_ = NULL;
 
2010
#line 307 "/home/cjgomes/builds/pantheon-notify/src/notification.vala"
 
2011
                                                e = _inner_error_;
 
2012
#line 307 "/home/cjgomes/builds/pantheon-notify/src/notification.vala"
 
2013
                                                _inner_error_ = NULL;
 
2014
#line 309 "/home/cjgomes/builds/pantheon-notify/src/notification.vala"
 
2015
                                                _tmp84_ = e;
 
2016
#line 309 "/home/cjgomes/builds/pantheon-notify/src/notification.vala"
 
2017
                                                _tmp85_ = _tmp84_->message;
 
2018
#line 309 "/home/cjgomes/builds/pantheon-notify/src/notification.vala"
 
2019
                                                g_warning ("notification.vala:309: %s", _tmp85_);
 
2020
#line 307 "/home/cjgomes/builds/pantheon-notify/src/notification.vala"
 
2021
                                                _g_error_free0 (e);
 
2022
#line 2023 "notification.c"
 
2023
                                        }
 
2024
                                        __finally10:
 
2025
#line 307 "/home/cjgomes/builds/pantheon-notify/src/notification.vala"
 
2026
                                        if (_inner_error_ != NULL) {
 
2027
#line 307 "/home/cjgomes/builds/pantheon-notify/src/notification.vala"
 
2028
                                                _g_error_free0 (e);
 
2029
#line 307 "/home/cjgomes/builds/pantheon-notify/src/notification.vala"
 
2030
                                                _g_error_free0 (e);
 
2031
#line 307 "/home/cjgomes/builds/pantheon-notify/src/notification.vala"
 
2032
                                                g_critical ("file %s: line %d: unexpected error: %s (%s, %d)", __FILE__, __LINE__, _inner_error_->message, g_quark_to_string (_inner_error_->domain), _inner_error_->code);
 
2033
#line 307 "/home/cjgomes/builds/pantheon-notify/src/notification.vala"
 
2034
                                                g_clear_error (&_inner_error_);
 
2035
#line 307 "/home/cjgomes/builds/pantheon-notify/src/notification.vala"
 
2036
                                                return;
 
2037
#line 2038 "notification.c"
 
2038
                                        }
 
2039
#line 302 "/home/cjgomes/builds/pantheon-notify/src/notification.vala"
 
2040
                                        _g_error_free0 (e);
 
2041
#line 2042 "notification.c"
 
2042
                                }
 
2043
                                __finally9:
 
2044
#line 302 "/home/cjgomes/builds/pantheon-notify/src/notification.vala"
 
2045
                                if (_inner_error_ != NULL) {
 
2046
#line 302 "/home/cjgomes/builds/pantheon-notify/src/notification.vala"
 
2047
                                        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);
 
2048
#line 302 "/home/cjgomes/builds/pantheon-notify/src/notification.vala"
 
2049
                                        g_clear_error (&_inner_error_);
 
2050
#line 302 "/home/cjgomes/builds/pantheon-notify/src/notification.vala"
 
2051
                                        return;
 
2052
#line 2053 "notification.c"
 
2053
                                }
 
2054
                        }
 
2055
                }
 
2056
        }
 
2057
}
 
2058
 
 
2059
 
 
2060
static gboolean __lambda6_ (Notification* self) {
 
2061
        gboolean result = FALSE;
 
2062
#line 320 "/home/cjgomes/builds/pantheon-notify/src/notification.vala"
 
2063
        clutter_actor_animate ((ClutterActor*) self, (gulong) CLUTTER_EASE_OUT_BOUNCE, (guint) 200, "scale-x", 1.0f, "scale-y", 1.0f, NULL);
 
2064
#line 321 "/home/cjgomes/builds/pantheon-notify/src/notification.vala"
 
2065
        result = FALSE;
 
2066
#line 321 "/home/cjgomes/builds/pantheon-notify/src/notification.vala"
 
2067
        return result;
 
2068
#line 2069 "notification.c"
 
2069
}
 
2070
 
 
2071
 
 
2072
static gboolean ___lambda6__gsource_func (gpointer self) {
 
2073
        gboolean result;
 
2074
        result = __lambda6_ (self);
 
2075
#line 319 "/home/cjgomes/builds/pantheon-notify/src/notification.vala"
 
2076
        return result;
 
2077
#line 2078 "notification.c"
 
2078
}
 
2079
 
 
2080
 
 
2081
static void ___lambda5_ (Notification* self) {
 
2082
#line 319 "/home/cjgomes/builds/pantheon-notify/src/notification.vala"
 
2083
        clutter_threads_add_timeout ((guint) 1, ___lambda6__gsource_func, self);
 
2084
#line 2085 "notification.c"
 
2085
}
 
2086
 
 
2087
 
 
2088
static void ____lambda5__clutter_animation_completed (ClutterAnimation* _sender, gpointer self) {
 
2089
#line 317 "/home/cjgomes/builds/pantheon-notify/src/notification.vala"
 
2090
        ___lambda5_ (self);
 
2091
#line 2092 "notification.c"
 
2092
}
 
2093
 
 
2094
 
 
2095
void notification_updated (Notification* self) {
 
2096
        NotificationUrgency _tmp0_ = 0;
 
2097
#line 315 "/home/cjgomes/builds/pantheon-notify/src/notification.vala"
 
2098
        g_return_if_fail (self != NULL);
 
2099
#line 316 "/home/cjgomes/builds/pantheon-notify/src/notification.vala"
 
2100
        _tmp0_ = self->urgency;
 
2101
#line 316 "/home/cjgomes/builds/pantheon-notify/src/notification.vala"
 
2102
        if (_tmp0_ != NOTIFICATION_URGENCY_LOW) {
 
2103
#line 2104 "notification.c"
 
2104
                ClutterAnimation* _tmp1_ = NULL;
 
2105
#line 317 "/home/cjgomes/builds/pantheon-notify/src/notification.vala"
 
2106
                _tmp1_ = clutter_actor_animate ((ClutterActor*) self, (gulong) CLUTTER_EASE_IN_BOUNCE, (guint) 200, "scale-x", 1.3f, "scale-y", 1.3f, NULL);
 
2107
#line 317 "/home/cjgomes/builds/pantheon-notify/src/notification.vala"
 
2108
                g_signal_connect_object (_tmp1_, "completed", (GCallback) ____lambda5__clutter_animation_completed, self, 0);
 
2109
#line 2110 "notification.c"
 
2110
        }
 
2111
}
 
2112
 
 
2113
 
 
2114
void notification_set_text (Notification* self, const gchar* name, const gchar* body) {
 
2115
        ClutterText* _tmp0_ = NULL;
 
2116
        const gchar* _tmp1_ = NULL;
 
2117
        ClutterText* _tmp2_ = NULL;
 
2118
        const gchar* _tmp3_ = NULL;
 
2119
        ClutterText* _tmp4_ = NULL;
 
2120
#line 327 "/home/cjgomes/builds/pantheon-notify/src/notification.vala"
 
2121
        g_return_if_fail (self != NULL);
 
2122
#line 327 "/home/cjgomes/builds/pantheon-notify/src/notification.vala"
 
2123
        g_return_if_fail (name != NULL);
 
2124
#line 327 "/home/cjgomes/builds/pantheon-notify/src/notification.vala"
 
2125
        g_return_if_fail (body != NULL);
 
2126
#line 328 "/home/cjgomes/builds/pantheon-notify/src/notification.vala"
 
2127
        _tmp0_ = self->priv->title;
 
2128
#line 328 "/home/cjgomes/builds/pantheon-notify/src/notification.vala"
 
2129
        _tmp1_ = name;
 
2130
#line 328 "/home/cjgomes/builds/pantheon-notify/src/notification.vala"
 
2131
        clutter_text_set_text (_tmp0_, _tmp1_);
 
2132
#line 329 "/home/cjgomes/builds/pantheon-notify/src/notification.vala"
 
2133
        _tmp2_ = self->priv->text;
 
2134
#line 329 "/home/cjgomes/builds/pantheon-notify/src/notification.vala"
 
2135
        _tmp3_ = body;
 
2136
#line 329 "/home/cjgomes/builds/pantheon-notify/src/notification.vala"
 
2137
        clutter_text_set_text (_tmp2_, _tmp3_);
 
2138
#line 330 "/home/cjgomes/builds/pantheon-notify/src/notification.vala"
 
2139
        _tmp4_ = self->priv->text;
 
2140
#line 330 "/home/cjgomes/builds/pantheon-notify/src/notification.vala"
 
2141
        clutter_text_set_use_markup (_tmp4_, TRUE);
 
2142
#line 2143 "notification.c"
 
2143
}
 
2144
 
 
2145
 
 
2146
static void _notification_done_clutter_animation_completed (ClutterAnimation* _sender, gpointer self) {
 
2147
#line 341 "/home/cjgomes/builds/pantheon-notify/src/notification.vala"
 
2148
        notification_done (self);
 
2149
#line 2150 "notification.c"
 
2150
}
 
2151
 
 
2152
 
 
2153
void notification_close (Notification* self, gboolean fast_close) {
 
2154
        ClutterAnimation* a = NULL;
 
2155
        gboolean _tmp0_ = FALSE;
 
2156
        ClutterAnimation* _tmp5_ = NULL;
 
2157
#line 333 "/home/cjgomes/builds/pantheon-notify/src/notification.vala"
 
2158
        g_return_if_fail (self != NULL);
 
2159
#line 334 "/home/cjgomes/builds/pantheon-notify/src/notification.vala"
 
2160
        self->priv->block_anim = TRUE;
 
2161
#line 336 "/home/cjgomes/builds/pantheon-notify/src/notification.vala"
 
2162
        _tmp0_ = fast_close;
 
2163
#line 336 "/home/cjgomes/builds/pantheon-notify/src/notification.vala"
 
2164
        if (!_tmp0_) {
 
2165
#line 2166 "notification.c"
 
2166
                ClutterAnimation* _tmp1_ = NULL;
 
2167
                ClutterAnimation* _tmp2_ = NULL;
 
2168
#line 337 "/home/cjgomes/builds/pantheon-notify/src/notification.vala"
 
2169
                _tmp1_ = clutter_actor_animate ((ClutterActor*) self, (gulong) CLUTTER_EASE_OUT_QUAD, (guint) 400, "opacity", 0, "height", 30.0f, NULL);
 
2170
#line 337 "/home/cjgomes/builds/pantheon-notify/src/notification.vala"
 
2171
                _tmp2_ = _g_object_ref0 (_tmp1_);
 
2172
#line 337 "/home/cjgomes/builds/pantheon-notify/src/notification.vala"
 
2173
                _g_object_unref0 (a);
 
2174
#line 337 "/home/cjgomes/builds/pantheon-notify/src/notification.vala"
 
2175
                a = _tmp2_;
 
2176
#line 2177 "notification.c"
 
2177
        } else {
 
2178
                ClutterAnimation* _tmp3_ = NULL;
 
2179
                ClutterAnimation* _tmp4_ = NULL;
 
2180
#line 339 "/home/cjgomes/builds/pantheon-notify/src/notification.vala"
 
2181
                _tmp3_ = clutter_actor_animate ((ClutterActor*) self, (gulong) CLUTTER_EASE_IN_QUAD, (guint) 200, "scale-x", 0.0f, "scale-y", 0.0f, "height", 30.0f, NULL);
 
2182
#line 339 "/home/cjgomes/builds/pantheon-notify/src/notification.vala"
 
2183
                _tmp4_ = _g_object_ref0 (_tmp3_);
 
2184
#line 339 "/home/cjgomes/builds/pantheon-notify/src/notification.vala"
 
2185
                _g_object_unref0 (a);
 
2186
#line 339 "/home/cjgomes/builds/pantheon-notify/src/notification.vala"
 
2187
                a = _tmp4_;
 
2188
#line 2189 "notification.c"
 
2189
        }
 
2190
#line 341 "/home/cjgomes/builds/pantheon-notify/src/notification.vala"
 
2191
        _tmp5_ = a;
 
2192
#line 341 "/home/cjgomes/builds/pantheon-notify/src/notification.vala"
 
2193
        g_signal_connect_object (_tmp5_, "completed", (GCallback) _notification_done_clutter_animation_completed, self, 0);
 
2194
#line 333 "/home/cjgomes/builds/pantheon-notify/src/notification.vala"
 
2195
        _g_object_unref0 (a);
 
2196
#line 2197 "notification.c"
 
2197
}
 
2198
 
 
2199
 
 
2200
static void notification_done (Notification* self) {
 
2201
        NotifyServer* _tmp0_ = NULL;
 
2202
#line 343 "/home/cjgomes/builds/pantheon-notify/src/notification.vala"
 
2203
        g_return_if_fail (self != NULL);
 
2204
#line 345 "/home/cjgomes/builds/pantheon-notify/src/notification.vala"
 
2205
        clutter_actor_destroy ((ClutterActor*) self);
 
2206
#line 346 "/home/cjgomes/builds/pantheon-notify/src/notification.vala"
 
2207
        _tmp0_ = self->priv->server;
 
2208
#line 346 "/home/cjgomes/builds/pantheon-notify/src/notification.vala"
 
2209
        notify_server_update_input_shape (_tmp0_);
 
2210
#line 2211 "notification.c"
 
2211
}
 
2212
 
 
2213
 
 
2214
static void notification_class_init (NotificationClass * klass) {
 
2215
#line 2 "/home/cjgomes/builds/pantheon-notify/src/notification.vala"
 
2216
        notification_parent_class = g_type_class_peek_parent (klass);
 
2217
#line 2 "/home/cjgomes/builds/pantheon-notify/src/notification.vala"
 
2218
        g_type_class_add_private (klass, sizeof (NotificationPrivate));
 
2219
#line 2 "/home/cjgomes/builds/pantheon-notify/src/notification.vala"
 
2220
        CLUTTER_ACTOR_CLASS (klass)->button_release_event = notification_real_button_release_event;
 
2221
#line 2 "/home/cjgomes/builds/pantheon-notify/src/notification.vala"
 
2222
        CLUTTER_ACTOR_CLASS (klass)->leave_event = notification_real_leave_event;
 
2223
#line 2 "/home/cjgomes/builds/pantheon-notify/src/notification.vala"
 
2224
        CLUTTER_ACTOR_CLASS (klass)->enter_event = notification_real_enter_event;
 
2225
#line 2 "/home/cjgomes/builds/pantheon-notify/src/notification.vala"
 
2226
        G_OBJECT_CLASS (klass)->finalize = notification_finalize;
 
2227
#line 2228 "notification.c"
 
2228
}
 
2229
 
 
2230
 
 
2231
static void notification_instance_init (Notification * self) {
 
2232
#line 2 "/home/cjgomes/builds/pantheon-notify/src/notification.vala"
 
2233
        self->priv = NOTIFICATION_GET_PRIVATE (self);
 
2234
#line 2235 "notification.c"
 
2235
}
 
2236
 
 
2237
 
 
2238
static void notification_finalize (GObject* obj) {
 
2239
        Notification * self;
 
2240
        guint _tmp0_ = 0U;
 
2241
        ClutterCairoTexture* _tmp1_ = NULL;
 
2242
        guint _tmp2_ = 0U;
 
2243
        ClutterTexture* _tmp3_ = NULL;
 
2244
        guint _tmp4_ = 0U;
 
2245
#line 2 "/home/cjgomes/builds/pantheon-notify/src/notification.vala"
 
2246
        self = G_TYPE_CHECK_INSTANCE_CAST (obj, TYPE_NOTIFICATION, Notification);
 
2247
#line 138 "/home/cjgomes/builds/pantheon-notify/src/notification.vala"
 
2248
        g_signal_parse_name ("allocation-changed", clutter_actor_get_type (), &_tmp0_, NULL, FALSE);
 
2249
#line 138 "/home/cjgomes/builds/pantheon-notify/src/notification.vala"
 
2250
        g_signal_handlers_disconnect_matched ((ClutterActor*) self, G_SIGNAL_MATCH_ID | G_SIGNAL_MATCH_FUNC | G_SIGNAL_MATCH_DATA, _tmp0_, 0, NULL, (GCallback) _notification_on_allocation_changed_clutter_actor_allocation_changed, self);
 
2251
#line 140 "/home/cjgomes/builds/pantheon-notify/src/notification.vala"
 
2252
        _tmp1_ = self->priv->background;
 
2253
#line 140 "/home/cjgomes/builds/pantheon-notify/src/notification.vala"
 
2254
        g_signal_parse_name ("draw", clutter_cairo_texture_get_type (), &_tmp2_, NULL, FALSE);
 
2255
#line 140 "/home/cjgomes/builds/pantheon-notify/src/notification.vala"
 
2256
        g_signal_handlers_disconnect_matched (_tmp1_, G_SIGNAL_MATCH_ID | G_SIGNAL_MATCH_FUNC | G_SIGNAL_MATCH_DATA, _tmp2_, 0, NULL, (GCallback) _notification_draw_background_clutter_cairo_texture_draw, self);
 
2257
#line 141 "/home/cjgomes/builds/pantheon-notify/src/notification.vala"
 
2258
        _tmp3_ = self->priv->closeb;
 
2259
#line 141 "/home/cjgomes/builds/pantheon-notify/src/notification.vala"
 
2260
        g_signal_parse_name ("button-press-event", clutter_actor_get_type (), &_tmp4_, NULL, FALSE);
 
2261
#line 141 "/home/cjgomes/builds/pantheon-notify/src/notification.vala"
 
2262
        g_signal_handlers_disconnect_matched ((ClutterActor*) _tmp3_, G_SIGNAL_MATCH_ID | G_SIGNAL_MATCH_FUNC | G_SIGNAL_MATCH_DATA, _tmp4_, 0, NULL, (GCallback) _notification_on_close_clicked_clutter_actor_button_press_event, self);
 
2263
#line 10 "/home/cjgomes/builds/pantheon-notify/src/notification.vala"
 
2264
        _g_object_unref0 (self->priv->buffer);
 
2265
#line 11 "/home/cjgomes/builds/pantheon-notify/src/notification.vala"
 
2266
        _g_object_unref0 (self->priv->draw_ref);
 
2267
#line 13 "/home/cjgomes/builds/pantheon-notify/src/notification.vala"
 
2268
        _g_object_unref0 (self->priv->closeb);
 
2269
#line 14 "/home/cjgomes/builds/pantheon-notify/src/notification.vala"
 
2270
        _g_object_unref0 (self->priv->background);
 
2271
#line 16 "/home/cjgomes/builds/pantheon-notify/src/notification.vala"
 
2272
        _g_object_unref0 (self->priv->server);
 
2273
#line 25 "/home/cjgomes/builds/pantheon-notify/src/notification.vala"
 
2274
        _g_object_unref0 (self->priv->tex);
 
2275
#line 26 "/home/cjgomes/builds/pantheon-notify/src/notification.vala"
 
2276
        _g_object_unref0 (self->priv->text);
 
2277
#line 27 "/home/cjgomes/builds/pantheon-notify/src/notification.vala"
 
2278
        _g_object_unref0 (self->priv->title);
 
2279
#line 29 "/home/cjgomes/builds/pantheon-notify/src/notification.vala"
 
2280
        _g_object_unref0 (self->app_window);
 
2281
#line 2 "/home/cjgomes/builds/pantheon-notify/src/notification.vala"
 
2282
        G_OBJECT_CLASS (notification_parent_class)->finalize (obj);
 
2283
#line 2284 "notification.c"
 
2284
}
 
2285
 
 
2286
 
 
2287
GType notification_get_type (void) {
 
2288
        static volatile gsize notification_type_id__volatile = 0;
 
2289
        if (g_once_init_enter (&notification_type_id__volatile)) {
 
2290
                static const GTypeInfo g_define_type_info = { sizeof (NotificationClass), (GBaseInitFunc) NULL, (GBaseFinalizeFunc) NULL, (GClassInitFunc) notification_class_init, (GClassFinalizeFunc) NULL, NULL, sizeof (Notification), 0, (GInstanceInitFunc) notification_instance_init, NULL };
 
2291
                GType notification_type_id;
 
2292
                notification_type_id = g_type_register_static (clutter_group_get_type (), "Notification", &g_define_type_info, 0);
 
2293
                g_once_init_leave (&notification_type_id__volatile, notification_type_id);
 
2294
        }
 
2295
        return notification_type_id__volatile;
 
2296
}
 
2297
 
 
2298
 
 
2299