~ubuntu-branches/ubuntu/quantal/gwibber/quantal-proposed

« back to all changes in this revision

Viewing changes to libgwibber/urlshorten.c

  • Committer: Package Import Robot
  • Author(s): Ken VanDine
  • Date: 2012-08-21 17:08:05 UTC
  • mfrom: (1.1.80)
  • Revision ID: package-import@ubuntu.com-20120821170805-e5r3eoccjy7awc0n
Tags: 3.5.3-0ubuntu1
* New upstream release
  - Ported to Ubuntu Online Accounts
  - Fixed all the GTK warnings, thanks to Jeff Licquia
* debian/control
  - Added depends for gir1.2-signon-1.0 to gwibber-service
  - added build depends for libsignon-glib-dev and libaccounts-glib-dev
  - added breaks, conflicts and replaces to handle soname change
* debian/gwibber.install
  - remove gwibber-accounts related files

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
/* urlshorten.c generated by valac 0.16.0, the Vala compiler
 
1
/* urlshorten.c generated by valac 0.16.1, the Vala compiler
2
2
 * generated from urlshorten.vala, do not modify */
3
3
 
4
4
/*
93
93
static const GDBusInterfaceVTable _url_shorten_interface_dbus_interface_vtable = {url_shorten_interface_dbus_interface_method_call, url_shorten_interface_dbus_interface_get_property, url_shorten_interface_dbus_interface_set_property};
94
94
 
95
95
gchar* url_shorten_interface_Shorten (URLShortenInterface* self, const gchar* url, GError** error) {
96
 
#line 24 "/home/ken/src/gwibber/trunk/libgwibber/urlshorten.vala"
 
96
#line 24 "/storage/1/src/gwibber/trunk/libgwibber/urlshorten.vala"
97
97
        g_return_val_if_fail (self != NULL, NULL);
98
 
#line 24 "/home/ken/src/gwibber/trunk/libgwibber/urlshorten.vala"
 
98
#line 24 "/storage/1/src/gwibber/trunk/libgwibber/urlshorten.vala"
99
99
        return URL_SHORTEN_INTERFACE_GET_INTERFACE (self)->Shorten (self, url, error);
100
100
#line 101 "urlshorten.c"
101
101
}
102
102
 
103
103
 
104
104
static void url_shorten_interface_base_init (URLShortenInterfaceIface * iface) {
105
 
#line 23 "/home/ken/src/gwibber/trunk/libgwibber/urlshorten.vala"
 
105
#line 23 "/storage/1/src/gwibber/trunk/libgwibber/urlshorten.vala"
106
106
        static gboolean initialized = FALSE;
107
 
#line 23 "/home/ken/src/gwibber/trunk/libgwibber/urlshorten.vala"
 
107
#line 23 "/storage/1/src/gwibber/trunk/libgwibber/urlshorten.vala"
108
108
        if (!initialized) {
109
 
#line 23 "/home/ken/src/gwibber/trunk/libgwibber/urlshorten.vala"
 
109
#line 23 "/storage/1/src/gwibber/trunk/libgwibber/urlshorten.vala"
110
110
                initialized = TRUE;
111
111
#line 112 "urlshorten.c"
112
112
        }
151
151
        GVariant *_reply;
152
152
        GVariantIter _reply_iter;
153
153
        gchar* _result;
154
 
        GVariant* _tmp55_;
 
154
        GVariant* _tmp48_;
155
155
        G_IO_ERROR;
156
156
        _message = g_dbus_message_new_method_call (g_dbus_proxy_get_name ((GDBusProxy *) self), g_dbus_proxy_get_object_path ((GDBusProxy *) self), "com.Gwibber.URLShorten", "Shorten");
157
157
        g_variant_builder_init (&_arguments_builder, G_VARIANT_TYPE_TUPLE);
169
169
        }
170
170
        _reply = g_dbus_message_get_body (_reply_message);
171
171
        g_variant_iter_init (&_reply_iter, _reply);
172
 
        _tmp55_ = g_variant_iter_next_value (&_reply_iter);
173
 
        _result = g_variant_dup_string (_tmp55_, NULL);
174
 
        g_variant_unref (_tmp55_);
 
172
        _tmp48_ = g_variant_iter_next_value (&_reply_iter);
 
173
        _result = g_variant_dup_string (_tmp48_, NULL);
 
174
        g_variant_unref (_tmp48_);
175
175
        g_object_unref (_reply_message);
176
176
        return _result;
177
177
}
186
186
        GError* error = NULL;
187
187
        GVariantIter _arguments_iter;
188
188
        gchar* url = NULL;
189
 
        GVariant* _tmp56_;
 
189
        GVariant* _tmp49_;
190
190
        GDBusMessage* _reply_message;
191
191
        GVariant* _reply;
192
192
        GVariantBuilder _reply_builder;
193
193
        gchar* result;
194
194
        g_variant_iter_init (&_arguments_iter, parameters);
195
 
        _tmp56_ = g_variant_iter_next_value (&_arguments_iter);
196
 
        url = g_variant_dup_string (_tmp56_, NULL);
197
 
        g_variant_unref (_tmp56_);
 
195
        _tmp49_ = g_variant_iter_next_value (&_arguments_iter);
 
196
        url = g_variant_dup_string (_tmp49_, NULL);
 
197
        g_variant_unref (_tmp49_);
198
198
        result = url_shorten_interface_Shorten (self, url, &error);
199
199
        if (error) {
200
200
                g_dbus_method_invocation_return_gerror (invocation, error);
275
275
gchar* gwibber_url_shorten_shorten (GwibberURLShorten* self, const gchar* url) {
276
276
        gchar* result = NULL;
277
277
        GError * _inner_error_ = NULL;
278
 
#line 66 "/home/ken/src/gwibber/trunk/libgwibber/urlshorten.vala"
 
278
#line 66 "/storage/1/src/gwibber/trunk/libgwibber/urlshorten.vala"
279
279
        g_return_val_if_fail (self != NULL, NULL);
280
 
#line 66 "/home/ken/src/gwibber/trunk/libgwibber/urlshorten.vala"
 
280
#line 66 "/storage/1/src/gwibber/trunk/libgwibber/urlshorten.vala"
281
281
        g_return_val_if_fail (url != NULL, NULL);
282
282
#line 283 "urlshorten.c"
283
283
        {
285
285
                const gchar* _tmp1_;
286
286
                gchar* _tmp2_ = NULL;
287
287
                gchar* _tmp3_;
288
 
#line 70 "/home/ken/src/gwibber/trunk/libgwibber/urlshorten.vala"
 
288
#line 70 "/storage/1/src/gwibber/trunk/libgwibber/urlshorten.vala"
289
289
                _tmp0_ = self->priv->url_service;
290
 
#line 70 "/home/ken/src/gwibber/trunk/libgwibber/urlshorten.vala"
 
290
#line 70 "/storage/1/src/gwibber/trunk/libgwibber/urlshorten.vala"
291
291
                _tmp1_ = url;
292
 
#line 70 "/home/ken/src/gwibber/trunk/libgwibber/urlshorten.vala"
 
292
#line 70 "/storage/1/src/gwibber/trunk/libgwibber/urlshorten.vala"
293
293
                _tmp2_ = url_shorten_interface_Shorten (_tmp0_, _tmp1_, &_inner_error_);
294
 
#line 70 "/home/ken/src/gwibber/trunk/libgwibber/urlshorten.vala"
 
294
#line 70 "/storage/1/src/gwibber/trunk/libgwibber/urlshorten.vala"
295
295
                _tmp3_ = _tmp2_;
296
 
#line 70 "/home/ken/src/gwibber/trunk/libgwibber/urlshorten.vala"
 
296
#line 70 "/storage/1/src/gwibber/trunk/libgwibber/urlshorten.vala"
297
297
                if (_inner_error_ != NULL) {
298
 
#line 70 "/home/ken/src/gwibber/trunk/libgwibber/urlshorten.vala"
 
298
#line 70 "/storage/1/src/gwibber/trunk/libgwibber/urlshorten.vala"
299
299
                        if (_inner_error_->domain == G_IO_ERROR) {
300
300
#line 301 "urlshorten.c"
301
 
                                goto __catch61_g_io_error;
 
301
                                goto __catch52_g_io_error;
302
302
                        }
303
 
#line 70 "/home/ken/src/gwibber/trunk/libgwibber/urlshorten.vala"
 
303
#line 70 "/storage/1/src/gwibber/trunk/libgwibber/urlshorten.vala"
304
304
                        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);
305
 
#line 70 "/home/ken/src/gwibber/trunk/libgwibber/urlshorten.vala"
 
305
#line 70 "/storage/1/src/gwibber/trunk/libgwibber/urlshorten.vala"
306
306
                        g_clear_error (&_inner_error_);
307
 
#line 70 "/home/ken/src/gwibber/trunk/libgwibber/urlshorten.vala"
 
307
#line 70 "/storage/1/src/gwibber/trunk/libgwibber/urlshorten.vala"
308
308
                        return NULL;
309
309
#line 310 "urlshorten.c"
310
310
                }
311
 
#line 70 "/home/ken/src/gwibber/trunk/libgwibber/urlshorten.vala"
 
311
#line 70 "/storage/1/src/gwibber/trunk/libgwibber/urlshorten.vala"
312
312
                result = _tmp3_;
313
 
#line 70 "/home/ken/src/gwibber/trunk/libgwibber/urlshorten.vala"
 
313
#line 70 "/storage/1/src/gwibber/trunk/libgwibber/urlshorten.vala"
314
314
                return result;
315
315
#line 316 "urlshorten.c"
316
316
        }
317
 
        goto __finally61;
318
 
        __catch61_g_io_error:
 
317
        goto __finally52;
 
318
        __catch52_g_io_error:
319
319
        {
320
320
                GError* e = NULL;
321
321
                GError* _tmp4_;
322
322
                const gchar* _tmp5_;
323
323
                gchar* _tmp6_;
324
 
#line 68 "/home/ken/src/gwibber/trunk/libgwibber/urlshorten.vala"
 
324
#line 68 "/storage/1/src/gwibber/trunk/libgwibber/urlshorten.vala"
325
325
                e = _inner_error_;
326
 
#line 68 "/home/ken/src/gwibber/trunk/libgwibber/urlshorten.vala"
 
326
#line 68 "/storage/1/src/gwibber/trunk/libgwibber/urlshorten.vala"
327
327
                _inner_error_ = NULL;
328
 
#line 74 "/home/ken/src/gwibber/trunk/libgwibber/urlshorten.vala"
 
328
#line 74 "/storage/1/src/gwibber/trunk/libgwibber/urlshorten.vala"
329
329
                _tmp4_ = e;
330
 
#line 74 "/home/ken/src/gwibber/trunk/libgwibber/urlshorten.vala"
 
330
#line 74 "/storage/1/src/gwibber/trunk/libgwibber/urlshorten.vala"
331
331
                _tmp5_ = _tmp4_->message;
332
 
#line 74 "/home/ken/src/gwibber/trunk/libgwibber/urlshorten.vala"
 
332
#line 74 "/storage/1/src/gwibber/trunk/libgwibber/urlshorten.vala"
333
333
                g_warning ("urlshorten.vala:74: %s", _tmp5_);
334
 
#line 75 "/home/ken/src/gwibber/trunk/libgwibber/urlshorten.vala"
 
334
#line 75 "/storage/1/src/gwibber/trunk/libgwibber/urlshorten.vala"
335
335
                _tmp6_ = g_strdup ("Failed");
336
 
#line 75 "/home/ken/src/gwibber/trunk/libgwibber/urlshorten.vala"
 
336
#line 75 "/storage/1/src/gwibber/trunk/libgwibber/urlshorten.vala"
337
337
                result = _tmp6_;
338
 
#line 75 "/home/ken/src/gwibber/trunk/libgwibber/urlshorten.vala"
 
338
#line 75 "/storage/1/src/gwibber/trunk/libgwibber/urlshorten.vala"
339
339
                _g_error_free0 (e);
340
 
#line 75 "/home/ken/src/gwibber/trunk/libgwibber/urlshorten.vala"
 
340
#line 75 "/storage/1/src/gwibber/trunk/libgwibber/urlshorten.vala"
341
341
                return result;
342
342
#line 343 "urlshorten.c"
343
343
        }
344
 
        __finally61:
345
 
#line 68 "/home/ken/src/gwibber/trunk/libgwibber/urlshorten.vala"
 
344
        __finally52:
 
345
#line 68 "/storage/1/src/gwibber/trunk/libgwibber/urlshorten.vala"
346
346
        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);
347
 
#line 68 "/home/ken/src/gwibber/trunk/libgwibber/urlshorten.vala"
 
347
#line 68 "/storage/1/src/gwibber/trunk/libgwibber/urlshorten.vala"
348
348
        g_clear_error (&_inner_error_);
349
 
#line 68 "/home/ken/src/gwibber/trunk/libgwibber/urlshorten.vala"
 
349
#line 68 "/storage/1/src/gwibber/trunk/libgwibber/urlshorten.vala"
350
350
        return NULL;
351
351
#line 352 "urlshorten.c"
352
352
}
354
354
 
355
355
void gwibber_url_shorten_url_available (GwibberURLShorten* self, gboolean is_up) {
356
356
        gboolean _tmp0_;
357
 
#line 79 "/home/ken/src/gwibber/trunk/libgwibber/urlshorten.vala"
 
357
#line 79 "/storage/1/src/gwibber/trunk/libgwibber/urlshorten.vala"
358
358
        g_return_if_fail (self != NULL);
359
 
#line 81 "/home/ken/src/gwibber/trunk/libgwibber/urlshorten.vala"
 
359
#line 81 "/storage/1/src/gwibber/trunk/libgwibber/urlshorten.vala"
360
360
        _tmp0_ = is_up;
361
 
#line 81 "/home/ken/src/gwibber/trunk/libgwibber/urlshorten.vala"
 
361
#line 81 "/storage/1/src/gwibber/trunk/libgwibber/urlshorten.vala"
362
362
        g_signal_emit_by_name (self, "is-available", _tmp0_);
363
363
#line 364 "urlshorten.c"
364
364
}
366
366
 
367
367
GwibberURLShorten* gwibber_url_shorten_construct (GType object_type) {
368
368
        GwibberURLShorten * self = NULL;
369
 
#line 29 "/home/ken/src/gwibber/trunk/libgwibber/urlshorten.vala"
 
369
#line 29 "/storage/1/src/gwibber/trunk/libgwibber/urlshorten.vala"
370
370
        self = (GwibberURLShorten*) g_object_new (object_type, NULL);
371
 
#line 29 "/home/ken/src/gwibber/trunk/libgwibber/urlshorten.vala"
 
371
#line 29 "/storage/1/src/gwibber/trunk/libgwibber/urlshorten.vala"
372
372
        return self;
373
373
#line 374 "urlshorten.c"
374
374
}
375
375
 
376
376
 
377
377
GwibberURLShorten* gwibber_url_shorten_new (void) {
378
 
#line 29 "/home/ken/src/gwibber/trunk/libgwibber/urlshorten.vala"
 
378
#line 29 "/storage/1/src/gwibber/trunk/libgwibber/urlshorten.vala"
379
379
        return gwibber_url_shorten_construct (GWIBBER_TYPE_URL_SHORTEN);
380
380
#line 381 "urlshorten.c"
381
381
}
382
382
 
383
383
 
384
384
static void _gwibber_url_shorten_url_available_gwibber_utils_available (GwibberUtils* _sender, gboolean up, gpointer self) {
385
 
#line 54 "/home/ken/src/gwibber/trunk/libgwibber/urlshorten.vala"
 
385
#line 54 "/storage/1/src/gwibber/trunk/libgwibber/urlshorten.vala"
386
386
        gwibber_url_shorten_url_available (self, up);
387
387
#line 388 "urlshorten.c"
388
388
}
393
393
        GObjectClass * parent_class;
394
394
        GwibberURLShorten * self;
395
395
        GError * _inner_error_ = NULL;
396
 
#line 45 "/home/ken/src/gwibber/trunk/libgwibber/urlshorten.vala"
 
396
#line 45 "/storage/1/src/gwibber/trunk/libgwibber/urlshorten.vala"
397
397
        parent_class = G_OBJECT_CLASS (gwibber_url_shorten_parent_class);
398
 
#line 45 "/home/ken/src/gwibber/trunk/libgwibber/urlshorten.vala"
 
398
#line 45 "/storage/1/src/gwibber/trunk/libgwibber/urlshorten.vala"
399
399
        obj = parent_class->constructor (type, n_construct_properties, construct_properties);
400
 
#line 45 "/home/ken/src/gwibber/trunk/libgwibber/urlshorten.vala"
 
400
#line 45 "/storage/1/src/gwibber/trunk/libgwibber/urlshorten.vala"
401
401
        self = GWIBBER_URL_SHORTEN (obj);
402
402
#line 403 "urlshorten.c"
403
403
        {
406
406
                GwibberUtils* _tmp2_;
407
407
                GwibberUtils* _tmp3_;
408
408
                GwibberUtils* _tmp4_;
409
 
#line 49 "/home/ken/src/gwibber/trunk/libgwibber/urlshorten.vala"
 
409
#line 49 "/storage/1/src/gwibber/trunk/libgwibber/urlshorten.vala"
410
410
                _tmp0_ = g_initable_new (TYPE_URL_SHORTEN_INTERFACE_PROXY, NULL, &_inner_error_, "g-flags", 0, "g-name", GWIBBER_URL_SHORTEN_url_name, "g-bus-type", G_BUS_TYPE_SESSION, "g-object-path", GWIBBER_URL_SHORTEN_url_path, "g-interface-name", "com.Gwibber.URLShorten", NULL);
411
 
#line 49 "/home/ken/src/gwibber/trunk/libgwibber/urlshorten.vala"
 
411
#line 49 "/storage/1/src/gwibber/trunk/libgwibber/urlshorten.vala"
412
412
                _tmp1_ = (URLShortenInterface*) _tmp0_;
413
 
#line 49 "/home/ken/src/gwibber/trunk/libgwibber/urlshorten.vala"
 
413
#line 49 "/storage/1/src/gwibber/trunk/libgwibber/urlshorten.vala"
414
414
                if (_inner_error_ != NULL) {
415
 
#line 49 "/home/ken/src/gwibber/trunk/libgwibber/urlshorten.vala"
 
415
#line 49 "/storage/1/src/gwibber/trunk/libgwibber/urlshorten.vala"
416
416
                        if (_inner_error_->domain == G_IO_ERROR) {
417
417
#line 418 "urlshorten.c"
418
 
                                goto __catch62_g_io_error;
 
418
                                goto __catch53_g_io_error;
419
419
                        }
420
 
#line 49 "/home/ken/src/gwibber/trunk/libgwibber/urlshorten.vala"
 
420
#line 49 "/storage/1/src/gwibber/trunk/libgwibber/urlshorten.vala"
421
421
                        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);
422
 
#line 49 "/home/ken/src/gwibber/trunk/libgwibber/urlshorten.vala"
 
422
#line 49 "/storage/1/src/gwibber/trunk/libgwibber/urlshorten.vala"
423
423
                        g_clear_error (&_inner_error_);
424
424
#line 425 "urlshorten.c"
425
425
                }
426
 
#line 49 "/home/ken/src/gwibber/trunk/libgwibber/urlshorten.vala"
 
426
#line 49 "/storage/1/src/gwibber/trunk/libgwibber/urlshorten.vala"
427
427
                _g_object_unref0 (self->priv->url_service);
428
 
#line 49 "/home/ken/src/gwibber/trunk/libgwibber/urlshorten.vala"
 
428
#line 49 "/storage/1/src/gwibber/trunk/libgwibber/urlshorten.vala"
429
429
                self->priv->url_service = _tmp1_;
430
 
#line 52 "/home/ken/src/gwibber/trunk/libgwibber/urlshorten.vala"
 
430
#line 52 "/storage/1/src/gwibber/trunk/libgwibber/urlshorten.vala"
431
431
                _tmp2_ = gwibber_utils_new ();
432
 
#line 52 "/home/ken/src/gwibber/trunk/libgwibber/urlshorten.vala"
 
432
#line 52 "/storage/1/src/gwibber/trunk/libgwibber/urlshorten.vala"
433
433
                _g_object_unref0 (self->priv->utils);
434
 
#line 52 "/home/ken/src/gwibber/trunk/libgwibber/urlshorten.vala"
 
434
#line 52 "/storage/1/src/gwibber/trunk/libgwibber/urlshorten.vala"
435
435
                self->priv->utils = _tmp2_;
436
 
#line 53 "/home/ken/src/gwibber/trunk/libgwibber/urlshorten.vala"
 
436
#line 53 "/storage/1/src/gwibber/trunk/libgwibber/urlshorten.vala"
437
437
                _tmp3_ = self->priv->utils;
438
 
#line 53 "/home/ken/src/gwibber/trunk/libgwibber/urlshorten.vala"
 
438
#line 53 "/storage/1/src/gwibber/trunk/libgwibber/urlshorten.vala"
439
439
                gwibber_utils_setup (_tmp3_, GWIBBER_URL_SHORTEN_url_name, &_inner_error_);
440
 
#line 53 "/home/ken/src/gwibber/trunk/libgwibber/urlshorten.vala"
 
440
#line 53 "/storage/1/src/gwibber/trunk/libgwibber/urlshorten.vala"
441
441
                if (_inner_error_ != NULL) {
442
 
#line 53 "/home/ken/src/gwibber/trunk/libgwibber/urlshorten.vala"
 
442
#line 53 "/storage/1/src/gwibber/trunk/libgwibber/urlshorten.vala"
443
443
                        if (_inner_error_->domain == G_IO_ERROR) {
444
444
#line 445 "urlshorten.c"
445
 
                                goto __catch62_g_io_error;
 
445
                                goto __catch53_g_io_error;
446
446
                        }
447
 
#line 53 "/home/ken/src/gwibber/trunk/libgwibber/urlshorten.vala"
 
447
#line 53 "/storage/1/src/gwibber/trunk/libgwibber/urlshorten.vala"
448
448
                        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);
449
 
#line 53 "/home/ken/src/gwibber/trunk/libgwibber/urlshorten.vala"
 
449
#line 53 "/storage/1/src/gwibber/trunk/libgwibber/urlshorten.vala"
450
450
                        g_clear_error (&_inner_error_);
451
451
#line 452 "urlshorten.c"
452
452
                }
453
 
#line 54 "/home/ken/src/gwibber/trunk/libgwibber/urlshorten.vala"
 
453
#line 54 "/storage/1/src/gwibber/trunk/libgwibber/urlshorten.vala"
454
454
                _tmp4_ = self->priv->utils;
455
 
#line 54 "/home/ken/src/gwibber/trunk/libgwibber/urlshorten.vala"
 
455
#line 54 "/storage/1/src/gwibber/trunk/libgwibber/urlshorten.vala"
456
456
                g_signal_connect_object (_tmp4_, "available", (GCallback) _gwibber_url_shorten_url_available_gwibber_utils_available, self, 0);
457
457
#line 458 "urlshorten.c"
458
458
        }
459
 
        goto __finally62;
460
 
        __catch62_g_io_error:
 
459
        goto __finally53;
 
460
        __catch53_g_io_error:
461
461
        {
462
462
                GError* e = NULL;
463
463
                GError* _tmp5_;
464
464
                const gchar* _tmp6_;
465
465
                gchar* _tmp7_;
466
466
                gchar* _tmp8_;
467
 
#line 47 "/home/ken/src/gwibber/trunk/libgwibber/urlshorten.vala"
 
467
#line 47 "/storage/1/src/gwibber/trunk/libgwibber/urlshorten.vala"
468
468
                e = _inner_error_;
469
 
#line 47 "/home/ken/src/gwibber/trunk/libgwibber/urlshorten.vala"
 
469
#line 47 "/storage/1/src/gwibber/trunk/libgwibber/urlshorten.vala"
470
470
                _inner_error_ = NULL;
471
 
#line 58 "/home/ken/src/gwibber/trunk/libgwibber/urlshorten.vala"
 
471
#line 58 "/storage/1/src/gwibber/trunk/libgwibber/urlshorten.vala"
472
472
                _tmp5_ = e;
473
 
#line 58 "/home/ken/src/gwibber/trunk/libgwibber/urlshorten.vala"
 
473
#line 58 "/storage/1/src/gwibber/trunk/libgwibber/urlshorten.vala"
474
474
                _tmp6_ = _tmp5_->message;
475
 
#line 58 "/home/ken/src/gwibber/trunk/libgwibber/urlshorten.vala"
 
475
#line 58 "/storage/1/src/gwibber/trunk/libgwibber/urlshorten.vala"
476
476
                _tmp7_ = g_strconcat ("Unable to get Gwibber URLShorten: ", _tmp6_, NULL);
477
 
#line 58 "/home/ken/src/gwibber/trunk/libgwibber/urlshorten.vala"
 
477
#line 58 "/storage/1/src/gwibber/trunk/libgwibber/urlshorten.vala"
478
478
                _tmp8_ = _tmp7_;
479
 
#line 58 "/home/ken/src/gwibber/trunk/libgwibber/urlshorten.vala"
 
479
#line 58 "/storage/1/src/gwibber/trunk/libgwibber/urlshorten.vala"
480
480
                g_warning ("urlshorten.vala:58: %s", _tmp8_);
481
 
#line 58 "/home/ken/src/gwibber/trunk/libgwibber/urlshorten.vala"
 
481
#line 58 "/storage/1/src/gwibber/trunk/libgwibber/urlshorten.vala"
482
482
                _g_free0 (_tmp8_);
483
 
#line 47 "/home/ken/src/gwibber/trunk/libgwibber/urlshorten.vala"
 
483
#line 47 "/storage/1/src/gwibber/trunk/libgwibber/urlshorten.vala"
484
484
                _g_error_free0 (e);
485
485
#line 486 "urlshorten.c"
486
486
        }
487
 
        __finally62:
488
 
#line 47 "/home/ken/src/gwibber/trunk/libgwibber/urlshorten.vala"
 
487
        __finally53:
 
488
#line 47 "/storage/1/src/gwibber/trunk/libgwibber/urlshorten.vala"
489
489
        if (_inner_error_ != NULL) {
490
 
#line 47 "/home/ken/src/gwibber/trunk/libgwibber/urlshorten.vala"
 
490
#line 47 "/storage/1/src/gwibber/trunk/libgwibber/urlshorten.vala"
491
491
                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);
492
 
#line 47 "/home/ken/src/gwibber/trunk/libgwibber/urlshorten.vala"
 
492
#line 47 "/storage/1/src/gwibber/trunk/libgwibber/urlshorten.vala"
493
493
                g_clear_error (&_inner_error_);
494
494
#line 495 "urlshorten.c"
495
495
        }
496
 
#line 45 "/home/ken/src/gwibber/trunk/libgwibber/urlshorten.vala"
 
496
#line 45 "/storage/1/src/gwibber/trunk/libgwibber/urlshorten.vala"
497
497
        return obj;
498
498
#line 499 "urlshorten.c"
499
499
}
500
500
 
501
501
 
502
502
static void gwibber_url_shorten_class_init (GwibberURLShortenClass * klass) {
503
 
#line 29 "/home/ken/src/gwibber/trunk/libgwibber/urlshorten.vala"
 
503
#line 29 "/storage/1/src/gwibber/trunk/libgwibber/urlshorten.vala"
504
504
        gwibber_url_shorten_parent_class = g_type_class_peek_parent (klass);
505
 
#line 29 "/home/ken/src/gwibber/trunk/libgwibber/urlshorten.vala"
 
505
#line 29 "/storage/1/src/gwibber/trunk/libgwibber/urlshorten.vala"
506
506
        g_type_class_add_private (klass, sizeof (GwibberURLShortenPrivate));
507
 
#line 29 "/home/ken/src/gwibber/trunk/libgwibber/urlshorten.vala"
 
507
#line 29 "/storage/1/src/gwibber/trunk/libgwibber/urlshorten.vala"
508
508
        G_OBJECT_CLASS (klass)->constructor = gwibber_url_shorten_constructor;
509
 
#line 29 "/home/ken/src/gwibber/trunk/libgwibber/urlshorten.vala"
 
509
#line 29 "/storage/1/src/gwibber/trunk/libgwibber/urlshorten.vala"
510
510
        G_OBJECT_CLASS (klass)->finalize = gwibber_url_shorten_finalize;
511
511
#line 512 "urlshorten.c"
512
512
        /** 
515
515
        
516
516
                    Emitted when com.Gwibber.URLShorten availability state changes
517
517
        */
518
 
#line 29 "/home/ken/src/gwibber/trunk/libgwibber/urlshorten.vala"
 
518
#line 29 "/storage/1/src/gwibber/trunk/libgwibber/urlshorten.vala"
519
519
        g_signal_new ("is_available", GWIBBER_TYPE_URL_SHORTEN, G_SIGNAL_RUN_LAST, 0, NULL, NULL, g_cclosure_marshal_VOID__BOOLEAN, G_TYPE_NONE, 1, G_TYPE_BOOLEAN);
520
520
#line 521 "urlshorten.c"
521
521
}
522
522
 
523
523
 
524
524
static void gwibber_url_shorten_instance_init (GwibberURLShorten * self) {
525
 
#line 29 "/home/ken/src/gwibber/trunk/libgwibber/urlshorten.vala"
 
525
#line 29 "/storage/1/src/gwibber/trunk/libgwibber/urlshorten.vala"
526
526
        self->priv = GWIBBER_URL_SHORTEN_GET_PRIVATE (self);
527
527
#line 528 "urlshorten.c"
528
528
}
530
530
 
531
531
static void gwibber_url_shorten_finalize (GObject* obj) {
532
532
        GwibberURLShorten * self;
533
 
#line 29 "/home/ken/src/gwibber/trunk/libgwibber/urlshorten.vala"
 
533
#line 29 "/storage/1/src/gwibber/trunk/libgwibber/urlshorten.vala"
534
534
        self = GWIBBER_URL_SHORTEN (obj);
535
 
#line 34 "/home/ken/src/gwibber/trunk/libgwibber/urlshorten.vala"
 
535
#line 34 "/storage/1/src/gwibber/trunk/libgwibber/urlshorten.vala"
536
536
        _g_object_unref0 (self->priv->url_service);
537
 
#line 35 "/home/ken/src/gwibber/trunk/libgwibber/urlshorten.vala"
 
537
#line 35 "/storage/1/src/gwibber/trunk/libgwibber/urlshorten.vala"
538
538
        _g_object_unref0 (self->priv->utils);
539
 
#line 29 "/home/ken/src/gwibber/trunk/libgwibber/urlshorten.vala"
 
539
#line 29 "/storage/1/src/gwibber/trunk/libgwibber/urlshorten.vala"
540
540
        G_OBJECT_CLASS (gwibber_url_shorten_parent_class)->finalize (obj);
541
541
#line 542 "urlshorten.c"
542
542
}