~ubuntu-branches/debian/jessie/cheese/jessie

« back to all changes in this revision

Viewing changes to src/cheese-main.c

  • Committer: Package Import Robot
  • Author(s): Jeremy Bicha
  • Date: 2012-02-07 00:39:22 UTC
  • mto: (15.1.2 experimental) (1.6.1)
  • mto: This revision was merged to the branch mainline in revision 22.
  • Revision ID: package-import@ubuntu.com-20120207003922-gr3zub1aeli4nomr
Tags: upstream-3.3.5
ImportĀ upstreamĀ versionĀ 3.3.5

Show diffs side-by-side

added added

removed removed

Lines of Context:
33
33
#include <stdio.h>
34
34
#include <gst/gst.h>
35
35
#include <clutter/clutter.h>
36
 
#include <clutter-gtk/clutter-gtk.h>
 
36
#include <cheese-gtk.h>
37
37
 
38
38
 
39
39
#define CHEESE_TYPE_MAIN (cheese_main_get_type ())
178
178
                _tmp7_ = g_object_ref_sink (_tmp6_);
179
179
                _g_object_unref0 (cheese_main_main_window);
180
180
                cheese_main_main_window = _tmp7_;
 
181
                g_setenv ("PULSE_PROP_media.role", "production", TRUE);
181
182
                _tmp8_ = _ ("Cheese");
182
183
                g_set_application_name (_tmp8_);
183
184
                gtk_window_set_default_icon_name ("cheese");
241
242
        {
242
243
                g_application_register ((GApplication*) self, NULL, &_inner_error_);
243
244
                if (_inner_error_ != NULL) {
244
 
                        goto __catch11_g_error;
 
245
                        goto __catch12_g_error;
245
246
                }
246
247
        }
247
 
        goto __finally11;
248
 
        __catch11_g_error:
 
248
        goto __finally12;
 
249
        __catch12_g_error:
249
250
        {
250
251
                GError* e = NULL;
251
252
                FILE* _tmp0_;
265
266
                }
266
267
                return result;
267
268
        }
268
 
        __finally11:
 
269
        __finally12:
269
270
        if (_inner_error_ != NULL) {
270
271
                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);
271
272
                g_clear_error (&_inner_error_);
324
325
                        if (_inner_error_ != NULL) {
325
326
                                _g_option_context_free0 (context);
326
327
                                if (_inner_error_->domain == G_OPTION_ERROR) {
327
 
                                        goto __catch12_g_option_error;
 
328
                                        goto __catch13_g_option_error;
328
329
                                }
329
330
                                _g_option_context_free0 (context);
330
331
                                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);
333
334
                        }
334
335
                        _g_option_context_free0 (context);
335
336
                }
336
 
                goto __finally12;
337
 
                __catch12_g_option_error:
 
337
                goto __finally13;
 
338
                __catch13_g_option_error:
338
339
                {
339
340
                        GError* e = NULL;
340
341
                        FILE* _tmp18_;
365
366
                        }
366
367
                        return result;
367
368
                }
368
 
                __finally12:
 
369
                __finally13:
369
370
                if (_inner_error_ != NULL) {
370
371
                        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);
371
372
                        g_clear_error (&_inner_error_);
447
448
 
448
449
gint _vala_main (gchar** args, int args_length1) {
449
450
        gint result = 0;
450
 
        ClutterInitError _tmp0_ = 0;
 
451
        gboolean _tmp0_ = FALSE;
451
452
        CheeseMain* app = NULL;
452
453
        CheeseMain* _tmp1_;
453
454
        CheeseMain* _tmp2_;
460
461
        bindtextdomain (GETTEXT_PACKAGE, PACKAGE_LOCALEDIR);
461
462
        bind_textdomain_codeset (GETTEXT_PACKAGE, "UTF-8");
462
463
        textdomain (GETTEXT_PACKAGE);
463
 
        _tmp0_ = gtk_clutter_init (&args_length1, &args);
464
 
        if (_tmp0_ != CLUTTER_INIT_SUCCESS) {
465
 
                result = 1;
 
464
        _tmp0_ = cheese_gtk_init (&args_length1, &args);
 
465
        if (!_tmp0_) {
 
466
                result = EXIT_FAILURE;
466
467
                return result;
467
468
        }
468
469
        _tmp1_ = cheese_main_new ("org.gnome.Cheese", G_APPLICATION_FLAGS_NONE);