165
160
void cheese_main_window_set_fullscreen (CheeseMainWindow* self, gboolean fullscreen);
166
161
void cheese_main_window_set_wide_mode (CheeseMainWindow* self, gboolean wide_mode);
167
162
void cheese_main_window_set_effects (CheeseMainWindow* self, gboolean effects);
168
void cheese_preferences_dialog_show (CheesePreferencesDialog* self);
169
void cheese_preferences_dialog_hide (CheesePreferencesDialog* self);
170
163
static void cheese_application_finalize (GObject* obj);
171
164
static void _vala_array_destroy (gpointer array, gint array_length, GDestroyNotify destroy_func);
172
165
static void _vala_array_free (gpointer array, gint array_length, GDestroyNotify destroy_func);
173
static gint _vala_array_length (gpointer array);
175
167
static const GActionEntry CHEESE_APPLICATION_action_entries[9] = {{"shoot", _cheese_application_on_shoot_gsimple_action_activate_callback}, {"mode", _cheese_application_on_action_radio_gsimple_action_activate_callback, "s", "'photo'", _cheese_application_on_mode_change_gsimple_action_change_state_callback}, {"fullscreen", _cheese_application_on_action_toggle_gsimple_action_activate_callback, NULL, "false", _cheese_application_on_fullscreen_change_gsimple_action_change_state_callback}, {"wide-mode", _cheese_application_on_action_toggle_gsimple_action_activate_callback, NULL, "false", _cheese_application_on_wide_mode_change_gsimple_action_change_state_callback}, {"effects", _cheese_application_on_action_toggle_gsimple_action_activate_callback, NULL, "false", _cheese_application_on_effects_change_gsimple_action_change_state_callback}, {"preferences", _cheese_application_on_preferences_gsimple_action_activate_callback}, {"help", _cheese_application_on_help_gsimple_action_activate_callback}, {"about", _cheese_application_on_about_gsimple_action_activate_callback}, {"quit", _cheese_application_on_quit_gsimple_action_activate_callback}};
176
static const GOptionEntry CHEESE_APPLICATION_options[5] = {{"wide", 'w', 0, G_OPTION_ARG_NONE, &cheese_application_wide, "Start in wide mode", NULL}, {"device", 'd', 0, G_OPTION_ARG_FILENAME, &cheese_application_device, "Device to use as a camera", "DEVICE"}, {"version", 'v', 0, G_OPTION_ARG_NONE, &cheese_application_version, "Output version information and exit", NULL}, {"fullscreen", 'f', 0, G_OPTION_ARG_NONE, &cheese_application_fullscreen, "Start in fullscreen mode", NULL}, {NULL}};
168
static const GOptionEntry CHEESE_APPLICATION_options[5] = {{"wide", 'w', 0, G_OPTION_ARG_NONE, NULL, "Start in wide mode", NULL}, {"device", 'd', 0, G_OPTION_ARG_FILENAME, NULL, "Device to use as a camera", "DEVICE"}, {"version", 'v', 0, G_OPTION_ARG_NONE, NULL, "Output version information and exit", NULL}, {"fullscreen", 'f', 0, G_OPTION_ARG_NONE, NULL, "Start in fullscreen mode", NULL}, {NULL}};
178
170
static void _cheese_application_on_shoot_gsimple_action_activate_callback (GSimpleAction* action, GVariant* parameter, gpointer self) {
179
cheese_application_on_shoot (self);
171
cheese_application_on_shoot ((CheeseApplication*) self);
183
175
static void _cheese_application_on_action_radio_gsimple_action_activate_callback (GSimpleAction* action, GVariant* parameter, gpointer self) {
184
cheese_application_on_action_radio (self, action, parameter);
176
cheese_application_on_action_radio ((CheeseApplication*) self, action, parameter);
188
180
static void _cheese_application_on_mode_change_gsimple_action_change_state_callback (GSimpleAction* action, GVariant* value, gpointer self) {
189
cheese_application_on_mode_change (self, action, value);
181
cheese_application_on_mode_change ((CheeseApplication*) self, action, value);
193
185
static void _cheese_application_on_action_toggle_gsimple_action_activate_callback (GSimpleAction* action, GVariant* parameter, gpointer self) {
194
cheese_application_on_action_toggle (self, action, parameter);
186
cheese_application_on_action_toggle ((CheeseApplication*) self, action, parameter);
198
190
static void _cheese_application_on_fullscreen_change_gsimple_action_change_state_callback (GSimpleAction* action, GVariant* value, gpointer self) {
199
cheese_application_on_fullscreen_change (self, action, value);
191
cheese_application_on_fullscreen_change ((CheeseApplication*) self, action, value);
203
195
static void _cheese_application_on_wide_mode_change_gsimple_action_change_state_callback (GSimpleAction* action, GVariant* value, gpointer self) {
204
cheese_application_on_wide_mode_change (self, action, value);
196
cheese_application_on_wide_mode_change ((CheeseApplication*) self, action, value);
208
200
static void _cheese_application_on_effects_change_gsimple_action_change_state_callback (GSimpleAction* action, GVariant* value, gpointer self) {
209
cheese_application_on_effects_change (self, action, value);
201
cheese_application_on_effects_change ((CheeseApplication*) self, action, value);
213
205
static void _cheese_application_on_preferences_gsimple_action_activate_callback (GSimpleAction* action, GVariant* parameter, gpointer self) {
214
cheese_application_on_preferences (self);
206
cheese_application_on_preferences ((CheeseApplication*) self);
218
210
static void _cheese_application_on_help_gsimple_action_activate_callback (GSimpleAction* action, GVariant* parameter, gpointer self) {
219
cheese_application_on_help (self);
211
cheese_application_on_help ((CheeseApplication*) self);
223
215
static void _cheese_application_on_about_gsimple_action_activate_callback (GSimpleAction* action, GVariant* parameter, gpointer self) {
224
cheese_application_on_about (self);
216
cheese_application_on_about ((CheeseApplication*) self);
228
220
static void _cheese_application_on_quit_gsimple_action_activate_callback (GSimpleAction* action, GVariant* parameter, gpointer self) {
229
cheese_application_on_quit (self);
221
cheese_application_on_quit ((CheeseApplication*) self);
233
225
CheeseApplication* cheese_application_construct (GType object_type) {
234
226
CheeseApplication * self = NULL;
235
self = (CheeseApplication*) g_object_new (object_type, "application-id", "org.gnome.Cheese", NULL);
227
self = (CheeseApplication*) g_object_new (object_type, "application-id", "org.gnome.Cheese", "flags", G_APPLICATION_HANDLES_COMMAND_LINE, NULL);
228
g_application_add_main_option_entries ((GApplication*) self, CHEESE_APPLICATION_options);
309
302
GtkSettings* _tmp3_ = NULL;
310
303
CheeseMainWindow* _tmp5_ = NULL;
311
304
const gchar* _tmp6_ = NULL;
312
GtkIconTheme* _tmp7_ = NULL;
313
gchar* _tmp8_ = NULL;
314
gchar* _tmp9_ = NULL;
316
GMenu* _tmp10_ = NULL;
317
GMenu* section = NULL;
318
GMenu* _tmp11_ = NULL;
319
GMenu* _tmp12_ = NULL;
320
GMenu* _tmp13_ = NULL;
321
GMenuItem* item = NULL;
322
const gchar* _tmp14_ = NULL;
323
GMenuItem* _tmp15_ = NULL;
324
GMenuItem* _tmp16_ = NULL;
325
GMenu* _tmp17_ = NULL;
326
GMenuItem* _tmp18_ = NULL;
327
GMenu* _tmp19_ = NULL;
328
GMenu* _tmp20_ = NULL;
329
const gchar* _tmp21_ = NULL;
330
GMenu* _tmp22_ = NULL;
331
GMenu* _tmp23_ = NULL;
332
const gchar* _tmp24_ = NULL;
333
GMenu* _tmp25_ = NULL;
334
const gchar* _tmp26_ = NULL;
335
GMenu* _tmp27_ = NULL;
336
const gchar* _tmp28_ = NULL;
337
GMenu* _tmp29_ = NULL;
338
GMenu* _tmp30_ = NULL;
339
GMenu* _tmp31_ = NULL;
340
const gchar* _tmp32_ = NULL;
341
GMenuItem* _tmp33_ = NULL;
342
GMenuItem* _tmp34_ = NULL;
343
GMenu* _tmp35_ = NULL;
344
GMenuItem* _tmp36_ = NULL;
345
GMenu* _tmp37_ = NULL;
346
GMenu* _tmp38_ = NULL;
347
GMenu* _tmp39_ = NULL;
348
GMenu* _tmp40_ = NULL;
349
const gchar* _tmp41_ = NULL;
350
GMenu* _tmp42_ = NULL;
351
GMenu* _tmp43_ = NULL;
352
GMenu* _tmp44_ = NULL;
353
GMenu* _tmp45_ = NULL;
354
const gchar* _tmp46_ = NULL;
355
GMenu* _tmp47_ = NULL;
356
GMenu* _tmp48_ = NULL;
357
GMenu* _tmp49_ = NULL;
358
const gchar* _tmp50_ = NULL;
359
GMenuItem* _tmp51_ = NULL;
360
GMenuItem* _tmp52_ = NULL;
361
GMenu* _tmp53_ = NULL;
362
GMenuItem* _tmp54_ = NULL;
363
GMenu* _tmp55_ = NULL;
364
const gchar* _tmp56_ = NULL;
365
const gchar* _tmp57_ = NULL;
366
GMenuItem* _tmp58_ = NULL;
367
GMenuItem* _tmp59_ = NULL;
368
GMenu* _tmp60_ = NULL;
369
GMenuItem* _tmp61_ = NULL;
370
GMenu* _tmp62_ = NULL;
371
CheeseMainWindow* _tmp63_ = NULL;
372
CheeseMainWindow* _tmp64_ = NULL;
373
CheeseMainWindow* _tmp65_ = NULL;
374
CheeseMainWindow* _tmp66_ = NULL;
375
CheeseMainWindow* _tmp67_ = NULL;
376
CheeseCamera* _tmp68_ = NULL;
377
CheesePreferencesDialog* _tmp69_ = NULL;
305
GtkBuilder* builder = NULL;
306
GtkBuilder* _tmp7_ = NULL;
307
GMenuModel* appmenu = NULL;
308
GtkBuilder* _tmp8_ = NULL;
309
GObject* _tmp9_ = NULL;
310
GMenuModel* _tmp10_ = NULL;
311
GMenuModel* _tmp11_ = NULL;
312
CheeseMainWindow* _tmp12_ = NULL;
313
CheeseMainWindow* _tmp13_ = NULL;
314
CheeseMainWindow* _tmp14_ = NULL;
315
CheeseMainWindow* _tmp15_ = NULL;
316
CheeseMainWindow* _tmp16_ = NULL;
317
CheeseCamera* _tmp17_ = NULL;
318
CheesePreferencesDialog* _tmp18_ = NULL;
378
319
GAction* preferences = NULL;
379
GAction* _tmp70_ = NULL;
380
GAction* _tmp71_ = NULL;
381
GAction* _tmp72_ = NULL;
382
CheeseMainWindow* _tmp73_ = NULL;
320
GAction* _tmp19_ = NULL;
321
GAction* _tmp20_ = NULL;
322
GAction* _tmp21_ = NULL;
323
CheeseMainWindow* _tmp22_ = NULL;
383
324
_tmp1_ = gtk_settings_get_default ();
384
325
_tmp2_ = _g_object_ref0 (_tmp1_);
385
326
gtk_settings = _tmp2_;
397
338
_tmp6_ = _ ("Cheese");
398
339
g_set_application_name (_tmp6_);
399
340
gtk_window_set_default_icon_name ("cheese");
400
_tmp7_ = gtk_icon_theme_get_default ();
401
_tmp8_ = g_build_filename (PACKAGE_DATADIR, "icons", NULL);
403
gtk_icon_theme_append_search_path (_tmp7_, _tmp9_);
405
_tmp10_ = g_menu_new ();
407
_tmp11_ = g_menu_new ();
411
g_menu_append_section (_tmp12_, NULL, (GMenuModel*) _tmp13_);
412
_tmp14_ = _ ("_Shoot");
413
_tmp15_ = g_menu_item_new (_tmp14_, "app.shoot");
416
g_menu_item_set_attribute (_tmp16_, "accel", "s", "space", NULL);
419
g_menu_append_item (_tmp17_, _tmp18_);
420
_tmp19_ = g_menu_new ();
421
_g_object_unref0 (section);
424
_tmp21_ = _ ("Mode:");
426
g_menu_append_section (_tmp20_, _tmp21_, (GMenuModel*) _tmp22_);
428
_tmp24_ = _ ("_Photo");
429
g_menu_append (_tmp23_, _tmp24_, "app.mode::photo");
431
_tmp26_ = _ ("_Video");
432
g_menu_append (_tmp25_, _tmp26_, "app.mode::video");
434
_tmp28_ = _ ("_Burst");
435
g_menu_append (_tmp27_, _tmp28_, "app.mode::burst");
436
_tmp29_ = g_menu_new ();
437
_g_object_unref0 (section);
441
g_menu_append_section (_tmp30_, NULL, (GMenuModel*) _tmp31_);
442
_tmp32_ = _ ("_Fullscreen");
443
_tmp33_ = g_menu_item_new (_tmp32_, "app.fullscreen");
444
_g_object_unref0 (item);
447
g_menu_item_set_attribute (_tmp34_, "accel", "s", "F11", NULL);
450
g_menu_append_item (_tmp35_, _tmp36_);
451
_tmp37_ = g_menu_new ();
452
_g_object_unref0 (section);
456
g_menu_append_section (_tmp38_, NULL, (GMenuModel*) _tmp39_);
458
_tmp41_ = _ ("_Effects");
459
g_menu_append (_tmp40_, _tmp41_, "app.effects");
460
_tmp42_ = g_menu_new ();
461
_g_object_unref0 (section);
465
g_menu_append_section (_tmp43_, NULL, (GMenuModel*) _tmp44_);
467
_tmp46_ = _ ("P_references");
468
g_menu_append (_tmp45_, _tmp46_, "app.preferences");
469
_tmp47_ = g_menu_new ();
470
_g_object_unref0 (section);
474
g_menu_append_section (_tmp48_, NULL, (GMenuModel*) _tmp49_);
475
_tmp50_ = _ ("_Help");
476
_tmp51_ = g_menu_item_new (_tmp50_, "app.help");
477
_g_object_unref0 (item);
480
g_menu_item_set_attribute (_tmp52_, "accel", "s", "F1", NULL);
483
g_menu_append_item (_tmp53_, _tmp54_);
485
_tmp56_ = _ ("_About");
486
g_menu_append (_tmp55_, _tmp56_, "app.about");
487
_tmp57_ = _ ("_Quit");
488
_tmp58_ = g_menu_item_new (_tmp57_, "app.quit");
489
_g_object_unref0 (item);
492
g_menu_item_set_attribute (_tmp59_, "accel", "s", "<Primary>q", NULL);
495
g_menu_append_item (_tmp60_, _tmp61_);
497
gtk_application_set_app_menu ((GtkApplication*) self, (GMenuModel*) _tmp62_);
498
_tmp63_ = cheese_application_main_window;
499
cheese_main_window_setup_ui (_tmp63_);
500
_tmp64_ = cheese_application_main_window;
501
cheese_main_window_start_thumbview_monitors (_tmp64_);
502
_tmp65_ = cheese_application_main_window;
503
gtk_widget_add_events ((GtkWidget*) _tmp65_, (gint) (GDK_KEY_PRESS_MASK | GDK_KEY_RELEASE_MASK));
504
_tmp66_ = cheese_application_main_window;
505
g_signal_connect_object ((GtkWidget*) _tmp66_, "key-press-event", (GCallback) _cheese_application_on_webcam_key_pressed_gtk_widget_key_press_event, self, 0);
506
_tmp67_ = cheese_application_main_window;
507
gtk_widget_show ((GtkWidget*) _tmp67_);
341
_tmp7_ = gtk_builder_new_from_resource ("/org/gnome/Cheese/cheese-appmenu.ui");
344
_tmp9_ = gtk_builder_get_object (_tmp8_, "appmenu");
345
_tmp10_ = _g_object_ref0 (G_TYPE_CHECK_INSTANCE_TYPE (_tmp9_, g_menu_model_get_type ()) ? ((GMenuModel*) _tmp9_) : NULL);
348
gtk_application_set_app_menu ((GtkApplication*) self, _tmp11_);
349
gtk_application_add_accelerator ((GtkApplication*) self, "space", "app.shoot", NULL);
350
_tmp12_ = cheese_application_main_window;
351
cheese_main_window_setup_ui (_tmp12_);
352
_tmp13_ = cheese_application_main_window;
353
cheese_main_window_start_thumbview_monitors (_tmp13_);
354
_tmp14_ = cheese_application_main_window;
355
gtk_widget_add_events ((GtkWidget*) _tmp14_, (gint) (GDK_KEY_PRESS_MASK | GDK_KEY_RELEASE_MASK));
356
_tmp15_ = cheese_application_main_window;
357
g_signal_connect_object ((GtkWidget*) _tmp15_, "key-press-event", (GCallback) _cheese_application_on_webcam_key_pressed_gtk_widget_key_press_event, self, 0);
358
_tmp16_ = cheese_application_main_window;
359
gtk_widget_show ((GtkWidget*) _tmp16_);
508
360
cheese_application_setup_camera (self);
509
_tmp68_ = self->priv->camera;
510
_tmp69_ = cheese_preferences_dialog_new (_tmp68_);
361
_tmp17_ = self->priv->camera;
362
_tmp18_ = cheese_preferences_dialog_new (_tmp17_);
363
g_object_ref_sink (_tmp18_);
511
364
_g_object_unref0 (self->priv->preferences_dialog);
512
self->priv->preferences_dialog = _tmp69_;
513
_tmp70_ = g_action_map_lookup_action ((GActionMap*) self, "preferences");
514
_tmp71_ = _g_object_ref0 (_tmp70_);
515
preferences = _tmp71_;
516
_tmp72_ = preferences;
517
g_signal_connect_object ((GObject*) _tmp72_, "notify::enabled", (GCallback) _cheese_application_on_preferences_enabled_g_object_notify, self, 0);
518
_tmp73_ = cheese_application_main_window;
519
gtk_application_add_window ((GtkApplication*) self, (GtkWindow*) _tmp73_);
365
self->priv->preferences_dialog = _tmp18_;
366
_tmp19_ = g_action_map_lookup_action ((GActionMap*) self, "preferences");
367
_tmp20_ = _g_object_ref0 (_tmp19_);
368
preferences = _tmp20_;
369
_tmp21_ = preferences;
370
g_signal_connect_object ((GObject*) _tmp21_, "notify::enabled", (GCallback) _cheese_application_on_preferences_enabled_g_object_notify, self, 0);
371
_tmp22_ = cheese_application_main_window;
372
gtk_application_add_window ((GtkApplication*) self, (GtkWindow*) _tmp22_);
520
373
_g_object_unref0 (preferences);
521
_g_object_unref0 (item);
522
_g_object_unref0 (section);
523
_g_object_unref0 (menu);
374
_g_object_unref0 (appmenu);
375
_g_object_unref0 (builder);
524
376
_g_object_unref0 (gtk_settings);
548
* Overridden method of GApplication, to handle the arguments locally.
550
* @param arguments the command-line arguments
551
* @param exit_status the exit status to return to the OS
552
* @return true if the arguments were successfully processed, false
555
static gboolean cheese_application_real_local_command_line (GApplication* base, gchar*** argv, gint* exit_status) {
556
CheeseApplication * self;
557
gint _vala_exit_status = 0;
558
gboolean result = FALSE;
559
gchar** arguments = NULL;
560
gchar** _tmp2_ = NULL;
561
gint _tmp2__length1 = 0;
562
gint arguments_length1 = 0;
563
gint _arguments_size_ = 0;
565
gchar** _tmp3_ = NULL;
566
gint _tmp3__length1 = 0;
569
gboolean _tmp26_ = FALSE;
570
GError * _inner_error_ = NULL;
571
self = (CheeseApplication*) base;
573
g_application_register ((GApplication*) self, NULL, &_inner_error_);
574
if (_inner_error_ != NULL) {
575
goto __catch0_g_error;
582
GError* _tmp0_ = NULL;
583
const gchar* _tmp1_ = NULL;
585
_inner_error_ = NULL;
587
_tmp1_ = _tmp0_->message;
588
g_warning ("cheese-application.vala:203: Unable to register application: %s", _tmp1_);
589
_vala_exit_status = 1;
593
*exit_status = _vala_exit_status;
399
static gpointer _g_variant_dict_ref0 (gpointer self) {
400
return self ? g_variant_dict_ref (self) : NULL;
404
static gint cheese_application_real_command_line (GApplication* base, GApplicationCommandLine* cl) {
405
CheeseApplication * self;
407
GVariantDict* opts = NULL;
408
GApplicationCommandLine* _tmp0_ = NULL;
409
GVariantDict* _tmp1_ = NULL;
410
GVariantDict* _tmp2_ = NULL;
411
GVariantDict* _tmp3_ = NULL;
412
gboolean _tmp4_ = FALSE;
413
GVariantDict* _tmp7_ = NULL;
414
gboolean _tmp8_ = FALSE;
415
GVariantDict* _tmp9_ = NULL;
416
gboolean _tmp10_ = FALSE;
417
self = (CheeseApplication*) base;
418
g_return_val_if_fail (cl != NULL, 0);
420
_tmp1_ = g_application_command_line_get_options_dict (_tmp0_);
421
_tmp2_ = _g_variant_dict_ref0 (_tmp1_);
424
_tmp4_ = g_variant_dict_lookup (_tmp3_, "device", "^ay", &cheese_application_device, NULL, NULL);
426
GSettings* _tmp5_ = NULL;
427
const gchar* _tmp6_ = NULL;
428
_tmp5_ = self->priv->settings;
429
_tmp6_ = cheese_application_device;
430
g_settings_set_string (_tmp5_, "camera", _tmp6_);
433
_tmp8_ = g_variant_dict_contains (_tmp7_, "fullscreen");
435
g_action_group_activate_action ((GActionGroup*) self, "fullscreen", NULL);
438
_tmp10_ = g_variant_dict_contains (_tmp9_, "wide");
440
g_action_group_activate_action ((GActionGroup*) self, "wide-mode", NULL);
442
g_application_activate ((GApplication*) self);
444
_g_variant_dict_unref0 (opts);
449
static gint cheese_application_real_handle_local_options (GApplication* base, GVariantDict* opts) {
450
CheeseApplication * self;
452
GVariantDict* _tmp0_ = NULL;
453
gboolean _tmp1_ = FALSE;
454
self = (CheeseApplication*) base;
455
g_return_val_if_fail (opts != NULL, 0);
457
_tmp1_ = g_variant_dict_contains (_tmp0_, "version");
461
fprintf (_tmp2_, "%s %s\n", PACKAGE_NAME, PACKAGE_VERSION);
598
if (_inner_error_ != NULL) {
599
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);
600
g_clear_error (&_inner_error_);
604
_tmp2__length1 = _vala_array_length (*argv);
606
arguments_length1 = _tmp2__length1;
607
_arguments_size_ = arguments_length1;
609
_tmp3__length1 = arguments_length1;
610
n_args = _tmp3__length1;
613
g_application_activate ((GApplication*) self);
614
_vala_exit_status = 0;
616
gboolean _tmp18_ = FALSE;
617
const gchar* _tmp20_ = NULL;
618
gboolean _tmp23_ = FALSE;
619
gboolean _tmp24_ = FALSE;
621
GOptionContext* context = NULL;
622
const gchar* _tmp5_ = NULL;
623
GOptionContext* _tmp6_ = NULL;
624
GOptionContext* _tmp7_ = NULL;
625
GOptionContext* _tmp8_ = NULL;
626
GOptionContext* _tmp9_ = NULL;
627
GOptionContext* _tmp10_ = NULL;
628
_tmp5_ = _ ("- Take photos and videos from your webcam");
629
_tmp6_ = g_option_context_new (_tmp5_);
632
g_option_context_set_translation_domain (_tmp7_, GETTEXT_PACKAGE);
634
g_option_context_set_help_enabled (_tmp8_, TRUE);
636
g_option_context_add_main_entries (_tmp9_, CHEESE_APPLICATION_options, NULL);
638
g_option_context_parse (_tmp10_, &arguments_length1, &arguments, &_inner_error_);
639
if (_inner_error_ != NULL) {
640
_g_option_context_free0 (context);
641
if (_inner_error_->domain == G_OPTION_ERROR) {
642
goto __catch1_g_option_error;
644
_g_option_context_free0 (context);
645
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);
646
g_clear_error (&_inner_error_);
649
_g_option_context_free0 (context);
652
__catch1_g_option_error:
655
GError* _tmp11_ = NULL;
656
const gchar* _tmp12_ = NULL;
657
FILE* _tmp13_ = NULL;
658
const gchar* _tmp14_ = NULL;
659
gchar** _tmp15_ = NULL;
660
gint _tmp15__length1 = 0;
661
const gchar* _tmp16_ = NULL;
662
FILE* _tmp17_ = NULL;
664
_inner_error_ = NULL;
666
_tmp12_ = _tmp11_->message;
667
g_warning ("cheese-application.vala:229: %s", _tmp12_);
669
_tmp14_ = _ ("Run '%s --help' to see a full list of available command line options.");
671
_tmp15__length1 = arguments_length1;
672
_tmp16_ = _tmp15_[0];
673
fprintf (_tmp13_, _tmp14_, _tmp16_);
675
fprintf (_tmp17_, "\n");
676
_vala_exit_status = 1;
680
*exit_status = _vala_exit_status;
685
if (_inner_error_ != NULL) {
686
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);
687
g_clear_error (&_inner_error_);
690
_tmp18_ = cheese_application_version;
692
FILE* _tmp19_ = NULL;
694
fprintf (_tmp19_, "%s %s\n", PACKAGE_NAME, PACKAGE_VERSION);
695
_vala_exit_status = 1;
698
*exit_status = _vala_exit_status;
702
_tmp20_ = cheese_application_device;
703
if (_tmp20_ != NULL) {
704
GSettings* _tmp21_ = NULL;
705
const gchar* _tmp22_ = NULL;
706
_tmp21_ = self->priv->settings;
707
_tmp22_ = cheese_application_device;
708
g_settings_set_string (_tmp21_, "camera", _tmp22_);
710
_tmp23_ = cheese_application_fullscreen;
712
g_action_group_activate_action ((GActionGroup*) self, "fullscreen", NULL);
714
_tmp24_ = cheese_application_wide;
716
g_action_group_activate_action ((GActionGroup*) self, "wide-mode", NULL);
718
g_application_activate ((GApplication*) self);
719
_vala_exit_status = 0;
721
_tmp26_ = G_APPLICATION_CLASS (cheese_application_parent_class)->local_command_line ((GApplication*) G_TYPE_CHECK_INSTANCE_CAST (self, GTK_TYPE_APPLICATION, GtkApplication), &arguments, &_tmp25_);
722
_vala_exit_status = _tmp25_;
725
*exit_status = _vala_exit_status;
921
660
static gboolean cheese_application_on_webcam_key_pressed (CheeseApplication* self, GdkEventKey* event) {
922
661
gboolean result = FALSE;
923
662
gboolean _tmp0_ = FALSE;
924
GdkEventKey _tmp1_ = {0};
663
GdkEventKey* _tmp1_ = NULL;
925
664
GdkModifierType _tmp2_ = 0;
926
gboolean _tmp21_ = FALSE;
927
GdkEventKey _tmp22_ = {0};
665
GdkEventKey* _tmp17_ = NULL;
929
667
g_return_val_if_fail (self != NULL, FALSE);
930
668
g_return_val_if_fail (event != NULL, FALSE);
932
_tmp2_ = _tmp1_.state;
670
_tmp2_ = _tmp1_->state;
933
671
if (_tmp2_ != 0) {
934
672
gboolean _tmp3_ = FALSE;
935
673
gboolean _tmp4_ = FALSE;
936
674
gboolean _tmp5_ = FALSE;
937
675
gboolean _tmp6_ = FALSE;
938
GdkEventKey _tmp7_ = {0};
676
GdkEventKey* _tmp7_ = NULL;
939
677
GdkModifierType _tmp8_ = 0;
940
gboolean _tmp11_ = FALSE;
941
gboolean _tmp14_ = FALSE;
942
gboolean _tmp17_ = FALSE;
943
gboolean _tmp20_ = FALSE;
945
_tmp8_ = _tmp7_.state;
679
_tmp8_ = _tmp7_->state;
946
680
if ((_tmp8_ & GDK_CONTROL_MASK) != 0) {
949
GdkEventKey _tmp9_ = {0};
683
GdkEventKey* _tmp9_ = NULL;
950
684
GdkModifierType _tmp10_ = 0;
952
_tmp10_ = _tmp9_.state;
686
_tmp10_ = _tmp9_->state;
953
687
_tmp6_ = (_tmp10_ & GDK_MOD1_MASK) != 0;
959
GdkEventKey _tmp12_ = {0};
960
GdkModifierType _tmp13_ = 0;
962
_tmp13_ = _tmp12_.state;
963
_tmp5_ = (_tmp13_ & GDK_MOD3_MASK) != 0;
692
GdkEventKey* _tmp11_ = NULL;
693
GdkModifierType _tmp12_ = 0;
695
_tmp12_ = _tmp11_->state;
696
_tmp5_ = (_tmp12_ & GDK_MOD3_MASK) != 0;
969
GdkEventKey _tmp15_ = {0};
701
GdkEventKey* _tmp13_ = NULL;
702
GdkModifierType _tmp14_ = 0;
704
_tmp14_ = _tmp13_->state;
705
_tmp4_ = (_tmp14_ & GDK_MOD4_MASK) != 0;
710
GdkEventKey* _tmp15_ = NULL;
970
711
GdkModifierType _tmp16_ = 0;
972
_tmp16_ = _tmp15_.state;
973
_tmp4_ = (_tmp16_ & GDK_MOD4_MASK) != 0;
979
GdkEventKey _tmp18_ = {0};
980
GdkModifierType _tmp19_ = 0;
982
_tmp19_ = _tmp18_.state;
983
_tmp3_ = (_tmp19_ & GDK_MOD5_MASK) != 0;
713
_tmp16_ = _tmp15_->state;
714
_tmp3_ = (_tmp16_ & GDK_MOD5_MASK) != 0;
996
_tmp23_ = _tmp22_.keyval;
725
_tmp18_ = _tmp17_->keyval;
998
727
case GDK_KEY_WebCam:
1000
729
g_action_group_activate_action ((GActionGroup*) self, "shoot", NULL);
1541
1270
_tmp41_ = _ ("Cheese");
1542
1271
_tmp42_ = _ ("translator-credits");
1543
1272
_tmp43_ = _ ("Cheese Website");
1544
gtk_show_about_dialog ((GtkWindow*) _tmp39_, "artists", artists, "authors", authors, "comments", _tmp40_, "copyright", "Copyright © 2007 - 2010 daniel g. siegel <dgsiegel@gnome.org>", "documenters", documenters, "license-type", GTK_LICENSE_GPL_2_0, "logo-icon-name", PACKAGE_TARNAME, "program-name", _tmp41_, "translator-credits", _tmp42_, "website", PACKAGE_URL, "website-label", _tmp43_, "version", PACKAGE_VERSION, NULL);
1273
gtk_show_about_dialog ((GtkWindow*) _tmp39_, "artists", artists, "authors", authors, "comments", _tmp40_, "copyright", "Copyright © 2011 - 2014 David King <amigadave@amigadave.com>\n" \
1274
"Copyright © 2007 - 2011 daniel g. siegel <dgsiegel@gnome.org>", "documenters", documenters, "license-type", GTK_LICENSE_GPL_2_0, "logo-icon-name", PACKAGE_TARNAME, "program-name", _tmp41_, "translator-credits", _tmp42_, "website", PACKAGE_URL, "website-label", _tmp43_, "version", PACKAGE_VERSION, NULL);
1545
1275
documenters = (_vala_array_free (documenters, documenters_length1, (GDestroyNotify) g_free), NULL);
1546
1276
authors = (_vala_array_free (authors, authors_length1, (GDestroyNotify) g_free), NULL);
1547
1277
artists = (_vala_array_free (artists, artists_length1, (GDestroyNotify) g_free), NULL);