summaryrefslogtreecommitdiff
path: root/src/CollectionPage.c
blob: 991dadb8f544d440c49625a7f622ae2dd9a60451 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
888
889
890
891
892
893
894
895
896
897
898
899
900
901
902
903
904
905
906
907
908
909
910
911
912
913
914
915
916
917
918
919
920
921
922
923
924
925
926
927
928
929
930
931
932
933
934
935
936
937
938
939
940
941
942
943
944
945
946
947
948
949
950
951
952
953
954
955
956
957
958
959
960
961
962
963
964
965
966
967
968
969
970
971
972
973
974
975
976
977
978
979
980
981
982
983
984
985
986
987
988
989
990
991
992
993
994
995
996
997
998
999
1000
1001
1002
1003
1004
1005
1006
1007
1008
1009
1010
1011
1012
1013
1014
1015
1016
1017
1018
1019
1020
1021
1022
1023
1024
1025
1026
1027
1028
1029
1030
1031
1032
1033
1034
1035
1036
1037
1038
1039
1040
1041
1042
1043
1044
1045
1046
1047
1048
1049
1050
1051
1052
1053
1054
1055
1056
1057
1058
1059
1060
1061
1062
1063
1064
1065
1066
1067
1068
1069
1070
1071
1072
1073
1074
1075
1076
1077
1078
1079
1080
1081
1082
1083
1084
1085
1086
1087
1088
1089
1090
1091
1092
1093
1094
1095
1096
1097
1098
1099
1100
1101
1102
1103
1104
1105
1106
1107
1108
1109
1110
1111
1112
1113
1114
1115
1116
1117
1118
1119
1120
1121
1122
1123
1124
1125
1126
1127
1128
1129
1130
1131
1132
1133
1134
1135
1136
1137
1138
1139
1140
1141
1142
1143
1144
1145
1146
1147
1148
1149
1150
1151
1152
1153
1154
1155
1156
1157
1158
1159
1160
1161
1162
1163
1164
1165
1166
1167
1168
1169
1170
1171
1172
1173
1174
1175
1176
1177
1178
1179
1180
1181
1182
1183
1184
1185
1186
1187
1188
1189
1190
1191
1192
1193
1194
1195
1196
1197
1198
1199
1200
1201
1202
1203
1204
1205
1206
1207
1208
1209
1210
1211
1212
1213
1214
1215
1216
1217
1218
1219
1220
1221
1222
1223
1224
1225
1226
1227
1228
1229
1230
1231
1232
1233
1234
1235
1236
1237
1238
1239
1240
1241
1242
1243
1244
1245
1246
1247
1248
1249
1250
1251
1252
1253
1254
1255
1256
1257
1258
1259
1260
1261
1262
1263
1264
1265
1266
1267
1268
1269
1270
1271
1272
1273
1274
1275
1276
1277
1278
1279
1280
1281
1282
1283
1284
1285
1286
1287
1288
1289
1290
1291
1292
1293
1294
1295
1296
1297
1298
1299
1300
1301
1302
1303
1304
1305
1306
1307
1308
1309
1310
1311
1312
1313
1314
1315
1316
1317
1318
1319
1320
1321
1322
1323
1324
1325
1326
1327
1328
1329
1330
1331
1332
1333
1334
1335
1336
1337
1338
1339
1340
1341
1342
1343
1344
1345
1346
1347
1348
1349
1350
1351
1352
1353
1354
1355
1356
1357
1358
1359
1360
1361
1362
1363
1364
1365
1366
1367
1368
1369
1370
1371
1372
1373
1374
1375
1376
1377
1378
1379
1380
1381
1382
1383
1384
1385
1386
1387
1388
1389
1390
1391
1392
1393
1394
1395
1396
1397
1398
1399
1400
1401
1402
1403
1404
1405
1406
1407
1408
1409
1410
1411
1412
1413
1414
1415
1416
1417
1418
1419
1420
1421
1422
1423
1424
1425
1426
1427
1428
1429
1430
1431
1432
1433
1434
1435
1436
1437
1438
1439
1440
1441
1442
1443
1444
1445
1446
1447
1448
1449
1450
1451
1452
1453
1454
1455
1456
1457
1458
1459
1460
1461
1462
1463
1464
1465
1466
1467
1468
1469
1470
1471
1472
1473
1474
1475
1476
1477
1478
1479
1480
1481
1482
1483
1484
1485
1486
1487
1488
1489
1490
1491
1492
1493
1494
1495
1496
1497
1498
1499
1500
1501
1502
1503
1504
1505
1506
1507
1508
1509
1510
1511
1512
1513
1514
1515
1516
1517
1518
1519
1520
1521
1522
1523
1524
1525
1526
1527
1528
1529
1530
1531
1532
1533
1534
1535
1536
1537
1538
1539
1540
1541
1542
1543
1544
1545
1546
1547
1548
1549
1550
1551
1552
1553
1554
1555
1556
1557
1558
1559
1560
1561
1562
1563
1564
1565
1566
1567
1568
1569
1570
1571
1572
1573
1574
1575
1576
1577
1578
1579
1580
1581
1582
1583
1584
1585
1586
1587
1588
1589
1590
1591
1592
1593
1594
1595
1596
1597
1598
1599
1600
1601
1602
1603
1604
1605
1606
1607
1608
1609
1610
1611
1612
1613
1614
1615
1616
1617
1618
1619
1620
1621
1622
1623
1624
1625
1626
1627
1628
1629
1630
1631
1632
1633
1634
1635
1636
1637
1638
1639
1640
1641
1642
1643
1644
1645
1646
1647
1648
1649
1650
1651
1652
1653
1654
1655
1656
1657
1658
1659
1660
1661
1662
1663
1664
1665
1666
1667
1668
1669
1670
1671
1672
1673
1674
1675
1676
1677
1678
1679
1680
1681
1682
1683
1684
1685
1686
1687
1688
1689
1690
1691
1692
1693
1694
1695
1696
1697
1698
1699
1700
1701
1702
1703
1704
1705
1706
1707
1708
1709
1710
1711
1712
1713
1714
1715
1716
1717
1718
1719
1720
1721
1722
1723
1724
1725
1726
1727
1728
1729
1730
1731
1732
1733
1734
1735
1736
1737
1738
1739
1740
1741
1742
1743
1744
1745
1746
1747
1748
1749
1750
1751
1752
1753
1754
1755
1756
1757
1758
1759
1760
1761
1762
1763
1764
1765
1766
1767
1768
1769
1770
1771
1772
1773
1774
1775
1776
1777
1778
1779
1780
1781
1782
1783
1784
1785
1786
1787
1788
1789
1790
1791
1792
1793
1794
1795
1796
1797
1798
1799
1800
1801
1802
1803
1804
1805
1806
1807
1808
1809
1810
1811
1812
1813
1814
1815
1816
1817
1818
1819
1820
1821
1822
1823
1824
1825
1826
1827
1828
1829
1830
1831
1832
1833
1834
1835
1836
1837
1838
1839
1840
1841
1842
1843
1844
1845
1846
1847
1848
1849
1850
1851
1852
1853
1854
1855
1856
1857
1858
1859
1860
1861
1862
1863
1864
1865
1866
1867
1868
1869
1870
1871
1872
1873
1874
1875
1876
1877
1878
1879
1880
1881
1882
1883
1884
1885
1886
1887
1888
1889
1890
1891
1892
1893
1894
1895
1896
1897
1898
1899
1900
1901
1902
1903
1904
1905
1906
1907
1908
1909
1910
1911
1912
1913
1914
1915
1916
1917
1918
1919
1920
1921
1922
1923
1924
1925
1926
1927
1928
1929
1930
1931
1932
1933
1934
1935
1936
1937
1938
1939
1940
1941
1942
1943
1944
1945
1946
1947
1948
1949
1950
1951
1952
1953
1954
1955
1956
1957
1958
1959
1960
1961
1962
1963
1964
1965
1966
1967
1968
1969
1970
1971
1972
1973
1974
1975
1976
1977
1978
1979
1980
1981
1982
1983
1984
1985
1986
1987
1988
1989
1990
1991
1992
1993
1994
1995
1996
1997
1998
1999
2000
2001
2002
2003
2004
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
2025
2026
2027
2028
2029
2030
2031
2032
2033
2034
2035
2036
2037
2038
2039
2040
2041
2042
2043
2044
2045
2046
2047
2048
2049
2050
2051
2052
2053
2054
2055
2056
2057
2058
2059
2060
2061
2062
2063
2064
2065
2066
2067
2068
2069
2070
2071
2072
2073
2074
2075
2076
2077
2078
2079
2080
2081
2082
2083
2084
2085
2086
2087
2088
2089
2090
2091
2092
2093
2094
2095
2096
2097
2098
2099
2100
2101
2102
2103
2104
2105
2106
2107
2108
2109
2110
2111
2112
2113
2114
2115
2116
2117
2118
2119
2120
2121
2122
2123
2124
2125
2126
2127
2128
2129
2130
2131
2132
2133
2134
2135
2136
2137
2138
2139
2140
2141
2142
2143
2144
2145
2146
2147
2148
2149
2150
2151
2152
2153
2154
2155
2156
2157
2158
2159
2160
2161
2162
2163
2164
2165
2166
2167
2168
2169
2170
2171
2172
2173
2174
2175
2176
2177
2178
2179
2180
2181
2182
2183
2184
2185
2186
2187
2188
2189
2190
2191
2192
2193
2194
2195
2196
2197
2198
2199
2200
2201
2202
2203
2204
2205
2206
2207
2208
2209
2210
2211
2212
2213
2214
2215
2216
2217
2218
2219
2220
2221
2222
2223
2224
2225
2226
2227
2228
2229
2230
2231
2232
2233
2234
2235
2236
2237
2238
2239
2240
2241
2242
2243
2244
2245
2246
2247
2248
2249
2250
2251
2252
2253
2254
2255
2256
2257
2258
2259
2260
2261
2262
2263
2264
2265
2266
2267
2268
2269
2270
2271
2272
2273
2274
2275
2276
2277
2278
2279
2280
2281
2282
2283
2284
2285
2286
2287
2288
2289
2290
2291
2292
2293
2294
2295
2296
2297
2298
2299
2300
2301
2302
2303
2304
2305
2306
2307
2308
2309
2310
2311
2312
2313
2314
2315
2316
2317
2318
2319
2320
2321
2322
2323
2324
2325
2326
2327
2328
2329
2330
2331
2332
2333
2334
2335
2336
2337
2338
2339
2340
2341
2342
2343
2344
2345
2346
2347
2348
2349
2350
2351
2352
2353
2354
2355
2356
2357
2358
2359
2360
2361
2362
2363
2364
2365
2366
2367
2368
2369
2370
2371
2372
2373
2374
2375
2376
2377
2378
2379
2380
2381
2382
2383
2384
2385
2386
2387
2388
2389
2390
2391
2392
2393
2394
2395
2396
2397
2398
2399
2400
2401
2402
2403
2404
2405
2406
2407
2408
2409
2410
2411
2412
2413
2414
2415
2416
2417
2418
2419
2420
2421
2422
2423
2424
2425
2426
2427
2428
2429
2430
2431
2432
2433
2434
2435
2436
2437
2438
2439
2440
2441
2442
2443
2444
2445
2446
2447
2448
2449
2450
2451
2452
2453
2454
2455
2456
2457
2458
2459
2460
2461
2462
2463
2464
2465
2466
2467
2468
2469
2470
2471
2472
2473
2474
2475
2476
2477
2478
2479
2480
2481
2482
2483
2484
2485
2486
2487
2488
2489
2490
2491
2492
2493
2494
2495
2496
2497
2498
2499
2500
2501
2502
2503
2504
2505
2506
2507
2508
2509
2510
2511
2512
2513
2514
2515
2516
2517
2518
2519
2520
2521
2522
2523
2524
2525
2526
2527
2528
2529
2530
2531
2532
2533
2534
2535
2536
2537
2538
2539
2540
2541
2542
2543
2544
2545
2546
2547
2548
2549
2550
2551
2552
2553
2554
2555
2556
2557
2558
2559
2560
2561
2562
2563
2564
2565
2566
2567
2568
2569
2570
2571
2572
2573
2574
2575
2576
2577
2578
2579
2580
2581
2582
2583
2584
2585
2586
2587
2588
2589
2590
2591
2592
2593
2594
2595
2596
2597
2598
2599
2600
2601
2602
2603
2604
2605
2606
2607
2608
2609
2610
2611
2612
2613
2614
2615
2616
2617
2618
2619
2620
2621
2622
2623
2624
2625
2626
2627
2628
2629
2630
2631
2632
2633
2634
2635
2636
2637
2638
2639
2640
2641
2642
2643
2644
2645
2646
2647
2648
2649
2650
2651
2652
2653
2654
2655
2656
2657
2658
2659
2660
2661
2662
2663
2664
2665
2666
2667
2668
2669
2670
2671
2672
2673
2674
2675
2676
2677
2678
2679
2680
2681
2682
2683
2684
2685
2686
2687
2688
2689
2690
2691
2692
2693
2694
2695
2696
2697
2698
2699
2700
2701
2702
2703
2704
2705
2706
2707
2708
2709
2710
2711
2712
2713
2714
2715
2716
2717
2718
2719
2720
2721
2722
2723
2724
2725
2726
2727
2728
2729
2730
2731
2732
2733
2734
2735
2736
2737
2738
2739
2740
2741
2742
2743
2744
2745
2746
2747
2748
2749
2750
2751
2752
2753
2754
2755
2756
2757
2758
2759
2760
2761
2762
2763
2764
2765
2766
2767
2768
2769
2770
2771
2772
2773
2774
2775
2776
2777
2778
2779
2780
2781
2782
2783
2784
2785
2786
2787
2788
2789
2790
2791
2792
2793
2794
2795
2796
2797
2798
2799
2800
2801
2802
2803
2804
2805
2806
2807
2808
2809
2810
2811
2812
2813
2814
2815
2816
2817
2818
2819
2820
2821
2822
2823
2824
2825
2826
2827
2828
2829
2830
2831
2832
2833
2834
2835
2836
2837
2838
2839
2840
2841
2842
2843
2844
2845
2846
2847
2848
2849
2850
2851
2852
2853
2854
2855
2856
2857
2858
2859
2860
2861
2862
2863
2864
2865
2866
2867
2868
2869
2870
2871
2872
2873
2874
2875
2876
2877
2878
2879
2880
2881
2882
2883
2884
2885
2886
2887
2888
2889
2890
2891
2892
2893
2894
2895
2896
2897
2898
2899
2900
2901
2902
2903
2904
2905
2906
2907
2908
2909
2910
2911
2912
2913
2914
2915
2916
2917
2918
2919
2920
2921
2922
2923
2924
2925
2926
2927
2928
2929
2930
2931
2932
2933
2934
2935
2936
2937
2938
2939
2940
2941
2942
2943
2944
2945
2946
2947
2948
2949
2950
2951
2952
2953
2954
2955
2956
2957
2958
2959
2960
2961
2962
2963
2964
2965
2966
2967
2968
2969
2970
2971
2972
2973
2974
2975
2976
2977
2978
2979
2980
2981
2982
2983
2984
2985
2986
2987
2988
2989
2990
2991
2992
2993
2994
2995
2996
2997
2998
2999
3000
3001
3002
3003
3004
3005
3006
3007
3008
3009
3010
3011
3012
3013
3014
3015
3016
3017
3018
3019
3020
3021
3022
3023
3024
3025
3026
3027
3028
3029
3030
3031
3032
3033
3034
3035
3036
3037
3038
3039
3040
3041
3042
3043
3044
3045
3046
3047
3048
3049
3050
3051
3052
3053
3054
3055
3056
3057
3058
3059
3060
3061
3062
3063
3064
3065
3066
3067
3068
3069
3070
3071
3072
3073
3074
3075
3076
3077
3078
3079
3080
3081
3082
3083
3084
3085
3086
3087
3088
3089
3090
3091
3092
3093
3094
3095
3096
3097
3098
3099
3100
3101
3102
3103
3104
3105
3106
3107
3108
3109
3110
3111
3112
3113
3114
3115
3116
3117
3118
3119
3120
3121
3122
3123
3124
3125
3126
3127
3128
3129
3130
3131
3132
3133
3134
3135
3136
3137
3138
3139
3140
3141
3142
3143
3144
3145
3146
3147
3148
3149
3150
3151
3152
3153
3154
3155
3156
3157
3158
3159
3160
3161
3162
3163
3164
3165
3166
3167
3168
3169
3170
3171
3172
3173
3174
3175
3176
3177
3178
3179
3180
3181
3182
3183
3184
3185
3186
3187
3188
3189
3190
3191
3192
3193
3194
3195
3196
3197
3198
3199
3200
3201
3202
3203
3204
3205
3206
3207
3208
3209
3210
3211
3212
3213
3214
3215
3216
3217
3218
3219
3220
3221
3222
3223
3224
3225
3226
3227
3228
3229
3230
3231
3232
3233
3234
3235
3236
3237
3238
3239
3240
3241
3242
3243
3244
3245
3246
3247
3248
3249
3250
3251
3252
3253
3254
3255
3256
3257
3258
3259
3260
3261
3262
3263
3264
3265
3266
3267
3268
3269
3270
3271
3272
3273
3274
3275
3276
3277
3278
3279
3280
3281
3282
3283
3284
3285
3286
3287
3288
3289
3290
3291
3292
3293
3294
3295
3296
3297
3298
3299
3300
3301
3302
3303
3304
3305
3306
3307
3308
3309
3310
3311
3312
3313
3314
3315
3316
3317
3318
3319
3320
3321
3322
3323
3324
3325
3326
3327
3328
3329
3330
3331
3332
3333
3334
3335
3336
3337
3338
3339
3340
3341
3342
3343
3344
3345
3346
3347
3348
3349
3350
3351
3352
3353
3354
3355
3356
3357
3358
3359
3360
3361
3362
3363
3364
3365
3366
3367
3368
3369
3370
3371
3372
3373
3374
3375
3376
3377
3378
3379
3380
3381
3382
3383
3384
3385
3386
3387
3388
3389
3390
3391
3392
3393
3394
3395
3396
3397
3398
3399
3400
3401
3402
3403
3404
3405
3406
3407
3408
3409
3410
3411
3412
3413
3414
3415
3416
3417
3418
3419
3420
3421
3422
3423
3424
3425
3426
3427
3428
3429
3430
3431
3432
3433
3434
3435
3436
3437
3438
3439
3440
3441
3442
3443
3444
3445
3446
3447
3448
3449
3450
3451
3452
3453
3454
3455
3456
3457
3458
3459
3460
3461
3462
3463
3464
3465
3466
3467
3468
3469
3470
3471
3472
3473
3474
3475
3476
3477
3478
3479
3480
3481
3482
3483
3484
3485
3486
3487
3488
3489
3490
3491
3492
3493
3494
3495
3496
3497
3498
3499
3500
3501
3502
3503
3504
3505
3506
3507
3508
3509
3510
3511
3512
3513
3514
3515
3516
3517
3518
3519
3520
3521
3522
3523
3524
3525
3526
3527
3528
3529
3530
3531
3532
3533
3534
3535
3536
3537
3538
3539
3540
3541
3542
3543
3544
3545
3546
3547
3548
3549
3550
3551
3552
3553
3554
3555
3556
3557
3558
3559
3560
3561
3562
3563
3564
3565
3566
3567
3568
3569
3570
3571
3572
3573
3574
3575
3576
3577
3578
3579
3580
3581
3582
3583
3584
3585
3586
3587
3588
3589
3590
3591
3592
3593
3594
3595
3596
3597
3598
3599
3600
3601
3602
3603
3604
3605
3606
3607
3608
3609
3610
3611
3612
3613
3614
3615
3616
3617
3618
3619
3620
3621
3622
3623
3624
3625
3626
3627
3628
3629
3630
3631
3632
3633
3634
3635
3636
3637
3638
3639
3640
3641
3642
3643
3644
3645
3646
3647
3648
3649
3650
3651
3652
3653
3654
3655
3656
3657
3658
3659
3660
3661
3662
3663
3664
3665
3666
3667
3668
3669
3670
3671
3672
3673
3674
3675
3676
3677
3678
3679
3680
3681
3682
3683
3684
3685
3686
3687
3688
3689
3690
3691
3692
3693
3694
3695
3696
3697
3698
3699
3700
3701
3702
3703
3704
3705
3706
3707
3708
3709
3710
3711
3712
3713
3714
3715
3716
3717
3718
3719
3720
3721
3722
3723
3724
3725
3726
3727
3728
3729
3730
3731
3732
3733
3734
3735
3736
3737
3738
3739
3740
3741
3742
3743
3744
3745
3746
3747
3748
3749
3750
3751
3752
3753
3754
3755
3756
3757
3758
3759
3760
3761
3762
3763
3764
3765
3766
3767
3768
3769
3770
3771
3772
3773
3774
3775
3776
3777
3778
3779
3780
3781
3782
3783
3784
3785
3786
3787
3788
3789
3790
3791
3792
3793
3794
3795
3796
3797
3798
3799
3800
3801
3802
3803
3804
3805
3806
3807
3808
3809
3810
3811
3812
3813
3814
3815
3816
3817
3818
3819
3820
3821
3822
3823
3824
3825
3826
3827
3828
3829
3830
3831
3832
3833
3834
3835
3836
3837
3838
3839
3840
3841
3842
3843
3844
3845
3846
3847
3848
3849
3850
3851
3852
3853
3854
3855
3856
3857
3858
3859
3860
3861
3862
3863
3864
3865
3866
3867
3868
3869
3870
3871
3872
3873
3874
3875
3876
3877
3878
3879
3880
3881
3882
3883
3884
3885
3886
3887
3888
3889
3890
3891
3892
3893
3894
3895
3896
3897
3898
3899
3900
3901
3902
3903
3904
3905
3906
3907
3908
3909
3910
3911
3912
3913
3914
3915
3916
3917
3918
3919
3920
3921
3922
3923
3924
3925
3926
3927
3928
3929
3930
3931
3932
3933
3934
3935
3936
3937
3938
3939
3940
3941
3942
3943
3944
3945
3946
3947
3948
3949
3950
3951
3952
3953
3954
3955
3956
3957
3958
3959
3960
3961
3962
3963
3964
3965
3966
3967
3968
3969
3970
3971
3972
3973
3974
3975
3976
3977
3978
3979
3980
3981
3982
3983
3984
3985
3986
3987
3988
3989
3990
3991
3992
3993
3994
3995
3996
3997
3998
3999
4000
4001
4002
4003
4004
4005
4006
4007
4008
4009
4010
4011
4012
4013
4014
4015
4016
4017
4018
4019
4020
4021
4022
4023
4024
4025
4026
4027
4028
4029
4030
4031
4032
4033
4034
4035
4036
4037
4038
4039
4040
4041
4042
4043
4044
4045
4046
4047
4048
4049
4050
4051
4052
4053
4054
4055
4056
4057
4058
4059
4060
4061
4062
4063
4064
4065
4066
4067
4068
4069
4070
4071
4072
4073
4074
4075
4076
4077
4078
4079
4080
4081
4082
4083
4084
4085
4086
4087
4088
4089
4090
4091
4092
4093
4094
4095
4096
4097
4098
4099
4100
4101
4102
4103
4104
4105
4106
4107
4108
4109
4110
4111
4112
4113
4114
4115
4116
4117
4118
4119
4120
4121
4122
4123
4124
4125
4126
4127
4128
4129
4130
4131
4132
4133
4134
4135
4136
4137
4138
4139
4140
4141
4142
4143
4144
4145
4146
4147
4148
4149
4150
4151
4152
4153
4154
4155
4156
4157
4158
4159
4160
4161
4162
4163
4164
4165
4166
4167
4168
4169
4170
4171
4172
4173
4174
4175
4176
4177
4178
4179
4180
4181
4182
4183
4184
4185
4186
4187
4188
4189
4190
4191
4192
4193
4194
4195
4196
4197
4198
4199
4200
4201
4202
4203
4204
4205
4206
4207
4208
4209
4210
4211
4212
4213
4214
4215
4216
4217
4218
4219
4220
4221
4222
4223
4224
4225
4226
4227
4228
4229
4230
4231
4232
4233
4234
4235
4236
4237
4238
4239
4240
4241
4242
4243
4244
4245
4246
4247
4248
4249
4250
4251
4252
4253
4254
4255
4256
4257
4258
4259
4260
4261
4262
4263
4264
4265
4266
4267
4268
4269
4270
4271
4272
4273
4274
4275
4276
4277
4278
4279
4280
4281
4282
4283
4284
4285
4286
4287
4288
4289
4290
4291
4292
4293
4294
4295
4296
4297
4298
4299
4300
4301
4302
4303
4304
4305
4306
4307
4308
4309
4310
4311
4312
4313
4314
4315
4316
4317
4318
4319
4320
4321
4322
4323
4324
4325
4326
4327
4328
4329
4330
4331
4332
4333
4334
4335
4336
4337
4338
4339
4340
4341
4342
4343
4344
4345
4346
4347
4348
4349
4350
4351
4352
4353
4354
4355
4356
4357
4358
4359
4360
4361
4362
4363
4364
4365
4366
4367
4368
4369
4370
4371
4372
4373
4374
4375
4376
4377
4378
4379
4380
4381
4382
4383
4384
4385
4386
4387
4388
4389
4390
4391
4392
4393
4394
4395
4396
4397
4398
4399
4400
4401
4402
4403
4404
4405
4406
4407
4408
4409
4410
4411
4412
4413
4414
4415
4416
4417
4418
4419
4420
4421
4422
4423
4424
4425
4426
4427
4428
4429
4430
4431
4432
4433
4434
4435
4436
4437
4438
4439
4440
4441
4442
4443
4444
4445
4446
4447
4448
4449
4450
4451
4452
4453
4454
4455
4456
4457
4458
4459
4460
4461
4462
4463
4464
4465
4466
4467
4468
4469
4470
4471
4472
4473
4474
4475
4476
4477
4478
4479
4480
4481
4482
4483
4484
4485
4486
4487
4488
4489
4490
4491
4492
4493
4494
4495
4496
4497
4498
4499
4500
4501
4502
4503
4504
4505
4506
4507
4508
4509
4510
4511
4512
4513
4514
4515
4516
4517
4518
4519
4520
4521
4522
4523
4524
4525
4526
4527
4528
4529
4530
4531
4532
4533
4534
4535
4536
4537
4538
4539
4540
4541
4542
4543
4544
4545
4546
4547
4548
4549
4550
4551
4552
4553
4554
4555
4556
4557
4558
4559
4560
4561
4562
4563
4564
4565
4566
4567
4568
4569
4570
4571
4572
4573
4574
4575
4576
4577
4578
4579
4580
4581
4582
4583
4584
4585
4586
4587
4588
4589
4590
4591
4592
4593
4594
4595
4596
4597
4598
4599
4600
4601
4602
4603
4604
4605
4606
4607
4608
4609
4610
4611
4612
4613
4614
4615
4616
4617
4618
4619
4620
4621
4622
4623
4624
4625
4626
4627
4628
4629
4630
4631
4632
4633
4634
4635
4636
4637
4638
4639
4640
4641
4642
4643
4644
4645
4646
4647
4648
4649
4650
4651
4652
4653
4654
4655
4656
4657
4658
4659
4660
4661
4662
4663
4664
4665
4666
4667
4668
4669
4670
4671
4672
4673
4674
4675
4676
4677
4678
4679
4680
4681
4682
4683
4684
4685
4686
4687
4688
4689
4690
4691
4692
4693
4694
4695
4696
4697
4698
4699
4700
4701
4702
4703
4704
4705
4706
4707
4708
4709
4710
4711
4712
4713
4714
4715
4716
4717
4718
4719
4720
4721
4722
4723
4724
4725
4726
4727
4728
4729
4730
4731
4732
4733
4734
4735
4736
4737
4738
4739
4740
4741
4742
4743
4744
4745
4746
4747
4748
4749
4750
4751
4752
4753
4754
4755
4756
4757
4758
4759
4760
4761
4762
4763
4764
4765
4766
4767
4768
4769
4770
4771
4772
4773
4774
4775
4776
4777
4778
4779
4780
4781
4782
4783
4784
4785
4786
4787
4788
4789
4790
4791
4792
4793
4794
4795
4796
4797
4798
4799
4800
4801
4802
4803
4804
4805
4806
4807
4808
4809
4810
4811
4812
4813
4814
4815
4816
4817
4818
4819
4820
4821
4822
4823
4824
4825
4826
4827
4828
4829
4830
4831
4832
4833
4834
4835
4836
4837
4838
4839
4840
4841
4842
4843
4844
4845
4846
4847
4848
4849
4850
4851
4852
4853
4854
4855
4856
4857
4858
4859
4860
4861
4862
4863
4864
4865
4866
4867
4868
4869
4870
4871
4872
4873
4874
4875
4876
4877
4878
4879
4880
4881
4882
4883
4884
4885
4886
4887
4888
4889
4890
4891
4892
4893
4894
4895
4896
4897
4898
4899
4900
4901
4902
4903
4904
4905
4906
4907
4908
4909
4910
4911
4912
4913
4914
4915
4916
4917
4918
4919
4920
4921
4922
4923
4924
4925
4926
4927
4928
4929
4930
4931
4932
4933
4934
4935
4936
4937
4938
4939
4940
4941
4942
4943
4944
4945
4946
4947
4948
4949
4950
4951
4952
4953
4954
4955
4956
4957
4958
4959
4960
4961
4962
4963
4964
4965
4966
4967
4968
4969
4970
4971
4972
4973
4974
4975
4976
4977
4978
4979
4980
4981
4982
4983
4984
4985
4986
4987
4988
4989
4990
4991
4992
4993
4994
4995
4996
4997
4998
4999
5000
5001
5002
5003
5004
5005
5006
5007
5008
5009
5010
5011
5012
5013
5014
5015
5016
5017
5018
5019
5020
5021
5022
5023
5024
5025
5026
5027
5028
5029
5030
5031
5032
5033
5034
5035
5036
5037
5038
5039
5040
5041
5042
5043
5044
5045
5046
5047
5048
5049
5050
5051
5052
5053
5054
5055
5056
5057
5058
5059
5060
5061
5062
5063
5064
5065
5066
5067
5068
5069
5070
5071
5072
5073
5074
5075
5076
5077
5078
5079
5080
5081
5082
5083
5084
5085
5086
5087
5088
5089
5090
5091
5092
5093
5094
5095
5096
5097
5098
5099
5100
5101
5102
5103
5104
5105
5106
5107
5108
5109
5110
5111
5112
5113
5114
5115
5116
5117
5118
5119
5120
5121
5122
5123
5124
5125
5126
5127
5128
5129
5130
5131
5132
5133
5134
5135
5136
5137
5138
5139
5140
5141
5142
5143
5144
5145
5146
5147
5148
5149
5150
5151
5152
5153
5154
5155
5156
5157
5158
5159
5160
5161
5162
5163
5164
5165
5166
5167
5168
5169
5170
5171
5172
5173
5174
5175
5176
5177
5178
5179
5180
5181
5182
5183
5184
5185
5186
5187
5188
5189
5190
5191
5192
5193
5194
5195
5196
5197
5198
5199
5200
5201
5202
5203
5204
5205
5206
5207
5208
5209
5210
5211
5212
5213
5214
5215
5216
5217
5218
5219
5220
5221
5222
5223
5224
5225
5226
5227
5228
5229
5230
5231
5232
5233
5234
5235
5236
5237
5238
5239
5240
5241
5242
5243
5244
5245
5246
5247
5248
5249
5250
5251
5252
5253
5254
5255
5256
5257
5258
5259
5260
5261
5262
5263
5264
5265
5266
5267
5268
5269
5270
5271
5272
5273
5274
5275
5276
5277
5278
5279
5280
5281
5282
5283
5284
5285
5286
5287
5288
5289
5290
5291
5292
5293
5294
5295
5296
5297
5298
5299
5300
5301
5302
5303
5304
5305
5306
5307
5308
5309
5310
5311
5312
5313
5314
5315
5316
5317
5318
5319
5320
5321
5322
5323
5324
5325
5326
5327
5328
5329
5330
5331
5332
5333
5334
5335
5336
5337
5338
5339
5340
5341
5342
5343
5344
5345
5346
5347
5348
5349
5350
5351
5352
5353
5354
5355
5356
5357
5358
5359
5360
5361
5362
5363
5364
5365
5366
5367
5368
5369
5370
5371
5372
5373
5374
5375
5376
5377
5378
5379
5380
5381
5382
5383
5384
5385
5386
5387
5388
5389
5390
5391
5392
5393
5394
5395
5396
5397
5398
5399
5400
5401
5402
5403
5404
5405
5406
5407
5408
5409
5410
5411
5412
5413
5414
5415
5416
5417
5418
5419
5420
5421
5422
5423
5424
5425
5426
5427
5428
5429
5430
5431
5432
5433
5434
5435
5436
5437
5438
5439
5440
5441
5442
5443
5444
5445
5446
5447
5448
5449
5450
5451
5452
5453
5454
5455
5456
5457
5458
5459
5460
5461
5462
5463
5464
5465
5466
5467
5468
5469
5470
5471
5472
5473
5474
5475
5476
5477
5478
5479
5480
5481
5482
5483
5484
5485
5486
5487
5488
5489
5490
5491
5492
5493
5494
5495
5496
5497
5498
5499
5500
5501
5502
5503
5504
5505
5506
5507
5508
5509
5510
5511
5512
5513
5514
5515
5516
5517
5518
5519
5520
5521
5522
5523
5524
5525
5526
5527
5528
5529
5530
5531
5532
5533
5534
5535
5536
5537
5538
5539
5540
5541
5542
5543
5544
5545
5546
5547
5548
5549
5550
5551
5552
5553
5554
5555
5556
5557
5558
5559
5560
5561
5562
5563
5564
5565
5566
5567
5568
5569
5570
5571
5572
5573
5574
5575
5576
5577
5578
5579
5580
5581
5582
5583
5584
5585
5586
5587
5588
5589
5590
5591
5592
5593
5594
5595
5596
5597
5598
5599
5600
5601
5602
5603
5604
5605
5606
5607
5608
5609
5610
5611
5612
5613
5614
5615
5616
5617
5618
5619
5620
5621
5622
5623
5624
5625
5626
5627
5628
5629
5630
5631
5632
5633
5634
5635
5636
5637
5638
5639
5640
5641
5642
5643
5644
5645
5646
5647
5648
5649
5650
5651
5652
5653
5654
5655
5656
5657
5658
5659
5660
5661
5662
5663
5664
5665
5666
5667
5668
5669
5670
5671
5672
5673
5674
5675
5676
5677
5678
5679
5680
5681
5682
5683
5684
5685
5686
5687
5688
5689
5690
5691
5692
5693
5694
5695
5696
5697
5698
5699
5700
5701
5702
5703
5704
5705
5706
5707
5708
5709
5710
5711
5712
5713
5714
5715
5716
5717
5718
5719
5720
5721
5722
5723
5724
5725
5726
5727
5728
5729
5730
5731
5732
5733
5734
5735
5736
5737
5738
5739
5740
5741
5742
5743
5744
5745
5746
5747
5748
5749
5750
5751
5752
5753
5754
5755
5756
5757
5758
5759
5760
5761
5762
5763
5764
5765
5766
5767
5768
5769
5770
5771
5772
5773
5774
5775
5776
5777
5778
5779
5780
5781
5782
5783
5784
5785
5786
5787
5788
5789
5790
5791
5792
5793
5794
5795
5796
5797
5798
5799
5800
5801
5802
5803
5804
5805
5806
5807
5808
5809
5810
5811
5812
5813
5814
5815
5816
5817
5818
5819
5820
5821
5822
5823
5824
5825
5826
5827
5828
5829
5830
5831
5832
5833
5834
5835
5836
5837
5838
5839
5840
5841
5842
5843
5844
5845
5846
5847
5848
5849
5850
5851
5852
5853
5854
5855
5856
5857
5858
5859
5860
5861
5862
5863
5864
5865
5866
5867
5868
5869
5870
5871
5872
5873
5874
5875
5876
5877
5878
5879
5880
5881
5882
5883
5884
5885
5886
5887
5888
5889
5890
5891
5892
5893
5894
5895
5896
5897
5898
5899
5900
5901
5902
5903
5904
5905
5906
5907
5908
5909
5910
5911
5912
5913
5914
5915
5916
5917
5918
5919
5920
5921
5922
5923
5924
5925
5926
5927
5928
5929
5930
5931
5932
5933
5934
5935
5936
5937
5938
5939
5940
5941
5942
5943
5944
5945
5946
5947
5948
5949
5950
5951
5952
5953
5954
5955
5956
5957
5958
5959
5960
5961
5962
5963
5964
5965
5966
5967
5968
5969
5970
5971
5972
5973
5974
5975
5976
5977
5978
5979
5980
5981
5982
5983
5984
5985
5986
5987
5988
5989
5990
5991
5992
5993
5994
5995
5996
5997
5998
5999
6000
6001
6002
6003
6004
6005
6006
6007
6008
6009
6010
6011
6012
6013
6014
6015
6016
6017
6018
6019
6020
6021
6022
6023
6024
6025
6026
6027
6028
6029
6030
6031
6032
6033
6034
6035
6036
6037
6038
6039
6040
6041
6042
6043
6044
6045
6046
6047
6048
6049
6050
6051
6052
6053
6054
6055
6056
6057
6058
6059
6060
6061
6062
6063
6064
6065
6066
6067
6068
6069
6070
6071
6072
6073
6074
6075
6076
6077
6078
6079
6080
6081
6082
6083
6084
6085
6086
6087
6088
6089
6090
6091
6092
6093
6094
6095
6096
6097
6098
6099
6100
6101
6102
6103
6104
6105
6106
6107
6108
6109
6110
6111
6112
6113
6114
6115
6116
6117
6118
6119
6120
6121
6122
6123
6124
6125
6126
6127
6128
6129
6130
6131
6132
6133
6134
6135
6136
6137
6138
6139
6140
6141
6142
6143
6144
6145
6146
6147
6148
6149
6150
6151
6152
6153
6154
6155
6156
6157
6158
6159
6160
6161
6162
6163
6164
6165
6166
6167
6168
6169
6170
6171
6172
6173
6174
6175
6176
6177
6178
6179
6180
6181
6182
6183
6184
6185
6186
6187
6188
6189
6190
6191
6192
6193
6194
6195
6196
6197
6198
6199
6200
6201
6202
6203
6204
6205
6206
6207
6208
6209
6210
6211
6212
6213
6214
6215
6216
6217
6218
6219
6220
6221
6222
6223
6224
6225
6226
6227
6228
6229
6230
6231
6232
6233
6234
6235
6236
6237
6238
6239
6240
6241
6242
6243
6244
6245
6246
6247
6248
6249
6250
6251
6252
6253
6254
6255
6256
6257
6258
6259
6260
6261
6262
6263
6264
6265
6266
6267
6268
6269
6270
6271
6272
6273
6274
6275
6276
6277
6278
6279
6280
6281
6282
6283
6284
6285
6286
6287
6288
6289
6290
6291
6292
6293
6294
6295
6296
6297
6298
6299
6300
6301
6302
6303
6304
6305
6306
6307
6308
6309
6310
6311
6312
6313
6314
6315
6316
6317
6318
6319
6320
6321
6322
6323
6324
6325
6326
6327
6328
6329
6330
6331
6332
6333
6334
6335
6336
6337
6338
6339
6340
6341
6342
6343
6344
6345
6346
6347
6348
6349
6350
6351
6352
6353
6354
6355
6356
6357
6358
6359
6360
6361
6362
6363
6364
6365
6366
6367
6368
6369
6370
6371
6372
6373
6374
6375
6376
6377
6378
6379
6380
6381
6382
6383
6384
6385
6386
6387
6388
6389
6390
6391
6392
6393
6394
6395
6396
6397
6398
6399
6400
6401
6402
6403
6404
6405
6406
6407
6408
6409
6410
6411
6412
6413
6414
6415
6416
6417
6418
6419
6420
6421
6422
6423
6424
6425
6426
6427
6428
6429
6430
6431
6432
6433
6434
6435
6436
6437
6438
6439
6440
6441
6442
6443
6444
6445
6446
6447
6448
6449
6450
6451
6452
6453
6454
6455
6456
6457
6458
6459
6460
6461
6462
6463
6464
6465
6466
6467
6468
6469
6470
6471
6472
6473
6474
6475
6476
6477
6478
6479
6480
6481
6482
6483
6484
6485
6486
6487
6488
6489
6490
6491
6492
6493
6494
6495
6496
6497
6498
6499
6500
6501
6502
6503
6504
6505
6506
6507
6508
6509
6510
6511
6512
6513
6514
6515
6516
6517
6518
6519
6520
6521
6522
6523
6524
6525
6526
6527
6528
6529
6530
6531
6532
6533
6534
6535
6536
6537
6538
6539
6540
6541
6542
6543
6544
6545
6546
6547
6548
6549
6550
6551
6552
6553
6554
6555
6556
6557
6558
6559
6560
6561
6562
6563
6564
6565
6566
6567
6568
6569
6570
6571
6572
6573
6574
6575
6576
6577
6578
/* CollectionPage.c generated by valac 0.34.4, the Vala compiler
 * generated from CollectionPage.vala, do not modify */

/* Copyright 2016 Software Freedom Conservancy Inc.
 *
 * This software is licensed under the GNU LGPL (version 2.1 or later).
 * See the COPYING file in this distribution.
 */

#include <glib.h>
#include <glib-object.h>
#include <gtk/gtk.h>
#include <stdlib.h>
#include <string.h>
#include <gio/gio.h>
#include <gee.h>
#include <gdk/gdk.h>
#include <float.h>
#include <math.h>
#include <glib/gi18n-lib.h>
#include <time.h>


#define TYPE_VIEW_MANAGER (view_manager_get_type ())
#define VIEW_MANAGER(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_VIEW_MANAGER, ViewManager))
#define VIEW_MANAGER_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_VIEW_MANAGER, ViewManagerClass))
#define IS_VIEW_MANAGER(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_VIEW_MANAGER))
#define IS_VIEW_MANAGER_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_VIEW_MANAGER))
#define VIEW_MANAGER_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_VIEW_MANAGER, ViewManagerClass))

typedef struct _ViewManager ViewManager;
typedef struct _ViewManagerClass ViewManagerClass;
typedef struct _ViewManagerPrivate ViewManagerPrivate;

#define TYPE_DATA_OBJECT (data_object_get_type ())
#define DATA_OBJECT(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_DATA_OBJECT, DataObject))
#define DATA_OBJECT_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_DATA_OBJECT, DataObjectClass))
#define IS_DATA_OBJECT(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_DATA_OBJECT))
#define IS_DATA_OBJECT_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_DATA_OBJECT))
#define DATA_OBJECT_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_DATA_OBJECT, DataObjectClass))

typedef struct _DataObject DataObject;
typedef struct _DataObjectClass DataObjectClass;

#define TYPE_DATA_SOURCE (data_source_get_type ())
#define DATA_SOURCE(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_DATA_SOURCE, DataSource))
#define DATA_SOURCE_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_DATA_SOURCE, DataSourceClass))
#define IS_DATA_SOURCE(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_DATA_SOURCE))
#define IS_DATA_SOURCE_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_DATA_SOURCE))
#define DATA_SOURCE_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_DATA_SOURCE, DataSourceClass))

typedef struct _DataSource DataSource;
typedef struct _DataSourceClass DataSourceClass;

#define TYPE_DATA_VIEW (data_view_get_type ())
#define DATA_VIEW(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_DATA_VIEW, DataView))
#define DATA_VIEW_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_DATA_VIEW, DataViewClass))
#define IS_DATA_VIEW(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_DATA_VIEW))
#define IS_DATA_VIEW_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_DATA_VIEW))
#define DATA_VIEW_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_DATA_VIEW, DataViewClass))

typedef struct _DataView DataView;
typedef struct _DataViewClass DataViewClass;

#define TYPE_COLLECTION_VIEW_MANAGER (collection_view_manager_get_type ())
#define COLLECTION_VIEW_MANAGER(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_COLLECTION_VIEW_MANAGER, CollectionViewManager))
#define COLLECTION_VIEW_MANAGER_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_COLLECTION_VIEW_MANAGER, CollectionViewManagerClass))
#define IS_COLLECTION_VIEW_MANAGER(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_COLLECTION_VIEW_MANAGER))
#define IS_COLLECTION_VIEW_MANAGER_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_COLLECTION_VIEW_MANAGER))
#define COLLECTION_VIEW_MANAGER_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_COLLECTION_VIEW_MANAGER, CollectionViewManagerClass))

typedef struct _CollectionViewManager CollectionViewManager;
typedef struct _CollectionViewManagerClass CollectionViewManagerClass;
typedef struct _CollectionViewManagerPrivate CollectionViewManagerPrivate;

#define TYPE_PAGE (page_get_type ())
#define PAGE(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_PAGE, Page))
#define PAGE_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_PAGE, PageClass))
#define IS_PAGE(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_PAGE))
#define IS_PAGE_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_PAGE))
#define PAGE_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_PAGE, PageClass))

typedef struct _Page Page;
typedef struct _PageClass PageClass;

#define TYPE_CHECKERBOARD_PAGE (checkerboard_page_get_type ())
#define CHECKERBOARD_PAGE(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_CHECKERBOARD_PAGE, CheckerboardPage))
#define CHECKERBOARD_PAGE_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_CHECKERBOARD_PAGE, CheckerboardPageClass))
#define IS_CHECKERBOARD_PAGE(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_CHECKERBOARD_PAGE))
#define IS_CHECKERBOARD_PAGE_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_CHECKERBOARD_PAGE))
#define CHECKERBOARD_PAGE_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_CHECKERBOARD_PAGE, CheckerboardPageClass))

typedef struct _CheckerboardPage CheckerboardPage;
typedef struct _CheckerboardPageClass CheckerboardPageClass;

#define TYPE_MEDIA_PAGE (media_page_get_type ())
#define MEDIA_PAGE(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_MEDIA_PAGE, MediaPage))
#define MEDIA_PAGE_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_MEDIA_PAGE, MediaPageClass))
#define IS_MEDIA_PAGE(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_MEDIA_PAGE))
#define IS_MEDIA_PAGE_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_MEDIA_PAGE))
#define MEDIA_PAGE_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_MEDIA_PAGE, MediaPageClass))

typedef struct _MediaPage MediaPage;
typedef struct _MediaPageClass MediaPageClass;

#define TYPE_COLLECTION_PAGE (collection_page_get_type ())
#define COLLECTION_PAGE(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_COLLECTION_PAGE, CollectionPage))
#define COLLECTION_PAGE_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_COLLECTION_PAGE, CollectionPageClass))
#define IS_COLLECTION_PAGE(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_COLLECTION_PAGE))
#define IS_COLLECTION_PAGE_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_COLLECTION_PAGE))
#define COLLECTION_PAGE_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_COLLECTION_PAGE, CollectionPageClass))

typedef struct _CollectionPage CollectionPage;
typedef struct _CollectionPageClass CollectionPageClass;
#define _g_object_unref0(var) ((var == NULL) ? NULL : (var = (g_object_unref (var), NULL)))
typedef struct _PagePrivate PagePrivate;

#define TYPE_PAGE_WINDOW (page_window_get_type ())
#define PAGE_WINDOW(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_PAGE_WINDOW, PageWindow))
#define PAGE_WINDOW_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_PAGE_WINDOW, PageWindowClass))
#define IS_PAGE_WINDOW(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_PAGE_WINDOW))
#define IS_PAGE_WINDOW_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_PAGE_WINDOW))
#define PAGE_WINDOW_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_PAGE_WINDOW, PageWindowClass))

typedef struct _PageWindow PageWindow;
typedef struct _PageWindowClass PageWindowClass;

#define TYPE_FULLSCREEN_WINDOW (fullscreen_window_get_type ())
#define FULLSCREEN_WINDOW(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_FULLSCREEN_WINDOW, FullscreenWindow))
#define FULLSCREEN_WINDOW_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_FULLSCREEN_WINDOW, FullscreenWindowClass))
#define IS_FULLSCREEN_WINDOW(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_FULLSCREEN_WINDOW))
#define IS_FULLSCREEN_WINDOW_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_FULLSCREEN_WINDOW))
#define FULLSCREEN_WINDOW_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_FULLSCREEN_WINDOW, FullscreenWindowClass))

typedef struct _FullscreenWindow FullscreenWindow;
typedef struct _FullscreenWindowClass FullscreenWindowClass;

#define TYPE_INJECTION_GROUP (injection_group_get_type ())
#define INJECTION_GROUP(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_INJECTION_GROUP, InjectionGroup))
#define INJECTION_GROUP_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_INJECTION_GROUP, InjectionGroupClass))
#define IS_INJECTION_GROUP(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_INJECTION_GROUP))
#define IS_INJECTION_GROUP_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_INJECTION_GROUP))
#define INJECTION_GROUP_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_INJECTION_GROUP, InjectionGroupClass))

typedef struct _InjectionGroup InjectionGroup;
typedef struct _InjectionGroupClass InjectionGroupClass;
typedef struct _CheckerboardPagePrivate CheckerboardPagePrivate;

#define TYPE_THUMBNAIL_VIEW (thumbnail_view_get_type ())
#define THUMBNAIL_VIEW(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_THUMBNAIL_VIEW, ThumbnailView))
#define THUMBNAIL_VIEW_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_THUMBNAIL_VIEW, ThumbnailViewClass))
#define IS_THUMBNAIL_VIEW(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_THUMBNAIL_VIEW))
#define IS_THUMBNAIL_VIEW_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_THUMBNAIL_VIEW))
#define THUMBNAIL_VIEW_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_THUMBNAIL_VIEW, ThumbnailViewClass))

typedef struct _ThumbnailView ThumbnailView;
typedef struct _ThumbnailViewClass ThumbnailViewClass;

#define TYPE_CHECKERBOARD_ITEM (checkerboard_item_get_type ())
#define CHECKERBOARD_ITEM(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_CHECKERBOARD_ITEM, CheckerboardItem))
#define CHECKERBOARD_ITEM_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_CHECKERBOARD_ITEM, CheckerboardItemClass))
#define IS_CHECKERBOARD_ITEM(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_CHECKERBOARD_ITEM))
#define IS_CHECKERBOARD_ITEM_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_CHECKERBOARD_ITEM))
#define CHECKERBOARD_ITEM_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_CHECKERBOARD_ITEM, CheckerboardItemClass))

typedef struct _CheckerboardItem CheckerboardItem;
typedef struct _CheckerboardItemClass CheckerboardItemClass;

#define CHECKERBOARD_PAGE_TYPE_ACTIVATOR (checkerboard_page_activator_get_type ())

#define CHECKERBOARD_PAGE_TYPE_KEYBOARD_MODIFIERS (checkerboard_page_keyboard_modifiers_get_type ())
typedef struct _CheckerboardPageKeyboardModifiers CheckerboardPageKeyboardModifiers;

#define TYPE_VIEW_FILTER (view_filter_get_type ())
#define VIEW_FILTER(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_VIEW_FILTER, ViewFilter))
#define VIEW_FILTER_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_VIEW_FILTER, ViewFilterClass))
#define IS_VIEW_FILTER(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_VIEW_FILTER))
#define IS_VIEW_FILTER_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_VIEW_FILTER))
#define VIEW_FILTER_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_VIEW_FILTER, ViewFilterClass))

typedef struct _ViewFilter ViewFilter;
typedef struct _ViewFilterClass ViewFilterClass;

#define TYPE_SEARCH_VIEW_FILTER (search_view_filter_get_type ())
#define SEARCH_VIEW_FILTER(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_SEARCH_VIEW_FILTER, SearchViewFilter))
#define SEARCH_VIEW_FILTER_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_SEARCH_VIEW_FILTER, SearchViewFilterClass))
#define IS_SEARCH_VIEW_FILTER(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_SEARCH_VIEW_FILTER))
#define IS_SEARCH_VIEW_FILTER_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_SEARCH_VIEW_FILTER))
#define SEARCH_VIEW_FILTER_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_SEARCH_VIEW_FILTER, SearchViewFilterClass))

typedef struct _SearchViewFilter SearchViewFilter;
typedef struct _SearchViewFilterClass SearchViewFilterClass;

#define CORE_TYPE_TRACKER (core_tracker_get_type ())
#define CORE_TRACKER(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), CORE_TYPE_TRACKER, CoreTracker))
#define CORE_TRACKER_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), CORE_TYPE_TRACKER, CoreTrackerClass))
#define CORE_IS_TRACKER(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), CORE_TYPE_TRACKER))
#define CORE_IS_TRACKER_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), CORE_TYPE_TRACKER))
#define CORE_TRACKER_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), CORE_TYPE_TRACKER, CoreTrackerClass))

typedef struct _CoreTracker CoreTracker;
typedef struct _CoreTrackerClass CoreTrackerClass;

#define CORE_TYPE_VIEW_TRACKER (core_view_tracker_get_type ())
#define CORE_VIEW_TRACKER(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), CORE_TYPE_VIEW_TRACKER, CoreViewTracker))
#define CORE_VIEW_TRACKER_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), CORE_TYPE_VIEW_TRACKER, CoreViewTrackerClass))
#define CORE_IS_VIEW_TRACKER(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), CORE_TYPE_VIEW_TRACKER))
#define CORE_IS_VIEW_TRACKER_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), CORE_TYPE_VIEW_TRACKER))
#define CORE_VIEW_TRACKER_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), CORE_TYPE_VIEW_TRACKER, CoreViewTrackerClass))

typedef struct _CoreViewTracker CoreViewTracker;
typedef struct _CoreViewTrackerClass CoreViewTrackerClass;
typedef struct _MediaPagePrivate MediaPagePrivate;

#define TYPE_RATING (rating_get_type ())

#define TYPE_RAW_DEVELOPER (raw_developer_get_type ())
typedef struct _CollectionPagePrivate CollectionPagePrivate;

#define TYPE_EXPORTER_UI (exporter_ui_get_type ())
#define EXPORTER_UI(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_EXPORTER_UI, ExporterUI))
#define EXPORTER_UI_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_EXPORTER_UI, ExporterUIClass))
#define IS_EXPORTER_UI(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_EXPORTER_UI))
#define IS_EXPORTER_UI_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_EXPORTER_UI))
#define EXPORTER_UI_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_EXPORTER_UI, ExporterUIClass))

typedef struct _ExporterUI ExporterUI;
typedef struct _ExporterUIClass ExporterUIClass;

#define TYPE_DEFAULT_SEARCH_VIEW_FILTER (default_search_view_filter_get_type ())
#define DEFAULT_SEARCH_VIEW_FILTER(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_DEFAULT_SEARCH_VIEW_FILTER, DefaultSearchViewFilter))
#define DEFAULT_SEARCH_VIEW_FILTER_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_DEFAULT_SEARCH_VIEW_FILTER, DefaultSearchViewFilterClass))
#define IS_DEFAULT_SEARCH_VIEW_FILTER(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_DEFAULT_SEARCH_VIEW_FILTER))
#define IS_DEFAULT_SEARCH_VIEW_FILTER_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_DEFAULT_SEARCH_VIEW_FILTER))
#define DEFAULT_SEARCH_VIEW_FILTER_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_DEFAULT_SEARCH_VIEW_FILTER, DefaultSearchViewFilterClass))

typedef struct _DefaultSearchViewFilter DefaultSearchViewFilter;
typedef struct _DefaultSearchViewFilterClass DefaultSearchViewFilterClass;

#define COLLECTION_PAGE_TYPE_COLLECTION_SEARCH_VIEW_FILTER (collection_page_collection_search_view_filter_get_type ())
#define COLLECTION_PAGE_COLLECTION_SEARCH_VIEW_FILTER(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), COLLECTION_PAGE_TYPE_COLLECTION_SEARCH_VIEW_FILTER, CollectionPageCollectionSearchViewFilter))
#define COLLECTION_PAGE_COLLECTION_SEARCH_VIEW_FILTER_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), COLLECTION_PAGE_TYPE_COLLECTION_SEARCH_VIEW_FILTER, CollectionPageCollectionSearchViewFilterClass))
#define COLLECTION_PAGE_IS_COLLECTION_SEARCH_VIEW_FILTER(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), COLLECTION_PAGE_TYPE_COLLECTION_SEARCH_VIEW_FILTER))
#define COLLECTION_PAGE_IS_COLLECTION_SEARCH_VIEW_FILTER_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), COLLECTION_PAGE_TYPE_COLLECTION_SEARCH_VIEW_FILTER))
#define COLLECTION_PAGE_COLLECTION_SEARCH_VIEW_FILTER_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), COLLECTION_PAGE_TYPE_COLLECTION_SEARCH_VIEW_FILTER, CollectionPageCollectionSearchViewFilterClass))

typedef struct _CollectionPageCollectionSearchViewFilter CollectionPageCollectionSearchViewFilter;
typedef struct _CollectionPageCollectionSearchViewFilterClass CollectionPageCollectionSearchViewFilterClass;
#define _exporter_ui_unref0(var) ((var == NULL) ? NULL : (var = (exporter_ui_unref (var), NULL)))
#define _view_filter_unref0(var) ((var == NULL) ? NULL : (var = (view_filter_unref (var), NULL)))

#define TYPE_DATA_COLLECTION (data_collection_get_type ())
#define DATA_COLLECTION(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_DATA_COLLECTION, DataCollection))
#define DATA_COLLECTION_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_DATA_COLLECTION, DataCollectionClass))
#define IS_DATA_COLLECTION(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_DATA_COLLECTION))
#define IS_DATA_COLLECTION_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_DATA_COLLECTION))
#define DATA_COLLECTION_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_DATA_COLLECTION, DataCollectionClass))

typedef struct _DataCollection DataCollection;
typedef struct _DataCollectionClass DataCollectionClass;

#define TYPE_VIEW_COLLECTION (view_collection_get_type ())
#define VIEW_COLLECTION(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_VIEW_COLLECTION, ViewCollection))
#define VIEW_COLLECTION_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_VIEW_COLLECTION, ViewCollectionClass))
#define IS_VIEW_COLLECTION(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_VIEW_COLLECTION))
#define IS_VIEW_COLLECTION_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_VIEW_COLLECTION))
#define VIEW_COLLECTION_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_VIEW_COLLECTION, ViewCollectionClass))

typedef struct _ViewCollection ViewCollection;
typedef struct _ViewCollectionClass ViewCollectionClass;

#define TYPE_ALTERATION (alteration_get_type ())
#define ALTERATION(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_ALTERATION, Alteration))
#define ALTERATION_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_ALTERATION, AlterationClass))
#define IS_ALTERATION(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_ALTERATION))
#define IS_ALTERATION_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_ALTERATION))
#define ALTERATION_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_ALTERATION, AlterationClass))

typedef struct _Alteration Alteration;
typedef struct _AlterationClass AlterationClass;
#define _data_collection_unref0(var) ((var == NULL) ? NULL : (var = (data_collection_unref (var), NULL)))

#define TYPE_CONFIGURATION_FACADE (configuration_facade_get_type ())
#define CONFIGURATION_FACADE(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_CONFIGURATION_FACADE, ConfigurationFacade))
#define CONFIGURATION_FACADE_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_CONFIGURATION_FACADE, ConfigurationFacadeClass))
#define IS_CONFIGURATION_FACADE(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_CONFIGURATION_FACADE))
#define IS_CONFIGURATION_FACADE_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_CONFIGURATION_FACADE))
#define CONFIGURATION_FACADE_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_CONFIGURATION_FACADE, ConfigurationFacadeClass))

typedef struct _ConfigurationFacade ConfigurationFacade;
typedef struct _ConfigurationFacadeClass ConfigurationFacadeClass;

#define CONFIG_TYPE_FACADE (config_facade_get_type ())
#define CONFIG_FACADE(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), CONFIG_TYPE_FACADE, ConfigFacade))
#define CONFIG_FACADE_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), CONFIG_TYPE_FACADE, ConfigFacadeClass))
#define CONFIG_IS_FACADE(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), CONFIG_TYPE_FACADE))
#define CONFIG_IS_FACADE_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), CONFIG_TYPE_FACADE))
#define CONFIG_FACADE_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), CONFIG_TYPE_FACADE, ConfigFacadeClass))

typedef struct _ConfigFacade ConfigFacade;
typedef struct _ConfigFacadeClass ConfigFacadeClass;

#define MEDIA_PAGE_TYPE_ZOOM_SLIDER_ASSEMBLY (media_page_zoom_slider_assembly_get_type ())
#define MEDIA_PAGE_ZOOM_SLIDER_ASSEMBLY(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), MEDIA_PAGE_TYPE_ZOOM_SLIDER_ASSEMBLY, MediaPageZoomSliderAssembly))
#define MEDIA_PAGE_ZOOM_SLIDER_ASSEMBLY_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), MEDIA_PAGE_TYPE_ZOOM_SLIDER_ASSEMBLY, MediaPageZoomSliderAssemblyClass))
#define MEDIA_PAGE_IS_ZOOM_SLIDER_ASSEMBLY(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), MEDIA_PAGE_TYPE_ZOOM_SLIDER_ASSEMBLY))
#define MEDIA_PAGE_IS_ZOOM_SLIDER_ASSEMBLY_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), MEDIA_PAGE_TYPE_ZOOM_SLIDER_ASSEMBLY))
#define MEDIA_PAGE_ZOOM_SLIDER_ASSEMBLY_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), MEDIA_PAGE_TYPE_ZOOM_SLIDER_ASSEMBLY, MediaPageZoomSliderAssemblyClass))

typedef struct _MediaPageZoomSliderAssembly MediaPageZoomSliderAssembly;
typedef struct _MediaPageZoomSliderAssemblyClass MediaPageZoomSliderAssemblyClass;
#define _injection_group_unref0(var) ((var == NULL) ? NULL : (var = (injection_group_unref (var), NULL)))

#define TYPE_THUMBNAIL_SOURCE (thumbnail_source_get_type ())
#define THUMBNAIL_SOURCE(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_THUMBNAIL_SOURCE, ThumbnailSource))
#define THUMBNAIL_SOURCE_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_THUMBNAIL_SOURCE, ThumbnailSourceClass))
#define IS_THUMBNAIL_SOURCE(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_THUMBNAIL_SOURCE))
#define IS_THUMBNAIL_SOURCE_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_THUMBNAIL_SOURCE))
#define THUMBNAIL_SOURCE_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_THUMBNAIL_SOURCE, ThumbnailSourceClass))

typedef struct _ThumbnailSource ThumbnailSource;
typedef struct _ThumbnailSourceClass ThumbnailSourceClass;

#define TYPE_MEDIA_SOURCE (media_source_get_type ())
#define MEDIA_SOURCE(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_MEDIA_SOURCE, MediaSource))
#define MEDIA_SOURCE_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_MEDIA_SOURCE, MediaSourceClass))
#define IS_MEDIA_SOURCE(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_MEDIA_SOURCE))
#define IS_MEDIA_SOURCE_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_MEDIA_SOURCE))
#define MEDIA_SOURCE_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_MEDIA_SOURCE, MediaSourceClass))

typedef struct _MediaSource MediaSource;
typedef struct _MediaSourceClass MediaSourceClass;

#define TYPE_APP_WINDOW (app_window_get_type ())
#define APP_WINDOW(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_APP_WINDOW, AppWindow))
#define APP_WINDOW_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_APP_WINDOW, AppWindowClass))
#define IS_APP_WINDOW(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_APP_WINDOW))
#define IS_APP_WINDOW_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_APP_WINDOW))
#define APP_WINDOW_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_APP_WINDOW, AppWindowClass))

typedef struct _AppWindow AppWindow;
typedef struct _AppWindowClass AppWindowClass;

#define TYPE_VIDEO_SOURCE (video_source_get_type ())
#define VIDEO_SOURCE(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_VIDEO_SOURCE, VideoSource))
#define VIDEO_SOURCE_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_VIDEO_SOURCE, VideoSourceClass))
#define IS_VIDEO_SOURCE(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_VIDEO_SOURCE))
#define IS_VIDEO_SOURCE_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_VIDEO_SOURCE))
#define VIDEO_SOURCE_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_VIDEO_SOURCE, VideoSourceClass))

typedef struct _VideoSource VideoSource;
typedef struct _VideoSourceClass VideoSourceClass;

#define TYPE_VIDEO (video_get_type ())
#define VIDEO(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_VIDEO, Video))
#define VIDEO_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_VIDEO, VideoClass))
#define IS_VIDEO(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_VIDEO))
#define IS_VIDEO_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_VIDEO))
#define VIDEO_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_VIDEO, VideoClass))

typedef struct _Video Video;
typedef struct _VideoClass VideoClass;
#define _g_free0(var) (var = (g_free (var), NULL))

#define TYPE_PHOTO_SOURCE (photo_source_get_type ())
#define PHOTO_SOURCE(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_PHOTO_SOURCE, PhotoSource))
#define PHOTO_SOURCE_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_PHOTO_SOURCE, PhotoSourceClass))
#define IS_PHOTO_SOURCE(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_PHOTO_SOURCE))
#define IS_PHOTO_SOURCE_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_PHOTO_SOURCE))
#define PHOTO_SOURCE_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_PHOTO_SOURCE, PhotoSourceClass))

typedef struct _PhotoSource PhotoSource;
typedef struct _PhotoSourceClass PhotoSourceClass;

#define TYPE_PHOTO (photo_get_type ())
#define PHOTO(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_PHOTO, Photo))
#define PHOTO_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_PHOTO, PhotoClass))
#define IS_PHOTO(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_PHOTO))
#define IS_PHOTO_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_PHOTO))
#define PHOTO_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_PHOTO, PhotoClass))

typedef struct _Photo Photo;
typedef struct _PhotoClass PhotoClass;

#define TYPE_PHOTO_FILE_FORMAT (photo_file_format_get_type ())
#define _alteration_unref0(var) ((var == NULL) ? NULL : (var = (alteration_unref (var), NULL)))

#define TYPE_LIBRARY_PHOTO (library_photo_get_type ())
#define LIBRARY_PHOTO(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_LIBRARY_PHOTO, LibraryPhoto))
#define LIBRARY_PHOTO_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_LIBRARY_PHOTO, LibraryPhotoClass))
#define IS_LIBRARY_PHOTO(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_LIBRARY_PHOTO))
#define IS_LIBRARY_PHOTO_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_LIBRARY_PHOTO))
#define LIBRARY_PHOTO_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_LIBRARY_PHOTO, LibraryPhotoClass))

typedef struct _LibraryPhoto LibraryPhoto;
typedef struct _LibraryPhotoClass LibraryPhotoClass;

#define TYPE_PRINT_MANAGER (print_manager_get_type ())
#define PRINT_MANAGER(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_PRINT_MANAGER, PrintManager))
#define PRINT_MANAGER_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_PRINT_MANAGER, PrintManagerClass))
#define IS_PRINT_MANAGER(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_PRINT_MANAGER))
#define IS_PRINT_MANAGER_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_PRINT_MANAGER))
#define PRINT_MANAGER_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_PRINT_MANAGER, PrintManagerClass))

typedef struct _PrintManager PrintManager;
typedef struct _PrintManagerClass PrintManagerClass;
#define _print_manager_unref0(var) ((var == NULL) ? NULL : (var = (print_manager_unref (var), NULL)))

#define TYPE_MEDIA_SOURCE_ITEM (media_source_item_get_type ())
#define MEDIA_SOURCE_ITEM(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_MEDIA_SOURCE_ITEM, MediaSourceItem))
#define MEDIA_SOURCE_ITEM_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_MEDIA_SOURCE_ITEM, MediaSourceItemClass))
#define IS_MEDIA_SOURCE_ITEM(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_MEDIA_SOURCE_ITEM))
#define IS_MEDIA_SOURCE_ITEM_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_MEDIA_SOURCE_ITEM))
#define MEDIA_SOURCE_ITEM_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_MEDIA_SOURCE_ITEM, MediaSourceItemClass))

typedef struct _MediaSourceItem MediaSourceItem;
typedef struct _MediaSourceItemClass MediaSourceItemClass;

#define TYPE_THUMBNAIL (thumbnail_get_type ())
#define THUMBNAIL(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_THUMBNAIL, Thumbnail))
#define THUMBNAIL_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_THUMBNAIL, ThumbnailClass))
#define IS_THUMBNAIL(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_THUMBNAIL))
#define IS_THUMBNAIL_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_THUMBNAIL))
#define THUMBNAIL_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_THUMBNAIL, ThumbnailClass))

typedef struct _Thumbnail Thumbnail;
typedef struct _ThumbnailClass ThumbnailClass;

#define TYPE_LIBRARY_WINDOW (library_window_get_type ())
#define LIBRARY_WINDOW(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_LIBRARY_WINDOW, LibraryWindow))
#define LIBRARY_WINDOW_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_LIBRARY_WINDOW, LibraryWindowClass))
#define IS_LIBRARY_WINDOW(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_LIBRARY_WINDOW))
#define IS_LIBRARY_WINDOW_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_LIBRARY_WINDOW))
#define LIBRARY_WINDOW_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_LIBRARY_WINDOW, LibraryWindowClass))

typedef struct _LibraryWindow LibraryWindow;
typedef struct _LibraryWindowClass LibraryWindowClass;

#define TYPE_EXPORTER (exporter_get_type ())
#define EXPORTER(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_EXPORTER, Exporter))
#define EXPORTER_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_EXPORTER, ExporterClass))
#define IS_EXPORTER(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_EXPORTER))
#define IS_EXPORTER_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_EXPORTER))
#define EXPORTER_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_EXPORTER, ExporterClass))

typedef struct _Exporter Exporter;
typedef struct _ExporterClass ExporterClass;

#define TYPE_EXPORT_DIALOG (export_dialog_get_type ())
#define EXPORT_DIALOG(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_EXPORT_DIALOG, ExportDialog))
#define EXPORT_DIALOG_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_EXPORT_DIALOG, ExportDialogClass))
#define IS_EXPORT_DIALOG(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_EXPORT_DIALOG))
#define IS_EXPORT_DIALOG_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_EXPORT_DIALOG))
#define EXPORT_DIALOG_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_EXPORT_DIALOG, ExportDialogClass))

typedef struct _ExportDialog ExportDialog;
typedef struct _ExportDialogClass ExportDialogClass;

#define TYPE_EXPORT_FORMAT_PARAMETERS (export_format_parameters_get_type ())

#define TYPE_EXPORT_FORMAT_MODE (export_format_mode_get_type ())

#define JPEG_TYPE_QUALITY (jpeg_quality_get_type ())
typedef struct _ExportFormatParameters ExportFormatParameters;

#define TYPE_SCALE_CONSTRAINT (scale_constraint_get_type ())

#define TYPE_SCALING (scaling_get_type ())

#define TYPE_DIMENSIONS (dimensions_get_type ())
typedef struct _Dimensions Dimensions;
typedef struct _Scaling Scaling;
#define _g_error_free0(var) ((var == NULL) ? NULL : (var = (g_error_free (var), NULL)))

#define TYPE_COMMAND (command_get_type ())
#define COMMAND(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_COMMAND, Command))
#define COMMAND_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_COMMAND, CommandClass))
#define IS_COMMAND(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_COMMAND))
#define IS_COMMAND_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_COMMAND))
#define COMMAND_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_COMMAND, CommandClass))

typedef struct _Command Command;
typedef struct _CommandClass CommandClass;

#define TYPE_PAGE_COMMAND (page_command_get_type ())
#define PAGE_COMMAND(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_PAGE_COMMAND, PageCommand))
#define PAGE_COMMAND_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_PAGE_COMMAND, PageCommandClass))
#define IS_PAGE_COMMAND(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_PAGE_COMMAND))
#define IS_PAGE_COMMAND_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_PAGE_COMMAND))
#define PAGE_COMMAND_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_PAGE_COMMAND, PageCommandClass))

typedef struct _PageCommand PageCommand;
typedef struct _PageCommandClass PageCommandClass;

#define TYPE_MULTIPLE_DATA_SOURCE_COMMAND (multiple_data_source_command_get_type ())
#define MULTIPLE_DATA_SOURCE_COMMAND(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_MULTIPLE_DATA_SOURCE_COMMAND, MultipleDataSourceCommand))
#define MULTIPLE_DATA_SOURCE_COMMAND_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_MULTIPLE_DATA_SOURCE_COMMAND, MultipleDataSourceCommandClass))
#define IS_MULTIPLE_DATA_SOURCE_COMMAND(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_MULTIPLE_DATA_SOURCE_COMMAND))
#define IS_MULTIPLE_DATA_SOURCE_COMMAND_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_MULTIPLE_DATA_SOURCE_COMMAND))
#define MULTIPLE_DATA_SOURCE_COMMAND_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_MULTIPLE_DATA_SOURCE_COMMAND, MultipleDataSourceCommandClass))

typedef struct _MultipleDataSourceCommand MultipleDataSourceCommand;
typedef struct _MultipleDataSourceCommandClass MultipleDataSourceCommandClass;

#define TYPE_ROTATE_MULTIPLE_COMMAND (rotate_multiple_command_get_type ())
#define ROTATE_MULTIPLE_COMMAND(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_ROTATE_MULTIPLE_COMMAND, RotateMultipleCommand))
#define ROTATE_MULTIPLE_COMMAND_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_ROTATE_MULTIPLE_COMMAND, RotateMultipleCommandClass))
#define IS_ROTATE_MULTIPLE_COMMAND(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_ROTATE_MULTIPLE_COMMAND))
#define IS_ROTATE_MULTIPLE_COMMAND_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_ROTATE_MULTIPLE_COMMAND))
#define ROTATE_MULTIPLE_COMMAND_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_ROTATE_MULTIPLE_COMMAND, RotateMultipleCommandClass))

typedef struct _RotateMultipleCommand RotateMultipleCommand;
typedef struct _RotateMultipleCommandClass RotateMultipleCommandClass;

#define TYPE_ROTATION (rotation_get_type ())

#define TYPE_COMMAND_MANAGER (command_manager_get_type ())
#define COMMAND_MANAGER(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_COMMAND_MANAGER, CommandManager))
#define COMMAND_MANAGER_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_COMMAND_MANAGER, CommandManagerClass))
#define IS_COMMAND_MANAGER(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_COMMAND_MANAGER))
#define IS_COMMAND_MANAGER_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_COMMAND_MANAGER))
#define COMMAND_MANAGER_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_COMMAND_MANAGER, CommandManagerClass))

typedef struct _CommandManager CommandManager;
typedef struct _CommandManagerClass CommandManagerClass;
#define _command_manager_unref0(var) ((var == NULL) ? NULL : (var = (command_manager_unref (var), NULL)))

#define TYPE_MULTIPLE_PHOTO_TRANSFORMATION_COMMAND (multiple_photo_transformation_command_get_type ())
#define MULTIPLE_PHOTO_TRANSFORMATION_COMMAND(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_MULTIPLE_PHOTO_TRANSFORMATION_COMMAND, MultiplePhotoTransformationCommand))
#define MULTIPLE_PHOTO_TRANSFORMATION_COMMAND_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_MULTIPLE_PHOTO_TRANSFORMATION_COMMAND, MultiplePhotoTransformationCommandClass))
#define IS_MULTIPLE_PHOTO_TRANSFORMATION_COMMAND(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_MULTIPLE_PHOTO_TRANSFORMATION_COMMAND))
#define IS_MULTIPLE_PHOTO_TRANSFORMATION_COMMAND_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_MULTIPLE_PHOTO_TRANSFORMATION_COMMAND))
#define MULTIPLE_PHOTO_TRANSFORMATION_COMMAND_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_MULTIPLE_PHOTO_TRANSFORMATION_COMMAND, MultiplePhotoTransformationCommandClass))

typedef struct _MultiplePhotoTransformationCommand MultiplePhotoTransformationCommand;
typedef struct _MultiplePhotoTransformationCommandClass MultiplePhotoTransformationCommandClass;

#define TYPE_REVERT_MULTIPLE_COMMAND (revert_multiple_command_get_type ())
#define REVERT_MULTIPLE_COMMAND(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_REVERT_MULTIPLE_COMMAND, RevertMultipleCommand))
#define REVERT_MULTIPLE_COMMAND_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_REVERT_MULTIPLE_COMMAND, RevertMultipleCommandClass))
#define IS_REVERT_MULTIPLE_COMMAND(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_REVERT_MULTIPLE_COMMAND))
#define IS_REVERT_MULTIPLE_COMMAND_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_REVERT_MULTIPLE_COMMAND))
#define REVERT_MULTIPLE_COMMAND_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_REVERT_MULTIPLE_COMMAND, RevertMultipleCommandClass))

typedef struct _RevertMultipleCommand RevertMultipleCommand;
typedef struct _RevertMultipleCommandClass RevertMultipleCommandClass;

#define TYPE_PIXEL_TRANSFORMATION_BUNDLE (pixel_transformation_bundle_get_type ())
#define PIXEL_TRANSFORMATION_BUNDLE(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_PIXEL_TRANSFORMATION_BUNDLE, PixelTransformationBundle))
#define PIXEL_TRANSFORMATION_BUNDLE_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_PIXEL_TRANSFORMATION_BUNDLE, PixelTransformationBundleClass))
#define IS_PIXEL_TRANSFORMATION_BUNDLE(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_PIXEL_TRANSFORMATION_BUNDLE))
#define IS_PIXEL_TRANSFORMATION_BUNDLE_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_PIXEL_TRANSFORMATION_BUNDLE))
#define PIXEL_TRANSFORMATION_BUNDLE_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_PIXEL_TRANSFORMATION_BUNDLE, PixelTransformationBundleClass))

typedef struct _PixelTransformationBundle PixelTransformationBundle;
typedef struct _PixelTransformationBundleClass PixelTransformationBundleClass;
#define _pixel_transformation_bundle_unref0(var) ((var == NULL) ? NULL : (var = (pixel_transformation_bundle_unref (var), NULL)))

#define TYPE_ADJUST_COLORS_MULTIPLE_COMMAND (adjust_colors_multiple_command_get_type ())
#define ADJUST_COLORS_MULTIPLE_COMMAND(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_ADJUST_COLORS_MULTIPLE_COMMAND, AdjustColorsMultipleCommand))
#define ADJUST_COLORS_MULTIPLE_COMMAND_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_ADJUST_COLORS_MULTIPLE_COMMAND, AdjustColorsMultipleCommandClass))
#define IS_ADJUST_COLORS_MULTIPLE_COMMAND(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_ADJUST_COLORS_MULTIPLE_COMMAND))
#define IS_ADJUST_COLORS_MULTIPLE_COMMAND_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_ADJUST_COLORS_MULTIPLE_COMMAND))
#define ADJUST_COLORS_MULTIPLE_COMMAND_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_ADJUST_COLORS_MULTIPLE_COMMAND, AdjustColorsMultipleCommandClass))

typedef struct _AdjustColorsMultipleCommand AdjustColorsMultipleCommand;
typedef struct _AdjustColorsMultipleCommandClass AdjustColorsMultipleCommandClass;

#define TYPE_ENHANCE_MULTIPLE_COMMAND (enhance_multiple_command_get_type ())
#define ENHANCE_MULTIPLE_COMMAND(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_ENHANCE_MULTIPLE_COMMAND, EnhanceMultipleCommand))
#define ENHANCE_MULTIPLE_COMMAND_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_ENHANCE_MULTIPLE_COMMAND, EnhanceMultipleCommandClass))
#define IS_ENHANCE_MULTIPLE_COMMAND(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_ENHANCE_MULTIPLE_COMMAND))
#define IS_ENHANCE_MULTIPLE_COMMAND_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_ENHANCE_MULTIPLE_COMMAND))
#define ENHANCE_MULTIPLE_COMMAND_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_ENHANCE_MULTIPLE_COMMAND, EnhanceMultipleCommandClass))

typedef struct _EnhanceMultipleCommand EnhanceMultipleCommand;
typedef struct _EnhanceMultipleCommandClass EnhanceMultipleCommandClass;

#define TYPE_DUPLICATE_MULTIPLE_PHOTOS_COMMAND (duplicate_multiple_photos_command_get_type ())
#define DUPLICATE_MULTIPLE_PHOTOS_COMMAND(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_DUPLICATE_MULTIPLE_PHOTOS_COMMAND, DuplicateMultiplePhotosCommand))
#define DUPLICATE_MULTIPLE_PHOTOS_COMMAND_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_DUPLICATE_MULTIPLE_PHOTOS_COMMAND, DuplicateMultiplePhotosCommandClass))
#define IS_DUPLICATE_MULTIPLE_PHOTOS_COMMAND(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_DUPLICATE_MULTIPLE_PHOTOS_COMMAND))
#define IS_DUPLICATE_MULTIPLE_PHOTOS_COMMAND_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_DUPLICATE_MULTIPLE_PHOTOS_COMMAND))
#define DUPLICATE_MULTIPLE_PHOTOS_COMMAND_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_DUPLICATE_MULTIPLE_PHOTOS_COMMAND, DuplicateMultiplePhotosCommandClass))

typedef struct _DuplicateMultiplePhotosCommand DuplicateMultiplePhotosCommand;
typedef struct _DuplicateMultiplePhotosCommandClass DuplicateMultiplePhotosCommandClass;

#define TYPE_DATEABLE (dateable_get_type ())
#define DATEABLE(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_DATEABLE, Dateable))
#define IS_DATEABLE(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_DATEABLE))
#define DATEABLE_GET_INTERFACE(obj) (G_TYPE_INSTANCE_GET_INTERFACE ((obj), TYPE_DATEABLE, DateableIface))

typedef struct _Dateable Dateable;
typedef struct _DateableIface DateableIface;

#define TYPE_ADJUST_DATE_TIME_DIALOG (adjust_date_time_dialog_get_type ())
#define ADJUST_DATE_TIME_DIALOG(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_ADJUST_DATE_TIME_DIALOG, AdjustDateTimeDialog))
#define ADJUST_DATE_TIME_DIALOG_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_ADJUST_DATE_TIME_DIALOG, AdjustDateTimeDialogClass))
#define IS_ADJUST_DATE_TIME_DIALOG(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_ADJUST_DATE_TIME_DIALOG))
#define IS_ADJUST_DATE_TIME_DIALOG_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_ADJUST_DATE_TIME_DIALOG))
#define ADJUST_DATE_TIME_DIALOG_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_ADJUST_DATE_TIME_DIALOG, AdjustDateTimeDialogClass))

typedef struct _AdjustDateTimeDialog AdjustDateTimeDialog;
typedef struct _AdjustDateTimeDialogClass AdjustDateTimeDialogClass;

#define TYPE_ADJUST_DATE_TIME_PHOTOS_COMMAND (adjust_date_time_photos_command_get_type ())
#define ADJUST_DATE_TIME_PHOTOS_COMMAND(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_ADJUST_DATE_TIME_PHOTOS_COMMAND, AdjustDateTimePhotosCommand))
#define ADJUST_DATE_TIME_PHOTOS_COMMAND_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_ADJUST_DATE_TIME_PHOTOS_COMMAND, AdjustDateTimePhotosCommandClass))
#define IS_ADJUST_DATE_TIME_PHOTOS_COMMAND(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_ADJUST_DATE_TIME_PHOTOS_COMMAND))
#define IS_ADJUST_DATE_TIME_PHOTOS_COMMAND_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_ADJUST_DATE_TIME_PHOTOS_COMMAND))
#define ADJUST_DATE_TIME_PHOTOS_COMMAND_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_ADJUST_DATE_TIME_PHOTOS_COMMAND, AdjustDateTimePhotosCommandClass))

typedef struct _AdjustDateTimePhotosCommand AdjustDateTimePhotosCommand;
typedef struct _AdjustDateTimePhotosCommandClass AdjustDateTimePhotosCommandClass;

#define TYPE_SET_BACKGROUND_PHOTO_DIALOG (set_background_photo_dialog_get_type ())
#define SET_BACKGROUND_PHOTO_DIALOG(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_SET_BACKGROUND_PHOTO_DIALOG, SetBackgroundPhotoDialog))
#define SET_BACKGROUND_PHOTO_DIALOG_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_SET_BACKGROUND_PHOTO_DIALOG, SetBackgroundPhotoDialogClass))
#define IS_SET_BACKGROUND_PHOTO_DIALOG(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_SET_BACKGROUND_PHOTO_DIALOG))
#define IS_SET_BACKGROUND_PHOTO_DIALOG_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_SET_BACKGROUND_PHOTO_DIALOG))
#define SET_BACKGROUND_PHOTO_DIALOG_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_SET_BACKGROUND_PHOTO_DIALOG, SetBackgroundPhotoDialogClass))

typedef struct _SetBackgroundPhotoDialog SetBackgroundPhotoDialog;
typedef struct _SetBackgroundPhotoDialogClass SetBackgroundPhotoDialogClass;

#define TYPE_SET_BACKGROUND_SLIDESHOW_DIALOG (set_background_slideshow_dialog_get_type ())
#define SET_BACKGROUND_SLIDESHOW_DIALOG(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_SET_BACKGROUND_SLIDESHOW_DIALOG, SetBackgroundSlideshowDialog))
#define SET_BACKGROUND_SLIDESHOW_DIALOG_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_SET_BACKGROUND_SLIDESHOW_DIALOG, SetBackgroundSlideshowDialogClass))
#define IS_SET_BACKGROUND_SLIDESHOW_DIALOG(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_SET_BACKGROUND_SLIDESHOW_DIALOG))
#define IS_SET_BACKGROUND_SLIDESHOW_DIALOG_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_SET_BACKGROUND_SLIDESHOW_DIALOG))
#define SET_BACKGROUND_SLIDESHOW_DIALOG_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_SET_BACKGROUND_SLIDESHOW_DIALOG, SetBackgroundSlideshowDialogClass))

typedef struct _SetBackgroundSlideshowDialog SetBackgroundSlideshowDialog;
typedef struct _SetBackgroundSlideshowDialogClass SetBackgroundSlideshowDialogClass;

#define TYPE_SOURCE_COLLECTION (source_collection_get_type ())
#define SOURCE_COLLECTION(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_SOURCE_COLLECTION, SourceCollection))
#define SOURCE_COLLECTION_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_SOURCE_COLLECTION, SourceCollectionClass))
#define IS_SOURCE_COLLECTION(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_SOURCE_COLLECTION))
#define IS_SOURCE_COLLECTION_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_SOURCE_COLLECTION))
#define SOURCE_COLLECTION_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_SOURCE_COLLECTION, SourceCollectionClass))

typedef struct _SourceCollection SourceCollection;
typedef struct _SourceCollectionClass SourceCollectionClass;

#define TYPE_DATABASE_SOURCE_COLLECTION (database_source_collection_get_type ())
#define DATABASE_SOURCE_COLLECTION(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_DATABASE_SOURCE_COLLECTION, DatabaseSourceCollection))
#define DATABASE_SOURCE_COLLECTION_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_DATABASE_SOURCE_COLLECTION, DatabaseSourceCollectionClass))
#define IS_DATABASE_SOURCE_COLLECTION(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_DATABASE_SOURCE_COLLECTION))
#define IS_DATABASE_SOURCE_COLLECTION_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_DATABASE_SOURCE_COLLECTION))
#define DATABASE_SOURCE_COLLECTION_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_DATABASE_SOURCE_COLLECTION, DatabaseSourceCollectionClass))

typedef struct _DatabaseSourceCollection DatabaseSourceCollection;
typedef struct _DatabaseSourceCollectionClass DatabaseSourceCollectionClass;

#define TYPE_MEDIA_SOURCE_COLLECTION (media_source_collection_get_type ())
#define MEDIA_SOURCE_COLLECTION(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_MEDIA_SOURCE_COLLECTION, MediaSourceCollection))
#define MEDIA_SOURCE_COLLECTION_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_MEDIA_SOURCE_COLLECTION, MediaSourceCollectionClass))
#define IS_MEDIA_SOURCE_COLLECTION(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_MEDIA_SOURCE_COLLECTION))
#define IS_MEDIA_SOURCE_COLLECTION_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_MEDIA_SOURCE_COLLECTION))
#define MEDIA_SOURCE_COLLECTION_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_MEDIA_SOURCE_COLLECTION, MediaSourceCollectionClass))

typedef struct _MediaSourceCollection MediaSourceCollection;
typedef struct _MediaSourceCollectionClass MediaSourceCollectionClass;

#define TYPE_LIBRARY_PHOTO_SOURCE_COLLECTION (library_photo_source_collection_get_type ())
#define LIBRARY_PHOTO_SOURCE_COLLECTION(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_LIBRARY_PHOTO_SOURCE_COLLECTION, LibraryPhotoSourceCollection))
#define LIBRARY_PHOTO_SOURCE_COLLECTION_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_LIBRARY_PHOTO_SOURCE_COLLECTION, LibraryPhotoSourceCollectionClass))
#define IS_LIBRARY_PHOTO_SOURCE_COLLECTION(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_LIBRARY_PHOTO_SOURCE_COLLECTION))
#define IS_LIBRARY_PHOTO_SOURCE_COLLECTION_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_LIBRARY_PHOTO_SOURCE_COLLECTION))
#define LIBRARY_PHOTO_SOURCE_COLLECTION_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_LIBRARY_PHOTO_SOURCE_COLLECTION, LibraryPhotoSourceCollectionClass))

typedef struct _LibraryPhotoSourceCollection LibraryPhotoSourceCollection;
typedef struct _LibraryPhotoSourceCollectionClass LibraryPhotoSourceCollectionClass;

#define TYPE_SINGLE_PHOTO_PAGE (single_photo_page_get_type ())
#define SINGLE_PHOTO_PAGE(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_SINGLE_PHOTO_PAGE, SinglePhotoPage))
#define SINGLE_PHOTO_PAGE_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_SINGLE_PHOTO_PAGE, SinglePhotoPageClass))
#define IS_SINGLE_PHOTO_PAGE(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_SINGLE_PHOTO_PAGE))
#define IS_SINGLE_PHOTO_PAGE_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_SINGLE_PHOTO_PAGE))
#define SINGLE_PHOTO_PAGE_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_SINGLE_PHOTO_PAGE, SinglePhotoPageClass))

typedef struct _SinglePhotoPage SinglePhotoPage;
typedef struct _SinglePhotoPageClass SinglePhotoPageClass;

#define TYPE_SLIDESHOW_PAGE (slideshow_page_get_type ())
#define SLIDESHOW_PAGE(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_SLIDESHOW_PAGE, SlideshowPage))
#define SLIDESHOW_PAGE_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_SLIDESHOW_PAGE, SlideshowPageClass))
#define IS_SLIDESHOW_PAGE(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_SLIDESHOW_PAGE))
#define IS_SLIDESHOW_PAGE_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_SLIDESHOW_PAGE))
#define SLIDESHOW_PAGE_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_SLIDESHOW_PAGE, SlideshowPageClass))

typedef struct _SlideshowPage SlideshowPage;
typedef struct _SlideshowPageClass SlideshowPageClass;
typedef struct _ViewFilterPrivate ViewFilterPrivate;
typedef struct _SearchViewFilterPrivate SearchViewFilterPrivate;
typedef struct _DefaultSearchViewFilterPrivate DefaultSearchViewFilterPrivate;
typedef struct _CollectionPageCollectionSearchViewFilterPrivate CollectionPageCollectionSearchViewFilterPrivate;

#define TYPE_SEARCH_FILTER_CRITERIA (search_filter_criteria_get_type ())
#define _vala_assert(expr, msg) if G_LIKELY (expr) ; else g_assertion_message_expr (G_LOG_DOMAIN, __FILE__, __LINE__, G_STRFUNC, msg);
#define _vala_return_if_fail(expr, msg) if G_LIKELY (expr) ; else { g_return_if_fail_warning (G_LOG_DOMAIN, G_STRFUNC, msg); return; }
#define _vala_return_val_if_fail(expr, msg, val) if G_LIKELY (expr) ; else { g_return_if_fail_warning (G_LOG_DOMAIN, G_STRFUNC, msg); return val; }
#define _vala_warn_if_fail(expr, msg) if G_LIKELY (expr) ; else g_warn_message (G_LOG_DOMAIN, __FILE__, __LINE__, G_STRFUNC, msg);

struct _ViewManager {
	GTypeInstance parent_instance;
	volatile int ref_count;
	ViewManagerPrivate * priv;
};

struct _ViewManagerClass {
	GTypeClass parent_class;
	void (*finalize) (ViewManager *self);
	gboolean (*include_in_view) (ViewManager* self, DataSource* source);
	DataView* (*create_view) (ViewManager* self, DataSource* source);
};

struct _CollectionViewManager {
	ViewManager parent_instance;
	CollectionViewManagerPrivate * priv;
};

struct _CollectionViewManagerClass {
	ViewManagerClass parent_class;
};

struct _CollectionViewManagerPrivate {
	CollectionPage* page;
};

struct _Page {
	GtkScrolledWindow parent_instance;
	PagePrivate * priv;
	GtkBuilder* builder;
	GtkToolbar* toolbar;
	gboolean in_view;
};

struct _PageClass {
	GtkScrolledWindowClass parent_class;
	void (*set_page_name) (Page* self, const gchar* page_name);
	void (*set_container) (Page* self, GtkWindow* container);
	void (*clear_container) (Page* self);
	GtkToolbar* (*get_toolbar) (Page* self);
	GtkMenu* (*get_page_context_menu) (Page* self);
	void (*switching_from) (Page* self);
	void (*switched_to) (Page* self);
	void (*ready) (Page* self);
	void (*switching_to_fullscreen) (Page* self, FullscreenWindow* fsw);
	void (*returning_from_fullscreen) (Page* self, FullscreenWindow* fsw);
	void (*add_actions) (Page* self, GActionMap* map);
	void (*remove_actions) (Page* self, GActionMap* map);
	void (*init_collect_ui_filenames) (Page* self, GeeList* ui_filenames);
	InjectionGroup** (*init_collect_injection_groups) (Page* self, int* result_length1);
	void (*init_actions) (Page* self, gint selected_count, gint count);
	void (*update_actions) (Page* self, gint selected_count, gint count);
	gboolean (*source_drag_failed) (Page* self, GdkDragContext* context, GtkDragResult drag_result);
	gboolean (*on_left_click) (Page* self, GdkEventButton* event);
	gboolean (*on_middle_click) (Page* self, GdkEventButton* event);
	gboolean (*on_right_click) (Page* self, GdkEventButton* event);
	gboolean (*on_left_released) (Page* self, GdkEventButton* event);
	gboolean (*on_middle_released) (Page* self, GdkEventButton* event);
	gboolean (*on_right_released) (Page* self, GdkEventButton* event);
	gboolean (*on_ctrl_pressed) (Page* self, GdkEventKey* event);
	gboolean (*on_ctrl_released) (Page* self, GdkEventKey* event);
	gboolean (*on_alt_pressed) (Page* self, GdkEventKey* event);
	gboolean (*on_alt_released) (Page* self, GdkEventKey* event);
	gboolean (*on_shift_pressed) (Page* self, GdkEventKey* event);
	gboolean (*on_shift_released) (Page* self, GdkEventKey* event);
	gboolean (*on_super_pressed) (Page* self, GdkEventKey* event);
	gboolean (*on_super_released) (Page* self, GdkEventKey* event);
	gboolean (*on_app_key_pressed) (Page* self, GdkEventKey* event);
	gboolean (*on_app_key_released) (Page* self, GdkEventKey* event);
	void (*on_move) (Page* self, GdkRectangle* rect);
	void (*on_move_start) (Page* self, GdkRectangle* rect);
	void (*on_move_finished) (Page* self, GdkRectangle* rect);
	void (*on_resize) (Page* self, GdkRectangle* rect);
	void (*on_resize_start) (Page* self, GdkRectangle* rect);
	void (*on_resize_finished) (Page* self, GdkRectangle* rect);
	gboolean (*on_configure) (Page* self, GdkEventConfigure* event, GdkRectangle* rect);
	gboolean (*on_motion) (Page* self, GdkEventMotion* event, gint x, gint y, GdkModifierType mask);
	gboolean (*on_leave_notify_event) (Page* self);
	gboolean (*on_mousewheel_up) (Page* self, GdkEventScroll* event);
	gboolean (*on_mousewheel_down) (Page* self, GdkEventScroll* event);
	gboolean (*on_mousewheel_left) (Page* self, GdkEventScroll* event);
	gboolean (*on_mousewheel_right) (Page* self, GdkEventScroll* event);
	gboolean (*on_context_keypress) (Page* self);
	gboolean (*on_context_buttonpress) (Page* self, GdkEventButton* event);
	gboolean (*on_context_invoked) (Page* self);
	void (*set_page_cursor) (Page* self, GdkCursorType cursor_type);
};

typedef enum  {
	CHECKERBOARD_PAGE_ACTIVATOR_KEYBOARD,
	CHECKERBOARD_PAGE_ACTIVATOR_MOUSE
} CheckerboardPageActivator;

struct _CheckerboardPageKeyboardModifiers {
	gboolean ctrl_pressed;
	gboolean alt_pressed;
	gboolean shift_pressed;
	gboolean super_pressed;
};

struct _CheckerboardPage {
	Page parent_instance;
	CheckerboardPagePrivate * priv;
	CheckerboardItem* anchor;
	CheckerboardItem* cursor;
};

struct _CheckerboardPageClass {
	PageClass parent_class;
	GtkMenu* (*get_item_context_menu) (CheckerboardPage* self);
	gchar* (*get_view_empty_message) (CheckerboardPage* self);
	gchar* (*get_filter_no_match_message) (CheckerboardPage* self);
	void (*on_item_activated) (CheckerboardPage* self, CheckerboardItem* item, CheckerboardPageActivator activator, CheckerboardPageKeyboardModifiers* modifiers);
	SearchViewFilter* (*get_search_view_filter) (CheckerboardPage* self);
	CoreViewTracker* (*get_view_tracker) (CheckerboardPage* self);
	gboolean (*on_mouse_over) (CheckerboardPage* self, CheckerboardItem* item, gint x, gint y, GdkModifierType mask);
	void (*set_display_titles) (CheckerboardPage* self, gboolean display);
	void (*set_display_comments) (CheckerboardPage* self, gboolean display);
};

typedef enum  {
	RATING_REJECTED = -1,
	RATING_UNRATED = 0,
	RATING_ONE = 1,
	RATING_TWO = 2,
	RATING_THREE = 3,
	RATING_FOUR = 4,
	RATING_FIVE = 5
} Rating;

typedef enum  {
	RAW_DEVELOPER_SHOTWELL = 0,
	RAW_DEVELOPER_CAMERA,
	RAW_DEVELOPER_EMBEDDED
} RawDeveloper;

struct _MediaPage {
	CheckerboardPage parent_instance;
	MediaPagePrivate * priv;
};

struct _MediaPageClass {
	CheckerboardPageClass parent_class;
	void (*on_zoom_changed) (MediaPage* self);
	void (*on_export) (MediaPage* self);
	void (*on_increase_size) (MediaPage* self);
	void (*on_decrease_size) (MediaPage* self);
	void (*on_increase_rating) (MediaPage* self);
	void (*on_decrease_rating) (MediaPage* self);
	void (*on_set_rating) (MediaPage* self, Rating rating);
	void (*on_rate_rejected) (MediaPage* self);
	void (*on_rate_unrated) (MediaPage* self);
	void (*on_rate_one) (MediaPage* self);
	void (*on_rate_two) (MediaPage* self);
	void (*on_rate_three) (MediaPage* self);
	void (*on_rate_four) (MediaPage* self);
	void (*on_rate_five) (MediaPage* self);
	void (*on_move_to_trash) (MediaPage* self);
	void (*on_edit_title) (MediaPage* self);
	void (*on_edit_comment) (MediaPage* self);
	void (*on_display_titles) (MediaPage* self, GSimpleAction* action, GVariant* value);
	void (*on_display_comments) (MediaPage* self, GSimpleAction* action, GVariant* value);
	void (*on_display_ratings) (MediaPage* self, GSimpleAction* action, GVariant* value);
	void (*on_display_tags) (MediaPage* self, GSimpleAction* action, GVariant* value);
	void (*get_config_photos_sort) (MediaPage* self, gboolean* sort_order, gint* sort_by);
	void (*set_config_photos_sort) (MediaPage* self, gboolean sort_order, gint sort_by);
	void (*on_sort_changed) (MediaPage* self, GSimpleAction* action, GVariant* value);
	void (*developer_changed) (MediaPage* self, RawDeveloper rd);
	DataView* (*create_thumbnail) (MediaPage* self, DataSource* source);
};

struct _CollectionPage {
	MediaPage parent_instance;
	CollectionPagePrivate * priv;
};

struct _CollectionPageClass {
	MediaPageClass parent_class;
};

struct _CollectionPagePrivate {
	ExporterUI* exporter;
	CollectionPageCollectionSearchViewFilter* search_filter;
};

typedef enum  {
	PHOTO_FILE_FORMAT_JFIF,
	PHOTO_FILE_FORMAT_RAW,
	PHOTO_FILE_FORMAT_PNG,
	PHOTO_FILE_FORMAT_TIFF,
	PHOTO_FILE_FORMAT_BMP,
	PHOTO_FILE_FORMAT_UNKNOWN
} PhotoFileFormat;

typedef void (*ExporterCompletionCallback) (Exporter* exporter, gboolean is_cancelled, void* user_data);
typedef enum  {
	EXPORT_FORMAT_MODE_UNMODIFIED,
	EXPORT_FORMAT_MODE_CURRENT,
	EXPORT_FORMAT_MODE_SPECIFIED,
	EXPORT_FORMAT_MODE_LAST
} ExportFormatMode;

typedef enum  {
	JPEG_QUALITY_LOW = 50,
	JPEG_QUALITY_MEDIUM = 75,
	JPEG_QUALITY_HIGH = 90,
	JPEG_QUALITY_MAXIMUM = 100
} JpegQuality;

struct _ExportFormatParameters {
	ExportFormatMode mode;
	PhotoFileFormat specified_format;
	JpegQuality quality;
	gboolean export_metadata;
};

typedef enum  {
	SCALE_CONSTRAINT_ORIGINAL,
	SCALE_CONSTRAINT_DIMENSIONS,
	SCALE_CONSTRAINT_WIDTH,
	SCALE_CONSTRAINT_HEIGHT,
	SCALE_CONSTRAINT_FILL_VIEWPORT
} ScaleConstraint;

struct _Dimensions {
	gint width;
	gint height;
};

struct _Scaling {
	ScaleConstraint constraint;
	gint scale;
	Dimensions viewport;
	gboolean scale_up;
};

typedef enum  {
	ROTATION_CLOCKWISE,
	ROTATION_COUNTERCLOCKWISE,
	ROTATION_MIRROR,
	ROTATION_UPSIDE_DOWN
} Rotation;

struct _DateableIface {
	GTypeInterface parent_iface;
	void (*set_exposure_time) (Dateable* self, time_t target_time);
	time_t (*get_exposure_time) (Dateable* self);
};

struct _ViewFilter {
	GTypeInstance parent_instance;
	volatile int ref_count;
	ViewFilterPrivate * priv;
};

struct _ViewFilterClass {
	GTypeClass parent_class;
	void (*finalize) (ViewFilter *self);
	gboolean (*predicate) (ViewFilter* self, DataView* view);
	void (*refresh) (ViewFilter* self);
};

struct _SearchViewFilter {
	ViewFilter parent_instance;
	SearchViewFilterPrivate * priv;
};

struct _SearchViewFilterClass {
	ViewFilterClass parent_class;
	guint (*get_criteria) (SearchViewFilter* self);
};

struct _DefaultSearchViewFilter {
	SearchViewFilter parent_instance;
	DefaultSearchViewFilterPrivate * priv;
};

struct _DefaultSearchViewFilterClass {
	SearchViewFilterClass parent_class;
};

struct _CollectionPageCollectionSearchViewFilter {
	DefaultSearchViewFilter parent_instance;
	CollectionPageCollectionSearchViewFilterPrivate * priv;
};

struct _CollectionPageCollectionSearchViewFilterClass {
	DefaultSearchViewFilterClass parent_class;
};

typedef enum  {
	SEARCH_FILTER_CRITERIA_NONE = 0,
	SEARCH_FILTER_CRITERIA_RECURSIVE = 1 << 0,
	SEARCH_FILTER_CRITERIA_TEXT = 1 << 1,
	SEARCH_FILTER_CRITERIA_FLAG = 1 << 2,
	SEARCH_FILTER_CRITERIA_MEDIA = 1 << 3,
	SEARCH_FILTER_CRITERIA_RATING = 1 << 4,
	SEARCH_FILTER_CRITERIA_SAVEDSEARCH = 1 << 5,
	SEARCH_FILTER_CRITERIA_ALL = 0xFFFFFFFFLL
} SearchFilterCriteria;


static gpointer collection_view_manager_parent_class = NULL;
static gpointer collection_page_parent_class = NULL;
extern LibraryPhotoSourceCollection* library_photo_global;
static gpointer collection_page_collection_search_view_filter_parent_class = NULL;

gpointer view_manager_ref (gpointer instance);
void view_manager_unref (gpointer instance);
GParamSpec* param_spec_view_manager (const gchar* name, const gchar* nick, const gchar* blurb, GType object_type, GParamFlags flags);
void value_set_view_manager (GValue* value, gpointer v_object);
void value_take_view_manager (GValue* value, gpointer v_object);
gpointer value_get_view_manager (const GValue* value);
GType view_manager_get_type (void) G_GNUC_CONST;
GType data_object_get_type (void) G_GNUC_CONST;
GType data_source_get_type (void) G_GNUC_CONST;
GType data_view_get_type (void) G_GNUC_CONST;
GType collection_view_manager_get_type (void) G_GNUC_CONST;
GType page_get_type (void) G_GNUC_CONST;
GType checkerboard_page_get_type (void) G_GNUC_CONST;
GType media_page_get_type (void) G_GNUC_CONST;
GType collection_page_get_type (void) G_GNUC_CONST;
#define COLLECTION_VIEW_MANAGER_GET_PRIVATE(o) (G_TYPE_INSTANCE_GET_PRIVATE ((o), TYPE_COLLECTION_VIEW_MANAGER, CollectionViewManagerPrivate))
enum  {
	COLLECTION_VIEW_MANAGER_DUMMY_PROPERTY
};
CollectionViewManager* collection_view_manager_new (CollectionPage* page);
CollectionViewManager* collection_view_manager_construct (GType object_type, CollectionPage* page);
ViewManager* view_manager_construct (GType object_type);
static DataView* collection_view_manager_real_create_view (ViewManager* base, DataSource* source);
DataView* media_page_create_thumbnail (MediaPage* self, DataSource* source);
static void collection_view_manager_finalize (ViewManager* obj);
GType page_window_get_type (void) G_GNUC_CONST;
GType fullscreen_window_get_type (void) G_GNUC_CONST;
gpointer injection_group_ref (gpointer instance);
void injection_group_unref (gpointer instance);
GParamSpec* param_spec_injection_group (const gchar* name, const gchar* nick, const gchar* blurb, GType object_type, GParamFlags flags);
void value_set_injection_group (GValue* value, gpointer v_object);
void value_take_injection_group (GValue* value, gpointer v_object);
gpointer value_get_injection_group (const GValue* value);
GType injection_group_get_type (void) G_GNUC_CONST;
GType thumbnail_view_get_type (void) G_GNUC_CONST;
GType checkerboard_item_get_type (void) G_GNUC_CONST;
GType checkerboard_page_activator_get_type (void) G_GNUC_CONST;
GType checkerboard_page_keyboard_modifiers_get_type (void) G_GNUC_CONST;
CheckerboardPageKeyboardModifiers* checkerboard_page_keyboard_modifiers_dup (const CheckerboardPageKeyboardModifiers* self);
void checkerboard_page_keyboard_modifiers_free (CheckerboardPageKeyboardModifiers* self);
gpointer view_filter_ref (gpointer instance);
void view_filter_unref (gpointer instance);
GParamSpec* param_spec_view_filter (const gchar* name, const gchar* nick, const gchar* blurb, GType object_type, GParamFlags flags);
void value_set_view_filter (GValue* value, gpointer v_object);
void value_take_view_filter (GValue* value, gpointer v_object);
gpointer value_get_view_filter (const GValue* value);
GType view_filter_get_type (void) G_GNUC_CONST;
GType search_view_filter_get_type (void) G_GNUC_CONST;
gpointer core_tracker_ref (gpointer instance);
void core_tracker_unref (gpointer instance);
GParamSpec* core_param_spec_tracker (const gchar* name, const gchar* nick, const gchar* blurb, GType object_type, GParamFlags flags);
void core_value_set_tracker (GValue* value, gpointer v_object);
void core_value_take_tracker (GValue* value, gpointer v_object);
gpointer core_value_get_tracker (const GValue* value);
GType core_tracker_get_type (void) G_GNUC_CONST;
GType core_view_tracker_get_type (void) G_GNUC_CONST;
GType rating_get_type (void) G_GNUC_CONST;
GType raw_developer_get_type (void) G_GNUC_CONST;
gpointer exporter_ui_ref (gpointer instance);
void exporter_ui_unref (gpointer instance);
GParamSpec* param_spec_exporter_ui (const gchar* name, const gchar* nick, const gchar* blurb, GType object_type, GParamFlags flags);
void value_set_exporter_ui (GValue* value, gpointer v_object);
void value_take_exporter_ui (GValue* value, gpointer v_object);
gpointer value_get_exporter_ui (const GValue* value);
GType exporter_ui_get_type (void) G_GNUC_CONST;
GType default_search_view_filter_get_type (void) G_GNUC_CONST;
GType collection_page_collection_search_view_filter_get_type (void) G_GNUC_CONST;
#define COLLECTION_PAGE_GET_PRIVATE(o) (G_TYPE_INSTANCE_GET_PRIVATE ((o), TYPE_COLLECTION_PAGE, CollectionPagePrivate))
enum  {
	COLLECTION_PAGE_DUMMY_PROPERTY
};
CollectionPageCollectionSearchViewFilter* collection_page_collection_search_view_filter_new (void);
CollectionPageCollectionSearchViewFilter* collection_page_collection_search_view_filter_construct (GType object_type);
#define COLLECTION_PAGE_DESKTOP_SLIDESHOW_TRANSITION_SEC 2.0
static void collection_page_on_print (CollectionPage* self);
static void _collection_page_on_print_gsimple_action_activate_callback (GSimpleAction* action, GVariant* parameter, gpointer self);
static void collection_page_on_publish (CollectionPage* self);
static void _collection_page_on_publish_gsimple_action_activate_callback (GSimpleAction* action, GVariant* parameter, gpointer self);
static void collection_page_on_rotate_clockwise (CollectionPage* self);
static void _collection_page_on_rotate_clockwise_gsimple_action_activate_callback (GSimpleAction* action, GVariant* parameter, gpointer self);
static void collection_page_on_rotate_counterclockwise (CollectionPage* self);
static void _collection_page_on_rotate_counterclockwise_gsimple_action_activate_callback (GSimpleAction* action, GVariant* parameter, gpointer self);
static void collection_page_on_flip_horizontally (CollectionPage* self);
static void _collection_page_on_flip_horizontally_gsimple_action_activate_callback (GSimpleAction* action, GVariant* parameter, gpointer self);
static void collection_page_on_flip_vertically (CollectionPage* self);
static void _collection_page_on_flip_vertically_gsimple_action_activate_callback (GSimpleAction* action, GVariant* parameter, gpointer self);
static void collection_page_on_enhance (CollectionPage* self);
static void _collection_page_on_enhance_gsimple_action_activate_callback (GSimpleAction* action, GVariant* parameter, gpointer self);
void collection_page_on_copy_adjustments (CollectionPage* self);
static void _collection_page_on_copy_adjustments_gsimple_action_activate_callback (GSimpleAction* action, GVariant* parameter, gpointer self);
void collection_page_on_paste_adjustments (CollectionPage* self);
static void _collection_page_on_paste_adjustments_gsimple_action_activate_callback (GSimpleAction* action, GVariant* parameter, gpointer self);
static void collection_page_on_revert (CollectionPage* self);
static void _collection_page_on_revert_gsimple_action_activate_callback (GSimpleAction* action, GVariant* parameter, gpointer self);
void collection_page_on_set_background (CollectionPage* self);
static void _collection_page_on_set_background_gsimple_action_activate_callback (GSimpleAction* action, GVariant* parameter, gpointer self);
static void collection_page_on_duplicate_photo (CollectionPage* self);
static void _collection_page_on_duplicate_photo_gsimple_action_activate_callback (GSimpleAction* action, GVariant* parameter, gpointer self);
static void collection_page_on_adjust_date_time (CollectionPage* self);
static void _collection_page_on_adjust_date_time_gsimple_action_activate_callback (GSimpleAction* action, GVariant* parameter, gpointer self);
static void collection_page_on_external_edit (CollectionPage* self);
static void _collection_page_on_external_edit_gsimple_action_activate_callback (GSimpleAction* action, GVariant* parameter, gpointer self);
static void collection_page_on_external_edit_raw (CollectionPage* self);
static void _collection_page_on_external_edit_raw_gsimple_action_activate_callback (GSimpleAction* action, GVariant* parameter, gpointer self);
static void collection_page_on_slideshow (CollectionPage* self);
static void _collection_page_on_slideshow_gsimple_action_activate_callback (GSimpleAction* action, GVariant* parameter, gpointer self);
CollectionPage* collection_page_construct (GType object_type, const gchar* page_name);
MediaPage* media_page_construct (GType object_type, const gchar* page_name);
gpointer data_collection_ref (gpointer instance);
void data_collection_unref (gpointer instance);
GParamSpec* param_spec_data_collection (const gchar* name, const gchar* nick, const gchar* blurb, GType object_type, GParamFlags flags);
void value_set_data_collection (GValue* value, gpointer v_object);
void value_take_data_collection (GValue* value, gpointer v_object);
gpointer value_get_data_collection (const GValue* value);
GType data_collection_get_type (void) G_GNUC_CONST;
GType view_collection_get_type (void) G_GNUC_CONST;
ViewCollection* page_get_view (Page* self);
gpointer alteration_ref (gpointer instance);
void alteration_unref (gpointer instance);
GParamSpec* param_spec_alteration (const gchar* name, const gchar* nick, const gchar* blurb, GType object_type, GParamFlags flags);
void value_set_alteration (GValue* value, gpointer v_object);
void value_take_alteration (GValue* value, gpointer v_object);
gpointer value_get_alteration (const GValue* value);
GType alteration_get_type (void) G_GNUC_CONST;
static void collection_page_on_photos_altered (CollectionPage* self, GeeMap* altered);
static void _collection_page_on_photos_altered_data_collection_items_altered (DataCollection* _sender, GeeMap* items, gpointer self);
void checkerboard_page_init_item_context_menu (CheckerboardPage* self, const gchar* path);
void page_init_toolbar (Page* self, const gchar* path);
GType configuration_facade_get_type (void) G_GNUC_CONST;
GType config_facade_get_type (void) G_GNUC_CONST;
ConfigFacade* config_facade_get_instance (void);
static void collection_page_on_external_app_changed (CollectionPage* self);
static void _collection_page_on_external_app_changed_configuration_facade_external_app_changed (ConfigurationFacade* _sender, gpointer self);
static GtkToolbar* collection_page_real_get_toolbar (Page* base);
GtkToolbar* page_get_toolbar (Page* self);
GType media_page_zoom_slider_assembly_get_type (void) G_GNUC_CONST;
MediaPageZoomSliderAssembly* media_page_create_zoom_slider_assembly (MediaPage* self);
void media_page_connect_slider (MediaPage* self, MediaPageZoomSliderAssembly* slider);
static InjectionGroup* collection_page_create_file_menu_injectables (void);
InjectionGroup* injection_group_new (const gchar* path);
InjectionGroup* injection_group_construct (GType object_type, const gchar* path);
void injection_group_add_menu_item (InjectionGroup* self, const gchar* name, const gchar* action, const gchar* accellerator);
void injection_group_add_separator (InjectionGroup* self);
static InjectionGroup* collection_page_create_edit_menu_injectables (void);
static InjectionGroup* collection_page_create_view_menu_fullscreen_injectables (void);
static InjectionGroup* collection_page_create_photos_menu_edits_injectables (void);
static InjectionGroup* collection_page_create_photos_menu_date_injectables (void);
static InjectionGroup* collection_page_create_photos_menu_externals_injectables (void);
static void collection_page_real_init_collect_ui_filenames (Page* base, GeeList* ui_filenames);
void page_init_collect_ui_filenames (Page* self, GeeList* ui_filenames);
static void collection_page_real_add_actions (Page* base, GActionMap* map);
void page_add_actions (Page* self, GActionMap* map);
static void collection_page_real_remove_actions (Page* base, GActionMap* map);
void page_remove_actions (Page* self, GActionMap* map);
static InjectionGroup** collection_page_real_init_collect_injection_groups (Page* base, int* result_length1);
InjectionGroup** page_init_collect_injection_groups (Page* self, int* result_length1);
static void _vala_array_add76 (InjectionGroup*** array, int* length, int* size, InjectionGroup* value);
static void _vala_array_add77 (InjectionGroup*** array, int* length, int* size, InjectionGroup* value);
static void _vala_array_add78 (InjectionGroup*** array, int* length, int* size, InjectionGroup* value);
static void _vala_array_add79 (InjectionGroup*** array, int* length, int* size, InjectionGroup* value);
static void _vala_array_add80 (InjectionGroup*** array, int* length, int* size, InjectionGroup* value);
static void _vala_array_add81 (InjectionGroup*** array, int* length, int* size, InjectionGroup* value);
static gboolean collection_page_selection_has_video (CollectionPage* self);
GType thumbnail_source_get_type (void) G_GNUC_CONST;
GType media_source_get_type (void) G_GNUC_CONST;
gboolean media_source_collection_has_video (GeeCollection* media);
GeeList* view_collection_get_selected_sources (ViewCollection* self);
static gboolean collection_page_page_has_photo (CollectionPage* self);
gboolean media_source_collection_has_photo (GeeCollection* media);
GeeCollection* view_collection_get_sources (ViewCollection* self);
static gboolean collection_page_selection_has_photo (CollectionPage* self);
static void collection_page_real_init_actions (Page* base, gint selected_count, gint count);
void page_init_actions (Page* self, gint selected_count, gint count);
void page_set_action_short_label (Page* self, const gchar* name, const gchar* short_label);
#define RESOURCES_ROTATE_CW_LABEL _ ("Rotate")
#define RESOURCES_ROTATE_CCW_LABEL _ ("Rotate")
#define RESOURCES_PUBLISH_LABEL _ ("Publish")
void page_set_action_important (Page* self, const gchar* name, gboolean important);
static void collection_page_real_update_actions (Page* base, gint selected_count, gint count);
GType app_window_get_type (void) G_GNUC_CONST;
AppWindow* app_window_get_instance (void);
Page* page_window_get_current_page (PageWindow* self);
void page_update_actions (Page* self, gint selected_count, gint count);
DataView* view_collection_get_selected_at (ViewCollection* self, gint index);
DataSource* data_view_get_source (DataView* self);
GType video_source_get_type (void) G_GNUC_CONST;
GType video_get_type (void) G_GNUC_CONST;
void page_set_action_sensitive (Page* self, const gchar* name, gboolean sensitive);
void page_set_action_visible (Page* self, const gchar* name, gboolean visible);
gboolean is_string_empty (const gchar* s);
gchar* configuration_facade_get_external_photo_app (ConfigurationFacade* self);
GType photo_source_get_type (void) G_GNUC_CONST;
GType photo_get_type (void) G_GNUC_CONST;
GType photo_file_format_get_type (void) G_GNUC_CONST;
PhotoFileFormat photo_get_master_file_format (Photo* self);
gchar* configuration_facade_get_external_raw_app (ConfigurationFacade* self);
static gboolean collection_page_can_revert_selected (CollectionPage* self);
gboolean photo_has_color_adjustments (Photo* self);
gboolean pixel_transformation_bundle_has_copied_color_adjustments (void);
#define RESOURCES_SET_BACKGROUND_MENU _ ("Set as _Desktop Background")
#define RESOURCES_SET_BACKGROUND_SLIDESHOW_MENU _ ("Set as _Desktop Slideshow…")
void page_update_menu_item_label (Page* self, const gchar* id, const gchar* new_label);
gboolean data_view_is_selected (DataView* self);
gboolean alteration_has_subject (Alteration* self, const gchar* subject);
GType library_photo_get_type (void) G_GNUC_CONST;
gint view_collection_get_selected_count (ViewCollection* self);
gpointer print_manager_ref (gpointer instance);
void print_manager_unref (gpointer instance);
GParamSpec* param_spec_print_manager (const gchar* name, const gchar* nick, const gchar* blurb, GType object_type, GParamFlags flags);
void value_set_print_manager (GValue* value, gpointer v_object);
void value_take_print_manager (GValue* value, gpointer v_object);
gpointer value_get_print_manager (const GValue* value);
GType print_manager_get_type (void) G_GNUC_CONST;
PrintManager* print_manager_get_instance (void);
void print_manager_spool_photo (PrintManager* self, GeeCollection* to_print);
GeeList* view_collection_get_selected_sources_of_type (ViewCollection* self, GType t);
static void collection_page_real_on_item_activated (CheckerboardPage* base, CheckerboardItem* item, CheckerboardPageActivator activator, CheckerboardPageKeyboardModifiers* modifiers);
GType media_source_item_get_type (void) G_GNUC_CONST;
GType thumbnail_get_type (void) G_GNUC_CONST;
MediaSource* thumbnail_get_media_source (Thumbnail* self);
void media_page_on_play_video (MediaPage* self);
gchar* data_object_to_string (DataObject* self);
GType library_window_get_type (void) G_GNUC_CONST;
LibraryWindow* library_window_get_app (void);
void library_window_switch_to_photo_page (LibraryWindow* self, CollectionPage* controller, Photo* current);
static gboolean collection_page_real_on_app_key_pressed (Page* base, GdkEventKey* event);
void page_activate_action (Page* self, const gchar* name);
gboolean page_on_app_key_pressed (Page* self, GdkEventKey* event);
static void collection_page_real_on_export (MediaPage* base);
GType exporter_get_type (void) G_GNUC_CONST;
ExporterUI* video_export_many (GeeCollection* videos, ExporterCompletionCallback done, void* done_target, gboolean export_in_place);
static void collection_page_on_export_completed (CollectionPage* self);
static void _collection_page_on_export_completed_exporter_completion_callback (Exporter* exporter, gboolean is_cancelled, gpointer self);
GType export_dialog_get_type (void) G_GNUC_CONST;
ExportDialog* export_dialog_new (const gchar* title);
ExportDialog* export_dialog_construct (GType object_type, const gchar* title);
GType export_format_parameters_get_type (void) G_GNUC_CONST;
GType export_format_mode_get_type (void) G_GNUC_CONST;
GType jpeg_quality_get_type (void) G_GNUC_CONST;
ExportFormatParameters* export_format_parameters_dup (const ExportFormatParameters* self);
void export_format_parameters_free (ExportFormatParameters* self);
void export_format_parameters_current (ExportFormatParameters* result);
void export_format_parameters_last (ExportFormatParameters* result);
GType scale_constraint_get_type (void) G_GNUC_CONST;
gboolean export_dialog_execute (ExportDialog* self, gint* scale, ScaleConstraint* constraint, ExportFormatParameters* parameters);
GType scaling_get_type (void) G_GNUC_CONST;
GType dimensions_get_type (void) G_GNUC_CONST;
Dimensions* dimensions_dup (const Dimensions* self);
void dimensions_free (Dimensions* self);
Scaling* scaling_dup (const Scaling* self);
void scaling_free (Scaling* self);
void scaling_for_constraint (ScaleConstraint constraint, gint scale, gboolean scale_up, Scaling* result);
GFile* export_ui_choose_file (const gchar* current_file_basename);
gchar* photo_get_export_basename_for_parameters (Photo* self, ExportFormatParameters* params);
void page_window_set_busy_cursor (PageWindow* self);
void photo_export (Photo* self, GFile* dest_file, Scaling* scaling, JpegQuality quality, PhotoFileFormat export_format, gboolean direct_copy_unmodified, gboolean export_metadata, GError** error);
PhotoFileFormat photo_get_export_format_for_parameters (Photo* self, ExportFormatParameters* params);
void page_window_set_normal_cursor (PageWindow* self);
GtkResponseType export_error_dialog (GFile* dest, gboolean photos_remaining);
GFile* export_ui_choose_dir (const gchar* user_title);
Exporter* exporter_new (GeeCollection* to_export, GFile* dir, Scaling* scaling, ExportFormatParameters* export_params, gboolean auto_replace_all);
Exporter* exporter_construct (GType object_type, GeeCollection* to_export, GFile* dir, Scaling* scaling, ExportFormatParameters* export_params, gboolean auto_replace_all);
ExporterUI* exporter_ui_new (Exporter* exporter);
ExporterUI* exporter_ui_construct (GType object_type, Exporter* exporter);
void exporter_ui_export (ExporterUI* self, ExporterCompletionCallback completion_callback, void* completion_callback_target);
gboolean photo_has_transformations (Photo* self);
gboolean photo_has_editable (Photo* self);
static gboolean collection_page_can_revert_editable_selected (CollectionPage* self);
GType command_get_type (void) G_GNUC_CONST;
GType page_command_get_type (void) G_GNUC_CONST;
GType multiple_data_source_command_get_type (void) G_GNUC_CONST;
GType rotate_multiple_command_get_type (void) G_GNUC_CONST;
GeeList* view_collection_get_selected (ViewCollection* self);
GType rotation_get_type (void) G_GNUC_CONST;
#define RESOURCES_ROTATE_CW_FULL_LABEL _ ("Rotate Right")
#define RESOURCES_ROTATE_CW_TOOLTIP _ ("Rotate the photos right (press Ctrl to rotate left)")
RotateMultipleCommand* rotate_multiple_command_new (GeeIterable* iter, Rotation rotation, const gchar* name, const gchar* explanation, const gchar* progress_text, const gchar* undo_progress_text);
RotateMultipleCommand* rotate_multiple_command_construct (GType object_type, GeeIterable* iter, Rotation rotation, const gchar* name, const gchar* explanation, const gchar* progress_text, const gchar* undo_progress_text);
gpointer command_manager_ref (gpointer instance);
void command_manager_unref (gpointer instance);
GParamSpec* param_spec_command_manager (const gchar* name, const gchar* nick, const gchar* blurb, GType object_type, GParamFlags flags);
void value_set_command_manager (GValue* value, gpointer v_object);
void value_take_command_manager (GValue* value, gpointer v_object);
gpointer value_get_command_manager (const GValue* value);
GType command_manager_get_type (void) G_GNUC_CONST;
CommandManager* page_get_command_manager (Page* self);
void command_manager_execute (CommandManager* self, Command* command);
void publishing_ui_publishing_dialog_go (GeeCollection* to_publish);
#define RESOURCES_ROTATE_CCW_FULL_LABEL _ ("Rotate Left")
#define RESOURCES_ROTATE_CCW_TOOLTIP _ ("Rotate the photos left")
#define RESOURCES_HFLIP_LABEL _ ("Flip Horizontally")
#define RESOURCES_VFLIP_LABEL _ ("Flip Vertically")
gboolean revert_editable_dialog (GtkWindow* owner, GeeCollection* photos);
void photo_revert_to_master (Photo* self, gboolean notify);
GType multiple_photo_transformation_command_get_type (void) G_GNUC_CONST;
GType revert_multiple_command_get_type (void) G_GNUC_CONST;
RevertMultipleCommand* revert_multiple_command_new (GeeIterable* iter);
RevertMultipleCommand* revert_multiple_command_construct (GType object_type, GeeIterable* iter);
gpointer pixel_transformation_bundle_ref (gpointer instance);
void pixel_transformation_bundle_unref (gpointer instance);
GParamSpec* param_spec_pixel_transformation_bundle (const gchar* name, const gchar* nick, const gchar* blurb, GType object_type, GParamFlags flags);
void value_set_pixel_transformation_bundle (GValue* value, gpointer v_object);
void value_take_pixel_transformation_bundle (GValue* value, gpointer v_object);
gpointer value_get_pixel_transformation_bundle (const GValue* value);
GType pixel_transformation_bundle_get_type (void) G_GNUC_CONST;
void pixel_transformation_bundle_set_copied_color_adjustments (PixelTransformationBundle* adjustments);
PixelTransformationBundle* photo_get_color_adjustments (Photo* self);
PixelTransformationBundle* pixel_transformation_bundle_get_copied_color_adjustments (void);
GType adjust_colors_multiple_command_get_type (void) G_GNUC_CONST;
#define RESOURCES_PASTE_ADJUSTMENTS_LABEL _ ("Paste Color Adjustments")
#define RESOURCES_PASTE_ADJUSTMENTS_TOOLTIP _ ("Apply copied color adjustments to the selected photos")
AdjustColorsMultipleCommand* adjust_colors_multiple_command_new (GeeIterable* iter, PixelTransformationBundle* transformations, const gchar* name, const gchar* explanation);
AdjustColorsMultipleCommand* adjust_colors_multiple_command_construct (GType object_type, GeeIterable* iter, PixelTransformationBundle* transformations, const gchar* name, const gchar* explanation);
GType enhance_multiple_command_get_type (void) G_GNUC_CONST;
EnhanceMultipleCommand* enhance_multiple_command_new (GeeIterable* iter);
EnhanceMultipleCommand* enhance_multiple_command_construct (GType object_type, GeeIterable* iter);
GType duplicate_multiple_photos_command_get_type (void) G_GNUC_CONST;
DuplicateMultiplePhotosCommand* duplicate_multiple_photos_command_new (GeeIterable* iter);
DuplicateMultiplePhotosCommand* duplicate_multiple_photos_command_construct (GType object_type, GeeIterable* iter);
GType dateable_get_type (void) G_GNUC_CONST;
GType adjust_date_time_dialog_get_type (void) G_GNUC_CONST;
AdjustDateTimeDialog* adjust_date_time_dialog_new (Dateable* source, gint photo_count, gboolean display_options, gboolean contains_video, gboolean only_video);
AdjustDateTimeDialog* adjust_date_time_dialog_construct (GType object_type, Dateable* source, gint photo_count, gboolean display_options, gboolean contains_video, gboolean only_video);
gboolean adjust_date_time_dialog_execute (AdjustDateTimeDialog* self, gint64* time_shift, gboolean* keep_relativity, gboolean* modify_originals);
GType adjust_date_time_photos_command_get_type (void) G_GNUC_CONST;
AdjustDateTimePhotosCommand* adjust_date_time_photos_command_new (GeeIterable* iter, gint64 time_shift, gboolean keep_relativity, gboolean modify_originals);
AdjustDateTimePhotosCommand* adjust_date_time_photos_command_construct (GType object_type, GeeIterable* iter, gint64 time_shift, gboolean keep_relativity, gboolean modify_originals);
void photo_open_with_external_editor (Photo* self, GError** error);
void open_external_editor_error_dialog (GError* err, Photo* photo);
void photo_open_with_raw_external_editor (Photo* self, GError** error);
void app_window_error_message (const gchar* message, GtkWindow* parent);
gchar* resources_launch_editor_failed (GError* err);
void media_source_collection_filter_media (GeeCollection* media, GeeCollection* photos, GeeCollection* videos);
GType set_background_photo_dialog_get_type (void) G_GNUC_CONST;
SetBackgroundPhotoDialog* set_background_photo_dialog_new (void);
SetBackgroundPhotoDialog* set_background_photo_dialog_construct (GType object_type);
gboolean set_background_photo_dialog_execute (SetBackgroundPhotoDialog* self, gboolean* desktop_background, gboolean* screensaver);
void desktop_integration_set_background (Photo* photo, gboolean desktop, gboolean screensaver);
GType set_background_slideshow_dialog_get_type (void) G_GNUC_CONST;
SetBackgroundSlideshowDialog* set_background_slideshow_dialog_new (void);
SetBackgroundSlideshowDialog* set_background_slideshow_dialog_construct (GType object_type);
gboolean set_background_slideshow_dialog_execute (SetBackgroundSlideshowDialog* self, gint* delay_value, gboolean* desktop_background, gboolean* screensaver);
void desktop_integration_set_background_slideshow (GeeCollection* photos, gdouble duration, gdouble transition, gboolean desktop_background, gboolean screensaver);
gint data_collection_get_count (DataCollection* self);
GeeList* view_collection_get_sources_of_type (ViewCollection* self, GType t);
DataView* view_collection_get_view_for_source (ViewCollection* self, DataSource* source);
void app_window_go_fullscreen (AppWindow* self, Page* page);
GType source_collection_get_type (void) G_GNUC_CONST;
GType database_source_collection_get_type (void) G_GNUC_CONST;
GType media_source_collection_get_type (void) G_GNUC_CONST;
GType library_photo_source_collection_get_type (void) G_GNUC_CONST;
SlideshowPage* slideshow_page_new (SourceCollection* sources, ViewCollection* controller, Photo* start);
SlideshowPage* slideshow_page_construct (GType object_type, SourceCollection* sources, ViewCollection* controller, Photo* start);
GType single_photo_page_get_type (void) G_GNUC_CONST;
GType slideshow_page_get_type (void) G_GNUC_CONST;
static gboolean collection_page_real_on_ctrl_pressed (Page* base, GdkEventKey* event);
gboolean page_on_ctrl_pressed (Page* self, GdkEventKey* event);
static gboolean collection_page_real_on_ctrl_released (Page* base, GdkEventKey* event);
gboolean page_on_ctrl_released (Page* self, GdkEventKey* event);
static SearchViewFilter* collection_page_real_get_search_view_filter (CheckerboardPage* base);
enum  {
	COLLECTION_PAGE_COLLECTION_SEARCH_VIEW_FILTER_DUMMY_PROPERTY
};
static guint collection_page_collection_search_view_filter_real_get_criteria (SearchViewFilter* base);
GType search_filter_criteria_get_type (void) G_GNUC_CONST;
DefaultSearchViewFilter* default_search_view_filter_construct (GType object_type);
static void collection_page_finalize (GObject* obj);
static void _vala_array_destroy (gpointer array, gint array_length, GDestroyNotify destroy_func);
static void _vala_array_free (gpointer array, gint array_length, GDestroyNotify destroy_func);

static const GActionEntry COLLECTION_PAGE_entries[16] = {{"Print", _collection_page_on_print_gsimple_action_activate_callback}, {"Publish", _collection_page_on_publish_gsimple_action_activate_callback}, {"RotateClockwise", _collection_page_on_rotate_clockwise_gsimple_action_activate_callback}, {"RotateCounterclockwise", _collection_page_on_rotate_counterclockwise_gsimple_action_activate_callback}, {"FlipHorizontally", _collection_page_on_flip_horizontally_gsimple_action_activate_callback}, {"FlipVertically", _collection_page_on_flip_vertically_gsimple_action_activate_callback}, {"Enhance", _collection_page_on_enhance_gsimple_action_activate_callback}, {"CopyColorAdjustments", _collection_page_on_copy_adjustments_gsimple_action_activate_callback}, {"PasteColorAdjustments", _collection_page_on_paste_adjustments_gsimple_action_activate_callback}, {"Revert", _collection_page_on_revert_gsimple_action_activate_callback}, {"SetBackground", _collection_page_on_set_background_gsimple_action_activate_callback}, {"Duplicate", _collection_page_on_duplicate_photo_gsimple_action_activate_callback}, {"AdjustDateTime", _collection_page_on_adjust_date_time_gsimple_action_activate_callback}, {"ExternalEdit", _collection_page_on_external_edit_gsimple_action_activate_callback}, {"ExternalEditRAW", _collection_page_on_external_edit_raw_gsimple_action_activate_callback}, {"Slideshow", _collection_page_on_slideshow_gsimple_action_activate_callback}};

static gpointer _g_object_ref0 (gpointer self) {
#line 11 "/home/jens/Source/shotwell/src/CollectionPage.vala"
	return self ? g_object_ref (self) : NULL;
#line 1390 "CollectionPage.c"
}


CollectionViewManager* collection_view_manager_construct (GType object_type, CollectionPage* page) {
	CollectionViewManager* self = NULL;
	CollectionPage* _tmp0_ = NULL;
	CollectionPage* _tmp1_ = NULL;
#line 10 "/home/jens/Source/shotwell/src/CollectionPage.vala"
	g_return_val_if_fail (IS_COLLECTION_PAGE (page), NULL);
#line 10 "/home/jens/Source/shotwell/src/CollectionPage.vala"
	self = (CollectionViewManager*) view_manager_construct (object_type);
#line 11 "/home/jens/Source/shotwell/src/CollectionPage.vala"
	_tmp0_ = page;
#line 11 "/home/jens/Source/shotwell/src/CollectionPage.vala"
	_tmp1_ = _g_object_ref0 (_tmp0_);
#line 11 "/home/jens/Source/shotwell/src/CollectionPage.vala"
	_g_object_unref0 (self->priv->page);
#line 11 "/home/jens/Source/shotwell/src/CollectionPage.vala"
	self->priv->page = _tmp1_;
#line 10 "/home/jens/Source/shotwell/src/CollectionPage.vala"
	return self;
#line 1412 "CollectionPage.c"
}


CollectionViewManager* collection_view_manager_new (CollectionPage* page) {
#line 10 "/home/jens/Source/shotwell/src/CollectionPage.vala"
	return collection_view_manager_construct (TYPE_COLLECTION_VIEW_MANAGER, page);
#line 1419 "CollectionPage.c"
}


static DataView* collection_view_manager_real_create_view (ViewManager* base, DataSource* source) {
	CollectionViewManager * self;
	DataView* result = NULL;
	CollectionPage* _tmp0_ = NULL;
	DataSource* _tmp1_ = NULL;
	DataView* _tmp2_ = NULL;
#line 14 "/home/jens/Source/shotwell/src/CollectionPage.vala"
	self = G_TYPE_CHECK_INSTANCE_CAST (base, TYPE_COLLECTION_VIEW_MANAGER, CollectionViewManager);
#line 14 "/home/jens/Source/shotwell/src/CollectionPage.vala"
	g_return_val_if_fail (IS_DATA_SOURCE (source), NULL);
#line 15 "/home/jens/Source/shotwell/src/CollectionPage.vala"
	_tmp0_ = self->priv->page;
#line 15 "/home/jens/Source/shotwell/src/CollectionPage.vala"
	_tmp1_ = source;
#line 15 "/home/jens/Source/shotwell/src/CollectionPage.vala"
	_tmp2_ = media_page_create_thumbnail (G_TYPE_CHECK_INSTANCE_CAST (_tmp0_, TYPE_MEDIA_PAGE, MediaPage), _tmp1_);
#line 15 "/home/jens/Source/shotwell/src/CollectionPage.vala"
	result = _tmp2_;
#line 15 "/home/jens/Source/shotwell/src/CollectionPage.vala"
	return result;
#line 1443 "CollectionPage.c"
}


static void collection_view_manager_class_init (CollectionViewManagerClass * klass) {
#line 7 "/home/jens/Source/shotwell/src/CollectionPage.vala"
	collection_view_manager_parent_class = g_type_class_peek_parent (klass);
#line 7 "/home/jens/Source/shotwell/src/CollectionPage.vala"
	((ViewManagerClass *) klass)->finalize = collection_view_manager_finalize;
#line 7 "/home/jens/Source/shotwell/src/CollectionPage.vala"
	g_type_class_add_private (klass, sizeof (CollectionViewManagerPrivate));
#line 7 "/home/jens/Source/shotwell/src/CollectionPage.vala"
	((ViewManagerClass *) klass)->create_view = collection_view_manager_real_create_view;
#line 1456 "CollectionPage.c"
}


static void collection_view_manager_instance_init (CollectionViewManager * self) {
#line 7 "/home/jens/Source/shotwell/src/CollectionPage.vala"
	self->priv = COLLECTION_VIEW_MANAGER_GET_PRIVATE (self);
#line 1463 "CollectionPage.c"
}


static void collection_view_manager_finalize (ViewManager* obj) {
	CollectionViewManager * self;
#line 7 "/home/jens/Source/shotwell/src/CollectionPage.vala"
	self = G_TYPE_CHECK_INSTANCE_CAST (obj, TYPE_COLLECTION_VIEW_MANAGER, CollectionViewManager);
#line 8 "/home/jens/Source/shotwell/src/CollectionPage.vala"
	_g_object_unref0 (self->priv->page);
#line 7 "/home/jens/Source/shotwell/src/CollectionPage.vala"
	VIEW_MANAGER_CLASS (collection_view_manager_parent_class)->finalize (obj);
#line 1475 "CollectionPage.c"
}


GType collection_view_manager_get_type (void) {
	static volatile gsize collection_view_manager_type_id__volatile = 0;
	if (g_once_init_enter (&collection_view_manager_type_id__volatile)) {
		static const GTypeInfo g_define_type_info = { sizeof (CollectionViewManagerClass), (GBaseInitFunc) NULL, (GBaseFinalizeFunc) NULL, (GClassInitFunc) collection_view_manager_class_init, (GClassFinalizeFunc) NULL, NULL, sizeof (CollectionViewManager), 0, (GInstanceInitFunc) collection_view_manager_instance_init, NULL };
		GType collection_view_manager_type_id;
		collection_view_manager_type_id = g_type_register_static (TYPE_VIEW_MANAGER, "CollectionViewManager", &g_define_type_info, 0);
		g_once_init_leave (&collection_view_manager_type_id__volatile, collection_view_manager_type_id);
	}
	return collection_view_manager_type_id__volatile;
}


static void _collection_page_on_print_gsimple_action_activate_callback (GSimpleAction* action, GVariant* parameter, gpointer self) {
#line 160 "/home/jens/Source/shotwell/src/CollectionPage.vala"
	collection_page_on_print ((CollectionPage*) self);
#line 1494 "CollectionPage.c"
}


static void _collection_page_on_publish_gsimple_action_activate_callback (GSimpleAction* action, GVariant* parameter, gpointer self) {
#line 160 "/home/jens/Source/shotwell/src/CollectionPage.vala"
	collection_page_on_publish ((CollectionPage*) self);
#line 1501 "CollectionPage.c"
}


static void _collection_page_on_rotate_clockwise_gsimple_action_activate_callback (GSimpleAction* action, GVariant* parameter, gpointer self) {
#line 160 "/home/jens/Source/shotwell/src/CollectionPage.vala"
	collection_page_on_rotate_clockwise ((CollectionPage*) self);
#line 1508 "CollectionPage.c"
}


static void _collection_page_on_rotate_counterclockwise_gsimple_action_activate_callback (GSimpleAction* action, GVariant* parameter, gpointer self) {
#line 160 "/home/jens/Source/shotwell/src/CollectionPage.vala"
	collection_page_on_rotate_counterclockwise ((CollectionPage*) self);
#line 1515 "CollectionPage.c"
}


static void _collection_page_on_flip_horizontally_gsimple_action_activate_callback (GSimpleAction* action, GVariant* parameter, gpointer self) {
#line 160 "/home/jens/Source/shotwell/src/CollectionPage.vala"
	collection_page_on_flip_horizontally ((CollectionPage*) self);
#line 1522 "CollectionPage.c"
}


static void _collection_page_on_flip_vertically_gsimple_action_activate_callback (GSimpleAction* action, GVariant* parameter, gpointer self) {
#line 160 "/home/jens/Source/shotwell/src/CollectionPage.vala"
	collection_page_on_flip_vertically ((CollectionPage*) self);
#line 1529 "CollectionPage.c"
}


static void _collection_page_on_enhance_gsimple_action_activate_callback (GSimpleAction* action, GVariant* parameter, gpointer self) {
#line 160 "/home/jens/Source/shotwell/src/CollectionPage.vala"
	collection_page_on_enhance ((CollectionPage*) self);
#line 1536 "CollectionPage.c"
}


static void _collection_page_on_copy_adjustments_gsimple_action_activate_callback (GSimpleAction* action, GVariant* parameter, gpointer self) {
#line 160 "/home/jens/Source/shotwell/src/CollectionPage.vala"
	collection_page_on_copy_adjustments ((CollectionPage*) self);
#line 1543 "CollectionPage.c"
}


static void _collection_page_on_paste_adjustments_gsimple_action_activate_callback (GSimpleAction* action, GVariant* parameter, gpointer self) {
#line 160 "/home/jens/Source/shotwell/src/CollectionPage.vala"
	collection_page_on_paste_adjustments ((CollectionPage*) self);
#line 1550 "CollectionPage.c"
}


static void _collection_page_on_revert_gsimple_action_activate_callback (GSimpleAction* action, GVariant* parameter, gpointer self) {
#line 160 "/home/jens/Source/shotwell/src/CollectionPage.vala"
	collection_page_on_revert ((CollectionPage*) self);
#line 1557 "CollectionPage.c"
}


static void _collection_page_on_set_background_gsimple_action_activate_callback (GSimpleAction* action, GVariant* parameter, gpointer self) {
#line 160 "/home/jens/Source/shotwell/src/CollectionPage.vala"
	collection_page_on_set_background ((CollectionPage*) self);
#line 1564 "CollectionPage.c"
}


static void _collection_page_on_duplicate_photo_gsimple_action_activate_callback (GSimpleAction* action, GVariant* parameter, gpointer self) {
#line 160 "/home/jens/Source/shotwell/src/CollectionPage.vala"
	collection_page_on_duplicate_photo ((CollectionPage*) self);
#line 1571 "CollectionPage.c"
}


static void _collection_page_on_adjust_date_time_gsimple_action_activate_callback (GSimpleAction* action, GVariant* parameter, gpointer self) {
#line 160 "/home/jens/Source/shotwell/src/CollectionPage.vala"
	collection_page_on_adjust_date_time ((CollectionPage*) self);
#line 1578 "CollectionPage.c"
}


static void _collection_page_on_external_edit_gsimple_action_activate_callback (GSimpleAction* action, GVariant* parameter, gpointer self) {
#line 160 "/home/jens/Source/shotwell/src/CollectionPage.vala"
	collection_page_on_external_edit ((CollectionPage*) self);
#line 1585 "CollectionPage.c"
}


static void _collection_page_on_external_edit_raw_gsimple_action_activate_callback (GSimpleAction* action, GVariant* parameter, gpointer self) {
#line 160 "/home/jens/Source/shotwell/src/CollectionPage.vala"
	collection_page_on_external_edit_raw ((CollectionPage*) self);
#line 1592 "CollectionPage.c"
}


static void _collection_page_on_slideshow_gsimple_action_activate_callback (GSimpleAction* action, GVariant* parameter, gpointer self) {
#line 160 "/home/jens/Source/shotwell/src/CollectionPage.vala"
	collection_page_on_slideshow ((CollectionPage*) self);
#line 1599 "CollectionPage.c"
}


static void _collection_page_on_photos_altered_data_collection_items_altered (DataCollection* _sender, GeeMap* items, gpointer self) {
#line 35 "/home/jens/Source/shotwell/src/CollectionPage.vala"
	collection_page_on_photos_altered ((CollectionPage*) self, items);
#line 1606 "CollectionPage.c"
}


static void _collection_page_on_external_app_changed_configuration_facade_external_app_changed (ConfigurationFacade* _sender, gpointer self) {
#line 43 "/home/jens/Source/shotwell/src/CollectionPage.vala"
	collection_page_on_external_app_changed ((CollectionPage*) self);
#line 1613 "CollectionPage.c"
}


CollectionPage* collection_page_construct (GType object_type, const gchar* page_name) {
	CollectionPage * self = NULL;
	const gchar* _tmp0_ = NULL;
	ViewCollection* _tmp1_ = NULL;
	ViewCollection* _tmp2_ = NULL;
	ConfigFacade* _tmp3_ = NULL;
	ConfigFacade* _tmp4_ = NULL;
#line 32 "/home/jens/Source/shotwell/src/CollectionPage.vala"
	g_return_val_if_fail (page_name != NULL, NULL);
#line 33 "/home/jens/Source/shotwell/src/CollectionPage.vala"
	_tmp0_ = page_name;
#line 33 "/home/jens/Source/shotwell/src/CollectionPage.vala"
	self = (CollectionPage*) media_page_construct (object_type, _tmp0_);
#line 35 "/home/jens/Source/shotwell/src/CollectionPage.vala"
	_tmp1_ = page_get_view (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_PAGE, Page));
#line 35 "/home/jens/Source/shotwell/src/CollectionPage.vala"
	_tmp2_ = _tmp1_;
#line 35 "/home/jens/Source/shotwell/src/CollectionPage.vala"
	g_signal_connect_object (G_TYPE_CHECK_INSTANCE_CAST (_tmp2_, TYPE_DATA_COLLECTION, DataCollection), "items-altered", (GCallback) _collection_page_on_photos_altered_data_collection_items_altered, self, 0);
#line 35 "/home/jens/Source/shotwell/src/CollectionPage.vala"
	_data_collection_unref0 (_tmp2_);
#line 37 "/home/jens/Source/shotwell/src/CollectionPage.vala"
	checkerboard_page_init_item_context_menu (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_CHECKERBOARD_PAGE, CheckerboardPage), "CollectionContextMenu");
#line 38 "/home/jens/Source/shotwell/src/CollectionPage.vala"
	page_init_toolbar (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_PAGE, Page), "CollectionToolbar");
#line 40 "/home/jens/Source/shotwell/src/CollectionPage.vala"
	gtk_widget_show_all (G_TYPE_CHECK_INSTANCE_CAST (self, gtk_widget_get_type (), GtkWidget));
#line 43 "/home/jens/Source/shotwell/src/CollectionPage.vala"
	_tmp3_ = config_facade_get_instance ();
#line 43 "/home/jens/Source/shotwell/src/CollectionPage.vala"
	_tmp4_ = _tmp3_;
#line 43 "/home/jens/Source/shotwell/src/CollectionPage.vala"
	g_signal_connect_object (G_TYPE_CHECK_INSTANCE_CAST (_tmp4_, TYPE_CONFIGURATION_FACADE, ConfigurationFacade), "external-app-changed", (GCallback) _collection_page_on_external_app_changed_configuration_facade_external_app_changed, self, 0);
#line 43 "/home/jens/Source/shotwell/src/CollectionPage.vala"
	_g_object_unref0 (_tmp4_);
#line 32 "/home/jens/Source/shotwell/src/CollectionPage.vala"
	return self;
#line 1654 "CollectionPage.c"
}


static GtkToolbar* collection_page_real_get_toolbar (Page* base) {
	CollectionPage * self;
	GtkToolbar* result = NULL;
	GtkToolbar* _tmp0_ = NULL;
	GtkToolbar* _tmp28_ = NULL;
	GtkToolbar* _tmp29_ = NULL;
#line 46 "/home/jens/Source/shotwell/src/CollectionPage.vala"
	self = G_TYPE_CHECK_INSTANCE_CAST (base, TYPE_COLLECTION_PAGE, CollectionPage);
#line 47 "/home/jens/Source/shotwell/src/CollectionPage.vala"
	_tmp0_ = G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_PAGE, Page)->toolbar;
#line 47 "/home/jens/Source/shotwell/src/CollectionPage.vala"
	if (_tmp0_ == NULL) {
#line 1670 "CollectionPage.c"
		GtkToolbar* _tmp1_ = NULL;
		GtkToolbar* _tmp2_ = NULL;
		GtkSeparatorToolItem* separator = NULL;
		GtkSeparatorToolItem* _tmp3_ = NULL;
		GtkSeparatorToolItem* _tmp4_ = NULL;
		GtkSeparatorToolItem* _tmp5_ = NULL;
		GtkToolbar* _tmp6_ = NULL;
		GtkToolbar* _tmp7_ = NULL;
		GtkSeparatorToolItem* _tmp8_ = NULL;
		GtkSeparatorToolItem* drawn_separator = NULL;
		GtkSeparatorToolItem* _tmp9_ = NULL;
		GtkSeparatorToolItem* _tmp10_ = NULL;
		GtkSeparatorToolItem* _tmp11_ = NULL;
		GtkToolbar* _tmp12_ = NULL;
		GtkToolbar* _tmp13_ = NULL;
		GtkSeparatorToolItem* _tmp14_ = NULL;
		MediaPageZoomSliderAssembly* zoom_slider_assembly = NULL;
		MediaPageZoomSliderAssembly* _tmp15_ = NULL;
		MediaPageZoomSliderAssembly* _tmp16_ = NULL;
		GtkToolbar* _tmp17_ = NULL;
		GtkToolbar* _tmp18_ = NULL;
		MediaPageZoomSliderAssembly* _tmp19_ = NULL;
		GtkToolButton* rotate_button = NULL;
		GtkBuilder* _tmp20_ = NULL;
		GObject* _tmp21_ = NULL;
		GtkToolButton* _tmp22_ = NULL;
		GtkBindingSet* binding_set = NULL;
		GtkToolButton* _tmp23_ = NULL;
		GObjectClass* _tmp24_ = NULL;
		GtkBindingSet* _tmp25_ = NULL;
		GtkBindingSet* _tmp26_ = NULL;
		GtkBindingSet* _tmp27_ = NULL;
#line 48 "/home/jens/Source/shotwell/src/CollectionPage.vala"
		_tmp1_ = PAGE_CLASS (collection_page_parent_class)->get_toolbar (G_TYPE_CHECK_INSTANCE_CAST (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_MEDIA_PAGE, MediaPage), TYPE_PAGE, Page));
#line 48 "/home/jens/Source/shotwell/src/CollectionPage.vala"
		_tmp2_ = _tmp1_;
#line 48 "/home/jens/Source/shotwell/src/CollectionPage.vala"
		_g_object_unref0 (_tmp2_);
#line 51 "/home/jens/Source/shotwell/src/CollectionPage.vala"
		_tmp3_ = (GtkSeparatorToolItem*) gtk_separator_tool_item_new ();
#line 51 "/home/jens/Source/shotwell/src/CollectionPage.vala"
		g_object_ref_sink (_tmp3_);
#line 51 "/home/jens/Source/shotwell/src/CollectionPage.vala"
		separator = _tmp3_;
#line 52 "/home/jens/Source/shotwell/src/CollectionPage.vala"
		_tmp4_ = separator;
#line 52 "/home/jens/Source/shotwell/src/CollectionPage.vala"
		gtk_tool_item_set_expand (G_TYPE_CHECK_INSTANCE_CAST (_tmp4_, gtk_tool_item_get_type (), GtkToolItem), TRUE);
#line 53 "/home/jens/Source/shotwell/src/CollectionPage.vala"
		_tmp5_ = separator;
#line 53 "/home/jens/Source/shotwell/src/CollectionPage.vala"
		gtk_separator_tool_item_set_draw (_tmp5_, FALSE);
#line 54 "/home/jens/Source/shotwell/src/CollectionPage.vala"
		_tmp6_ = page_get_toolbar (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_PAGE, Page));
#line 54 "/home/jens/Source/shotwell/src/CollectionPage.vala"
		_tmp7_ = _tmp6_;
#line 54 "/home/jens/Source/shotwell/src/CollectionPage.vala"
		_tmp8_ = separator;
#line 54 "/home/jens/Source/shotwell/src/CollectionPage.vala"
		gtk_toolbar_insert (_tmp7_, G_TYPE_CHECK_INSTANCE_CAST (_tmp8_, gtk_tool_item_get_type (), GtkToolItem), -1);
#line 54 "/home/jens/Source/shotwell/src/CollectionPage.vala"
		_g_object_unref0 (_tmp7_);
#line 56 "/home/jens/Source/shotwell/src/CollectionPage.vala"
		_tmp9_ = (GtkSeparatorToolItem*) gtk_separator_tool_item_new ();
#line 56 "/home/jens/Source/shotwell/src/CollectionPage.vala"
		g_object_ref_sink (_tmp9_);
#line 56 "/home/jens/Source/shotwell/src/CollectionPage.vala"
		drawn_separator = _tmp9_;
#line 57 "/home/jens/Source/shotwell/src/CollectionPage.vala"
		_tmp10_ = drawn_separator;
#line 57 "/home/jens/Source/shotwell/src/CollectionPage.vala"
		gtk_tool_item_set_expand (G_TYPE_CHECK_INSTANCE_CAST (_tmp10_, gtk_tool_item_get_type (), GtkToolItem), FALSE);
#line 58 "/home/jens/Source/shotwell/src/CollectionPage.vala"
		_tmp11_ = drawn_separator;
#line 58 "/home/jens/Source/shotwell/src/CollectionPage.vala"
		gtk_separator_tool_item_set_draw (_tmp11_, TRUE);
#line 60 "/home/jens/Source/shotwell/src/CollectionPage.vala"
		_tmp12_ = page_get_toolbar (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_PAGE, Page));
#line 60 "/home/jens/Source/shotwell/src/CollectionPage.vala"
		_tmp13_ = _tmp12_;
#line 60 "/home/jens/Source/shotwell/src/CollectionPage.vala"
		_tmp14_ = drawn_separator;
#line 60 "/home/jens/Source/shotwell/src/CollectionPage.vala"
		gtk_toolbar_insert (_tmp13_, G_TYPE_CHECK_INSTANCE_CAST (_tmp14_, gtk_tool_item_get_type (), GtkToolItem), -1);
#line 60 "/home/jens/Source/shotwell/src/CollectionPage.vala"
		_g_object_unref0 (_tmp13_);
#line 63 "/home/jens/Source/shotwell/src/CollectionPage.vala"
		_tmp15_ = media_page_create_zoom_slider_assembly (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_MEDIA_PAGE, MediaPage));
#line 63 "/home/jens/Source/shotwell/src/CollectionPage.vala"
		zoom_slider_assembly = _tmp15_;
#line 64 "/home/jens/Source/shotwell/src/CollectionPage.vala"
		_tmp16_ = zoom_slider_assembly;
#line 64 "/home/jens/Source/shotwell/src/CollectionPage.vala"
		media_page_connect_slider (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_MEDIA_PAGE, MediaPage), _tmp16_);
#line 65 "/home/jens/Source/shotwell/src/CollectionPage.vala"
		_tmp17_ = page_get_toolbar (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_PAGE, Page));
#line 65 "/home/jens/Source/shotwell/src/CollectionPage.vala"
		_tmp18_ = _tmp17_;
#line 65 "/home/jens/Source/shotwell/src/CollectionPage.vala"
		_tmp19_ = zoom_slider_assembly;
#line 65 "/home/jens/Source/shotwell/src/CollectionPage.vala"
		gtk_toolbar_insert (_tmp18_, G_TYPE_CHECK_INSTANCE_CAST (_tmp19_, gtk_tool_item_get_type (), GtkToolItem), -1);
#line 65 "/home/jens/Source/shotwell/src/CollectionPage.vala"
		_g_object_unref0 (_tmp18_);
#line 67 "/home/jens/Source/shotwell/src/CollectionPage.vala"
		_tmp20_ = G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_PAGE, Page)->builder;
#line 67 "/home/jens/Source/shotwell/src/CollectionPage.vala"
		_tmp21_ = gtk_builder_get_object (_tmp20_, "ToolRotate");
#line 67 "/home/jens/Source/shotwell/src/CollectionPage.vala"
		_tmp22_ = _g_object_ref0 (G_TYPE_CHECK_INSTANCE_TYPE (_tmp21_, gtk_tool_button_get_type ()) ? ((GtkToolButton*) _tmp21_) : NULL);
#line 67 "/home/jens/Source/shotwell/src/CollectionPage.vala"
		rotate_button = _tmp22_;
#line 68 "/home/jens/Source/shotwell/src/CollectionPage.vala"
		_tmp23_ = rotate_button;
#line 68 "/home/jens/Source/shotwell/src/CollectionPage.vala"
		_tmp24_ = G_OBJECT_GET_CLASS (G_TYPE_CHECK_INSTANCE_CAST (_tmp23_, G_TYPE_OBJECT, GObject));
#line 68 "/home/jens/Source/shotwell/src/CollectionPage.vala"
		_tmp25_ = gtk_binding_set_by_class (_tmp24_);
#line 68 "/home/jens/Source/shotwell/src/CollectionPage.vala"
		binding_set = _tmp25_;
#line 69 "/home/jens/Source/shotwell/src/CollectionPage.vala"
		_tmp26_ = binding_set;
#line 69 "/home/jens/Source/shotwell/src/CollectionPage.vala"
		gtk_binding_entry_add_signal (_tmp26_, (guint) GDK_KEY_KP_Space, GDK_CONTROL_MASK, "clicked", (guint) 0, NULL);
#line 70 "/home/jens/Source/shotwell/src/CollectionPage.vala"
		_tmp27_ = binding_set;
#line 70 "/home/jens/Source/shotwell/src/CollectionPage.vala"
		gtk_binding_entry_add_signal (_tmp27_, (guint) GDK_KEY_space, GDK_CONTROL_MASK, "clicked", (guint) 0, NULL);
#line 47 "/home/jens/Source/shotwell/src/CollectionPage.vala"
		_g_object_unref0 (rotate_button);
#line 47 "/home/jens/Source/shotwell/src/CollectionPage.vala"
		_g_object_unref0 (zoom_slider_assembly);
#line 47 "/home/jens/Source/shotwell/src/CollectionPage.vala"
		_g_object_unref0 (drawn_separator);
#line 47 "/home/jens/Source/shotwell/src/CollectionPage.vala"
		_g_object_unref0 (separator);
#line 1807 "CollectionPage.c"
	}
#line 74 "/home/jens/Source/shotwell/src/CollectionPage.vala"
	_tmp28_ = G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_PAGE, Page)->toolbar;
#line 74 "/home/jens/Source/shotwell/src/CollectionPage.vala"
	_tmp29_ = _g_object_ref0 (_tmp28_);
#line 74 "/home/jens/Source/shotwell/src/CollectionPage.vala"
	result = _tmp29_;
#line 74 "/home/jens/Source/shotwell/src/CollectionPage.vala"
	return result;
#line 1817 "CollectionPage.c"
}


static InjectionGroup* collection_page_create_file_menu_injectables (void) {
	InjectionGroup* result = NULL;
	InjectionGroup* group = NULL;
	InjectionGroup* _tmp0_ = NULL;
	const gchar* _tmp1_ = NULL;
	const gchar* _tmp2_ = NULL;
	const gchar* _tmp3_ = NULL;
	const gchar* _tmp4_ = NULL;
#line 78 "/home/jens/Source/shotwell/src/CollectionPage.vala"
	_tmp0_ = injection_group_new ("FileExtrasPlaceholder");
#line 78 "/home/jens/Source/shotwell/src/CollectionPage.vala"
	group = _tmp0_;
#line 80 "/home/jens/Source/shotwell/src/CollectionPage.vala"
	_tmp1_ = _ ("_Print");
#line 80 "/home/jens/Source/shotwell/src/CollectionPage.vala"
	injection_group_add_menu_item (group, _tmp1_, "Print", "<Primary>p");
#line 81 "/home/jens/Source/shotwell/src/CollectionPage.vala"
	injection_group_add_separator (group);
#line 82 "/home/jens/Source/shotwell/src/CollectionPage.vala"
	_tmp2_ = _ ("_Publish");
#line 82 "/home/jens/Source/shotwell/src/CollectionPage.vala"
	injection_group_add_menu_item (group, _tmp2_, "Publish", "<Primary><Shift>p");
#line 83 "/home/jens/Source/shotwell/src/CollectionPage.vala"
	_tmp3_ = _ ("Send _To…");
#line 83 "/home/jens/Source/shotwell/src/CollectionPage.vala"
	injection_group_add_menu_item (group, _tmp3_, "SendTo", NULL);
#line 84 "/home/jens/Source/shotwell/src/CollectionPage.vala"
	_tmp4_ = _ ("Set as _Desktop Background");
#line 84 "/home/jens/Source/shotwell/src/CollectionPage.vala"
	injection_group_add_menu_item (group, _tmp4_, "SetBackground", "<Primary>b");
#line 86 "/home/jens/Source/shotwell/src/CollectionPage.vala"
	result = group;
#line 86 "/home/jens/Source/shotwell/src/CollectionPage.vala"
	return result;
#line 1855 "CollectionPage.c"
}


static InjectionGroup* collection_page_create_edit_menu_injectables (void) {
	InjectionGroup* result = NULL;
	InjectionGroup* group = NULL;
	InjectionGroup* _tmp0_ = NULL;
	const gchar* _tmp1_ = NULL;
#line 90 "/home/jens/Source/shotwell/src/CollectionPage.vala"
	_tmp0_ = injection_group_new ("EditExtrasPlaceholder");
#line 90 "/home/jens/Source/shotwell/src/CollectionPage.vala"
	group = _tmp0_;
#line 92 "/home/jens/Source/shotwell/src/CollectionPage.vala"
	_tmp1_ = _ ("_Duplicate");
#line 92 "/home/jens/Source/shotwell/src/CollectionPage.vala"
	injection_group_add_menu_item (group, _tmp1_, "Duplicate", "<Primary>D");
#line 94 "/home/jens/Source/shotwell/src/CollectionPage.vala"
	result = group;
#line 94 "/home/jens/Source/shotwell/src/CollectionPage.vala"
	return result;
#line 1876 "CollectionPage.c"
}


static InjectionGroup* collection_page_create_view_menu_fullscreen_injectables (void) {
	InjectionGroup* result = NULL;
	InjectionGroup* group = NULL;
	InjectionGroup* _tmp0_ = NULL;
	const gchar* _tmp1_ = NULL;
	const gchar* _tmp2_ = NULL;
#line 98 "/home/jens/Source/shotwell/src/CollectionPage.vala"
	_tmp0_ = injection_group_new ("ViewExtrasFullscreenSlideshowPlaceholder");
#line 98 "/home/jens/Source/shotwell/src/CollectionPage.vala"
	group = _tmp0_;
#line 100 "/home/jens/Source/shotwell/src/CollectionPage.vala"
	_tmp1_ = _ ("Fullscreen");
#line 100 "/home/jens/Source/shotwell/src/CollectionPage.vala"
	injection_group_add_menu_item (group, _tmp1_, "CommonFullscreen", "F11");
#line 101 "/home/jens/Source/shotwell/src/CollectionPage.vala"
	injection_group_add_separator (group);
#line 102 "/home/jens/Source/shotwell/src/CollectionPage.vala"
	_tmp2_ = _ ("S_lideshow");
#line 102 "/home/jens/Source/shotwell/src/CollectionPage.vala"
	injection_group_add_menu_item (group, _tmp2_, "Slideshow", "F5");
#line 104 "/home/jens/Source/shotwell/src/CollectionPage.vala"
	result = group;
#line 104 "/home/jens/Source/shotwell/src/CollectionPage.vala"
	return result;
#line 1904 "CollectionPage.c"
}


static InjectionGroup* collection_page_create_photos_menu_edits_injectables (void) {
	InjectionGroup* result = NULL;
	InjectionGroup* group = NULL;
	InjectionGroup* _tmp0_ = NULL;
	const gchar* _tmp1_ = NULL;
	const gchar* _tmp2_ = NULL;
	const gchar* _tmp3_ = NULL;
	const gchar* _tmp4_ = NULL;
	const gchar* _tmp5_ = NULL;
	const gchar* _tmp6_ = NULL;
	const gchar* _tmp7_ = NULL;
	const gchar* _tmp8_ = NULL;
#line 108 "/home/jens/Source/shotwell/src/CollectionPage.vala"
	_tmp0_ = injection_group_new ("PhotosExtrasEditsPlaceholder");
#line 108 "/home/jens/Source/shotwell/src/CollectionPage.vala"
	group = _tmp0_;
#line 110 "/home/jens/Source/shotwell/src/CollectionPage.vala"
	_tmp1_ = _ ("Rotate _Right");
#line 110 "/home/jens/Source/shotwell/src/CollectionPage.vala"
	injection_group_add_menu_item (group, _tmp1_, "RotateClockwise", "<Primary>r");
#line 113 "/home/jens/Source/shotwell/src/CollectionPage.vala"
	_tmp2_ = _ ("Rotate _Left");
#line 113 "/home/jens/Source/shotwell/src/CollectionPage.vala"
	injection_group_add_menu_item (group, _tmp2_, "RotateCounterclockwise", "<Primary><Shift>r");
#line 116 "/home/jens/Source/shotwell/src/CollectionPage.vala"
	_tmp3_ = _ ("Flip Hori_zontally");
#line 116 "/home/jens/Source/shotwell/src/CollectionPage.vala"
	injection_group_add_menu_item (group, _tmp3_, "FlipHorizontally", NULL);
#line 117 "/home/jens/Source/shotwell/src/CollectionPage.vala"
	_tmp4_ = _ ("Flip Verti_cally");
#line 117 "/home/jens/Source/shotwell/src/CollectionPage.vala"
	injection_group_add_menu_item (group, _tmp4_, "FlipVertically", NULL);
#line 118 "/home/jens/Source/shotwell/src/CollectionPage.vala"
	injection_group_add_separator (group);
#line 119 "/home/jens/Source/shotwell/src/CollectionPage.vala"
	_tmp5_ = _ ("_Enhance");
#line 119 "/home/jens/Source/shotwell/src/CollectionPage.vala"
	injection_group_add_menu_item (group, _tmp5_, "Enhance", NULL);
#line 120 "/home/jens/Source/shotwell/src/CollectionPage.vala"
	_tmp6_ = _ ("Re_vert to Original");
#line 120 "/home/jens/Source/shotwell/src/CollectionPage.vala"
	injection_group_add_menu_item (group, _tmp6_, "Revert", NULL);
#line 121 "/home/jens/Source/shotwell/src/CollectionPage.vala"
	injection_group_add_separator (group);
#line 122 "/home/jens/Source/shotwell/src/CollectionPage.vala"
	_tmp7_ = _ ("_Copy Color Adjustments");
#line 122 "/home/jens/Source/shotwell/src/CollectionPage.vala"
	injection_group_add_menu_item (group, _tmp7_, "CopyColorAdjustments", "<Primary><Shift>c");
#line 125 "/home/jens/Source/shotwell/src/CollectionPage.vala"
	_tmp8_ = _ ("_Paste Color Adjustments");
#line 125 "/home/jens/Source/shotwell/src/CollectionPage.vala"
	injection_group_add_menu_item (group, _tmp8_, "PasteColorAdjustments", "<Primary><Shift>v");
#line 129 "/home/jens/Source/shotwell/src/CollectionPage.vala"
	result = group;
#line 129 "/home/jens/Source/shotwell/src/CollectionPage.vala"
	return result;
#line 1964 "CollectionPage.c"
}


static InjectionGroup* collection_page_create_photos_menu_date_injectables (void) {
	InjectionGroup* result = NULL;
	InjectionGroup* group = NULL;
	InjectionGroup* _tmp0_ = NULL;
	const gchar* _tmp1_ = NULL;
#line 133 "/home/jens/Source/shotwell/src/CollectionPage.vala"
	_tmp0_ = injection_group_new ("PhotosExtrasDateTimePlaceholder");
#line 133 "/home/jens/Source/shotwell/src/CollectionPage.vala"
	group = _tmp0_;
#line 135 "/home/jens/Source/shotwell/src/CollectionPage.vala"
	_tmp1_ = _ ("Adjust Date and Time…");
#line 135 "/home/jens/Source/shotwell/src/CollectionPage.vala"
	injection_group_add_menu_item (group, _tmp1_, "AdjustDateTime", NULL);
#line 137 "/home/jens/Source/shotwell/src/CollectionPage.vala"
	result = group;
#line 137 "/home/jens/Source/shotwell/src/CollectionPage.vala"
	return result;
#line 1985 "CollectionPage.c"
}


static InjectionGroup* collection_page_create_photos_menu_externals_injectables (void) {
	InjectionGroup* result = NULL;
	InjectionGroup* group = NULL;
	InjectionGroup* _tmp0_ = NULL;
	const gchar* _tmp1_ = NULL;
	const gchar* _tmp2_ = NULL;
	const gchar* _tmp3_ = NULL;
#line 141 "/home/jens/Source/shotwell/src/CollectionPage.vala"
	_tmp0_ = injection_group_new ("PhotosExtrasExternalsPlaceholder");
#line 141 "/home/jens/Source/shotwell/src/CollectionPage.vala"
	group = _tmp0_;
#line 143 "/home/jens/Source/shotwell/src/CollectionPage.vala"
	_tmp1_ = _ ("Open With E_xternal Editor");
#line 143 "/home/jens/Source/shotwell/src/CollectionPage.vala"
	injection_group_add_menu_item (group, _tmp1_, "ExternalEdit", "<Primary>Return");
#line 146 "/home/jens/Source/shotwell/src/CollectionPage.vala"
	_tmp2_ = _ ("Open With RA_W Editor");
#line 146 "/home/jens/Source/shotwell/src/CollectionPage.vala"
	injection_group_add_menu_item (group, _tmp2_, "ExternalEditRAW", "<Primary><Shift>Return");
#line 149 "/home/jens/Source/shotwell/src/CollectionPage.vala"
	_tmp3_ = _ ("_Play");
#line 149 "/home/jens/Source/shotwell/src/CollectionPage.vala"
	injection_group_add_menu_item (group, _tmp3_, "PlayVideo", "<Primary>Y");
#line 151 "/home/jens/Source/shotwell/src/CollectionPage.vala"
	result = group;
#line 151 "/home/jens/Source/shotwell/src/CollectionPage.vala"
	return result;
#line 2016 "CollectionPage.c"
}


static void collection_page_real_init_collect_ui_filenames (Page* base, GeeList* ui_filenames) {
	CollectionPage * self;
	GeeList* _tmp0_ = NULL;
	GeeList* _tmp1_ = NULL;
#line 154 "/home/jens/Source/shotwell/src/CollectionPage.vala"
	self = G_TYPE_CHECK_INSTANCE_CAST (base, TYPE_COLLECTION_PAGE, CollectionPage);
#line 154 "/home/jens/Source/shotwell/src/CollectionPage.vala"
	g_return_if_fail (GEE_IS_LIST (ui_filenames));
#line 155 "/home/jens/Source/shotwell/src/CollectionPage.vala"
	_tmp0_ = ui_filenames;
#line 155 "/home/jens/Source/shotwell/src/CollectionPage.vala"
	PAGE_CLASS (collection_page_parent_class)->init_collect_ui_filenames (G_TYPE_CHECK_INSTANCE_CAST (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_MEDIA_PAGE, MediaPage), TYPE_PAGE, Page), _tmp0_);
#line 157 "/home/jens/Source/shotwell/src/CollectionPage.vala"
	_tmp1_ = ui_filenames;
#line 157 "/home/jens/Source/shotwell/src/CollectionPage.vala"
	gee_collection_add (G_TYPE_CHECK_INSTANCE_CAST (_tmp1_, GEE_TYPE_COLLECTION, GeeCollection), "collection.ui");
#line 2036 "CollectionPage.c"
}


static void collection_page_real_add_actions (Page* base, GActionMap* map) {
	CollectionPage * self;
	GActionMap* _tmp0_ = NULL;
	GActionMap* _tmp1_ = NULL;
#line 179 "/home/jens/Source/shotwell/src/CollectionPage.vala"
	self = G_TYPE_CHECK_INSTANCE_CAST (base, TYPE_COLLECTION_PAGE, CollectionPage);
#line 179 "/home/jens/Source/shotwell/src/CollectionPage.vala"
	g_return_if_fail (G_IS_ACTION_MAP (map));
#line 180 "/home/jens/Source/shotwell/src/CollectionPage.vala"
	_tmp0_ = map;
#line 180 "/home/jens/Source/shotwell/src/CollectionPage.vala"
	PAGE_CLASS (collection_page_parent_class)->add_actions (G_TYPE_CHECK_INSTANCE_CAST (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_MEDIA_PAGE, MediaPage), TYPE_PAGE, Page), _tmp0_);
#line 182 "/home/jens/Source/shotwell/src/CollectionPage.vala"
	_tmp1_ = map;
#line 182 "/home/jens/Source/shotwell/src/CollectionPage.vala"
	g_action_map_add_action_entries (_tmp1_, COLLECTION_PAGE_entries, G_N_ELEMENTS (COLLECTION_PAGE_entries), self);
#line 2056 "CollectionPage.c"
}


static void collection_page_real_remove_actions (Page* base, GActionMap* map) {
	CollectionPage * self;
	GActionMap* _tmp0_ = NULL;
#line 185 "/home/jens/Source/shotwell/src/CollectionPage.vala"
	self = G_TYPE_CHECK_INSTANCE_CAST (base, TYPE_COLLECTION_PAGE, CollectionPage);
#line 185 "/home/jens/Source/shotwell/src/CollectionPage.vala"
	g_return_if_fail (G_IS_ACTION_MAP (map));
#line 186 "/home/jens/Source/shotwell/src/CollectionPage.vala"
	_tmp0_ = map;
#line 186 "/home/jens/Source/shotwell/src/CollectionPage.vala"
	PAGE_CLASS (collection_page_parent_class)->remove_actions (G_TYPE_CHECK_INSTANCE_CAST (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_MEDIA_PAGE, MediaPage), TYPE_PAGE, Page), _tmp0_);
#line 2071 "CollectionPage.c"
	{
		GActionEntry* entry_collection = NULL;
		gint entry_collection_length1 = 0;
		gint _entry_collection_size_ = 0;
		gint entry_it = 0;
#line 187 "/home/jens/Source/shotwell/src/CollectionPage.vala"
		entry_collection = COLLECTION_PAGE_entries;
#line 187 "/home/jens/Source/shotwell/src/CollectionPage.vala"
		entry_collection_length1 = G_N_ELEMENTS (COLLECTION_PAGE_entries);
#line 187 "/home/jens/Source/shotwell/src/CollectionPage.vala"
		for (entry_it = 0; entry_it < G_N_ELEMENTS (COLLECTION_PAGE_entries); entry_it = entry_it + 1) {
#line 2083 "CollectionPage.c"
			GActionEntry entry = {0};
#line 187 "/home/jens/Source/shotwell/src/CollectionPage.vala"
			entry = entry_collection[entry_it];
#line 2087 "CollectionPage.c"
			{
				GActionMap* _tmp1_ = NULL;
				GActionEntry _tmp2_ = {0};
				const gchar* _tmp3_ = NULL;
#line 188 "/home/jens/Source/shotwell/src/CollectionPage.vala"
				_tmp1_ = map;
#line 188 "/home/jens/Source/shotwell/src/CollectionPage.vala"
				_tmp2_ = entry;
#line 188 "/home/jens/Source/shotwell/src/CollectionPage.vala"
				_tmp3_ = _tmp2_.name;
#line 188 "/home/jens/Source/shotwell/src/CollectionPage.vala"
				g_action_map_remove_action (_tmp1_, _tmp3_);
#line 2100 "CollectionPage.c"
			}
		}
	}
}


static void _vala_array_add76 (InjectionGroup*** array, int* length, int* size, InjectionGroup* value) {
#line 195 "/home/jens/Source/shotwell/src/CollectionPage.vala"
	if ((*length) == (*size)) {
#line 195 "/home/jens/Source/shotwell/src/CollectionPage.vala"
		*size = (*size) ? (2 * (*size)) : 4;
#line 195 "/home/jens/Source/shotwell/src/CollectionPage.vala"
		*array = g_renew (InjectionGroup*, *array, (*size) + 1);
#line 2114 "CollectionPage.c"
	}
#line 195 "/home/jens/Source/shotwell/src/CollectionPage.vala"
	(*array)[(*length)++] = value;
#line 195 "/home/jens/Source/shotwell/src/CollectionPage.vala"
	(*array)[*length] = NULL;
#line 2120 "CollectionPage.c"
}


static void _vala_array_add77 (InjectionGroup*** array, int* length, int* size, InjectionGroup* value) {
#line 196 "/home/jens/Source/shotwell/src/CollectionPage.vala"
	if ((*length) == (*size)) {
#line 196 "/home/jens/Source/shotwell/src/CollectionPage.vala"
		*size = (*size) ? (2 * (*size)) : 4;
#line 196 "/home/jens/Source/shotwell/src/CollectionPage.vala"
		*array = g_renew (InjectionGroup*, *array, (*size) + 1);
#line 2131 "CollectionPage.c"
	}
#line 196 "/home/jens/Source/shotwell/src/CollectionPage.vala"
	(*array)[(*length)++] = value;
#line 196 "/home/jens/Source/shotwell/src/CollectionPage.vala"
	(*array)[*length] = NULL;
#line 2137 "CollectionPage.c"
}


static void _vala_array_add78 (InjectionGroup*** array, int* length, int* size, InjectionGroup* value) {
#line 197 "/home/jens/Source/shotwell/src/CollectionPage.vala"
	if ((*length) == (*size)) {
#line 197 "/home/jens/Source/shotwell/src/CollectionPage.vala"
		*size = (*size) ? (2 * (*size)) : 4;
#line 197 "/home/jens/Source/shotwell/src/CollectionPage.vala"
		*array = g_renew (InjectionGroup*, *array, (*size) + 1);
#line 2148 "CollectionPage.c"
	}
#line 197 "/home/jens/Source/shotwell/src/CollectionPage.vala"
	(*array)[(*length)++] = value;
#line 197 "/home/jens/Source/shotwell/src/CollectionPage.vala"
	(*array)[*length] = NULL;
#line 2154 "CollectionPage.c"
}


static void _vala_array_add79 (InjectionGroup*** array, int* length, int* size, InjectionGroup* value) {
#line 198 "/home/jens/Source/shotwell/src/CollectionPage.vala"
	if ((*length) == (*size)) {
#line 198 "/home/jens/Source/shotwell/src/CollectionPage.vala"
		*size = (*size) ? (2 * (*size)) : 4;
#line 198 "/home/jens/Source/shotwell/src/CollectionPage.vala"
		*array = g_renew (InjectionGroup*, *array, (*size) + 1);
#line 2165 "CollectionPage.c"
	}
#line 198 "/home/jens/Source/shotwell/src/CollectionPage.vala"
	(*array)[(*length)++] = value;
#line 198 "/home/jens/Source/shotwell/src/CollectionPage.vala"
	(*array)[*length] = NULL;
#line 2171 "CollectionPage.c"
}


static void _vala_array_add80 (InjectionGroup*** array, int* length, int* size, InjectionGroup* value) {
#line 199 "/home/jens/Source/shotwell/src/CollectionPage.vala"
	if ((*length) == (*size)) {
#line 199 "/home/jens/Source/shotwell/src/CollectionPage.vala"
		*size = (*size) ? (2 * (*size)) : 4;
#line 199 "/home/jens/Source/shotwell/src/CollectionPage.vala"
		*array = g_renew (InjectionGroup*, *array, (*size) + 1);
#line 2182 "CollectionPage.c"
	}
#line 199 "/home/jens/Source/shotwell/src/CollectionPage.vala"
	(*array)[(*length)++] = value;
#line 199 "/home/jens/Source/shotwell/src/CollectionPage.vala"
	(*array)[*length] = NULL;
#line 2188 "CollectionPage.c"
}


static void _vala_array_add81 (InjectionGroup*** array, int* length, int* size, InjectionGroup* value) {
#line 200 "/home/jens/Source/shotwell/src/CollectionPage.vala"
	if ((*length) == (*size)) {
#line 200 "/home/jens/Source/shotwell/src/CollectionPage.vala"
		*size = (*size) ? (2 * (*size)) : 4;
#line 200 "/home/jens/Source/shotwell/src/CollectionPage.vala"
		*array = g_renew (InjectionGroup*, *array, (*size) + 1);
#line 2199 "CollectionPage.c"
	}
#line 200 "/home/jens/Source/shotwell/src/CollectionPage.vala"
	(*array)[(*length)++] = value;
#line 200 "/home/jens/Source/shotwell/src/CollectionPage.vala"
	(*array)[*length] = NULL;
#line 2205 "CollectionPage.c"
}


static InjectionGroup** collection_page_real_init_collect_injection_groups (Page* base, int* result_length1) {
	CollectionPage * self;
	InjectionGroup** result = NULL;
	InjectionGroup** groups = NULL;
	gint _tmp0_ = 0;
	InjectionGroup** _tmp1_ = NULL;
	gint groups_length1 = 0;
	gint _groups_size_ = 0;
	InjectionGroup** _tmp2_ = NULL;
	gint _tmp2__length1 = 0;
	InjectionGroup* _tmp3_ = NULL;
	InjectionGroup** _tmp4_ = NULL;
	gint _tmp4__length1 = 0;
	InjectionGroup* _tmp5_ = NULL;
	InjectionGroup** _tmp6_ = NULL;
	gint _tmp6__length1 = 0;
	InjectionGroup* _tmp7_ = NULL;
	InjectionGroup** _tmp8_ = NULL;
	gint _tmp8__length1 = 0;
	InjectionGroup* _tmp9_ = NULL;
	InjectionGroup** _tmp10_ = NULL;
	gint _tmp10__length1 = 0;
	InjectionGroup* _tmp11_ = NULL;
	InjectionGroup** _tmp12_ = NULL;
	gint _tmp12__length1 = 0;
	InjectionGroup* _tmp13_ = NULL;
	InjectionGroup** _tmp14_ = NULL;
	gint _tmp14__length1 = 0;
#line 192 "/home/jens/Source/shotwell/src/CollectionPage.vala"
	self = G_TYPE_CHECK_INSTANCE_CAST (base, TYPE_COLLECTION_PAGE, CollectionPage);
#line 193 "/home/jens/Source/shotwell/src/CollectionPage.vala"
	_tmp1_ = PAGE_CLASS (collection_page_parent_class)->init_collect_injection_groups (G_TYPE_CHECK_INSTANCE_CAST (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_MEDIA_PAGE, MediaPage), TYPE_PAGE, Page), &_tmp0_);
#line 193 "/home/jens/Source/shotwell/src/CollectionPage.vala"
	groups = _tmp1_;
#line 193 "/home/jens/Source/shotwell/src/CollectionPage.vala"
	groups_length1 = _tmp0_;
#line 193 "/home/jens/Source/shotwell/src/CollectionPage.vala"
	_groups_size_ = groups_length1;
#line 195 "/home/jens/Source/shotwell/src/CollectionPage.vala"
	_tmp2_ = groups;
#line 195 "/home/jens/Source/shotwell/src/CollectionPage.vala"
	_tmp2__length1 = groups_length1;
#line 195 "/home/jens/Source/shotwell/src/CollectionPage.vala"
	_tmp3_ = collection_page_create_file_menu_injectables ();
#line 195 "/home/jens/Source/shotwell/src/CollectionPage.vala"
	_vala_array_add76 (&groups, &groups_length1, &_groups_size_, _tmp3_);
#line 196 "/home/jens/Source/shotwell/src/CollectionPage.vala"
	_tmp4_ = groups;
#line 196 "/home/jens/Source/shotwell/src/CollectionPage.vala"
	_tmp4__length1 = groups_length1;
#line 196 "/home/jens/Source/shotwell/src/CollectionPage.vala"
	_tmp5_ = collection_page_create_edit_menu_injectables ();
#line 196 "/home/jens/Source/shotwell/src/CollectionPage.vala"
	_vala_array_add77 (&groups, &groups_length1, &_groups_size_, _tmp5_);
#line 197 "/home/jens/Source/shotwell/src/CollectionPage.vala"
	_tmp6_ = groups;
#line 197 "/home/jens/Source/shotwell/src/CollectionPage.vala"
	_tmp6__length1 = groups_length1;
#line 197 "/home/jens/Source/shotwell/src/CollectionPage.vala"
	_tmp7_ = collection_page_create_view_menu_fullscreen_injectables ();
#line 197 "/home/jens/Source/shotwell/src/CollectionPage.vala"
	_vala_array_add78 (&groups, &groups_length1, &_groups_size_, _tmp7_);
#line 198 "/home/jens/Source/shotwell/src/CollectionPage.vala"
	_tmp8_ = groups;
#line 198 "/home/jens/Source/shotwell/src/CollectionPage.vala"
	_tmp8__length1 = groups_length1;
#line 198 "/home/jens/Source/shotwell/src/CollectionPage.vala"
	_tmp9_ = collection_page_create_photos_menu_edits_injectables ();
#line 198 "/home/jens/Source/shotwell/src/CollectionPage.vala"
	_vala_array_add79 (&groups, &groups_length1, &_groups_size_, _tmp9_);
#line 199 "/home/jens/Source/shotwell/src/CollectionPage.vala"
	_tmp10_ = groups;
#line 199 "/home/jens/Source/shotwell/src/CollectionPage.vala"
	_tmp10__length1 = groups_length1;
#line 199 "/home/jens/Source/shotwell/src/CollectionPage.vala"
	_tmp11_ = collection_page_create_photos_menu_date_injectables ();
#line 199 "/home/jens/Source/shotwell/src/CollectionPage.vala"
	_vala_array_add80 (&groups, &groups_length1, &_groups_size_, _tmp11_);
#line 200 "/home/jens/Source/shotwell/src/CollectionPage.vala"
	_tmp12_ = groups;
#line 200 "/home/jens/Source/shotwell/src/CollectionPage.vala"
	_tmp12__length1 = groups_length1;
#line 200 "/home/jens/Source/shotwell/src/CollectionPage.vala"
	_tmp13_ = collection_page_create_photos_menu_externals_injectables ();
#line 200 "/home/jens/Source/shotwell/src/CollectionPage.vala"
	_vala_array_add81 (&groups, &groups_length1, &_groups_size_, _tmp13_);
#line 202 "/home/jens/Source/shotwell/src/CollectionPage.vala"
	_tmp14_ = groups;
#line 202 "/home/jens/Source/shotwell/src/CollectionPage.vala"
	_tmp14__length1 = groups_length1;
#line 202 "/home/jens/Source/shotwell/src/CollectionPage.vala"
	if (result_length1) {
#line 202 "/home/jens/Source/shotwell/src/CollectionPage.vala"
		*result_length1 = _tmp14__length1;
#line 2303 "CollectionPage.c"
	}
#line 202 "/home/jens/Source/shotwell/src/CollectionPage.vala"
	result = _tmp14_;
#line 202 "/home/jens/Source/shotwell/src/CollectionPage.vala"
	return result;
#line 2309 "CollectionPage.c"
}


static gboolean collection_page_selection_has_video (CollectionPage* self) {
	gboolean result = FALSE;
	ViewCollection* _tmp0_ = NULL;
	ViewCollection* _tmp1_ = NULL;
	GeeList* _tmp2_ = NULL;
	GeeCollection* _tmp3_ = NULL;
	gboolean _tmp4_ = FALSE;
	gboolean _tmp5_ = FALSE;
#line 205 "/home/jens/Source/shotwell/src/CollectionPage.vala"
	g_return_val_if_fail (IS_COLLECTION_PAGE (self), FALSE);
#line 206 "/home/jens/Source/shotwell/src/CollectionPage.vala"
	_tmp0_ = page_get_view (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_PAGE, Page));
#line 206 "/home/jens/Source/shotwell/src/CollectionPage.vala"
	_tmp1_ = _tmp0_;
#line 206 "/home/jens/Source/shotwell/src/CollectionPage.vala"
	_tmp2_ = view_collection_get_selected_sources (_tmp1_);
#line 206 "/home/jens/Source/shotwell/src/CollectionPage.vala"
	_tmp3_ = G_TYPE_CHECK_INSTANCE_CAST (_tmp2_, GEE_TYPE_COLLECTION, GeeCollection);
#line 206 "/home/jens/Source/shotwell/src/CollectionPage.vala"
	_tmp4_ = media_source_collection_has_video (_tmp3_);
#line 206 "/home/jens/Source/shotwell/src/CollectionPage.vala"
	_tmp5_ = _tmp4_;
#line 206 "/home/jens/Source/shotwell/src/CollectionPage.vala"
	_g_object_unref0 (_tmp3_);
#line 206 "/home/jens/Source/shotwell/src/CollectionPage.vala"
	_data_collection_unref0 (_tmp1_);
#line 206 "/home/jens/Source/shotwell/src/CollectionPage.vala"
	result = _tmp5_;
#line 206 "/home/jens/Source/shotwell/src/CollectionPage.vala"
	return result;
#line 2343 "CollectionPage.c"
}


static gboolean collection_page_page_has_photo (CollectionPage* self) {
	gboolean result = FALSE;
	ViewCollection* _tmp0_ = NULL;
	ViewCollection* _tmp1_ = NULL;
	GeeCollection* _tmp2_ = NULL;
	GeeCollection* _tmp3_ = NULL;
	gboolean _tmp4_ = FALSE;
	gboolean _tmp5_ = FALSE;
#line 209 "/home/jens/Source/shotwell/src/CollectionPage.vala"
	g_return_val_if_fail (IS_COLLECTION_PAGE (self), FALSE);
#line 210 "/home/jens/Source/shotwell/src/CollectionPage.vala"
	_tmp0_ = page_get_view (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_PAGE, Page));
#line 210 "/home/jens/Source/shotwell/src/CollectionPage.vala"
	_tmp1_ = _tmp0_;
#line 210 "/home/jens/Source/shotwell/src/CollectionPage.vala"
	_tmp2_ = view_collection_get_sources (_tmp1_);
#line 210 "/home/jens/Source/shotwell/src/CollectionPage.vala"
	_tmp3_ = G_TYPE_CHECK_INSTANCE_CAST (_tmp2_, GEE_TYPE_COLLECTION, GeeCollection);
#line 210 "/home/jens/Source/shotwell/src/CollectionPage.vala"
	_tmp4_ = media_source_collection_has_photo (_tmp3_);
#line 210 "/home/jens/Source/shotwell/src/CollectionPage.vala"
	_tmp5_ = _tmp4_;
#line 210 "/home/jens/Source/shotwell/src/CollectionPage.vala"
	_g_object_unref0 (_tmp3_);
#line 210 "/home/jens/Source/shotwell/src/CollectionPage.vala"
	_data_collection_unref0 (_tmp1_);
#line 210 "/home/jens/Source/shotwell/src/CollectionPage.vala"
	result = _tmp5_;
#line 210 "/home/jens/Source/shotwell/src/CollectionPage.vala"
	return result;
#line 2377 "CollectionPage.c"
}


static gboolean collection_page_selection_has_photo (CollectionPage* self) {
	gboolean result = FALSE;
	ViewCollection* _tmp0_ = NULL;
	ViewCollection* _tmp1_ = NULL;
	GeeList* _tmp2_ = NULL;
	GeeCollection* _tmp3_ = NULL;
	gboolean _tmp4_ = FALSE;
	gboolean _tmp5_ = FALSE;
#line 213 "/home/jens/Source/shotwell/src/CollectionPage.vala"
	g_return_val_if_fail (IS_COLLECTION_PAGE (self), FALSE);
#line 214 "/home/jens/Source/shotwell/src/CollectionPage.vala"
	_tmp0_ = page_get_view (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_PAGE, Page));
#line 214 "/home/jens/Source/shotwell/src/CollectionPage.vala"
	_tmp1_ = _tmp0_;
#line 214 "/home/jens/Source/shotwell/src/CollectionPage.vala"
	_tmp2_ = view_collection_get_selected_sources (_tmp1_);
#line 214 "/home/jens/Source/shotwell/src/CollectionPage.vala"
	_tmp3_ = G_TYPE_CHECK_INSTANCE_CAST (_tmp2_, GEE_TYPE_COLLECTION, GeeCollection);
#line 214 "/home/jens/Source/shotwell/src/CollectionPage.vala"
	_tmp4_ = media_source_collection_has_photo (_tmp3_);
#line 214 "/home/jens/Source/shotwell/src/CollectionPage.vala"
	_tmp5_ = _tmp4_;
#line 214 "/home/jens/Source/shotwell/src/CollectionPage.vala"
	_g_object_unref0 (_tmp3_);
#line 214 "/home/jens/Source/shotwell/src/CollectionPage.vala"
	_data_collection_unref0 (_tmp1_);
#line 214 "/home/jens/Source/shotwell/src/CollectionPage.vala"
	result = _tmp5_;
#line 214 "/home/jens/Source/shotwell/src/CollectionPage.vala"
	return result;
#line 2411 "CollectionPage.c"
}


static void collection_page_real_init_actions (Page* base, gint selected_count, gint count) {
	CollectionPage * self;
	gint _tmp0_ = 0;
	gint _tmp1_ = 0;
#line 217 "/home/jens/Source/shotwell/src/CollectionPage.vala"
	self = G_TYPE_CHECK_INSTANCE_CAST (base, TYPE_COLLECTION_PAGE, CollectionPage);
#line 218 "/home/jens/Source/shotwell/src/CollectionPage.vala"
	_tmp0_ = selected_count;
#line 218 "/home/jens/Source/shotwell/src/CollectionPage.vala"
	_tmp1_ = count;
#line 218 "/home/jens/Source/shotwell/src/CollectionPage.vala"
	PAGE_CLASS (collection_page_parent_class)->init_actions (G_TYPE_CHECK_INSTANCE_CAST (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_MEDIA_PAGE, MediaPage), TYPE_PAGE, Page), _tmp0_, _tmp1_);
#line 220 "/home/jens/Source/shotwell/src/CollectionPage.vala"
	page_set_action_short_label (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_PAGE, Page), "RotateClockwise", RESOURCES_ROTATE_CW_LABEL);
#line 221 "/home/jens/Source/shotwell/src/CollectionPage.vala"
	page_set_action_short_label (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_PAGE, Page), "RotateCounterclockwise", RESOURCES_ROTATE_CCW_LABEL);
#line 222 "/home/jens/Source/shotwell/src/CollectionPage.vala"
	page_set_action_short_label (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_PAGE, Page), "Publish", RESOURCES_PUBLISH_LABEL);
#line 224 "/home/jens/Source/shotwell/src/CollectionPage.vala"
	page_set_action_important (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_PAGE, Page), "RotateClockwise", TRUE);
#line 225 "/home/jens/Source/shotwell/src/CollectionPage.vala"
	page_set_action_important (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_PAGE, Page), "RotateCounterclockwise", TRUE);
#line 226 "/home/jens/Source/shotwell/src/CollectionPage.vala"
	page_set_action_important (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_PAGE, Page), "Enhance", TRUE);
#line 227 "/home/jens/Source/shotwell/src/CollectionPage.vala"
	page_set_action_important (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_PAGE, Page), "Publish", TRUE);
#line 2441 "CollectionPage.c"
}


static void collection_page_real_update_actions (Page* base, gint selected_count, gint count) {
	CollectionPage * self;
	AppWindow* _tmp0_ = NULL;
	AppWindow* _tmp1_ = NULL;
	Page* _tmp2_ = NULL;
	Page* _tmp3_ = NULL;
	gboolean _tmp4_ = FALSE;
	gint _tmp5_ = 0;
	gint _tmp6_ = 0;
	gboolean one_selected = FALSE;
	gint _tmp7_ = 0;
	gboolean has_selected = FALSE;
	gint _tmp8_ = 0;
	gboolean primary_is_video = FALSE;
	gboolean _tmp9_ = FALSE;
	gboolean selection_has_videos = FALSE;
	gboolean _tmp17_ = FALSE;
	gboolean page_has_photos = FALSE;
	gboolean _tmp18_ = FALSE;
	gboolean _tmp19_ = FALSE;
	gboolean _tmp20_ = FALSE;
	gboolean _tmp22_ = FALSE;
	gboolean _tmp23_ = FALSE;
	gboolean _tmp24_ = FALSE;
	gboolean _tmp30_ = FALSE;
	gboolean _tmp31_ = FALSE;
	gboolean _tmp32_ = FALSE;
	gboolean _tmp33_ = FALSE;
	gboolean _tmp47_ = FALSE;
	gboolean _tmp48_ = FALSE;
	gboolean _tmp50_ = FALSE;
	gboolean _tmp51_ = FALSE;
	gboolean _tmp53_ = FALSE;
	gboolean _tmp54_ = FALSE;
	gboolean _tmp55_ = FALSE;
	gboolean _tmp64_ = FALSE;
	gboolean _tmp65_ = FALSE;
	gboolean _tmp66_ = FALSE;
	gboolean _tmp69_ = FALSE;
	gboolean _tmp70_ = FALSE;
	gboolean _tmp72_ = FALSE;
	gboolean _tmp73_ = FALSE;
	gboolean _tmp75_ = FALSE;
	gboolean _tmp76_ = FALSE;
	gboolean _tmp78_ = FALSE;
	gboolean _tmp79_ = FALSE;
	gboolean _tmp81_ = FALSE;
	gboolean _tmp82_ = FALSE;
	gboolean _tmp83_ = FALSE;
	gboolean _tmp84_ = FALSE;
	gboolean _tmp85_ = FALSE;
	gboolean _tmp86_ = FALSE;
	gboolean _tmp88_ = FALSE;
	gboolean _tmp89_ = FALSE;
	gboolean _tmp91_ = FALSE;
	gboolean _tmp92_ = FALSE;
	gboolean _tmp93_ = FALSE;
	gboolean _tmp95_ = FALSE;
#line 230 "/home/jens/Source/shotwell/src/CollectionPage.vala"
	self = G_TYPE_CHECK_INSTANCE_CAST (base, TYPE_COLLECTION_PAGE, CollectionPage);
#line 232 "/home/jens/Source/shotwell/src/CollectionPage.vala"
	_tmp0_ = app_window_get_instance ();
#line 232 "/home/jens/Source/shotwell/src/CollectionPage.vala"
	_tmp1_ = _tmp0_;
#line 232 "/home/jens/Source/shotwell/src/CollectionPage.vala"
	_tmp2_ = page_window_get_current_page (G_TYPE_CHECK_INSTANCE_CAST (_tmp1_, TYPE_PAGE_WINDOW, PageWindow));
#line 232 "/home/jens/Source/shotwell/src/CollectionPage.vala"
	_tmp3_ = _tmp2_;
#line 232 "/home/jens/Source/shotwell/src/CollectionPage.vala"
	_tmp4_ = _tmp3_ != G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_PAGE, Page);
#line 232 "/home/jens/Source/shotwell/src/CollectionPage.vala"
	_g_object_unref0 (_tmp3_);
#line 232 "/home/jens/Source/shotwell/src/CollectionPage.vala"
	_g_object_unref0 (_tmp1_);
#line 232 "/home/jens/Source/shotwell/src/CollectionPage.vala"
	if (_tmp4_) {
#line 233 "/home/jens/Source/shotwell/src/CollectionPage.vala"
		return;
#line 2523 "CollectionPage.c"
	}
#line 236 "/home/jens/Source/shotwell/src/CollectionPage.vala"
	_tmp5_ = selected_count;
#line 236 "/home/jens/Source/shotwell/src/CollectionPage.vala"
	_tmp6_ = count;
#line 236 "/home/jens/Source/shotwell/src/CollectionPage.vala"
	PAGE_CLASS (collection_page_parent_class)->update_actions (G_TYPE_CHECK_INSTANCE_CAST (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_MEDIA_PAGE, MediaPage), TYPE_PAGE, Page), _tmp5_, _tmp6_);
#line 238 "/home/jens/Source/shotwell/src/CollectionPage.vala"
	_tmp7_ = selected_count;
#line 238 "/home/jens/Source/shotwell/src/CollectionPage.vala"
	one_selected = _tmp7_ == 1;
#line 239 "/home/jens/Source/shotwell/src/CollectionPage.vala"
	_tmp8_ = selected_count;
#line 239 "/home/jens/Source/shotwell/src/CollectionPage.vala"
	has_selected = _tmp8_ > 0;
#line 241 "/home/jens/Source/shotwell/src/CollectionPage.vala"
	primary_is_video = FALSE;
#line 242 "/home/jens/Source/shotwell/src/CollectionPage.vala"
	_tmp9_ = has_selected;
#line 242 "/home/jens/Source/shotwell/src/CollectionPage.vala"
	if (_tmp9_) {
#line 2545 "CollectionPage.c"
		ViewCollection* _tmp10_ = NULL;
		ViewCollection* _tmp11_ = NULL;
		DataView* _tmp12_ = NULL;
		DataView* _tmp13_ = NULL;
		DataSource* _tmp14_ = NULL;
		DataSource* _tmp15_ = NULL;
		gboolean _tmp16_ = FALSE;
#line 243 "/home/jens/Source/shotwell/src/CollectionPage.vala"
		_tmp10_ = page_get_view (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_PAGE, Page));
#line 243 "/home/jens/Source/shotwell/src/CollectionPage.vala"
		_tmp11_ = _tmp10_;
#line 243 "/home/jens/Source/shotwell/src/CollectionPage.vala"
		_tmp12_ = view_collection_get_selected_at (_tmp11_, 0);
#line 243 "/home/jens/Source/shotwell/src/CollectionPage.vala"
		_tmp13_ = _tmp12_;
#line 243 "/home/jens/Source/shotwell/src/CollectionPage.vala"
		_tmp14_ = data_view_get_source (_tmp13_);
#line 243 "/home/jens/Source/shotwell/src/CollectionPage.vala"
		_tmp15_ = _tmp14_;
#line 243 "/home/jens/Source/shotwell/src/CollectionPage.vala"
		_tmp16_ = G_TYPE_CHECK_INSTANCE_TYPE (_tmp15_, TYPE_VIDEO);
#line 243 "/home/jens/Source/shotwell/src/CollectionPage.vala"
		_g_object_unref0 (_tmp15_);
#line 243 "/home/jens/Source/shotwell/src/CollectionPage.vala"
		_g_object_unref0 (_tmp13_);
#line 243 "/home/jens/Source/shotwell/src/CollectionPage.vala"
		_data_collection_unref0 (_tmp11_);
#line 243 "/home/jens/Source/shotwell/src/CollectionPage.vala"
		if (_tmp16_) {
#line 244 "/home/jens/Source/shotwell/src/CollectionPage.vala"
			primary_is_video = TRUE;
#line 2577 "CollectionPage.c"
		}
	}
#line 246 "/home/jens/Source/shotwell/src/CollectionPage.vala"
	_tmp17_ = collection_page_selection_has_video (self);
#line 246 "/home/jens/Source/shotwell/src/CollectionPage.vala"
	selection_has_videos = _tmp17_;
#line 247 "/home/jens/Source/shotwell/src/CollectionPage.vala"
	_tmp18_ = collection_page_page_has_photo (self);
#line 247 "/home/jens/Source/shotwell/src/CollectionPage.vala"
	page_has_photos = _tmp18_;
#line 251 "/home/jens/Source/shotwell/src/CollectionPage.vala"
	_tmp20_ = has_selected;
#line 251 "/home/jens/Source/shotwell/src/CollectionPage.vala"
	if (_tmp20_) {
#line 2592 "CollectionPage.c"
		gboolean _tmp21_ = FALSE;
#line 251 "/home/jens/Source/shotwell/src/CollectionPage.vala"
		_tmp21_ = selection_has_videos;
#line 251 "/home/jens/Source/shotwell/src/CollectionPage.vala"
		_tmp19_ = !_tmp21_;
#line 2598 "CollectionPage.c"
	} else {
#line 251 "/home/jens/Source/shotwell/src/CollectionPage.vala"
		_tmp19_ = FALSE;
#line 2602 "CollectionPage.c"
	}
#line 251 "/home/jens/Source/shotwell/src/CollectionPage.vala"
	page_set_action_sensitive (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_PAGE, Page), "Duplicate", _tmp19_);
#line 252 "/home/jens/Source/shotwell/src/CollectionPage.vala"
	_tmp22_ = primary_is_video;
#line 252 "/home/jens/Source/shotwell/src/CollectionPage.vala"
	page_set_action_visible (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_PAGE, Page), "ExternalEdit", !_tmp22_);
#line 254 "/home/jens/Source/shotwell/src/CollectionPage.vala"
	_tmp24_ = one_selected;
#line 254 "/home/jens/Source/shotwell/src/CollectionPage.vala"
	if (_tmp24_) {
#line 2614 "CollectionPage.c"
		ConfigFacade* _tmp25_ = NULL;
		ConfigFacade* _tmp26_ = NULL;
		gchar* _tmp27_ = NULL;
		gchar* _tmp28_ = NULL;
		gboolean _tmp29_ = FALSE;
#line 254 "/home/jens/Source/shotwell/src/CollectionPage.vala"
		_tmp25_ = config_facade_get_instance ();
#line 254 "/home/jens/Source/shotwell/src/CollectionPage.vala"
		_tmp26_ = _tmp25_;
#line 254 "/home/jens/Source/shotwell/src/CollectionPage.vala"
		_tmp27_ = configuration_facade_get_external_photo_app (G_TYPE_CHECK_INSTANCE_CAST (_tmp26_, TYPE_CONFIGURATION_FACADE, ConfigurationFacade));
#line 254 "/home/jens/Source/shotwell/src/CollectionPage.vala"
		_tmp28_ = _tmp27_;
#line 254 "/home/jens/Source/shotwell/src/CollectionPage.vala"
		_tmp29_ = is_string_empty (_tmp28_);
#line 254 "/home/jens/Source/shotwell/src/CollectionPage.vala"
		_tmp23_ = !_tmp29_;
#line 254 "/home/jens/Source/shotwell/src/CollectionPage.vala"
		_g_free0 (_tmp28_);
#line 254 "/home/jens/Source/shotwell/src/CollectionPage.vala"
		_g_object_unref0 (_tmp26_);
#line 2636 "CollectionPage.c"
	} else {
#line 254 "/home/jens/Source/shotwell/src/CollectionPage.vala"
		_tmp23_ = FALSE;
#line 2640 "CollectionPage.c"
	}
#line 253 "/home/jens/Source/shotwell/src/CollectionPage.vala"
	page_set_action_sensitive (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_PAGE, Page), "ExternalEdit", _tmp23_);
#line 256 "/home/jens/Source/shotwell/src/CollectionPage.vala"
	_tmp33_ = one_selected;
#line 256 "/home/jens/Source/shotwell/src/CollectionPage.vala"
	if (_tmp33_) {
#line 2648 "CollectionPage.c"
		gboolean _tmp34_ = FALSE;
#line 256 "/home/jens/Source/shotwell/src/CollectionPage.vala"
		_tmp34_ = primary_is_video;
#line 256 "/home/jens/Source/shotwell/src/CollectionPage.vala"
		_tmp32_ = !_tmp34_;
#line 2654 "CollectionPage.c"
	} else {
#line 256 "/home/jens/Source/shotwell/src/CollectionPage.vala"
		_tmp32_ = FALSE;
#line 2658 "CollectionPage.c"
	}
#line 256 "/home/jens/Source/shotwell/src/CollectionPage.vala"
	if (_tmp32_) {
#line 2662 "CollectionPage.c"
		ViewCollection* _tmp35_ = NULL;
		ViewCollection* _tmp36_ = NULL;
		DataView* _tmp37_ = NULL;
		DataView* _tmp38_ = NULL;
		DataSource* _tmp39_ = NULL;
		Photo* _tmp40_ = NULL;
		PhotoFileFormat _tmp41_ = 0;
#line 257 "/home/jens/Source/shotwell/src/CollectionPage.vala"
		_tmp35_ = page_get_view (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_PAGE, Page));
#line 257 "/home/jens/Source/shotwell/src/CollectionPage.vala"
		_tmp36_ = _tmp35_;
#line 257 "/home/jens/Source/shotwell/src/CollectionPage.vala"
		_tmp37_ = view_collection_get_selected_at (_tmp36_, 0);
#line 257 "/home/jens/Source/shotwell/src/CollectionPage.vala"
		_tmp38_ = _tmp37_;
#line 257 "/home/jens/Source/shotwell/src/CollectionPage.vala"
		_tmp39_ = data_view_get_source (_tmp38_);
#line 257 "/home/jens/Source/shotwell/src/CollectionPage.vala"
		_tmp40_ = G_TYPE_CHECK_INSTANCE_CAST (_tmp39_, TYPE_PHOTO, Photo);
#line 257 "/home/jens/Source/shotwell/src/CollectionPage.vala"
		_tmp41_ = photo_get_master_file_format (_tmp40_);
#line 257 "/home/jens/Source/shotwell/src/CollectionPage.vala"
		_tmp31_ = _tmp41_ == PHOTO_FILE_FORMAT_RAW;
#line 257 "/home/jens/Source/shotwell/src/CollectionPage.vala"
		_g_object_unref0 (_tmp40_);
#line 257 "/home/jens/Source/shotwell/src/CollectionPage.vala"
		_g_object_unref0 (_tmp38_);
#line 257 "/home/jens/Source/shotwell/src/CollectionPage.vala"
		_data_collection_unref0 (_tmp36_);
#line 2692 "CollectionPage.c"
	} else {
#line 256 "/home/jens/Source/shotwell/src/CollectionPage.vala"
		_tmp31_ = FALSE;
#line 2696 "CollectionPage.c"
	}
#line 256 "/home/jens/Source/shotwell/src/CollectionPage.vala"
	if (_tmp31_) {
#line 2700 "CollectionPage.c"
		ConfigFacade* _tmp42_ = NULL;
		ConfigFacade* _tmp43_ = NULL;
		gchar* _tmp44_ = NULL;
		gchar* _tmp45_ = NULL;
		gboolean _tmp46_ = FALSE;
#line 259 "/home/jens/Source/shotwell/src/CollectionPage.vala"
		_tmp42_ = config_facade_get_instance ();
#line 259 "/home/jens/Source/shotwell/src/CollectionPage.vala"
		_tmp43_ = _tmp42_;
#line 259 "/home/jens/Source/shotwell/src/CollectionPage.vala"
		_tmp44_ = configuration_facade_get_external_raw_app (G_TYPE_CHECK_INSTANCE_CAST (_tmp43_, TYPE_CONFIGURATION_FACADE, ConfigurationFacade));
#line 259 "/home/jens/Source/shotwell/src/CollectionPage.vala"
		_tmp45_ = _tmp44_;
#line 259 "/home/jens/Source/shotwell/src/CollectionPage.vala"
		_tmp46_ = is_string_empty (_tmp45_);
#line 259 "/home/jens/Source/shotwell/src/CollectionPage.vala"
		_tmp30_ = !_tmp46_;
#line 259 "/home/jens/Source/shotwell/src/CollectionPage.vala"
		_g_free0 (_tmp45_);
#line 259 "/home/jens/Source/shotwell/src/CollectionPage.vala"
		_g_object_unref0 (_tmp43_);
#line 2722 "CollectionPage.c"
	} else {
#line 256 "/home/jens/Source/shotwell/src/CollectionPage.vala"
		_tmp30_ = FALSE;
#line 2726 "CollectionPage.c"
	}
#line 255 "/home/jens/Source/shotwell/src/CollectionPage.vala"
	page_set_action_visible (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_PAGE, Page), "ExternalEditRAW", _tmp30_);
#line 260 "/home/jens/Source/shotwell/src/CollectionPage.vala"
	_tmp48_ = selection_has_videos;
#line 260 "/home/jens/Source/shotwell/src/CollectionPage.vala"
	if (!_tmp48_) {
#line 2734 "CollectionPage.c"
		gboolean _tmp49_ = FALSE;
#line 260 "/home/jens/Source/shotwell/src/CollectionPage.vala"
		_tmp49_ = collection_page_can_revert_selected (self);
#line 260 "/home/jens/Source/shotwell/src/CollectionPage.vala"
		_tmp47_ = _tmp49_;
#line 2740 "CollectionPage.c"
	} else {
#line 260 "/home/jens/Source/shotwell/src/CollectionPage.vala"
		_tmp47_ = FALSE;
#line 2744 "CollectionPage.c"
	}
#line 260 "/home/jens/Source/shotwell/src/CollectionPage.vala"
	page_set_action_sensitive (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_PAGE, Page), "Revert", _tmp47_);
#line 261 "/home/jens/Source/shotwell/src/CollectionPage.vala"
	_tmp51_ = selection_has_videos;
#line 261 "/home/jens/Source/shotwell/src/CollectionPage.vala"
	if (!_tmp51_) {
#line 2752 "CollectionPage.c"
		gboolean _tmp52_ = FALSE;
#line 261 "/home/jens/Source/shotwell/src/CollectionPage.vala"
		_tmp52_ = has_selected;
#line 261 "/home/jens/Source/shotwell/src/CollectionPage.vala"
		_tmp50_ = _tmp52_;
#line 2758 "CollectionPage.c"
	} else {
#line 261 "/home/jens/Source/shotwell/src/CollectionPage.vala"
		_tmp50_ = FALSE;
#line 2762 "CollectionPage.c"
	}
#line 261 "/home/jens/Source/shotwell/src/CollectionPage.vala"
	page_set_action_sensitive (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_PAGE, Page), "Enhance", _tmp50_);
#line 262 "/home/jens/Source/shotwell/src/CollectionPage.vala"
	_tmp55_ = selection_has_videos;
#line 262 "/home/jens/Source/shotwell/src/CollectionPage.vala"
	if (!_tmp55_) {
#line 2770 "CollectionPage.c"
		gboolean _tmp56_ = FALSE;
#line 262 "/home/jens/Source/shotwell/src/CollectionPage.vala"
		_tmp56_ = one_selected;
#line 262 "/home/jens/Source/shotwell/src/CollectionPage.vala"
		_tmp54_ = _tmp56_;
#line 2776 "CollectionPage.c"
	} else {
#line 262 "/home/jens/Source/shotwell/src/CollectionPage.vala"
		_tmp54_ = FALSE;
#line 2780 "CollectionPage.c"
	}
#line 262 "/home/jens/Source/shotwell/src/CollectionPage.vala"
	if (_tmp54_) {
#line 2784 "CollectionPage.c"
		ViewCollection* _tmp57_ = NULL;
		ViewCollection* _tmp58_ = NULL;
		DataView* _tmp59_ = NULL;
		DataView* _tmp60_ = NULL;
		DataSource* _tmp61_ = NULL;
		Photo* _tmp62_ = NULL;
		gboolean _tmp63_ = FALSE;
#line 263 "/home/jens/Source/shotwell/src/CollectionPage.vala"
		_tmp57_ = page_get_view (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_PAGE, Page));
#line 263 "/home/jens/Source/shotwell/src/CollectionPage.vala"
		_tmp58_ = _tmp57_;
#line 263 "/home/jens/Source/shotwell/src/CollectionPage.vala"
		_tmp59_ = view_collection_get_selected_at (_tmp58_, 0);
#line 263 "/home/jens/Source/shotwell/src/CollectionPage.vala"
		_tmp60_ = _tmp59_;
#line 263 "/home/jens/Source/shotwell/src/CollectionPage.vala"
		_tmp61_ = data_view_get_source (_tmp60_);
#line 263 "/home/jens/Source/shotwell/src/CollectionPage.vala"
		_tmp62_ = G_TYPE_CHECK_INSTANCE_CAST (_tmp61_, TYPE_PHOTO, Photo);
#line 263 "/home/jens/Source/shotwell/src/CollectionPage.vala"
		_tmp63_ = photo_has_color_adjustments (_tmp62_);
#line 263 "/home/jens/Source/shotwell/src/CollectionPage.vala"
		_tmp53_ = _tmp63_;
#line 263 "/home/jens/Source/shotwell/src/CollectionPage.vala"
		_g_object_unref0 (_tmp62_);
#line 263 "/home/jens/Source/shotwell/src/CollectionPage.vala"
		_g_object_unref0 (_tmp60_);
#line 263 "/home/jens/Source/shotwell/src/CollectionPage.vala"
		_data_collection_unref0 (_tmp58_);
#line 2814 "CollectionPage.c"
	} else {
#line 262 "/home/jens/Source/shotwell/src/CollectionPage.vala"
		_tmp53_ = FALSE;
#line 2818 "CollectionPage.c"
	}
#line 262 "/home/jens/Source/shotwell/src/CollectionPage.vala"
	page_set_action_sensitive (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_PAGE, Page), "CopyColorAdjustments", _tmp53_);
#line 264 "/home/jens/Source/shotwell/src/CollectionPage.vala"
	_tmp66_ = selection_has_videos;
#line 264 "/home/jens/Source/shotwell/src/CollectionPage.vala"
	if (!_tmp66_) {
#line 2826 "CollectionPage.c"
		gboolean _tmp67_ = FALSE;
#line 264 "/home/jens/Source/shotwell/src/CollectionPage.vala"
		_tmp67_ = has_selected;
#line 264 "/home/jens/Source/shotwell/src/CollectionPage.vala"
		_tmp65_ = _tmp67_;
#line 2832 "CollectionPage.c"
	} else {
#line 264 "/home/jens/Source/shotwell/src/CollectionPage.vala"
		_tmp65_ = FALSE;
#line 2836 "CollectionPage.c"
	}
#line 264 "/home/jens/Source/shotwell/src/CollectionPage.vala"
	if (_tmp65_) {
#line 2840 "CollectionPage.c"
		gboolean _tmp68_ = FALSE;
#line 265 "/home/jens/Source/shotwell/src/CollectionPage.vala"
		_tmp68_ = pixel_transformation_bundle_has_copied_color_adjustments ();
#line 265 "/home/jens/Source/shotwell/src/CollectionPage.vala"
		_tmp64_ = _tmp68_;
#line 2846 "CollectionPage.c"
	} else {
#line 264 "/home/jens/Source/shotwell/src/CollectionPage.vala"
		_tmp64_ = FALSE;
#line 2850 "CollectionPage.c"
	}
#line 264 "/home/jens/Source/shotwell/src/CollectionPage.vala"
	page_set_action_sensitive (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_PAGE, Page), "PasteColorAdjustments", _tmp64_);
#line 266 "/home/jens/Source/shotwell/src/CollectionPage.vala"
	_tmp70_ = selection_has_videos;
#line 266 "/home/jens/Source/shotwell/src/CollectionPage.vala"
	if (!_tmp70_) {
#line 2858 "CollectionPage.c"
		gboolean _tmp71_ = FALSE;
#line 266 "/home/jens/Source/shotwell/src/CollectionPage.vala"
		_tmp71_ = has_selected;
#line 266 "/home/jens/Source/shotwell/src/CollectionPage.vala"
		_tmp69_ = _tmp71_;
#line 2864 "CollectionPage.c"
	} else {
#line 266 "/home/jens/Source/shotwell/src/CollectionPage.vala"
		_tmp69_ = FALSE;
#line 2868 "CollectionPage.c"
	}
#line 266 "/home/jens/Source/shotwell/src/CollectionPage.vala"
	page_set_action_sensitive (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_PAGE, Page), "RotateClockwise", _tmp69_);
#line 267 "/home/jens/Source/shotwell/src/CollectionPage.vala"
	_tmp73_ = selection_has_videos;
#line 267 "/home/jens/Source/shotwell/src/CollectionPage.vala"
	if (!_tmp73_) {
#line 2876 "CollectionPage.c"
		gboolean _tmp74_ = FALSE;
#line 267 "/home/jens/Source/shotwell/src/CollectionPage.vala"
		_tmp74_ = has_selected;
#line 267 "/home/jens/Source/shotwell/src/CollectionPage.vala"
		_tmp72_ = _tmp74_;
#line 2882 "CollectionPage.c"
	} else {
#line 267 "/home/jens/Source/shotwell/src/CollectionPage.vala"
		_tmp72_ = FALSE;
#line 2886 "CollectionPage.c"
	}
#line 267 "/home/jens/Source/shotwell/src/CollectionPage.vala"
	page_set_action_sensitive (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_PAGE, Page), "RotateCounterclockwise", _tmp72_);
#line 268 "/home/jens/Source/shotwell/src/CollectionPage.vala"
	_tmp76_ = selection_has_videos;
#line 268 "/home/jens/Source/shotwell/src/CollectionPage.vala"
	if (!_tmp76_) {
#line 2894 "CollectionPage.c"
		gboolean _tmp77_ = FALSE;
#line 268 "/home/jens/Source/shotwell/src/CollectionPage.vala"
		_tmp77_ = has_selected;
#line 268 "/home/jens/Source/shotwell/src/CollectionPage.vala"
		_tmp75_ = _tmp77_;
#line 2900 "CollectionPage.c"
	} else {
#line 268 "/home/jens/Source/shotwell/src/CollectionPage.vala"
		_tmp75_ = FALSE;
#line 2904 "CollectionPage.c"
	}
#line 268 "/home/jens/Source/shotwell/src/CollectionPage.vala"
	page_set_action_sensitive (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_PAGE, Page), "FlipHorizontally", _tmp75_);
#line 269 "/home/jens/Source/shotwell/src/CollectionPage.vala"
	_tmp79_ = selection_has_videos;
#line 269 "/home/jens/Source/shotwell/src/CollectionPage.vala"
	if (!_tmp79_) {
#line 2912 "CollectionPage.c"
		gboolean _tmp80_ = FALSE;
#line 269 "/home/jens/Source/shotwell/src/CollectionPage.vala"
		_tmp80_ = has_selected;
#line 269 "/home/jens/Source/shotwell/src/CollectionPage.vala"
		_tmp78_ = _tmp80_;
#line 2918 "CollectionPage.c"
	} else {
#line 269 "/home/jens/Source/shotwell/src/CollectionPage.vala"
		_tmp78_ = FALSE;
#line 2922 "CollectionPage.c"
	}
#line 269 "/home/jens/Source/shotwell/src/CollectionPage.vala"
	page_set_action_sensitive (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_PAGE, Page), "FlipVertically", _tmp78_);
#line 273 "/home/jens/Source/shotwell/src/CollectionPage.vala"
	_tmp81_ = has_selected;
#line 273 "/home/jens/Source/shotwell/src/CollectionPage.vala"
	page_set_action_sensitive (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_PAGE, Page), "AdjustDateTime", _tmp81_);
#line 275 "/home/jens/Source/shotwell/src/CollectionPage.vala"
	_tmp82_ = has_selected;
#line 275 "/home/jens/Source/shotwell/src/CollectionPage.vala"
	page_set_action_sensitive (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_PAGE, Page), "NewEvent", _tmp82_);
#line 276 "/home/jens/Source/shotwell/src/CollectionPage.vala"
	_tmp83_ = has_selected;
#line 276 "/home/jens/Source/shotwell/src/CollectionPage.vala"
	page_set_action_sensitive (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_PAGE, Page), "AddTags", _tmp83_);
#line 277 "/home/jens/Source/shotwell/src/CollectionPage.vala"
	_tmp84_ = one_selected;
#line 277 "/home/jens/Source/shotwell/src/CollectionPage.vala"
	page_set_action_sensitive (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_PAGE, Page), "ModifyTags", _tmp84_);
#line 278 "/home/jens/Source/shotwell/src/CollectionPage.vala"
	_tmp86_ = page_has_photos;
#line 278 "/home/jens/Source/shotwell/src/CollectionPage.vala"
	if (_tmp86_) {
#line 2946 "CollectionPage.c"
		gboolean _tmp87_ = FALSE;
#line 278 "/home/jens/Source/shotwell/src/CollectionPage.vala"
		_tmp87_ = primary_is_video;
#line 278 "/home/jens/Source/shotwell/src/CollectionPage.vala"
		_tmp85_ = !_tmp87_;
#line 2952 "CollectionPage.c"
	} else {
#line 278 "/home/jens/Source/shotwell/src/CollectionPage.vala"
		_tmp85_ = FALSE;
#line 2956 "CollectionPage.c"
	}
#line 278 "/home/jens/Source/shotwell/src/CollectionPage.vala"
	page_set_action_sensitive (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_PAGE, Page), "Slideshow", _tmp85_);
#line 279 "/home/jens/Source/shotwell/src/CollectionPage.vala"
	_tmp89_ = selection_has_videos;
#line 279 "/home/jens/Source/shotwell/src/CollectionPage.vala"
	if (!_tmp89_) {
#line 2964 "CollectionPage.c"
		gboolean _tmp90_ = FALSE;
#line 279 "/home/jens/Source/shotwell/src/CollectionPage.vala"
		_tmp90_ = has_selected;
#line 279 "/home/jens/Source/shotwell/src/CollectionPage.vala"
		_tmp88_ = _tmp90_;
#line 2970 "CollectionPage.c"
	} else {
#line 279 "/home/jens/Source/shotwell/src/CollectionPage.vala"
		_tmp88_ = FALSE;
#line 2974 "CollectionPage.c"
	}
#line 279 "/home/jens/Source/shotwell/src/CollectionPage.vala"
	page_set_action_sensitive (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_PAGE, Page), "Print", _tmp88_);
#line 280 "/home/jens/Source/shotwell/src/CollectionPage.vala"
	_tmp91_ = has_selected;
#line 280 "/home/jens/Source/shotwell/src/CollectionPage.vala"
	page_set_action_sensitive (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_PAGE, Page), "Publish", _tmp91_);
#line 282 "/home/jens/Source/shotwell/src/CollectionPage.vala"
	_tmp93_ = selection_has_videos;
#line 282 "/home/jens/Source/shotwell/src/CollectionPage.vala"
	if (!_tmp93_) {
#line 2986 "CollectionPage.c"
		gboolean _tmp94_ = FALSE;
#line 282 "/home/jens/Source/shotwell/src/CollectionPage.vala"
		_tmp94_ = has_selected;
#line 282 "/home/jens/Source/shotwell/src/CollectionPage.vala"
		_tmp92_ = _tmp94_;
#line 2992 "CollectionPage.c"
	} else {
#line 282 "/home/jens/Source/shotwell/src/CollectionPage.vala"
		_tmp92_ = FALSE;
#line 2996 "CollectionPage.c"
	}
#line 282 "/home/jens/Source/shotwell/src/CollectionPage.vala"
	page_set_action_sensitive (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_PAGE, Page), "SetBackground", _tmp92_);
#line 283 "/home/jens/Source/shotwell/src/CollectionPage.vala"
	_tmp95_ = has_selected;
#line 283 "/home/jens/Source/shotwell/src/CollectionPage.vala"
	if (_tmp95_) {
#line 3004 "CollectionPage.c"
		const gchar* _tmp96_ = NULL;
		gboolean _tmp97_ = FALSE;
		gchar* label = NULL;
		gchar* _tmp98_ = NULL;
		const gchar* _tmp99_ = NULL;
#line 284 "/home/jens/Source/shotwell/src/CollectionPage.vala"
		g_debug ("CollectionPage.vala:284: Setting action label for SetBackground...");
#line 285 "/home/jens/Source/shotwell/src/CollectionPage.vala"
		_tmp97_ = one_selected;
#line 285 "/home/jens/Source/shotwell/src/CollectionPage.vala"
		if (_tmp97_) {
#line 286 "/home/jens/Source/shotwell/src/CollectionPage.vala"
			_tmp96_ = RESOURCES_SET_BACKGROUND_MENU;
#line 3018 "CollectionPage.c"
		} else {
#line 287 "/home/jens/Source/shotwell/src/CollectionPage.vala"
			_tmp96_ = RESOURCES_SET_BACKGROUND_SLIDESHOW_MENU;
#line 3022 "CollectionPage.c"
		}
#line 285 "/home/jens/Source/shotwell/src/CollectionPage.vala"
		_tmp98_ = g_strdup (_tmp96_);
#line 285 "/home/jens/Source/shotwell/src/CollectionPage.vala"
		label = _tmp98_;
#line 288 "/home/jens/Source/shotwell/src/CollectionPage.vala"
		_tmp99_ = label;
#line 288 "/home/jens/Source/shotwell/src/CollectionPage.vala"
		page_update_menu_item_label (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_PAGE, Page), "SetBackground", _tmp99_);
#line 283 "/home/jens/Source/shotwell/src/CollectionPage.vala"
		_g_free0 (label);
#line 3034 "CollectionPage.c"
	}
}


static void collection_page_on_photos_altered (CollectionPage* self, GeeMap* altered) {
#line 292 "/home/jens/Source/shotwell/src/CollectionPage.vala"
	g_return_if_fail (IS_COLLECTION_PAGE (self));
#line 292 "/home/jens/Source/shotwell/src/CollectionPage.vala"
	g_return_if_fail (GEE_IS_MAP (altered));
#line 3044 "CollectionPage.c"
	{
		GeeIterator* _object_it = NULL;
		GeeMap* _tmp0_ = NULL;
		GeeSet* _tmp1_ = NULL;
		GeeSet* _tmp2_ = NULL;
		GeeSet* _tmp3_ = NULL;
		GeeIterator* _tmp4_ = NULL;
		GeeIterator* _tmp5_ = NULL;
#line 295 "/home/jens/Source/shotwell/src/CollectionPage.vala"
		_tmp0_ = altered;
#line 295 "/home/jens/Source/shotwell/src/CollectionPage.vala"
		_tmp1_ = gee_map_get_keys (_tmp0_);
#line 295 "/home/jens/Source/shotwell/src/CollectionPage.vala"
		_tmp2_ = _tmp1_;
#line 295 "/home/jens/Source/shotwell/src/CollectionPage.vala"
		_tmp3_ = _tmp2_;
#line 295 "/home/jens/Source/shotwell/src/CollectionPage.vala"
		_tmp4_ = gee_iterable_iterator (G_TYPE_CHECK_INSTANCE_CAST (_tmp3_, GEE_TYPE_ITERABLE, GeeIterable));
#line 295 "/home/jens/Source/shotwell/src/CollectionPage.vala"
		_tmp5_ = _tmp4_;
#line 295 "/home/jens/Source/shotwell/src/CollectionPage.vala"
		_g_object_unref0 (_tmp3_);
#line 295 "/home/jens/Source/shotwell/src/CollectionPage.vala"
		_object_it = _tmp5_;
#line 295 "/home/jens/Source/shotwell/src/CollectionPage.vala"
		while (TRUE) {
#line 3071 "CollectionPage.c"
			GeeIterator* _tmp6_ = NULL;
			gboolean _tmp7_ = FALSE;
			DataObject* object = NULL;
			GeeIterator* _tmp8_ = NULL;
			gpointer _tmp9_ = NULL;
			DataView* view = NULL;
			DataObject* _tmp10_ = NULL;
			DataView* _tmp11_ = NULL;
			gboolean _tmp12_ = FALSE;
			DataView* _tmp13_ = NULL;
			gboolean _tmp14_ = FALSE;
			LibraryPhoto* photo = NULL;
			DataView* _tmp20_ = NULL;
			DataSource* _tmp21_ = NULL;
			LibraryPhoto* _tmp22_ = NULL;
			LibraryPhoto* _tmp23_ = NULL;
			gboolean _tmp24_ = FALSE;
			LibraryPhoto* _tmp25_ = NULL;
			gboolean _tmp26_ = FALSE;
#line 295 "/home/jens/Source/shotwell/src/CollectionPage.vala"
			_tmp6_ = _object_it;
#line 295 "/home/jens/Source/shotwell/src/CollectionPage.vala"
			_tmp7_ = gee_iterator_next (_tmp6_);
#line 295 "/home/jens/Source/shotwell/src/CollectionPage.vala"
			if (!_tmp7_) {
#line 295 "/home/jens/Source/shotwell/src/CollectionPage.vala"
				break;
#line 3099 "CollectionPage.c"
			}
#line 295 "/home/jens/Source/shotwell/src/CollectionPage.vala"
			_tmp8_ = _object_it;
#line 295 "/home/jens/Source/shotwell/src/CollectionPage.vala"
			_tmp9_ = gee_iterator_get (_tmp8_);
#line 295 "/home/jens/Source/shotwell/src/CollectionPage.vala"
			object = (DataObject*) _tmp9_;
#line 296 "/home/jens/Source/shotwell/src/CollectionPage.vala"
			_tmp10_ = object;
#line 296 "/home/jens/Source/shotwell/src/CollectionPage.vala"
			_tmp11_ = _g_object_ref0 (G_TYPE_CHECK_INSTANCE_CAST (_tmp10_, TYPE_DATA_VIEW, DataView));
#line 296 "/home/jens/Source/shotwell/src/CollectionPage.vala"
			view = _tmp11_;
#line 298 "/home/jens/Source/shotwell/src/CollectionPage.vala"
			_tmp13_ = view;
#line 298 "/home/jens/Source/shotwell/src/CollectionPage.vala"
			_tmp14_ = data_view_is_selected (_tmp13_);
#line 298 "/home/jens/Source/shotwell/src/CollectionPage.vala"
			if (!_tmp14_) {
#line 298 "/home/jens/Source/shotwell/src/CollectionPage.vala"
				_tmp12_ = TRUE;
#line 3121 "CollectionPage.c"
			} else {
				GeeMap* _tmp15_ = NULL;
				DataView* _tmp16_ = NULL;
				gpointer _tmp17_ = NULL;
				Alteration* _tmp18_ = NULL;
				gboolean _tmp19_ = FALSE;
#line 298 "/home/jens/Source/shotwell/src/CollectionPage.vala"
				_tmp15_ = altered;
#line 298 "/home/jens/Source/shotwell/src/CollectionPage.vala"
				_tmp16_ = view;
#line 298 "/home/jens/Source/shotwell/src/CollectionPage.vala"
				_tmp17_ = gee_map_get (_tmp15_, G_TYPE_CHECK_INSTANCE_CAST (_tmp16_, TYPE_DATA_OBJECT, DataObject));
#line 298 "/home/jens/Source/shotwell/src/CollectionPage.vala"
				_tmp18_ = (Alteration*) _tmp17_;
#line 298 "/home/jens/Source/shotwell/src/CollectionPage.vala"
				_tmp19_ = alteration_has_subject (_tmp18_, "image");
#line 298 "/home/jens/Source/shotwell/src/CollectionPage.vala"
				_tmp12_ = !_tmp19_;
#line 298 "/home/jens/Source/shotwell/src/CollectionPage.vala"
				_alteration_unref0 (_tmp18_);
#line 3142 "CollectionPage.c"
			}
#line 298 "/home/jens/Source/shotwell/src/CollectionPage.vala"
			if (_tmp12_) {
#line 299 "/home/jens/Source/shotwell/src/CollectionPage.vala"
				_g_object_unref0 (view);
#line 299 "/home/jens/Source/shotwell/src/CollectionPage.vala"
				_g_object_unref0 (object);
#line 299 "/home/jens/Source/shotwell/src/CollectionPage.vala"
				continue;
#line 3152 "CollectionPage.c"
			}
#line 301 "/home/jens/Source/shotwell/src/CollectionPage.vala"
			_tmp20_ = view;
#line 301 "/home/jens/Source/shotwell/src/CollectionPage.vala"
			_tmp21_ = data_view_get_source (_tmp20_);
#line 301 "/home/jens/Source/shotwell/src/CollectionPage.vala"
			_tmp22_ = G_TYPE_CHECK_INSTANCE_TYPE (_tmp21_, TYPE_LIBRARY_PHOTO) ? ((LibraryPhoto*) _tmp21_) : NULL;
#line 301 "/home/jens/Source/shotwell/src/CollectionPage.vala"
			if (_tmp22_ == NULL) {
#line 301 "/home/jens/Source/shotwell/src/CollectionPage.vala"
				_g_object_unref0 (_tmp21_);
#line 3164 "CollectionPage.c"
			}
#line 301 "/home/jens/Source/shotwell/src/CollectionPage.vala"
			photo = _tmp22_;
#line 302 "/home/jens/Source/shotwell/src/CollectionPage.vala"
			_tmp23_ = photo;
#line 302 "/home/jens/Source/shotwell/src/CollectionPage.vala"
			if (_tmp23_ == NULL) {
#line 303 "/home/jens/Source/shotwell/src/CollectionPage.vala"
				_g_object_unref0 (photo);
#line 303 "/home/jens/Source/shotwell/src/CollectionPage.vala"
				_g_object_unref0 (view);
#line 303 "/home/jens/Source/shotwell/src/CollectionPage.vala"
				_g_object_unref0 (object);
#line 303 "/home/jens/Source/shotwell/src/CollectionPage.vala"
				continue;
#line 3180 "CollectionPage.c"
			}
#line 307 "/home/jens/Source/shotwell/src/CollectionPage.vala"
			_tmp24_ = collection_page_can_revert_selected (self);
#line 307 "/home/jens/Source/shotwell/src/CollectionPage.vala"
			page_set_action_sensitive (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_PAGE, Page), "Revert", _tmp24_);
#line 308 "/home/jens/Source/shotwell/src/CollectionPage.vala"
			_tmp25_ = photo;
#line 308 "/home/jens/Source/shotwell/src/CollectionPage.vala"
			_tmp26_ = photo_has_color_adjustments (G_TYPE_CHECK_INSTANCE_CAST (_tmp25_, TYPE_PHOTO, Photo));
#line 308 "/home/jens/Source/shotwell/src/CollectionPage.vala"
			page_set_action_sensitive (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_PAGE, Page), "CopyColorAdjustments", _tmp26_);
#line 310 "/home/jens/Source/shotwell/src/CollectionPage.vala"
			_g_object_unref0 (photo);
#line 310 "/home/jens/Source/shotwell/src/CollectionPage.vala"
			_g_object_unref0 (view);
#line 310 "/home/jens/Source/shotwell/src/CollectionPage.vala"
			_g_object_unref0 (object);
#line 310 "/home/jens/Source/shotwell/src/CollectionPage.vala"
			break;
#line 3200 "CollectionPage.c"
		}
#line 295 "/home/jens/Source/shotwell/src/CollectionPage.vala"
		_g_object_unref0 (_object_it);
#line 3204 "CollectionPage.c"
	}
}


static void collection_page_on_print (CollectionPage* self) {
	ViewCollection* _tmp0_ = NULL;
	ViewCollection* _tmp1_ = NULL;
	gint _tmp2_ = 0;
	gboolean _tmp3_ = FALSE;
#line 314 "/home/jens/Source/shotwell/src/CollectionPage.vala"
	g_return_if_fail (IS_COLLECTION_PAGE (self));
#line 315 "/home/jens/Source/shotwell/src/CollectionPage.vala"
	_tmp0_ = page_get_view (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_PAGE, Page));
#line 315 "/home/jens/Source/shotwell/src/CollectionPage.vala"
	_tmp1_ = _tmp0_;
#line 315 "/home/jens/Source/shotwell/src/CollectionPage.vala"
	_tmp2_ = view_collection_get_selected_count (_tmp1_);
#line 315 "/home/jens/Source/shotwell/src/CollectionPage.vala"
	_tmp3_ = _tmp2_ > 0;
#line 315 "/home/jens/Source/shotwell/src/CollectionPage.vala"
	_data_collection_unref0 (_tmp1_);
#line 315 "/home/jens/Source/shotwell/src/CollectionPage.vala"
	if (_tmp3_) {
#line 3228 "CollectionPage.c"
		PrintManager* _tmp4_ = NULL;
		PrintManager* _tmp5_ = NULL;
		ViewCollection* _tmp6_ = NULL;
		ViewCollection* _tmp7_ = NULL;
		GeeList* _tmp8_ = NULL;
		GeeCollection* _tmp9_ = NULL;
#line 316 "/home/jens/Source/shotwell/src/CollectionPage.vala"
		_tmp4_ = print_manager_get_instance ();
#line 316 "/home/jens/Source/shotwell/src/CollectionPage.vala"
		_tmp5_ = _tmp4_;
#line 316 "/home/jens/Source/shotwell/src/CollectionPage.vala"
		_tmp6_ = page_get_view (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_PAGE, Page));
#line 316 "/home/jens/Source/shotwell/src/CollectionPage.vala"
		_tmp7_ = _tmp6_;
#line 316 "/home/jens/Source/shotwell/src/CollectionPage.vala"
		_tmp8_ = view_collection_get_selected_sources_of_type (_tmp7_, TYPE_PHOTO);
#line 316 "/home/jens/Source/shotwell/src/CollectionPage.vala"
		_tmp9_ = G_TYPE_CHECK_INSTANCE_CAST (_tmp8_, GEE_TYPE_COLLECTION, GeeCollection);
#line 316 "/home/jens/Source/shotwell/src/CollectionPage.vala"
		print_manager_spool_photo (_tmp5_, _tmp9_);
#line 316 "/home/jens/Source/shotwell/src/CollectionPage.vala"
		_g_object_unref0 (_tmp9_);
#line 316 "/home/jens/Source/shotwell/src/CollectionPage.vala"
		_data_collection_unref0 (_tmp7_);
#line 316 "/home/jens/Source/shotwell/src/CollectionPage.vala"
		_print_manager_unref0 (_tmp5_);
#line 3255 "CollectionPage.c"
	}
}


static void collection_page_on_external_app_changed (CollectionPage* self) {
	gint selected_count = 0;
	ViewCollection* _tmp0_ = NULL;
	ViewCollection* _tmp1_ = NULL;
	gint _tmp2_ = 0;
	gint _tmp3_ = 0;
	gboolean _tmp4_ = FALSE;
	gint _tmp5_ = 0;
#line 321 "/home/jens/Source/shotwell/src/CollectionPage.vala"
	g_return_if_fail (IS_COLLECTION_PAGE (self));
#line 322 "/home/jens/Source/shotwell/src/CollectionPage.vala"
	_tmp0_ = page_get_view (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_PAGE, Page));
#line 322 "/home/jens/Source/shotwell/src/CollectionPage.vala"
	_tmp1_ = _tmp0_;
#line 322 "/home/jens/Source/shotwell/src/CollectionPage.vala"
	_tmp2_ = view_collection_get_selected_count (_tmp1_);
#line 322 "/home/jens/Source/shotwell/src/CollectionPage.vala"
	_tmp3_ = _tmp2_;
#line 322 "/home/jens/Source/shotwell/src/CollectionPage.vala"
	_data_collection_unref0 (_tmp1_);
#line 322 "/home/jens/Source/shotwell/src/CollectionPage.vala"
	selected_count = _tmp3_;
#line 324 "/home/jens/Source/shotwell/src/CollectionPage.vala"
	_tmp5_ = selected_count;
#line 324 "/home/jens/Source/shotwell/src/CollectionPage.vala"
	if (_tmp5_ == 1) {
#line 3286 "CollectionPage.c"
		ConfigFacade* _tmp6_ = NULL;
		ConfigFacade* _tmp7_ = NULL;
		gchar* _tmp8_ = NULL;
		gchar* _tmp9_ = NULL;
#line 324 "/home/jens/Source/shotwell/src/CollectionPage.vala"
		_tmp6_ = config_facade_get_instance ();
#line 324 "/home/jens/Source/shotwell/src/CollectionPage.vala"
		_tmp7_ = _tmp6_;
#line 324 "/home/jens/Source/shotwell/src/CollectionPage.vala"
		_tmp8_ = configuration_facade_get_external_photo_app (G_TYPE_CHECK_INSTANCE_CAST (_tmp7_, TYPE_CONFIGURATION_FACADE, ConfigurationFacade));
#line 324 "/home/jens/Source/shotwell/src/CollectionPage.vala"
		_tmp9_ = _tmp8_;
#line 324 "/home/jens/Source/shotwell/src/CollectionPage.vala"
		_tmp4_ = g_strcmp0 (_tmp9_, "") != 0;
#line 324 "/home/jens/Source/shotwell/src/CollectionPage.vala"
		_g_free0 (_tmp9_);
#line 324 "/home/jens/Source/shotwell/src/CollectionPage.vala"
		_g_object_unref0 (_tmp7_);
#line 3305 "CollectionPage.c"
	} else {
#line 324 "/home/jens/Source/shotwell/src/CollectionPage.vala"
		_tmp4_ = FALSE;
#line 3309 "CollectionPage.c"
	}
#line 324 "/home/jens/Source/shotwell/src/CollectionPage.vala"
	page_set_action_sensitive (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_PAGE, Page), "ExternalEdit", _tmp4_);
#line 3313 "CollectionPage.c"
}


static void collection_page_real_on_item_activated (CheckerboardPage* base, CheckerboardItem* item, CheckerboardPageActivator activator, CheckerboardPageKeyboardModifiers* modifiers) {
	CollectionPage * self;
	Thumbnail* thumbnail = NULL;
	CheckerboardItem* _tmp0_ = NULL;
	Thumbnail* _tmp1_ = NULL;
	Thumbnail* _tmp2_ = NULL;
	MediaSource* _tmp3_ = NULL;
	MediaSource* _tmp4_ = NULL;
	gboolean _tmp5_ = FALSE;
	LibraryPhoto* photo = NULL;
	Thumbnail* _tmp6_ = NULL;
	MediaSource* _tmp7_ = NULL;
	LibraryPhoto* _tmp8_ = NULL;
	LibraryPhoto* _tmp9_ = NULL;
	LibraryPhoto* _tmp10_ = NULL;
	gchar* _tmp11_ = NULL;
	gchar* _tmp12_ = NULL;
	CheckerboardPageActivator _tmp13_ = 0;
#line 333 "/home/jens/Source/shotwell/src/CollectionPage.vala"
	self = G_TYPE_CHECK_INSTANCE_CAST (base, TYPE_COLLECTION_PAGE, CollectionPage);
#line 333 "/home/jens/Source/shotwell/src/CollectionPage.vala"
	g_return_if_fail (IS_CHECKERBOARD_ITEM (item));
#line 333 "/home/jens/Source/shotwell/src/CollectionPage.vala"
	g_return_if_fail (modifiers != NULL);
#line 335 "/home/jens/Source/shotwell/src/CollectionPage.vala"
	_tmp0_ = item;
#line 335 "/home/jens/Source/shotwell/src/CollectionPage.vala"
	_tmp1_ = _g_object_ref0 (G_TYPE_CHECK_INSTANCE_CAST (_tmp0_, TYPE_THUMBNAIL, Thumbnail));
#line 335 "/home/jens/Source/shotwell/src/CollectionPage.vala"
	thumbnail = _tmp1_;
#line 340 "/home/jens/Source/shotwell/src/CollectionPage.vala"
	_tmp2_ = thumbnail;
#line 340 "/home/jens/Source/shotwell/src/CollectionPage.vala"
	_tmp3_ = thumbnail_get_media_source (_tmp2_);
#line 340 "/home/jens/Source/shotwell/src/CollectionPage.vala"
	_tmp4_ = _tmp3_;
#line 340 "/home/jens/Source/shotwell/src/CollectionPage.vala"
	_tmp5_ = G_TYPE_CHECK_INSTANCE_TYPE (_tmp4_, TYPE_VIDEO);
#line 340 "/home/jens/Source/shotwell/src/CollectionPage.vala"
	_g_object_unref0 (_tmp4_);
#line 340 "/home/jens/Source/shotwell/src/CollectionPage.vala"
	if (_tmp5_) {
#line 341 "/home/jens/Source/shotwell/src/CollectionPage.vala"
		media_page_on_play_video (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_MEDIA_PAGE, MediaPage));
#line 342 "/home/jens/Source/shotwell/src/CollectionPage.vala"
		_g_object_unref0 (thumbnail);
#line 342 "/home/jens/Source/shotwell/src/CollectionPage.vala"
		return;
#line 3365 "CollectionPage.c"
	}
#line 345 "/home/jens/Source/shotwell/src/CollectionPage.vala"
	_tmp6_ = thumbnail;
#line 345 "/home/jens/Source/shotwell/src/CollectionPage.vala"
	_tmp7_ = thumbnail_get_media_source (_tmp6_);
#line 345 "/home/jens/Source/shotwell/src/CollectionPage.vala"
	_tmp8_ = G_TYPE_CHECK_INSTANCE_TYPE (_tmp7_, TYPE_LIBRARY_PHOTO) ? ((LibraryPhoto*) _tmp7_) : NULL;
#line 345 "/home/jens/Source/shotwell/src/CollectionPage.vala"
	if (_tmp8_ == NULL) {
#line 345 "/home/jens/Source/shotwell/src/CollectionPage.vala"
		_g_object_unref0 (_tmp7_);
#line 3377 "CollectionPage.c"
	}
#line 345 "/home/jens/Source/shotwell/src/CollectionPage.vala"
	photo = _tmp8_;
#line 346 "/home/jens/Source/shotwell/src/CollectionPage.vala"
	_tmp9_ = photo;
#line 346 "/home/jens/Source/shotwell/src/CollectionPage.vala"
	if (_tmp9_ == NULL) {
#line 347 "/home/jens/Source/shotwell/src/CollectionPage.vala"
		_g_object_unref0 (photo);
#line 347 "/home/jens/Source/shotwell/src/CollectionPage.vala"
		_g_object_unref0 (thumbnail);
#line 347 "/home/jens/Source/shotwell/src/CollectionPage.vala"
		return;
#line 3391 "CollectionPage.c"
	}
#line 350 "/home/jens/Source/shotwell/src/CollectionPage.vala"
	_tmp10_ = photo;
#line 350 "/home/jens/Source/shotwell/src/CollectionPage.vala"
	_tmp11_ = data_object_to_string (G_TYPE_CHECK_INSTANCE_CAST (_tmp10_, TYPE_DATA_OBJECT, DataObject));
#line 350 "/home/jens/Source/shotwell/src/CollectionPage.vala"
	_tmp12_ = _tmp11_;
#line 350 "/home/jens/Source/shotwell/src/CollectionPage.vala"
	g_debug ("CollectionPage.vala:350: activating %s", _tmp12_);
#line 350 "/home/jens/Source/shotwell/src/CollectionPage.vala"
	_g_free0 (_tmp12_);
#line 352 "/home/jens/Source/shotwell/src/CollectionPage.vala"
	_tmp13_ = activator;
#line 352 "/home/jens/Source/shotwell/src/CollectionPage.vala"
	if (_tmp13_ == CHECKERBOARD_PAGE_ACTIVATOR_MOUSE) {
#line 3407 "CollectionPage.c"
		CheckerboardPageKeyboardModifiers _tmp14_ = {0};
		gboolean _tmp15_ = FALSE;
#line 353 "/home/jens/Source/shotwell/src/CollectionPage.vala"
		_tmp14_ = *modifiers;
#line 353 "/home/jens/Source/shotwell/src/CollectionPage.vala"
		_tmp15_ = _tmp14_.super_pressed;
#line 353 "/home/jens/Source/shotwell/src/CollectionPage.vala"
		if (_tmp15_) {
#line 354 "/home/jens/Source/shotwell/src/CollectionPage.vala"
			collection_page_on_external_edit (self);
#line 3418 "CollectionPage.c"
		} else {
			LibraryWindow* _tmp16_ = NULL;
			LibraryWindow* _tmp17_ = NULL;
			LibraryPhoto* _tmp18_ = NULL;
#line 356 "/home/jens/Source/shotwell/src/CollectionPage.vala"
			_tmp16_ = library_window_get_app ();
#line 356 "/home/jens/Source/shotwell/src/CollectionPage.vala"
			_tmp17_ = _tmp16_;
#line 356 "/home/jens/Source/shotwell/src/CollectionPage.vala"
			_tmp18_ = photo;
#line 356 "/home/jens/Source/shotwell/src/CollectionPage.vala"
			library_window_switch_to_photo_page (_tmp17_, self, G_TYPE_CHECK_INSTANCE_CAST (_tmp18_, TYPE_PHOTO, Photo));
#line 356 "/home/jens/Source/shotwell/src/CollectionPage.vala"
			_g_object_unref0 (_tmp17_);
#line 3433 "CollectionPage.c"
		}
	} else {
		CheckerboardPageActivator _tmp19_ = 0;
#line 357 "/home/jens/Source/shotwell/src/CollectionPage.vala"
		_tmp19_ = activator;
#line 357 "/home/jens/Source/shotwell/src/CollectionPage.vala"
		if (_tmp19_ == CHECKERBOARD_PAGE_ACTIVATOR_KEYBOARD) {
#line 3441 "CollectionPage.c"
			gboolean _tmp20_ = FALSE;
			CheckerboardPageKeyboardModifiers _tmp21_ = {0};
			gboolean _tmp22_ = FALSE;
#line 358 "/home/jens/Source/shotwell/src/CollectionPage.vala"
			_tmp21_ = *modifiers;
#line 358 "/home/jens/Source/shotwell/src/CollectionPage.vala"
			_tmp22_ = _tmp21_.shift_pressed;
#line 358 "/home/jens/Source/shotwell/src/CollectionPage.vala"
			if (!_tmp22_) {
#line 3451 "CollectionPage.c"
				CheckerboardPageKeyboardModifiers _tmp23_ = {0};
				gboolean _tmp24_ = FALSE;
#line 358 "/home/jens/Source/shotwell/src/CollectionPage.vala"
				_tmp23_ = *modifiers;
#line 358 "/home/jens/Source/shotwell/src/CollectionPage.vala"
				_tmp24_ = _tmp23_.ctrl_pressed;
#line 358 "/home/jens/Source/shotwell/src/CollectionPage.vala"
				_tmp20_ = !_tmp24_;
#line 3460 "CollectionPage.c"
			} else {
#line 358 "/home/jens/Source/shotwell/src/CollectionPage.vala"
				_tmp20_ = FALSE;
#line 3464 "CollectionPage.c"
			}
#line 358 "/home/jens/Source/shotwell/src/CollectionPage.vala"
			if (_tmp20_) {
#line 3468 "CollectionPage.c"
				LibraryWindow* _tmp25_ = NULL;
				LibraryWindow* _tmp26_ = NULL;
				LibraryPhoto* _tmp27_ = NULL;
#line 359 "/home/jens/Source/shotwell/src/CollectionPage.vala"
				_tmp25_ = library_window_get_app ();
#line 359 "/home/jens/Source/shotwell/src/CollectionPage.vala"
				_tmp26_ = _tmp25_;
#line 359 "/home/jens/Source/shotwell/src/CollectionPage.vala"
				_tmp27_ = photo;
#line 359 "/home/jens/Source/shotwell/src/CollectionPage.vala"
				library_window_switch_to_photo_page (_tmp26_, self, G_TYPE_CHECK_INSTANCE_CAST (_tmp27_, TYPE_PHOTO, Photo));
#line 359 "/home/jens/Source/shotwell/src/CollectionPage.vala"
				_g_object_unref0 (_tmp26_);
#line 3482 "CollectionPage.c"
			}
		}
	}
#line 333 "/home/jens/Source/shotwell/src/CollectionPage.vala"
	_g_object_unref0 (photo);
#line 333 "/home/jens/Source/shotwell/src/CollectionPage.vala"
	_g_object_unref0 (thumbnail);
#line 3490 "CollectionPage.c"
}


static gboolean collection_page_real_on_app_key_pressed (Page* base, GdkEventKey* event) {
	CollectionPage * self;
	gboolean result = FALSE;
	gboolean handled = FALSE;
	GdkEventKey* _tmp0_ = NULL;
	guint _tmp1_ = 0U;
	const gchar* _tmp2_ = NULL;
	const gchar* _tmp3_ = NULL;
	GQuark _tmp5_ = 0U;
#line 365 "/home/jens/Source/shotwell/src/CollectionPage.vala"
	static GQuark _tmp4_label0 = 0;
#line 365 "/home/jens/Source/shotwell/src/CollectionPage.vala"
	static GQuark _tmp4_label1 = 0;
#line 365 "/home/jens/Source/shotwell/src/CollectionPage.vala"
	static GQuark _tmp4_label2 = 0;
#line 365 "/home/jens/Source/shotwell/src/CollectionPage.vala"
	static GQuark _tmp4_label3 = 0;
#line 365 "/home/jens/Source/shotwell/src/CollectionPage.vala"
	static GQuark _tmp4_label4 = 0;
#line 365 "/home/jens/Source/shotwell/src/CollectionPage.vala"
	static GQuark _tmp4_label5 = 0;
#line 365 "/home/jens/Source/shotwell/src/CollectionPage.vala"
	static GQuark _tmp4_label6 = 0;
#line 365 "/home/jens/Source/shotwell/src/CollectionPage.vala"
	static GQuark _tmp4_label7 = 0;
#line 365 "/home/jens/Source/shotwell/src/CollectionPage.vala"
	static GQuark _tmp4_label8 = 0;
#line 365 "/home/jens/Source/shotwell/src/CollectionPage.vala"
	static GQuark _tmp4_label9 = 0;
#line 3523 "CollectionPage.c"
	gboolean _tmp8_ = FALSE;
	gboolean _tmp9_ = FALSE;
#line 363 "/home/jens/Source/shotwell/src/CollectionPage.vala"
	self = G_TYPE_CHECK_INSTANCE_CAST (base, TYPE_COLLECTION_PAGE, CollectionPage);
#line 363 "/home/jens/Source/shotwell/src/CollectionPage.vala"
	g_return_val_if_fail (event != NULL, FALSE);
#line 364 "/home/jens/Source/shotwell/src/CollectionPage.vala"
	handled = TRUE;
#line 365 "/home/jens/Source/shotwell/src/CollectionPage.vala"
	_tmp0_ = event;
#line 365 "/home/jens/Source/shotwell/src/CollectionPage.vala"
	_tmp1_ = _tmp0_->keyval;
#line 365 "/home/jens/Source/shotwell/src/CollectionPage.vala"
	_tmp2_ = gdk_keyval_name (_tmp1_);
#line 365 "/home/jens/Source/shotwell/src/CollectionPage.vala"
	_tmp3_ = _tmp2_;
#line 365 "/home/jens/Source/shotwell/src/CollectionPage.vala"
	_tmp5_ = (NULL == _tmp3_) ? 0 : g_quark_from_string (_tmp3_);
#line 365 "/home/jens/Source/shotwell/src/CollectionPage.vala"
	if ((((((((_tmp5_ == ((0 != _tmp4_label0) ? _tmp4_label0 : (_tmp4_label0 = g_quark_from_static_string ("Page_Up")))) || (_tmp5_ == ((0 != _tmp4_label1) ? _tmp4_label1 : (_tmp4_label1 = g_quark_from_static_string ("KP_Page_Up"))))) || (_tmp5_ == ((0 != _tmp4_label2) ? _tmp4_label2 : (_tmp4_label2 = g_quark_from_static_string ("Page_Down"))))) || (_tmp5_ == ((0 != _tmp4_label3) ? _tmp4_label3 : (_tmp4_label3 = g_quark_from_static_string ("KP_Page_Down"))))) || (_tmp5_ == ((0 != _tmp4_label4) ? _tmp4_label4 : (_tmp4_label4 = g_quark_from_static_string ("Home"))))) || (_tmp5_ == ((0 != _tmp4_label5) ? _tmp4_label5 : (_tmp4_label5 = g_quark_from_static_string ("KP_Home"))))) || (_tmp5_ == ((0 != _tmp4_label6) ? _tmp4_label6 : (_tmp4_label6 = g_quark_from_static_string ("End"))))) || (_tmp5_ == ((0 != _tmp4_label7) ? _tmp4_label7 : (_tmp4_label7 = g_quark_from_static_string ("KP_End"))))) {
#line 365 "/home/jens/Source/shotwell/src/CollectionPage.vala"
		switch (0) {
#line 3546 "CollectionPage.c"
			default:
			{
				GdkEventKey* _tmp6_ = NULL;
				gboolean _tmp7_ = FALSE;
#line 374 "/home/jens/Source/shotwell/src/CollectionPage.vala"
				_tmp6_ = event;
#line 374 "/home/jens/Source/shotwell/src/CollectionPage.vala"
				g_signal_emit_by_name (G_TYPE_CHECK_INSTANCE_CAST (self, gtk_widget_get_type (), GtkWidget), "key-press-event", _tmp6_, &_tmp7_);
#line 375 "/home/jens/Source/shotwell/src/CollectionPage.vala"
				break;
#line 3557 "CollectionPage.c"
			}
		}
	} else if (_tmp5_ == ((0 != _tmp4_label8) ? _tmp4_label8 : (_tmp4_label8 = g_quark_from_static_string ("bracketright")))) {
#line 365 "/home/jens/Source/shotwell/src/CollectionPage.vala"
		switch (0) {
#line 3563 "CollectionPage.c"
			default:
			{
#line 378 "/home/jens/Source/shotwell/src/CollectionPage.vala"
				page_activate_action (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_PAGE, Page), "RotateClockwise");
#line 379 "/home/jens/Source/shotwell/src/CollectionPage.vala"
				break;
#line 3570 "CollectionPage.c"
			}
		}
	} else if (_tmp5_ == ((0 != _tmp4_label9) ? _tmp4_label9 : (_tmp4_label9 = g_quark_from_static_string ("bracketleft")))) {
#line 365 "/home/jens/Source/shotwell/src/CollectionPage.vala"
		switch (0) {
#line 3576 "CollectionPage.c"
			default:
			{
#line 382 "/home/jens/Source/shotwell/src/CollectionPage.vala"
				page_activate_action (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_PAGE, Page), "RotateCounterclockwise");
#line 383 "/home/jens/Source/shotwell/src/CollectionPage.vala"
				break;
#line 3583 "CollectionPage.c"
			}
		}
	} else {
#line 365 "/home/jens/Source/shotwell/src/CollectionPage.vala"
		switch (0) {
#line 3589 "CollectionPage.c"
			default:
			{
#line 386 "/home/jens/Source/shotwell/src/CollectionPage.vala"
				handled = FALSE;
#line 387 "/home/jens/Source/shotwell/src/CollectionPage.vala"
				break;
#line 3596 "CollectionPage.c"
			}
		}
	}
#line 390 "/home/jens/Source/shotwell/src/CollectionPage.vala"
	_tmp9_ = handled;
#line 390 "/home/jens/Source/shotwell/src/CollectionPage.vala"
	if (_tmp9_) {
#line 390 "/home/jens/Source/shotwell/src/CollectionPage.vala"
		_tmp8_ = TRUE;
#line 3606 "CollectionPage.c"
	} else {
		GdkEventKey* _tmp10_ = NULL;
		gboolean _tmp11_ = FALSE;
#line 390 "/home/jens/Source/shotwell/src/CollectionPage.vala"
		_tmp10_ = event;
#line 390 "/home/jens/Source/shotwell/src/CollectionPage.vala"
		_tmp11_ = PAGE_CLASS (collection_page_parent_class)->on_app_key_pressed (G_TYPE_CHECK_INSTANCE_CAST (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_MEDIA_PAGE, MediaPage), TYPE_PAGE, Page), _tmp10_);
#line 390 "/home/jens/Source/shotwell/src/CollectionPage.vala"
		_tmp8_ = _tmp11_;
#line 3616 "CollectionPage.c"
	}
#line 390 "/home/jens/Source/shotwell/src/CollectionPage.vala"
	result = _tmp8_;
#line 390 "/home/jens/Source/shotwell/src/CollectionPage.vala"
	return result;
#line 3622 "CollectionPage.c"
}


static void _collection_page_on_export_completed_exporter_completion_callback (Exporter* exporter, gboolean is_cancelled, gpointer self) {
#line 409 "/home/jens/Source/shotwell/src/CollectionPage.vala"
	collection_page_on_export_completed ((CollectionPage*) self);
#line 3629 "CollectionPage.c"
}


static void collection_page_real_on_export (MediaPage* base) {
	CollectionPage * self;
	ExporterUI* _tmp0_ = NULL;
	GeeCollection* export_list = NULL;
	ViewCollection* _tmp1_ = NULL;
	ViewCollection* _tmp2_ = NULL;
	GeeList* _tmp3_ = NULL;
	GeeCollection* _tmp4_ = NULL;
	GeeCollection* _tmp5_ = NULL;
	gint _tmp6_ = 0;
	gint _tmp7_ = 0;
	gboolean has_some_photos = FALSE;
	gboolean _tmp8_ = FALSE;
	gboolean has_some_videos = FALSE;
	gboolean _tmp9_ = FALSE;
	gboolean _tmp10_ = FALSE;
	gboolean _tmp11_ = FALSE;
	gboolean _tmp13_ = FALSE;
	gchar* title = NULL;
	gboolean _tmp16_ = FALSE;
	ExportDialog* export_dialog = NULL;
	const gchar* _tmp31_ = NULL;
	ExportDialog* _tmp32_ = NULL;
	ExportFormatParameters _tmp33_ = {0};
	gboolean _tmp34_ = FALSE;
	ExportFormatParameters export_params = {0};
	gint scale = 0;
	ScaleConstraint constraint = 0;
	ExportDialog* _tmp37_ = NULL;
	gint _tmp38_ = 0;
	ScaleConstraint _tmp39_ = 0;
	gboolean _tmp40_ = FALSE;
	Scaling scaling = {0};
	ScaleConstraint _tmp41_ = 0;
	gint _tmp42_ = 0;
	Scaling _tmp43_ = {0};
	GeeCollection* _tmp44_ = NULL;
	gint _tmp45_ = 0;
	gint _tmp46_ = 0;
	GFile* export_dir = NULL;
	const gchar* _tmp81_ = NULL;
	GFile* _tmp82_ = NULL;
	GFile* _tmp83_ = NULL;
	GeeCollection* _tmp84_ = NULL;
	GFile* _tmp85_ = NULL;
	Scaling _tmp86_ = {0};
	ExportFormatParameters _tmp87_ = {0};
	Exporter* _tmp88_ = NULL;
	Exporter* _tmp89_ = NULL;
	ExporterUI* _tmp90_ = NULL;
	ExporterUI* _tmp91_ = NULL;
	GError * _inner_error_ = NULL;
#line 393 "/home/jens/Source/shotwell/src/CollectionPage.vala"
	self = G_TYPE_CHECK_INSTANCE_CAST (base, TYPE_COLLECTION_PAGE, CollectionPage);
#line 394 "/home/jens/Source/shotwell/src/CollectionPage.vala"
	_tmp0_ = self->priv->exporter;
#line 394 "/home/jens/Source/shotwell/src/CollectionPage.vala"
	if (_tmp0_ != NULL) {
#line 395 "/home/jens/Source/shotwell/src/CollectionPage.vala"
		return;
#line 3693 "CollectionPage.c"
	}
#line 397 "/home/jens/Source/shotwell/src/CollectionPage.vala"
	_tmp1_ = page_get_view (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_PAGE, Page));
#line 397 "/home/jens/Source/shotwell/src/CollectionPage.vala"
	_tmp2_ = _tmp1_;
#line 397 "/home/jens/Source/shotwell/src/CollectionPage.vala"
	_tmp3_ = view_collection_get_selected_sources (_tmp2_);
#line 397 "/home/jens/Source/shotwell/src/CollectionPage.vala"
	_tmp4_ = G_TYPE_CHECK_INSTANCE_CAST (_tmp3_, GEE_TYPE_COLLECTION, GeeCollection);
#line 397 "/home/jens/Source/shotwell/src/CollectionPage.vala"
	_data_collection_unref0 (_tmp2_);
#line 397 "/home/jens/Source/shotwell/src/CollectionPage.vala"
	export_list = _tmp4_;
#line 399 "/home/jens/Source/shotwell/src/CollectionPage.vala"
	_tmp5_ = export_list;
#line 399 "/home/jens/Source/shotwell/src/CollectionPage.vala"
	_tmp6_ = gee_collection_get_size (_tmp5_);
#line 399 "/home/jens/Source/shotwell/src/CollectionPage.vala"
	_tmp7_ = _tmp6_;
#line 399 "/home/jens/Source/shotwell/src/CollectionPage.vala"
	if (_tmp7_ == 0) {
#line 400 "/home/jens/Source/shotwell/src/CollectionPage.vala"
		_g_object_unref0 (export_list);
#line 400 "/home/jens/Source/shotwell/src/CollectionPage.vala"
		return;
#line 3719 "CollectionPage.c"
	}
#line 402 "/home/jens/Source/shotwell/src/CollectionPage.vala"
	_tmp8_ = collection_page_selection_has_photo (self);
#line 402 "/home/jens/Source/shotwell/src/CollectionPage.vala"
	has_some_photos = _tmp8_;
#line 403 "/home/jens/Source/shotwell/src/CollectionPage.vala"
	_tmp9_ = collection_page_selection_has_video (self);
#line 403 "/home/jens/Source/shotwell/src/CollectionPage.vala"
	has_some_videos = _tmp9_;
#line 404 "/home/jens/Source/shotwell/src/CollectionPage.vala"
	_tmp11_ = has_some_photos;
#line 404 "/home/jens/Source/shotwell/src/CollectionPage.vala"
	if (_tmp11_) {
#line 404 "/home/jens/Source/shotwell/src/CollectionPage.vala"
		_tmp10_ = TRUE;
#line 3735 "CollectionPage.c"
	} else {
		gboolean _tmp12_ = FALSE;
#line 404 "/home/jens/Source/shotwell/src/CollectionPage.vala"
		_tmp12_ = has_some_videos;
#line 404 "/home/jens/Source/shotwell/src/CollectionPage.vala"
		_tmp10_ = _tmp12_;
#line 3742 "CollectionPage.c"
	}
#line 404 "/home/jens/Source/shotwell/src/CollectionPage.vala"
	_vala_assert (_tmp10_, "has_some_photos || has_some_videos");
#line 408 "/home/jens/Source/shotwell/src/CollectionPage.vala"
	_tmp13_ = has_some_photos;
#line 408 "/home/jens/Source/shotwell/src/CollectionPage.vala"
	if (!_tmp13_) {
#line 3750 "CollectionPage.c"
		GeeCollection* _tmp14_ = NULL;
		ExporterUI* _tmp15_ = NULL;
#line 409 "/home/jens/Source/shotwell/src/CollectionPage.vala"
		_tmp14_ = export_list;
#line 409 "/home/jens/Source/shotwell/src/CollectionPage.vala"
		_tmp15_ = video_export_many (G_TYPE_CHECK_INSTANCE_CAST (_tmp14_, GEE_TYPE_COLLECTION, GeeCollection), _collection_page_on_export_completed_exporter_completion_callback, self, FALSE);
#line 409 "/home/jens/Source/shotwell/src/CollectionPage.vala"
		_exporter_ui_unref0 (self->priv->exporter);
#line 409 "/home/jens/Source/shotwell/src/CollectionPage.vala"
		self->priv->exporter = _tmp15_;
#line 410 "/home/jens/Source/shotwell/src/CollectionPage.vala"
		_g_object_unref0 (export_list);
#line 410 "/home/jens/Source/shotwell/src/CollectionPage.vala"
		return;
#line 3765 "CollectionPage.c"
	}
#line 413 "/home/jens/Source/shotwell/src/CollectionPage.vala"
	title = NULL;
#line 414 "/home/jens/Source/shotwell/src/CollectionPage.vala"
	_tmp16_ = has_some_videos;
#line 414 "/home/jens/Source/shotwell/src/CollectionPage.vala"
	if (_tmp16_) {
#line 3773 "CollectionPage.c"
		const gchar* _tmp17_ = NULL;
		GeeCollection* _tmp18_ = NULL;
		gint _tmp19_ = 0;
		gint _tmp20_ = 0;
		gchar* _tmp23_ = NULL;
#line 415 "/home/jens/Source/shotwell/src/CollectionPage.vala"
		_tmp18_ = export_list;
#line 415 "/home/jens/Source/shotwell/src/CollectionPage.vala"
		_tmp19_ = gee_collection_get_size (_tmp18_);
#line 415 "/home/jens/Source/shotwell/src/CollectionPage.vala"
		_tmp20_ = _tmp19_;
#line 415 "/home/jens/Source/shotwell/src/CollectionPage.vala"
		if (_tmp20_ == 1) {
#line 3787 "CollectionPage.c"
			const gchar* _tmp21_ = NULL;
#line 415 "/home/jens/Source/shotwell/src/CollectionPage.vala"
			_tmp21_ = _ ("Export Photo/Video");
#line 415 "/home/jens/Source/shotwell/src/CollectionPage.vala"
			_tmp17_ = _tmp21_;
#line 3793 "CollectionPage.c"
		} else {
			const gchar* _tmp22_ = NULL;
#line 415 "/home/jens/Source/shotwell/src/CollectionPage.vala"
			_tmp22_ = _ ("Export Photos/Videos");
#line 415 "/home/jens/Source/shotwell/src/CollectionPage.vala"
			_tmp17_ = _tmp22_;
#line 3800 "CollectionPage.c"
		}
#line 415 "/home/jens/Source/shotwell/src/CollectionPage.vala"
		_tmp23_ = g_strdup (_tmp17_);
#line 415 "/home/jens/Source/shotwell/src/CollectionPage.vala"
		_g_free0 (title);
#line 415 "/home/jens/Source/shotwell/src/CollectionPage.vala"
		title = _tmp23_;
#line 3808 "CollectionPage.c"
	} else {
		const gchar* _tmp24_ = NULL;
		GeeCollection* _tmp25_ = NULL;
		gint _tmp26_ = 0;
		gint _tmp27_ = 0;
		gchar* _tmp30_ = NULL;
#line 417 "/home/jens/Source/shotwell/src/CollectionPage.vala"
		_tmp25_ = export_list;
#line 417 "/home/jens/Source/shotwell/src/CollectionPage.vala"
		_tmp26_ = gee_collection_get_size (_tmp25_);
#line 417 "/home/jens/Source/shotwell/src/CollectionPage.vala"
		_tmp27_ = _tmp26_;
#line 417 "/home/jens/Source/shotwell/src/CollectionPage.vala"
		if (_tmp27_ == 1) {
#line 3823 "CollectionPage.c"
			const gchar* _tmp28_ = NULL;
#line 417 "/home/jens/Source/shotwell/src/CollectionPage.vala"
			_tmp28_ = _ ("Export Photo");
#line 417 "/home/jens/Source/shotwell/src/CollectionPage.vala"
			_tmp24_ = _tmp28_;
#line 3829 "CollectionPage.c"
		} else {
			const gchar* _tmp29_ = NULL;
#line 417 "/home/jens/Source/shotwell/src/CollectionPage.vala"
			_tmp29_ = _ ("Export Photos");
#line 417 "/home/jens/Source/shotwell/src/CollectionPage.vala"
			_tmp24_ = _tmp29_;
#line 3836 "CollectionPage.c"
		}
#line 417 "/home/jens/Source/shotwell/src/CollectionPage.vala"
		_tmp30_ = g_strdup (_tmp24_);
#line 417 "/home/jens/Source/shotwell/src/CollectionPage.vala"
		_g_free0 (title);
#line 417 "/home/jens/Source/shotwell/src/CollectionPage.vala"
		title = _tmp30_;
#line 3844 "CollectionPage.c"
	}
#line 418 "/home/jens/Source/shotwell/src/CollectionPage.vala"
	_tmp31_ = title;
#line 418 "/home/jens/Source/shotwell/src/CollectionPage.vala"
	_tmp32_ = export_dialog_new (_tmp31_);
#line 418 "/home/jens/Source/shotwell/src/CollectionPage.vala"
	g_object_ref_sink (_tmp32_);
#line 418 "/home/jens/Source/shotwell/src/CollectionPage.vala"
	export_dialog = _tmp32_;
#line 428 "/home/jens/Source/shotwell/src/CollectionPage.vala"
	_tmp34_ = has_some_videos;
#line 428 "/home/jens/Source/shotwell/src/CollectionPage.vala"
	if (_tmp34_) {
#line 3858 "CollectionPage.c"
		ExportFormatParameters _tmp35_ = {0};
#line 428 "/home/jens/Source/shotwell/src/CollectionPage.vala"
		export_format_parameters_current (&_tmp35_);
#line 428 "/home/jens/Source/shotwell/src/CollectionPage.vala"
		_tmp33_ = _tmp35_;
#line 3864 "CollectionPage.c"
	} else {
		ExportFormatParameters _tmp36_ = {0};
#line 429 "/home/jens/Source/shotwell/src/CollectionPage.vala"
		export_format_parameters_last (&_tmp36_);
#line 429 "/home/jens/Source/shotwell/src/CollectionPage.vala"
		_tmp33_ = _tmp36_;
#line 3871 "CollectionPage.c"
	}
#line 428 "/home/jens/Source/shotwell/src/CollectionPage.vala"
	export_params = _tmp33_;
#line 433 "/home/jens/Source/shotwell/src/CollectionPage.vala"
	_tmp37_ = export_dialog;
#line 433 "/home/jens/Source/shotwell/src/CollectionPage.vala"
	_tmp40_ = export_dialog_execute (_tmp37_, &_tmp38_, &_tmp39_, &export_params);
#line 433 "/home/jens/Source/shotwell/src/CollectionPage.vala"
	scale = _tmp38_;
#line 433 "/home/jens/Source/shotwell/src/CollectionPage.vala"
	constraint = _tmp39_;
#line 433 "/home/jens/Source/shotwell/src/CollectionPage.vala"
	if (!_tmp40_) {
#line 434 "/home/jens/Source/shotwell/src/CollectionPage.vala"
		_g_object_unref0 (export_dialog);
#line 434 "/home/jens/Source/shotwell/src/CollectionPage.vala"
		_g_free0 (title);
#line 434 "/home/jens/Source/shotwell/src/CollectionPage.vala"
		_g_object_unref0 (export_list);
#line 434 "/home/jens/Source/shotwell/src/CollectionPage.vala"
		return;
#line 3893 "CollectionPage.c"
	}
#line 436 "/home/jens/Source/shotwell/src/CollectionPage.vala"
	_tmp41_ = constraint;
#line 436 "/home/jens/Source/shotwell/src/CollectionPage.vala"
	_tmp42_ = scale;
#line 436 "/home/jens/Source/shotwell/src/CollectionPage.vala"
	scaling_for_constraint (_tmp41_, _tmp42_, FALSE, &_tmp43_);
#line 436 "/home/jens/Source/shotwell/src/CollectionPage.vala"
	scaling = _tmp43_;
#line 439 "/home/jens/Source/shotwell/src/CollectionPage.vala"
	_tmp44_ = export_list;
#line 439 "/home/jens/Source/shotwell/src/CollectionPage.vala"
	_tmp45_ = gee_collection_get_size (_tmp44_);
#line 439 "/home/jens/Source/shotwell/src/CollectionPage.vala"
	_tmp46_ = _tmp45_;
#line 439 "/home/jens/Source/shotwell/src/CollectionPage.vala"
	if (_tmp46_ == 1) {
#line 3911 "CollectionPage.c"
		LibraryPhoto* photo = NULL;
		GFile* save_as = NULL;
		LibraryPhoto* _tmp55_ = NULL;
		ExportFormatParameters _tmp56_ = {0};
		gchar* _tmp57_ = NULL;
		gchar* _tmp58_ = NULL;
		GFile* _tmp59_ = NULL;
		GFile* _tmp60_ = NULL;
		GFile* _tmp61_ = NULL;
#line 440 "/home/jens/Source/shotwell/src/CollectionPage.vala"
		photo = NULL;
#line 3923 "CollectionPage.c"
		{
			GeeIterator* _p_it = NULL;
			GeeCollection* _tmp47_ = NULL;
			GeeIterator* _tmp48_ = NULL;
#line 441 "/home/jens/Source/shotwell/src/CollectionPage.vala"
			_tmp47_ = export_list;
#line 441 "/home/jens/Source/shotwell/src/CollectionPage.vala"
			_tmp48_ = gee_iterable_iterator (G_TYPE_CHECK_INSTANCE_CAST (G_TYPE_CHECK_INSTANCE_CAST (_tmp47_, GEE_TYPE_COLLECTION, GeeCollection), GEE_TYPE_ITERABLE, GeeIterable));
#line 441 "/home/jens/Source/shotwell/src/CollectionPage.vala"
			_p_it = _tmp48_;
#line 441 "/home/jens/Source/shotwell/src/CollectionPage.vala"
			while (TRUE) {
#line 3936 "CollectionPage.c"
				GeeIterator* _tmp49_ = NULL;
				gboolean _tmp50_ = FALSE;
				LibraryPhoto* p = NULL;
				GeeIterator* _tmp51_ = NULL;
				gpointer _tmp52_ = NULL;
				LibraryPhoto* _tmp53_ = NULL;
				LibraryPhoto* _tmp54_ = NULL;
#line 441 "/home/jens/Source/shotwell/src/CollectionPage.vala"
				_tmp49_ = _p_it;
#line 441 "/home/jens/Source/shotwell/src/CollectionPage.vala"
				_tmp50_ = gee_iterator_next (_tmp49_);
#line 441 "/home/jens/Source/shotwell/src/CollectionPage.vala"
				if (!_tmp50_) {
#line 441 "/home/jens/Source/shotwell/src/CollectionPage.vala"
					break;
#line 3952 "CollectionPage.c"
				}
#line 441 "/home/jens/Source/shotwell/src/CollectionPage.vala"
				_tmp51_ = _p_it;
#line 441 "/home/jens/Source/shotwell/src/CollectionPage.vala"
				_tmp52_ = gee_iterator_get (_tmp51_);
#line 441 "/home/jens/Source/shotwell/src/CollectionPage.vala"
				p = (LibraryPhoto*) _tmp52_;
#line 442 "/home/jens/Source/shotwell/src/CollectionPage.vala"
				_tmp53_ = p;
#line 442 "/home/jens/Source/shotwell/src/CollectionPage.vala"
				_tmp54_ = _g_object_ref0 (_tmp53_);
#line 442 "/home/jens/Source/shotwell/src/CollectionPage.vala"
				_g_object_unref0 (photo);
#line 442 "/home/jens/Source/shotwell/src/CollectionPage.vala"
				photo = _tmp54_;
#line 443 "/home/jens/Source/shotwell/src/CollectionPage.vala"
				_g_object_unref0 (p);
#line 443 "/home/jens/Source/shotwell/src/CollectionPage.vala"
				break;
#line 3972 "CollectionPage.c"
			}
#line 441 "/home/jens/Source/shotwell/src/CollectionPage.vala"
			_g_object_unref0 (_p_it);
#line 3976 "CollectionPage.c"
		}
#line 446 "/home/jens/Source/shotwell/src/CollectionPage.vala"
		_tmp55_ = photo;
#line 446 "/home/jens/Source/shotwell/src/CollectionPage.vala"
		_tmp56_ = export_params;
#line 446 "/home/jens/Source/shotwell/src/CollectionPage.vala"
		_tmp57_ = photo_get_export_basename_for_parameters (G_TYPE_CHECK_INSTANCE_CAST (_tmp55_, TYPE_PHOTO, Photo), &_tmp56_);
#line 446 "/home/jens/Source/shotwell/src/CollectionPage.vala"
		_tmp58_ = _tmp57_;
#line 446 "/home/jens/Source/shotwell/src/CollectionPage.vala"
		_tmp59_ = export_ui_choose_file (_tmp58_);
#line 446 "/home/jens/Source/shotwell/src/CollectionPage.vala"
		_tmp60_ = _tmp59_;
#line 446 "/home/jens/Source/shotwell/src/CollectionPage.vala"
		_g_free0 (_tmp58_);
#line 446 "/home/jens/Source/shotwell/src/CollectionPage.vala"
		save_as = _tmp60_;
#line 448 "/home/jens/Source/shotwell/src/CollectionPage.vala"
		_tmp61_ = save_as;
#line 448 "/home/jens/Source/shotwell/src/CollectionPage.vala"
		if (_tmp61_ == NULL) {
#line 449 "/home/jens/Source/shotwell/src/CollectionPage.vala"
			_g_object_unref0 (save_as);
#line 449 "/home/jens/Source/shotwell/src/CollectionPage.vala"
			_g_object_unref0 (photo);
#line 449 "/home/jens/Source/shotwell/src/CollectionPage.vala"
			_g_object_unref0 (export_dialog);
#line 449 "/home/jens/Source/shotwell/src/CollectionPage.vala"
			_g_free0 (title);
#line 449 "/home/jens/Source/shotwell/src/CollectionPage.vala"
			_g_object_unref0 (export_list);
#line 449 "/home/jens/Source/shotwell/src/CollectionPage.vala"
			return;
#line 4010 "CollectionPage.c"
		}
		{
			AppWindow* _tmp62_ = NULL;
			AppWindow* _tmp63_ = NULL;
			LibraryPhoto* _tmp64_ = NULL;
			GFile* _tmp65_ = NULL;
			Scaling _tmp66_ = {0};
			ExportFormatParameters _tmp67_ = {0};
			JpegQuality _tmp68_ = 0;
			LibraryPhoto* _tmp69_ = NULL;
			ExportFormatParameters _tmp70_ = {0};
			PhotoFileFormat _tmp71_ = 0;
			ExportFormatParameters _tmp72_ = {0};
			ExportFormatMode _tmp73_ = 0;
			ExportFormatParameters _tmp74_ = {0};
			gboolean _tmp75_ = FALSE;
			AppWindow* _tmp76_ = NULL;
			AppWindow* _tmp77_ = NULL;
#line 452 "/home/jens/Source/shotwell/src/CollectionPage.vala"
			_tmp62_ = app_window_get_instance ();
#line 452 "/home/jens/Source/shotwell/src/CollectionPage.vala"
			_tmp63_ = _tmp62_;
#line 452 "/home/jens/Source/shotwell/src/CollectionPage.vala"
			page_window_set_busy_cursor (G_TYPE_CHECK_INSTANCE_CAST (_tmp63_, TYPE_PAGE_WINDOW, PageWindow));
#line 452 "/home/jens/Source/shotwell/src/CollectionPage.vala"
			_g_object_unref0 (_tmp63_);
#line 453 "/home/jens/Source/shotwell/src/CollectionPage.vala"
			_tmp64_ = photo;
#line 453 "/home/jens/Source/shotwell/src/CollectionPage.vala"
			_tmp65_ = save_as;
#line 453 "/home/jens/Source/shotwell/src/CollectionPage.vala"
			_tmp66_ = scaling;
#line 453 "/home/jens/Source/shotwell/src/CollectionPage.vala"
			_tmp67_ = export_params;
#line 453 "/home/jens/Source/shotwell/src/CollectionPage.vala"
			_tmp68_ = _tmp67_.quality;
#line 453 "/home/jens/Source/shotwell/src/CollectionPage.vala"
			_tmp69_ = photo;
#line 453 "/home/jens/Source/shotwell/src/CollectionPage.vala"
			_tmp70_ = export_params;
#line 453 "/home/jens/Source/shotwell/src/CollectionPage.vala"
			_tmp71_ = photo_get_export_format_for_parameters (G_TYPE_CHECK_INSTANCE_CAST (_tmp69_, TYPE_PHOTO, Photo), &_tmp70_);
#line 453 "/home/jens/Source/shotwell/src/CollectionPage.vala"
			_tmp72_ = export_params;
#line 453 "/home/jens/Source/shotwell/src/CollectionPage.vala"
			_tmp73_ = _tmp72_.mode;
#line 453 "/home/jens/Source/shotwell/src/CollectionPage.vala"
			_tmp74_ = export_params;
#line 453 "/home/jens/Source/shotwell/src/CollectionPage.vala"
			_tmp75_ = _tmp74_.export_metadata;
#line 453 "/home/jens/Source/shotwell/src/CollectionPage.vala"
			photo_export (G_TYPE_CHECK_INSTANCE_CAST (_tmp64_, TYPE_PHOTO, Photo), _tmp65_, &_tmp66_, _tmp68_, _tmp71_, _tmp73_ == EXPORT_FORMAT_MODE_UNMODIFIED, _tmp75_, &_inner_error_);
#line 453 "/home/jens/Source/shotwell/src/CollectionPage.vala"
			if (G_UNLIKELY (_inner_error_ != NULL)) {
#line 4065 "CollectionPage.c"
				goto __catch233_g_error;
			}
#line 456 "/home/jens/Source/shotwell/src/CollectionPage.vala"
			_tmp76_ = app_window_get_instance ();
#line 456 "/home/jens/Source/shotwell/src/CollectionPage.vala"
			_tmp77_ = _tmp76_;
#line 456 "/home/jens/Source/shotwell/src/CollectionPage.vala"
			page_window_set_normal_cursor (G_TYPE_CHECK_INSTANCE_CAST (_tmp77_, TYPE_PAGE_WINDOW, PageWindow));
#line 456 "/home/jens/Source/shotwell/src/CollectionPage.vala"
			_g_object_unref0 (_tmp77_);
#line 4076 "CollectionPage.c"
		}
		goto __finally233;
		__catch233_g_error:
		{
			GError* err = NULL;
			AppWindow* _tmp78_ = NULL;
			AppWindow* _tmp79_ = NULL;
			GFile* _tmp80_ = NULL;
#line 451 "/home/jens/Source/shotwell/src/CollectionPage.vala"
			err = _inner_error_;
#line 451 "/home/jens/Source/shotwell/src/CollectionPage.vala"
			_inner_error_ = NULL;
#line 458 "/home/jens/Source/shotwell/src/CollectionPage.vala"
			_tmp78_ = app_window_get_instance ();
#line 458 "/home/jens/Source/shotwell/src/CollectionPage.vala"
			_tmp79_ = _tmp78_;
#line 458 "/home/jens/Source/shotwell/src/CollectionPage.vala"
			page_window_set_normal_cursor (G_TYPE_CHECK_INSTANCE_CAST (_tmp79_, TYPE_PAGE_WINDOW, PageWindow));
#line 458 "/home/jens/Source/shotwell/src/CollectionPage.vala"
			_g_object_unref0 (_tmp79_);
#line 459 "/home/jens/Source/shotwell/src/CollectionPage.vala"
			_tmp80_ = save_as;
#line 459 "/home/jens/Source/shotwell/src/CollectionPage.vala"
			export_error_dialog (_tmp80_, FALSE);
#line 451 "/home/jens/Source/shotwell/src/CollectionPage.vala"
			_g_error_free0 (err);
#line 4103 "CollectionPage.c"
		}
		__finally233:
#line 451 "/home/jens/Source/shotwell/src/CollectionPage.vala"
		if (G_UNLIKELY (_inner_error_ != NULL)) {
#line 451 "/home/jens/Source/shotwell/src/CollectionPage.vala"
			_g_object_unref0 (save_as);
#line 451 "/home/jens/Source/shotwell/src/CollectionPage.vala"
			_g_object_unref0 (photo);
#line 451 "/home/jens/Source/shotwell/src/CollectionPage.vala"
			_g_object_unref0 (export_dialog);
#line 451 "/home/jens/Source/shotwell/src/CollectionPage.vala"
			_g_free0 (title);
#line 451 "/home/jens/Source/shotwell/src/CollectionPage.vala"
			_g_object_unref0 (export_list);
#line 451 "/home/jens/Source/shotwell/src/CollectionPage.vala"
			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);
#line 451 "/home/jens/Source/shotwell/src/CollectionPage.vala"
			g_clear_error (&_inner_error_);
#line 451 "/home/jens/Source/shotwell/src/CollectionPage.vala"
			return;
#line 4124 "CollectionPage.c"
		}
#line 462 "/home/jens/Source/shotwell/src/CollectionPage.vala"
		_g_object_unref0 (save_as);
#line 462 "/home/jens/Source/shotwell/src/CollectionPage.vala"
		_g_object_unref0 (photo);
#line 462 "/home/jens/Source/shotwell/src/CollectionPage.vala"
		_g_object_unref0 (export_dialog);
#line 462 "/home/jens/Source/shotwell/src/CollectionPage.vala"
		_g_free0 (title);
#line 462 "/home/jens/Source/shotwell/src/CollectionPage.vala"
		_g_object_unref0 (export_list);
#line 462 "/home/jens/Source/shotwell/src/CollectionPage.vala"
		return;
#line 4138 "CollectionPage.c"
	}
#line 466 "/home/jens/Source/shotwell/src/CollectionPage.vala"
	_tmp81_ = title;
#line 466 "/home/jens/Source/shotwell/src/CollectionPage.vala"
	_tmp82_ = export_ui_choose_dir (_tmp81_);
#line 466 "/home/jens/Source/shotwell/src/CollectionPage.vala"
	export_dir = _tmp82_;
#line 467 "/home/jens/Source/shotwell/src/CollectionPage.vala"
	_tmp83_ = export_dir;
#line 467 "/home/jens/Source/shotwell/src/CollectionPage.vala"
	if (_tmp83_ == NULL) {
#line 468 "/home/jens/Source/shotwell/src/CollectionPage.vala"
		_g_object_unref0 (export_dir);
#line 468 "/home/jens/Source/shotwell/src/CollectionPage.vala"
		_g_object_unref0 (export_dialog);
#line 468 "/home/jens/Source/shotwell/src/CollectionPage.vala"
		_g_free0 (title);
#line 468 "/home/jens/Source/shotwell/src/CollectionPage.vala"
		_g_object_unref0 (export_list);
#line 468 "/home/jens/Source/shotwell/src/CollectionPage.vala"
		return;
#line 4160 "CollectionPage.c"
	}
#line 470 "/home/jens/Source/shotwell/src/CollectionPage.vala"
	_tmp84_ = export_list;
#line 470 "/home/jens/Source/shotwell/src/CollectionPage.vala"
	_tmp85_ = export_dir;
#line 470 "/home/jens/Source/shotwell/src/CollectionPage.vala"
	_tmp86_ = scaling;
#line 470 "/home/jens/Source/shotwell/src/CollectionPage.vala"
	_tmp87_ = export_params;
#line 470 "/home/jens/Source/shotwell/src/CollectionPage.vala"
	_tmp88_ = exporter_new (_tmp84_, _tmp85_, &_tmp86_, &_tmp87_, FALSE);
#line 470 "/home/jens/Source/shotwell/src/CollectionPage.vala"
	_tmp89_ = _tmp88_;
#line 470 "/home/jens/Source/shotwell/src/CollectionPage.vala"
	_tmp90_ = exporter_ui_new (_tmp89_);
#line 470 "/home/jens/Source/shotwell/src/CollectionPage.vala"
	_exporter_ui_unref0 (self->priv->exporter);
#line 470 "/home/jens/Source/shotwell/src/CollectionPage.vala"
	self->priv->exporter = _tmp90_;
#line 470 "/home/jens/Source/shotwell/src/CollectionPage.vala"
	_g_object_unref0 (_tmp89_);
#line 471 "/home/jens/Source/shotwell/src/CollectionPage.vala"
	_tmp91_ = self->priv->exporter;
#line 471 "/home/jens/Source/shotwell/src/CollectionPage.vala"
	exporter_ui_export (_tmp91_, _collection_page_on_export_completed_exporter_completion_callback, self);
#line 393 "/home/jens/Source/shotwell/src/CollectionPage.vala"
	_g_object_unref0 (export_dir);
#line 393 "/home/jens/Source/shotwell/src/CollectionPage.vala"
	_g_object_unref0 (export_dialog);
#line 393 "/home/jens/Source/shotwell/src/CollectionPage.vala"
	_g_free0 (title);
#line 393 "/home/jens/Source/shotwell/src/CollectionPage.vala"
	_g_object_unref0 (export_list);
#line 4194 "CollectionPage.c"
}


static void collection_page_on_export_completed (CollectionPage* self) {
#line 474 "/home/jens/Source/shotwell/src/CollectionPage.vala"
	g_return_if_fail (IS_COLLECTION_PAGE (self));
#line 475 "/home/jens/Source/shotwell/src/CollectionPage.vala"
	_exporter_ui_unref0 (self->priv->exporter);
#line 475 "/home/jens/Source/shotwell/src/CollectionPage.vala"
	self->priv->exporter = NULL;
#line 4205 "CollectionPage.c"
}


static gboolean collection_page_can_revert_selected (CollectionPage* self) {
	gboolean result = FALSE;
#line 478 "/home/jens/Source/shotwell/src/CollectionPage.vala"
	g_return_val_if_fail (IS_COLLECTION_PAGE (self), FALSE);
#line 4213 "CollectionPage.c"
	{
		GeeList* _source_list = NULL;
		ViewCollection* _tmp0_ = NULL;
		ViewCollection* _tmp1_ = NULL;
		GeeList* _tmp2_ = NULL;
		GeeList* _tmp3_ = NULL;
		gint _source_size = 0;
		GeeList* _tmp4_ = NULL;
		gint _tmp5_ = 0;
		gint _tmp6_ = 0;
		gint _source_index = 0;
#line 479 "/home/jens/Source/shotwell/src/CollectionPage.vala"
		_tmp0_ = page_get_view (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_PAGE, Page));
#line 479 "/home/jens/Source/shotwell/src/CollectionPage.vala"
		_tmp1_ = _tmp0_;
#line 479 "/home/jens/Source/shotwell/src/CollectionPage.vala"
		_tmp2_ = view_collection_get_selected_sources (_tmp1_);
#line 479 "/home/jens/Source/shotwell/src/CollectionPage.vala"
		_tmp3_ = _tmp2_;
#line 479 "/home/jens/Source/shotwell/src/CollectionPage.vala"
		_data_collection_unref0 (_tmp1_);
#line 479 "/home/jens/Source/shotwell/src/CollectionPage.vala"
		_source_list = _tmp3_;
#line 479 "/home/jens/Source/shotwell/src/CollectionPage.vala"
		_tmp4_ = _source_list;
#line 479 "/home/jens/Source/shotwell/src/CollectionPage.vala"
		_tmp5_ = gee_collection_get_size (G_TYPE_CHECK_INSTANCE_CAST (_tmp4_, GEE_TYPE_COLLECTION, GeeCollection));
#line 479 "/home/jens/Source/shotwell/src/CollectionPage.vala"
		_tmp6_ = _tmp5_;
#line 479 "/home/jens/Source/shotwell/src/CollectionPage.vala"
		_source_size = _tmp6_;
#line 479 "/home/jens/Source/shotwell/src/CollectionPage.vala"
		_source_index = -1;
#line 479 "/home/jens/Source/shotwell/src/CollectionPage.vala"
		while (TRUE) {
#line 4249 "CollectionPage.c"
			gint _tmp7_ = 0;
			gint _tmp8_ = 0;
			gint _tmp9_ = 0;
			DataSource* source = NULL;
			GeeList* _tmp10_ = NULL;
			gint _tmp11_ = 0;
			gpointer _tmp12_ = NULL;
			LibraryPhoto* photo = NULL;
			DataSource* _tmp13_ = NULL;
			LibraryPhoto* _tmp14_ = NULL;
			gboolean _tmp15_ = FALSE;
			LibraryPhoto* _tmp16_ = NULL;
#line 479 "/home/jens/Source/shotwell/src/CollectionPage.vala"
			_tmp7_ = _source_index;
#line 479 "/home/jens/Source/shotwell/src/CollectionPage.vala"
			_source_index = _tmp7_ + 1;
#line 479 "/home/jens/Source/shotwell/src/CollectionPage.vala"
			_tmp8_ = _source_index;
#line 479 "/home/jens/Source/shotwell/src/CollectionPage.vala"
			_tmp9_ = _source_size;
#line 479 "/home/jens/Source/shotwell/src/CollectionPage.vala"
			if (!(_tmp8_ < _tmp9_)) {
#line 479 "/home/jens/Source/shotwell/src/CollectionPage.vala"
				break;
#line 4274 "CollectionPage.c"
			}
#line 479 "/home/jens/Source/shotwell/src/CollectionPage.vala"
			_tmp10_ = _source_list;
#line 479 "/home/jens/Source/shotwell/src/CollectionPage.vala"
			_tmp11_ = _source_index;
#line 479 "/home/jens/Source/shotwell/src/CollectionPage.vala"
			_tmp12_ = gee_list_get (_tmp10_, _tmp11_);
#line 479 "/home/jens/Source/shotwell/src/CollectionPage.vala"
			source = (DataSource*) _tmp12_;
#line 480 "/home/jens/Source/shotwell/src/CollectionPage.vala"
			_tmp13_ = source;
#line 480 "/home/jens/Source/shotwell/src/CollectionPage.vala"
			_tmp14_ = _g_object_ref0 (G_TYPE_CHECK_INSTANCE_TYPE (_tmp13_, TYPE_LIBRARY_PHOTO) ? ((LibraryPhoto*) _tmp13_) : NULL);
#line 480 "/home/jens/Source/shotwell/src/CollectionPage.vala"
			photo = _tmp14_;
#line 481 "/home/jens/Source/shotwell/src/CollectionPage.vala"
			_tmp16_ = photo;
#line 481 "/home/jens/Source/shotwell/src/CollectionPage.vala"
			if (_tmp16_ != NULL) {
#line 4294 "CollectionPage.c"
				gboolean _tmp17_ = FALSE;
				LibraryPhoto* _tmp18_ = NULL;
				gboolean _tmp19_ = FALSE;
#line 481 "/home/jens/Source/shotwell/src/CollectionPage.vala"
				_tmp18_ = photo;
#line 481 "/home/jens/Source/shotwell/src/CollectionPage.vala"
				_tmp19_ = photo_has_transformations (G_TYPE_CHECK_INSTANCE_CAST (_tmp18_, TYPE_PHOTO, Photo));
#line 481 "/home/jens/Source/shotwell/src/CollectionPage.vala"
				if (_tmp19_) {
#line 481 "/home/jens/Source/shotwell/src/CollectionPage.vala"
					_tmp17_ = TRUE;
#line 4306 "CollectionPage.c"
				} else {
					LibraryPhoto* _tmp20_ = NULL;
					gboolean _tmp21_ = FALSE;
#line 481 "/home/jens/Source/shotwell/src/CollectionPage.vala"
					_tmp20_ = photo;
#line 481 "/home/jens/Source/shotwell/src/CollectionPage.vala"
					_tmp21_ = photo_has_editable (G_TYPE_CHECK_INSTANCE_CAST (_tmp20_, TYPE_PHOTO, Photo));
#line 481 "/home/jens/Source/shotwell/src/CollectionPage.vala"
					_tmp17_ = _tmp21_;
#line 4316 "CollectionPage.c"
				}
#line 481 "/home/jens/Source/shotwell/src/CollectionPage.vala"
				_tmp15_ = _tmp17_;
#line 4320 "CollectionPage.c"
			} else {
#line 481 "/home/jens/Source/shotwell/src/CollectionPage.vala"
				_tmp15_ = FALSE;
#line 4324 "CollectionPage.c"
			}
#line 481 "/home/jens/Source/shotwell/src/CollectionPage.vala"
			if (_tmp15_) {
#line 482 "/home/jens/Source/shotwell/src/CollectionPage.vala"
				result = TRUE;
#line 482 "/home/jens/Source/shotwell/src/CollectionPage.vala"
				_g_object_unref0 (photo);
#line 482 "/home/jens/Source/shotwell/src/CollectionPage.vala"
				_g_object_unref0 (source);
#line 482 "/home/jens/Source/shotwell/src/CollectionPage.vala"
				_g_object_unref0 (_source_list);
#line 482 "/home/jens/Source/shotwell/src/CollectionPage.vala"
				return result;
#line 4338 "CollectionPage.c"
			}
#line 479 "/home/jens/Source/shotwell/src/CollectionPage.vala"
			_g_object_unref0 (photo);
#line 479 "/home/jens/Source/shotwell/src/CollectionPage.vala"
			_g_object_unref0 (source);
#line 4344 "CollectionPage.c"
		}
#line 479 "/home/jens/Source/shotwell/src/CollectionPage.vala"
		_g_object_unref0 (_source_list);
#line 4348 "CollectionPage.c"
	}
#line 485 "/home/jens/Source/shotwell/src/CollectionPage.vala"
	result = FALSE;
#line 485 "/home/jens/Source/shotwell/src/CollectionPage.vala"
	return result;
#line 4354 "CollectionPage.c"
}


static gboolean collection_page_can_revert_editable_selected (CollectionPage* self) {
	gboolean result = FALSE;
#line 488 "/home/jens/Source/shotwell/src/CollectionPage.vala"
	g_return_val_if_fail (IS_COLLECTION_PAGE (self), FALSE);
#line 4362 "CollectionPage.c"
	{
		GeeList* _source_list = NULL;
		ViewCollection* _tmp0_ = NULL;
		ViewCollection* _tmp1_ = NULL;
		GeeList* _tmp2_ = NULL;
		GeeList* _tmp3_ = NULL;
		gint _source_size = 0;
		GeeList* _tmp4_ = NULL;
		gint _tmp5_ = 0;
		gint _tmp6_ = 0;
		gint _source_index = 0;
#line 489 "/home/jens/Source/shotwell/src/CollectionPage.vala"
		_tmp0_ = page_get_view (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_PAGE, Page));
#line 489 "/home/jens/Source/shotwell/src/CollectionPage.vala"
		_tmp1_ = _tmp0_;
#line 489 "/home/jens/Source/shotwell/src/CollectionPage.vala"
		_tmp2_ = view_collection_get_selected_sources (_tmp1_);
#line 489 "/home/jens/Source/shotwell/src/CollectionPage.vala"
		_tmp3_ = _tmp2_;
#line 489 "/home/jens/Source/shotwell/src/CollectionPage.vala"
		_data_collection_unref0 (_tmp1_);
#line 489 "/home/jens/Source/shotwell/src/CollectionPage.vala"
		_source_list = _tmp3_;
#line 489 "/home/jens/Source/shotwell/src/CollectionPage.vala"
		_tmp4_ = _source_list;
#line 489 "/home/jens/Source/shotwell/src/CollectionPage.vala"
		_tmp5_ = gee_collection_get_size (G_TYPE_CHECK_INSTANCE_CAST (_tmp4_, GEE_TYPE_COLLECTION, GeeCollection));
#line 489 "/home/jens/Source/shotwell/src/CollectionPage.vala"
		_tmp6_ = _tmp5_;
#line 489 "/home/jens/Source/shotwell/src/CollectionPage.vala"
		_source_size = _tmp6_;
#line 489 "/home/jens/Source/shotwell/src/CollectionPage.vala"
		_source_index = -1;
#line 489 "/home/jens/Source/shotwell/src/CollectionPage.vala"
		while (TRUE) {
#line 4398 "CollectionPage.c"
			gint _tmp7_ = 0;
			gint _tmp8_ = 0;
			gint _tmp9_ = 0;
			DataSource* source = NULL;
			GeeList* _tmp10_ = NULL;
			gint _tmp11_ = 0;
			gpointer _tmp12_ = NULL;
			LibraryPhoto* photo = NULL;
			DataSource* _tmp13_ = NULL;
			LibraryPhoto* _tmp14_ = NULL;
			gboolean _tmp15_ = FALSE;
			LibraryPhoto* _tmp16_ = NULL;
#line 489 "/home/jens/Source/shotwell/src/CollectionPage.vala"
			_tmp7_ = _source_index;
#line 489 "/home/jens/Source/shotwell/src/CollectionPage.vala"
			_source_index = _tmp7_ + 1;
#line 489 "/home/jens/Source/shotwell/src/CollectionPage.vala"
			_tmp8_ = _source_index;
#line 489 "/home/jens/Source/shotwell/src/CollectionPage.vala"
			_tmp9_ = _source_size;
#line 489 "/home/jens/Source/shotwell/src/CollectionPage.vala"
			if (!(_tmp8_ < _tmp9_)) {
#line 489 "/home/jens/Source/shotwell/src/CollectionPage.vala"
				break;
#line 4423 "CollectionPage.c"
			}
#line 489 "/home/jens/Source/shotwell/src/CollectionPage.vala"
			_tmp10_ = _source_list;
#line 489 "/home/jens/Source/shotwell/src/CollectionPage.vala"
			_tmp11_ = _source_index;
#line 489 "/home/jens/Source/shotwell/src/CollectionPage.vala"
			_tmp12_ = gee_list_get (_tmp10_, _tmp11_);
#line 489 "/home/jens/Source/shotwell/src/CollectionPage.vala"
			source = (DataSource*) _tmp12_;
#line 490 "/home/jens/Source/shotwell/src/CollectionPage.vala"
			_tmp13_ = source;
#line 490 "/home/jens/Source/shotwell/src/CollectionPage.vala"
			_tmp14_ = _g_object_ref0 (G_TYPE_CHECK_INSTANCE_TYPE (_tmp13_, TYPE_LIBRARY_PHOTO) ? ((LibraryPhoto*) _tmp13_) : NULL);
#line 490 "/home/jens/Source/shotwell/src/CollectionPage.vala"
			photo = _tmp14_;
#line 491 "/home/jens/Source/shotwell/src/CollectionPage.vala"
			_tmp16_ = photo;
#line 491 "/home/jens/Source/shotwell/src/CollectionPage.vala"
			if (_tmp16_ != NULL) {
#line 4443 "CollectionPage.c"
				LibraryPhoto* _tmp17_ = NULL;
				gboolean _tmp18_ = FALSE;
#line 491 "/home/jens/Source/shotwell/src/CollectionPage.vala"
				_tmp17_ = photo;
#line 491 "/home/jens/Source/shotwell/src/CollectionPage.vala"
				_tmp18_ = photo_has_editable (G_TYPE_CHECK_INSTANCE_CAST (_tmp17_, TYPE_PHOTO, Photo));
#line 491 "/home/jens/Source/shotwell/src/CollectionPage.vala"
				_tmp15_ = _tmp18_;
#line 4452 "CollectionPage.c"
			} else {
#line 491 "/home/jens/Source/shotwell/src/CollectionPage.vala"
				_tmp15_ = FALSE;
#line 4456 "CollectionPage.c"
			}
#line 491 "/home/jens/Source/shotwell/src/CollectionPage.vala"
			if (_tmp15_) {
#line 492 "/home/jens/Source/shotwell/src/CollectionPage.vala"
				result = TRUE;
#line 492 "/home/jens/Source/shotwell/src/CollectionPage.vala"
				_g_object_unref0 (photo);
#line 492 "/home/jens/Source/shotwell/src/CollectionPage.vala"
				_g_object_unref0 (source);
#line 492 "/home/jens/Source/shotwell/src/CollectionPage.vala"
				_g_object_unref0 (_source_list);
#line 492 "/home/jens/Source/shotwell/src/CollectionPage.vala"
				return result;
#line 4470 "CollectionPage.c"
			}
#line 489 "/home/jens/Source/shotwell/src/CollectionPage.vala"
			_g_object_unref0 (photo);
#line 489 "/home/jens/Source/shotwell/src/CollectionPage.vala"
			_g_object_unref0 (source);
#line 4476 "CollectionPage.c"
		}
#line 489 "/home/jens/Source/shotwell/src/CollectionPage.vala"
		_g_object_unref0 (_source_list);
#line 4480 "CollectionPage.c"
	}
#line 495 "/home/jens/Source/shotwell/src/CollectionPage.vala"
	result = FALSE;
#line 495 "/home/jens/Source/shotwell/src/CollectionPage.vala"
	return result;
#line 4486 "CollectionPage.c"
}


static void collection_page_on_rotate_clockwise (CollectionPage* self) {
	ViewCollection* _tmp0_ = NULL;
	ViewCollection* _tmp1_ = NULL;
	gint _tmp2_ = 0;
	gboolean _tmp3_ = FALSE;
	RotateMultipleCommand* command = NULL;
	ViewCollection* _tmp4_ = NULL;
	ViewCollection* _tmp5_ = NULL;
	GeeList* _tmp6_ = NULL;
	GeeList* _tmp7_ = NULL;
	const gchar* _tmp8_ = NULL;
	const gchar* _tmp9_ = NULL;
	RotateMultipleCommand* _tmp10_ = NULL;
	RotateMultipleCommand* _tmp11_ = NULL;
	CommandManager* _tmp12_ = NULL;
	CommandManager* _tmp13_ = NULL;
	RotateMultipleCommand* _tmp14_ = NULL;
#line 498 "/home/jens/Source/shotwell/src/CollectionPage.vala"
	g_return_if_fail (IS_COLLECTION_PAGE (self));
#line 499 "/home/jens/Source/shotwell/src/CollectionPage.vala"
	_tmp0_ = page_get_view (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_PAGE, Page));
#line 499 "/home/jens/Source/shotwell/src/CollectionPage.vala"
	_tmp1_ = _tmp0_;
#line 499 "/home/jens/Source/shotwell/src/CollectionPage.vala"
	_tmp2_ = view_collection_get_selected_count (_tmp1_);
#line 499 "/home/jens/Source/shotwell/src/CollectionPage.vala"
	_tmp3_ = _tmp2_ == 0;
#line 499 "/home/jens/Source/shotwell/src/CollectionPage.vala"
	_data_collection_unref0 (_tmp1_);
#line 499 "/home/jens/Source/shotwell/src/CollectionPage.vala"
	if (_tmp3_) {
#line 500 "/home/jens/Source/shotwell/src/CollectionPage.vala"
		return;
#line 4523 "CollectionPage.c"
	}
#line 502 "/home/jens/Source/shotwell/src/CollectionPage.vala"
	_tmp4_ = page_get_view (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_PAGE, Page));
#line 502 "/home/jens/Source/shotwell/src/CollectionPage.vala"
	_tmp5_ = _tmp4_;
#line 502 "/home/jens/Source/shotwell/src/CollectionPage.vala"
	_tmp6_ = view_collection_get_selected (_tmp5_);
#line 502 "/home/jens/Source/shotwell/src/CollectionPage.vala"
	_tmp7_ = _tmp6_;
#line 502 "/home/jens/Source/shotwell/src/CollectionPage.vala"
	_tmp8_ = _ ("Rotating");
#line 502 "/home/jens/Source/shotwell/src/CollectionPage.vala"
	_tmp9_ = _ ("Undoing Rotate");
#line 502 "/home/jens/Source/shotwell/src/CollectionPage.vala"
	_tmp10_ = rotate_multiple_command_new (G_TYPE_CHECK_INSTANCE_CAST (_tmp7_, GEE_TYPE_ITERABLE, GeeIterable), ROTATION_CLOCKWISE, RESOURCES_ROTATE_CW_FULL_LABEL, RESOURCES_ROTATE_CW_TOOLTIP, _tmp8_, _tmp9_);
#line 502 "/home/jens/Source/shotwell/src/CollectionPage.vala"
	_tmp11_ = _tmp10_;
#line 502 "/home/jens/Source/shotwell/src/CollectionPage.vala"
	_g_object_unref0 (_tmp7_);
#line 502 "/home/jens/Source/shotwell/src/CollectionPage.vala"
	_data_collection_unref0 (_tmp5_);
#line 502 "/home/jens/Source/shotwell/src/CollectionPage.vala"
	command = _tmp11_;
#line 505 "/home/jens/Source/shotwell/src/CollectionPage.vala"
	_tmp12_ = page_get_command_manager (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_PAGE, Page));
#line 505 "/home/jens/Source/shotwell/src/CollectionPage.vala"
	_tmp13_ = _tmp12_;
#line 505 "/home/jens/Source/shotwell/src/CollectionPage.vala"
	_tmp14_ = command;
#line 505 "/home/jens/Source/shotwell/src/CollectionPage.vala"
	command_manager_execute (_tmp13_, G_TYPE_CHECK_INSTANCE_CAST (_tmp14_, TYPE_COMMAND, Command));
#line 505 "/home/jens/Source/shotwell/src/CollectionPage.vala"
	_command_manager_unref0 (_tmp13_);
#line 498 "/home/jens/Source/shotwell/src/CollectionPage.vala"
	_g_object_unref0 (command);
#line 4559 "CollectionPage.c"
}


static void collection_page_on_publish (CollectionPage* self) {
	ViewCollection* _tmp0_ = NULL;
	ViewCollection* _tmp1_ = NULL;
	gint _tmp2_ = 0;
	gboolean _tmp3_ = FALSE;
#line 508 "/home/jens/Source/shotwell/src/CollectionPage.vala"
	g_return_if_fail (IS_COLLECTION_PAGE (self));
#line 509 "/home/jens/Source/shotwell/src/CollectionPage.vala"
	_tmp0_ = page_get_view (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_PAGE, Page));
#line 509 "/home/jens/Source/shotwell/src/CollectionPage.vala"
	_tmp1_ = _tmp0_;
#line 509 "/home/jens/Source/shotwell/src/CollectionPage.vala"
	_tmp2_ = view_collection_get_selected_count (_tmp1_);
#line 509 "/home/jens/Source/shotwell/src/CollectionPage.vala"
	_tmp3_ = _tmp2_ > 0;
#line 509 "/home/jens/Source/shotwell/src/CollectionPage.vala"
	_data_collection_unref0 (_tmp1_);
#line 509 "/home/jens/Source/shotwell/src/CollectionPage.vala"
	if (_tmp3_) {
#line 4582 "CollectionPage.c"
		ViewCollection* _tmp4_ = NULL;
		ViewCollection* _tmp5_ = NULL;
		GeeList* _tmp6_ = NULL;
		GeeCollection* _tmp7_ = NULL;
#line 510 "/home/jens/Source/shotwell/src/CollectionPage.vala"
		_tmp4_ = page_get_view (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_PAGE, Page));
#line 510 "/home/jens/Source/shotwell/src/CollectionPage.vala"
		_tmp5_ = _tmp4_;
#line 510 "/home/jens/Source/shotwell/src/CollectionPage.vala"
		_tmp6_ = view_collection_get_selected_sources (_tmp5_);
#line 510 "/home/jens/Source/shotwell/src/CollectionPage.vala"
		_tmp7_ = G_TYPE_CHECK_INSTANCE_CAST (_tmp6_, GEE_TYPE_COLLECTION, GeeCollection);
#line 510 "/home/jens/Source/shotwell/src/CollectionPage.vala"
		publishing_ui_publishing_dialog_go (_tmp7_);
#line 510 "/home/jens/Source/shotwell/src/CollectionPage.vala"
		_g_object_unref0 (_tmp7_);
#line 510 "/home/jens/Source/shotwell/src/CollectionPage.vala"
		_data_collection_unref0 (_tmp5_);
#line 4601 "CollectionPage.c"
	}
}


static void collection_page_on_rotate_counterclockwise (CollectionPage* self) {
	ViewCollection* _tmp0_ = NULL;
	ViewCollection* _tmp1_ = NULL;
	gint _tmp2_ = 0;
	gboolean _tmp3_ = FALSE;
	RotateMultipleCommand* command = NULL;
	ViewCollection* _tmp4_ = NULL;
	ViewCollection* _tmp5_ = NULL;
	GeeList* _tmp6_ = NULL;
	GeeList* _tmp7_ = NULL;
	const gchar* _tmp8_ = NULL;
	const gchar* _tmp9_ = NULL;
	RotateMultipleCommand* _tmp10_ = NULL;
	RotateMultipleCommand* _tmp11_ = NULL;
	CommandManager* _tmp12_ = NULL;
	CommandManager* _tmp13_ = NULL;
	RotateMultipleCommand* _tmp14_ = NULL;
#line 514 "/home/jens/Source/shotwell/src/CollectionPage.vala"
	g_return_if_fail (IS_COLLECTION_PAGE (self));
#line 515 "/home/jens/Source/shotwell/src/CollectionPage.vala"
	_tmp0_ = page_get_view (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_PAGE, Page));
#line 515 "/home/jens/Source/shotwell/src/CollectionPage.vala"
	_tmp1_ = _tmp0_;
#line 515 "/home/jens/Source/shotwell/src/CollectionPage.vala"
	_tmp2_ = view_collection_get_selected_count (_tmp1_);
#line 515 "/home/jens/Source/shotwell/src/CollectionPage.vala"
	_tmp3_ = _tmp2_ == 0;
#line 515 "/home/jens/Source/shotwell/src/CollectionPage.vala"
	_data_collection_unref0 (_tmp1_);
#line 515 "/home/jens/Source/shotwell/src/CollectionPage.vala"
	if (_tmp3_) {
#line 516 "/home/jens/Source/shotwell/src/CollectionPage.vala"
		return;
#line 4639 "CollectionPage.c"
	}
#line 518 "/home/jens/Source/shotwell/src/CollectionPage.vala"
	_tmp4_ = page_get_view (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_PAGE, Page));
#line 518 "/home/jens/Source/shotwell/src/CollectionPage.vala"
	_tmp5_ = _tmp4_;
#line 518 "/home/jens/Source/shotwell/src/CollectionPage.vala"
	_tmp6_ = view_collection_get_selected (_tmp5_);
#line 518 "/home/jens/Source/shotwell/src/CollectionPage.vala"
	_tmp7_ = _tmp6_;
#line 518 "/home/jens/Source/shotwell/src/CollectionPage.vala"
	_tmp8_ = _ ("Rotating");
#line 518 "/home/jens/Source/shotwell/src/CollectionPage.vala"
	_tmp9_ = _ ("Undoing Rotate");
#line 518 "/home/jens/Source/shotwell/src/CollectionPage.vala"
	_tmp10_ = rotate_multiple_command_new (G_TYPE_CHECK_INSTANCE_CAST (_tmp7_, GEE_TYPE_ITERABLE, GeeIterable), ROTATION_COUNTERCLOCKWISE, RESOURCES_ROTATE_CCW_FULL_LABEL, RESOURCES_ROTATE_CCW_TOOLTIP, _tmp8_, _tmp9_);
#line 518 "/home/jens/Source/shotwell/src/CollectionPage.vala"
	_tmp11_ = _tmp10_;
#line 518 "/home/jens/Source/shotwell/src/CollectionPage.vala"
	_g_object_unref0 (_tmp7_);
#line 518 "/home/jens/Source/shotwell/src/CollectionPage.vala"
	_data_collection_unref0 (_tmp5_);
#line 518 "/home/jens/Source/shotwell/src/CollectionPage.vala"
	command = _tmp11_;
#line 521 "/home/jens/Source/shotwell/src/CollectionPage.vala"
	_tmp12_ = page_get_command_manager (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_PAGE, Page));
#line 521 "/home/jens/Source/shotwell/src/CollectionPage.vala"
	_tmp13_ = _tmp12_;
#line 521 "/home/jens/Source/shotwell/src/CollectionPage.vala"
	_tmp14_ = command;
#line 521 "/home/jens/Source/shotwell/src/CollectionPage.vala"
	command_manager_execute (_tmp13_, G_TYPE_CHECK_INSTANCE_CAST (_tmp14_, TYPE_COMMAND, Command));
#line 521 "/home/jens/Source/shotwell/src/CollectionPage.vala"
	_command_manager_unref0 (_tmp13_);
#line 514 "/home/jens/Source/shotwell/src/CollectionPage.vala"
	_g_object_unref0 (command);
#line 4675 "CollectionPage.c"
}


static void collection_page_on_flip_horizontally (CollectionPage* self) {
	ViewCollection* _tmp0_ = NULL;
	ViewCollection* _tmp1_ = NULL;
	gint _tmp2_ = 0;
	gboolean _tmp3_ = FALSE;
	RotateMultipleCommand* command = NULL;
	ViewCollection* _tmp4_ = NULL;
	ViewCollection* _tmp5_ = NULL;
	GeeList* _tmp6_ = NULL;
	GeeList* _tmp7_ = NULL;
	const gchar* _tmp8_ = NULL;
	const gchar* _tmp9_ = NULL;
	RotateMultipleCommand* _tmp10_ = NULL;
	RotateMultipleCommand* _tmp11_ = NULL;
	CommandManager* _tmp12_ = NULL;
	CommandManager* _tmp13_ = NULL;
	RotateMultipleCommand* _tmp14_ = NULL;
#line 524 "/home/jens/Source/shotwell/src/CollectionPage.vala"
	g_return_if_fail (IS_COLLECTION_PAGE (self));
#line 525 "/home/jens/Source/shotwell/src/CollectionPage.vala"
	_tmp0_ = page_get_view (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_PAGE, Page));
#line 525 "/home/jens/Source/shotwell/src/CollectionPage.vala"
	_tmp1_ = _tmp0_;
#line 525 "/home/jens/Source/shotwell/src/CollectionPage.vala"
	_tmp2_ = view_collection_get_selected_count (_tmp1_);
#line 525 "/home/jens/Source/shotwell/src/CollectionPage.vala"
	_tmp3_ = _tmp2_ == 0;
#line 525 "/home/jens/Source/shotwell/src/CollectionPage.vala"
	_data_collection_unref0 (_tmp1_);
#line 525 "/home/jens/Source/shotwell/src/CollectionPage.vala"
	if (_tmp3_) {
#line 526 "/home/jens/Source/shotwell/src/CollectionPage.vala"
		return;
#line 4712 "CollectionPage.c"
	}
#line 528 "/home/jens/Source/shotwell/src/CollectionPage.vala"
	_tmp4_ = page_get_view (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_PAGE, Page));
#line 528 "/home/jens/Source/shotwell/src/CollectionPage.vala"
	_tmp5_ = _tmp4_;
#line 528 "/home/jens/Source/shotwell/src/CollectionPage.vala"
	_tmp6_ = view_collection_get_selected (_tmp5_);
#line 528 "/home/jens/Source/shotwell/src/CollectionPage.vala"
	_tmp7_ = _tmp6_;
#line 528 "/home/jens/Source/shotwell/src/CollectionPage.vala"
	_tmp8_ = _ ("Flipping Horizontally");
#line 528 "/home/jens/Source/shotwell/src/CollectionPage.vala"
	_tmp9_ = _ ("Undoing Flip Horizontally");
#line 528 "/home/jens/Source/shotwell/src/CollectionPage.vala"
	_tmp10_ = rotate_multiple_command_new (G_TYPE_CHECK_INSTANCE_CAST (_tmp7_, GEE_TYPE_ITERABLE, GeeIterable), ROTATION_MIRROR, RESOURCES_HFLIP_LABEL, "", _tmp8_, _tmp9_);
#line 528 "/home/jens/Source/shotwell/src/CollectionPage.vala"
	_tmp11_ = _tmp10_;
#line 528 "/home/jens/Source/shotwell/src/CollectionPage.vala"
	_g_object_unref0 (_tmp7_);
#line 528 "/home/jens/Source/shotwell/src/CollectionPage.vala"
	_data_collection_unref0 (_tmp5_);
#line 528 "/home/jens/Source/shotwell/src/CollectionPage.vala"
	command = _tmp11_;
#line 531 "/home/jens/Source/shotwell/src/CollectionPage.vala"
	_tmp12_ = page_get_command_manager (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_PAGE, Page));
#line 531 "/home/jens/Source/shotwell/src/CollectionPage.vala"
	_tmp13_ = _tmp12_;
#line 531 "/home/jens/Source/shotwell/src/CollectionPage.vala"
	_tmp14_ = command;
#line 531 "/home/jens/Source/shotwell/src/CollectionPage.vala"
	command_manager_execute (_tmp13_, G_TYPE_CHECK_INSTANCE_CAST (_tmp14_, TYPE_COMMAND, Command));
#line 531 "/home/jens/Source/shotwell/src/CollectionPage.vala"
	_command_manager_unref0 (_tmp13_);
#line 524 "/home/jens/Source/shotwell/src/CollectionPage.vala"
	_g_object_unref0 (command);
#line 4748 "CollectionPage.c"
}


static void collection_page_on_flip_vertically (CollectionPage* self) {
	ViewCollection* _tmp0_ = NULL;
	ViewCollection* _tmp1_ = NULL;
	gint _tmp2_ = 0;
	gboolean _tmp3_ = FALSE;
	RotateMultipleCommand* command = NULL;
	ViewCollection* _tmp4_ = NULL;
	ViewCollection* _tmp5_ = NULL;
	GeeList* _tmp6_ = NULL;
	GeeList* _tmp7_ = NULL;
	const gchar* _tmp8_ = NULL;
	const gchar* _tmp9_ = NULL;
	RotateMultipleCommand* _tmp10_ = NULL;
	RotateMultipleCommand* _tmp11_ = NULL;
	CommandManager* _tmp12_ = NULL;
	CommandManager* _tmp13_ = NULL;
	RotateMultipleCommand* _tmp14_ = NULL;
#line 534 "/home/jens/Source/shotwell/src/CollectionPage.vala"
	g_return_if_fail (IS_COLLECTION_PAGE (self));
#line 535 "/home/jens/Source/shotwell/src/CollectionPage.vala"
	_tmp0_ = page_get_view (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_PAGE, Page));
#line 535 "/home/jens/Source/shotwell/src/CollectionPage.vala"
	_tmp1_ = _tmp0_;
#line 535 "/home/jens/Source/shotwell/src/CollectionPage.vala"
	_tmp2_ = view_collection_get_selected_count (_tmp1_);
#line 535 "/home/jens/Source/shotwell/src/CollectionPage.vala"
	_tmp3_ = _tmp2_ == 0;
#line 535 "/home/jens/Source/shotwell/src/CollectionPage.vala"
	_data_collection_unref0 (_tmp1_);
#line 535 "/home/jens/Source/shotwell/src/CollectionPage.vala"
	if (_tmp3_) {
#line 536 "/home/jens/Source/shotwell/src/CollectionPage.vala"
		return;
#line 4785 "CollectionPage.c"
	}
#line 538 "/home/jens/Source/shotwell/src/CollectionPage.vala"
	_tmp4_ = page_get_view (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_PAGE, Page));
#line 538 "/home/jens/Source/shotwell/src/CollectionPage.vala"
	_tmp5_ = _tmp4_;
#line 538 "/home/jens/Source/shotwell/src/CollectionPage.vala"
	_tmp6_ = view_collection_get_selected (_tmp5_);
#line 538 "/home/jens/Source/shotwell/src/CollectionPage.vala"
	_tmp7_ = _tmp6_;
#line 538 "/home/jens/Source/shotwell/src/CollectionPage.vala"
	_tmp8_ = _ ("Flipping Vertically");
#line 538 "/home/jens/Source/shotwell/src/CollectionPage.vala"
	_tmp9_ = _ ("Undoing Flip Vertically");
#line 538 "/home/jens/Source/shotwell/src/CollectionPage.vala"
	_tmp10_ = rotate_multiple_command_new (G_TYPE_CHECK_INSTANCE_CAST (_tmp7_, GEE_TYPE_ITERABLE, GeeIterable), ROTATION_UPSIDE_DOWN, RESOURCES_VFLIP_LABEL, "", _tmp8_, _tmp9_);
#line 538 "/home/jens/Source/shotwell/src/CollectionPage.vala"
	_tmp11_ = _tmp10_;
#line 538 "/home/jens/Source/shotwell/src/CollectionPage.vala"
	_g_object_unref0 (_tmp7_);
#line 538 "/home/jens/Source/shotwell/src/CollectionPage.vala"
	_data_collection_unref0 (_tmp5_);
#line 538 "/home/jens/Source/shotwell/src/CollectionPage.vala"
	command = _tmp11_;
#line 541 "/home/jens/Source/shotwell/src/CollectionPage.vala"
	_tmp12_ = page_get_command_manager (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_PAGE, Page));
#line 541 "/home/jens/Source/shotwell/src/CollectionPage.vala"
	_tmp13_ = _tmp12_;
#line 541 "/home/jens/Source/shotwell/src/CollectionPage.vala"
	_tmp14_ = command;
#line 541 "/home/jens/Source/shotwell/src/CollectionPage.vala"
	command_manager_execute (_tmp13_, G_TYPE_CHECK_INSTANCE_CAST (_tmp14_, TYPE_COMMAND, Command));
#line 541 "/home/jens/Source/shotwell/src/CollectionPage.vala"
	_command_manager_unref0 (_tmp13_);
#line 534 "/home/jens/Source/shotwell/src/CollectionPage.vala"
	_g_object_unref0 (command);
#line 4821 "CollectionPage.c"
}


static void collection_page_on_revert (CollectionPage* self) {
	ViewCollection* _tmp0_ = NULL;
	ViewCollection* _tmp1_ = NULL;
	gint _tmp2_ = 0;
	gboolean _tmp3_ = FALSE;
	gboolean _tmp4_ = FALSE;
	RevertMultipleCommand* command = NULL;
	ViewCollection* _tmp27_ = NULL;
	ViewCollection* _tmp28_ = NULL;
	GeeList* _tmp29_ = NULL;
	GeeList* _tmp30_ = NULL;
	RevertMultipleCommand* _tmp31_ = NULL;
	RevertMultipleCommand* _tmp32_ = NULL;
	CommandManager* _tmp33_ = NULL;
	CommandManager* _tmp34_ = NULL;
	RevertMultipleCommand* _tmp35_ = NULL;
#line 544 "/home/jens/Source/shotwell/src/CollectionPage.vala"
	g_return_if_fail (IS_COLLECTION_PAGE (self));
#line 545 "/home/jens/Source/shotwell/src/CollectionPage.vala"
	_tmp0_ = page_get_view (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_PAGE, Page));
#line 545 "/home/jens/Source/shotwell/src/CollectionPage.vala"
	_tmp1_ = _tmp0_;
#line 545 "/home/jens/Source/shotwell/src/CollectionPage.vala"
	_tmp2_ = view_collection_get_selected_count (_tmp1_);
#line 545 "/home/jens/Source/shotwell/src/CollectionPage.vala"
	_tmp3_ = _tmp2_ == 0;
#line 545 "/home/jens/Source/shotwell/src/CollectionPage.vala"
	_data_collection_unref0 (_tmp1_);
#line 545 "/home/jens/Source/shotwell/src/CollectionPage.vala"
	if (_tmp3_) {
#line 546 "/home/jens/Source/shotwell/src/CollectionPage.vala"
		return;
#line 4857 "CollectionPage.c"
	}
#line 548 "/home/jens/Source/shotwell/src/CollectionPage.vala"
	_tmp4_ = collection_page_can_revert_editable_selected (self);
#line 548 "/home/jens/Source/shotwell/src/CollectionPage.vala"
	if (_tmp4_) {
#line 4863 "CollectionPage.c"
		AppWindow* _tmp5_ = NULL;
		AppWindow* _tmp6_ = NULL;
		ViewCollection* _tmp7_ = NULL;
		ViewCollection* _tmp8_ = NULL;
		GeeList* _tmp9_ = NULL;
		GeeCollection* _tmp10_ = NULL;
		gboolean _tmp11_ = FALSE;
		gboolean _tmp12_ = FALSE;
#line 549 "/home/jens/Source/shotwell/src/CollectionPage.vala"
		_tmp5_ = app_window_get_instance ();
#line 549 "/home/jens/Source/shotwell/src/CollectionPage.vala"
		_tmp6_ = _tmp5_;
#line 549 "/home/jens/Source/shotwell/src/CollectionPage.vala"
		_tmp7_ = page_get_view (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_PAGE, Page));
#line 549 "/home/jens/Source/shotwell/src/CollectionPage.vala"
		_tmp8_ = _tmp7_;
#line 549 "/home/jens/Source/shotwell/src/CollectionPage.vala"
		_tmp9_ = view_collection_get_selected_sources (_tmp8_);
#line 549 "/home/jens/Source/shotwell/src/CollectionPage.vala"
		_tmp10_ = G_TYPE_CHECK_INSTANCE_CAST (_tmp9_, GEE_TYPE_COLLECTION, GeeCollection);
#line 549 "/home/jens/Source/shotwell/src/CollectionPage.vala"
		_tmp11_ = revert_editable_dialog (G_TYPE_CHECK_INSTANCE_CAST (_tmp6_, gtk_window_get_type (), GtkWindow), _tmp10_);
#line 549 "/home/jens/Source/shotwell/src/CollectionPage.vala"
		_tmp12_ = !_tmp11_;
#line 549 "/home/jens/Source/shotwell/src/CollectionPage.vala"
		_g_object_unref0 (_tmp10_);
#line 549 "/home/jens/Source/shotwell/src/CollectionPage.vala"
		_data_collection_unref0 (_tmp8_);
#line 549 "/home/jens/Source/shotwell/src/CollectionPage.vala"
		_g_object_unref0 (_tmp6_);
#line 549 "/home/jens/Source/shotwell/src/CollectionPage.vala"
		if (_tmp12_) {
#line 551 "/home/jens/Source/shotwell/src/CollectionPage.vala"
			return;
#line 4898 "CollectionPage.c"
		}
		{
			GeeList* _object_list = NULL;
			ViewCollection* _tmp13_ = NULL;
			ViewCollection* _tmp14_ = NULL;
			GeeList* _tmp15_ = NULL;
			GeeList* _tmp16_ = NULL;
			gint _object_size = 0;
			GeeList* _tmp17_ = NULL;
			gint _tmp18_ = 0;
			gint _tmp19_ = 0;
			gint _object_index = 0;
#line 554 "/home/jens/Source/shotwell/src/CollectionPage.vala"
			_tmp13_ = page_get_view (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_PAGE, Page));
#line 554 "/home/jens/Source/shotwell/src/CollectionPage.vala"
			_tmp14_ = _tmp13_;
#line 554 "/home/jens/Source/shotwell/src/CollectionPage.vala"
			_tmp15_ = view_collection_get_selected_sources (_tmp14_);
#line 554 "/home/jens/Source/shotwell/src/CollectionPage.vala"
			_tmp16_ = _tmp15_;
#line 554 "/home/jens/Source/shotwell/src/CollectionPage.vala"
			_data_collection_unref0 (_tmp14_);
#line 554 "/home/jens/Source/shotwell/src/CollectionPage.vala"
			_object_list = _tmp16_;
#line 554 "/home/jens/Source/shotwell/src/CollectionPage.vala"
			_tmp17_ = _object_list;
#line 554 "/home/jens/Source/shotwell/src/CollectionPage.vala"
			_tmp18_ = gee_collection_get_size (G_TYPE_CHECK_INSTANCE_CAST (_tmp17_, GEE_TYPE_COLLECTION, GeeCollection));
#line 554 "/home/jens/Source/shotwell/src/CollectionPage.vala"
			_tmp19_ = _tmp18_;
#line 554 "/home/jens/Source/shotwell/src/CollectionPage.vala"
			_object_size = _tmp19_;
#line 554 "/home/jens/Source/shotwell/src/CollectionPage.vala"
			_object_index = -1;
#line 554 "/home/jens/Source/shotwell/src/CollectionPage.vala"
			while (TRUE) {
#line 4935 "CollectionPage.c"
				gint _tmp20_ = 0;
				gint _tmp21_ = 0;
				gint _tmp22_ = 0;
				DataObject* object = NULL;
				GeeList* _tmp23_ = NULL;
				gint _tmp24_ = 0;
				gpointer _tmp25_ = NULL;
				DataObject* _tmp26_ = NULL;
#line 554 "/home/jens/Source/shotwell/src/CollectionPage.vala"
				_tmp20_ = _object_index;
#line 554 "/home/jens/Source/shotwell/src/CollectionPage.vala"
				_object_index = _tmp20_ + 1;
#line 554 "/home/jens/Source/shotwell/src/CollectionPage.vala"
				_tmp21_ = _object_index;
#line 554 "/home/jens/Source/shotwell/src/CollectionPage.vala"
				_tmp22_ = _object_size;
#line 554 "/home/jens/Source/shotwell/src/CollectionPage.vala"
				if (!(_tmp21_ < _tmp22_)) {
#line 554 "/home/jens/Source/shotwell/src/CollectionPage.vala"
					break;
#line 4956 "CollectionPage.c"
				}
#line 554 "/home/jens/Source/shotwell/src/CollectionPage.vala"
				_tmp23_ = _object_list;
#line 554 "/home/jens/Source/shotwell/src/CollectionPage.vala"
				_tmp24_ = _object_index;
#line 554 "/home/jens/Source/shotwell/src/CollectionPage.vala"
				_tmp25_ = gee_list_get (_tmp23_, _tmp24_);
#line 554 "/home/jens/Source/shotwell/src/CollectionPage.vala"
				object = G_TYPE_CHECK_INSTANCE_CAST ((DataSource*) _tmp25_, TYPE_DATA_OBJECT, DataObject);
#line 555 "/home/jens/Source/shotwell/src/CollectionPage.vala"
				_tmp26_ = object;
#line 555 "/home/jens/Source/shotwell/src/CollectionPage.vala"
				photo_revert_to_master (G_TYPE_CHECK_INSTANCE_CAST (_tmp26_, TYPE_PHOTO, Photo), TRUE);
#line 554 "/home/jens/Source/shotwell/src/CollectionPage.vala"
				_g_object_unref0 (object);
#line 4972 "CollectionPage.c"
			}
#line 554 "/home/jens/Source/shotwell/src/CollectionPage.vala"
			_g_object_unref0 (_object_list);
#line 4976 "CollectionPage.c"
		}
	}
#line 558 "/home/jens/Source/shotwell/src/CollectionPage.vala"
	_tmp27_ = page_get_view (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_PAGE, Page));
#line 558 "/home/jens/Source/shotwell/src/CollectionPage.vala"
	_tmp28_ = _tmp27_;
#line 558 "/home/jens/Source/shotwell/src/CollectionPage.vala"
	_tmp29_ = view_collection_get_selected (_tmp28_);
#line 558 "/home/jens/Source/shotwell/src/CollectionPage.vala"
	_tmp30_ = _tmp29_;
#line 558 "/home/jens/Source/shotwell/src/CollectionPage.vala"
	_tmp31_ = revert_multiple_command_new (G_TYPE_CHECK_INSTANCE_CAST (_tmp30_, GEE_TYPE_ITERABLE, GeeIterable));
#line 558 "/home/jens/Source/shotwell/src/CollectionPage.vala"
	_tmp32_ = _tmp31_;
#line 558 "/home/jens/Source/shotwell/src/CollectionPage.vala"
	_g_object_unref0 (_tmp30_);
#line 558 "/home/jens/Source/shotwell/src/CollectionPage.vala"
	_data_collection_unref0 (_tmp28_);
#line 558 "/home/jens/Source/shotwell/src/CollectionPage.vala"
	command = _tmp32_;
#line 559 "/home/jens/Source/shotwell/src/CollectionPage.vala"
	_tmp33_ = page_get_command_manager (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_PAGE, Page));
#line 559 "/home/jens/Source/shotwell/src/CollectionPage.vala"
	_tmp34_ = _tmp33_;
#line 559 "/home/jens/Source/shotwell/src/CollectionPage.vala"
	_tmp35_ = command;
#line 559 "/home/jens/Source/shotwell/src/CollectionPage.vala"
	command_manager_execute (_tmp34_, G_TYPE_CHECK_INSTANCE_CAST (_tmp35_, TYPE_COMMAND, Command));
#line 559 "/home/jens/Source/shotwell/src/CollectionPage.vala"
	_command_manager_unref0 (_tmp34_);
#line 544 "/home/jens/Source/shotwell/src/CollectionPage.vala"
	_g_object_unref0 (command);
#line 5009 "CollectionPage.c"
}


void collection_page_on_copy_adjustments (CollectionPage* self) {
	ViewCollection* _tmp0_ = NULL;
	ViewCollection* _tmp1_ = NULL;
	gint _tmp2_ = 0;
	gboolean _tmp3_ = FALSE;
	Photo* photo = NULL;
	ViewCollection* _tmp4_ = NULL;
	ViewCollection* _tmp5_ = NULL;
	DataView* _tmp6_ = NULL;
	DataView* _tmp7_ = NULL;
	DataSource* _tmp8_ = NULL;
	Photo* _tmp9_ = NULL;
	Photo* _tmp10_ = NULL;
	PixelTransformationBundle* _tmp11_ = NULL;
	PixelTransformationBundle* _tmp12_ = NULL;
#line 562 "/home/jens/Source/shotwell/src/CollectionPage.vala"
	g_return_if_fail (IS_COLLECTION_PAGE (self));
#line 563 "/home/jens/Source/shotwell/src/CollectionPage.vala"
	_tmp0_ = page_get_view (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_PAGE, Page));
#line 563 "/home/jens/Source/shotwell/src/CollectionPage.vala"
	_tmp1_ = _tmp0_;
#line 563 "/home/jens/Source/shotwell/src/CollectionPage.vala"
	_tmp2_ = view_collection_get_selected_count (_tmp1_);
#line 563 "/home/jens/Source/shotwell/src/CollectionPage.vala"
	_tmp3_ = _tmp2_ != 1;
#line 563 "/home/jens/Source/shotwell/src/CollectionPage.vala"
	_data_collection_unref0 (_tmp1_);
#line 563 "/home/jens/Source/shotwell/src/CollectionPage.vala"
	if (_tmp3_) {
#line 564 "/home/jens/Source/shotwell/src/CollectionPage.vala"
		return;
#line 5044 "CollectionPage.c"
	}
#line 565 "/home/jens/Source/shotwell/src/CollectionPage.vala"
	_tmp4_ = page_get_view (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_PAGE, Page));
#line 565 "/home/jens/Source/shotwell/src/CollectionPage.vala"
	_tmp5_ = _tmp4_;
#line 565 "/home/jens/Source/shotwell/src/CollectionPage.vala"
	_tmp6_ = view_collection_get_selected_at (_tmp5_, 0);
#line 565 "/home/jens/Source/shotwell/src/CollectionPage.vala"
	_tmp7_ = _tmp6_;
#line 565 "/home/jens/Source/shotwell/src/CollectionPage.vala"
	_tmp8_ = data_view_get_source (_tmp7_);
#line 565 "/home/jens/Source/shotwell/src/CollectionPage.vala"
	_tmp9_ = G_TYPE_CHECK_INSTANCE_CAST (_tmp8_, TYPE_PHOTO, Photo);
#line 565 "/home/jens/Source/shotwell/src/CollectionPage.vala"
	_g_object_unref0 (_tmp7_);
#line 565 "/home/jens/Source/shotwell/src/CollectionPage.vala"
	_data_collection_unref0 (_tmp5_);
#line 565 "/home/jens/Source/shotwell/src/CollectionPage.vala"
	photo = _tmp9_;
#line 566 "/home/jens/Source/shotwell/src/CollectionPage.vala"
	_tmp10_ = photo;
#line 566 "/home/jens/Source/shotwell/src/CollectionPage.vala"
	_tmp11_ = photo_get_color_adjustments (_tmp10_);
#line 566 "/home/jens/Source/shotwell/src/CollectionPage.vala"
	_tmp12_ = _tmp11_;
#line 566 "/home/jens/Source/shotwell/src/CollectionPage.vala"
	pixel_transformation_bundle_set_copied_color_adjustments (_tmp12_);
#line 566 "/home/jens/Source/shotwell/src/CollectionPage.vala"
	_pixel_transformation_bundle_unref0 (_tmp12_);
#line 567 "/home/jens/Source/shotwell/src/CollectionPage.vala"
	page_set_action_sensitive (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_PAGE, Page), "PasteColorAdjustments", TRUE);
#line 562 "/home/jens/Source/shotwell/src/CollectionPage.vala"
	_g_object_unref0 (photo);
#line 5078 "CollectionPage.c"
}


void collection_page_on_paste_adjustments (CollectionPage* self) {
	PixelTransformationBundle* copied_adjustments = NULL;
	PixelTransformationBundle* _tmp0_ = NULL;
	gboolean _tmp1_ = FALSE;
	ViewCollection* _tmp2_ = NULL;
	ViewCollection* _tmp3_ = NULL;
	gint _tmp4_ = 0;
	gboolean _tmp5_ = FALSE;
	AdjustColorsMultipleCommand* command = NULL;
	ViewCollection* _tmp7_ = NULL;
	ViewCollection* _tmp8_ = NULL;
	GeeList* _tmp9_ = NULL;
	GeeList* _tmp10_ = NULL;
	PixelTransformationBundle* _tmp11_ = NULL;
	AdjustColorsMultipleCommand* _tmp12_ = NULL;
	AdjustColorsMultipleCommand* _tmp13_ = NULL;
	CommandManager* _tmp14_ = NULL;
	CommandManager* _tmp15_ = NULL;
	AdjustColorsMultipleCommand* _tmp16_ = NULL;
#line 570 "/home/jens/Source/shotwell/src/CollectionPage.vala"
	g_return_if_fail (IS_COLLECTION_PAGE (self));
#line 571 "/home/jens/Source/shotwell/src/CollectionPage.vala"
	_tmp0_ = pixel_transformation_bundle_get_copied_color_adjustments ();
#line 571 "/home/jens/Source/shotwell/src/CollectionPage.vala"
	copied_adjustments = _tmp0_;
#line 572 "/home/jens/Source/shotwell/src/CollectionPage.vala"
	_tmp2_ = page_get_view (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_PAGE, Page));
#line 572 "/home/jens/Source/shotwell/src/CollectionPage.vala"
	_tmp3_ = _tmp2_;
#line 572 "/home/jens/Source/shotwell/src/CollectionPage.vala"
	_tmp4_ = view_collection_get_selected_count (_tmp3_);
#line 572 "/home/jens/Source/shotwell/src/CollectionPage.vala"
	_tmp5_ = _tmp4_ == 0;
#line 572 "/home/jens/Source/shotwell/src/CollectionPage.vala"
	_data_collection_unref0 (_tmp3_);
#line 572 "/home/jens/Source/shotwell/src/CollectionPage.vala"
	if (_tmp5_) {
#line 572 "/home/jens/Source/shotwell/src/CollectionPage.vala"
		_tmp1_ = TRUE;
#line 5121 "CollectionPage.c"
	} else {
		PixelTransformationBundle* _tmp6_ = NULL;
#line 572 "/home/jens/Source/shotwell/src/CollectionPage.vala"
		_tmp6_ = copied_adjustments;
#line 572 "/home/jens/Source/shotwell/src/CollectionPage.vala"
		_tmp1_ = _tmp6_ == NULL;
#line 5128 "CollectionPage.c"
	}
#line 572 "/home/jens/Source/shotwell/src/CollectionPage.vala"
	if (_tmp1_) {
#line 573 "/home/jens/Source/shotwell/src/CollectionPage.vala"
		_pixel_transformation_bundle_unref0 (copied_adjustments);
#line 573 "/home/jens/Source/shotwell/src/CollectionPage.vala"
		return;
#line 5136 "CollectionPage.c"
	}
#line 575 "/home/jens/Source/shotwell/src/CollectionPage.vala"
	_tmp7_ = page_get_view (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_PAGE, Page));
#line 575 "/home/jens/Source/shotwell/src/CollectionPage.vala"
	_tmp8_ = _tmp7_;
#line 575 "/home/jens/Source/shotwell/src/CollectionPage.vala"
	_tmp9_ = view_collection_get_selected (_tmp8_);
#line 575 "/home/jens/Source/shotwell/src/CollectionPage.vala"
	_tmp10_ = _tmp9_;
#line 575 "/home/jens/Source/shotwell/src/CollectionPage.vala"
	_tmp11_ = copied_adjustments;
#line 575 "/home/jens/Source/shotwell/src/CollectionPage.vala"
	_tmp12_ = adjust_colors_multiple_command_new (G_TYPE_CHECK_INSTANCE_CAST (_tmp10_, GEE_TYPE_ITERABLE, GeeIterable), _tmp11_, RESOURCES_PASTE_ADJUSTMENTS_LABEL, RESOURCES_PASTE_ADJUSTMENTS_TOOLTIP);
#line 575 "/home/jens/Source/shotwell/src/CollectionPage.vala"
	_tmp13_ = _tmp12_;
#line 575 "/home/jens/Source/shotwell/src/CollectionPage.vala"
	_g_object_unref0 (_tmp10_);
#line 575 "/home/jens/Source/shotwell/src/CollectionPage.vala"
	_data_collection_unref0 (_tmp8_);
#line 575 "/home/jens/Source/shotwell/src/CollectionPage.vala"
	command = _tmp13_;
#line 577 "/home/jens/Source/shotwell/src/CollectionPage.vala"
	_tmp14_ = page_get_command_manager (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_PAGE, Page));
#line 577 "/home/jens/Source/shotwell/src/CollectionPage.vala"
	_tmp15_ = _tmp14_;
#line 577 "/home/jens/Source/shotwell/src/CollectionPage.vala"
	_tmp16_ = command;
#line 577 "/home/jens/Source/shotwell/src/CollectionPage.vala"
	command_manager_execute (_tmp15_, G_TYPE_CHECK_INSTANCE_CAST (_tmp16_, TYPE_COMMAND, Command));
#line 577 "/home/jens/Source/shotwell/src/CollectionPage.vala"
	_command_manager_unref0 (_tmp15_);
#line 570 "/home/jens/Source/shotwell/src/CollectionPage.vala"
	_g_object_unref0 (command);
#line 570 "/home/jens/Source/shotwell/src/CollectionPage.vala"
	_pixel_transformation_bundle_unref0 (copied_adjustments);
#line 5172 "CollectionPage.c"
}


static void collection_page_on_enhance (CollectionPage* self) {
	ViewCollection* _tmp0_ = NULL;
	ViewCollection* _tmp1_ = NULL;
	gint _tmp2_ = 0;
	gboolean _tmp3_ = FALSE;
	EnhanceMultipleCommand* command = NULL;
	ViewCollection* _tmp4_ = NULL;
	ViewCollection* _tmp5_ = NULL;
	GeeList* _tmp6_ = NULL;
	GeeList* _tmp7_ = NULL;
	EnhanceMultipleCommand* _tmp8_ = NULL;
	EnhanceMultipleCommand* _tmp9_ = NULL;
	CommandManager* _tmp10_ = NULL;
	CommandManager* _tmp11_ = NULL;
	EnhanceMultipleCommand* _tmp12_ = NULL;
#line 580 "/home/jens/Source/shotwell/src/CollectionPage.vala"
	g_return_if_fail (IS_COLLECTION_PAGE (self));
#line 581 "/home/jens/Source/shotwell/src/CollectionPage.vala"
	_tmp0_ = page_get_view (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_PAGE, Page));
#line 581 "/home/jens/Source/shotwell/src/CollectionPage.vala"
	_tmp1_ = _tmp0_;
#line 581 "/home/jens/Source/shotwell/src/CollectionPage.vala"
	_tmp2_ = view_collection_get_selected_count (_tmp1_);
#line 581 "/home/jens/Source/shotwell/src/CollectionPage.vala"
	_tmp3_ = _tmp2_ == 0;
#line 581 "/home/jens/Source/shotwell/src/CollectionPage.vala"
	_data_collection_unref0 (_tmp1_);
#line 581 "/home/jens/Source/shotwell/src/CollectionPage.vala"
	if (_tmp3_) {
#line 582 "/home/jens/Source/shotwell/src/CollectionPage.vala"
		return;
#line 5207 "CollectionPage.c"
	}
#line 584 "/home/jens/Source/shotwell/src/CollectionPage.vala"
	_tmp4_ = page_get_view (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_PAGE, Page));
#line 584 "/home/jens/Source/shotwell/src/CollectionPage.vala"
	_tmp5_ = _tmp4_;
#line 584 "/home/jens/Source/shotwell/src/CollectionPage.vala"
	_tmp6_ = view_collection_get_selected (_tmp5_);
#line 584 "/home/jens/Source/shotwell/src/CollectionPage.vala"
	_tmp7_ = _tmp6_;
#line 584 "/home/jens/Source/shotwell/src/CollectionPage.vala"
	_tmp8_ = enhance_multiple_command_new (G_TYPE_CHECK_INSTANCE_CAST (_tmp7_, GEE_TYPE_ITERABLE, GeeIterable));
#line 584 "/home/jens/Source/shotwell/src/CollectionPage.vala"
	_tmp9_ = _tmp8_;
#line 584 "/home/jens/Source/shotwell/src/CollectionPage.vala"
	_g_object_unref0 (_tmp7_);
#line 584 "/home/jens/Source/shotwell/src/CollectionPage.vala"
	_data_collection_unref0 (_tmp5_);
#line 584 "/home/jens/Source/shotwell/src/CollectionPage.vala"
	command = _tmp9_;
#line 585 "/home/jens/Source/shotwell/src/CollectionPage.vala"
	_tmp10_ = page_get_command_manager (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_PAGE, Page));
#line 585 "/home/jens/Source/shotwell/src/CollectionPage.vala"
	_tmp11_ = _tmp10_;
#line 585 "/home/jens/Source/shotwell/src/CollectionPage.vala"
	_tmp12_ = command;
#line 585 "/home/jens/Source/shotwell/src/CollectionPage.vala"
	command_manager_execute (_tmp11_, G_TYPE_CHECK_INSTANCE_CAST (_tmp12_, TYPE_COMMAND, Command));
#line 585 "/home/jens/Source/shotwell/src/CollectionPage.vala"
	_command_manager_unref0 (_tmp11_);
#line 580 "/home/jens/Source/shotwell/src/CollectionPage.vala"
	_g_object_unref0 (command);
#line 5239 "CollectionPage.c"
}


static void collection_page_on_duplicate_photo (CollectionPage* self) {
	ViewCollection* _tmp0_ = NULL;
	ViewCollection* _tmp1_ = NULL;
	gint _tmp2_ = 0;
	gboolean _tmp3_ = FALSE;
	DuplicateMultiplePhotosCommand* command = NULL;
	ViewCollection* _tmp4_ = NULL;
	ViewCollection* _tmp5_ = NULL;
	GeeList* _tmp6_ = NULL;
	GeeList* _tmp7_ = NULL;
	DuplicateMultiplePhotosCommand* _tmp8_ = NULL;
	DuplicateMultiplePhotosCommand* _tmp9_ = NULL;
	CommandManager* _tmp10_ = NULL;
	CommandManager* _tmp11_ = NULL;
	DuplicateMultiplePhotosCommand* _tmp12_ = NULL;
#line 588 "/home/jens/Source/shotwell/src/CollectionPage.vala"
	g_return_if_fail (IS_COLLECTION_PAGE (self));
#line 589 "/home/jens/Source/shotwell/src/CollectionPage.vala"
	_tmp0_ = page_get_view (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_PAGE, Page));
#line 589 "/home/jens/Source/shotwell/src/CollectionPage.vala"
	_tmp1_ = _tmp0_;
#line 589 "/home/jens/Source/shotwell/src/CollectionPage.vala"
	_tmp2_ = view_collection_get_selected_count (_tmp1_);
#line 589 "/home/jens/Source/shotwell/src/CollectionPage.vala"
	_tmp3_ = _tmp2_ == 0;
#line 589 "/home/jens/Source/shotwell/src/CollectionPage.vala"
	_data_collection_unref0 (_tmp1_);
#line 589 "/home/jens/Source/shotwell/src/CollectionPage.vala"
	if (_tmp3_) {
#line 590 "/home/jens/Source/shotwell/src/CollectionPage.vala"
		return;
#line 5274 "CollectionPage.c"
	}
#line 592 "/home/jens/Source/shotwell/src/CollectionPage.vala"
	_tmp4_ = page_get_view (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_PAGE, Page));
#line 592 "/home/jens/Source/shotwell/src/CollectionPage.vala"
	_tmp5_ = _tmp4_;
#line 592 "/home/jens/Source/shotwell/src/CollectionPage.vala"
	_tmp6_ = view_collection_get_selected (_tmp5_);
#line 592 "/home/jens/Source/shotwell/src/CollectionPage.vala"
	_tmp7_ = _tmp6_;
#line 592 "/home/jens/Source/shotwell/src/CollectionPage.vala"
	_tmp8_ = duplicate_multiple_photos_command_new (G_TYPE_CHECK_INSTANCE_CAST (_tmp7_, GEE_TYPE_ITERABLE, GeeIterable));
#line 592 "/home/jens/Source/shotwell/src/CollectionPage.vala"
	_tmp9_ = _tmp8_;
#line 592 "/home/jens/Source/shotwell/src/CollectionPage.vala"
	_g_object_unref0 (_tmp7_);
#line 592 "/home/jens/Source/shotwell/src/CollectionPage.vala"
	_data_collection_unref0 (_tmp5_);
#line 592 "/home/jens/Source/shotwell/src/CollectionPage.vala"
	command = _tmp9_;
#line 594 "/home/jens/Source/shotwell/src/CollectionPage.vala"
	_tmp10_ = page_get_command_manager (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_PAGE, Page));
#line 594 "/home/jens/Source/shotwell/src/CollectionPage.vala"
	_tmp11_ = _tmp10_;
#line 594 "/home/jens/Source/shotwell/src/CollectionPage.vala"
	_tmp12_ = command;
#line 594 "/home/jens/Source/shotwell/src/CollectionPage.vala"
	command_manager_execute (_tmp11_, G_TYPE_CHECK_INSTANCE_CAST (_tmp12_, TYPE_COMMAND, Command));
#line 594 "/home/jens/Source/shotwell/src/CollectionPage.vala"
	_command_manager_unref0 (_tmp11_);
#line 588 "/home/jens/Source/shotwell/src/CollectionPage.vala"
	_g_object_unref0 (command);
#line 5306 "CollectionPage.c"
}


static void collection_page_on_adjust_date_time (CollectionPage* self) {
	ViewCollection* _tmp0_ = NULL;
	ViewCollection* _tmp1_ = NULL;
	gint _tmp2_ = 0;
	gboolean _tmp3_ = FALSE;
	gboolean selected_has_videos = FALSE;
	gboolean only_videos_selected = FALSE;
	Dateable* photo_source = NULL;
	ViewCollection* _tmp21_ = NULL;
	ViewCollection* _tmp22_ = NULL;
	DataView* _tmp23_ = NULL;
	DataView* _tmp24_ = NULL;
	DataSource* _tmp25_ = NULL;
	Dateable* _tmp26_ = NULL;
	AdjustDateTimeDialog* dialog = NULL;
	Dateable* _tmp27_ = NULL;
	ViewCollection* _tmp28_ = NULL;
	ViewCollection* _tmp29_ = NULL;
	gint _tmp30_ = 0;
	gboolean _tmp31_ = FALSE;
	gboolean _tmp32_ = FALSE;
	AdjustDateTimeDialog* _tmp33_ = NULL;
	AdjustDateTimeDialog* _tmp34_ = NULL;
	gint64 time_shift = 0LL;
	gboolean keep_relativity = FALSE;
	gboolean modify_originals = FALSE;
	AdjustDateTimeDialog* _tmp35_ = NULL;
	gint64 _tmp36_ = 0LL;
	gboolean _tmp37_ = FALSE;
	gboolean _tmp38_ = FALSE;
	gboolean _tmp39_ = FALSE;
#line 597 "/home/jens/Source/shotwell/src/CollectionPage.vala"
	g_return_if_fail (IS_COLLECTION_PAGE (self));
#line 598 "/home/jens/Source/shotwell/src/CollectionPage.vala"
	_tmp0_ = page_get_view (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_PAGE, Page));
#line 598 "/home/jens/Source/shotwell/src/CollectionPage.vala"
	_tmp1_ = _tmp0_;
#line 598 "/home/jens/Source/shotwell/src/CollectionPage.vala"
	_tmp2_ = view_collection_get_selected_count (_tmp1_);
#line 598 "/home/jens/Source/shotwell/src/CollectionPage.vala"
	_tmp3_ = _tmp2_ == 0;
#line 598 "/home/jens/Source/shotwell/src/CollectionPage.vala"
	_data_collection_unref0 (_tmp1_);
#line 598 "/home/jens/Source/shotwell/src/CollectionPage.vala"
	if (_tmp3_) {
#line 599 "/home/jens/Source/shotwell/src/CollectionPage.vala"
		return;
#line 5357 "CollectionPage.c"
	}
#line 601 "/home/jens/Source/shotwell/src/CollectionPage.vala"
	selected_has_videos = FALSE;
#line 602 "/home/jens/Source/shotwell/src/CollectionPage.vala"
	only_videos_selected = TRUE;
#line 5363 "CollectionPage.c"
	{
		GeeList* _dv_list = NULL;
		ViewCollection* _tmp4_ = NULL;
		ViewCollection* _tmp5_ = NULL;
		GeeList* _tmp6_ = NULL;
		GeeList* _tmp7_ = NULL;
		gint _dv_size = 0;
		GeeList* _tmp8_ = NULL;
		gint _tmp9_ = 0;
		gint _tmp10_ = 0;
		gint _dv_index = 0;
#line 604 "/home/jens/Source/shotwell/src/CollectionPage.vala"
		_tmp4_ = page_get_view (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_PAGE, Page));
#line 604 "/home/jens/Source/shotwell/src/CollectionPage.vala"
		_tmp5_ = _tmp4_;
#line 604 "/home/jens/Source/shotwell/src/CollectionPage.vala"
		_tmp6_ = view_collection_get_selected (_tmp5_);
#line 604 "/home/jens/Source/shotwell/src/CollectionPage.vala"
		_tmp7_ = _tmp6_;
#line 604 "/home/jens/Source/shotwell/src/CollectionPage.vala"
		_data_collection_unref0 (_tmp5_);
#line 604 "/home/jens/Source/shotwell/src/CollectionPage.vala"
		_dv_list = _tmp7_;
#line 604 "/home/jens/Source/shotwell/src/CollectionPage.vala"
		_tmp8_ = _dv_list;
#line 604 "/home/jens/Source/shotwell/src/CollectionPage.vala"
		_tmp9_ = gee_collection_get_size (G_TYPE_CHECK_INSTANCE_CAST (_tmp8_, GEE_TYPE_COLLECTION, GeeCollection));
#line 604 "/home/jens/Source/shotwell/src/CollectionPage.vala"
		_tmp10_ = _tmp9_;
#line 604 "/home/jens/Source/shotwell/src/CollectionPage.vala"
		_dv_size = _tmp10_;
#line 604 "/home/jens/Source/shotwell/src/CollectionPage.vala"
		_dv_index = -1;
#line 604 "/home/jens/Source/shotwell/src/CollectionPage.vala"
		while (TRUE) {
#line 5399 "CollectionPage.c"
			gint _tmp11_ = 0;
			gint _tmp12_ = 0;
			gint _tmp13_ = 0;
			DataView* dv = NULL;
			GeeList* _tmp14_ = NULL;
			gint _tmp15_ = 0;
			gpointer _tmp16_ = NULL;
			DataView* _tmp17_ = NULL;
			DataSource* _tmp18_ = NULL;
			DataSource* _tmp19_ = NULL;
			gboolean _tmp20_ = FALSE;
#line 604 "/home/jens/Source/shotwell/src/CollectionPage.vala"
			_tmp11_ = _dv_index;
#line 604 "/home/jens/Source/shotwell/src/CollectionPage.vala"
			_dv_index = _tmp11_ + 1;
#line 604 "/home/jens/Source/shotwell/src/CollectionPage.vala"
			_tmp12_ = _dv_index;
#line 604 "/home/jens/Source/shotwell/src/CollectionPage.vala"
			_tmp13_ = _dv_size;
#line 604 "/home/jens/Source/shotwell/src/CollectionPage.vala"
			if (!(_tmp12_ < _tmp13_)) {
#line 604 "/home/jens/Source/shotwell/src/CollectionPage.vala"
				break;
#line 5423 "CollectionPage.c"
			}
#line 604 "/home/jens/Source/shotwell/src/CollectionPage.vala"
			_tmp14_ = _dv_list;
#line 604 "/home/jens/Source/shotwell/src/CollectionPage.vala"
			_tmp15_ = _dv_index;
#line 604 "/home/jens/Source/shotwell/src/CollectionPage.vala"
			_tmp16_ = gee_list_get (_tmp14_, _tmp15_);
#line 604 "/home/jens/Source/shotwell/src/CollectionPage.vala"
			dv = (DataView*) _tmp16_;
#line 605 "/home/jens/Source/shotwell/src/CollectionPage.vala"
			_tmp17_ = dv;
#line 605 "/home/jens/Source/shotwell/src/CollectionPage.vala"
			_tmp18_ = data_view_get_source (_tmp17_);
#line 605 "/home/jens/Source/shotwell/src/CollectionPage.vala"
			_tmp19_ = _tmp18_;
#line 605 "/home/jens/Source/shotwell/src/CollectionPage.vala"
			_tmp20_ = G_TYPE_CHECK_INSTANCE_TYPE (_tmp19_, TYPE_VIDEO);
#line 605 "/home/jens/Source/shotwell/src/CollectionPage.vala"
			_g_object_unref0 (_tmp19_);
#line 605 "/home/jens/Source/shotwell/src/CollectionPage.vala"
			if (_tmp20_) {
#line 606 "/home/jens/Source/shotwell/src/CollectionPage.vala"
				selected_has_videos = TRUE;
#line 5447 "CollectionPage.c"
			} else {
#line 608 "/home/jens/Source/shotwell/src/CollectionPage.vala"
				only_videos_selected = FALSE;
#line 5451 "CollectionPage.c"
			}
#line 604 "/home/jens/Source/shotwell/src/CollectionPage.vala"
			_g_object_unref0 (dv);
#line 5455 "CollectionPage.c"
		}
#line 604 "/home/jens/Source/shotwell/src/CollectionPage.vala"
		_g_object_unref0 (_dv_list);
#line 5459 "CollectionPage.c"
	}
#line 611 "/home/jens/Source/shotwell/src/CollectionPage.vala"
	_tmp21_ = page_get_view (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_PAGE, Page));
#line 611 "/home/jens/Source/shotwell/src/CollectionPage.vala"
	_tmp22_ = _tmp21_;
#line 611 "/home/jens/Source/shotwell/src/CollectionPage.vala"
	_tmp23_ = view_collection_get_selected_at (_tmp22_, 0);
#line 611 "/home/jens/Source/shotwell/src/CollectionPage.vala"
	_tmp24_ = _tmp23_;
#line 611 "/home/jens/Source/shotwell/src/CollectionPage.vala"
	_tmp25_ = data_view_get_source (_tmp24_);
#line 611 "/home/jens/Source/shotwell/src/CollectionPage.vala"
	_tmp26_ = G_TYPE_CHECK_INSTANCE_CAST (_tmp25_, TYPE_DATEABLE, Dateable);
#line 611 "/home/jens/Source/shotwell/src/CollectionPage.vala"
	_g_object_unref0 (_tmp24_);
#line 611 "/home/jens/Source/shotwell/src/CollectionPage.vala"
	_data_collection_unref0 (_tmp22_);
#line 611 "/home/jens/Source/shotwell/src/CollectionPage.vala"
	photo_source = _tmp26_;
#line 613 "/home/jens/Source/shotwell/src/CollectionPage.vala"
	_tmp27_ = photo_source;
#line 613 "/home/jens/Source/shotwell/src/CollectionPage.vala"
	_tmp28_ = page_get_view (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_PAGE, Page));
#line 613 "/home/jens/Source/shotwell/src/CollectionPage.vala"
	_tmp29_ = _tmp28_;
#line 613 "/home/jens/Source/shotwell/src/CollectionPage.vala"
	_tmp30_ = view_collection_get_selected_count (_tmp29_);
#line 613 "/home/jens/Source/shotwell/src/CollectionPage.vala"
	_tmp31_ = selected_has_videos;
#line 613 "/home/jens/Source/shotwell/src/CollectionPage.vala"
	_tmp32_ = only_videos_selected;
#line 613 "/home/jens/Source/shotwell/src/CollectionPage.vala"
	_tmp33_ = adjust_date_time_dialog_new (_tmp27_, _tmp30_, TRUE, _tmp31_, _tmp32_);
#line 613 "/home/jens/Source/shotwell/src/CollectionPage.vala"
	g_object_ref_sink (_tmp33_);
#line 613 "/home/jens/Source/shotwell/src/CollectionPage.vala"
	_tmp34_ = _tmp33_;
#line 613 "/home/jens/Source/shotwell/src/CollectionPage.vala"
	_data_collection_unref0 (_tmp29_);
#line 613 "/home/jens/Source/shotwell/src/CollectionPage.vala"
	dialog = _tmp34_;
#line 618 "/home/jens/Source/shotwell/src/CollectionPage.vala"
	_tmp35_ = dialog;
#line 618 "/home/jens/Source/shotwell/src/CollectionPage.vala"
	_tmp39_ = adjust_date_time_dialog_execute (_tmp35_, &_tmp36_, &_tmp37_, &_tmp38_);
#line 618 "/home/jens/Source/shotwell/src/CollectionPage.vala"
	time_shift = _tmp36_;
#line 618 "/home/jens/Source/shotwell/src/CollectionPage.vala"
	keep_relativity = _tmp37_;
#line 618 "/home/jens/Source/shotwell/src/CollectionPage.vala"
	modify_originals = _tmp38_;
#line 618 "/home/jens/Source/shotwell/src/CollectionPage.vala"
	if (_tmp39_) {
#line 5513 "CollectionPage.c"
		AdjustDateTimePhotosCommand* command = NULL;
		ViewCollection* _tmp40_ = NULL;
		ViewCollection* _tmp41_ = NULL;
		GeeList* _tmp42_ = NULL;
		GeeList* _tmp43_ = NULL;
		gint64 _tmp44_ = 0LL;
		gboolean _tmp45_ = FALSE;
		gboolean _tmp46_ = FALSE;
		AdjustDateTimePhotosCommand* _tmp47_ = NULL;
		AdjustDateTimePhotosCommand* _tmp48_ = NULL;
		CommandManager* _tmp49_ = NULL;
		CommandManager* _tmp50_ = NULL;
		AdjustDateTimePhotosCommand* _tmp51_ = NULL;
#line 619 "/home/jens/Source/shotwell/src/CollectionPage.vala"
		_tmp40_ = page_get_view (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_PAGE, Page));
#line 619 "/home/jens/Source/shotwell/src/CollectionPage.vala"
		_tmp41_ = _tmp40_;
#line 619 "/home/jens/Source/shotwell/src/CollectionPage.vala"
		_tmp42_ = view_collection_get_selected (_tmp41_);
#line 619 "/home/jens/Source/shotwell/src/CollectionPage.vala"
		_tmp43_ = _tmp42_;
#line 619 "/home/jens/Source/shotwell/src/CollectionPage.vala"
		_tmp44_ = time_shift;
#line 619 "/home/jens/Source/shotwell/src/CollectionPage.vala"
		_tmp45_ = keep_relativity;
#line 619 "/home/jens/Source/shotwell/src/CollectionPage.vala"
		_tmp46_ = modify_originals;
#line 619 "/home/jens/Source/shotwell/src/CollectionPage.vala"
		_tmp47_ = adjust_date_time_photos_command_new (G_TYPE_CHECK_INSTANCE_CAST (_tmp43_, GEE_TYPE_ITERABLE, GeeIterable), _tmp44_, _tmp45_, _tmp46_);
#line 619 "/home/jens/Source/shotwell/src/CollectionPage.vala"
		_tmp48_ = _tmp47_;
#line 619 "/home/jens/Source/shotwell/src/CollectionPage.vala"
		_g_object_unref0 (_tmp43_);
#line 619 "/home/jens/Source/shotwell/src/CollectionPage.vala"
		_data_collection_unref0 (_tmp41_);
#line 619 "/home/jens/Source/shotwell/src/CollectionPage.vala"
		command = _tmp48_;
#line 621 "/home/jens/Source/shotwell/src/CollectionPage.vala"
		_tmp49_ = page_get_command_manager (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_PAGE, Page));
#line 621 "/home/jens/Source/shotwell/src/CollectionPage.vala"
		_tmp50_ = _tmp49_;
#line 621 "/home/jens/Source/shotwell/src/CollectionPage.vala"
		_tmp51_ = command;
#line 621 "/home/jens/Source/shotwell/src/CollectionPage.vala"
		command_manager_execute (_tmp50_, G_TYPE_CHECK_INSTANCE_CAST (_tmp51_, TYPE_COMMAND, Command));
#line 621 "/home/jens/Source/shotwell/src/CollectionPage.vala"
		_command_manager_unref0 (_tmp50_);
#line 618 "/home/jens/Source/shotwell/src/CollectionPage.vala"
		_g_object_unref0 (command);
#line 5563 "CollectionPage.c"
	}
#line 597 "/home/jens/Source/shotwell/src/CollectionPage.vala"
	_g_object_unref0 (dialog);
#line 597 "/home/jens/Source/shotwell/src/CollectionPage.vala"
	_g_object_unref0 (photo_source);
#line 5569 "CollectionPage.c"
}


static void collection_page_on_external_edit (CollectionPage* self) {
	ViewCollection* _tmp0_ = NULL;
	ViewCollection* _tmp1_ = NULL;
	gint _tmp2_ = 0;
	gboolean _tmp3_ = FALSE;
	Photo* photo = NULL;
	ViewCollection* _tmp4_ = NULL;
	ViewCollection* _tmp5_ = NULL;
	DataView* _tmp6_ = NULL;
	DataView* _tmp7_ = NULL;
	DataSource* _tmp8_ = NULL;
	Photo* _tmp9_ = NULL;
	GError * _inner_error_ = NULL;
#line 625 "/home/jens/Source/shotwell/src/CollectionPage.vala"
	g_return_if_fail (IS_COLLECTION_PAGE (self));
#line 626 "/home/jens/Source/shotwell/src/CollectionPage.vala"
	_tmp0_ = page_get_view (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_PAGE, Page));
#line 626 "/home/jens/Source/shotwell/src/CollectionPage.vala"
	_tmp1_ = _tmp0_;
#line 626 "/home/jens/Source/shotwell/src/CollectionPage.vala"
	_tmp2_ = view_collection_get_selected_count (_tmp1_);
#line 626 "/home/jens/Source/shotwell/src/CollectionPage.vala"
	_tmp3_ = _tmp2_ != 1;
#line 626 "/home/jens/Source/shotwell/src/CollectionPage.vala"
	_data_collection_unref0 (_tmp1_);
#line 626 "/home/jens/Source/shotwell/src/CollectionPage.vala"
	if (_tmp3_) {
#line 627 "/home/jens/Source/shotwell/src/CollectionPage.vala"
		return;
#line 5602 "CollectionPage.c"
	}
#line 629 "/home/jens/Source/shotwell/src/CollectionPage.vala"
	_tmp4_ = page_get_view (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_PAGE, Page));
#line 629 "/home/jens/Source/shotwell/src/CollectionPage.vala"
	_tmp5_ = _tmp4_;
#line 629 "/home/jens/Source/shotwell/src/CollectionPage.vala"
	_tmp6_ = view_collection_get_selected_at (_tmp5_, 0);
#line 629 "/home/jens/Source/shotwell/src/CollectionPage.vala"
	_tmp7_ = _tmp6_;
#line 629 "/home/jens/Source/shotwell/src/CollectionPage.vala"
	_tmp8_ = data_view_get_source (_tmp7_);
#line 629 "/home/jens/Source/shotwell/src/CollectionPage.vala"
	_tmp9_ = G_TYPE_CHECK_INSTANCE_CAST (_tmp8_, TYPE_PHOTO, Photo);
#line 629 "/home/jens/Source/shotwell/src/CollectionPage.vala"
	_g_object_unref0 (_tmp7_);
#line 629 "/home/jens/Source/shotwell/src/CollectionPage.vala"
	_data_collection_unref0 (_tmp5_);
#line 629 "/home/jens/Source/shotwell/src/CollectionPage.vala"
	photo = _tmp9_;
#line 5622 "CollectionPage.c"
	{
		AppWindow* _tmp10_ = NULL;
		AppWindow* _tmp11_ = NULL;
		Photo* _tmp12_ = NULL;
		AppWindow* _tmp13_ = NULL;
		AppWindow* _tmp14_ = NULL;
#line 631 "/home/jens/Source/shotwell/src/CollectionPage.vala"
		_tmp10_ = app_window_get_instance ();
#line 631 "/home/jens/Source/shotwell/src/CollectionPage.vala"
		_tmp11_ = _tmp10_;
#line 631 "/home/jens/Source/shotwell/src/CollectionPage.vala"
		page_window_set_busy_cursor (G_TYPE_CHECK_INSTANCE_CAST (_tmp11_, TYPE_PAGE_WINDOW, PageWindow));
#line 631 "/home/jens/Source/shotwell/src/CollectionPage.vala"
		_g_object_unref0 (_tmp11_);
#line 632 "/home/jens/Source/shotwell/src/CollectionPage.vala"
		_tmp12_ = photo;
#line 632 "/home/jens/Source/shotwell/src/CollectionPage.vala"
		photo_open_with_external_editor (_tmp12_, &_inner_error_);
#line 632 "/home/jens/Source/shotwell/src/CollectionPage.vala"
		if (G_UNLIKELY (_inner_error_ != NULL)) {
#line 5643 "CollectionPage.c"
			goto __catch234_g_error;
		}
#line 633 "/home/jens/Source/shotwell/src/CollectionPage.vala"
		_tmp13_ = app_window_get_instance ();
#line 633 "/home/jens/Source/shotwell/src/CollectionPage.vala"
		_tmp14_ = _tmp13_;
#line 633 "/home/jens/Source/shotwell/src/CollectionPage.vala"
		page_window_set_normal_cursor (G_TYPE_CHECK_INSTANCE_CAST (_tmp14_, TYPE_PAGE_WINDOW, PageWindow));
#line 633 "/home/jens/Source/shotwell/src/CollectionPage.vala"
		_g_object_unref0 (_tmp14_);
#line 5654 "CollectionPage.c"
	}
	goto __finally234;
	__catch234_g_error:
	{
		GError* err = NULL;
		AppWindow* _tmp15_ = NULL;
		AppWindow* _tmp16_ = NULL;
		GError* _tmp17_ = NULL;
		Photo* _tmp18_ = NULL;
#line 630 "/home/jens/Source/shotwell/src/CollectionPage.vala"
		err = _inner_error_;
#line 630 "/home/jens/Source/shotwell/src/CollectionPage.vala"
		_inner_error_ = NULL;
#line 635 "/home/jens/Source/shotwell/src/CollectionPage.vala"
		_tmp15_ = app_window_get_instance ();
#line 635 "/home/jens/Source/shotwell/src/CollectionPage.vala"
		_tmp16_ = _tmp15_;
#line 635 "/home/jens/Source/shotwell/src/CollectionPage.vala"
		page_window_set_normal_cursor (G_TYPE_CHECK_INSTANCE_CAST (_tmp16_, TYPE_PAGE_WINDOW, PageWindow));
#line 635 "/home/jens/Source/shotwell/src/CollectionPage.vala"
		_g_object_unref0 (_tmp16_);
#line 636 "/home/jens/Source/shotwell/src/CollectionPage.vala"
		_tmp17_ = err;
#line 636 "/home/jens/Source/shotwell/src/CollectionPage.vala"
		_tmp18_ = photo;
#line 636 "/home/jens/Source/shotwell/src/CollectionPage.vala"
		open_external_editor_error_dialog (_tmp17_, _tmp18_);
#line 630 "/home/jens/Source/shotwell/src/CollectionPage.vala"
		_g_error_free0 (err);
#line 5684 "CollectionPage.c"
	}
	__finally234:
#line 630 "/home/jens/Source/shotwell/src/CollectionPage.vala"
	if (G_UNLIKELY (_inner_error_ != NULL)) {
#line 630 "/home/jens/Source/shotwell/src/CollectionPage.vala"
		_g_object_unref0 (photo);
#line 630 "/home/jens/Source/shotwell/src/CollectionPage.vala"
		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);
#line 630 "/home/jens/Source/shotwell/src/CollectionPage.vala"
		g_clear_error (&_inner_error_);
#line 630 "/home/jens/Source/shotwell/src/CollectionPage.vala"
		return;
#line 5697 "CollectionPage.c"
	}
#line 625 "/home/jens/Source/shotwell/src/CollectionPage.vala"
	_g_object_unref0 (photo);
#line 5701 "CollectionPage.c"
}


static void collection_page_on_external_edit_raw (CollectionPage* self) {
	ViewCollection* _tmp0_ = NULL;
	ViewCollection* _tmp1_ = NULL;
	gint _tmp2_ = 0;
	gboolean _tmp3_ = FALSE;
	Photo* photo = NULL;
	ViewCollection* _tmp4_ = NULL;
	ViewCollection* _tmp5_ = NULL;
	DataView* _tmp6_ = NULL;
	DataView* _tmp7_ = NULL;
	DataSource* _tmp8_ = NULL;
	Photo* _tmp9_ = NULL;
	Photo* _tmp10_ = NULL;
	PhotoFileFormat _tmp11_ = 0;
	GError * _inner_error_ = NULL;
#line 640 "/home/jens/Source/shotwell/src/CollectionPage.vala"
	g_return_if_fail (IS_COLLECTION_PAGE (self));
#line 641 "/home/jens/Source/shotwell/src/CollectionPage.vala"
	_tmp0_ = page_get_view (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_PAGE, Page));
#line 641 "/home/jens/Source/shotwell/src/CollectionPage.vala"
	_tmp1_ = _tmp0_;
#line 641 "/home/jens/Source/shotwell/src/CollectionPage.vala"
	_tmp2_ = view_collection_get_selected_count (_tmp1_);
#line 641 "/home/jens/Source/shotwell/src/CollectionPage.vala"
	_tmp3_ = _tmp2_ != 1;
#line 641 "/home/jens/Source/shotwell/src/CollectionPage.vala"
	_data_collection_unref0 (_tmp1_);
#line 641 "/home/jens/Source/shotwell/src/CollectionPage.vala"
	if (_tmp3_) {
#line 642 "/home/jens/Source/shotwell/src/CollectionPage.vala"
		return;
#line 5736 "CollectionPage.c"
	}
#line 644 "/home/jens/Source/shotwell/src/CollectionPage.vala"
	_tmp4_ = page_get_view (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_PAGE, Page));
#line 644 "/home/jens/Source/shotwell/src/CollectionPage.vala"
	_tmp5_ = _tmp4_;
#line 644 "/home/jens/Source/shotwell/src/CollectionPage.vala"
	_tmp6_ = view_collection_get_selected_at (_tmp5_, 0);
#line 644 "/home/jens/Source/shotwell/src/CollectionPage.vala"
	_tmp7_ = _tmp6_;
#line 644 "/home/jens/Source/shotwell/src/CollectionPage.vala"
	_tmp8_ = data_view_get_source (_tmp7_);
#line 644 "/home/jens/Source/shotwell/src/CollectionPage.vala"
	_tmp9_ = G_TYPE_CHECK_INSTANCE_CAST (_tmp8_, TYPE_PHOTO, Photo);
#line 644 "/home/jens/Source/shotwell/src/CollectionPage.vala"
	_g_object_unref0 (_tmp7_);
#line 644 "/home/jens/Source/shotwell/src/CollectionPage.vala"
	_data_collection_unref0 (_tmp5_);
#line 644 "/home/jens/Source/shotwell/src/CollectionPage.vala"
	photo = _tmp9_;
#line 645 "/home/jens/Source/shotwell/src/CollectionPage.vala"
	_tmp10_ = photo;
#line 645 "/home/jens/Source/shotwell/src/CollectionPage.vala"
	_tmp11_ = photo_get_master_file_format (_tmp10_);
#line 645 "/home/jens/Source/shotwell/src/CollectionPage.vala"
	if (_tmp11_ != PHOTO_FILE_FORMAT_RAW) {
#line 646 "/home/jens/Source/shotwell/src/CollectionPage.vala"
		_g_object_unref0 (photo);
#line 646 "/home/jens/Source/shotwell/src/CollectionPage.vala"
		return;
#line 5766 "CollectionPage.c"
	}
	{
		AppWindow* _tmp12_ = NULL;
		AppWindow* _tmp13_ = NULL;
		Photo* _tmp14_ = NULL;
		AppWindow* _tmp15_ = NULL;
		AppWindow* _tmp16_ = NULL;
#line 649 "/home/jens/Source/shotwell/src/CollectionPage.vala"
		_tmp12_ = app_window_get_instance ();
#line 649 "/home/jens/Source/shotwell/src/CollectionPage.vala"
		_tmp13_ = _tmp12_;
#line 649 "/home/jens/Source/shotwell/src/CollectionPage.vala"
		page_window_set_busy_cursor (G_TYPE_CHECK_INSTANCE_CAST (_tmp13_, TYPE_PAGE_WINDOW, PageWindow));
#line 649 "/home/jens/Source/shotwell/src/CollectionPage.vala"
		_g_object_unref0 (_tmp13_);
#line 650 "/home/jens/Source/shotwell/src/CollectionPage.vala"
		_tmp14_ = photo;
#line 650 "/home/jens/Source/shotwell/src/CollectionPage.vala"
		photo_open_with_raw_external_editor (_tmp14_, &_inner_error_);
#line 650 "/home/jens/Source/shotwell/src/CollectionPage.vala"
		if (G_UNLIKELY (_inner_error_ != NULL)) {
#line 5788 "CollectionPage.c"
			goto __catch235_g_error;
		}
#line 651 "/home/jens/Source/shotwell/src/CollectionPage.vala"
		_tmp15_ = app_window_get_instance ();
#line 651 "/home/jens/Source/shotwell/src/CollectionPage.vala"
		_tmp16_ = _tmp15_;
#line 651 "/home/jens/Source/shotwell/src/CollectionPage.vala"
		page_window_set_normal_cursor (G_TYPE_CHECK_INSTANCE_CAST (_tmp16_, TYPE_PAGE_WINDOW, PageWindow));
#line 651 "/home/jens/Source/shotwell/src/CollectionPage.vala"
		_g_object_unref0 (_tmp16_);
#line 5799 "CollectionPage.c"
	}
	goto __finally235;
	__catch235_g_error:
	{
		GError* err = NULL;
		AppWindow* _tmp17_ = NULL;
		AppWindow* _tmp18_ = NULL;
		GError* _tmp19_ = NULL;
		gchar* _tmp20_ = NULL;
		gchar* _tmp21_ = NULL;
#line 648 "/home/jens/Source/shotwell/src/CollectionPage.vala"
		err = _inner_error_;
#line 648 "/home/jens/Source/shotwell/src/CollectionPage.vala"
		_inner_error_ = NULL;
#line 653 "/home/jens/Source/shotwell/src/CollectionPage.vala"
		_tmp17_ = app_window_get_instance ();
#line 653 "/home/jens/Source/shotwell/src/CollectionPage.vala"
		_tmp18_ = _tmp17_;
#line 653 "/home/jens/Source/shotwell/src/CollectionPage.vala"
		page_window_set_normal_cursor (G_TYPE_CHECK_INSTANCE_CAST (_tmp18_, TYPE_PAGE_WINDOW, PageWindow));
#line 653 "/home/jens/Source/shotwell/src/CollectionPage.vala"
		_g_object_unref0 (_tmp18_);
#line 654 "/home/jens/Source/shotwell/src/CollectionPage.vala"
		_tmp19_ = err;
#line 654 "/home/jens/Source/shotwell/src/CollectionPage.vala"
		_tmp20_ = resources_launch_editor_failed (_tmp19_);
#line 654 "/home/jens/Source/shotwell/src/CollectionPage.vala"
		_tmp21_ = _tmp20_;
#line 654 "/home/jens/Source/shotwell/src/CollectionPage.vala"
		app_window_error_message (_tmp21_, NULL);
#line 654 "/home/jens/Source/shotwell/src/CollectionPage.vala"
		_g_free0 (_tmp21_);
#line 648 "/home/jens/Source/shotwell/src/CollectionPage.vala"
		_g_error_free0 (err);
#line 5834 "CollectionPage.c"
	}
	__finally235:
#line 648 "/home/jens/Source/shotwell/src/CollectionPage.vala"
	if (G_UNLIKELY (_inner_error_ != NULL)) {
#line 648 "/home/jens/Source/shotwell/src/CollectionPage.vala"
		_g_object_unref0 (photo);
#line 648 "/home/jens/Source/shotwell/src/CollectionPage.vala"
		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);
#line 648 "/home/jens/Source/shotwell/src/CollectionPage.vala"
		g_clear_error (&_inner_error_);
#line 648 "/home/jens/Source/shotwell/src/CollectionPage.vala"
		return;
#line 5847 "CollectionPage.c"
	}
#line 640 "/home/jens/Source/shotwell/src/CollectionPage.vala"
	_g_object_unref0 (photo);
#line 5851 "CollectionPage.c"
}


void collection_page_on_set_background (CollectionPage* self) {
	GeeArrayList* photos = NULL;
	GeeArrayList* _tmp0_ = NULL;
	ViewCollection* _tmp1_ = NULL;
	ViewCollection* _tmp2_ = NULL;
	GeeList* _tmp3_ = NULL;
	GeeCollection* _tmp4_ = NULL;
	GeeArrayList* _tmp5_ = NULL;
	gboolean desktop = FALSE;
	gboolean screensaver = FALSE;
	GeeArrayList* _tmp6_ = NULL;
	gint _tmp7_ = 0;
	gint _tmp8_ = 0;
#line 658 "/home/jens/Source/shotwell/src/CollectionPage.vala"
	g_return_if_fail (IS_COLLECTION_PAGE (self));
#line 659 "/home/jens/Source/shotwell/src/CollectionPage.vala"
	_tmp0_ = gee_array_list_new (TYPE_LIBRARY_PHOTO, (GBoxedCopyFunc) g_object_ref, g_object_unref, NULL, NULL, NULL);
#line 659 "/home/jens/Source/shotwell/src/CollectionPage.vala"
	photos = _tmp0_;
#line 660 "/home/jens/Source/shotwell/src/CollectionPage.vala"
	_tmp1_ = page_get_view (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_PAGE, Page));
#line 660 "/home/jens/Source/shotwell/src/CollectionPage.vala"
	_tmp2_ = _tmp1_;
#line 660 "/home/jens/Source/shotwell/src/CollectionPage.vala"
	_tmp3_ = view_collection_get_selected_sources (_tmp2_);
#line 660 "/home/jens/Source/shotwell/src/CollectionPage.vala"
	_tmp4_ = G_TYPE_CHECK_INSTANCE_CAST (_tmp3_, GEE_TYPE_COLLECTION, GeeCollection);
#line 660 "/home/jens/Source/shotwell/src/CollectionPage.vala"
	_tmp5_ = photos;
#line 660 "/home/jens/Source/shotwell/src/CollectionPage.vala"
	media_source_collection_filter_media (_tmp4_, G_TYPE_CHECK_INSTANCE_CAST (_tmp5_, GEE_TYPE_COLLECTION, GeeCollection), NULL);
#line 660 "/home/jens/Source/shotwell/src/CollectionPage.vala"
	_g_object_unref0 (_tmp4_);
#line 660 "/home/jens/Source/shotwell/src/CollectionPage.vala"
	_data_collection_unref0 (_tmp2_);
#line 664 "/home/jens/Source/shotwell/src/CollectionPage.vala"
	_tmp6_ = photos;
#line 664 "/home/jens/Source/shotwell/src/CollectionPage.vala"
	_tmp7_ = gee_abstract_collection_get_size (G_TYPE_CHECK_INSTANCE_CAST (_tmp6_, GEE_TYPE_COLLECTION, GeeCollection));
#line 664 "/home/jens/Source/shotwell/src/CollectionPage.vala"
	_tmp8_ = _tmp7_;
#line 664 "/home/jens/Source/shotwell/src/CollectionPage.vala"
	if (_tmp8_ == 1) {
#line 5898 "CollectionPage.c"
		SetBackgroundPhotoDialog* dialog = NULL;
		SetBackgroundPhotoDialog* _tmp9_ = NULL;
		SetBackgroundPhotoDialog* _tmp10_ = NULL;
		gboolean _tmp11_ = FALSE;
		gboolean _tmp12_ = FALSE;
		gboolean _tmp13_ = FALSE;
#line 665 "/home/jens/Source/shotwell/src/CollectionPage.vala"
		_tmp9_ = set_background_photo_dialog_new ();
#line 665 "/home/jens/Source/shotwell/src/CollectionPage.vala"
		g_object_ref_sink (_tmp9_);
#line 665 "/home/jens/Source/shotwell/src/CollectionPage.vala"
		dialog = _tmp9_;
#line 666 "/home/jens/Source/shotwell/src/CollectionPage.vala"
		_tmp10_ = dialog;
#line 666 "/home/jens/Source/shotwell/src/CollectionPage.vala"
		_tmp13_ = set_background_photo_dialog_execute (_tmp10_, &_tmp11_, &_tmp12_);
#line 666 "/home/jens/Source/shotwell/src/CollectionPage.vala"
		desktop = _tmp11_;
#line 666 "/home/jens/Source/shotwell/src/CollectionPage.vala"
		screensaver = _tmp12_;
#line 666 "/home/jens/Source/shotwell/src/CollectionPage.vala"
		if (_tmp13_) {
#line 5921 "CollectionPage.c"
			AppWindow* _tmp14_ = NULL;
			AppWindow* _tmp15_ = NULL;
			GeeArrayList* _tmp16_ = NULL;
			gpointer _tmp17_ = NULL;
			LibraryPhoto* _tmp18_ = NULL;
			gboolean _tmp19_ = FALSE;
			gboolean _tmp20_ = FALSE;
			AppWindow* _tmp21_ = NULL;
			AppWindow* _tmp22_ = NULL;
#line 667 "/home/jens/Source/shotwell/src/CollectionPage.vala"
			_tmp14_ = app_window_get_instance ();
#line 667 "/home/jens/Source/shotwell/src/CollectionPage.vala"
			_tmp15_ = _tmp14_;
#line 667 "/home/jens/Source/shotwell/src/CollectionPage.vala"
			page_window_set_busy_cursor (G_TYPE_CHECK_INSTANCE_CAST (_tmp15_, TYPE_PAGE_WINDOW, PageWindow));
#line 667 "/home/jens/Source/shotwell/src/CollectionPage.vala"
			_g_object_unref0 (_tmp15_);
#line 668 "/home/jens/Source/shotwell/src/CollectionPage.vala"
			_tmp16_ = photos;
#line 668 "/home/jens/Source/shotwell/src/CollectionPage.vala"
			_tmp17_ = gee_abstract_list_get (G_TYPE_CHECK_INSTANCE_CAST (_tmp16_, GEE_TYPE_ABSTRACT_LIST, GeeAbstractList), 0);
#line 668 "/home/jens/Source/shotwell/src/CollectionPage.vala"
			_tmp18_ = (LibraryPhoto*) _tmp17_;
#line 668 "/home/jens/Source/shotwell/src/CollectionPage.vala"
			_tmp19_ = desktop;
#line 668 "/home/jens/Source/shotwell/src/CollectionPage.vala"
			_tmp20_ = screensaver;
#line 668 "/home/jens/Source/shotwell/src/CollectionPage.vala"
			desktop_integration_set_background (G_TYPE_CHECK_INSTANCE_CAST (_tmp18_, TYPE_PHOTO, Photo), _tmp19_, _tmp20_);
#line 668 "/home/jens/Source/shotwell/src/CollectionPage.vala"
			_g_object_unref0 (_tmp18_);
#line 669 "/home/jens/Source/shotwell/src/CollectionPage.vala"
			_tmp21_ = app_window_get_instance ();
#line 669 "/home/jens/Source/shotwell/src/CollectionPage.vala"
			_tmp22_ = _tmp21_;
#line 669 "/home/jens/Source/shotwell/src/CollectionPage.vala"
			page_window_set_normal_cursor (G_TYPE_CHECK_INSTANCE_CAST (_tmp22_, TYPE_PAGE_WINDOW, PageWindow));
#line 669 "/home/jens/Source/shotwell/src/CollectionPage.vala"
			_g_object_unref0 (_tmp22_);
#line 5961 "CollectionPage.c"
		}
#line 664 "/home/jens/Source/shotwell/src/CollectionPage.vala"
		_g_object_unref0 (dialog);
#line 5965 "CollectionPage.c"
	} else {
		GeeArrayList* _tmp23_ = NULL;
		gint _tmp24_ = 0;
		gint _tmp25_ = 0;
#line 671 "/home/jens/Source/shotwell/src/CollectionPage.vala"
		_tmp23_ = photos;
#line 671 "/home/jens/Source/shotwell/src/CollectionPage.vala"
		_tmp24_ = gee_abstract_collection_get_size (G_TYPE_CHECK_INSTANCE_CAST (_tmp23_, GEE_TYPE_COLLECTION, GeeCollection));
#line 671 "/home/jens/Source/shotwell/src/CollectionPage.vala"
		_tmp25_ = _tmp24_;
#line 671 "/home/jens/Source/shotwell/src/CollectionPage.vala"
		if (_tmp25_ > 1) {
#line 5978 "CollectionPage.c"
			SetBackgroundSlideshowDialog* dialog = NULL;
			SetBackgroundSlideshowDialog* _tmp26_ = NULL;
			gint delay = 0;
			SetBackgroundSlideshowDialog* _tmp27_ = NULL;
			gint _tmp28_ = 0;
			gboolean _tmp29_ = FALSE;
			gboolean _tmp30_ = FALSE;
			gboolean _tmp31_ = FALSE;
#line 672 "/home/jens/Source/shotwell/src/CollectionPage.vala"
			_tmp26_ = set_background_slideshow_dialog_new ();
#line 672 "/home/jens/Source/shotwell/src/CollectionPage.vala"
			g_object_ref_sink (_tmp26_);
#line 672 "/home/jens/Source/shotwell/src/CollectionPage.vala"
			dialog = _tmp26_;
#line 674 "/home/jens/Source/shotwell/src/CollectionPage.vala"
			_tmp27_ = dialog;
#line 674 "/home/jens/Source/shotwell/src/CollectionPage.vala"
			_tmp31_ = set_background_slideshow_dialog_execute (_tmp27_, &_tmp28_, &_tmp29_, &_tmp30_);
#line 674 "/home/jens/Source/shotwell/src/CollectionPage.vala"
			delay = _tmp28_;
#line 674 "/home/jens/Source/shotwell/src/CollectionPage.vala"
			desktop = _tmp29_;
#line 674 "/home/jens/Source/shotwell/src/CollectionPage.vala"
			screensaver = _tmp30_;
#line 674 "/home/jens/Source/shotwell/src/CollectionPage.vala"
			if (_tmp31_) {
#line 6005 "CollectionPage.c"
				AppWindow* _tmp32_ = NULL;
				AppWindow* _tmp33_ = NULL;
				GeeArrayList* _tmp34_ = NULL;
				gint _tmp35_ = 0;
				gboolean _tmp36_ = FALSE;
				gboolean _tmp37_ = FALSE;
				AppWindow* _tmp38_ = NULL;
				AppWindow* _tmp39_ = NULL;
#line 675 "/home/jens/Source/shotwell/src/CollectionPage.vala"
				_tmp32_ = app_window_get_instance ();
#line 675 "/home/jens/Source/shotwell/src/CollectionPage.vala"
				_tmp33_ = _tmp32_;
#line 675 "/home/jens/Source/shotwell/src/CollectionPage.vala"
				page_window_set_busy_cursor (G_TYPE_CHECK_INSTANCE_CAST (_tmp33_, TYPE_PAGE_WINDOW, PageWindow));
#line 675 "/home/jens/Source/shotwell/src/CollectionPage.vala"
				_g_object_unref0 (_tmp33_);
#line 676 "/home/jens/Source/shotwell/src/CollectionPage.vala"
				_tmp34_ = photos;
#line 676 "/home/jens/Source/shotwell/src/CollectionPage.vala"
				_tmp35_ = delay;
#line 676 "/home/jens/Source/shotwell/src/CollectionPage.vala"
				_tmp36_ = desktop;
#line 676 "/home/jens/Source/shotwell/src/CollectionPage.vala"
				_tmp37_ = screensaver;
#line 676 "/home/jens/Source/shotwell/src/CollectionPage.vala"
				desktop_integration_set_background_slideshow (G_TYPE_CHECK_INSTANCE_CAST (_tmp34_, GEE_TYPE_COLLECTION, GeeCollection), (gdouble) _tmp35_, COLLECTION_PAGE_DESKTOP_SLIDESHOW_TRANSITION_SEC, _tmp36_, _tmp37_);
#line 678 "/home/jens/Source/shotwell/src/CollectionPage.vala"
				_tmp38_ = app_window_get_instance ();
#line 678 "/home/jens/Source/shotwell/src/CollectionPage.vala"
				_tmp39_ = _tmp38_;
#line 678 "/home/jens/Source/shotwell/src/CollectionPage.vala"
				page_window_set_normal_cursor (G_TYPE_CHECK_INSTANCE_CAST (_tmp39_, TYPE_PAGE_WINDOW, PageWindow));
#line 678 "/home/jens/Source/shotwell/src/CollectionPage.vala"
				_g_object_unref0 (_tmp39_);
#line 6040 "CollectionPage.c"
			}
#line 671 "/home/jens/Source/shotwell/src/CollectionPage.vala"
			_g_object_unref0 (dialog);
#line 6044 "CollectionPage.c"
		}
	}
#line 658 "/home/jens/Source/shotwell/src/CollectionPage.vala"
	_g_object_unref0 (photos);
#line 6049 "CollectionPage.c"
}


static void collection_page_on_slideshow (CollectionPage* self) {
	ViewCollection* _tmp0_ = NULL;
	ViewCollection* _tmp1_ = NULL;
	gint _tmp2_ = 0;
	gboolean _tmp3_ = FALSE;
	GeeList* _tmp4_ = NULL;
	ViewCollection* _tmp5_ = NULL;
	ViewCollection* _tmp6_ = NULL;
	gint _tmp7_ = 0;
	gboolean _tmp8_ = FALSE;
	GeeList* sources = NULL;
	GeeList* _tmp15_ = NULL;
	gboolean _tmp16_ = FALSE;
	GeeList* _tmp17_ = NULL;
	Thumbnail* thumbnail = NULL;
	ViewCollection* _tmp21_ = NULL;
	ViewCollection* _tmp22_ = NULL;
	GeeList* _tmp23_ = NULL;
	gpointer _tmp24_ = NULL;
	DataSource* _tmp25_ = NULL;
	DataView* _tmp26_ = NULL;
	Thumbnail* _tmp27_ = NULL;
	Thumbnail* _tmp28_ = NULL;
	LibraryPhoto* photo = NULL;
	Thumbnail* _tmp29_ = NULL;
	MediaSource* _tmp30_ = NULL;
	LibraryPhoto* _tmp31_ = NULL;
	LibraryPhoto* _tmp32_ = NULL;
	AppWindow* _tmp33_ = NULL;
	AppWindow* _tmp34_ = NULL;
	LibraryPhotoSourceCollection* _tmp35_ = NULL;
	ViewCollection* _tmp36_ = NULL;
	ViewCollection* _tmp37_ = NULL;
	LibraryPhoto* _tmp38_ = NULL;
	SlideshowPage* _tmp39_ = NULL;
	SlideshowPage* _tmp40_ = NULL;
#line 683 "/home/jens/Source/shotwell/src/CollectionPage.vala"
	g_return_if_fail (IS_COLLECTION_PAGE (self));
#line 684 "/home/jens/Source/shotwell/src/CollectionPage.vala"
	_tmp0_ = page_get_view (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_PAGE, Page));
#line 684 "/home/jens/Source/shotwell/src/CollectionPage.vala"
	_tmp1_ = _tmp0_;
#line 684 "/home/jens/Source/shotwell/src/CollectionPage.vala"
	_tmp2_ = data_collection_get_count (G_TYPE_CHECK_INSTANCE_CAST (_tmp1_, TYPE_DATA_COLLECTION, DataCollection));
#line 684 "/home/jens/Source/shotwell/src/CollectionPage.vala"
	_tmp3_ = _tmp2_ == 0;
#line 684 "/home/jens/Source/shotwell/src/CollectionPage.vala"
	_data_collection_unref0 (_tmp1_);
#line 684 "/home/jens/Source/shotwell/src/CollectionPage.vala"
	if (_tmp3_) {
#line 685 "/home/jens/Source/shotwell/src/CollectionPage.vala"
		return;
#line 6105 "CollectionPage.c"
	}
#line 688 "/home/jens/Source/shotwell/src/CollectionPage.vala"
	_tmp5_ = page_get_view (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_PAGE, Page));
#line 688 "/home/jens/Source/shotwell/src/CollectionPage.vala"
	_tmp6_ = _tmp5_;
#line 688 "/home/jens/Source/shotwell/src/CollectionPage.vala"
	_tmp7_ = view_collection_get_selected_count (_tmp6_);
#line 688 "/home/jens/Source/shotwell/src/CollectionPage.vala"
	_tmp8_ = _tmp7_ > 0;
#line 688 "/home/jens/Source/shotwell/src/CollectionPage.vala"
	_data_collection_unref0 (_tmp6_);
#line 688 "/home/jens/Source/shotwell/src/CollectionPage.vala"
	if (_tmp8_) {
#line 6119 "CollectionPage.c"
		ViewCollection* _tmp9_ = NULL;
		ViewCollection* _tmp10_ = NULL;
		GeeList* _tmp11_ = NULL;
#line 689 "/home/jens/Source/shotwell/src/CollectionPage.vala"
		_tmp9_ = page_get_view (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_PAGE, Page));
#line 689 "/home/jens/Source/shotwell/src/CollectionPage.vala"
		_tmp10_ = _tmp9_;
#line 689 "/home/jens/Source/shotwell/src/CollectionPage.vala"
		_tmp11_ = view_collection_get_selected_sources_of_type (_tmp10_, TYPE_LIBRARY_PHOTO);
#line 689 "/home/jens/Source/shotwell/src/CollectionPage.vala"
		_g_object_unref0 (_tmp4_);
#line 689 "/home/jens/Source/shotwell/src/CollectionPage.vala"
		_tmp4_ = _tmp11_;
#line 689 "/home/jens/Source/shotwell/src/CollectionPage.vala"
		_data_collection_unref0 (_tmp10_);
#line 6135 "CollectionPage.c"
	} else {
		ViewCollection* _tmp12_ = NULL;
		ViewCollection* _tmp13_ = NULL;
		GeeList* _tmp14_ = NULL;
#line 690 "/home/jens/Source/shotwell/src/CollectionPage.vala"
		_tmp12_ = page_get_view (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_PAGE, Page));
#line 690 "/home/jens/Source/shotwell/src/CollectionPage.vala"
		_tmp13_ = _tmp12_;
#line 690 "/home/jens/Source/shotwell/src/CollectionPage.vala"
		_tmp14_ = view_collection_get_sources_of_type (_tmp13_, TYPE_LIBRARY_PHOTO);
#line 690 "/home/jens/Source/shotwell/src/CollectionPage.vala"
		_g_object_unref0 (_tmp4_);
#line 690 "/home/jens/Source/shotwell/src/CollectionPage.vala"
		_tmp4_ = _tmp14_;
#line 690 "/home/jens/Source/shotwell/src/CollectionPage.vala"
		_data_collection_unref0 (_tmp13_);
#line 6152 "CollectionPage.c"
	}
#line 688 "/home/jens/Source/shotwell/src/CollectionPage.vala"
	_tmp15_ = _g_object_ref0 (_tmp4_);
#line 688 "/home/jens/Source/shotwell/src/CollectionPage.vala"
	sources = _tmp15_;
#line 691 "/home/jens/Source/shotwell/src/CollectionPage.vala"
	_tmp17_ = sources;
#line 691 "/home/jens/Source/shotwell/src/CollectionPage.vala"
	if (_tmp17_ == NULL) {
#line 691 "/home/jens/Source/shotwell/src/CollectionPage.vala"
		_tmp16_ = TRUE;
#line 6164 "CollectionPage.c"
	} else {
		GeeList* _tmp18_ = NULL;
		gint _tmp19_ = 0;
		gint _tmp20_ = 0;
#line 691 "/home/jens/Source/shotwell/src/CollectionPage.vala"
		_tmp18_ = sources;
#line 691 "/home/jens/Source/shotwell/src/CollectionPage.vala"
		_tmp19_ = gee_collection_get_size (G_TYPE_CHECK_INSTANCE_CAST (_tmp18_, GEE_TYPE_COLLECTION, GeeCollection));
#line 691 "/home/jens/Source/shotwell/src/CollectionPage.vala"
		_tmp20_ = _tmp19_;
#line 691 "/home/jens/Source/shotwell/src/CollectionPage.vala"
		_tmp16_ = _tmp20_ == 0;
#line 6177 "CollectionPage.c"
	}
#line 691 "/home/jens/Source/shotwell/src/CollectionPage.vala"
	if (_tmp16_) {
#line 692 "/home/jens/Source/shotwell/src/CollectionPage.vala"
		_g_object_unref0 (sources);
#line 692 "/home/jens/Source/shotwell/src/CollectionPage.vala"
		_g_object_unref0 (_tmp4_);
#line 692 "/home/jens/Source/shotwell/src/CollectionPage.vala"
		return;
#line 6187 "CollectionPage.c"
	}
#line 694 "/home/jens/Source/shotwell/src/CollectionPage.vala"
	_tmp21_ = page_get_view (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_PAGE, Page));
#line 694 "/home/jens/Source/shotwell/src/CollectionPage.vala"
	_tmp22_ = _tmp21_;
#line 694 "/home/jens/Source/shotwell/src/CollectionPage.vala"
	_tmp23_ = sources;
#line 694 "/home/jens/Source/shotwell/src/CollectionPage.vala"
	_tmp24_ = gee_list_get (_tmp23_, 0);
#line 694 "/home/jens/Source/shotwell/src/CollectionPage.vala"
	_tmp25_ = (DataSource*) _tmp24_;
#line 694 "/home/jens/Source/shotwell/src/CollectionPage.vala"
	_tmp26_ = view_collection_get_view_for_source (_tmp22_, _tmp25_);
#line 694 "/home/jens/Source/shotwell/src/CollectionPage.vala"
	_tmp27_ = G_TYPE_CHECK_INSTANCE_CAST (_tmp26_, TYPE_THUMBNAIL, Thumbnail);
#line 694 "/home/jens/Source/shotwell/src/CollectionPage.vala"
	_g_object_unref0 (_tmp25_);
#line 694 "/home/jens/Source/shotwell/src/CollectionPage.vala"
	_data_collection_unref0 (_tmp22_);
#line 694 "/home/jens/Source/shotwell/src/CollectionPage.vala"
	thumbnail = _tmp27_;
#line 695 "/home/jens/Source/shotwell/src/CollectionPage.vala"
	_tmp28_ = thumbnail;
#line 695 "/home/jens/Source/shotwell/src/CollectionPage.vala"
	if (_tmp28_ == NULL) {
#line 696 "/home/jens/Source/shotwell/src/CollectionPage.vala"
		_g_object_unref0 (thumbnail);
#line 696 "/home/jens/Source/shotwell/src/CollectionPage.vala"
		_g_object_unref0 (sources);
#line 696 "/home/jens/Source/shotwell/src/CollectionPage.vala"
		_g_object_unref0 (_tmp4_);
#line 696 "/home/jens/Source/shotwell/src/CollectionPage.vala"
		return;
#line 6221 "CollectionPage.c"
	}
#line 698 "/home/jens/Source/shotwell/src/CollectionPage.vala"
	_tmp29_ = thumbnail;
#line 698 "/home/jens/Source/shotwell/src/CollectionPage.vala"
	_tmp30_ = thumbnail_get_media_source (_tmp29_);
#line 698 "/home/jens/Source/shotwell/src/CollectionPage.vala"
	_tmp31_ = G_TYPE_CHECK_INSTANCE_TYPE (_tmp30_, TYPE_LIBRARY_PHOTO) ? ((LibraryPhoto*) _tmp30_) : NULL;
#line 698 "/home/jens/Source/shotwell/src/CollectionPage.vala"
	if (_tmp31_ == NULL) {
#line 698 "/home/jens/Source/shotwell/src/CollectionPage.vala"
		_g_object_unref0 (_tmp30_);
#line 6233 "CollectionPage.c"
	}
#line 698 "/home/jens/Source/shotwell/src/CollectionPage.vala"
	photo = _tmp31_;
#line 699 "/home/jens/Source/shotwell/src/CollectionPage.vala"
	_tmp32_ = photo;
#line 699 "/home/jens/Source/shotwell/src/CollectionPage.vala"
	if (_tmp32_ == NULL) {
#line 700 "/home/jens/Source/shotwell/src/CollectionPage.vala"
		_g_object_unref0 (photo);
#line 700 "/home/jens/Source/shotwell/src/CollectionPage.vala"
		_g_object_unref0 (thumbnail);
#line 700 "/home/jens/Source/shotwell/src/CollectionPage.vala"
		_g_object_unref0 (sources);
#line 700 "/home/jens/Source/shotwell/src/CollectionPage.vala"
		_g_object_unref0 (_tmp4_);
#line 700 "/home/jens/Source/shotwell/src/CollectionPage.vala"
		return;
#line 6251 "CollectionPage.c"
	}
#line 702 "/home/jens/Source/shotwell/src/CollectionPage.vala"
	_tmp33_ = app_window_get_instance ();
#line 702 "/home/jens/Source/shotwell/src/CollectionPage.vala"
	_tmp34_ = _tmp33_;
#line 702 "/home/jens/Source/shotwell/src/CollectionPage.vala"
	_tmp35_ = library_photo_global;
#line 702 "/home/jens/Source/shotwell/src/CollectionPage.vala"
	_tmp36_ = page_get_view (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_PAGE, Page));
#line 702 "/home/jens/Source/shotwell/src/CollectionPage.vala"
	_tmp37_ = _tmp36_;
#line 702 "/home/jens/Source/shotwell/src/CollectionPage.vala"
	_tmp38_ = photo;
#line 702 "/home/jens/Source/shotwell/src/CollectionPage.vala"
	_tmp39_ = slideshow_page_new (G_TYPE_CHECK_INSTANCE_CAST (_tmp35_, TYPE_SOURCE_COLLECTION, SourceCollection), _tmp37_, G_TYPE_CHECK_INSTANCE_CAST (_tmp38_, TYPE_PHOTO, Photo));
#line 702 "/home/jens/Source/shotwell/src/CollectionPage.vala"
	g_object_ref_sink (_tmp39_);
#line 702 "/home/jens/Source/shotwell/src/CollectionPage.vala"
	_tmp40_ = _tmp39_;
#line 702 "/home/jens/Source/shotwell/src/CollectionPage.vala"
	app_window_go_fullscreen (_tmp34_, G_TYPE_CHECK_INSTANCE_CAST (_tmp40_, TYPE_PAGE, Page));
#line 702 "/home/jens/Source/shotwell/src/CollectionPage.vala"
	_g_object_unref0 (_tmp40_);
#line 702 "/home/jens/Source/shotwell/src/CollectionPage.vala"
	_data_collection_unref0 (_tmp37_);
#line 702 "/home/jens/Source/shotwell/src/CollectionPage.vala"
	_g_object_unref0 (_tmp34_);
#line 683 "/home/jens/Source/shotwell/src/CollectionPage.vala"
	_g_object_unref0 (photo);
#line 683 "/home/jens/Source/shotwell/src/CollectionPage.vala"
	_g_object_unref0 (thumbnail);
#line 683 "/home/jens/Source/shotwell/src/CollectionPage.vala"
	_g_object_unref0 (sources);
#line 683 "/home/jens/Source/shotwell/src/CollectionPage.vala"
	_g_object_unref0 (_tmp4_);
#line 6287 "CollectionPage.c"
}


static gboolean collection_page_real_on_ctrl_pressed (Page* base, GdkEventKey* event) {
	CollectionPage * self;
	gboolean result = FALSE;
	GtkToolButton* rotate_button = NULL;
	GtkBuilder* _tmp0_ = NULL;
	GObject* _tmp1_ = NULL;
	GtkToolButton* _tmp2_ = NULL;
	GtkToolButton* _tmp3_ = NULL;
	GdkEventKey* _tmp7_ = NULL;
	gboolean _tmp8_ = FALSE;
#line 706 "/home/jens/Source/shotwell/src/CollectionPage.vala"
	self = G_TYPE_CHECK_INSTANCE_CAST (base, TYPE_COLLECTION_PAGE, CollectionPage);
#line 707 "/home/jens/Source/shotwell/src/CollectionPage.vala"
	_tmp0_ = G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_PAGE, Page)->builder;
#line 707 "/home/jens/Source/shotwell/src/CollectionPage.vala"
	_tmp1_ = gtk_builder_get_object (_tmp0_, "ToolRotate");
#line 707 "/home/jens/Source/shotwell/src/CollectionPage.vala"
	_tmp2_ = _g_object_ref0 (G_TYPE_CHECK_INSTANCE_TYPE (_tmp1_, gtk_tool_button_get_type ()) ? ((GtkToolButton*) _tmp1_) : NULL);
#line 707 "/home/jens/Source/shotwell/src/CollectionPage.vala"
	rotate_button = _tmp2_;
#line 708 "/home/jens/Source/shotwell/src/CollectionPage.vala"
	_tmp3_ = rotate_button;
#line 708 "/home/jens/Source/shotwell/src/CollectionPage.vala"
	if (_tmp3_ != NULL) {
#line 6315 "CollectionPage.c"
		GtkToolButton* _tmp4_ = NULL;
		GtkToolButton* _tmp5_ = NULL;
		GtkToolButton* _tmp6_ = NULL;
#line 709 "/home/jens/Source/shotwell/src/CollectionPage.vala"
		_tmp4_ = rotate_button;
#line 709 "/home/jens/Source/shotwell/src/CollectionPage.vala"
		gtk_actionable_set_action_name (G_TYPE_CHECK_INSTANCE_CAST (_tmp4_, GTK_TYPE_ACTIONABLE, GtkActionable), "win.RotateCounterclockwise");
#line 710 "/home/jens/Source/shotwell/src/CollectionPage.vala"
		_tmp5_ = rotate_button;
#line 710 "/home/jens/Source/shotwell/src/CollectionPage.vala"
		gtk_tool_button_set_icon_name (_tmp5_, "object-rotate-left");
#line 711 "/home/jens/Source/shotwell/src/CollectionPage.vala"
		_tmp6_ = rotate_button;
#line 711 "/home/jens/Source/shotwell/src/CollectionPage.vala"
		gtk_tool_item_set_tooltip_text (G_TYPE_CHECK_INSTANCE_CAST (_tmp6_, gtk_tool_item_get_type (), GtkToolItem), RESOURCES_ROTATE_CCW_TOOLTIP);
#line 6331 "CollectionPage.c"
	}
#line 714 "/home/jens/Source/shotwell/src/CollectionPage.vala"
	_tmp7_ = event;
#line 714 "/home/jens/Source/shotwell/src/CollectionPage.vala"
	_tmp8_ = PAGE_CLASS (collection_page_parent_class)->on_ctrl_pressed (G_TYPE_CHECK_INSTANCE_CAST (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_MEDIA_PAGE, MediaPage), TYPE_PAGE, Page), _tmp7_);
#line 714 "/home/jens/Source/shotwell/src/CollectionPage.vala"
	result = _tmp8_;
#line 714 "/home/jens/Source/shotwell/src/CollectionPage.vala"
	_g_object_unref0 (rotate_button);
#line 714 "/home/jens/Source/shotwell/src/CollectionPage.vala"
	return result;
#line 6343 "CollectionPage.c"
}


static gboolean collection_page_real_on_ctrl_released (Page* base, GdkEventKey* event) {
	CollectionPage * self;
	gboolean result = FALSE;
	GtkToolButton* rotate_button = NULL;
	GtkBuilder* _tmp0_ = NULL;
	GObject* _tmp1_ = NULL;
	GtkToolButton* _tmp2_ = NULL;
	GtkToolButton* _tmp3_ = NULL;
	GdkEventKey* _tmp7_ = NULL;
	gboolean _tmp8_ = FALSE;
#line 717 "/home/jens/Source/shotwell/src/CollectionPage.vala"
	self = G_TYPE_CHECK_INSTANCE_CAST (base, TYPE_COLLECTION_PAGE, CollectionPage);
#line 718 "/home/jens/Source/shotwell/src/CollectionPage.vala"
	_tmp0_ = G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_PAGE, Page)->builder;
#line 718 "/home/jens/Source/shotwell/src/CollectionPage.vala"
	_tmp1_ = gtk_builder_get_object (_tmp0_, "ToolRotate");
#line 718 "/home/jens/Source/shotwell/src/CollectionPage.vala"
	_tmp2_ = _g_object_ref0 (G_TYPE_CHECK_INSTANCE_TYPE (_tmp1_, gtk_tool_button_get_type ()) ? ((GtkToolButton*) _tmp1_) : NULL);
#line 718 "/home/jens/Source/shotwell/src/CollectionPage.vala"
	rotate_button = _tmp2_;
#line 719 "/home/jens/Source/shotwell/src/CollectionPage.vala"
	_tmp3_ = rotate_button;
#line 719 "/home/jens/Source/shotwell/src/CollectionPage.vala"
	if (_tmp3_ != NULL) {
#line 6371 "CollectionPage.c"
		GtkToolButton* _tmp4_ = NULL;
		GtkToolButton* _tmp5_ = NULL;
		GtkToolButton* _tmp6_ = NULL;
#line 720 "/home/jens/Source/shotwell/src/CollectionPage.vala"
		_tmp4_ = rotate_button;
#line 720 "/home/jens/Source/shotwell/src/CollectionPage.vala"
		gtk_actionable_set_action_name (G_TYPE_CHECK_INSTANCE_CAST (_tmp4_, GTK_TYPE_ACTIONABLE, GtkActionable), "win.RotateClockwise");
#line 721 "/home/jens/Source/shotwell/src/CollectionPage.vala"
		_tmp5_ = rotate_button;
#line 721 "/home/jens/Source/shotwell/src/CollectionPage.vala"
		gtk_tool_button_set_icon_name (_tmp5_, "object-rotate-right");
#line 722 "/home/jens/Source/shotwell/src/CollectionPage.vala"
		_tmp6_ = rotate_button;
#line 722 "/home/jens/Source/shotwell/src/CollectionPage.vala"
		gtk_tool_item_set_tooltip_text (G_TYPE_CHECK_INSTANCE_CAST (_tmp6_, gtk_tool_item_get_type (), GtkToolItem), RESOURCES_ROTATE_CW_TOOLTIP);
#line 6387 "CollectionPage.c"
	}
#line 725 "/home/jens/Source/shotwell/src/CollectionPage.vala"
	_tmp7_ = event;
#line 725 "/home/jens/Source/shotwell/src/CollectionPage.vala"
	_tmp8_ = PAGE_CLASS (collection_page_parent_class)->on_ctrl_released (G_TYPE_CHECK_INSTANCE_CAST (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_MEDIA_PAGE, MediaPage), TYPE_PAGE, Page), _tmp7_);
#line 725 "/home/jens/Source/shotwell/src/CollectionPage.vala"
	result = _tmp8_;
#line 725 "/home/jens/Source/shotwell/src/CollectionPage.vala"
	_g_object_unref0 (rotate_button);
#line 725 "/home/jens/Source/shotwell/src/CollectionPage.vala"
	return result;
#line 6399 "CollectionPage.c"
}


static gpointer _view_filter_ref0 (gpointer self) {
#line 729 "/home/jens/Source/shotwell/src/CollectionPage.vala"
	return self ? view_filter_ref (self) : NULL;
#line 6406 "CollectionPage.c"
}


static SearchViewFilter* collection_page_real_get_search_view_filter (CheckerboardPage* base) {
	CollectionPage * self;
	SearchViewFilter* result = NULL;
	CollectionPageCollectionSearchViewFilter* _tmp0_ = NULL;
	SearchViewFilter* _tmp1_ = NULL;
#line 728 "/home/jens/Source/shotwell/src/CollectionPage.vala"
	self = G_TYPE_CHECK_INSTANCE_CAST (base, TYPE_COLLECTION_PAGE, CollectionPage);
#line 729 "/home/jens/Source/shotwell/src/CollectionPage.vala"
	_tmp0_ = self->priv->search_filter;
#line 729 "/home/jens/Source/shotwell/src/CollectionPage.vala"
	_tmp1_ = _view_filter_ref0 (G_TYPE_CHECK_INSTANCE_CAST (_tmp0_, TYPE_SEARCH_VIEW_FILTER, SearchViewFilter));
#line 729 "/home/jens/Source/shotwell/src/CollectionPage.vala"
	result = _tmp1_;
#line 729 "/home/jens/Source/shotwell/src/CollectionPage.vala"
	return result;
#line 6425 "CollectionPage.c"
}


static guint collection_page_collection_search_view_filter_real_get_criteria (SearchViewFilter* base) {
	CollectionPageCollectionSearchViewFilter * self;
	guint result = 0U;
#line 23 "/home/jens/Source/shotwell/src/CollectionPage.vala"
	self = G_TYPE_CHECK_INSTANCE_CAST (base, COLLECTION_PAGE_TYPE_COLLECTION_SEARCH_VIEW_FILTER, CollectionPageCollectionSearchViewFilter);
#line 24 "/home/jens/Source/shotwell/src/CollectionPage.vala"
	result = (guint) ((((SEARCH_FILTER_CRITERIA_TEXT | SEARCH_FILTER_CRITERIA_FLAG) | SEARCH_FILTER_CRITERIA_MEDIA) | SEARCH_FILTER_CRITERIA_RATING) | SEARCH_FILTER_CRITERIA_SAVEDSEARCH);
#line 24 "/home/jens/Source/shotwell/src/CollectionPage.vala"
	return result;
#line 6438 "CollectionPage.c"
}


CollectionPageCollectionSearchViewFilter* collection_page_collection_search_view_filter_construct (GType object_type) {
	CollectionPageCollectionSearchViewFilter* self = NULL;
#line 22 "/home/jens/Source/shotwell/src/CollectionPage.vala"
	self = (CollectionPageCollectionSearchViewFilter*) default_search_view_filter_construct (object_type);
#line 22 "/home/jens/Source/shotwell/src/CollectionPage.vala"
	return self;
#line 6448 "CollectionPage.c"
}


CollectionPageCollectionSearchViewFilter* collection_page_collection_search_view_filter_new (void) {
#line 22 "/home/jens/Source/shotwell/src/CollectionPage.vala"
	return collection_page_collection_search_view_filter_construct (COLLECTION_PAGE_TYPE_COLLECTION_SEARCH_VIEW_FILTER);
#line 6455 "CollectionPage.c"
}


static void collection_page_collection_search_view_filter_class_init (CollectionPageCollectionSearchViewFilterClass * klass) {
#line 22 "/home/jens/Source/shotwell/src/CollectionPage.vala"
	collection_page_collection_search_view_filter_parent_class = g_type_class_peek_parent (klass);
#line 22 "/home/jens/Source/shotwell/src/CollectionPage.vala"
	((SearchViewFilterClass *) klass)->get_criteria = collection_page_collection_search_view_filter_real_get_criteria;
#line 6464 "CollectionPage.c"
}


static void collection_page_collection_search_view_filter_instance_init (CollectionPageCollectionSearchViewFilter * self) {
}


GType collection_page_collection_search_view_filter_get_type (void) {
	static volatile gsize collection_page_collection_search_view_filter_type_id__volatile = 0;
	if (g_once_init_enter (&collection_page_collection_search_view_filter_type_id__volatile)) {
		static const GTypeInfo g_define_type_info = { sizeof (CollectionPageCollectionSearchViewFilterClass), (GBaseInitFunc) NULL, (GBaseFinalizeFunc) NULL, (GClassInitFunc) collection_page_collection_search_view_filter_class_init, (GClassFinalizeFunc) NULL, NULL, sizeof (CollectionPageCollectionSearchViewFilter), 0, (GInstanceInitFunc) collection_page_collection_search_view_filter_instance_init, NULL };
		GType collection_page_collection_search_view_filter_type_id;
		collection_page_collection_search_view_filter_type_id = g_type_register_static (TYPE_DEFAULT_SEARCH_VIEW_FILTER, "CollectionPageCollectionSearchViewFilter", &g_define_type_info, 0);
		g_once_init_leave (&collection_page_collection_search_view_filter_type_id__volatile, collection_page_collection_search_view_filter_type_id);
	}
	return collection_page_collection_search_view_filter_type_id__volatile;
}


static void collection_page_class_init (CollectionPageClass * klass) {
#line 19 "/home/jens/Source/shotwell/src/CollectionPage.vala"
	collection_page_parent_class = g_type_class_peek_parent (klass);
#line 19 "/home/jens/Source/shotwell/src/CollectionPage.vala"
	g_type_class_add_private (klass, sizeof (CollectionPagePrivate));
#line 19 "/home/jens/Source/shotwell/src/CollectionPage.vala"
	((PageClass *) klass)->get_toolbar = collection_page_real_get_toolbar;
#line 19 "/home/jens/Source/shotwell/src/CollectionPage.vala"
	((PageClass *) klass)->init_collect_ui_filenames = collection_page_real_init_collect_ui_filenames;
#line 19 "/home/jens/Source/shotwell/src/CollectionPage.vala"
	((PageClass *) klass)->add_actions = collection_page_real_add_actions;
#line 19 "/home/jens/Source/shotwell/src/CollectionPage.vala"
	((PageClass *) klass)->remove_actions = collection_page_real_remove_actions;
#line 19 "/home/jens/Source/shotwell/src/CollectionPage.vala"
	((PageClass *) klass)->init_collect_injection_groups = collection_page_real_init_collect_injection_groups;
#line 19 "/home/jens/Source/shotwell/src/CollectionPage.vala"
	((PageClass *) klass)->init_actions = collection_page_real_init_actions;
#line 19 "/home/jens/Source/shotwell/src/CollectionPage.vala"
	((PageClass *) klass)->update_actions = collection_page_real_update_actions;
#line 19 "/home/jens/Source/shotwell/src/CollectionPage.vala"
	((CheckerboardPageClass *) klass)->on_item_activated = collection_page_real_on_item_activated;
#line 19 "/home/jens/Source/shotwell/src/CollectionPage.vala"
	((PageClass *) klass)->on_app_key_pressed = collection_page_real_on_app_key_pressed;
#line 19 "/home/jens/Source/shotwell/src/CollectionPage.vala"
	((MediaPageClass *) klass)->on_export = collection_page_real_on_export;
#line 19 "/home/jens/Source/shotwell/src/CollectionPage.vala"
	((PageClass *) klass)->on_ctrl_pressed = collection_page_real_on_ctrl_pressed;
#line 19 "/home/jens/Source/shotwell/src/CollectionPage.vala"
	((PageClass *) klass)->on_ctrl_released = collection_page_real_on_ctrl_released;
#line 19 "/home/jens/Source/shotwell/src/CollectionPage.vala"
	((CheckerboardPageClass *) klass)->get_search_view_filter = collection_page_real_get_search_view_filter;
#line 19 "/home/jens/Source/shotwell/src/CollectionPage.vala"
	G_OBJECT_CLASS (klass)->finalize = collection_page_finalize;
#line 6517 "CollectionPage.c"
}


static void collection_page_instance_init (CollectionPage * self) {
	CollectionPageCollectionSearchViewFilter* _tmp0_ = NULL;
#line 19 "/home/jens/Source/shotwell/src/CollectionPage.vala"
	self->priv = COLLECTION_PAGE_GET_PRIVATE (self);
#line 29 "/home/jens/Source/shotwell/src/CollectionPage.vala"
	self->priv->exporter = NULL;
#line 30 "/home/jens/Source/shotwell/src/CollectionPage.vala"
	_tmp0_ = collection_page_collection_search_view_filter_new ();
#line 30 "/home/jens/Source/shotwell/src/CollectionPage.vala"
	self->priv->search_filter = _tmp0_;
#line 6531 "CollectionPage.c"
}


static void collection_page_finalize (GObject* obj) {
	CollectionPage * self;
#line 19 "/home/jens/Source/shotwell/src/CollectionPage.vala"
	self = G_TYPE_CHECK_INSTANCE_CAST (obj, TYPE_COLLECTION_PAGE, CollectionPage);
#line 29 "/home/jens/Source/shotwell/src/CollectionPage.vala"
	_exporter_ui_unref0 (self->priv->exporter);
#line 30 "/home/jens/Source/shotwell/src/CollectionPage.vala"
	_view_filter_unref0 (self->priv->search_filter);
#line 19 "/home/jens/Source/shotwell/src/CollectionPage.vala"
	G_OBJECT_CLASS (collection_page_parent_class)->finalize (obj);
#line 6545 "CollectionPage.c"
}


GType collection_page_get_type (void) {
	static volatile gsize collection_page_type_id__volatile = 0;
	if (g_once_init_enter (&collection_page_type_id__volatile)) {
		static const GTypeInfo g_define_type_info = { sizeof (CollectionPageClass), (GBaseInitFunc) NULL, (GBaseFinalizeFunc) NULL, (GClassInitFunc) collection_page_class_init, (GClassFinalizeFunc) NULL, NULL, sizeof (CollectionPage), 0, (GInstanceInitFunc) collection_page_instance_init, NULL };
		GType collection_page_type_id;
		collection_page_type_id = g_type_register_static (TYPE_MEDIA_PAGE, "CollectionPage", &g_define_type_info, G_TYPE_FLAG_ABSTRACT);
		g_once_init_leave (&collection_page_type_id__volatile, collection_page_type_id);
	}
	return collection_page_type_id__volatile;
}


static void _vala_array_destroy (gpointer array, gint array_length, GDestroyNotify destroy_func) {
	if ((array != NULL) && (destroy_func != NULL)) {
		int i;
		for (i = 0; i < array_length; i = i + 1) {
			if (((gpointer*) array)[i] != NULL) {
				destroy_func (((gpointer*) array)[i]);
			}
		}
	}
}


static void _vala_array_free (gpointer array, gint array_length, GDestroyNotify destroy_func) {
	_vala_array_destroy (array, array_length, destroy_func);
	g_free (array);
}