~ubuntu-branches/debian/sid/cheese/sid

« back to all changes in this revision

Viewing changes to src/cheese-application.c

  • Committer: Package Import Robot
  • Author(s): Andreas Henriksson
  • Date: 2014-04-02 21:39:33 UTC
  • mfrom: (1.5.1) (15.1.7 experimental)
  • Revision ID: package-import@ubuntu.com-20140402213933-r0w3gna0pv7q7085
Tags: 3.12.0-1
* New upstream release.
* Revert changes done in 3.10.1-3
  - i.e. lower gnome-desktop build-dependency again.

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
/* cheese-application.c generated by valac 0.21.2.4-6740f, the Vala compiler
 
1
/* cheese-application.c generated by valac 0.23.3.20-47868, the Vala compiler
2
2
 * generated from cheese-application.vala, do not modify */
3
3
 
4
4
/*
31
31
#include <string.h>
32
32
#include <cheese-gtk.h>
33
33
#include <glib/gi18n-lib.h>
34
 
#include <cheese-config.h>
35
34
#include <gdk/gdk.h>
36
35
#include <stdio.h>
 
36
#include <cheese-config.h>
37
37
#include <clutter/clutter.h>
38
38
#include <float.h>
39
39
#include <math.h>
72
72
 
73
73
typedef struct _CheeseMainWindow CheeseMainWindow;
74
74
typedef struct _CheeseMainWindowClass CheeseMainWindowClass;
75
 
#define _g_free0(var) (var = (g_free (var), NULL))
 
75
#define _g_variant_dict_unref0(var) ((var == NULL) ? NULL : (var = (g_variant_dict_unref (var), NULL)))
76
76
#define _g_error_free0(var) ((var == NULL) ? NULL : (var = (g_error_free (var), NULL)))
77
 
#define _g_option_context_free0(var) ((var == NULL) ? NULL : (var = (g_option_context_free (var), NULL)))
78
77
#define _g_variant_unref0(var) ((var == NULL) ? NULL : (var = (g_variant_unref (var), NULL)))
 
78
#define _g_free0(var) (var = (g_free (var), NULL))
79
79
 
80
80
struct _CheeseApplication {
81
81
        GtkApplication parent_instance;
94
94
 
95
95
 
96
96
static gpointer cheese_application_parent_class = NULL;
97
 
static gboolean cheese_application_wide;
98
 
static gboolean cheese_application_wide = FALSE;
99
97
static gchar* cheese_application_device;
100
98
static gchar* cheese_application_device = NULL;
101
 
static gboolean cheese_application_version;
102
 
static gboolean cheese_application_version = FALSE;
103
 
static gboolean cheese_application_fullscreen;
104
 
static gboolean cheese_application_fullscreen = FALSE;
105
99
static CheeseMainWindow* cheese_application_main_window;
106
100
static CheeseMainWindow* cheese_application_main_window = NULL;
107
101
 
150
144
static void cheese_application_on_preferences_enabled (CheeseApplication* self);
151
145
static void _cheese_application_on_preferences_enabled_g_object_notify (GObject* _sender, GParamSpec* pspec, gpointer self);
152
146
static void cheese_application_real_activate (GApplication* base);
153
 
static gboolean cheese_application_real_local_command_line (GApplication* base, gchar*** argv, gint* exit_status);
 
147
static gint cheese_application_real_command_line (GApplication* base, GApplicationCommandLine* cl);
 
148
static gint cheese_application_real_handle_local_options (GApplication* base, GVariantDict* opts);
154
149
ClutterTexture* cheese_main_window_get_video_preview (CheeseMainWindow* self);
155
150
void cheese_main_window_show_error (CheeseMainWindow* self, const gchar* _error_);
156
151
static void cheese_application_on_camera_state_flags_changed (CheeseApplication* self, GstState new_state);
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);
174
166
 
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}};
177
169
 
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);
180
172
}
181
173
 
182
174
 
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);
185
177
}
186
178
 
187
179
 
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);
190
182
}
191
183
 
192
184
 
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);
195
187
}
196
188
 
197
189
 
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);
200
192
}
201
193
 
202
194
 
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);
205
197
}
206
198
 
207
199
 
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);
210
202
}
211
203
 
212
204
 
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);
215
207
}
216
208
 
217
209
 
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);
220
212
}
221
213
 
222
214
 
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);
225
217
}
226
218
 
227
219
 
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);
230
222
}
231
223
 
232
224
 
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);
236
229
        return self;
237
230
}
238
231
 
288
281
 
289
282
static gboolean _cheese_application_on_webcam_key_pressed_gtk_widget_key_press_event (GtkWidget* _sender, GdkEventKey* event, gpointer self) {
290
283
        gboolean result;
291
 
        result = cheese_application_on_webcam_key_pressed (self, event);
 
284
        result = cheese_application_on_webcam_key_pressed ((CheeseApplication*) self, event);
292
285
        return result;
293
286
}
294
287
 
295
288
 
296
289
static void _cheese_application_on_preferences_enabled_g_object_notify (GObject* _sender, GParamSpec* pspec, gpointer self) {
297
 
        cheese_application_on_preferences_enabled (self);
 
290
        cheese_application_on_preferences_enabled ((CheeseApplication*) self);
298
291
}
299
292
 
300
293
 
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;
315
 
                GMenu* menu = 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);
402
 
                _tmp9_ = _tmp8_;
403
 
                gtk_icon_theme_append_search_path (_tmp7_, _tmp9_);
404
 
                _g_free0 (_tmp9_);
405
 
                _tmp10_ = g_menu_new ();
406
 
                menu = _tmp10_;
407
 
                _tmp11_ = g_menu_new ();
408
 
                section = _tmp11_;
409
 
                _tmp12_ = menu;
410
 
                _tmp13_ = section;
411
 
                g_menu_append_section (_tmp12_, NULL, (GMenuModel*) _tmp13_);
412
 
                _tmp14_ = _ ("_Shoot");
413
 
                _tmp15_ = g_menu_item_new (_tmp14_, "app.shoot");
414
 
                item = _tmp15_;
415
 
                _tmp16_ = item;
416
 
                g_menu_item_set_attribute (_tmp16_, "accel", "s", "space", NULL);
417
 
                _tmp17_ = section;
418
 
                _tmp18_ = item;
419
 
                g_menu_append_item (_tmp17_, _tmp18_);
420
 
                _tmp19_ = g_menu_new ();
421
 
                _g_object_unref0 (section);
422
 
                section = _tmp19_;
423
 
                _tmp20_ = menu;
424
 
                _tmp21_ = _ ("Mode:");
425
 
                _tmp22_ = section;
426
 
                g_menu_append_section (_tmp20_, _tmp21_, (GMenuModel*) _tmp22_);
427
 
                _tmp23_ = section;
428
 
                _tmp24_ = _ ("_Photo");
429
 
                g_menu_append (_tmp23_, _tmp24_, "app.mode::photo");
430
 
                _tmp25_ = section;
431
 
                _tmp26_ = _ ("_Video");
432
 
                g_menu_append (_tmp25_, _tmp26_, "app.mode::video");
433
 
                _tmp27_ = section;
434
 
                _tmp28_ = _ ("_Burst");
435
 
                g_menu_append (_tmp27_, _tmp28_, "app.mode::burst");
436
 
                _tmp29_ = g_menu_new ();
437
 
                _g_object_unref0 (section);
438
 
                section = _tmp29_;
439
 
                _tmp30_ = menu;
440
 
                _tmp31_ = 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);
445
 
                item = _tmp33_;
446
 
                _tmp34_ = item;
447
 
                g_menu_item_set_attribute (_tmp34_, "accel", "s", "F11", NULL);
448
 
                _tmp35_ = section;
449
 
                _tmp36_ = item;
450
 
                g_menu_append_item (_tmp35_, _tmp36_);
451
 
                _tmp37_ = g_menu_new ();
452
 
                _g_object_unref0 (section);
453
 
                section = _tmp37_;
454
 
                _tmp38_ = menu;
455
 
                _tmp39_ = section;
456
 
                g_menu_append_section (_tmp38_, NULL, (GMenuModel*) _tmp39_);
457
 
                _tmp40_ = section;
458
 
                _tmp41_ = _ ("_Effects");
459
 
                g_menu_append (_tmp40_, _tmp41_, "app.effects");
460
 
                _tmp42_ = g_menu_new ();
461
 
                _g_object_unref0 (section);
462
 
                section = _tmp42_;
463
 
                _tmp43_ = menu;
464
 
                _tmp44_ = section;
465
 
                g_menu_append_section (_tmp43_, NULL, (GMenuModel*) _tmp44_);
466
 
                _tmp45_ = section;
467
 
                _tmp46_ = _ ("P_references");
468
 
                g_menu_append (_tmp45_, _tmp46_, "app.preferences");
469
 
                _tmp47_ = g_menu_new ();
470
 
                _g_object_unref0 (section);
471
 
                section = _tmp47_;
472
 
                _tmp48_ = menu;
473
 
                _tmp49_ = 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);
478
 
                item = _tmp51_;
479
 
                _tmp52_ = item;
480
 
                g_menu_item_set_attribute (_tmp52_, "accel", "s", "F1", NULL);
481
 
                _tmp53_ = section;
482
 
                _tmp54_ = item;
483
 
                g_menu_append_item (_tmp53_, _tmp54_);
484
 
                _tmp55_ = section;
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);
490
 
                item = _tmp58_;
491
 
                _tmp59_ = item;
492
 
                g_menu_item_set_attribute (_tmp59_, "accel", "s", "<Primary>q", NULL);
493
 
                _tmp60_ = section;
494
 
                _tmp61_ = item;
495
 
                g_menu_append_item (_tmp60_, _tmp61_);
496
 
                _tmp62_ = menu;
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");
 
342
                builder = _tmp7_;
 
343
                _tmp8_ = builder;
 
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);
 
346
                appmenu = _tmp10_;
 
347
                _tmp11_ = appmenu;
 
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);
525
377
        }
526
378
}
544
396
}
545
397
 
546
398
 
547
 
/**
548
 
     * Overridden method of GApplication, to handle the arguments locally.
549
 
     *
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
553
 
     * otherwise
554
 
     */
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;
564
 
        gint n_args = 0;
565
 
        gchar** _tmp3_ = NULL;
566
 
        gint _tmp3__length1 = 0;
567
 
        gint _tmp4_ = 0;
568
 
        gint _tmp25_ = 0;
569
 
        gboolean _tmp26_ = FALSE;
570
 
        GError * _inner_error_ = NULL;
571
 
        self = (CheeseApplication*) base;
572
 
        {
573
 
                g_application_register ((GApplication*) self, NULL, &_inner_error_);
574
 
                if (_inner_error_ != NULL) {
575
 
                        goto __catch0_g_error;
576
 
                }
577
 
        }
578
 
        goto __finally0;
579
 
        __catch0_g_error:
580
 
        {
581
 
                GError* e = NULL;
582
 
                GError* _tmp0_ = NULL;
583
 
                const gchar* _tmp1_ = NULL;
584
 
                e = _inner_error_;
585
 
                _inner_error_ = NULL;
586
 
                _tmp0_ = e;
587
 
                _tmp1_ = _tmp0_->message;
588
 
                g_warning ("cheese-application.vala:203: Unable to register application: %s", _tmp1_);
589
 
                _vala_exit_status = 1;
590
 
                result = TRUE;
591
 
                _g_error_free0 (e);
592
 
                if (exit_status) {
593
 
                        *exit_status = _vala_exit_status;
594
 
                }
 
399
static gpointer _g_variant_dict_ref0 (gpointer self) {
 
400
        return self ? g_variant_dict_ref (self) : NULL;
 
401
}
 
402
 
 
403
 
 
404
static gint cheese_application_real_command_line (GApplication* base, GApplicationCommandLine* cl) {
 
405
        CheeseApplication * self;
 
406
        gint result = 0;
 
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);
 
419
        _tmp0_ = cl;
 
420
        _tmp1_ = g_application_command_line_get_options_dict (_tmp0_);
 
421
        _tmp2_ = _g_variant_dict_ref0 (_tmp1_);
 
422
        opts = _tmp2_;
 
423
        _tmp3_ = opts;
 
424
        _tmp4_ = g_variant_dict_lookup (_tmp3_, "device", "^ay", &cheese_application_device, NULL, NULL);
 
425
        if (_tmp4_) {
 
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_);
 
431
        }
 
432
        _tmp7_ = opts;
 
433
        _tmp8_ = g_variant_dict_contains (_tmp7_, "fullscreen");
 
434
        if (_tmp8_) {
 
435
                g_action_group_activate_action ((GActionGroup*) self, "fullscreen", NULL);
 
436
        }
 
437
        _tmp9_ = opts;
 
438
        _tmp10_ = g_variant_dict_contains (_tmp9_, "wide");
 
439
        if (_tmp10_) {
 
440
                g_action_group_activate_action ((GActionGroup*) self, "wide-mode", NULL);
 
441
        }
 
442
        g_application_activate ((GApplication*) self);
 
443
        result = 0;
 
444
        _g_variant_dict_unref0 (opts);
 
445
        return result;
 
446
}
 
447
 
 
448
 
 
449
static gint cheese_application_real_handle_local_options (GApplication* base, GVariantDict* opts) {
 
450
        CheeseApplication * self;
 
451
        gint result = 0;
 
452
        GVariantDict* _tmp0_ = NULL;
 
453
        gboolean _tmp1_ = FALSE;
 
454
        self = (CheeseApplication*) base;
 
455
        g_return_val_if_fail (opts != NULL, 0);
 
456
        _tmp0_ = opts;
 
457
        _tmp1_ = g_variant_dict_contains (_tmp0_, "version");
 
458
        if (_tmp1_) {
 
459
                FILE* _tmp2_ = NULL;
 
460
                _tmp2_ = stdout;
 
461
                fprintf (_tmp2_, "%s %s\n", PACKAGE_NAME, PACKAGE_VERSION);
 
462
                result = 0;
595
463
                return result;
596
464
        }
597
 
        __finally0:
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_);
601
 
                return FALSE;
602
 
        }
603
 
        _tmp2_ = *argv;
604
 
        _tmp2__length1 = _vala_array_length (*argv);
605
 
        arguments = _tmp2_;
606
 
        arguments_length1 = _tmp2__length1;
607
 
        _arguments_size_ = arguments_length1;
608
 
        _tmp3_ = arguments;
609
 
        _tmp3__length1 = arguments_length1;
610
 
        n_args = _tmp3__length1;
611
 
        _tmp4_ = n_args;
612
 
        if (_tmp4_ <= 1) {
613
 
                g_application_activate ((GApplication*) self);
614
 
                _vala_exit_status = 0;
615
 
        } else {
616
 
                gboolean _tmp18_ = FALSE;
617
 
                const gchar* _tmp20_ = NULL;
618
 
                gboolean _tmp23_ = FALSE;
619
 
                gboolean _tmp24_ = FALSE;
620
 
                {
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_);
630
 
                        context = _tmp6_;
631
 
                        _tmp7_ = context;
632
 
                        g_option_context_set_translation_domain (_tmp7_, GETTEXT_PACKAGE);
633
 
                        _tmp8_ = context;
634
 
                        g_option_context_set_help_enabled (_tmp8_, TRUE);
635
 
                        _tmp9_ = context;
636
 
                        g_option_context_add_main_entries (_tmp9_, CHEESE_APPLICATION_options, NULL);
637
 
                        _tmp10_ = context;
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;
643
 
                                }
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_);
647
 
                                return FALSE;
648
 
                        }
649
 
                        _g_option_context_free0 (context);
650
 
                }
651
 
                goto __finally1;
652
 
                __catch1_g_option_error:
653
 
                {
654
 
                        GError* e = NULL;
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;
663
 
                        e = _inner_error_;
664
 
                        _inner_error_ = NULL;
665
 
                        _tmp11_ = e;
666
 
                        _tmp12_ = _tmp11_->message;
667
 
                        g_warning ("cheese-application.vala:229: %s", _tmp12_);
668
 
                        _tmp13_ = stdout;
669
 
                        _tmp14_ = _ ("Run '%s --help' to see a full list of available command line options.");
670
 
                        _tmp15_ = arguments;
671
 
                        _tmp15__length1 = arguments_length1;
672
 
                        _tmp16_ = _tmp15_[0];
673
 
                        fprintf (_tmp13_, _tmp14_, _tmp16_);
674
 
                        _tmp17_ = stdout;
675
 
                        fprintf (_tmp17_, "\n");
676
 
                        _vala_exit_status = 1;
677
 
                        result = TRUE;
678
 
                        _g_error_free0 (e);
679
 
                        if (exit_status) {
680
 
                                *exit_status = _vala_exit_status;
681
 
                        }
682
 
                        return result;
683
 
                }
684
 
                __finally1:
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_);
688
 
                        return FALSE;
689
 
                }
690
 
                _tmp18_ = cheese_application_version;
691
 
                if (_tmp18_) {
692
 
                        FILE* _tmp19_ = NULL;
693
 
                        _tmp19_ = stdout;
694
 
                        fprintf (_tmp19_, "%s %s\n", PACKAGE_NAME, PACKAGE_VERSION);
695
 
                        _vala_exit_status = 1;
696
 
                        result = TRUE;
697
 
                        if (exit_status) {
698
 
                                *exit_status = _vala_exit_status;
699
 
                        }
700
 
                        return result;
701
 
                }
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_);
709
 
                }
710
 
                _tmp23_ = cheese_application_fullscreen;
711
 
                if (_tmp23_) {
712
 
                        g_action_group_activate_action ((GActionGroup*) self, "fullscreen", NULL);
713
 
                }
714
 
                _tmp24_ = cheese_application_wide;
715
 
                if (_tmp24_) {
716
 
                        g_action_group_activate_action ((GActionGroup*) self, "wide-mode", NULL);
717
 
                }
718
 
                g_application_activate ((GApplication*) self);
719
 
                _vala_exit_status = 0;
720
 
        }
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_;
723
 
        result = _tmp26_;
724
 
        if (exit_status) {
725
 
                *exit_status = _vala_exit_status;
726
 
        }
 
465
        result = -1;
727
466
        return result;
728
467
}
729
468
 
732
471
     * Setup the camera listed in GSettings.
733
472
     */
734
473
static void _cheese_application_on_camera_state_flags_changed_cheese_camera_state_flags_changed (CheeseCamera* _sender, GstState new_state, gpointer self) {
735
 
        cheese_application_on_camera_state_flags_changed (self, new_state);
 
474
        cheese_application_on_camera_state_flags_changed ((CheeseApplication*) self, new_state);
736
475
}
737
476
 
738
477
 
812
551
                _tmp19_ = cheese_application_device;
813
552
                cheese_camera_setup (_tmp18_, _tmp19_, &_inner_error_);
814
553
                if (_inner_error_ != NULL) {
815
 
                        goto __catch2_g_error;
 
554
                        goto __catch0_g_error;
816
555
                }
817
556
        }
818
 
        goto __finally2;
819
 
        __catch2_g_error:
 
557
        goto __finally0;
 
558
        __catch0_g_error:
820
559
        {
821
560
                GError* err = NULL;
822
561
                ClutterTexture* _tmp20_ = NULL;
831
570
                clutter_actor_hide ((ClutterActor*) _tmp20_);
832
571
                _tmp21_ = err;
833
572
                _tmp22_ = _tmp21_->message;
834
 
                g_message ("cheese-application.vala:291: Error during camera setup: %s\n", _tmp22_);
 
573
                g_message ("cheese-application.vala:215: Error during camera setup: %s\n", _tmp22_);
835
574
                _tmp23_ = cheese_application_main_window;
836
575
                _tmp24_ = err;
837
576
                _tmp25_ = _tmp24_->message;
843
582
                _g_object_unref0 (effects);
844
583
                return;
845
584
        }
846
 
        __finally2:
 
585
        __finally0:
847
586
        if (_inner_error_ != NULL) {
848
587
                _g_object_unref0 (video_preview);
849
588
                _g_object_unref0 (shoot);
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};
928
 
        guint _tmp23_ = 0U;
 
665
        GdkEventKey* _tmp17_ = NULL;
 
666
        guint _tmp18_ = 0U;
929
667
        g_return_val_if_fail (self != NULL, FALSE);
930
668
        g_return_val_if_fail (event != NULL, FALSE);
931
 
        _tmp1_ = *event;
932
 
        _tmp2_ = _tmp1_.state;
 
669
        _tmp1_ = event;
 
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;
944
 
                _tmp7_ = *event;
945
 
                _tmp8_ = _tmp7_.state;
 
678
                _tmp7_ = event;
 
679
                _tmp8_ = _tmp7_->state;
946
680
                if ((_tmp8_ & GDK_CONTROL_MASK) != 0) {
947
681
                        _tmp6_ = TRUE;
948
682
                } else {
949
 
                        GdkEventKey _tmp9_ = {0};
 
683
                        GdkEventKey* _tmp9_ = NULL;
950
684
                        GdkModifierType _tmp10_ = 0;
951
 
                        _tmp9_ = *event;
952
 
                        _tmp10_ = _tmp9_.state;
 
685
                        _tmp9_ = event;
 
686
                        _tmp10_ = _tmp9_->state;
953
687
                        _tmp6_ = (_tmp10_ & GDK_MOD1_MASK) != 0;
954
688
                }
955
 
                _tmp11_ = _tmp6_;
956
 
                if (_tmp11_) {
 
689
                if (_tmp6_) {
957
690
                        _tmp5_ = TRUE;
958
691
                } else {
959
 
                        GdkEventKey _tmp12_ = {0};
960
 
                        GdkModifierType _tmp13_ = 0;
961
 
                        _tmp12_ = *event;
962
 
                        _tmp13_ = _tmp12_.state;
963
 
                        _tmp5_ = (_tmp13_ & GDK_MOD3_MASK) != 0;
 
692
                        GdkEventKey* _tmp11_ = NULL;
 
693
                        GdkModifierType _tmp12_ = 0;
 
694
                        _tmp11_ = event;
 
695
                        _tmp12_ = _tmp11_->state;
 
696
                        _tmp5_ = (_tmp12_ & GDK_MOD3_MASK) != 0;
964
697
                }
965
 
                _tmp14_ = _tmp5_;
966
 
                if (_tmp14_) {
 
698
                if (_tmp5_) {
967
699
                        _tmp4_ = TRUE;
968
700
                } else {
969
 
                        GdkEventKey _tmp15_ = {0};
 
701
                        GdkEventKey* _tmp13_ = NULL;
 
702
                        GdkModifierType _tmp14_ = 0;
 
703
                        _tmp13_ = event;
 
704
                        _tmp14_ = _tmp13_->state;
 
705
                        _tmp4_ = (_tmp14_ & GDK_MOD4_MASK) != 0;
 
706
                }
 
707
                if (_tmp4_) {
 
708
                        _tmp3_ = TRUE;
 
709
                } else {
 
710
                        GdkEventKey* _tmp15_ = NULL;
970
711
                        GdkModifierType _tmp16_ = 0;
971
 
                        _tmp15_ = *event;
972
 
                        _tmp16_ = _tmp15_.state;
973
 
                        _tmp4_ = (_tmp16_ & GDK_MOD4_MASK) != 0;
974
 
                }
975
 
                _tmp17_ = _tmp4_;
976
 
                if (_tmp17_) {
977
 
                        _tmp3_ = TRUE;
978
 
                } else {
979
 
                        GdkEventKey _tmp18_ = {0};
980
 
                        GdkModifierType _tmp19_ = 0;
981
 
                        _tmp18_ = *event;
982
 
                        _tmp19_ = _tmp18_.state;
983
 
                        _tmp3_ = (_tmp19_ & GDK_MOD5_MASK) != 0;
984
 
                }
985
 
                _tmp20_ = _tmp3_;
986
 
                _tmp0_ = _tmp20_;
 
712
                        _tmp15_ = event;
 
713
                        _tmp16_ = _tmp15_->state;
 
714
                        _tmp3_ = (_tmp16_ & GDK_MOD5_MASK) != 0;
 
715
                }
 
716
                _tmp0_ = _tmp3_;
987
717
        } else {
988
718
                _tmp0_ = FALSE;
989
719
        }
990
 
        _tmp21_ = _tmp0_;
991
 
        if (_tmp21_) {
 
720
        if (_tmp0_) {
992
721
                result = FALSE;
993
722
                return result;
994
723
        }
995
 
        _tmp22_ = *event;
996
 
        _tmp23_ = _tmp22_.keyval;
997
 
        switch (_tmp23_) {
 
724
        _tmp17_ = event;
 
725
        _tmp18_ = _tmp17_->keyval;
 
726
        switch (_tmp18_) {
998
727
                case GDK_KEY_WebCam:
999
728
                {
1000
729
                        g_action_group_activate_action ((GActionGroup*) self, "shoot", NULL);
1341
1070
        CheesePreferencesDialog* _tmp0_ = NULL;
1342
1071
        g_return_if_fail (self != NULL);
1343
1072
        _tmp0_ = self->priv->preferences_dialog;
1344
 
        cheese_preferences_dialog_show (_tmp0_);
 
1073
        gtk_widget_show ((GtkWidget*) _tmp0_);
1345
1074
}
1346
1075
 
1347
1076
 
1364
1093
                _tmp3_ = gtk_get_current_event_time ();
1365
1094
                gtk_show_uri (screen, "help:cheese", _tmp3_, &_inner_error_);
1366
1095
                if (_inner_error_ != NULL) {
1367
 
                        goto __catch3_g_error;
 
1096
                        goto __catch1_g_error;
1368
1097
                }
1369
1098
        }
1370
 
        goto __finally3;
1371
 
        __catch3_g_error:
 
1099
        goto __finally1;
 
1100
        __catch1_g_error:
1372
1101
        {
1373
1102
                GError* err = NULL;
1374
1103
                GError* _tmp4_ = NULL;
1377
1106
                _inner_error_ = NULL;
1378
1107
                _tmp4_ = err;
1379
1108
                _tmp5_ = _tmp4_->message;
1380
 
                g_message ("cheese-application.vala:554: Error opening help: %s", _tmp5_);
 
1109
                g_message ("cheese-application.vala:478: Error opening help: %s", _tmp5_);
1381
1110
                _g_error_free0 (err);
1382
1111
        }
1383
 
        __finally3:
 
1112
        __finally1:
1384
1113
        if (_inner_error_ != NULL) {
1385
1114
                _g_object_unref0 (screen);
1386
1115
                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);
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);
1579
1309
        if (!_tmp4_) {
1580
1310
                CheesePreferencesDialog* _tmp5_ = NULL;
1581
1311
                _tmp5_ = self->priv->preferences_dialog;
1582
 
                cheese_preferences_dialog_hide (_tmp5_);
 
1312
                gtk_widget_hide ((GtkWidget*) _tmp5_);
1583
1313
        }
1584
1314
        _g_object_unref0 (preferences);
1585
1315
}
1590
1320
        g_type_class_add_private (klass, sizeof (CheeseApplicationPrivate));
1591
1321
        G_APPLICATION_CLASS (klass)->startup = cheese_application_real_startup;
1592
1322
        G_APPLICATION_CLASS (klass)->activate = cheese_application_real_activate;
1593
 
        G_APPLICATION_CLASS (klass)->local_command_line = cheese_application_real_local_command_line;
 
1323
        G_APPLICATION_CLASS (klass)->command_line = cheese_application_real_command_line;
 
1324
        G_APPLICATION_CLASS (klass)->handle_local_options = cheese_application_real_handle_local_options;
1594
1325
        G_OBJECT_CLASS (klass)->finalize = cheese_application_finalize;
1595
1326
}
1596
1327
 
1640
1371
}
1641
1372
 
1642
1373
 
1643
 
static gint _vala_array_length (gpointer array) {
1644
 
        int length;
1645
 
        length = 0;
1646
 
        if (array) {
1647
 
                while (((gpointer*) array)[length]) {
1648
 
                        length++;
1649
 
                }
1650
 
        }
1651
 
        return length;
1652
 
}
1653
 
 
1654
 
 
1655
1374