255
255
g_return_if_fail (self != NULL);
256
256
_tmp0_ = gtk_application_get_windows ((GtkApplication*) self);
257
257
if (_tmp0_ != NULL) {
258
CheeseMainWindow* _tmp1_;
258
CheeseMainWindow* _tmp1_ = NULL;
259
259
_tmp1_ = cheese_main_main_window;
260
260
gtk_window_present ((GtkWindow*) _tmp1_);
262
GtkSettings* gtk_settings = NULL;
262
263
GtkSettings* _tmp2_ = NULL;
264
GtkSettings* gtk_settings;
266
CheeseMainWindow* _tmp6_;
264
GtkSettings* _tmp3_ = NULL;
265
GtkSettings* _tmp4_ = NULL;
266
CheeseMainWindow* _tmp6_ = NULL;
267
267
const gchar* _tmp7_ = NULL;
268
268
GtkIconTheme* _tmp8_ = NULL;
269
269
gchar* _tmp9_ = NULL;
270
gchar* _tmp10_ = NULL;
272
GMenu* _tmp11_ = NULL;
273
GMenu* section = NULL;
274
GMenu* _tmp12_ = NULL;
275
GMenu* _tmp13_ = NULL;
276
GMenu* _tmp14_ = NULL;
277
GMenuItem* item = NULL;
277
278
const gchar* _tmp15_ = NULL;
279
GMenuItem* _tmp16_ = NULL;
280
GMenuItem* _tmp17_ = NULL;
281
GMenu* _tmp18_ = NULL;
282
GMenuItem* _tmp19_ = NULL;
283
GMenu* _tmp20_ = NULL;
284
GMenu* _tmp21_ = NULL;
285
285
const gchar* _tmp22_ = NULL;
286
GMenu* _tmp23_ = NULL;
287
GMenu* _tmp24_ = NULL;
288
288
const gchar* _tmp25_ = NULL;
289
GMenu* _tmp26_ = NULL;
290
290
const gchar* _tmp27_ = NULL;
291
GMenu* _tmp28_ = NULL;
292
292
const gchar* _tmp29_ = NULL;
293
GMenu* _tmp30_ = NULL;
294
GMenu* _tmp31_ = NULL;
295
GMenu* _tmp32_ = NULL;
296
296
const gchar* _tmp33_ = NULL;
297
GMenuItem* _tmp34_ = NULL;
298
GMenuItem* _tmp35_ = NULL;
299
GMenu* _tmp36_ = NULL;
300
GMenuItem* _tmp37_ = NULL;
301
GMenu* _tmp38_ = NULL;
302
GMenu* _tmp39_ = NULL;
303
GMenu* _tmp40_ = NULL;
304
GMenu* _tmp41_ = NULL;
305
305
const gchar* _tmp42_ = NULL;
306
GMenu* _tmp43_ = NULL;
307
GMenu* _tmp44_ = NULL;
308
GMenu* _tmp45_ = NULL;
309
GMenu* _tmp46_ = NULL;
310
310
const gchar* _tmp47_ = NULL;
311
GMenu* _tmp48_ = NULL;
312
GMenu* _tmp49_ = NULL;
313
GMenu* _tmp50_ = NULL;
314
GMenu* _tmp51_ = NULL;
315
315
const gchar* _tmp52_ = NULL;
316
316
const gchar* _tmp53_ = NULL;
317
GMenuItem* _tmp54_ = NULL;
318
GMenuItem* _tmp55_ = NULL;
319
GMenu* _tmp56_ = NULL;
320
GMenuItem* _tmp57_ = NULL;
321
321
const gchar* _tmp58_ = NULL;
327
CheeseMainWindow* _tmp64_;
328
CheeseMainWindow* _tmp65_;
331
CheeseMainWindow* _tmp70_;
332
CheeseMainWindow* _tmp71_;
333
CheeseMainWindow* _tmp72_;
334
const gchar* _tmp73_;
335
CheeseCamera* _tmp74_;
336
CheesePreferencesDialog* _tmp75_;
322
GMenuItem* _tmp59_ = NULL;
323
GMenuItem* _tmp60_ = NULL;
324
GMenu* _tmp61_ = NULL;
325
GMenuItem* _tmp62_ = NULL;
326
GMenu* _tmp63_ = NULL;
327
CheeseMainWindow* _tmp64_ = NULL;
328
CheeseMainWindow* _tmp65_ = NULL;
329
gboolean _tmp66_ = FALSE;
330
gboolean _tmp68_ = FALSE;
331
CheeseMainWindow* _tmp70_ = NULL;
332
CheeseMainWindow* _tmp71_ = NULL;
333
CheeseMainWindow* _tmp72_ = NULL;
334
const gchar* _tmp73_ = NULL;
335
CheeseCamera* _tmp74_ = NULL;
336
CheesePreferencesDialog* _tmp75_ = NULL;
337
337
_tmp2_ = gtk_settings_get_default ();
338
338
_tmp3_ = _g_object_ref0 (_tmp2_);
339
339
gtk_settings = _tmp3_;
340
340
_tmp4_ = gtk_settings;
341
341
if (_tmp4_ != NULL) {
342
GtkSettings* _tmp5_ = NULL;
343
343
_tmp5_ = gtk_settings;
344
344
g_object_set (_tmp5_, "gtk-application-prefer-dark-theme", TRUE, NULL);
456
456
cheese_main_window_start_thumbview_monitors (_tmp65_);
457
457
_tmp66_ = cheese_main_wide;
459
CheeseMainWindow* _tmp67_;
459
CheeseMainWindow* _tmp67_ = NULL;
460
460
_tmp67_ = cheese_main_main_window;
461
461
cheese_main_window_set_startup_wide_mode (_tmp67_);
463
463
_tmp68_ = cheese_main_fullscreen;
465
CheeseMainWindow* _tmp69_;
465
CheeseMainWindow* _tmp69_ = NULL;
466
466
_tmp69_ = cheese_main_main_window;
467
467
cheese_main_window_set_startup_fullscreen_mode (_tmp69_);
555
555
g_application_activate ((GApplication*) self);
556
556
_vala_exit_status = 0;
558
gboolean _tmp25_ = FALSE;
559
559
gboolean _tmp27_ = FALSE;
561
GOptionContext* context = NULL;
561
562
const gchar* _tmp6_ = NULL;
562
GOptionContext* _tmp7_;
563
GOptionContext* context;
564
GOptionContext* _tmp8_;
565
GOptionContext* _tmp9_;
566
GOptionContext* _tmp10_;
567
GOptionContext* _tmp11_;
563
GOptionContext* _tmp7_ = NULL;
564
GOptionContext* _tmp8_ = NULL;
565
GOptionContext* _tmp9_ = NULL;
566
GOptionContext* _tmp10_ = NULL;
567
GOptionContext* _tmp11_ = NULL;
568
568
GOptionGroup* _tmp12_ = NULL;
569
GOptionContext* _tmp13_;
569
GOptionContext* _tmp13_ = NULL;
570
570
GOptionGroup* _tmp14_ = NULL;
571
GOptionContext* _tmp15_;
571
GOptionContext* _tmp15_ = NULL;
572
572
GOptionGroup* _tmp16_ = NULL;
573
GOptionContext* _tmp17_;
573
GOptionContext* _tmp17_ = NULL;
574
574
_tmp6_ = _ ("- Take photos and videos from your webcam");
575
575
_tmp7_ = g_option_context_new (_tmp6_);
576
576
context = _tmp7_;
693
693
void cheese_main_setup_camera (CheeseMain* self, const gchar* uri) {
694
GSettings* settings = NULL;
695
GSettings* _tmp0_ = NULL;
696
696
gchar* device = NULL;
697
697
gdouble value = 0.0;
698
698
gboolean _tmp1_ = FALSE;
701
CheeseMainWindow* _tmp11_;
699
const gchar* _tmp2_ = NULL;
700
gboolean _tmp6_ = FALSE;
701
ClutterTexture* video_preview = NULL;
702
CheeseMainWindow* _tmp11_ = NULL;
702
703
ClutterTexture* _tmp12_ = NULL;
703
ClutterTexture* video_preview;
704
ClutterTexture* _tmp13_;
705
const gchar* _tmp14_;
704
ClutterTexture* _tmp13_ = NULL;
705
const gchar* _tmp14_ = NULL;
706
GSettings* _tmp15_ = NULL;
707
707
gint _tmp16_ = 0;
708
GSettings* _tmp17_ = NULL;
709
709
gint _tmp18_ = 0;
710
CheeseCamera* _tmp19_;
712
gdouble _tmp26_ = 0.0;
715
gdouble _tmp31_ = 0.0;
710
CheeseCamera* _tmp19_ = NULL;
711
GSettings* _tmp34_ = NULL;
712
gdouble _tmp35_ = 0.0;
718
713
gdouble _tmp36_ = 0.0;
714
GSettings* _tmp39_ = NULL;
715
gdouble _tmp40_ = 0.0;
721
716
gdouble _tmp41_ = 0.0;
723
CheeseCamera* _tmp45_;
724
CheeseMainWindow* _tmp46_;
725
CheeseCamera* _tmp47_;
726
CheeseCamera* _tmp48_;
717
GSettings* _tmp44_ = NULL;
718
gdouble _tmp45_ = 0.0;
719
gdouble _tmp46_ = 0.0;
720
GSettings* _tmp49_ = NULL;
721
gdouble _tmp50_ = 0.0;
722
gdouble _tmp51_ = 0.0;
723
CheeseCamera* _tmp54_ = NULL;
724
CheeseMainWindow* _tmp55_ = NULL;
725
CheeseCamera* _tmp56_ = NULL;
726
CheeseCamera* _tmp57_ = NULL;
727
727
GError * _inner_error_ = NULL;
728
728
g_return_if_fail (self != NULL);
729
729
_tmp0_ = g_settings_new ("org.gnome.Cheese");
730
730
settings = _tmp0_;
732
732
if (_tmp2_ != NULL) {
733
const gchar* _tmp3_ = NULL;
737
737
_tmp4_ = strlen (_tmp3_);
782
782
__catch13_g_error:
784
784
GError* err = NULL;
785
ClutterTexture* _tmp22_;
787
const gchar* _tmp24_;
785
ClutterTexture* _tmp22_ = NULL;
786
GError* _tmp23_ = NULL;
787
const gchar* _tmp24_ = NULL;
788
GSimpleAction* shoot = NULL;
789
GAction* _tmp25_ = NULL;
790
GSimpleAction* _tmp26_ = NULL;
791
GSimpleAction* effects = NULL;
792
GAction* _tmp27_ = NULL;
793
GSimpleAction* _tmp28_ = NULL;
794
GSimpleAction* mode = NULL;
795
GAction* _tmp29_ = NULL;
796
GSimpleAction* _tmp30_ = NULL;
797
GSimpleAction* _tmp31_ = NULL;
798
GSimpleAction* _tmp32_ = NULL;
799
GSimpleAction* _tmp33_ = NULL;
788
800
err = _inner_error_;
789
801
_inner_error_ = NULL;
790
802
_tmp22_ = video_preview;
793
805
_tmp24_ = _tmp23_->message;
794
806
g_warning ("cheese-main.vala:256: Error: %s\n", _tmp24_);
807
_tmp25_ = g_action_map_lookup_action ((GActionMap*) self, "shoot");
808
_tmp26_ = _g_object_ref0 (G_TYPE_CHECK_INSTANCE_TYPE (_tmp25_, g_simple_action_get_type ()) ? ((GSimpleAction*) _tmp25_) : NULL);
810
_tmp27_ = g_action_map_lookup_action ((GActionMap*) self, "effects");
811
_tmp28_ = _g_object_ref0 (G_TYPE_CHECK_INSTANCE_TYPE (_tmp27_, g_simple_action_get_type ()) ? ((GSimpleAction*) _tmp27_) : NULL);
813
_tmp29_ = g_action_map_lookup_action ((GActionMap*) self, "mode");
814
_tmp30_ = _g_object_ref0 (G_TYPE_CHECK_INSTANCE_TYPE (_tmp29_, g_simple_action_get_type ()) ? ((GSimpleAction*) _tmp29_) : NULL);
817
g_simple_action_set_enabled (_tmp31_, FALSE);
819
g_simple_action_set_enabled (_tmp32_, FALSE);
821
g_simple_action_set_enabled (_tmp33_, FALSE);
822
_g_object_unref0 (mode);
823
_g_object_unref0 (effects);
824
_g_object_unref0 (shoot);
795
825
_g_error_free0 (err);
796
826
_g_object_unref0 (video_preview);
797
827
_g_free0 (device);
807
837
g_clear_error (&_inner_error_);
811
_tmp26_ = g_settings_get_double (_tmp25_, "brightness");
814
if (_tmp27_ != 0.0) {
815
CheeseCamera* _tmp28_;
817
_tmp28_ = self->priv->camera;
819
cheese_camera_set_balance_property (_tmp28_, "brightness", _tmp29_);
822
_tmp31_ = g_settings_get_double (_tmp30_, "contrast");
825
if (_tmp32_ != 1.0) {
826
CheeseCamera* _tmp33_;
828
_tmp33_ = self->priv->camera;
830
cheese_camera_set_balance_property (_tmp33_, "contrast", _tmp34_);
833
_tmp36_ = g_settings_get_double (_tmp35_, "hue");
836
if (_tmp37_ != 0.0) {
837
CheeseCamera* _tmp38_;
839
_tmp38_ = self->priv->camera;
841
cheese_camera_set_balance_property (_tmp38_, "hue", _tmp39_);
844
_tmp41_ = g_settings_get_double (_tmp40_, "saturation");
847
if (_tmp42_ != 1.0) {
848
CheeseCamera* _tmp43_;
850
_tmp43_ = self->priv->camera;
852
cheese_camera_set_balance_property (_tmp43_, "saturation", _tmp44_);
854
_tmp45_ = self->priv->camera;
855
g_signal_connect_object (_tmp45_, "state-flags-changed", (GCallback) _cheese_main_on_camera_state_flags_changed_cheese_camera_state_flags_changed, self, 0);
856
_tmp46_ = cheese_main_main_window;
857
_tmp47_ = self->priv->camera;
858
cheese_main_window_set_camera (_tmp46_, _tmp47_);
859
_tmp48_ = self->priv->camera;
860
cheese_camera_play (_tmp48_);
841
_tmp35_ = g_settings_get_double (_tmp34_, "brightness");
844
if (_tmp36_ != 0.0) {
845
CheeseCamera* _tmp37_ = NULL;
846
gdouble _tmp38_ = 0.0;
847
_tmp37_ = self->priv->camera;
849
cheese_camera_set_balance_property (_tmp37_, "brightness", _tmp38_);
852
_tmp40_ = g_settings_get_double (_tmp39_, "contrast");
855
if (_tmp41_ != 1.0) {
856
CheeseCamera* _tmp42_ = NULL;
857
gdouble _tmp43_ = 0.0;
858
_tmp42_ = self->priv->camera;
860
cheese_camera_set_balance_property (_tmp42_, "contrast", _tmp43_);
863
_tmp45_ = g_settings_get_double (_tmp44_, "hue");
866
if (_tmp46_ != 0.0) {
867
CheeseCamera* _tmp47_ = NULL;
868
gdouble _tmp48_ = 0.0;
869
_tmp47_ = self->priv->camera;
871
cheese_camera_set_balance_property (_tmp47_, "hue", _tmp48_);
874
_tmp50_ = g_settings_get_double (_tmp49_, "saturation");
877
if (_tmp51_ != 1.0) {
878
CheeseCamera* _tmp52_ = NULL;
879
gdouble _tmp53_ = 0.0;
880
_tmp52_ = self->priv->camera;
882
cheese_camera_set_balance_property (_tmp52_, "saturation", _tmp53_);
884
_tmp54_ = self->priv->camera;
885
g_signal_connect_object (_tmp54_, "state-flags-changed", (GCallback) _cheese_main_on_camera_state_flags_changed_cheese_camera_state_flags_changed, self, 0);
886
_tmp55_ = cheese_main_main_window;
887
_tmp56_ = self->priv->camera;
888
cheese_main_window_set_camera (_tmp55_, _tmp56_);
889
_tmp57_ = self->priv->camera;
890
cheese_camera_play (_tmp57_);
861
891
_g_object_unref0 (video_preview);
862
892
_g_free0 (device);
863
893
_g_object_unref0 (settings);
888
918
gboolean _tmp4_ = FALSE;
889
919
gboolean _tmp5_ = FALSE;
890
920
gboolean _tmp6_ = FALSE;
892
GdkModifierType _tmp8_;
921
GdkEventKey _tmp7_ = {0};
922
GdkModifierType _tmp8_ = 0;
923
gboolean _tmp11_ = FALSE;
924
gboolean _tmp14_ = FALSE;
925
gboolean _tmp17_ = FALSE;
926
gboolean _tmp20_ = FALSE;
898
928
_tmp8_ = _tmp7_.state;
899
929
if ((_tmp8_ & GDK_CONTROL_MASK) != 0) {
903
GdkModifierType _tmp10_;
932
GdkEventKey _tmp9_ = {0};
933
GdkModifierType _tmp10_ = 0;
905
935
_tmp10_ = _tmp9_.state;
906
936
_tmp6_ = (_tmp10_ & GDK_MOD1_MASK) != 0;
994
1024
* @param mode the mode to set
996
1026
static void cheese_main_update_mode (CheeseMain* self, CheeseMediaMode mode) {
997
CheeseMainWindow* _tmp0_;
998
CheeseMediaMode _tmp1_;
999
CheesePreferencesDialog* _tmp2_;
1000
CheeseMediaMode _tmp3_;
1027
CheeseMainWindow* _tmp0_ = NULL;
1028
CheeseMediaMode _tmp1_ = 0;
1029
CheesePreferencesDialog* _tmp2_ = NULL;
1030
CheeseMediaMode _tmp3_ = 0;
1001
1031
g_return_if_fail (self != NULL);
1002
1032
_tmp0_ = cheese_main_main_window;
1151
1181
if (g_strcmp0 (_tmp4_, "photo") == 0) {
1152
1182
cheese_main_update_mode (self, CHEESE_MEDIA_MODE_PHOTO);
1154
const gchar* _tmp5_;
1184
const gchar* _tmp5_ = NULL;
1155
1185
_tmp5_ = state;
1156
1186
if (g_strcmp0 (_tmp5_, "video") == 0) {
1157
1187
cheese_main_update_mode (self, CHEESE_MEDIA_MODE_VIDEO);
1159
const gchar* _tmp6_;
1189
const gchar* _tmp6_ = NULL;
1160
1190
_tmp6_ = state;
1161
1191
if (g_strcmp0 (_tmp6_, "burst") == 0) {
1162
1192
cheese_main_update_mode (self, CHEESE_MEDIA_MODE_BURST);
1187
1217
* Show the Cheese help contents.
1189
1219
static void cheese_main_on_help (CheeseMain* self) {
1190
CheeseMainWindow* _tmp0_;
1220
GdkScreen* screen = NULL;
1221
CheeseMainWindow* _tmp0_ = NULL;
1191
1222
GdkScreen* _tmp1_ = NULL;
1223
GdkScreen* _tmp2_ = NULL;
1194
1224
GError * _inner_error_ = NULL;
1195
1225
g_return_if_fail (self != NULL);
1196
1226
_tmp0_ = cheese_main_main_window;
1233
1263
* Show the about dialog.
1235
1265
static void cheese_main_on_about (CheeseMain* self) {
1266
gchar** artists = NULL;
1267
gchar* _tmp0_ = NULL;
1268
gchar* _tmp1_ = NULL;
1269
gchar* _tmp2_ = NULL;
1270
gchar* _tmp3_ = NULL;
1271
gchar* _tmp4_ = NULL;
1272
gchar* _tmp5_ = NULL;
1242
1273
gchar** _tmp6_ = NULL;
1244
gint artists_length1;
1245
gint _artists_size_;
1274
gint artists_length1 = 0;
1275
gint _artists_size_ = 0;
1276
gchar** authors = NULL;
1277
gchar* _tmp7_ = NULL;
1278
gchar* _tmp8_ = NULL;
1279
gchar* _tmp9_ = NULL;
1280
gchar* _tmp10_ = NULL;
1281
gchar* _tmp11_ = NULL;
1282
gchar* _tmp12_ = NULL;
1283
gchar* _tmp13_ = NULL;
1284
gchar* _tmp14_ = NULL;
1285
gchar* _tmp15_ = NULL;
1286
gchar* _tmp16_ = NULL;
1287
gchar* _tmp17_ = NULL;
1288
gchar* _tmp18_ = NULL;
1289
gchar* _tmp19_ = NULL;
1290
gchar* _tmp20_ = NULL;
1291
gchar* _tmp21_ = NULL;
1292
gchar* _tmp22_ = NULL;
1293
gchar* _tmp23_ = NULL;
1294
gchar* _tmp24_ = NULL;
1295
gchar* _tmp25_ = NULL;
1296
gchar* _tmp26_ = NULL;
1297
gchar* _tmp27_ = NULL;
1298
gchar* _tmp28_ = NULL;
1299
gchar* _tmp29_ = NULL;
1300
gchar* _tmp30_ = NULL;
1301
gchar* _tmp31_ = NULL;
1302
gchar* _tmp32_ = NULL;
1303
gchar* _tmp33_ = NULL;
1273
1304
gchar** _tmp34_ = NULL;
1275
gint authors_length1;
1276
gint _authors_size_;
1305
gint authors_length1 = 0;
1306
gint _authors_size_ = 0;
1307
gchar** documenters = NULL;
1308
gchar* _tmp35_ = NULL;
1309
gchar* _tmp36_ = NULL;
1310
gchar* _tmp37_ = NULL;
1280
1311
gchar** _tmp38_ = NULL;
1281
gchar** documenters;
1282
gint documenters_length1;
1283
gint _documenters_size_;
1284
CheeseMainWindow* _tmp39_;
1312
gint documenters_length1 = 0;
1313
gint _documenters_size_ = 0;
1314
CheeseMainWindow* _tmp39_ = NULL;
1285
1315
const gchar* _tmp40_ = NULL;
1286
1316
const gchar* _tmp41_ = NULL;
1287
1317
const gchar* _tmp42_ = NULL;