summaryrefslogtreecommitdiff
path: root/src/SlideshowPage.c
blob: ea177d1d39a581e8853cb2fa42f6d852eba5babd (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
/* SlideshowPage.c generated by valac 0.34.4, the Vala compiler
 * generated from SlideshowPage.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 <cairo.h>
#include <gdk-pixbuf/gdk-pixbuf.h>
#include <glib/gi18n-lib.h>
#include <float.h>
#include <math.h>
#include <pango/pango.h>
#include <pango/pangocairo.h>


#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;
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;

#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;
typedef struct _SinglePhotoPagePrivate SinglePhotoPagePrivate;

#define TYPE_ZOOM_BUFFER (zoom_buffer_get_type ())
#define ZOOM_BUFFER(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_ZOOM_BUFFER, ZoomBuffer))
#define ZOOM_BUFFER_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_ZOOM_BUFFER, ZoomBufferClass))
#define IS_ZOOM_BUFFER(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_ZOOM_BUFFER))
#define IS_ZOOM_BUFFER_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_ZOOM_BUFFER))
#define ZOOM_BUFFER_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_ZOOM_BUFFER, ZoomBufferClass))

typedef struct _ZoomBuffer ZoomBuffer;
typedef struct _ZoomBufferClass ZoomBufferClass;

#define TYPE_DIMENSIONS (dimensions_get_type ())
typedef struct _Dimensions Dimensions;

#define SINGLE_PHOTO_PAGE_TYPE_UPDATE_REASON (single_photo_page_update_reason_get_type ())

#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 _SlideshowPagePrivate SlideshowPagePrivate;

#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_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_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_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_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_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_PIXBUF_CACHE (pixbuf_cache_get_type ())
#define PIXBUF_CACHE(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_PIXBUF_CACHE, PixbufCache))
#define PIXBUF_CACHE_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_PIXBUF_CACHE, PixbufCacheClass))
#define IS_PIXBUF_CACHE(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_PIXBUF_CACHE))
#define IS_PIXBUF_CACHE_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_PIXBUF_CACHE))
#define PIXBUF_CACHE_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_PIXBUF_CACHE, PixbufCacheClass))

typedef struct _PixbufCache PixbufCache;
typedef struct _PixbufCacheClass PixbufCacheClass;

#define TYPE_SCREENSAVER (screensaver_get_type ())
#define SCREENSAVER(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_SCREENSAVER, Screensaver))
#define SCREENSAVER_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_SCREENSAVER, ScreensaverClass))
#define IS_SCREENSAVER(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_SCREENSAVER))
#define IS_SCREENSAVER_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_SCREENSAVER))
#define SCREENSAVER_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_SCREENSAVER, ScreensaverClass))

typedef struct _Screensaver Screensaver;
typedef struct _ScreensaverClass ScreensaverClass;
#define _data_collection_unref0(var) ((var == NULL) ? NULL : (var = (data_collection_unref (var), NULL)))
#define _g_object_unref0(var) ((var == NULL) ? NULL : (var = (g_object_unref (var), NULL)))
#define _g_timer_destroy0(var) ((var == NULL) ? NULL : (var = (g_timer_destroy (var), NULL)))
#define _screensaver_unref0(var) ((var == NULL) ? NULL : (var = (screensaver_unref (var), NULL)))

#define TYPE_TRANSITION_EFFECTS_MANAGER (transition_effects_manager_get_type ())
#define TRANSITION_EFFECTS_MANAGER(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_TRANSITION_EFFECTS_MANAGER, TransitionEffectsManager))
#define TRANSITION_EFFECTS_MANAGER_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_TRANSITION_EFFECTS_MANAGER, TransitionEffectsManagerClass))
#define IS_TRANSITION_EFFECTS_MANAGER(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_TRANSITION_EFFECTS_MANAGER))
#define IS_TRANSITION_EFFECTS_MANAGER_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_TRANSITION_EFFECTS_MANAGER))
#define TRANSITION_EFFECTS_MANAGER_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_TRANSITION_EFFECTS_MANAGER, TransitionEffectsManagerClass))

typedef struct _TransitionEffectsManager TransitionEffectsManager;
typedef struct _TransitionEffectsManagerClass TransitionEffectsManagerClass;
#define _transition_effects_manager_unref0(var) ((var == NULL) ? NULL : (var = (transition_effects_manager_unref (var), NULL)))

#define PIXBUF_CACHE_TYPE_PHOTO_TYPE (pixbuf_cache_photo_type_get_type ())

#define TYPE_SCALING (scaling_get_type ())

#define TYPE_SCALE_CONSTRAINT (scale_constraint_get_type ())
typedef struct _Scaling Scaling;

#define TYPE_DIRECTION (direction_get_type ())

#define PHOTO_TYPE_EXCEPTION (photo_exception_get_type ())
#define _g_free0(var) (var = (g_free (var), NULL))

#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_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 _g_error_free0(var) ((var == NULL) ? NULL : (var = (g_error_free (var), NULL)))

#define BACKGROUND_JOB_TYPE_JOB_PRIORITY (background_job_job_priority_get_type ())

#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 SLIDESHOW_PAGE_TYPE_SETTINGS_DIALOG (slideshow_page_settings_dialog_get_type ())
#define SLIDESHOW_PAGE_SETTINGS_DIALOG(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), SLIDESHOW_PAGE_TYPE_SETTINGS_DIALOG, SlideshowPageSettingsDialog))
#define SLIDESHOW_PAGE_SETTINGS_DIALOG_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), SLIDESHOW_PAGE_TYPE_SETTINGS_DIALOG, SlideshowPageSettingsDialogClass))
#define SLIDESHOW_PAGE_IS_SETTINGS_DIALOG(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), SLIDESHOW_PAGE_TYPE_SETTINGS_DIALOG))
#define SLIDESHOW_PAGE_IS_SETTINGS_DIALOG_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), SLIDESHOW_PAGE_TYPE_SETTINGS_DIALOG))
#define SLIDESHOW_PAGE_SETTINGS_DIALOG_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), SLIDESHOW_PAGE_TYPE_SETTINGS_DIALOG, SlideshowPageSettingsDialogClass))

typedef struct _SlideshowPageSettingsDialog SlideshowPageSettingsDialog;
typedef struct _SlideshowPageSettingsDialogClass SlideshowPageSettingsDialogClass;
#define _pango_attribute_destroy0(var) ((var == NULL) ? NULL : (var = (pango_attribute_destroy (var), NULL)))
#define _pango_attr_list_unref0(var) ((var == NULL) ? NULL : (var = (pango_attr_list_unref (var), NULL)))
typedef struct _SlideshowPageSettingsDialogPrivate SlideshowPageSettingsDialogPrivate;

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);
};

struct _Dimensions {
	gint width;
	gint height;
};

typedef enum  {
	SINGLE_PHOTO_PAGE_UPDATE_REASON_NEW_PIXBUF,
	SINGLE_PHOTO_PAGE_UPDATE_REASON_QUALITY_IMPROVEMENT,
	SINGLE_PHOTO_PAGE_UPDATE_REASON_RESIZED_CANVAS
} SinglePhotoPageUpdateReason;

struct _SinglePhotoPage {
	Page parent_instance;
	SinglePhotoPagePrivate * priv;
	GtkDrawingArea* canvas;
	GtkViewport* viewport;
};

struct _SinglePhotoPageClass {
	PageClass parent_class;
	gboolean (*is_zoom_supported) (SinglePhotoPage* self);
	void (*cancel_zoom) (SinglePhotoPage* self);
	void (*save_zoom_state) (SinglePhotoPage* self);
	void (*restore_zoom_state) (SinglePhotoPage* self);
	ZoomBuffer* (*get_zoom_buffer) (SinglePhotoPage* self);
	void (*new_surface) (SinglePhotoPage* self, cairo_t* ctx, Dimensions* ctx_dim);
	void (*updated_pixbuf) (SinglePhotoPage* self, GdkPixbuf* pixbuf, SinglePhotoPageUpdateReason reason, Dimensions* old_dim);
	void (*paint) (SinglePhotoPage* self, cairo_t* ctx, Dimensions* ctx_dim);
	void (*on_previous_photo) (SinglePhotoPage* self);
	void (*on_next_photo) (SinglePhotoPage* self);
};

struct _SlideshowPage {
	SinglePhotoPage parent_instance;
	SlideshowPagePrivate * priv;
};

struct _SlideshowPageClass {
	SinglePhotoPageClass parent_class;
};

struct _SlideshowPagePrivate {
	SourceCollection* sources;
	ViewCollection* controller;
	Photo* current;
	GtkToolButton* play_pause_button;
	GtkToolButton* settings_button;
	PixbufCache* cache;
	GTimer* timer;
	gboolean playing;
	gboolean exiting;
	gchar** transitions;
	gint transitions_length1;
	gint _transitions_size_;
	Screensaver* screensaver;
};

typedef enum  {
	PIXBUF_CACHE_PHOTO_TYPE_BASELINE,
	PIXBUF_CACHE_PHOTO_TYPE_MASTER
} PixbufCachePhotoType;

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

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

typedef gboolean (*PixbufCacheCacheFilter) (Photo* photo, void* user_data);
typedef enum  {
	DIRECTION_FORWARD,
	DIRECTION_BACKWARD
} Direction;

typedef enum  {
	PHOTO_EXCEPTION_NONE = 0,
	PHOTO_EXCEPTION_ORIENTATION = 1 << 0,
	PHOTO_EXCEPTION_CROP = 1 << 1,
	PHOTO_EXCEPTION_REDEYE = 1 << 2,
	PHOTO_EXCEPTION_ADJUST = 1 << 3,
	PHOTO_EXCEPTION_STRAIGHTEN = 1 << 4,
	PHOTO_EXCEPTION_ALL = 0xFFFFFFFFLL
} PhotoException;

typedef enum  {
	BACKGROUND_JOB_JOB_PRIORITY_HIGHEST = 100,
	BACKGROUND_JOB_JOB_PRIORITY_HIGH = 75,
	BACKGROUND_JOB_JOB_PRIORITY_NORMAL = 50,
	BACKGROUND_JOB_JOB_PRIORITY_LOW = 25,
	BACKGROUND_JOB_JOB_PRIORITY_LOWEST = 0
} BackgroundJobJobPriority;

struct _SlideshowPageSettingsDialog {
	GtkDialog parent_instance;
	SlideshowPageSettingsDialogPrivate * priv;
};

struct _SlideshowPageSettingsDialogClass {
	GtkDialogClass parent_class;
};

struct _SlideshowPageSettingsDialogPrivate {
	GtkBuilder* builder;
	GtkSpinButton* delay_entry;
	GtkScale* delay_hscale;
	GtkComboBoxText* transition_effect_selector;
	GtkScale* transition_effect_hscale;
	GtkSpinButton* transition_effect_entry;
	GtkAdjustment* transition_effect_adjustment;
	GtkCheckButton* show_title_button;
	GtkBox* pane;
};


static gpointer slideshow_page_parent_class = NULL;
static gpointer slideshow_page_settings_dialog_parent_class = NULL;

GType page_get_type (void) G_GNUC_CONST;
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 single_photo_page_get_type (void) G_GNUC_CONST;
GType zoom_buffer_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);
GType single_photo_page_update_reason_get_type (void) G_GNUC_CONST;
GType slideshow_page_get_type (void) G_GNUC_CONST;
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 source_collection_get_type (void) G_GNUC_CONST;
GType view_collection_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 thumbnail_source_get_type (void) G_GNUC_CONST;
GType media_source_get_type (void) G_GNUC_CONST;
GType photo_source_get_type (void) G_GNUC_CONST;
GType photo_get_type (void) G_GNUC_CONST;
GType pixbuf_cache_get_type (void) G_GNUC_CONST;
gpointer screensaver_ref (gpointer instance);
void screensaver_unref (gpointer instance);
GParamSpec* param_spec_screensaver (const gchar* name, const gchar* nick, const gchar* blurb, GType object_type, GParamFlags flags);
void value_set_screensaver (GValue* value, gpointer v_object);
void value_take_screensaver (GValue* value, gpointer v_object);
gpointer value_get_screensaver (const GValue* value);
GType screensaver_get_type (void) G_GNUC_CONST;
#define SLIDESHOW_PAGE_GET_PRIVATE(o) (G_TYPE_INSTANCE_GET_PRIVATE ((o), TYPE_SLIDESHOW_PAGE, SlideshowPagePrivate))
enum  {
	SLIDESHOW_PAGE_DUMMY_PROPERTY
};
#define SLIDESHOW_PAGE_READAHEAD_COUNT 5
#define SLIDESHOW_PAGE_CHECK_ADVANCE_MSEC 250
SlideshowPage* slideshow_page_new (SourceCollection* sources, ViewCollection* controller, Photo* start);
SlideshowPage* slideshow_page_construct (GType object_type, SourceCollection* sources, ViewCollection* controller, Photo* start);
SinglePhotoPage* single_photo_page_construct (GType object_type, const gchar* page_name, gboolean scale_up_to_viewport);
gpointer transition_effects_manager_ref (gpointer instance);
void transition_effects_manager_unref (gpointer instance);
GParamSpec* param_spec_transition_effects_manager (const gchar* name, const gchar* nick, const gchar* blurb, GType object_type, GParamFlags flags);
void value_set_transition_effects_manager (GValue* value, gpointer v_object);
void value_take_transition_effects_manager (GValue* value, gpointer v_object);
gpointer value_get_transition_effects_manager (const GValue* value);
GType transition_effects_manager_get_type (void) G_GNUC_CONST;
TransitionEffectsManager* transition_effects_manager_get_instance (void);
GeeCollection* transition_effects_manager_get_effect_ids (TransitionEffectsManager* self);
#define NULL_TRANSITION_DESCRIPTOR_EFFECT_ID "org.yorba.shotwell.transitions.null"
#define RANDOM_EFFECT_DESCRIPTOR_EFFECT_ID "org.yorba.shotwell.transitions.random"
static void slideshow_page_update_transition_effect (SlideshowPage* self);
GtkToolbar* page_get_toolbar (Page* self);
void single_photo_page_on_previous_photo (SinglePhotoPage* self);
static void _single_photo_page_on_previous_photo_gtk_tool_button_clicked (GtkToolButton* _sender, gpointer self);
static void slideshow_page_on_play_pause (SlideshowPage* self);
static void _slideshow_page_on_play_pause_gtk_tool_button_clicked (GtkToolButton* _sender, gpointer self);
void single_photo_page_on_next_photo (SinglePhotoPage* self);
static void _single_photo_page_on_next_photo_gtk_tool_button_clicked (GtkToolButton* _sender, gpointer self);
static void slideshow_page_on_change_settings (SlideshowPage* self);
static void _slideshow_page_on_change_settings_gtk_tool_button_clicked (GtkToolButton* _sender, gpointer self);
Screensaver* screensaver_new (void);
Screensaver* screensaver_construct (GType object_type);
static void slideshow_page_real_switched_to (Page* base);
void page_switched_to (Page* self);
GType pixbuf_cache_photo_type_get_type (void) G_GNUC_CONST;
GType scaling_get_type (void) G_GNUC_CONST;
GType scale_constraint_get_type (void) G_GNUC_CONST;
Scaling* scaling_dup (const Scaling* self);
void scaling_free (Scaling* self);
void single_photo_page_get_canvas_scaling (SinglePhotoPage* self, Scaling* result);
PixbufCache* pixbuf_cache_new (SourceCollection* sources, PixbufCachePhotoType type, Scaling* scaling, gint max_count, PixbufCacheCacheFilter filter, void* filter_target);
PixbufCache* pixbuf_cache_construct (GType object_type, SourceCollection* sources, PixbufCachePhotoType type, Scaling* scaling, gint max_count, PixbufCacheCacheFilter filter, void* filter_target);
GType direction_get_type (void) G_GNUC_CONST;
static gboolean slideshow_page_get_next_photo (SlideshowPage* self, Photo* start, Direction direction, Photo** next, GdkPixbuf** next_pixbuf);
void single_photo_page_set_pixbuf (SinglePhotoPage* self, GdkPixbuf* unscaled, Dimensions* max_dim, Direction* direction);
GType photo_exception_get_type (void) G_GNUC_CONST;
void media_source_get_dimensions (MediaSource* self, PhotoException disallowed_steps, Dimensions* result);
static gboolean slideshow_page_auto_advance (SlideshowPage* self);
static gboolean _slideshow_page_auto_advance_gsource_func (gpointer self);
void screensaver_inhibit (Screensaver* self, const gchar* reason);
static void slideshow_page_real_switching_from (Page* base);
void page_switching_from (Page* self);
void screensaver_uninhibit (Screensaver* self);
GdkPixbuf* pixbuf_cache_fetch (PixbufCache* self, Photo* photo, GError** error);
gchar* data_object_to_string (DataObject* self);
GType data_view_get_type (void) G_GNUC_CONST;
DataView* view_collection_get_view_for_source (ViewCollection* self, DataSource* source);
DataView* view_collection_get_next (ViewCollection* self, DataView* view);
DataView* view_collection_get_previous (ViewCollection* self, DataView* view);
DataSource* data_view_get_source (DataView* self);
void app_window_error_message (const gchar* message, GtkWindow* parent);
GtkWindow* page_get_container (Page* self);
GType app_window_get_type (void) G_GNUC_CONST;
AppWindow* app_window_get_instance (void);
void app_window_end_fullscreen (AppWindow* self);
gboolean view_collection_get_immediate_neighbors (ViewCollection* self, DataSource* home, DataSource** next, DataSource** prev, const gchar* type_selector);
#define PHOTO_TYPENAME "thumb"
GType background_job_job_priority_get_type (void) G_GNUC_CONST;
void pixbuf_cache_prefetch (PixbufCache* self, Photo* photo, BackgroundJobJobPriority priority, gboolean force);
GeeSet* view_collection_get_extended_neighbors (ViewCollection* self, DataSource* home, const gchar* typename);
void pixbuf_cache_prefetch_many (PixbufCache* self, GeeCollection* photos, BackgroundJobJobPriority priority, gboolean force);
static void slideshow_page_real_on_previous_photo (SinglePhotoPage* base);
static void slideshow_page_advance (SlideshowPage* self, Photo* photo, Direction direction);
static void slideshow_page_real_on_next_photo (SinglePhotoPage* base);
GType configuration_facade_get_type (void) G_GNUC_CONST;
GType config_facade_get_type (void) G_GNUC_CONST;
ConfigFacade* config_facade_get_instance (void);
gchar* configuration_facade_get_slideshow_transition_effect_id (ConfigurationFacade* self);
static void slideshow_page_random_transition_effect (SlideshowPage* self);
gdouble configuration_facade_get_slideshow_delay (ConfigurationFacade* self);
static gboolean slideshow_page_real_key_press_event (GtkWidget* base, GdkEventKey* event);
static GType slideshow_page_settings_dialog_get_type (void) G_GNUC_CONST G_GNUC_UNUSED;
static SlideshowPageSettingsDialog* slideshow_page_settings_dialog_new (void);
static SlideshowPageSettingsDialog* slideshow_page_settings_dialog_construct (GType object_type);
void configuration_facade_set_slideshow_delay (ConfigurationFacade* self, gdouble delay);
static gdouble slideshow_page_settings_dialog_get_delay (SlideshowPageSettingsDialog* self);
void configuration_facade_set_slideshow_transition_delay (ConfigurationFacade* self, gdouble delay);
static gdouble slideshow_page_settings_dialog_get_transition_delay (SlideshowPageSettingsDialog* self);
void configuration_facade_set_slideshow_transition_effect_id (ConfigurationFacade* self, const gchar* id);
static gchar* slideshow_page_settings_dialog_get_transition_effect_id (SlideshowPageSettingsDialog* self);
void configuration_facade_set_slideshow_show_title (ConfigurationFacade* self, gboolean show_title);
static gboolean slideshow_page_settings_dialog_get_show_title (SlideshowPageSettingsDialog* self);
gdouble configuration_facade_get_slideshow_transition_delay (ConfigurationFacade* self);
void single_photo_page_set_transition (SinglePhotoPage* self, const gchar* effect_id, gint duration_msec);
#define TRANSITION_EFFECTS_MANAGER_NULL_EFFECT_ID NULL_TRANSITION_DESCRIPTOR_EFFECT_ID
static void slideshow_page_paint_title (SlideshowPage* self, cairo_t* ctx, Dimensions* ctx_dim);
gchar* media_source_get_title (MediaSource* self);
void set_source_color_from_string (cairo_t* ctx, const gchar* spec);
static void slideshow_page_real_paint (SinglePhotoPage* base, cairo_t* ctx, Dimensions* ctx_dim);
void single_photo_page_paint (SinglePhotoPage* self, cairo_t* ctx, Dimensions* ctx_dim);
gboolean configuration_facade_get_slideshow_show_title (ConfigurationFacade* self);
gboolean single_photo_page_is_transition_in_progress (SinglePhotoPage* self);
#define SLIDESHOW_PAGE_SETTINGS_DIALOG_GET_PRIVATE(o) (G_TYPE_INSTANCE_GET_PRIVATE ((o), SLIDESHOW_PAGE_TYPE_SETTINGS_DIALOG, SlideshowPageSettingsDialogPrivate))
enum  {
	SLIDESHOW_PAGE_SETTINGS_DIALOG_DUMMY_PROPERTY
};
GtkBuilder* app_window_create_builder (const gchar* glade_filename, void* user);
FullscreenWindow* app_window_get_fullscreen (void);
#define RESOURCES_CANCEL_LABEL _ ("_Cancel")
#define RESOURCES_OK_LABEL _ ("_OK")
#define CONFIG_FACADE_SLIDESHOW_DELAY_MIN 1.0
#define CONFIG_FACADE_SLIDESHOW_DELAY_MAX 30.0
gchar* transition_effects_manager_get_effect_name (TransitionEffectsManager* self, const gchar* effect_id);
GeeCollection* transition_effects_manager_get_effect_names (TransitionEffectsManager* self, GCompareDataFunc comparator, void* comparator_target, GDestroyNotify comparator_target_destroy_notify);
gint utf8_ci_compare (void* a, void* b);
static gint _utf8_ci_compare_gcompare_data_func (gconstpointer a, gconstpointer b, gpointer self);
gchar* transition_effects_manager_get_id_for_effect_name (TransitionEffectsManager* self, const gchar* effect_name);
static void slideshow_page_settings_dialog_on_transition_changed (SlideshowPageSettingsDialog* self);
static void _slideshow_page_settings_dialog_on_transition_changed_gtk_combo_box_changed (GtkComboBox* _sender, gpointer self);
#define CONFIG_FACADE_SLIDESHOW_TRANSITION_DELAY_MIN 0.1
#define CONFIG_FACADE_SLIDESHOW_TRANSITION_DELAY_MAX 1.0
static void slideshow_page_settings_dialog_finalize (GObject* obj);
static void slideshow_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 gpointer _data_collection_ref0 (gpointer self) {
#line 143 "/home/jens/Source/shotwell/src/SlideshowPage.vala"
	return self ? data_collection_ref (self) : NULL;
#line 657 "SlideshowPage.c"
}


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


static void _single_photo_page_on_previous_photo_gtk_tool_button_clicked (GtkToolButton* _sender, gpointer self) {
#line 163 "/home/jens/Source/shotwell/src/SlideshowPage.vala"
	single_photo_page_on_previous_photo ((SinglePhotoPage*) self);
#line 671 "SlideshowPage.c"
}


static void _slideshow_page_on_play_pause_gtk_tool_button_clicked (GtkToolButton* _sender, gpointer self) {
#line 170 "/home/jens/Source/shotwell/src/SlideshowPage.vala"
	slideshow_page_on_play_pause ((SlideshowPage*) self);
#line 678 "SlideshowPage.c"
}


static void _single_photo_page_on_next_photo_gtk_tool_button_clicked (GtkToolButton* _sender, gpointer self) {
#line 177 "/home/jens/Source/shotwell/src/SlideshowPage.vala"
	single_photo_page_on_next_photo ((SinglePhotoPage*) self);
#line 685 "SlideshowPage.c"
}


static void _slideshow_page_on_change_settings_gtk_tool_button_clicked (GtkToolButton* _sender, gpointer self) {
#line 185 "/home/jens/Source/shotwell/src/SlideshowPage.vala"
	slideshow_page_on_change_settings ((SlideshowPage*) self);
#line 692 "SlideshowPage.c"
}


SlideshowPage* slideshow_page_construct (GType object_type, SourceCollection* sources, ViewCollection* controller, Photo* start) {
	SlideshowPage * self = NULL;
	const gchar* _tmp0_ = NULL;
	SourceCollection* _tmp1_ = NULL;
	SourceCollection* _tmp2_ = NULL;
	ViewCollection* _tmp3_ = NULL;
	ViewCollection* _tmp4_ = NULL;
	GeeCollection* pluggables = NULL;
	TransitionEffectsManager* _tmp5_ = NULL;
	TransitionEffectsManager* _tmp6_ = NULL;
	GeeCollection* _tmp7_ = NULL;
	GeeCollection* _tmp8_ = NULL;
	GeeArrayList* a = NULL;
	GeeArrayList* _tmp9_ = NULL;
	gint _tmp10_ = 0;
	gpointer* _tmp11_ = NULL;
	Photo* _tmp12_ = NULL;
	Photo* _tmp13_ = NULL;
	GtkToolbar* toolbar = NULL;
	GtkToolbar* _tmp14_ = NULL;
	GtkToolButton* previous_button = NULL;
	const gchar* _tmp15_ = NULL;
	GtkToolButton* _tmp16_ = NULL;
	const gchar* _tmp17_ = NULL;
	const gchar* _tmp18_ = NULL;
	GtkToolButton* _tmp19_ = NULL;
	GtkToolButton* _tmp20_ = NULL;
	GtkToolButton* _tmp21_ = NULL;
	const gchar* _tmp22_ = NULL;
	GtkToolButton* _tmp23_ = NULL;
	GtkToolButton* _tmp24_ = NULL;
	GtkToolButton* next_button = NULL;
	const gchar* _tmp25_ = NULL;
	GtkToolButton* _tmp26_ = NULL;
	const gchar* _tmp27_ = NULL;
	GtkToolButton* _tmp28_ = NULL;
	GtkToolButton* _tmp29_ = NULL;
	GtkToolButton* _tmp30_ = NULL;
	const gchar* _tmp31_ = NULL;
	GtkToolButton* _tmp32_ = NULL;
	const gchar* _tmp33_ = NULL;
	GtkToolButton* _tmp34_ = NULL;
	GtkToolButton* _tmp35_ = NULL;
	GtkToolButton* _tmp36_ = NULL;
	Screensaver* _tmp37_ = NULL;
#line 140 "/home/jens/Source/shotwell/src/SlideshowPage.vala"
	g_return_val_if_fail (IS_SOURCE_COLLECTION (sources), NULL);
#line 140 "/home/jens/Source/shotwell/src/SlideshowPage.vala"
	g_return_val_if_fail (IS_VIEW_COLLECTION (controller), NULL);
#line 140 "/home/jens/Source/shotwell/src/SlideshowPage.vala"
	g_return_val_if_fail (IS_PHOTO (start), NULL);
#line 141 "/home/jens/Source/shotwell/src/SlideshowPage.vala"
	_tmp0_ = _ ("Slideshow");
#line 141 "/home/jens/Source/shotwell/src/SlideshowPage.vala"
	self = (SlideshowPage*) single_photo_page_construct (object_type, _tmp0_, TRUE);
#line 143 "/home/jens/Source/shotwell/src/SlideshowPage.vala"
	_tmp1_ = sources;
#line 143 "/home/jens/Source/shotwell/src/SlideshowPage.vala"
	_tmp2_ = _data_collection_ref0 (_tmp1_);
#line 143 "/home/jens/Source/shotwell/src/SlideshowPage.vala"
	_data_collection_unref0 (self->priv->sources);
#line 143 "/home/jens/Source/shotwell/src/SlideshowPage.vala"
	self->priv->sources = _tmp2_;
#line 144 "/home/jens/Source/shotwell/src/SlideshowPage.vala"
	_tmp3_ = controller;
#line 144 "/home/jens/Source/shotwell/src/SlideshowPage.vala"
	_tmp4_ = _data_collection_ref0 (_tmp3_);
#line 144 "/home/jens/Source/shotwell/src/SlideshowPage.vala"
	_data_collection_unref0 (self->priv->controller);
#line 144 "/home/jens/Source/shotwell/src/SlideshowPage.vala"
	self->priv->controller = _tmp4_;
#line 146 "/home/jens/Source/shotwell/src/SlideshowPage.vala"
	_tmp5_ = transition_effects_manager_get_instance ();
#line 146 "/home/jens/Source/shotwell/src/SlideshowPage.vala"
	_tmp6_ = _tmp5_;
#line 146 "/home/jens/Source/shotwell/src/SlideshowPage.vala"
	_tmp7_ = transition_effects_manager_get_effect_ids (_tmp6_);
#line 146 "/home/jens/Source/shotwell/src/SlideshowPage.vala"
	_tmp8_ = _tmp7_;
#line 146 "/home/jens/Source/shotwell/src/SlideshowPage.vala"
	_transition_effects_manager_unref0 (_tmp6_);
#line 146 "/home/jens/Source/shotwell/src/SlideshowPage.vala"
	pluggables = _tmp8_;
#line 147 "/home/jens/Source/shotwell/src/SlideshowPage.vala"
	_tmp9_ = gee_array_list_new (G_TYPE_STRING, (GBoxedCopyFunc) g_strdup, g_free, NULL, NULL, NULL);
#line 147 "/home/jens/Source/shotwell/src/SlideshowPage.vala"
	a = _tmp9_;
#line 148 "/home/jens/Source/shotwell/src/SlideshowPage.vala"
	gee_array_list_add_all (a, pluggables);
#line 149 "/home/jens/Source/shotwell/src/SlideshowPage.vala"
	gee_abstract_collection_remove (G_TYPE_CHECK_INSTANCE_CAST (a, GEE_TYPE_ABSTRACT_COLLECTION, GeeAbstractCollection), NULL_TRANSITION_DESCRIPTOR_EFFECT_ID);
#line 150 "/home/jens/Source/shotwell/src/SlideshowPage.vala"
	gee_abstract_collection_remove (G_TYPE_CHECK_INSTANCE_CAST (a, GEE_TYPE_ABSTRACT_COLLECTION, GeeAbstractCollection), RANDOM_EFFECT_DESCRIPTOR_EFFECT_ID);
#line 151 "/home/jens/Source/shotwell/src/SlideshowPage.vala"
	_tmp11_ = gee_collection_to_array (G_TYPE_CHECK_INSTANCE_CAST (a, GEE_TYPE_COLLECTION, GeeCollection), &_tmp10_);
#line 151 "/home/jens/Source/shotwell/src/SlideshowPage.vala"
	self->priv->transitions = (_vala_array_free (self->priv->transitions, self->priv->transitions_length1, (GDestroyNotify) g_free), NULL);
#line 151 "/home/jens/Source/shotwell/src/SlideshowPage.vala"
	self->priv->transitions = _tmp11_;
#line 151 "/home/jens/Source/shotwell/src/SlideshowPage.vala"
	self->priv->transitions_length1 = _tmp10_;
#line 151 "/home/jens/Source/shotwell/src/SlideshowPage.vala"
	self->priv->_transitions_size_ = self->priv->transitions_length1;
#line 152 "/home/jens/Source/shotwell/src/SlideshowPage.vala"
	_tmp12_ = start;
#line 152 "/home/jens/Source/shotwell/src/SlideshowPage.vala"
	_tmp13_ = _g_object_ref0 (_tmp12_);
#line 152 "/home/jens/Source/shotwell/src/SlideshowPage.vala"
	_g_object_unref0 (self->priv->current);
#line 152 "/home/jens/Source/shotwell/src/SlideshowPage.vala"
	self->priv->current = _tmp13_;
#line 154 "/home/jens/Source/shotwell/src/SlideshowPage.vala"
	slideshow_page_update_transition_effect (self);
#line 157 "/home/jens/Source/shotwell/src/SlideshowPage.vala"
	_tmp14_ = page_get_toolbar (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_PAGE, Page));
#line 157 "/home/jens/Source/shotwell/src/SlideshowPage.vala"
	toolbar = _tmp14_;
#line 160 "/home/jens/Source/shotwell/src/SlideshowPage.vala"
	_tmp15_ = _ ("Back");
#line 160 "/home/jens/Source/shotwell/src/SlideshowPage.vala"
	_tmp16_ = (GtkToolButton*) gtk_tool_button_new (NULL, _tmp15_);
#line 160 "/home/jens/Source/shotwell/src/SlideshowPage.vala"
	g_object_ref_sink (_tmp16_);
#line 160 "/home/jens/Source/shotwell/src/SlideshowPage.vala"
	previous_button = _tmp16_;
#line 161 "/home/jens/Source/shotwell/src/SlideshowPage.vala"
	gtk_tool_button_set_icon_name (previous_button, "go-previous");
#line 162 "/home/jens/Source/shotwell/src/SlideshowPage.vala"
	_tmp17_ = _ ("Go to the previous photo");
#line 162 "/home/jens/Source/shotwell/src/SlideshowPage.vala"
	gtk_tool_item_set_tooltip_text (G_TYPE_CHECK_INSTANCE_CAST (previous_button, gtk_tool_item_get_type (), GtkToolItem), _tmp17_);
#line 163 "/home/jens/Source/shotwell/src/SlideshowPage.vala"
	g_signal_connect_object (previous_button, "clicked", (GCallback) _single_photo_page_on_previous_photo_gtk_tool_button_clicked, G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_SINGLE_PHOTO_PAGE, SinglePhotoPage), 0);
#line 165 "/home/jens/Source/shotwell/src/SlideshowPage.vala"
	gtk_toolbar_insert (toolbar, G_TYPE_CHECK_INSTANCE_CAST (previous_button, gtk_tool_item_get_type (), GtkToolItem), -1);
#line 167 "/home/jens/Source/shotwell/src/SlideshowPage.vala"
	_tmp18_ = _ ("Pause");
#line 167 "/home/jens/Source/shotwell/src/SlideshowPage.vala"
	_tmp19_ = (GtkToolButton*) gtk_tool_button_new (NULL, _tmp18_);
#line 167 "/home/jens/Source/shotwell/src/SlideshowPage.vala"
	g_object_ref_sink (_tmp19_);
#line 167 "/home/jens/Source/shotwell/src/SlideshowPage.vala"
	_g_object_unref0 (self->priv->play_pause_button);
#line 167 "/home/jens/Source/shotwell/src/SlideshowPage.vala"
	self->priv->play_pause_button = _tmp19_;
#line 168 "/home/jens/Source/shotwell/src/SlideshowPage.vala"
	_tmp20_ = self->priv->play_pause_button;
#line 168 "/home/jens/Source/shotwell/src/SlideshowPage.vala"
	gtk_tool_button_set_icon_name (_tmp20_, "media-playback-pause");
#line 169 "/home/jens/Source/shotwell/src/SlideshowPage.vala"
	_tmp21_ = self->priv->play_pause_button;
#line 169 "/home/jens/Source/shotwell/src/SlideshowPage.vala"
	_tmp22_ = _ ("Pause the slideshow");
#line 169 "/home/jens/Source/shotwell/src/SlideshowPage.vala"
	gtk_tool_item_set_tooltip_text (G_TYPE_CHECK_INSTANCE_CAST (_tmp21_, gtk_tool_item_get_type (), GtkToolItem), _tmp22_);
#line 170 "/home/jens/Source/shotwell/src/SlideshowPage.vala"
	_tmp23_ = self->priv->play_pause_button;
#line 170 "/home/jens/Source/shotwell/src/SlideshowPage.vala"
	g_signal_connect_object (_tmp23_, "clicked", (GCallback) _slideshow_page_on_play_pause_gtk_tool_button_clicked, self, 0);
#line 172 "/home/jens/Source/shotwell/src/SlideshowPage.vala"
	_tmp24_ = self->priv->play_pause_button;
#line 172 "/home/jens/Source/shotwell/src/SlideshowPage.vala"
	gtk_toolbar_insert (toolbar, G_TYPE_CHECK_INSTANCE_CAST (_tmp24_, gtk_tool_item_get_type (), GtkToolItem), -1);
#line 174 "/home/jens/Source/shotwell/src/SlideshowPage.vala"
	_tmp25_ = _ ("Next");
#line 174 "/home/jens/Source/shotwell/src/SlideshowPage.vala"
	_tmp26_ = (GtkToolButton*) gtk_tool_button_new (NULL, _tmp25_);
#line 174 "/home/jens/Source/shotwell/src/SlideshowPage.vala"
	g_object_ref_sink (_tmp26_);
#line 174 "/home/jens/Source/shotwell/src/SlideshowPage.vala"
	next_button = _tmp26_;
#line 175 "/home/jens/Source/shotwell/src/SlideshowPage.vala"
	gtk_tool_button_set_icon_name (next_button, "go-next");
#line 176 "/home/jens/Source/shotwell/src/SlideshowPage.vala"
	_tmp27_ = _ ("Go to the next photo");
#line 176 "/home/jens/Source/shotwell/src/SlideshowPage.vala"
	gtk_tool_item_set_tooltip_text (G_TYPE_CHECK_INSTANCE_CAST (next_button, gtk_tool_item_get_type (), GtkToolItem), _tmp27_);
#line 177 "/home/jens/Source/shotwell/src/SlideshowPage.vala"
	g_signal_connect_object (next_button, "clicked", (GCallback) _single_photo_page_on_next_photo_gtk_tool_button_clicked, G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_SINGLE_PHOTO_PAGE, SinglePhotoPage), 0);
#line 179 "/home/jens/Source/shotwell/src/SlideshowPage.vala"
	gtk_toolbar_insert (toolbar, G_TYPE_CHECK_INSTANCE_CAST (next_button, gtk_tool_item_get_type (), GtkToolItem), -1);
#line 181 "/home/jens/Source/shotwell/src/SlideshowPage.vala"
	_tmp28_ = (GtkToolButton*) gtk_tool_button_new (NULL, NULL);
#line 181 "/home/jens/Source/shotwell/src/SlideshowPage.vala"
	g_object_ref_sink (_tmp28_);
#line 181 "/home/jens/Source/shotwell/src/SlideshowPage.vala"
	_g_object_unref0 (self->priv->settings_button);
#line 181 "/home/jens/Source/shotwell/src/SlideshowPage.vala"
	self->priv->settings_button = _tmp28_;
#line 182 "/home/jens/Source/shotwell/src/SlideshowPage.vala"
	_tmp29_ = self->priv->settings_button;
#line 182 "/home/jens/Source/shotwell/src/SlideshowPage.vala"
	gtk_tool_button_set_icon_name (_tmp29_, "preferences-system");
#line 183 "/home/jens/Source/shotwell/src/SlideshowPage.vala"
	_tmp30_ = self->priv->settings_button;
#line 183 "/home/jens/Source/shotwell/src/SlideshowPage.vala"
	_tmp31_ = _ ("Settings");
#line 183 "/home/jens/Source/shotwell/src/SlideshowPage.vala"
	gtk_tool_button_set_label (_tmp30_, _tmp31_);
#line 184 "/home/jens/Source/shotwell/src/SlideshowPage.vala"
	_tmp32_ = self->priv->settings_button;
#line 184 "/home/jens/Source/shotwell/src/SlideshowPage.vala"
	_tmp33_ = _ ("Change slideshow settings");
#line 184 "/home/jens/Source/shotwell/src/SlideshowPage.vala"
	gtk_tool_item_set_tooltip_text (G_TYPE_CHECK_INSTANCE_CAST (_tmp32_, gtk_tool_item_get_type (), GtkToolItem), _tmp33_);
#line 185 "/home/jens/Source/shotwell/src/SlideshowPage.vala"
	_tmp34_ = self->priv->settings_button;
#line 185 "/home/jens/Source/shotwell/src/SlideshowPage.vala"
	g_signal_connect_object (_tmp34_, "clicked", (GCallback) _slideshow_page_on_change_settings_gtk_tool_button_clicked, self, 0);
#line 186 "/home/jens/Source/shotwell/src/SlideshowPage.vala"
	_tmp35_ = self->priv->settings_button;
#line 186 "/home/jens/Source/shotwell/src/SlideshowPage.vala"
	gtk_tool_item_set_is_important (G_TYPE_CHECK_INSTANCE_CAST (_tmp35_, gtk_tool_item_get_type (), GtkToolItem), TRUE);
#line 188 "/home/jens/Source/shotwell/src/SlideshowPage.vala"
	_tmp36_ = self->priv->settings_button;
#line 188 "/home/jens/Source/shotwell/src/SlideshowPage.vala"
	gtk_toolbar_insert (toolbar, G_TYPE_CHECK_INSTANCE_CAST (_tmp36_, gtk_tool_item_get_type (), GtkToolItem), -1);
#line 190 "/home/jens/Source/shotwell/src/SlideshowPage.vala"
	_tmp37_ = screensaver_new ();
#line 190 "/home/jens/Source/shotwell/src/SlideshowPage.vala"
	_screensaver_unref0 (self->priv->screensaver);
#line 190 "/home/jens/Source/shotwell/src/SlideshowPage.vala"
	self->priv->screensaver = _tmp37_;
#line 140 "/home/jens/Source/shotwell/src/SlideshowPage.vala"
	_g_object_unref0 (next_button);
#line 140 "/home/jens/Source/shotwell/src/SlideshowPage.vala"
	_g_object_unref0 (previous_button);
#line 140 "/home/jens/Source/shotwell/src/SlideshowPage.vala"
	_g_object_unref0 (toolbar);
#line 140 "/home/jens/Source/shotwell/src/SlideshowPage.vala"
	_g_object_unref0 (a);
#line 140 "/home/jens/Source/shotwell/src/SlideshowPage.vala"
	_g_object_unref0 (pluggables);
#line 140 "/home/jens/Source/shotwell/src/SlideshowPage.vala"
	return self;
#line 931 "SlideshowPage.c"
}


SlideshowPage* slideshow_page_new (SourceCollection* sources, ViewCollection* controller, Photo* start) {
#line 140 "/home/jens/Source/shotwell/src/SlideshowPage.vala"
	return slideshow_page_construct (TYPE_SLIDESHOW_PAGE, sources, controller, start);
#line 938 "SlideshowPage.c"
}


static gboolean _slideshow_page_auto_advance_gsource_func (gpointer self) {
	gboolean result;
	result = slideshow_page_auto_advance ((SlideshowPage*) self);
#line 205 "/home/jens/Source/shotwell/src/SlideshowPage.vala"
	return result;
#line 947 "SlideshowPage.c"
}


static void slideshow_page_real_switched_to (Page* base) {
	SlideshowPage * self;
	SourceCollection* _tmp0_ = NULL;
	Scaling _tmp1_ = {0};
	PixbufCache* _tmp2_ = NULL;
	GdkPixbuf* pixbuf = NULL;
	Photo* _tmp3_ = NULL;
	Photo* _tmp4_ = NULL;
	GdkPixbuf* _tmp5_ = NULL;
	gboolean _tmp6_ = FALSE;
	GTimer* _tmp11_ = NULL;
	Screensaver* _tmp12_ = NULL;
#line 193 "/home/jens/Source/shotwell/src/SlideshowPage.vala"
	self = G_TYPE_CHECK_INSTANCE_CAST (base, TYPE_SLIDESHOW_PAGE, SlideshowPage);
#line 194 "/home/jens/Source/shotwell/src/SlideshowPage.vala"
	PAGE_CLASS (slideshow_page_parent_class)->switched_to (G_TYPE_CHECK_INSTANCE_CAST (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_SINGLE_PHOTO_PAGE, SinglePhotoPage), TYPE_PAGE, Page));
#line 197 "/home/jens/Source/shotwell/src/SlideshowPage.vala"
	_tmp0_ = self->priv->sources;
#line 197 "/home/jens/Source/shotwell/src/SlideshowPage.vala"
	single_photo_page_get_canvas_scaling (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_SINGLE_PHOTO_PAGE, SinglePhotoPage), &_tmp1_);
#line 197 "/home/jens/Source/shotwell/src/SlideshowPage.vala"
	_tmp2_ = pixbuf_cache_new (_tmp0_, PIXBUF_CACHE_PHOTO_TYPE_BASELINE, &_tmp1_, SLIDESHOW_PAGE_READAHEAD_COUNT, NULL, NULL);
#line 197 "/home/jens/Source/shotwell/src/SlideshowPage.vala"
	_g_object_unref0 (self->priv->cache);
#line 197 "/home/jens/Source/shotwell/src/SlideshowPage.vala"
	self->priv->cache = _tmp2_;
#line 201 "/home/jens/Source/shotwell/src/SlideshowPage.vala"
	_tmp3_ = self->priv->current;
#line 201 "/home/jens/Source/shotwell/src/SlideshowPage.vala"
	_tmp6_ = slideshow_page_get_next_photo (self, _tmp3_, DIRECTION_FORWARD, &_tmp4_, &_tmp5_);
#line 201 "/home/jens/Source/shotwell/src/SlideshowPage.vala"
	_g_object_unref0 (self->priv->current);
#line 201 "/home/jens/Source/shotwell/src/SlideshowPage.vala"
	self->priv->current = _tmp4_;
#line 201 "/home/jens/Source/shotwell/src/SlideshowPage.vala"
	_g_object_unref0 (pixbuf);
#line 201 "/home/jens/Source/shotwell/src/SlideshowPage.vala"
	pixbuf = _tmp5_;
#line 201 "/home/jens/Source/shotwell/src/SlideshowPage.vala"
	if (_tmp6_) {
#line 991 "SlideshowPage.c"
		GdkPixbuf* _tmp7_ = NULL;
		Photo* _tmp8_ = NULL;
		Dimensions _tmp9_ = {0};
		Direction _tmp10_ = 0;
#line 202 "/home/jens/Source/shotwell/src/SlideshowPage.vala"
		_tmp7_ = pixbuf;
#line 202 "/home/jens/Source/shotwell/src/SlideshowPage.vala"
		_tmp8_ = self->priv->current;
#line 202 "/home/jens/Source/shotwell/src/SlideshowPage.vala"
		media_source_get_dimensions (G_TYPE_CHECK_INSTANCE_CAST (_tmp8_, TYPE_MEDIA_SOURCE, MediaSource), PHOTO_EXCEPTION_NONE, &_tmp9_);
#line 202 "/home/jens/Source/shotwell/src/SlideshowPage.vala"
		_tmp10_ = DIRECTION_FORWARD;
#line 202 "/home/jens/Source/shotwell/src/SlideshowPage.vala"
		single_photo_page_set_pixbuf (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_SINGLE_PHOTO_PAGE, SinglePhotoPage), _tmp7_, &_tmp9_, &_tmp10_);
#line 1006 "SlideshowPage.c"
	}
#line 205 "/home/jens/Source/shotwell/src/SlideshowPage.vala"
	g_timeout_add_full (G_PRIORITY_DEFAULT, (guint) SLIDESHOW_PAGE_CHECK_ADVANCE_MSEC, _slideshow_page_auto_advance_gsource_func, g_object_ref (self), g_object_unref);
#line 206 "/home/jens/Source/shotwell/src/SlideshowPage.vala"
	_tmp11_ = self->priv->timer;
#line 206 "/home/jens/Source/shotwell/src/SlideshowPage.vala"
	g_timer_start (_tmp11_);
#line 208 "/home/jens/Source/shotwell/src/SlideshowPage.vala"
	_tmp12_ = self->priv->screensaver;
#line 208 "/home/jens/Source/shotwell/src/SlideshowPage.vala"
	screensaver_inhibit (_tmp12_, "Playing slideshow");
#line 193 "/home/jens/Source/shotwell/src/SlideshowPage.vala"
	_g_object_unref0 (pixbuf);
#line 1020 "SlideshowPage.c"
}


static void slideshow_page_real_switching_from (Page* base) {
	SlideshowPage * self;
	Screensaver* _tmp0_ = NULL;
#line 211 "/home/jens/Source/shotwell/src/SlideshowPage.vala"
	self = G_TYPE_CHECK_INSTANCE_CAST (base, TYPE_SLIDESHOW_PAGE, SlideshowPage);
#line 212 "/home/jens/Source/shotwell/src/SlideshowPage.vala"
	PAGE_CLASS (slideshow_page_parent_class)->switching_from (G_TYPE_CHECK_INSTANCE_CAST (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_SINGLE_PHOTO_PAGE, SinglePhotoPage), TYPE_PAGE, Page));
#line 214 "/home/jens/Source/shotwell/src/SlideshowPage.vala"
	_tmp0_ = self->priv->screensaver;
#line 214 "/home/jens/Source/shotwell/src/SlideshowPage.vala"
	screensaver_uninhibit (_tmp0_);
#line 215 "/home/jens/Source/shotwell/src/SlideshowPage.vala"
	self->priv->exiting = TRUE;
#line 1037 "SlideshowPage.c"
}


static gboolean slideshow_page_get_next_photo (SlideshowPage* self, Photo* start, Direction direction, Photo** next, GdkPixbuf** next_pixbuf) {
	Photo* _vala_next = NULL;
	GdkPixbuf* _vala_next_pixbuf = NULL;
	gboolean result = FALSE;
	Photo* _tmp0_ = NULL;
	Photo* _tmp1_ = NULL;
	GError * _inner_error_ = NULL;
#line 218 "/home/jens/Source/shotwell/src/SlideshowPage.vala"
	g_return_val_if_fail (IS_SLIDESHOW_PAGE (self), FALSE);
#line 218 "/home/jens/Source/shotwell/src/SlideshowPage.vala"
	g_return_val_if_fail (IS_PHOTO (start), FALSE);
#line 220 "/home/jens/Source/shotwell/src/SlideshowPage.vala"
	_tmp0_ = start;
#line 220 "/home/jens/Source/shotwell/src/SlideshowPage.vala"
	_tmp1_ = _g_object_ref0 (_tmp0_);
#line 220 "/home/jens/Source/shotwell/src/SlideshowPage.vala"
	_g_object_unref0 (_vala_next);
#line 220 "/home/jens/Source/shotwell/src/SlideshowPage.vala"
	_vala_next = _tmp1_;
#line 1060 "SlideshowPage.c"
	{
		gboolean _tmp2_ = FALSE;
#line 222 "/home/jens/Source/shotwell/src/SlideshowPage.vala"
		_tmp2_ = TRUE;
#line 222 "/home/jens/Source/shotwell/src/SlideshowPage.vala"
		while (TRUE) {
#line 1067 "SlideshowPage.c"
			DataSource* forward = NULL;
			DataSource* back = NULL;
			ViewCollection* _tmp40_ = NULL;
			Photo* _tmp41_ = NULL;
			DataSource* _tmp42_ = NULL;
			DataSource* _tmp43_ = NULL;
			PixbufCache* _tmp44_ = NULL;
			DataSource* _tmp45_ = NULL;
			PixbufCache* _tmp46_ = NULL;
			DataSource* _tmp47_ = NULL;
			GeeSet* neighbors = NULL;
			ViewCollection* _tmp48_ = NULL;
			Photo* _tmp49_ = NULL;
			GeeSet* _tmp50_ = NULL;
			GeeSet* _tmp51_ = NULL;
			DataSource* _tmp52_ = NULL;
			GeeSet* _tmp53_ = NULL;
			DataSource* _tmp54_ = NULL;
			PixbufCache* _tmp55_ = NULL;
			GeeSet* _tmp56_ = NULL;
#line 222 "/home/jens/Source/shotwell/src/SlideshowPage.vala"
			if (!_tmp2_) {
#line 1090 "SlideshowPage.c"
			}
#line 222 "/home/jens/Source/shotwell/src/SlideshowPage.vala"
			_tmp2_ = FALSE;
#line 1094 "SlideshowPage.c"
			{
				GdkPixbuf* _tmp3_ = NULL;
				PixbufCache* _tmp4_ = NULL;
				Photo* _tmp5_ = NULL;
				GdkPixbuf* _tmp6_ = NULL;
				GdkPixbuf* _tmp7_ = NULL;
#line 225 "/home/jens/Source/shotwell/src/SlideshowPage.vala"
				_tmp4_ = self->priv->cache;
#line 225 "/home/jens/Source/shotwell/src/SlideshowPage.vala"
				_tmp5_ = _vala_next;
#line 225 "/home/jens/Source/shotwell/src/SlideshowPage.vala"
				_tmp6_ = pixbuf_cache_fetch (_tmp4_, _tmp5_, &_inner_error_);
#line 225 "/home/jens/Source/shotwell/src/SlideshowPage.vala"
				_tmp3_ = _tmp6_;
#line 225 "/home/jens/Source/shotwell/src/SlideshowPage.vala"
				if (G_UNLIKELY (_inner_error_ != NULL)) {
#line 1111 "SlideshowPage.c"
					goto __catch460_g_error;
				}
#line 225 "/home/jens/Source/shotwell/src/SlideshowPage.vala"
				_tmp7_ = _tmp3_;
#line 225 "/home/jens/Source/shotwell/src/SlideshowPage.vala"
				_tmp3_ = NULL;
#line 225 "/home/jens/Source/shotwell/src/SlideshowPage.vala"
				_g_object_unref0 (_vala_next_pixbuf);
#line 225 "/home/jens/Source/shotwell/src/SlideshowPage.vala"
				_vala_next_pixbuf = _tmp7_;
#line 223 "/home/jens/Source/shotwell/src/SlideshowPage.vala"
				_g_object_unref0 (_tmp3_);
#line 1124 "SlideshowPage.c"
			}
			goto __finally460;
			__catch460_g_error:
			{
				GError* err = NULL;
				Photo* _tmp8_ = NULL;
				gchar* _tmp9_ = NULL;
				gchar* _tmp10_ = NULL;
				GError* _tmp11_ = NULL;
				const gchar* _tmp12_ = NULL;
				DataView* view = NULL;
				ViewCollection* _tmp13_ = NULL;
				Photo* _tmp14_ = NULL;
				DataView* _tmp15_ = NULL;
				DataView* _tmp16_ = NULL;
				Direction _tmp17_ = 0;
				DataView* _tmp24_ = NULL;
				DataView* _tmp25_ = NULL;
				DataSource* _tmp26_ = NULL;
				gboolean _tmp27_ = FALSE;
				gboolean _tmp28_ = FALSE;
				Photo* _tmp29_ = NULL;
				Photo* _tmp30_ = NULL;
#line 223 "/home/jens/Source/shotwell/src/SlideshowPage.vala"
				err = _inner_error_;
#line 223 "/home/jens/Source/shotwell/src/SlideshowPage.vala"
				_inner_error_ = NULL;
#line 227 "/home/jens/Source/shotwell/src/SlideshowPage.vala"
				_tmp8_ = _vala_next;
#line 227 "/home/jens/Source/shotwell/src/SlideshowPage.vala"
				_tmp9_ = data_object_to_string (G_TYPE_CHECK_INSTANCE_CAST (_tmp8_, TYPE_DATA_OBJECT, DataObject));
#line 227 "/home/jens/Source/shotwell/src/SlideshowPage.vala"
				_tmp10_ = _tmp9_;
#line 227 "/home/jens/Source/shotwell/src/SlideshowPage.vala"
				_tmp11_ = err;
#line 227 "/home/jens/Source/shotwell/src/SlideshowPage.vala"
				_tmp12_ = _tmp11_->message;
#line 227 "/home/jens/Source/shotwell/src/SlideshowPage.vala"
				g_warning ("SlideshowPage.vala:227: Unable to fetch pixbuf for %s: %s", _tmp10_, _tmp12_);
#line 227 "/home/jens/Source/shotwell/src/SlideshowPage.vala"
				_g_free0 (_tmp10_);
#line 230 "/home/jens/Source/shotwell/src/SlideshowPage.vala"
				_tmp13_ = self->priv->controller;
#line 230 "/home/jens/Source/shotwell/src/SlideshowPage.vala"
				_tmp14_ = _vala_next;
#line 230 "/home/jens/Source/shotwell/src/SlideshowPage.vala"
				_tmp15_ = view_collection_get_view_for_source (_tmp13_, G_TYPE_CHECK_INSTANCE_CAST (_tmp14_, TYPE_DATA_SOURCE, DataSource));
#line 230 "/home/jens/Source/shotwell/src/SlideshowPage.vala"
				view = _tmp15_;
#line 231 "/home/jens/Source/shotwell/src/SlideshowPage.vala"
				_tmp17_ = direction;
#line 231 "/home/jens/Source/shotwell/src/SlideshowPage.vala"
				if (_tmp17_ == DIRECTION_FORWARD) {
#line 1178 "SlideshowPage.c"
					ViewCollection* _tmp18_ = NULL;
					DataView* _tmp19_ = NULL;
					DataView* _tmp20_ = NULL;
#line 232 "/home/jens/Source/shotwell/src/SlideshowPage.vala"
					_tmp18_ = self->priv->controller;
#line 232 "/home/jens/Source/shotwell/src/SlideshowPage.vala"
					_tmp19_ = view;
#line 232 "/home/jens/Source/shotwell/src/SlideshowPage.vala"
					_tmp20_ = view_collection_get_next (_tmp18_, _tmp19_);
#line 232 "/home/jens/Source/shotwell/src/SlideshowPage.vala"
					_g_object_unref0 (_tmp16_);
#line 232 "/home/jens/Source/shotwell/src/SlideshowPage.vala"
					_tmp16_ = _tmp20_;
#line 1192 "SlideshowPage.c"
				} else {
					ViewCollection* _tmp21_ = NULL;
					DataView* _tmp22_ = NULL;
					DataView* _tmp23_ = NULL;
#line 233 "/home/jens/Source/shotwell/src/SlideshowPage.vala"
					_tmp21_ = self->priv->controller;
#line 233 "/home/jens/Source/shotwell/src/SlideshowPage.vala"
					_tmp22_ = view;
#line 233 "/home/jens/Source/shotwell/src/SlideshowPage.vala"
					_tmp23_ = view_collection_get_previous (_tmp21_, _tmp22_);
#line 233 "/home/jens/Source/shotwell/src/SlideshowPage.vala"
					_g_object_unref0 (_tmp16_);
#line 233 "/home/jens/Source/shotwell/src/SlideshowPage.vala"
					_tmp16_ = _tmp23_;
#line 1207 "SlideshowPage.c"
				}
#line 231 "/home/jens/Source/shotwell/src/SlideshowPage.vala"
				_tmp24_ = _g_object_ref0 (_tmp16_);
#line 231 "/home/jens/Source/shotwell/src/SlideshowPage.vala"
				_g_object_unref0 (view);
#line 231 "/home/jens/Source/shotwell/src/SlideshowPage.vala"
				view = _tmp24_;
#line 234 "/home/jens/Source/shotwell/src/SlideshowPage.vala"
				_tmp25_ = view;
#line 234 "/home/jens/Source/shotwell/src/SlideshowPage.vala"
				_tmp26_ = data_view_get_source (_tmp25_);
#line 234 "/home/jens/Source/shotwell/src/SlideshowPage.vala"
				_g_object_unref0 (_vala_next);
#line 234 "/home/jens/Source/shotwell/src/SlideshowPage.vala"
				_vala_next = G_TYPE_CHECK_INSTANCE_CAST (_tmp26_, TYPE_PHOTO, Photo);
#line 237 "/home/jens/Source/shotwell/src/SlideshowPage.vala"
				_tmp29_ = _vala_next;
#line 237 "/home/jens/Source/shotwell/src/SlideshowPage.vala"
				_tmp30_ = start;
#line 237 "/home/jens/Source/shotwell/src/SlideshowPage.vala"
				if (_tmp29_ == _tmp30_) {
#line 1229 "SlideshowPage.c"
					Photo* _tmp31_ = NULL;
					Photo* _tmp32_ = NULL;
#line 237 "/home/jens/Source/shotwell/src/SlideshowPage.vala"
					_tmp31_ = _vala_next;
#line 237 "/home/jens/Source/shotwell/src/SlideshowPage.vala"
					_tmp32_ = self->priv->current;
#line 237 "/home/jens/Source/shotwell/src/SlideshowPage.vala"
					_tmp28_ = _tmp31_ != _tmp32_;
#line 1238 "SlideshowPage.c"
				} else {
#line 237 "/home/jens/Source/shotwell/src/SlideshowPage.vala"
					_tmp28_ = FALSE;
#line 1242 "SlideshowPage.c"
				}
#line 237 "/home/jens/Source/shotwell/src/SlideshowPage.vala"
				if (_tmp28_) {
#line 237 "/home/jens/Source/shotwell/src/SlideshowPage.vala"
					_tmp27_ = TRUE;
#line 1248 "SlideshowPage.c"
				} else {
					Photo* _tmp33_ = NULL;
					Photo* _tmp34_ = NULL;
#line 237 "/home/jens/Source/shotwell/src/SlideshowPage.vala"
					_tmp33_ = _vala_next;
#line 237 "/home/jens/Source/shotwell/src/SlideshowPage.vala"
					_tmp34_ = self->priv->current;
#line 237 "/home/jens/Source/shotwell/src/SlideshowPage.vala"
					_tmp27_ = _tmp33_ == _tmp34_;
#line 1258 "SlideshowPage.c"
				}
#line 237 "/home/jens/Source/shotwell/src/SlideshowPage.vala"
				if (_tmp27_) {
#line 1262 "SlideshowPage.c"
					const gchar* _tmp35_ = NULL;
					GtkWindow* _tmp36_ = NULL;
					GtkWindow* _tmp37_ = NULL;
					AppWindow* _tmp38_ = NULL;
					AppWindow* _tmp39_ = NULL;
#line 238 "/home/jens/Source/shotwell/src/SlideshowPage.vala"
					_tmp35_ = _ ("All photo source files are missing.");
#line 238 "/home/jens/Source/shotwell/src/SlideshowPage.vala"
					_tmp36_ = page_get_container (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_PAGE, Page));
#line 238 "/home/jens/Source/shotwell/src/SlideshowPage.vala"
					_tmp37_ = _tmp36_;
#line 238 "/home/jens/Source/shotwell/src/SlideshowPage.vala"
					app_window_error_message (_tmp35_, _tmp37_);
#line 238 "/home/jens/Source/shotwell/src/SlideshowPage.vala"
					_g_object_unref0 (_tmp37_);
#line 239 "/home/jens/Source/shotwell/src/SlideshowPage.vala"
					_tmp38_ = app_window_get_instance ();
#line 239 "/home/jens/Source/shotwell/src/SlideshowPage.vala"
					_tmp39_ = _tmp38_;
#line 239 "/home/jens/Source/shotwell/src/SlideshowPage.vala"
					app_window_end_fullscreen (_tmp39_);
#line 239 "/home/jens/Source/shotwell/src/SlideshowPage.vala"
					_g_object_unref0 (_tmp39_);
#line 241 "/home/jens/Source/shotwell/src/SlideshowPage.vala"
					_g_object_unref0 (_vala_next);
#line 241 "/home/jens/Source/shotwell/src/SlideshowPage.vala"
					_vala_next = NULL;
#line 242 "/home/jens/Source/shotwell/src/SlideshowPage.vala"
					_g_object_unref0 (_vala_next_pixbuf);
#line 242 "/home/jens/Source/shotwell/src/SlideshowPage.vala"
					_vala_next_pixbuf = NULL;
#line 244 "/home/jens/Source/shotwell/src/SlideshowPage.vala"
					result = FALSE;
#line 244 "/home/jens/Source/shotwell/src/SlideshowPage.vala"
					_g_object_unref0 (_tmp16_);
#line 244 "/home/jens/Source/shotwell/src/SlideshowPage.vala"
					_g_object_unref0 (view);
#line 244 "/home/jens/Source/shotwell/src/SlideshowPage.vala"
					_g_error_free0 (err);
#line 244 "/home/jens/Source/shotwell/src/SlideshowPage.vala"
					if (next) {
#line 244 "/home/jens/Source/shotwell/src/SlideshowPage.vala"
						*next = _vala_next;
#line 1306 "SlideshowPage.c"
					} else {
#line 244 "/home/jens/Source/shotwell/src/SlideshowPage.vala"
						_g_object_unref0 (_vala_next);
#line 1310 "SlideshowPage.c"
					}
#line 244 "/home/jens/Source/shotwell/src/SlideshowPage.vala"
					if (next_pixbuf) {
#line 244 "/home/jens/Source/shotwell/src/SlideshowPage.vala"
						*next_pixbuf = _vala_next_pixbuf;
#line 1316 "SlideshowPage.c"
					} else {
#line 244 "/home/jens/Source/shotwell/src/SlideshowPage.vala"
						_g_object_unref0 (_vala_next_pixbuf);
#line 1320 "SlideshowPage.c"
					}
#line 244 "/home/jens/Source/shotwell/src/SlideshowPage.vala"
					return result;
#line 1324 "SlideshowPage.c"
				}
#line 247 "/home/jens/Source/shotwell/src/SlideshowPage.vala"
				_g_object_unref0 (_tmp16_);
#line 247 "/home/jens/Source/shotwell/src/SlideshowPage.vala"
				_g_object_unref0 (view);
#line 247 "/home/jens/Source/shotwell/src/SlideshowPage.vala"
				_g_error_free0 (err);
#line 247 "/home/jens/Source/shotwell/src/SlideshowPage.vala"
				continue;
#line 1334 "SlideshowPage.c"
			}
			__finally460:
#line 223 "/home/jens/Source/shotwell/src/SlideshowPage.vala"
			if (G_UNLIKELY (_inner_error_ != NULL)) {
#line 223 "/home/jens/Source/shotwell/src/SlideshowPage.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 223 "/home/jens/Source/shotwell/src/SlideshowPage.vala"
				g_clear_error (&_inner_error_);
#line 223 "/home/jens/Source/shotwell/src/SlideshowPage.vala"
				return FALSE;
#line 1345 "SlideshowPage.c"
			}
#line 253 "/home/jens/Source/shotwell/src/SlideshowPage.vala"
			_tmp40_ = self->priv->controller;
#line 253 "/home/jens/Source/shotwell/src/SlideshowPage.vala"
			_tmp41_ = _vala_next;
#line 253 "/home/jens/Source/shotwell/src/SlideshowPage.vala"
			view_collection_get_immediate_neighbors (_tmp40_, G_TYPE_CHECK_INSTANCE_CAST (_tmp41_, TYPE_DATA_SOURCE, DataSource), &_tmp42_, &_tmp43_, PHOTO_TYPENAME);
#line 253 "/home/jens/Source/shotwell/src/SlideshowPage.vala"
			_g_object_unref0 (forward);
#line 253 "/home/jens/Source/shotwell/src/SlideshowPage.vala"
			forward = _tmp42_;
#line 253 "/home/jens/Source/shotwell/src/SlideshowPage.vala"
			_g_object_unref0 (back);
#line 253 "/home/jens/Source/shotwell/src/SlideshowPage.vala"
			back = _tmp43_;
#line 254 "/home/jens/Source/shotwell/src/SlideshowPage.vala"
			_tmp44_ = self->priv->cache;
#line 254 "/home/jens/Source/shotwell/src/SlideshowPage.vala"
			_tmp45_ = forward;
#line 254 "/home/jens/Source/shotwell/src/SlideshowPage.vala"
			pixbuf_cache_prefetch (_tmp44_, G_TYPE_CHECK_INSTANCE_CAST (_tmp45_, TYPE_PHOTO, Photo), BACKGROUND_JOB_JOB_PRIORITY_HIGHEST, FALSE);
#line 255 "/home/jens/Source/shotwell/src/SlideshowPage.vala"
			_tmp46_ = self->priv->cache;
#line 255 "/home/jens/Source/shotwell/src/SlideshowPage.vala"
			_tmp47_ = back;
#line 255 "/home/jens/Source/shotwell/src/SlideshowPage.vala"
			pixbuf_cache_prefetch (_tmp46_, G_TYPE_CHECK_INSTANCE_CAST (_tmp47_, TYPE_PHOTO, Photo), BACKGROUND_JOB_JOB_PRIORITY_NORMAL, FALSE);
#line 257 "/home/jens/Source/shotwell/src/SlideshowPage.vala"
			_tmp48_ = self->priv->controller;
#line 257 "/home/jens/Source/shotwell/src/SlideshowPage.vala"
			_tmp49_ = _vala_next;
#line 257 "/home/jens/Source/shotwell/src/SlideshowPage.vala"
			_tmp50_ = view_collection_get_extended_neighbors (_tmp48_, G_TYPE_CHECK_INSTANCE_CAST (_tmp49_, TYPE_DATA_SOURCE, DataSource), PHOTO_TYPENAME);
#line 257 "/home/jens/Source/shotwell/src/SlideshowPage.vala"
			neighbors = _tmp50_;
#line 258 "/home/jens/Source/shotwell/src/SlideshowPage.vala"
			_tmp51_ = neighbors;
#line 258 "/home/jens/Source/shotwell/src/SlideshowPage.vala"
			_tmp52_ = forward;
#line 258 "/home/jens/Source/shotwell/src/SlideshowPage.vala"
			gee_collection_remove (G_TYPE_CHECK_INSTANCE_CAST (_tmp51_, GEE_TYPE_COLLECTION, GeeCollection), _tmp52_);
#line 259 "/home/jens/Source/shotwell/src/SlideshowPage.vala"
			_tmp53_ = neighbors;
#line 259 "/home/jens/Source/shotwell/src/SlideshowPage.vala"
			_tmp54_ = back;
#line 259 "/home/jens/Source/shotwell/src/SlideshowPage.vala"
			gee_collection_remove (G_TYPE_CHECK_INSTANCE_CAST (_tmp53_, GEE_TYPE_COLLECTION, GeeCollection), _tmp54_);
#line 261 "/home/jens/Source/shotwell/src/SlideshowPage.vala"
			_tmp55_ = self->priv->cache;
#line 261 "/home/jens/Source/shotwell/src/SlideshowPage.vala"
			_tmp56_ = neighbors;
#line 261 "/home/jens/Source/shotwell/src/SlideshowPage.vala"
			pixbuf_cache_prefetch_many (_tmp55_, G_TYPE_CHECK_INSTANCE_CAST (_tmp56_, GEE_TYPE_COLLECTION, GeeCollection), BACKGROUND_JOB_JOB_PRIORITY_LOWEST, FALSE);
#line 263 "/home/jens/Source/shotwell/src/SlideshowPage.vala"
			result = TRUE;
#line 263 "/home/jens/Source/shotwell/src/SlideshowPage.vala"
			_g_object_unref0 (neighbors);
#line 263 "/home/jens/Source/shotwell/src/SlideshowPage.vala"
			_g_object_unref0 (back);
#line 263 "/home/jens/Source/shotwell/src/SlideshowPage.vala"
			_g_object_unref0 (forward);
#line 263 "/home/jens/Source/shotwell/src/SlideshowPage.vala"
			if (next) {
#line 263 "/home/jens/Source/shotwell/src/SlideshowPage.vala"
				*next = _vala_next;
#line 1411 "SlideshowPage.c"
			} else {
#line 263 "/home/jens/Source/shotwell/src/SlideshowPage.vala"
				_g_object_unref0 (_vala_next);
#line 1415 "SlideshowPage.c"
			}
#line 263 "/home/jens/Source/shotwell/src/SlideshowPage.vala"
			if (next_pixbuf) {
#line 263 "/home/jens/Source/shotwell/src/SlideshowPage.vala"
				*next_pixbuf = _vala_next_pixbuf;
#line 1421 "SlideshowPage.c"
			} else {
#line 263 "/home/jens/Source/shotwell/src/SlideshowPage.vala"
				_g_object_unref0 (_vala_next_pixbuf);
#line 1425 "SlideshowPage.c"
			}
#line 263 "/home/jens/Source/shotwell/src/SlideshowPage.vala"
			return result;
#line 1429 "SlideshowPage.c"
		}
	}
#line 218 "/home/jens/Source/shotwell/src/SlideshowPage.vala"
	if (next) {
#line 218 "/home/jens/Source/shotwell/src/SlideshowPage.vala"
		*next = _vala_next;
#line 1436 "SlideshowPage.c"
	} else {
#line 218 "/home/jens/Source/shotwell/src/SlideshowPage.vala"
		_g_object_unref0 (_vala_next);
#line 1440 "SlideshowPage.c"
	}
#line 218 "/home/jens/Source/shotwell/src/SlideshowPage.vala"
	if (next_pixbuf) {
#line 218 "/home/jens/Source/shotwell/src/SlideshowPage.vala"
		*next_pixbuf = _vala_next_pixbuf;
#line 1446 "SlideshowPage.c"
	} else {
#line 218 "/home/jens/Source/shotwell/src/SlideshowPage.vala"
		_g_object_unref0 (_vala_next_pixbuf);
#line 1450 "SlideshowPage.c"
	}
}


static void slideshow_page_on_play_pause (SlideshowPage* self) {
	gboolean _tmp0_ = FALSE;
	gboolean _tmp11_ = FALSE;
	GTimer* _tmp12_ = NULL;
#line 267 "/home/jens/Source/shotwell/src/SlideshowPage.vala"
	g_return_if_fail (IS_SLIDESHOW_PAGE (self));
#line 268 "/home/jens/Source/shotwell/src/SlideshowPage.vala"
	_tmp0_ = self->priv->playing;
#line 268 "/home/jens/Source/shotwell/src/SlideshowPage.vala"
	if (_tmp0_) {
#line 1465 "SlideshowPage.c"
		GtkToolButton* _tmp1_ = NULL;
		GtkToolButton* _tmp2_ = NULL;
		const gchar* _tmp3_ = NULL;
		GtkToolButton* _tmp4_ = NULL;
		const gchar* _tmp5_ = NULL;
#line 269 "/home/jens/Source/shotwell/src/SlideshowPage.vala"
		_tmp1_ = self->priv->play_pause_button;
#line 269 "/home/jens/Source/shotwell/src/SlideshowPage.vala"
		gtk_tool_button_set_icon_name (_tmp1_, "media-playback-start");
#line 270 "/home/jens/Source/shotwell/src/SlideshowPage.vala"
		_tmp2_ = self->priv->play_pause_button;
#line 270 "/home/jens/Source/shotwell/src/SlideshowPage.vala"
		_tmp3_ = _ ("Play");
#line 270 "/home/jens/Source/shotwell/src/SlideshowPage.vala"
		gtk_tool_button_set_label (_tmp2_, _tmp3_);
#line 271 "/home/jens/Source/shotwell/src/SlideshowPage.vala"
		_tmp4_ = self->priv->play_pause_button;
#line 271 "/home/jens/Source/shotwell/src/SlideshowPage.vala"
		_tmp5_ = _ ("Continue the slideshow");
#line 271 "/home/jens/Source/shotwell/src/SlideshowPage.vala"
		gtk_tool_item_set_tooltip_text (G_TYPE_CHECK_INSTANCE_CAST (_tmp4_, gtk_tool_item_get_type (), GtkToolItem), _tmp5_);
#line 1487 "SlideshowPage.c"
	} else {
		GtkToolButton* _tmp6_ = NULL;
		GtkToolButton* _tmp7_ = NULL;
		const gchar* _tmp8_ = NULL;
		GtkToolButton* _tmp9_ = NULL;
		const gchar* _tmp10_ = NULL;
#line 273 "/home/jens/Source/shotwell/src/SlideshowPage.vala"
		_tmp6_ = self->priv->play_pause_button;
#line 273 "/home/jens/Source/shotwell/src/SlideshowPage.vala"
		gtk_tool_button_set_icon_name (_tmp6_, "media-playback-pause");
#line 274 "/home/jens/Source/shotwell/src/SlideshowPage.vala"
		_tmp7_ = self->priv->play_pause_button;
#line 274 "/home/jens/Source/shotwell/src/SlideshowPage.vala"
		_tmp8_ = _ ("Pause");
#line 274 "/home/jens/Source/shotwell/src/SlideshowPage.vala"
		gtk_tool_button_set_label (_tmp7_, _tmp8_);
#line 275 "/home/jens/Source/shotwell/src/SlideshowPage.vala"
		_tmp9_ = self->priv->play_pause_button;
#line 275 "/home/jens/Source/shotwell/src/SlideshowPage.vala"
		_tmp10_ = _ ("Pause the slideshow");
#line 275 "/home/jens/Source/shotwell/src/SlideshowPage.vala"
		gtk_tool_item_set_tooltip_text (G_TYPE_CHECK_INSTANCE_CAST (_tmp9_, gtk_tool_item_get_type (), GtkToolItem), _tmp10_);
#line 1510 "SlideshowPage.c"
	}
#line 278 "/home/jens/Source/shotwell/src/SlideshowPage.vala"
	_tmp11_ = self->priv->playing;
#line 278 "/home/jens/Source/shotwell/src/SlideshowPage.vala"
	self->priv->playing = !_tmp11_;
#line 281 "/home/jens/Source/shotwell/src/SlideshowPage.vala"
	_tmp12_ = self->priv->timer;
#line 281 "/home/jens/Source/shotwell/src/SlideshowPage.vala"
	g_timer_start (_tmp12_);
#line 1520 "SlideshowPage.c"
}


static void slideshow_page_real_on_previous_photo (SinglePhotoPage* base) {
	SlideshowPage * self;
	DataView* view = NULL;
	ViewCollection* _tmp0_ = NULL;
	Photo* _tmp1_ = NULL;
	DataView* _tmp2_ = NULL;
	Photo* prev_photo = NULL;
	DataView* start_view = NULL;
	ViewCollection* _tmp3_ = NULL;
	DataView* _tmp4_ = NULL;
	DataView* _tmp5_ = NULL;
	DataView* prev_view = NULL;
	DataView* _tmp6_ = NULL;
	DataView* _tmp7_ = NULL;
	Photo* _tmp20_ = NULL;
#line 284 "/home/jens/Source/shotwell/src/SlideshowPage.vala"
	self = G_TYPE_CHECK_INSTANCE_CAST (base, TYPE_SLIDESHOW_PAGE, SlideshowPage);
#line 285 "/home/jens/Source/shotwell/src/SlideshowPage.vala"
	_tmp0_ = self->priv->controller;
#line 285 "/home/jens/Source/shotwell/src/SlideshowPage.vala"
	_tmp1_ = self->priv->current;
#line 285 "/home/jens/Source/shotwell/src/SlideshowPage.vala"
	_tmp2_ = view_collection_get_view_for_source (_tmp0_, G_TYPE_CHECK_INSTANCE_CAST (_tmp1_, TYPE_DATA_SOURCE, DataSource));
#line 285 "/home/jens/Source/shotwell/src/SlideshowPage.vala"
	view = _tmp2_;
#line 287 "/home/jens/Source/shotwell/src/SlideshowPage.vala"
	prev_photo = NULL;
#line 288 "/home/jens/Source/shotwell/src/SlideshowPage.vala"
	_tmp3_ = self->priv->controller;
#line 288 "/home/jens/Source/shotwell/src/SlideshowPage.vala"
	_tmp4_ = view;
#line 288 "/home/jens/Source/shotwell/src/SlideshowPage.vala"
	_tmp5_ = view_collection_get_previous (_tmp3_, _tmp4_);
#line 288 "/home/jens/Source/shotwell/src/SlideshowPage.vala"
	start_view = _tmp5_;
#line 289 "/home/jens/Source/shotwell/src/SlideshowPage.vala"
	_tmp6_ = start_view;
#line 289 "/home/jens/Source/shotwell/src/SlideshowPage.vala"
	_tmp7_ = _g_object_ref0 (_tmp6_);
#line 289 "/home/jens/Source/shotwell/src/SlideshowPage.vala"
	prev_view = _tmp7_;
#line 291 "/home/jens/Source/shotwell/src/SlideshowPage.vala"
	while (TRUE) {
#line 1567 "SlideshowPage.c"
		DataView* _tmp8_ = NULL;
		DataView* _tmp9_ = NULL;
		DataSource* _tmp10_ = NULL;
		DataSource* _tmp11_ = NULL;
		gboolean _tmp12_ = FALSE;
		ViewCollection* _tmp15_ = NULL;
		DataView* _tmp16_ = NULL;
		DataView* _tmp17_ = NULL;
		DataView* _tmp18_ = NULL;
		DataView* _tmp19_ = NULL;
#line 291 "/home/jens/Source/shotwell/src/SlideshowPage.vala"
		_tmp8_ = prev_view;
#line 291 "/home/jens/Source/shotwell/src/SlideshowPage.vala"
		if (!(_tmp8_ != NULL)) {
#line 291 "/home/jens/Source/shotwell/src/SlideshowPage.vala"
			break;
#line 1584 "SlideshowPage.c"
		}
#line 292 "/home/jens/Source/shotwell/src/SlideshowPage.vala"
		_tmp9_ = prev_view;
#line 292 "/home/jens/Source/shotwell/src/SlideshowPage.vala"
		_tmp10_ = data_view_get_source (_tmp9_);
#line 292 "/home/jens/Source/shotwell/src/SlideshowPage.vala"
		_tmp11_ = _tmp10_;
#line 292 "/home/jens/Source/shotwell/src/SlideshowPage.vala"
		_tmp12_ = G_TYPE_CHECK_INSTANCE_TYPE (_tmp11_, TYPE_PHOTO);
#line 292 "/home/jens/Source/shotwell/src/SlideshowPage.vala"
		_g_object_unref0 (_tmp11_);
#line 292 "/home/jens/Source/shotwell/src/SlideshowPage.vala"
		if (_tmp12_) {
#line 1598 "SlideshowPage.c"
			DataView* _tmp13_ = NULL;
			DataSource* _tmp14_ = NULL;
#line 293 "/home/jens/Source/shotwell/src/SlideshowPage.vala"
			_tmp13_ = prev_view;
#line 293 "/home/jens/Source/shotwell/src/SlideshowPage.vala"
			_tmp14_ = data_view_get_source (_tmp13_);
#line 293 "/home/jens/Source/shotwell/src/SlideshowPage.vala"
			_g_object_unref0 (prev_photo);
#line 293 "/home/jens/Source/shotwell/src/SlideshowPage.vala"
			prev_photo = G_TYPE_CHECK_INSTANCE_CAST (_tmp14_, TYPE_PHOTO, Photo);
#line 294 "/home/jens/Source/shotwell/src/SlideshowPage.vala"
			break;
#line 1611 "SlideshowPage.c"
		}
#line 297 "/home/jens/Source/shotwell/src/SlideshowPage.vala"
		_tmp15_ = self->priv->controller;
#line 297 "/home/jens/Source/shotwell/src/SlideshowPage.vala"
		_tmp16_ = prev_view;
#line 297 "/home/jens/Source/shotwell/src/SlideshowPage.vala"
		_tmp17_ = view_collection_get_previous (_tmp15_, _tmp16_);
#line 297 "/home/jens/Source/shotwell/src/SlideshowPage.vala"
		_g_object_unref0 (prev_view);
#line 297 "/home/jens/Source/shotwell/src/SlideshowPage.vala"
		prev_view = _tmp17_;
#line 299 "/home/jens/Source/shotwell/src/SlideshowPage.vala"
		_tmp18_ = prev_view;
#line 299 "/home/jens/Source/shotwell/src/SlideshowPage.vala"
		_tmp19_ = start_view;
#line 299 "/home/jens/Source/shotwell/src/SlideshowPage.vala"
		if (_tmp18_ == _tmp19_) {
#line 300 "/home/jens/Source/shotwell/src/SlideshowPage.vala"
			g_warning ("SlideshowPage.vala:300: on_previous( ): can't advance to previous phot" \
"o: collection has only videos");
#line 301 "/home/jens/Source/shotwell/src/SlideshowPage.vala"
			_g_object_unref0 (prev_view);
#line 301 "/home/jens/Source/shotwell/src/SlideshowPage.vala"
			_g_object_unref0 (start_view);
#line 301 "/home/jens/Source/shotwell/src/SlideshowPage.vala"
			_g_object_unref0 (prev_photo);
#line 301 "/home/jens/Source/shotwell/src/SlideshowPage.vala"
			_g_object_unref0 (view);
#line 301 "/home/jens/Source/shotwell/src/SlideshowPage.vala"
			return;
#line 1641 "SlideshowPage.c"
		}
	}
#line 305 "/home/jens/Source/shotwell/src/SlideshowPage.vala"
	_tmp20_ = prev_photo;
#line 305 "/home/jens/Source/shotwell/src/SlideshowPage.vala"
	slideshow_page_advance (self, _tmp20_, DIRECTION_BACKWARD);
#line 284 "/home/jens/Source/shotwell/src/SlideshowPage.vala"
	_g_object_unref0 (prev_view);
#line 284 "/home/jens/Source/shotwell/src/SlideshowPage.vala"
	_g_object_unref0 (start_view);
#line 284 "/home/jens/Source/shotwell/src/SlideshowPage.vala"
	_g_object_unref0 (prev_photo);
#line 284 "/home/jens/Source/shotwell/src/SlideshowPage.vala"
	_g_object_unref0 (view);
#line 1656 "SlideshowPage.c"
}


static void slideshow_page_real_on_next_photo (SinglePhotoPage* base) {
	SlideshowPage * self;
	DataView* view = NULL;
	ViewCollection* _tmp0_ = NULL;
	Photo* _tmp1_ = NULL;
	DataView* _tmp2_ = NULL;
	Photo* next_photo = NULL;
	DataView* start_view = NULL;
	ViewCollection* _tmp3_ = NULL;
	DataView* _tmp4_ = NULL;
	DataView* _tmp5_ = NULL;
	DataView* next_view = NULL;
	DataView* _tmp6_ = NULL;
	DataView* _tmp7_ = NULL;
	ConfigFacade* _tmp20_ = NULL;
	ConfigFacade* _tmp21_ = NULL;
	gchar* _tmp22_ = NULL;
	gchar* _tmp23_ = NULL;
	gboolean _tmp24_ = FALSE;
	Photo* _tmp25_ = NULL;
#line 308 "/home/jens/Source/shotwell/src/SlideshowPage.vala"
	self = G_TYPE_CHECK_INSTANCE_CAST (base, TYPE_SLIDESHOW_PAGE, SlideshowPage);
#line 309 "/home/jens/Source/shotwell/src/SlideshowPage.vala"
	_tmp0_ = self->priv->controller;
#line 309 "/home/jens/Source/shotwell/src/SlideshowPage.vala"
	_tmp1_ = self->priv->current;
#line 309 "/home/jens/Source/shotwell/src/SlideshowPage.vala"
	_tmp2_ = view_collection_get_view_for_source (_tmp0_, G_TYPE_CHECK_INSTANCE_CAST (_tmp1_, TYPE_DATA_SOURCE, DataSource));
#line 309 "/home/jens/Source/shotwell/src/SlideshowPage.vala"
	view = _tmp2_;
#line 311 "/home/jens/Source/shotwell/src/SlideshowPage.vala"
	next_photo = NULL;
#line 312 "/home/jens/Source/shotwell/src/SlideshowPage.vala"
	_tmp3_ = self->priv->controller;
#line 312 "/home/jens/Source/shotwell/src/SlideshowPage.vala"
	_tmp4_ = view;
#line 312 "/home/jens/Source/shotwell/src/SlideshowPage.vala"
	_tmp5_ = view_collection_get_next (_tmp3_, _tmp4_);
#line 312 "/home/jens/Source/shotwell/src/SlideshowPage.vala"
	start_view = _tmp5_;
#line 313 "/home/jens/Source/shotwell/src/SlideshowPage.vala"
	_tmp6_ = start_view;
#line 313 "/home/jens/Source/shotwell/src/SlideshowPage.vala"
	_tmp7_ = _g_object_ref0 (_tmp6_);
#line 313 "/home/jens/Source/shotwell/src/SlideshowPage.vala"
	next_view = _tmp7_;
#line 315 "/home/jens/Source/shotwell/src/SlideshowPage.vala"
	while (TRUE) {
#line 1708 "SlideshowPage.c"
		DataView* _tmp8_ = NULL;
		DataView* _tmp9_ = NULL;
		DataSource* _tmp10_ = NULL;
		DataSource* _tmp11_ = NULL;
		gboolean _tmp12_ = FALSE;
		ViewCollection* _tmp15_ = NULL;
		DataView* _tmp16_ = NULL;
		DataView* _tmp17_ = NULL;
		DataView* _tmp18_ = NULL;
		DataView* _tmp19_ = NULL;
#line 315 "/home/jens/Source/shotwell/src/SlideshowPage.vala"
		_tmp8_ = next_view;
#line 315 "/home/jens/Source/shotwell/src/SlideshowPage.vala"
		if (!(_tmp8_ != NULL)) {
#line 315 "/home/jens/Source/shotwell/src/SlideshowPage.vala"
			break;
#line 1725 "SlideshowPage.c"
		}
#line 316 "/home/jens/Source/shotwell/src/SlideshowPage.vala"
		_tmp9_ = next_view;
#line 316 "/home/jens/Source/shotwell/src/SlideshowPage.vala"
		_tmp10_ = data_view_get_source (_tmp9_);
#line 316 "/home/jens/Source/shotwell/src/SlideshowPage.vala"
		_tmp11_ = _tmp10_;
#line 316 "/home/jens/Source/shotwell/src/SlideshowPage.vala"
		_tmp12_ = G_TYPE_CHECK_INSTANCE_TYPE (_tmp11_, TYPE_PHOTO);
#line 316 "/home/jens/Source/shotwell/src/SlideshowPage.vala"
		_g_object_unref0 (_tmp11_);
#line 316 "/home/jens/Source/shotwell/src/SlideshowPage.vala"
		if (_tmp12_) {
#line 1739 "SlideshowPage.c"
			DataView* _tmp13_ = NULL;
			DataSource* _tmp14_ = NULL;
#line 317 "/home/jens/Source/shotwell/src/SlideshowPage.vala"
			_tmp13_ = next_view;
#line 317 "/home/jens/Source/shotwell/src/SlideshowPage.vala"
			_tmp14_ = data_view_get_source (_tmp13_);
#line 317 "/home/jens/Source/shotwell/src/SlideshowPage.vala"
			_g_object_unref0 (next_photo);
#line 317 "/home/jens/Source/shotwell/src/SlideshowPage.vala"
			next_photo = G_TYPE_CHECK_INSTANCE_CAST (_tmp14_, TYPE_PHOTO, Photo);
#line 318 "/home/jens/Source/shotwell/src/SlideshowPage.vala"
			break;
#line 1752 "SlideshowPage.c"
		}
#line 321 "/home/jens/Source/shotwell/src/SlideshowPage.vala"
		_tmp15_ = self->priv->controller;
#line 321 "/home/jens/Source/shotwell/src/SlideshowPage.vala"
		_tmp16_ = next_view;
#line 321 "/home/jens/Source/shotwell/src/SlideshowPage.vala"
		_tmp17_ = view_collection_get_next (_tmp15_, _tmp16_);
#line 321 "/home/jens/Source/shotwell/src/SlideshowPage.vala"
		_g_object_unref0 (next_view);
#line 321 "/home/jens/Source/shotwell/src/SlideshowPage.vala"
		next_view = _tmp17_;
#line 323 "/home/jens/Source/shotwell/src/SlideshowPage.vala"
		_tmp18_ = next_view;
#line 323 "/home/jens/Source/shotwell/src/SlideshowPage.vala"
		_tmp19_ = start_view;
#line 323 "/home/jens/Source/shotwell/src/SlideshowPage.vala"
		if (_tmp18_ == _tmp19_) {
#line 324 "/home/jens/Source/shotwell/src/SlideshowPage.vala"
			g_warning ("SlideshowPage.vala:324: on_next( ): can't advance to next photo: colle" \
"ction has only videos");
#line 325 "/home/jens/Source/shotwell/src/SlideshowPage.vala"
			_g_object_unref0 (next_view);
#line 325 "/home/jens/Source/shotwell/src/SlideshowPage.vala"
			_g_object_unref0 (start_view);
#line 325 "/home/jens/Source/shotwell/src/SlideshowPage.vala"
			_g_object_unref0 (next_photo);
#line 325 "/home/jens/Source/shotwell/src/SlideshowPage.vala"
			_g_object_unref0 (view);
#line 325 "/home/jens/Source/shotwell/src/SlideshowPage.vala"
			return;
#line 1782 "SlideshowPage.c"
		}
	}
#line 329 "/home/jens/Source/shotwell/src/SlideshowPage.vala"
	_tmp20_ = config_facade_get_instance ();
#line 329 "/home/jens/Source/shotwell/src/SlideshowPage.vala"
	_tmp21_ = _tmp20_;
#line 329 "/home/jens/Source/shotwell/src/SlideshowPage.vala"
	_tmp22_ = configuration_facade_get_slideshow_transition_effect_id (G_TYPE_CHECK_INSTANCE_CAST (_tmp21_, TYPE_CONFIGURATION_FACADE, ConfigurationFacade));
#line 329 "/home/jens/Source/shotwell/src/SlideshowPage.vala"
	_tmp23_ = _tmp22_;
#line 329 "/home/jens/Source/shotwell/src/SlideshowPage.vala"
	_tmp24_ = g_strcmp0 (_tmp23_, RANDOM_EFFECT_DESCRIPTOR_EFFECT_ID) == 0;
#line 329 "/home/jens/Source/shotwell/src/SlideshowPage.vala"
	_g_free0 (_tmp23_);
#line 329 "/home/jens/Source/shotwell/src/SlideshowPage.vala"
	_g_object_unref0 (_tmp21_);
#line 329 "/home/jens/Source/shotwell/src/SlideshowPage.vala"
	if (_tmp24_) {
#line 331 "/home/jens/Source/shotwell/src/SlideshowPage.vala"
		slideshow_page_random_transition_effect (self);
#line 1803 "SlideshowPage.c"
	}
#line 334 "/home/jens/Source/shotwell/src/SlideshowPage.vala"
	_tmp25_ = next_photo;
#line 334 "/home/jens/Source/shotwell/src/SlideshowPage.vala"
	slideshow_page_advance (self, _tmp25_, DIRECTION_FORWARD);
#line 308 "/home/jens/Source/shotwell/src/SlideshowPage.vala"
	_g_object_unref0 (next_view);
#line 308 "/home/jens/Source/shotwell/src/SlideshowPage.vala"
	_g_object_unref0 (start_view);
#line 308 "/home/jens/Source/shotwell/src/SlideshowPage.vala"
	_g_object_unref0 (next_photo);
#line 308 "/home/jens/Source/shotwell/src/SlideshowPage.vala"
	_g_object_unref0 (view);
#line 1817 "SlideshowPage.c"
}


static void slideshow_page_advance (SlideshowPage* self, Photo* photo, Direction direction) {
	Photo* _tmp0_ = NULL;
	Photo* _tmp1_ = NULL;
	GdkPixbuf* next_pixbuf = NULL;
	Photo* _tmp2_ = NULL;
	Direction _tmp3_ = 0;
	Photo* _tmp4_ = NULL;
	GdkPixbuf* _tmp5_ = NULL;
	gboolean _tmp6_ = FALSE;
	GTimer* _tmp11_ = NULL;
#line 337 "/home/jens/Source/shotwell/src/SlideshowPage.vala"
	g_return_if_fail (IS_SLIDESHOW_PAGE (self));
#line 337 "/home/jens/Source/shotwell/src/SlideshowPage.vala"
	g_return_if_fail (IS_PHOTO (photo));
#line 338 "/home/jens/Source/shotwell/src/SlideshowPage.vala"
	_tmp0_ = photo;
#line 338 "/home/jens/Source/shotwell/src/SlideshowPage.vala"
	_tmp1_ = _g_object_ref0 (_tmp0_);
#line 338 "/home/jens/Source/shotwell/src/SlideshowPage.vala"
	_g_object_unref0 (self->priv->current);
#line 338 "/home/jens/Source/shotwell/src/SlideshowPage.vala"
	self->priv->current = _tmp1_;
#line 342 "/home/jens/Source/shotwell/src/SlideshowPage.vala"
	_tmp2_ = self->priv->current;
#line 342 "/home/jens/Source/shotwell/src/SlideshowPage.vala"
	_tmp3_ = direction;
#line 342 "/home/jens/Source/shotwell/src/SlideshowPage.vala"
	_tmp6_ = slideshow_page_get_next_photo (self, _tmp2_, _tmp3_, &_tmp4_, &_tmp5_);
#line 342 "/home/jens/Source/shotwell/src/SlideshowPage.vala"
	_g_object_unref0 (self->priv->current);
#line 342 "/home/jens/Source/shotwell/src/SlideshowPage.vala"
	self->priv->current = _tmp4_;
#line 342 "/home/jens/Source/shotwell/src/SlideshowPage.vala"
	_g_object_unref0 (next_pixbuf);
#line 342 "/home/jens/Source/shotwell/src/SlideshowPage.vala"
	next_pixbuf = _tmp5_;
#line 342 "/home/jens/Source/shotwell/src/SlideshowPage.vala"
	if (_tmp6_) {
#line 1859 "SlideshowPage.c"
		GdkPixbuf* _tmp7_ = NULL;
		Photo* _tmp8_ = NULL;
		Dimensions _tmp9_ = {0};
		Direction _tmp10_ = 0;
#line 343 "/home/jens/Source/shotwell/src/SlideshowPage.vala"
		_tmp7_ = next_pixbuf;
#line 343 "/home/jens/Source/shotwell/src/SlideshowPage.vala"
		_tmp8_ = self->priv->current;
#line 343 "/home/jens/Source/shotwell/src/SlideshowPage.vala"
		media_source_get_dimensions (G_TYPE_CHECK_INSTANCE_CAST (_tmp8_, TYPE_MEDIA_SOURCE, MediaSource), PHOTO_EXCEPTION_NONE, &_tmp9_);
#line 343 "/home/jens/Source/shotwell/src/SlideshowPage.vala"
		_tmp10_ = direction;
#line 343 "/home/jens/Source/shotwell/src/SlideshowPage.vala"
		single_photo_page_set_pixbuf (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_SINGLE_PHOTO_PAGE, SinglePhotoPage), _tmp7_, &_tmp9_, &_tmp10_);
#line 1874 "SlideshowPage.c"
	}
#line 346 "/home/jens/Source/shotwell/src/SlideshowPage.vala"
	_tmp11_ = self->priv->timer;
#line 346 "/home/jens/Source/shotwell/src/SlideshowPage.vala"
	g_timer_start (_tmp11_);
#line 337 "/home/jens/Source/shotwell/src/SlideshowPage.vala"
	_g_object_unref0 (next_pixbuf);
#line 1882 "SlideshowPage.c"
}


static gboolean slideshow_page_auto_advance (SlideshowPage* self) {
	gboolean result = FALSE;
	gboolean _tmp0_ = FALSE;
	gboolean _tmp1_ = FALSE;
	GTimer* _tmp2_ = NULL;
	gdouble _tmp3_ = 0.0;
	ConfigFacade* _tmp4_ = NULL;
	ConfigFacade* _tmp5_ = NULL;
	gdouble _tmp6_ = 0.0;
	gboolean _tmp7_ = FALSE;
#line 349 "/home/jens/Source/shotwell/src/SlideshowPage.vala"
	g_return_val_if_fail (IS_SLIDESHOW_PAGE (self), FALSE);
#line 350 "/home/jens/Source/shotwell/src/SlideshowPage.vala"
	_tmp0_ = self->priv->exiting;
#line 350 "/home/jens/Source/shotwell/src/SlideshowPage.vala"
	if (_tmp0_) {
#line 351 "/home/jens/Source/shotwell/src/SlideshowPage.vala"
		result = FALSE;
#line 351 "/home/jens/Source/shotwell/src/SlideshowPage.vala"
		return result;
#line 1906 "SlideshowPage.c"
	}
#line 353 "/home/jens/Source/shotwell/src/SlideshowPage.vala"
	_tmp1_ = self->priv->playing;
#line 353 "/home/jens/Source/shotwell/src/SlideshowPage.vala"
	if (!_tmp1_) {
#line 354 "/home/jens/Source/shotwell/src/SlideshowPage.vala"
		result = TRUE;
#line 354 "/home/jens/Source/shotwell/src/SlideshowPage.vala"
		return result;
#line 1916 "SlideshowPage.c"
	}
#line 356 "/home/jens/Source/shotwell/src/SlideshowPage.vala"
	_tmp2_ = self->priv->timer;
#line 356 "/home/jens/Source/shotwell/src/SlideshowPage.vala"
	_tmp3_ = g_timer_elapsed (_tmp2_, NULL);
#line 356 "/home/jens/Source/shotwell/src/SlideshowPage.vala"
	_tmp4_ = config_facade_get_instance ();
#line 356 "/home/jens/Source/shotwell/src/SlideshowPage.vala"
	_tmp5_ = _tmp4_;
#line 356 "/home/jens/Source/shotwell/src/SlideshowPage.vala"
	_tmp6_ = configuration_facade_get_slideshow_delay (G_TYPE_CHECK_INSTANCE_CAST (_tmp5_, TYPE_CONFIGURATION_FACADE, ConfigurationFacade));
#line 356 "/home/jens/Source/shotwell/src/SlideshowPage.vala"
	_tmp7_ = _tmp3_ < _tmp6_;
#line 356 "/home/jens/Source/shotwell/src/SlideshowPage.vala"
	_g_object_unref0 (_tmp5_);
#line 356 "/home/jens/Source/shotwell/src/SlideshowPage.vala"
	if (_tmp7_) {
#line 357 "/home/jens/Source/shotwell/src/SlideshowPage.vala"
		result = TRUE;
#line 357 "/home/jens/Source/shotwell/src/SlideshowPage.vala"
		return result;
#line 1938 "SlideshowPage.c"
	}
#line 359 "/home/jens/Source/shotwell/src/SlideshowPage.vala"
	single_photo_page_on_next_photo (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_SINGLE_PHOTO_PAGE, SinglePhotoPage));
#line 361 "/home/jens/Source/shotwell/src/SlideshowPage.vala"
	result = TRUE;
#line 361 "/home/jens/Source/shotwell/src/SlideshowPage.vala"
	return result;
#line 1946 "SlideshowPage.c"
}


static gboolean slideshow_page_real_key_press_event (GtkWidget* base, GdkEventKey* event) {
	SlideshowPage * 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 366 "/home/jens/Source/shotwell/src/SlideshowPage.vala"
	static GQuark _tmp4_label0 = 0;
#line 1961 "SlideshowPage.c"
	gboolean _tmp6_ = FALSE;
	gboolean _tmp7_ = FALSE;
#line 364 "/home/jens/Source/shotwell/src/SlideshowPage.vala"
	self = G_TYPE_CHECK_INSTANCE_CAST (base, TYPE_SLIDESHOW_PAGE, SlideshowPage);
#line 364 "/home/jens/Source/shotwell/src/SlideshowPage.vala"
	g_return_val_if_fail (event != NULL, FALSE);
#line 365 "/home/jens/Source/shotwell/src/SlideshowPage.vala"
	handled = TRUE;
#line 366 "/home/jens/Source/shotwell/src/SlideshowPage.vala"
	_tmp0_ = event;
#line 366 "/home/jens/Source/shotwell/src/SlideshowPage.vala"
	_tmp1_ = _tmp0_->keyval;
#line 366 "/home/jens/Source/shotwell/src/SlideshowPage.vala"
	_tmp2_ = gdk_keyval_name (_tmp1_);
#line 366 "/home/jens/Source/shotwell/src/SlideshowPage.vala"
	_tmp3_ = _tmp2_;
#line 366 "/home/jens/Source/shotwell/src/SlideshowPage.vala"
	_tmp5_ = (NULL == _tmp3_) ? 0 : g_quark_from_string (_tmp3_);
#line 366 "/home/jens/Source/shotwell/src/SlideshowPage.vala"
	if (_tmp5_ == ((0 != _tmp4_label0) ? _tmp4_label0 : (_tmp4_label0 = g_quark_from_static_string ("space")))) {
#line 366 "/home/jens/Source/shotwell/src/SlideshowPage.vala"
		switch (0) {
#line 1984 "SlideshowPage.c"
			default:
			{
#line 368 "/home/jens/Source/shotwell/src/SlideshowPage.vala"
				slideshow_page_on_play_pause (self);
#line 369 "/home/jens/Source/shotwell/src/SlideshowPage.vala"
				break;
#line 1991 "SlideshowPage.c"
			}
		}
	} else {
#line 366 "/home/jens/Source/shotwell/src/SlideshowPage.vala"
		switch (0) {
#line 1997 "SlideshowPage.c"
			default:
			{
#line 372 "/home/jens/Source/shotwell/src/SlideshowPage.vala"
				handled = FALSE;
#line 373 "/home/jens/Source/shotwell/src/SlideshowPage.vala"
				break;
#line 2004 "SlideshowPage.c"
			}
		}
	}
#line 376 "/home/jens/Source/shotwell/src/SlideshowPage.vala"
	_tmp6_ = handled;
#line 376 "/home/jens/Source/shotwell/src/SlideshowPage.vala"
	if (_tmp6_) {
#line 377 "/home/jens/Source/shotwell/src/SlideshowPage.vala"
		result = TRUE;
#line 377 "/home/jens/Source/shotwell/src/SlideshowPage.vala"
		return result;
#line 2016 "SlideshowPage.c"
	}
#line 379 "/home/jens/Source/shotwell/src/SlideshowPage.vala"
	if (GTK_WIDGET_CLASS (slideshow_page_parent_class)->key_press_event != NULL) {
#line 2020 "SlideshowPage.c"
		GdkEventKey* _tmp8_ = NULL;
		gboolean _tmp9_ = FALSE;
#line 379 "/home/jens/Source/shotwell/src/SlideshowPage.vala"
		_tmp8_ = event;
#line 379 "/home/jens/Source/shotwell/src/SlideshowPage.vala"
		_tmp9_ = GTK_WIDGET_CLASS (slideshow_page_parent_class)->key_press_event (G_TYPE_CHECK_INSTANCE_CAST (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_SINGLE_PHOTO_PAGE, SinglePhotoPage), gtk_widget_get_type (), GtkWidget), _tmp8_);
#line 379 "/home/jens/Source/shotwell/src/SlideshowPage.vala"
		_tmp7_ = _tmp9_;
#line 2029 "SlideshowPage.c"
	} else {
#line 379 "/home/jens/Source/shotwell/src/SlideshowPage.vala"
		_tmp7_ = TRUE;
#line 2033 "SlideshowPage.c"
	}
#line 379 "/home/jens/Source/shotwell/src/SlideshowPage.vala"
	result = _tmp7_;
#line 379 "/home/jens/Source/shotwell/src/SlideshowPage.vala"
	return result;
#line 2039 "SlideshowPage.c"
}


static void slideshow_page_on_change_settings (SlideshowPage* self) {
	SlideshowPageSettingsDialog* settings_dialog = NULL;
	SlideshowPageSettingsDialog* _tmp0_ = NULL;
	SlideshowPageSettingsDialog* _tmp1_ = NULL;
	gboolean slideshow_playing = FALSE;
	gboolean _tmp2_ = FALSE;
	SlideshowPageSettingsDialog* _tmp3_ = NULL;
	gint _tmp4_ = 0;
	SlideshowPageSettingsDialog* _tmp22_ = NULL;
	gboolean _tmp23_ = FALSE;
	GTimer* _tmp24_ = NULL;
#line 382 "/home/jens/Source/shotwell/src/SlideshowPage.vala"
	g_return_if_fail (IS_SLIDESHOW_PAGE (self));
#line 383 "/home/jens/Source/shotwell/src/SlideshowPage.vala"
	_tmp0_ = slideshow_page_settings_dialog_new ();
#line 383 "/home/jens/Source/shotwell/src/SlideshowPage.vala"
	g_object_ref_sink (_tmp0_);
#line 383 "/home/jens/Source/shotwell/src/SlideshowPage.vala"
	settings_dialog = _tmp0_;
#line 384 "/home/jens/Source/shotwell/src/SlideshowPage.vala"
	_tmp1_ = settings_dialog;
#line 384 "/home/jens/Source/shotwell/src/SlideshowPage.vala"
	gtk_widget_show_all (G_TYPE_CHECK_INSTANCE_CAST (_tmp1_, gtk_widget_get_type (), GtkWidget));
#line 386 "/home/jens/Source/shotwell/src/SlideshowPage.vala"
	_tmp2_ = self->priv->playing;
#line 386 "/home/jens/Source/shotwell/src/SlideshowPage.vala"
	slideshow_playing = _tmp2_;
#line 387 "/home/jens/Source/shotwell/src/SlideshowPage.vala"
	self->priv->playing = FALSE;
#line 388 "/home/jens/Source/shotwell/src/SlideshowPage.vala"
	g_signal_emit_by_name (self, "hide-toolbar");
#line 390 "/home/jens/Source/shotwell/src/SlideshowPage.vala"
	_tmp3_ = settings_dialog;
#line 390 "/home/jens/Source/shotwell/src/SlideshowPage.vala"
	_tmp4_ = gtk_dialog_run (G_TYPE_CHECK_INSTANCE_CAST (_tmp3_, gtk_dialog_get_type (), GtkDialog));
#line 390 "/home/jens/Source/shotwell/src/SlideshowPage.vala"
	if (_tmp4_ == ((gint) GTK_RESPONSE_OK)) {
#line 2080 "SlideshowPage.c"
		ConfigFacade* _tmp5_ = NULL;
		ConfigFacade* _tmp6_ = NULL;
		SlideshowPageSettingsDialog* _tmp7_ = NULL;
		gdouble _tmp8_ = 0.0;
		ConfigFacade* _tmp9_ = NULL;
		ConfigFacade* _tmp10_ = NULL;
		SlideshowPageSettingsDialog* _tmp11_ = NULL;
		gdouble _tmp12_ = 0.0;
		ConfigFacade* _tmp13_ = NULL;
		ConfigFacade* _tmp14_ = NULL;
		SlideshowPageSettingsDialog* _tmp15_ = NULL;
		gchar* _tmp16_ = NULL;
		gchar* _tmp17_ = NULL;
		ConfigFacade* _tmp18_ = NULL;
		ConfigFacade* _tmp19_ = NULL;
		SlideshowPageSettingsDialog* _tmp20_ = NULL;
		gboolean _tmp21_ = FALSE;
#line 392 "/home/jens/Source/shotwell/src/SlideshowPage.vala"
		_tmp5_ = config_facade_get_instance ();
#line 392 "/home/jens/Source/shotwell/src/SlideshowPage.vala"
		_tmp6_ = _tmp5_;
#line 392 "/home/jens/Source/shotwell/src/SlideshowPage.vala"
		_tmp7_ = settings_dialog;
#line 392 "/home/jens/Source/shotwell/src/SlideshowPage.vala"
		_tmp8_ = slideshow_page_settings_dialog_get_delay (_tmp7_);
#line 392 "/home/jens/Source/shotwell/src/SlideshowPage.vala"
		configuration_facade_set_slideshow_delay (G_TYPE_CHECK_INSTANCE_CAST (_tmp6_, TYPE_CONFIGURATION_FACADE, ConfigurationFacade), _tmp8_);
#line 392 "/home/jens/Source/shotwell/src/SlideshowPage.vala"
		_g_object_unref0 (_tmp6_);
#line 394 "/home/jens/Source/shotwell/src/SlideshowPage.vala"
		_tmp9_ = config_facade_get_instance ();
#line 394 "/home/jens/Source/shotwell/src/SlideshowPage.vala"
		_tmp10_ = _tmp9_;
#line 394 "/home/jens/Source/shotwell/src/SlideshowPage.vala"
		_tmp11_ = settings_dialog;
#line 394 "/home/jens/Source/shotwell/src/SlideshowPage.vala"
		_tmp12_ = slideshow_page_settings_dialog_get_transition_delay (_tmp11_);
#line 394 "/home/jens/Source/shotwell/src/SlideshowPage.vala"
		configuration_facade_set_slideshow_transition_delay (G_TYPE_CHECK_INSTANCE_CAST (_tmp10_, TYPE_CONFIGURATION_FACADE, ConfigurationFacade), _tmp12_);
#line 394 "/home/jens/Source/shotwell/src/SlideshowPage.vala"
		_g_object_unref0 (_tmp10_);
#line 395 "/home/jens/Source/shotwell/src/SlideshowPage.vala"
		_tmp13_ = config_facade_get_instance ();
#line 395 "/home/jens/Source/shotwell/src/SlideshowPage.vala"
		_tmp14_ = _tmp13_;
#line 395 "/home/jens/Source/shotwell/src/SlideshowPage.vala"
		_tmp15_ = settings_dialog;
#line 395 "/home/jens/Source/shotwell/src/SlideshowPage.vala"
		_tmp16_ = slideshow_page_settings_dialog_get_transition_effect_id (_tmp15_);
#line 395 "/home/jens/Source/shotwell/src/SlideshowPage.vala"
		_tmp17_ = _tmp16_;
#line 395 "/home/jens/Source/shotwell/src/SlideshowPage.vala"
		configuration_facade_set_slideshow_transition_effect_id (G_TYPE_CHECK_INSTANCE_CAST (_tmp14_, TYPE_CONFIGURATION_FACADE, ConfigurationFacade), _tmp17_);
#line 395 "/home/jens/Source/shotwell/src/SlideshowPage.vala"
		_g_free0 (_tmp17_);
#line 395 "/home/jens/Source/shotwell/src/SlideshowPage.vala"
		_g_object_unref0 (_tmp14_);
#line 396 "/home/jens/Source/shotwell/src/SlideshowPage.vala"
		_tmp18_ = config_facade_get_instance ();
#line 396 "/home/jens/Source/shotwell/src/SlideshowPage.vala"
		_tmp19_ = _tmp18_;
#line 396 "/home/jens/Source/shotwell/src/SlideshowPage.vala"
		_tmp20_ = settings_dialog;
#line 396 "/home/jens/Source/shotwell/src/SlideshowPage.vala"
		_tmp21_ = slideshow_page_settings_dialog_get_show_title (_tmp20_);
#line 396 "/home/jens/Source/shotwell/src/SlideshowPage.vala"
		configuration_facade_set_slideshow_show_title (G_TYPE_CHECK_INSTANCE_CAST (_tmp19_, TYPE_CONFIGURATION_FACADE, ConfigurationFacade), _tmp21_);
#line 396 "/home/jens/Source/shotwell/src/SlideshowPage.vala"
		_g_object_unref0 (_tmp19_);
#line 398 "/home/jens/Source/shotwell/src/SlideshowPage.vala"
		slideshow_page_update_transition_effect (self);
#line 2152 "SlideshowPage.c"
	}
#line 401 "/home/jens/Source/shotwell/src/SlideshowPage.vala"
	_tmp22_ = settings_dialog;
#line 401 "/home/jens/Source/shotwell/src/SlideshowPage.vala"
	gtk_widget_destroy (G_TYPE_CHECK_INSTANCE_CAST (_tmp22_, gtk_widget_get_type (), GtkWidget));
#line 402 "/home/jens/Source/shotwell/src/SlideshowPage.vala"
	_tmp23_ = slideshow_playing;
#line 402 "/home/jens/Source/shotwell/src/SlideshowPage.vala"
	self->priv->playing = _tmp23_;
#line 403 "/home/jens/Source/shotwell/src/SlideshowPage.vala"
	_tmp24_ = self->priv->timer;
#line 403 "/home/jens/Source/shotwell/src/SlideshowPage.vala"
	g_timer_start (_tmp24_);
#line 382 "/home/jens/Source/shotwell/src/SlideshowPage.vala"
	_g_object_unref0 (settings_dialog);
#line 2168 "SlideshowPage.c"
}


static void slideshow_page_update_transition_effect (SlideshowPage* self) {
	gchar* effect_id = NULL;
	ConfigFacade* _tmp0_ = NULL;
	ConfigFacade* _tmp1_ = NULL;
	gchar* _tmp2_ = NULL;
	gchar* _tmp3_ = NULL;
	gdouble effect_delay = 0.0;
	ConfigFacade* _tmp4_ = NULL;
	ConfigFacade* _tmp5_ = NULL;
	gdouble _tmp6_ = 0.0;
	gdouble _tmp7_ = 0.0;
#line 406 "/home/jens/Source/shotwell/src/SlideshowPage.vala"
	g_return_if_fail (IS_SLIDESHOW_PAGE (self));
#line 407 "/home/jens/Source/shotwell/src/SlideshowPage.vala"
	_tmp0_ = config_facade_get_instance ();
#line 407 "/home/jens/Source/shotwell/src/SlideshowPage.vala"
	_tmp1_ = _tmp0_;
#line 407 "/home/jens/Source/shotwell/src/SlideshowPage.vala"
	_tmp2_ = configuration_facade_get_slideshow_transition_effect_id (G_TYPE_CHECK_INSTANCE_CAST (_tmp1_, TYPE_CONFIGURATION_FACADE, ConfigurationFacade));
#line 407 "/home/jens/Source/shotwell/src/SlideshowPage.vala"
	_tmp3_ = _tmp2_;
#line 407 "/home/jens/Source/shotwell/src/SlideshowPage.vala"
	_g_object_unref0 (_tmp1_);
#line 407 "/home/jens/Source/shotwell/src/SlideshowPage.vala"
	effect_id = _tmp3_;
#line 408 "/home/jens/Source/shotwell/src/SlideshowPage.vala"
	_tmp4_ = config_facade_get_instance ();
#line 408 "/home/jens/Source/shotwell/src/SlideshowPage.vala"
	_tmp5_ = _tmp4_;
#line 408 "/home/jens/Source/shotwell/src/SlideshowPage.vala"
	_tmp6_ = configuration_facade_get_slideshow_transition_delay (G_TYPE_CHECK_INSTANCE_CAST (_tmp5_, TYPE_CONFIGURATION_FACADE, ConfigurationFacade));
#line 408 "/home/jens/Source/shotwell/src/SlideshowPage.vala"
	_tmp7_ = _tmp6_;
#line 408 "/home/jens/Source/shotwell/src/SlideshowPage.vala"
	_g_object_unref0 (_tmp5_);
#line 408 "/home/jens/Source/shotwell/src/SlideshowPage.vala"
	effect_delay = _tmp7_;
#line 410 "/home/jens/Source/shotwell/src/SlideshowPage.vala"
	single_photo_page_set_transition (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_SINGLE_PHOTO_PAGE, SinglePhotoPage), effect_id, (gint) (effect_delay * 1000.0));
#line 406 "/home/jens/Source/shotwell/src/SlideshowPage.vala"
	_g_free0 (effect_id);
#line 2213 "SlideshowPage.c"
}


static void slideshow_page_random_transition_effect (SlideshowPage* self) {
	gdouble effect_delay = 0.0;
	ConfigFacade* _tmp0_ = NULL;
	ConfigFacade* _tmp1_ = NULL;
	gdouble _tmp2_ = 0.0;
	gdouble _tmp3_ = 0.0;
	gchar* effect_id = NULL;
	gchar* _tmp4_ = NULL;
	gchar** _tmp5_ = NULL;
	gint _tmp5__length1 = 0;
	const gchar* _tmp12_ = NULL;
	gdouble _tmp13_ = 0.0;
#line 413 "/home/jens/Source/shotwell/src/SlideshowPage.vala"
	g_return_if_fail (IS_SLIDESHOW_PAGE (self));
#line 414 "/home/jens/Source/shotwell/src/SlideshowPage.vala"
	_tmp0_ = config_facade_get_instance ();
#line 414 "/home/jens/Source/shotwell/src/SlideshowPage.vala"
	_tmp1_ = _tmp0_;
#line 414 "/home/jens/Source/shotwell/src/SlideshowPage.vala"
	_tmp2_ = configuration_facade_get_slideshow_transition_delay (G_TYPE_CHECK_INSTANCE_CAST (_tmp1_, TYPE_CONFIGURATION_FACADE, ConfigurationFacade));
#line 414 "/home/jens/Source/shotwell/src/SlideshowPage.vala"
	_tmp3_ = _tmp2_;
#line 414 "/home/jens/Source/shotwell/src/SlideshowPage.vala"
	_g_object_unref0 (_tmp1_);
#line 414 "/home/jens/Source/shotwell/src/SlideshowPage.vala"
	effect_delay = _tmp3_;
#line 415 "/home/jens/Source/shotwell/src/SlideshowPage.vala"
	_tmp4_ = g_strdup (TRANSITION_EFFECTS_MANAGER_NULL_EFFECT_ID);
#line 415 "/home/jens/Source/shotwell/src/SlideshowPage.vala"
	effect_id = _tmp4_;
#line 416 "/home/jens/Source/shotwell/src/SlideshowPage.vala"
	_tmp5_ = self->priv->transitions;
#line 416 "/home/jens/Source/shotwell/src/SlideshowPage.vala"
	_tmp5__length1 = self->priv->transitions_length1;
#line 416 "/home/jens/Source/shotwell/src/SlideshowPage.vala"
	if (0 < _tmp5__length1) {
#line 2253 "SlideshowPage.c"
		gint random = 0;
		gchar** _tmp6_ = NULL;
		gint _tmp6__length1 = 0;
		gint32 _tmp7_ = 0;
		gchar** _tmp8_ = NULL;
		gint _tmp8__length1 = 0;
		gint _tmp9_ = 0;
		const gchar* _tmp10_ = NULL;
		gchar* _tmp11_ = NULL;
#line 417 "/home/jens/Source/shotwell/src/SlideshowPage.vala"
		_tmp6_ = self->priv->transitions;
#line 417 "/home/jens/Source/shotwell/src/SlideshowPage.vala"
		_tmp6__length1 = self->priv->transitions_length1;
#line 417 "/home/jens/Source/shotwell/src/SlideshowPage.vala"
		_tmp7_ = g_random_int_range ((gint32) 0, (gint32) _tmp6__length1);
#line 417 "/home/jens/Source/shotwell/src/SlideshowPage.vala"
		random = (gint) _tmp7_;
#line 418 "/home/jens/Source/shotwell/src/SlideshowPage.vala"
		_tmp8_ = self->priv->transitions;
#line 418 "/home/jens/Source/shotwell/src/SlideshowPage.vala"
		_tmp8__length1 = self->priv->transitions_length1;
#line 418 "/home/jens/Source/shotwell/src/SlideshowPage.vala"
		_tmp9_ = random;
#line 418 "/home/jens/Source/shotwell/src/SlideshowPage.vala"
		_tmp10_ = _tmp8_[_tmp9_];
#line 418 "/home/jens/Source/shotwell/src/SlideshowPage.vala"
		_tmp11_ = g_strdup (_tmp10_);
#line 418 "/home/jens/Source/shotwell/src/SlideshowPage.vala"
		_g_free0 (effect_id);
#line 418 "/home/jens/Source/shotwell/src/SlideshowPage.vala"
		effect_id = _tmp11_;
#line 2285 "SlideshowPage.c"
	}
#line 420 "/home/jens/Source/shotwell/src/SlideshowPage.vala"
	_tmp12_ = effect_id;
#line 420 "/home/jens/Source/shotwell/src/SlideshowPage.vala"
	_tmp13_ = effect_delay;
#line 420 "/home/jens/Source/shotwell/src/SlideshowPage.vala"
	single_photo_page_set_transition (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_SINGLE_PHOTO_PAGE, SinglePhotoPage), _tmp12_, (gint) (_tmp13_ * 1000.0));
#line 413 "/home/jens/Source/shotwell/src/SlideshowPage.vala"
	_g_free0 (effect_id);
#line 2295 "SlideshowPage.c"
}


static void slideshow_page_paint_title (SlideshowPage* self, cairo_t* ctx, Dimensions* ctx_dim) {
	gchar* title = NULL;
	Photo* _tmp0_ = NULL;
	gchar* _tmp1_ = NULL;
	gboolean _tmp2_ = FALSE;
	const gchar* _tmp3_ = NULL;
	PangoLayout* layout = NULL;
	const gchar* _tmp5_ = NULL;
	PangoLayout* _tmp6_ = NULL;
	PangoAttrList* list = NULL;
	PangoAttrList* _tmp7_ = NULL;
	PangoAttribute* size = NULL;
	PangoAttribute* _tmp8_ = NULL;
	PangoAttrList* _tmp9_ = NULL;
	PangoAttribute* _tmp10_ = NULL;
	PangoAttribute* _tmp11_ = NULL;
	PangoLayout* _tmp12_ = NULL;
	PangoAttrList* _tmp13_ = NULL;
	PangoLayout* _tmp14_ = NULL;
	Dimensions _tmp15_ = {0};
	gint _tmp16_ = 0;
	gint title_width = 0;
	gint title_height = 0;
	PangoLayout* _tmp17_ = NULL;
	gint _tmp18_ = 0;
	gint _tmp19_ = 0;
	gdouble x = 0.0;
	Dimensions _tmp20_ = {0};
	gint _tmp21_ = 0;
	gdouble y = 0.0;
	Dimensions _tmp22_ = {0};
	gint _tmp23_ = 0;
	gdouble _tmp24_ = 0.0;
	gint _tmp25_ = 0;
	Dimensions _tmp26_ = {0};
	gint _tmp27_ = 0;
	gdouble _tmp31_ = 0.0;
	gint _tmp32_ = 0;
	Dimensions _tmp33_ = {0};
	gint _tmp34_ = 0;
	cairo_t* _tmp38_ = NULL;
	cairo_t* _tmp39_ = NULL;
	gdouble _tmp40_ = 0.0;
	gdouble _tmp41_ = 0.0;
	cairo_t* _tmp42_ = NULL;
	PangoLayout* _tmp43_ = NULL;
	cairo_t* _tmp44_ = NULL;
	PangoLayout* _tmp45_ = NULL;
	cairo_t* _tmp46_ = NULL;
	cairo_t* _tmp47_ = NULL;
	cairo_t* _tmp48_ = NULL;
#line 424 "/home/jens/Source/shotwell/src/SlideshowPage.vala"
	g_return_if_fail (IS_SLIDESHOW_PAGE (self));
#line 424 "/home/jens/Source/shotwell/src/SlideshowPage.vala"
	g_return_if_fail (ctx != NULL);
#line 424 "/home/jens/Source/shotwell/src/SlideshowPage.vala"
	g_return_if_fail (ctx_dim != NULL);
#line 425 "/home/jens/Source/shotwell/src/SlideshowPage.vala"
	_tmp0_ = self->priv->current;
#line 425 "/home/jens/Source/shotwell/src/SlideshowPage.vala"
	_tmp1_ = media_source_get_title (G_TYPE_CHECK_INSTANCE_CAST (_tmp0_, TYPE_MEDIA_SOURCE, MediaSource));
#line 425 "/home/jens/Source/shotwell/src/SlideshowPage.vala"
	title = _tmp1_;
#line 428 "/home/jens/Source/shotwell/src/SlideshowPage.vala"
	_tmp3_ = title;
#line 428 "/home/jens/Source/shotwell/src/SlideshowPage.vala"
	if (_tmp3_ == NULL) {
#line 428 "/home/jens/Source/shotwell/src/SlideshowPage.vala"
		_tmp2_ = TRUE;
#line 2368 "SlideshowPage.c"
	} else {
		const gchar* _tmp4_ = NULL;
#line 428 "/home/jens/Source/shotwell/src/SlideshowPage.vala"
		_tmp4_ = title;
#line 428 "/home/jens/Source/shotwell/src/SlideshowPage.vala"
		_tmp2_ = g_strcmp0 (_tmp4_, "") == 0;
#line 2375 "SlideshowPage.c"
	}
#line 428 "/home/jens/Source/shotwell/src/SlideshowPage.vala"
	if (_tmp2_) {
#line 429 "/home/jens/Source/shotwell/src/SlideshowPage.vala"
		_g_free0 (title);
#line 429 "/home/jens/Source/shotwell/src/SlideshowPage.vala"
		return;
#line 2383 "SlideshowPage.c"
	}
#line 431 "/home/jens/Source/shotwell/src/SlideshowPage.vala"
	_tmp5_ = title;
#line 431 "/home/jens/Source/shotwell/src/SlideshowPage.vala"
	_tmp6_ = gtk_widget_create_pango_layout (G_TYPE_CHECK_INSTANCE_CAST (self, gtk_widget_get_type (), GtkWidget), _tmp5_);
#line 431 "/home/jens/Source/shotwell/src/SlideshowPage.vala"
	layout = _tmp6_;
#line 432 "/home/jens/Source/shotwell/src/SlideshowPage.vala"
	_tmp7_ = pango_attr_list_new ();
#line 432 "/home/jens/Source/shotwell/src/SlideshowPage.vala"
	list = _tmp7_;
#line 433 "/home/jens/Source/shotwell/src/SlideshowPage.vala"
	_tmp8_ = pango_attr_scale_new ((gdouble) 3);
#line 433 "/home/jens/Source/shotwell/src/SlideshowPage.vala"
	size = _tmp8_;
#line 434 "/home/jens/Source/shotwell/src/SlideshowPage.vala"
	_tmp9_ = list;
#line 434 "/home/jens/Source/shotwell/src/SlideshowPage.vala"
	_tmp10_ = size;
#line 434 "/home/jens/Source/shotwell/src/SlideshowPage.vala"
	_tmp11_ = pango_attribute_copy (_tmp10_);
#line 434 "/home/jens/Source/shotwell/src/SlideshowPage.vala"
	pango_attr_list_insert (_tmp9_, _tmp11_);
#line 435 "/home/jens/Source/shotwell/src/SlideshowPage.vala"
	_tmp12_ = layout;
#line 435 "/home/jens/Source/shotwell/src/SlideshowPage.vala"
	_tmp13_ = list;
#line 435 "/home/jens/Source/shotwell/src/SlideshowPage.vala"
	pango_layout_set_attributes (_tmp12_, _tmp13_);
#line 436 "/home/jens/Source/shotwell/src/SlideshowPage.vala"
	_tmp14_ = layout;
#line 436 "/home/jens/Source/shotwell/src/SlideshowPage.vala"
	_tmp15_ = *ctx_dim;
#line 436 "/home/jens/Source/shotwell/src/SlideshowPage.vala"
	_tmp16_ = _tmp15_.width;
#line 436 "/home/jens/Source/shotwell/src/SlideshowPage.vala"
	pango_layout_set_width (_tmp14_, (gint) ((_tmp16_ * 0.9) * PANGO_SCALE));
#line 440 "/home/jens/Source/shotwell/src/SlideshowPage.vala"
	_tmp17_ = layout;
#line 440 "/home/jens/Source/shotwell/src/SlideshowPage.vala"
	pango_layout_get_pixel_size (_tmp17_, &_tmp18_, &_tmp19_);
#line 440 "/home/jens/Source/shotwell/src/SlideshowPage.vala"
	title_width = _tmp18_;
#line 440 "/home/jens/Source/shotwell/src/SlideshowPage.vala"
	title_height = _tmp19_;
#line 441 "/home/jens/Source/shotwell/src/SlideshowPage.vala"
	_tmp20_ = *ctx_dim;
#line 441 "/home/jens/Source/shotwell/src/SlideshowPage.vala"
	_tmp21_ = _tmp20_.width;
#line 441 "/home/jens/Source/shotwell/src/SlideshowPage.vala"
	x = _tmp21_ * 0.2;
#line 442 "/home/jens/Source/shotwell/src/SlideshowPage.vala"
	_tmp22_ = *ctx_dim;
#line 442 "/home/jens/Source/shotwell/src/SlideshowPage.vala"
	_tmp23_ = _tmp22_.height;
#line 442 "/home/jens/Source/shotwell/src/SlideshowPage.vala"
	y = _tmp23_ * 0.90;
#line 445 "/home/jens/Source/shotwell/src/SlideshowPage.vala"
	_tmp24_ = y;
#line 445 "/home/jens/Source/shotwell/src/SlideshowPage.vala"
	_tmp25_ = title_height;
#line 445 "/home/jens/Source/shotwell/src/SlideshowPage.vala"
	_tmp26_ = *ctx_dim;
#line 445 "/home/jens/Source/shotwell/src/SlideshowPage.vala"
	_tmp27_ = _tmp26_.height;
#line 445 "/home/jens/Source/shotwell/src/SlideshowPage.vala"
	if ((_tmp24_ + _tmp25_) >= (_tmp27_ * 0.95)) {
#line 2451 "SlideshowPage.c"
		Dimensions _tmp28_ = {0};
		gint _tmp29_ = 0;
		gint _tmp30_ = 0;
#line 446 "/home/jens/Source/shotwell/src/SlideshowPage.vala"
		_tmp28_ = *ctx_dim;
#line 446 "/home/jens/Source/shotwell/src/SlideshowPage.vala"
		_tmp29_ = _tmp28_.height;
#line 446 "/home/jens/Source/shotwell/src/SlideshowPage.vala"
		_tmp30_ = title_height;
#line 446 "/home/jens/Source/shotwell/src/SlideshowPage.vala"
		y = (_tmp29_ * 0.95) - _tmp30_;
#line 2463 "SlideshowPage.c"
	}
#line 448 "/home/jens/Source/shotwell/src/SlideshowPage.vala"
	_tmp31_ = x;
#line 448 "/home/jens/Source/shotwell/src/SlideshowPage.vala"
	_tmp32_ = title_width;
#line 448 "/home/jens/Source/shotwell/src/SlideshowPage.vala"
	_tmp33_ = *ctx_dim;
#line 448 "/home/jens/Source/shotwell/src/SlideshowPage.vala"
	_tmp34_ = _tmp33_.width;
#line 448 "/home/jens/Source/shotwell/src/SlideshowPage.vala"
	if ((_tmp31_ + _tmp32_) >= (_tmp34_ * 0.95)) {
#line 2475 "SlideshowPage.c"
		Dimensions _tmp35_ = {0};
		gint _tmp36_ = 0;
		gint _tmp37_ = 0;
#line 449 "/home/jens/Source/shotwell/src/SlideshowPage.vala"
		_tmp35_ = *ctx_dim;
#line 449 "/home/jens/Source/shotwell/src/SlideshowPage.vala"
		_tmp36_ = _tmp35_.width;
#line 449 "/home/jens/Source/shotwell/src/SlideshowPage.vala"
		_tmp37_ = title_width;
#line 449 "/home/jens/Source/shotwell/src/SlideshowPage.vala"
		x = (gdouble) ((_tmp36_ / 2) - (_tmp37_ / 2));
#line 2487 "SlideshowPage.c"
	}
#line 451 "/home/jens/Source/shotwell/src/SlideshowPage.vala"
	_tmp38_ = ctx;
#line 451 "/home/jens/Source/shotwell/src/SlideshowPage.vala"
	set_source_color_from_string (_tmp38_, "#fff");
#line 452 "/home/jens/Source/shotwell/src/SlideshowPage.vala"
	_tmp39_ = ctx;
#line 452 "/home/jens/Source/shotwell/src/SlideshowPage.vala"
	_tmp40_ = x;
#line 452 "/home/jens/Source/shotwell/src/SlideshowPage.vala"
	_tmp41_ = y;
#line 452 "/home/jens/Source/shotwell/src/SlideshowPage.vala"
	cairo_move_to (_tmp39_, _tmp40_, _tmp41_);
#line 453 "/home/jens/Source/shotwell/src/SlideshowPage.vala"
	_tmp42_ = ctx;
#line 453 "/home/jens/Source/shotwell/src/SlideshowPage.vala"
	_tmp43_ = layout;
#line 453 "/home/jens/Source/shotwell/src/SlideshowPage.vala"
	pango_cairo_show_layout (_tmp42_, _tmp43_);
#line 454 "/home/jens/Source/shotwell/src/SlideshowPage.vala"
	_tmp44_ = ctx;
#line 454 "/home/jens/Source/shotwell/src/SlideshowPage.vala"
	_tmp45_ = layout;
#line 454 "/home/jens/Source/shotwell/src/SlideshowPage.vala"
	pango_cairo_layout_path (_tmp44_, _tmp45_);
#line 455 "/home/jens/Source/shotwell/src/SlideshowPage.vala"
	_tmp46_ = ctx;
#line 455 "/home/jens/Source/shotwell/src/SlideshowPage.vala"
	cairo_set_line_width (_tmp46_, 1.5);
#line 456 "/home/jens/Source/shotwell/src/SlideshowPage.vala"
	_tmp47_ = ctx;
#line 456 "/home/jens/Source/shotwell/src/SlideshowPage.vala"
	set_source_color_from_string (_tmp47_, "#000");
#line 457 "/home/jens/Source/shotwell/src/SlideshowPage.vala"
	_tmp48_ = ctx;
#line 457 "/home/jens/Source/shotwell/src/SlideshowPage.vala"
	cairo_stroke (_tmp48_);
#line 424 "/home/jens/Source/shotwell/src/SlideshowPage.vala"
	_pango_attribute_destroy0 (size);
#line 424 "/home/jens/Source/shotwell/src/SlideshowPage.vala"
	_pango_attr_list_unref0 (list);
#line 424 "/home/jens/Source/shotwell/src/SlideshowPage.vala"
	_g_object_unref0 (layout);
#line 424 "/home/jens/Source/shotwell/src/SlideshowPage.vala"
	_g_free0 (title);
#line 2533 "SlideshowPage.c"
}


static void slideshow_page_real_paint (SinglePhotoPage* base, cairo_t* ctx, Dimensions* ctx_dim) {
	SlideshowPage * self;
	cairo_t* _tmp0_ = NULL;
	Dimensions _tmp1_ = {0};
	gboolean _tmp2_ = FALSE;
	ConfigFacade* _tmp3_ = NULL;
	ConfigFacade* _tmp4_ = NULL;
	gboolean _tmp5_ = FALSE;
	gboolean _tmp6_ = FALSE;
#line 460 "/home/jens/Source/shotwell/src/SlideshowPage.vala"
	self = G_TYPE_CHECK_INSTANCE_CAST (base, TYPE_SLIDESHOW_PAGE, SlideshowPage);
#line 460 "/home/jens/Source/shotwell/src/SlideshowPage.vala"
	g_return_if_fail (ctx != NULL);
#line 460 "/home/jens/Source/shotwell/src/SlideshowPage.vala"
	g_return_if_fail (ctx_dim != NULL);
#line 461 "/home/jens/Source/shotwell/src/SlideshowPage.vala"
	_tmp0_ = ctx;
#line 461 "/home/jens/Source/shotwell/src/SlideshowPage.vala"
	_tmp1_ = *ctx_dim;
#line 461 "/home/jens/Source/shotwell/src/SlideshowPage.vala"
	SINGLE_PHOTO_PAGE_CLASS (slideshow_page_parent_class)->paint (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_SINGLE_PHOTO_PAGE, SinglePhotoPage), _tmp0_, &_tmp1_);
#line 463 "/home/jens/Source/shotwell/src/SlideshowPage.vala"
	_tmp3_ = config_facade_get_instance ();
#line 463 "/home/jens/Source/shotwell/src/SlideshowPage.vala"
	_tmp4_ = _tmp3_;
#line 463 "/home/jens/Source/shotwell/src/SlideshowPage.vala"
	_tmp5_ = configuration_facade_get_slideshow_show_title (G_TYPE_CHECK_INSTANCE_CAST (_tmp4_, TYPE_CONFIGURATION_FACADE, ConfigurationFacade));
#line 463 "/home/jens/Source/shotwell/src/SlideshowPage.vala"
	_tmp6_ = _tmp5_;
#line 463 "/home/jens/Source/shotwell/src/SlideshowPage.vala"
	_g_object_unref0 (_tmp4_);
#line 463 "/home/jens/Source/shotwell/src/SlideshowPage.vala"
	if (_tmp6_) {
#line 2570 "SlideshowPage.c"
		gboolean _tmp7_ = FALSE;
#line 463 "/home/jens/Source/shotwell/src/SlideshowPage.vala"
		_tmp7_ = single_photo_page_is_transition_in_progress (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_SINGLE_PHOTO_PAGE, SinglePhotoPage));
#line 463 "/home/jens/Source/shotwell/src/SlideshowPage.vala"
		_tmp2_ = !_tmp7_;
#line 2576 "SlideshowPage.c"
	} else {
#line 463 "/home/jens/Source/shotwell/src/SlideshowPage.vala"
		_tmp2_ = FALSE;
#line 2580 "SlideshowPage.c"
	}
#line 463 "/home/jens/Source/shotwell/src/SlideshowPage.vala"
	if (_tmp2_) {
#line 2584 "SlideshowPage.c"
		cairo_t* _tmp8_ = NULL;
		Dimensions _tmp9_ = {0};
#line 464 "/home/jens/Source/shotwell/src/SlideshowPage.vala"
		_tmp8_ = ctx;
#line 464 "/home/jens/Source/shotwell/src/SlideshowPage.vala"
		_tmp9_ = *ctx_dim;
#line 464 "/home/jens/Source/shotwell/src/SlideshowPage.vala"
		slideshow_page_paint_title (self, _tmp8_, &_tmp9_);
#line 2593 "SlideshowPage.c"
	}
}


static gint _utf8_ci_compare_gcompare_data_func (gconstpointer a, gconstpointer b, gpointer self) {
	gint result;
	result = utf8_ci_compare (a, b);
#line 73 "/home/jens/Source/shotwell/src/SlideshowPage.vala"
	return result;
#line 2603 "SlideshowPage.c"
}


static void _slideshow_page_settings_dialog_on_transition_changed_gtk_combo_box_changed (GtkComboBox* _sender, gpointer self) {
#line 84 "/home/jens/Source/shotwell/src/SlideshowPage.vala"
	slideshow_page_settings_dialog_on_transition_changed ((SlideshowPageSettingsDialog*) self);
#line 2610 "SlideshowPage.c"
}


static SlideshowPageSettingsDialog* slideshow_page_settings_dialog_construct (GType object_type) {
	SlideshowPageSettingsDialog * self = NULL;
	GtkBuilder* _tmp0_ = NULL;
	GtkBuilder* _tmp1_ = NULL;
	GObject* _tmp2_ = NULL;
	GtkBox* _tmp3_ = NULL;
	GtkBox* _tmp4_ = NULL;
	GtkBox* _tmp5_ = NULL;
	gdouble delay = 0.0;
	ConfigFacade* _tmp6_ = NULL;
	ConfigFacade* _tmp7_ = NULL;
	gdouble _tmp8_ = 0.0;
	gdouble _tmp9_ = 0.0;
	FullscreenWindow* _tmp10_ = NULL;
	FullscreenWindow* _tmp11_ = NULL;
	const gchar* _tmp12_ = NULL;
	GtkAdjustment* adjustment = NULL;
	gdouble _tmp13_ = 0.0;
	GtkAdjustment* _tmp14_ = NULL;
	GtkBuilder* _tmp15_ = NULL;
	GObject* _tmp16_ = NULL;
	GtkScale* _tmp17_ = NULL;
	GtkScale* _tmp18_ = NULL;
	GtkAdjustment* _tmp19_ = NULL;
	GtkBuilder* _tmp20_ = NULL;
	GObject* _tmp21_ = NULL;
	GtkSpinButton* _tmp22_ = NULL;
	GtkSpinButton* _tmp23_ = NULL;
	GtkAdjustment* _tmp24_ = NULL;
	GtkSpinButton* _tmp25_ = NULL;
	gdouble _tmp26_ = 0.0;
	GtkSpinButton* _tmp27_ = NULL;
	GtkSpinButton* _tmp28_ = NULL;
	GtkBuilder* _tmp29_ = NULL;
	GObject* _tmp30_ = NULL;
	GtkComboBoxText* _tmp31_ = NULL;
	gchar* effect_id = NULL;
	ConfigFacade* _tmp32_ = NULL;
	ConfigFacade* _tmp33_ = NULL;
	gchar* _tmp34_ = NULL;
	gchar* _tmp35_ = NULL;
	gchar* null_display_name = NULL;
	TransitionEffectsManager* _tmp36_ = NULL;
	TransitionEffectsManager* _tmp37_ = NULL;
	gchar* _tmp38_ = NULL;
	gchar* _tmp39_ = NULL;
	GtkComboBoxText* _tmp40_ = NULL;
	const gchar* _tmp41_ = NULL;
	GtkComboBoxText* _tmp42_ = NULL;
	gint i = 0;
	GtkComboBoxText* _tmp67_ = NULL;
	gdouble transition_delay = 0.0;
	ConfigFacade* _tmp68_ = NULL;
	ConfigFacade* _tmp69_ = NULL;
	gdouble _tmp70_ = 0.0;
	gdouble _tmp71_ = 0.0;
	GtkAdjustment* _tmp72_ = NULL;
	GtkBuilder* _tmp73_ = NULL;
	GObject* _tmp74_ = NULL;
	GtkScale* _tmp75_ = NULL;
	GtkScale* _tmp76_ = NULL;
	GtkAdjustment* _tmp77_ = NULL;
	GtkBuilder* _tmp78_ = NULL;
	GObject* _tmp79_ = NULL;
	GtkSpinButton* _tmp80_ = NULL;
	GtkSpinButton* _tmp81_ = NULL;
	GtkAdjustment* _tmp82_ = NULL;
	GtkSpinButton* _tmp83_ = NULL;
	GtkSpinButton* _tmp84_ = NULL;
	GtkSpinButton* _tmp85_ = NULL;
	gboolean show_title = FALSE;
	ConfigFacade* _tmp86_ = NULL;
	ConfigFacade* _tmp87_ = NULL;
	gboolean _tmp88_ = FALSE;
	gboolean _tmp89_ = FALSE;
	GtkBuilder* _tmp90_ = NULL;
	GObject* _tmp91_ = NULL;
	GtkCheckButton* _tmp92_ = NULL;
	GtkCheckButton* _tmp93_ = NULL;
#line 37 "/home/jens/Source/shotwell/src/SlideshowPage.vala"
	self = (SlideshowPageSettingsDialog*) g_object_new (object_type, NULL);
#line 38 "/home/jens/Source/shotwell/src/SlideshowPage.vala"
	_tmp0_ = app_window_create_builder ("shotwell.ui", NULL);
#line 38 "/home/jens/Source/shotwell/src/SlideshowPage.vala"
	_g_object_unref0 (self->priv->builder);
#line 38 "/home/jens/Source/shotwell/src/SlideshowPage.vala"
	self->priv->builder = _tmp0_;
#line 39 "/home/jens/Source/shotwell/src/SlideshowPage.vala"
	_tmp1_ = self->priv->builder;
#line 39 "/home/jens/Source/shotwell/src/SlideshowPage.vala"
	_tmp2_ = gtk_builder_get_object (_tmp1_, "slideshow_settings_pane");
#line 39 "/home/jens/Source/shotwell/src/SlideshowPage.vala"
	_tmp3_ = _g_object_ref0 (G_TYPE_CHECK_INSTANCE_TYPE (_tmp2_, gtk_box_get_type ()) ? ((GtkBox*) _tmp2_) : NULL);
#line 39 "/home/jens/Source/shotwell/src/SlideshowPage.vala"
	_g_object_unref0 (self->priv->pane);
#line 39 "/home/jens/Source/shotwell/src/SlideshowPage.vala"
	self->priv->pane = _tmp3_;
#line 40 "/home/jens/Source/shotwell/src/SlideshowPage.vala"
	_tmp4_ = (GtkBox*) gtk_dialog_get_content_area (G_TYPE_CHECK_INSTANCE_CAST (self, gtk_dialog_get_type (), GtkDialog));
#line 40 "/home/jens/Source/shotwell/src/SlideshowPage.vala"
	_tmp5_ = self->priv->pane;
#line 40 "/home/jens/Source/shotwell/src/SlideshowPage.vala"
	gtk_container_add (G_TYPE_CHECK_INSTANCE_CAST (_tmp4_, gtk_container_get_type (), GtkContainer), G_TYPE_CHECK_INSTANCE_CAST (_tmp5_, gtk_widget_get_type (), GtkWidget));
#line 42 "/home/jens/Source/shotwell/src/SlideshowPage.vala"
	_tmp6_ = config_facade_get_instance ();
#line 42 "/home/jens/Source/shotwell/src/SlideshowPage.vala"
	_tmp7_ = _tmp6_;
#line 42 "/home/jens/Source/shotwell/src/SlideshowPage.vala"
	_tmp8_ = configuration_facade_get_slideshow_delay (G_TYPE_CHECK_INSTANCE_CAST (_tmp7_, TYPE_CONFIGURATION_FACADE, ConfigurationFacade));
#line 42 "/home/jens/Source/shotwell/src/SlideshowPage.vala"
	_tmp9_ = _tmp8_;
#line 42 "/home/jens/Source/shotwell/src/SlideshowPage.vala"
	_g_object_unref0 (_tmp7_);
#line 42 "/home/jens/Source/shotwell/src/SlideshowPage.vala"
	delay = _tmp9_;
#line 44 "/home/jens/Source/shotwell/src/SlideshowPage.vala"
	gtk_window_set_modal (G_TYPE_CHECK_INSTANCE_CAST (self, gtk_window_get_type (), GtkWindow), TRUE);
#line 45 "/home/jens/Source/shotwell/src/SlideshowPage.vala"
	_tmp10_ = app_window_get_fullscreen ();
#line 45 "/home/jens/Source/shotwell/src/SlideshowPage.vala"
	_tmp11_ = _tmp10_;
#line 45 "/home/jens/Source/shotwell/src/SlideshowPage.vala"
	gtk_window_set_transient_for (G_TYPE_CHECK_INSTANCE_CAST (self, gtk_window_get_type (), GtkWindow), G_TYPE_CHECK_INSTANCE_CAST (_tmp11_, gtk_window_get_type (), GtkWindow));
#line 45 "/home/jens/Source/shotwell/src/SlideshowPage.vala"
	_g_object_unref0 (_tmp11_);
#line 47 "/home/jens/Source/shotwell/src/SlideshowPage.vala"
	gtk_dialog_add_buttons (G_TYPE_CHECK_INSTANCE_CAST (self, gtk_dialog_get_type (), GtkDialog), RESOURCES_CANCEL_LABEL, GTK_RESPONSE_CANCEL, RESOURCES_OK_LABEL, GTK_RESPONSE_OK, NULL);
#line 49 "/home/jens/Source/shotwell/src/SlideshowPage.vala"
	_tmp12_ = _ ("Settings");
#line 49 "/home/jens/Source/shotwell/src/SlideshowPage.vala"
	gtk_window_set_title (G_TYPE_CHECK_INSTANCE_CAST (self, gtk_window_get_type (), GtkWindow), _tmp12_);
#line 51 "/home/jens/Source/shotwell/src/SlideshowPage.vala"
	_tmp13_ = delay;
#line 51 "/home/jens/Source/shotwell/src/SlideshowPage.vala"
	_tmp14_ = gtk_adjustment_new (_tmp13_, CONFIG_FACADE_SLIDESHOW_DELAY_MIN, CONFIG_FACADE_SLIDESHOW_DELAY_MAX, 0.1, (gdouble) 1, (gdouble) 0);
#line 51 "/home/jens/Source/shotwell/src/SlideshowPage.vala"
	g_object_ref_sink (_tmp14_);
#line 51 "/home/jens/Source/shotwell/src/SlideshowPage.vala"
	adjustment = _tmp14_;
#line 52 "/home/jens/Source/shotwell/src/SlideshowPage.vala"
	_tmp15_ = self->priv->builder;
#line 52 "/home/jens/Source/shotwell/src/SlideshowPage.vala"
	_tmp16_ = gtk_builder_get_object (_tmp15_, "delay_hscale");
#line 52 "/home/jens/Source/shotwell/src/SlideshowPage.vala"
	_tmp17_ = _g_object_ref0 (G_TYPE_CHECK_INSTANCE_TYPE (_tmp16_, gtk_scale_get_type ()) ? ((GtkScale*) _tmp16_) : NULL);
#line 52 "/home/jens/Source/shotwell/src/SlideshowPage.vala"
	_g_object_unref0 (self->priv->delay_hscale);
#line 52 "/home/jens/Source/shotwell/src/SlideshowPage.vala"
	self->priv->delay_hscale = _tmp17_;
#line 53 "/home/jens/Source/shotwell/src/SlideshowPage.vala"
	_tmp18_ = self->priv->delay_hscale;
#line 53 "/home/jens/Source/shotwell/src/SlideshowPage.vala"
	_tmp19_ = adjustment;
#line 53 "/home/jens/Source/shotwell/src/SlideshowPage.vala"
	gtk_range_set_adjustment (G_TYPE_CHECK_INSTANCE_CAST (_tmp18_, gtk_range_get_type (), GtkRange), _tmp19_);
#line 55 "/home/jens/Source/shotwell/src/SlideshowPage.vala"
	_tmp20_ = self->priv->builder;
#line 55 "/home/jens/Source/shotwell/src/SlideshowPage.vala"
	_tmp21_ = gtk_builder_get_object (_tmp20_, "delay_entry");
#line 55 "/home/jens/Source/shotwell/src/SlideshowPage.vala"
	_tmp22_ = _g_object_ref0 (G_TYPE_CHECK_INSTANCE_TYPE (_tmp21_, gtk_spin_button_get_type ()) ? ((GtkSpinButton*) _tmp21_) : NULL);
#line 55 "/home/jens/Source/shotwell/src/SlideshowPage.vala"
	_g_object_unref0 (self->priv->delay_entry);
#line 55 "/home/jens/Source/shotwell/src/SlideshowPage.vala"
	self->priv->delay_entry = _tmp22_;
#line 56 "/home/jens/Source/shotwell/src/SlideshowPage.vala"
	_tmp23_ = self->priv->delay_entry;
#line 56 "/home/jens/Source/shotwell/src/SlideshowPage.vala"
	_tmp24_ = adjustment;
#line 56 "/home/jens/Source/shotwell/src/SlideshowPage.vala"
	gtk_spin_button_set_adjustment (_tmp23_, _tmp24_);
#line 57 "/home/jens/Source/shotwell/src/SlideshowPage.vala"
	_tmp25_ = self->priv->delay_entry;
#line 57 "/home/jens/Source/shotwell/src/SlideshowPage.vala"
	_tmp26_ = delay;
#line 57 "/home/jens/Source/shotwell/src/SlideshowPage.vala"
	gtk_spin_button_set_value (_tmp25_, _tmp26_);
#line 58 "/home/jens/Source/shotwell/src/SlideshowPage.vala"
	_tmp27_ = self->priv->delay_entry;
#line 58 "/home/jens/Source/shotwell/src/SlideshowPage.vala"
	gtk_spin_button_set_numeric (_tmp27_, TRUE);
#line 59 "/home/jens/Source/shotwell/src/SlideshowPage.vala"
	_tmp28_ = self->priv->delay_entry;
#line 59 "/home/jens/Source/shotwell/src/SlideshowPage.vala"
	gtk_entry_set_activates_default (G_TYPE_CHECK_INSTANCE_CAST (_tmp28_, gtk_entry_get_type (), GtkEntry), TRUE);
#line 61 "/home/jens/Source/shotwell/src/SlideshowPage.vala"
	_tmp29_ = self->priv->builder;
#line 61 "/home/jens/Source/shotwell/src/SlideshowPage.vala"
	_tmp30_ = gtk_builder_get_object (_tmp29_, "transition_effect_selector");
#line 61 "/home/jens/Source/shotwell/src/SlideshowPage.vala"
	_tmp31_ = _g_object_ref0 (G_TYPE_CHECK_INSTANCE_TYPE (_tmp30_, gtk_combo_box_text_get_type ()) ? ((GtkComboBoxText*) _tmp30_) : NULL);
#line 61 "/home/jens/Source/shotwell/src/SlideshowPage.vala"
	_g_object_unref0 (self->priv->transition_effect_selector);
#line 61 "/home/jens/Source/shotwell/src/SlideshowPage.vala"
	self->priv->transition_effect_selector = _tmp31_;
#line 64 "/home/jens/Source/shotwell/src/SlideshowPage.vala"
	_tmp32_ = config_facade_get_instance ();
#line 64 "/home/jens/Source/shotwell/src/SlideshowPage.vala"
	_tmp33_ = _tmp32_;
#line 64 "/home/jens/Source/shotwell/src/SlideshowPage.vala"
	_tmp34_ = configuration_facade_get_slideshow_transition_effect_id (G_TYPE_CHECK_INSTANCE_CAST (_tmp33_, TYPE_CONFIGURATION_FACADE, ConfigurationFacade));
#line 64 "/home/jens/Source/shotwell/src/SlideshowPage.vala"
	_tmp35_ = _tmp34_;
#line 64 "/home/jens/Source/shotwell/src/SlideshowPage.vala"
	_g_object_unref0 (_tmp33_);
#line 64 "/home/jens/Source/shotwell/src/SlideshowPage.vala"
	effect_id = _tmp35_;
#line 67 "/home/jens/Source/shotwell/src/SlideshowPage.vala"
	_tmp36_ = transition_effects_manager_get_instance ();
#line 67 "/home/jens/Source/shotwell/src/SlideshowPage.vala"
	_tmp37_ = _tmp36_;
#line 67 "/home/jens/Source/shotwell/src/SlideshowPage.vala"
	_tmp38_ = transition_effects_manager_get_effect_name (_tmp37_, TRANSITION_EFFECTS_MANAGER_NULL_EFFECT_ID);
#line 67 "/home/jens/Source/shotwell/src/SlideshowPage.vala"
	_tmp39_ = _tmp38_;
#line 67 "/home/jens/Source/shotwell/src/SlideshowPage.vala"
	_transition_effects_manager_unref0 (_tmp37_);
#line 67 "/home/jens/Source/shotwell/src/SlideshowPage.vala"
	null_display_name = _tmp39_;
#line 69 "/home/jens/Source/shotwell/src/SlideshowPage.vala"
	_tmp40_ = self->priv->transition_effect_selector;
#line 69 "/home/jens/Source/shotwell/src/SlideshowPage.vala"
	_tmp41_ = null_display_name;
#line 69 "/home/jens/Source/shotwell/src/SlideshowPage.vala"
	gtk_combo_box_text_append_text (_tmp40_, _tmp41_);
#line 70 "/home/jens/Source/shotwell/src/SlideshowPage.vala"
	_tmp42_ = self->priv->transition_effect_selector;
#line 70 "/home/jens/Source/shotwell/src/SlideshowPage.vala"
	gtk_combo_box_set_active (G_TYPE_CHECK_INSTANCE_CAST (_tmp42_, gtk_combo_box_get_type (), GtkComboBox), 0);
#line 72 "/home/jens/Source/shotwell/src/SlideshowPage.vala"
	i = 1;
#line 2845 "SlideshowPage.c"
	{
		GeeIterator* _display_name_it = NULL;
		TransitionEffectsManager* _tmp43_ = NULL;
		TransitionEffectsManager* _tmp44_ = NULL;
		GeeCollection* _tmp45_ = NULL;
		GeeCollection* _tmp46_ = NULL;
		GeeIterator* _tmp47_ = NULL;
		GeeIterator* _tmp48_ = NULL;
#line 73 "/home/jens/Source/shotwell/src/SlideshowPage.vala"
		_tmp43_ = transition_effects_manager_get_instance ();
#line 73 "/home/jens/Source/shotwell/src/SlideshowPage.vala"
		_tmp44_ = _tmp43_;
#line 73 "/home/jens/Source/shotwell/src/SlideshowPage.vala"
		_tmp45_ = transition_effects_manager_get_effect_names (_tmp44_, _utf8_ci_compare_gcompare_data_func, NULL, NULL);
#line 73 "/home/jens/Source/shotwell/src/SlideshowPage.vala"
		_tmp46_ = _tmp45_;
#line 73 "/home/jens/Source/shotwell/src/SlideshowPage.vala"
		_tmp47_ = gee_iterable_iterator (G_TYPE_CHECK_INSTANCE_CAST (_tmp46_, GEE_TYPE_ITERABLE, GeeIterable));
#line 73 "/home/jens/Source/shotwell/src/SlideshowPage.vala"
		_tmp48_ = _tmp47_;
#line 73 "/home/jens/Source/shotwell/src/SlideshowPage.vala"
		_g_object_unref0 (_tmp46_);
#line 73 "/home/jens/Source/shotwell/src/SlideshowPage.vala"
		_transition_effects_manager_unref0 (_tmp44_);
#line 73 "/home/jens/Source/shotwell/src/SlideshowPage.vala"
		_display_name_it = _tmp48_;
#line 73 "/home/jens/Source/shotwell/src/SlideshowPage.vala"
		while (TRUE) {
#line 2874 "SlideshowPage.c"
			GeeIterator* _tmp49_ = NULL;
			gboolean _tmp50_ = FALSE;
			gchar* display_name = NULL;
			GeeIterator* _tmp51_ = NULL;
			gpointer _tmp52_ = NULL;
			const gchar* _tmp53_ = NULL;
			const gchar* _tmp54_ = NULL;
			GtkComboBoxText* _tmp55_ = NULL;
			const gchar* _tmp56_ = NULL;
			const gchar* _tmp57_ = NULL;
			TransitionEffectsManager* _tmp58_ = NULL;
			TransitionEffectsManager* _tmp59_ = NULL;
			const gchar* _tmp60_ = NULL;
			gchar* _tmp61_ = NULL;
			gchar* _tmp62_ = NULL;
			gboolean _tmp63_ = FALSE;
			gint _tmp66_ = 0;
#line 73 "/home/jens/Source/shotwell/src/SlideshowPage.vala"
			_tmp49_ = _display_name_it;
#line 73 "/home/jens/Source/shotwell/src/SlideshowPage.vala"
			_tmp50_ = gee_iterator_next (_tmp49_);
#line 73 "/home/jens/Source/shotwell/src/SlideshowPage.vala"
			if (!_tmp50_) {
#line 73 "/home/jens/Source/shotwell/src/SlideshowPage.vala"
				break;
#line 2900 "SlideshowPage.c"
			}
#line 73 "/home/jens/Source/shotwell/src/SlideshowPage.vala"
			_tmp51_ = _display_name_it;
#line 73 "/home/jens/Source/shotwell/src/SlideshowPage.vala"
			_tmp52_ = gee_iterator_get (_tmp51_);
#line 73 "/home/jens/Source/shotwell/src/SlideshowPage.vala"
			display_name = (gchar*) _tmp52_;
#line 75 "/home/jens/Source/shotwell/src/SlideshowPage.vala"
			_tmp53_ = display_name;
#line 75 "/home/jens/Source/shotwell/src/SlideshowPage.vala"
			_tmp54_ = null_display_name;
#line 75 "/home/jens/Source/shotwell/src/SlideshowPage.vala"
			if (g_strcmp0 (_tmp53_, _tmp54_) == 0) {
#line 76 "/home/jens/Source/shotwell/src/SlideshowPage.vala"
				_g_free0 (display_name);
#line 76 "/home/jens/Source/shotwell/src/SlideshowPage.vala"
				continue;
#line 2918 "SlideshowPage.c"
			}
#line 78 "/home/jens/Source/shotwell/src/SlideshowPage.vala"
			_tmp55_ = self->priv->transition_effect_selector;
#line 78 "/home/jens/Source/shotwell/src/SlideshowPage.vala"
			_tmp56_ = display_name;
#line 78 "/home/jens/Source/shotwell/src/SlideshowPage.vala"
			gtk_combo_box_text_append_text (_tmp55_, _tmp56_);
#line 79 "/home/jens/Source/shotwell/src/SlideshowPage.vala"
			_tmp57_ = effect_id;
#line 79 "/home/jens/Source/shotwell/src/SlideshowPage.vala"
			_tmp58_ = transition_effects_manager_get_instance ();
#line 79 "/home/jens/Source/shotwell/src/SlideshowPage.vala"
			_tmp59_ = _tmp58_;
#line 79 "/home/jens/Source/shotwell/src/SlideshowPage.vala"
			_tmp60_ = display_name;
#line 79 "/home/jens/Source/shotwell/src/SlideshowPage.vala"
			_tmp61_ = transition_effects_manager_get_id_for_effect_name (_tmp59_, _tmp60_);
#line 79 "/home/jens/Source/shotwell/src/SlideshowPage.vala"
			_tmp62_ = _tmp61_;
#line 79 "/home/jens/Source/shotwell/src/SlideshowPage.vala"
			_tmp63_ = g_strcmp0 (_tmp57_, _tmp62_) == 0;
#line 79 "/home/jens/Source/shotwell/src/SlideshowPage.vala"
			_g_free0 (_tmp62_);
#line 79 "/home/jens/Source/shotwell/src/SlideshowPage.vala"
			_transition_effects_manager_unref0 (_tmp59_);
#line 79 "/home/jens/Source/shotwell/src/SlideshowPage.vala"
			if (_tmp63_) {
#line 2946 "SlideshowPage.c"
				GtkComboBoxText* _tmp64_ = NULL;
				gint _tmp65_ = 0;
#line 80 "/home/jens/Source/shotwell/src/SlideshowPage.vala"
				_tmp64_ = self->priv->transition_effect_selector;
#line 80 "/home/jens/Source/shotwell/src/SlideshowPage.vala"
				_tmp65_ = i;
#line 80 "/home/jens/Source/shotwell/src/SlideshowPage.vala"
				gtk_combo_box_set_active (G_TYPE_CHECK_INSTANCE_CAST (_tmp64_, gtk_combo_box_get_type (), GtkComboBox), _tmp65_);
#line 2955 "SlideshowPage.c"
			}
#line 82 "/home/jens/Source/shotwell/src/SlideshowPage.vala"
			_tmp66_ = i;
#line 82 "/home/jens/Source/shotwell/src/SlideshowPage.vala"
			i = _tmp66_ + 1;
#line 73 "/home/jens/Source/shotwell/src/SlideshowPage.vala"
			_g_free0 (display_name);
#line 2963 "SlideshowPage.c"
		}
#line 73 "/home/jens/Source/shotwell/src/SlideshowPage.vala"
		_g_object_unref0 (_display_name_it);
#line 2967 "SlideshowPage.c"
	}
#line 84 "/home/jens/Source/shotwell/src/SlideshowPage.vala"
	_tmp67_ = self->priv->transition_effect_selector;
#line 84 "/home/jens/Source/shotwell/src/SlideshowPage.vala"
	g_signal_connect_object (G_TYPE_CHECK_INSTANCE_CAST (_tmp67_, gtk_combo_box_get_type (), GtkComboBox), "changed", (GCallback) _slideshow_page_settings_dialog_on_transition_changed_gtk_combo_box_changed, self, 0);
#line 86 "/home/jens/Source/shotwell/src/SlideshowPage.vala"
	_tmp68_ = config_facade_get_instance ();
#line 86 "/home/jens/Source/shotwell/src/SlideshowPage.vala"
	_tmp69_ = _tmp68_;
#line 86 "/home/jens/Source/shotwell/src/SlideshowPage.vala"
	_tmp70_ = configuration_facade_get_slideshow_transition_delay (G_TYPE_CHECK_INSTANCE_CAST (_tmp69_, TYPE_CONFIGURATION_FACADE, ConfigurationFacade));
#line 86 "/home/jens/Source/shotwell/src/SlideshowPage.vala"
	_tmp71_ = _tmp70_;
#line 86 "/home/jens/Source/shotwell/src/SlideshowPage.vala"
	_g_object_unref0 (_tmp69_);
#line 86 "/home/jens/Source/shotwell/src/SlideshowPage.vala"
	transition_delay = _tmp71_;
#line 87 "/home/jens/Source/shotwell/src/SlideshowPage.vala"
	_tmp72_ = gtk_adjustment_new (transition_delay, CONFIG_FACADE_SLIDESHOW_TRANSITION_DELAY_MIN, CONFIG_FACADE_SLIDESHOW_TRANSITION_DELAY_MAX, 0.1, (gdouble) 1, (gdouble) 0);
#line 87 "/home/jens/Source/shotwell/src/SlideshowPage.vala"
	g_object_ref_sink (_tmp72_);
#line 87 "/home/jens/Source/shotwell/src/SlideshowPage.vala"
	_g_object_unref0 (self->priv->transition_effect_adjustment);
#line 87 "/home/jens/Source/shotwell/src/SlideshowPage.vala"
	self->priv->transition_effect_adjustment = _tmp72_;
#line 90 "/home/jens/Source/shotwell/src/SlideshowPage.vala"
	_tmp73_ = self->priv->builder;
#line 90 "/home/jens/Source/shotwell/src/SlideshowPage.vala"
	_tmp74_ = gtk_builder_get_object (_tmp73_, "transition_effect_hscale");
#line 90 "/home/jens/Source/shotwell/src/SlideshowPage.vala"
	_tmp75_ = _g_object_ref0 (G_TYPE_CHECK_INSTANCE_TYPE (_tmp74_, gtk_scale_get_type ()) ? ((GtkScale*) _tmp74_) : NULL);
#line 90 "/home/jens/Source/shotwell/src/SlideshowPage.vala"
	_g_object_unref0 (self->priv->transition_effect_hscale);
#line 90 "/home/jens/Source/shotwell/src/SlideshowPage.vala"
	self->priv->transition_effect_hscale = _tmp75_;
#line 91 "/home/jens/Source/shotwell/src/SlideshowPage.vala"
	_tmp76_ = self->priv->transition_effect_hscale;
#line 91 "/home/jens/Source/shotwell/src/SlideshowPage.vala"
	_tmp77_ = self->priv->transition_effect_adjustment;
#line 91 "/home/jens/Source/shotwell/src/SlideshowPage.vala"
	gtk_range_set_adjustment (G_TYPE_CHECK_INSTANCE_CAST (_tmp76_, gtk_range_get_type (), GtkRange), _tmp77_);
#line 93 "/home/jens/Source/shotwell/src/SlideshowPage.vala"
	_tmp78_ = self->priv->builder;
#line 93 "/home/jens/Source/shotwell/src/SlideshowPage.vala"
	_tmp79_ = gtk_builder_get_object (_tmp78_, "transition_effect_entry");
#line 93 "/home/jens/Source/shotwell/src/SlideshowPage.vala"
	_tmp80_ = _g_object_ref0 (G_TYPE_CHECK_INSTANCE_TYPE (_tmp79_, gtk_spin_button_get_type ()) ? ((GtkSpinButton*) _tmp79_) : NULL);
#line 93 "/home/jens/Source/shotwell/src/SlideshowPage.vala"
	_g_object_unref0 (self->priv->transition_effect_entry);
#line 93 "/home/jens/Source/shotwell/src/SlideshowPage.vala"
	self->priv->transition_effect_entry = _tmp80_;
#line 94 "/home/jens/Source/shotwell/src/SlideshowPage.vala"
	_tmp81_ = self->priv->transition_effect_entry;
#line 94 "/home/jens/Source/shotwell/src/SlideshowPage.vala"
	_tmp82_ = self->priv->transition_effect_adjustment;
#line 94 "/home/jens/Source/shotwell/src/SlideshowPage.vala"
	gtk_spin_button_set_adjustment (_tmp81_, _tmp82_);
#line 95 "/home/jens/Source/shotwell/src/SlideshowPage.vala"
	_tmp83_ = self->priv->transition_effect_entry;
#line 95 "/home/jens/Source/shotwell/src/SlideshowPage.vala"
	gtk_spin_button_set_value (_tmp83_, transition_delay);
#line 96 "/home/jens/Source/shotwell/src/SlideshowPage.vala"
	_tmp84_ = self->priv->transition_effect_entry;
#line 96 "/home/jens/Source/shotwell/src/SlideshowPage.vala"
	gtk_spin_button_set_numeric (_tmp84_, TRUE);
#line 97 "/home/jens/Source/shotwell/src/SlideshowPage.vala"
	_tmp85_ = self->priv->transition_effect_entry;
#line 97 "/home/jens/Source/shotwell/src/SlideshowPage.vala"
	gtk_entry_set_activates_default (G_TYPE_CHECK_INSTANCE_CAST (_tmp85_, gtk_entry_get_type (), GtkEntry), TRUE);
#line 99 "/home/jens/Source/shotwell/src/SlideshowPage.vala"
	_tmp86_ = config_facade_get_instance ();
#line 99 "/home/jens/Source/shotwell/src/SlideshowPage.vala"
	_tmp87_ = _tmp86_;
#line 99 "/home/jens/Source/shotwell/src/SlideshowPage.vala"
	_tmp88_ = configuration_facade_get_slideshow_show_title (G_TYPE_CHECK_INSTANCE_CAST (_tmp87_, TYPE_CONFIGURATION_FACADE, ConfigurationFacade));
#line 99 "/home/jens/Source/shotwell/src/SlideshowPage.vala"
	_tmp89_ = _tmp88_;
#line 99 "/home/jens/Source/shotwell/src/SlideshowPage.vala"
	_g_object_unref0 (_tmp87_);
#line 99 "/home/jens/Source/shotwell/src/SlideshowPage.vala"
	show_title = _tmp89_;
#line 100 "/home/jens/Source/shotwell/src/SlideshowPage.vala"
	_tmp90_ = self->priv->builder;
#line 100 "/home/jens/Source/shotwell/src/SlideshowPage.vala"
	_tmp91_ = gtk_builder_get_object (_tmp90_, "show_title_button");
#line 100 "/home/jens/Source/shotwell/src/SlideshowPage.vala"
	_tmp92_ = _g_object_ref0 (G_TYPE_CHECK_INSTANCE_TYPE (_tmp91_, gtk_check_button_get_type ()) ? ((GtkCheckButton*) _tmp91_) : NULL);
#line 100 "/home/jens/Source/shotwell/src/SlideshowPage.vala"
	_g_object_unref0 (self->priv->show_title_button);
#line 100 "/home/jens/Source/shotwell/src/SlideshowPage.vala"
	self->priv->show_title_button = _tmp92_;
#line 101 "/home/jens/Source/shotwell/src/SlideshowPage.vala"
	_tmp93_ = self->priv->show_title_button;
#line 101 "/home/jens/Source/shotwell/src/SlideshowPage.vala"
	gtk_toggle_button_set_active (G_TYPE_CHECK_INSTANCE_CAST (_tmp93_, gtk_toggle_button_get_type (), GtkToggleButton), show_title);
#line 103 "/home/jens/Source/shotwell/src/SlideshowPage.vala"
	gtk_dialog_set_default_response (G_TYPE_CHECK_INSTANCE_CAST (self, gtk_dialog_get_type (), GtkDialog), (gint) GTK_RESPONSE_OK);
#line 105 "/home/jens/Source/shotwell/src/SlideshowPage.vala"
	slideshow_page_settings_dialog_on_transition_changed (self);
#line 37 "/home/jens/Source/shotwell/src/SlideshowPage.vala"
	_g_free0 (null_display_name);
#line 37 "/home/jens/Source/shotwell/src/SlideshowPage.vala"
	_g_free0 (effect_id);
#line 37 "/home/jens/Source/shotwell/src/SlideshowPage.vala"
	_g_object_unref0 (adjustment);
#line 37 "/home/jens/Source/shotwell/src/SlideshowPage.vala"
	return self;
#line 3075 "SlideshowPage.c"
}


static SlideshowPageSettingsDialog* slideshow_page_settings_dialog_new (void) {
#line 37 "/home/jens/Source/shotwell/src/SlideshowPage.vala"
	return slideshow_page_settings_dialog_construct (SLIDESHOW_PAGE_TYPE_SETTINGS_DIALOG);
#line 3082 "SlideshowPage.c"
}


static void slideshow_page_settings_dialog_on_transition_changed (SlideshowPageSettingsDialog* self) {
	gchar* selected = NULL;
	GtkComboBoxText* _tmp0_ = NULL;
	gchar* _tmp1_ = NULL;
	gboolean _tmp2_ = FALSE;
	const gchar* _tmp3_ = NULL;
	gboolean sensitive = FALSE;
	GtkScale* _tmp5_ = NULL;
	GtkSpinButton* _tmp6_ = NULL;
#line 108 "/home/jens/Source/shotwell/src/SlideshowPage.vala"
	g_return_if_fail (SLIDESHOW_PAGE_IS_SETTINGS_DIALOG (self));
#line 109 "/home/jens/Source/shotwell/src/SlideshowPage.vala"
	_tmp0_ = self->priv->transition_effect_selector;
#line 109 "/home/jens/Source/shotwell/src/SlideshowPage.vala"
	_tmp1_ = gtk_combo_box_text_get_active_text (_tmp0_);
#line 109 "/home/jens/Source/shotwell/src/SlideshowPage.vala"
	selected = _tmp1_;
#line 110 "/home/jens/Source/shotwell/src/SlideshowPage.vala"
	_tmp3_ = selected;
#line 110 "/home/jens/Source/shotwell/src/SlideshowPage.vala"
	if (_tmp3_ != NULL) {
#line 3107 "SlideshowPage.c"
		const gchar* _tmp4_ = NULL;
#line 111 "/home/jens/Source/shotwell/src/SlideshowPage.vala"
		_tmp4_ = selected;
#line 111 "/home/jens/Source/shotwell/src/SlideshowPage.vala"
		_tmp2_ = g_strcmp0 (_tmp4_, TRANSITION_EFFECTS_MANAGER_NULL_EFFECT_ID) != 0;
#line 3113 "SlideshowPage.c"
	} else {
#line 110 "/home/jens/Source/shotwell/src/SlideshowPage.vala"
		_tmp2_ = FALSE;
#line 3117 "SlideshowPage.c"
	}
#line 110 "/home/jens/Source/shotwell/src/SlideshowPage.vala"
	sensitive = _tmp2_;
#line 113 "/home/jens/Source/shotwell/src/SlideshowPage.vala"
	_tmp5_ = self->priv->transition_effect_hscale;
#line 113 "/home/jens/Source/shotwell/src/SlideshowPage.vala"
	gtk_widget_set_sensitive (G_TYPE_CHECK_INSTANCE_CAST (_tmp5_, gtk_widget_get_type (), GtkWidget), sensitive);
#line 114 "/home/jens/Source/shotwell/src/SlideshowPage.vala"
	_tmp6_ = self->priv->transition_effect_entry;
#line 114 "/home/jens/Source/shotwell/src/SlideshowPage.vala"
	gtk_widget_set_sensitive (G_TYPE_CHECK_INSTANCE_CAST (_tmp6_, gtk_widget_get_type (), GtkWidget), sensitive);
#line 108 "/home/jens/Source/shotwell/src/SlideshowPage.vala"
	_g_free0 (selected);
#line 3131 "SlideshowPage.c"
}


static gdouble slideshow_page_settings_dialog_get_delay (SlideshowPageSettingsDialog* self) {
	gdouble result = 0.0;
	GtkSpinButton* _tmp0_ = NULL;
	gdouble _tmp1_ = 0.0;
#line 117 "/home/jens/Source/shotwell/src/SlideshowPage.vala"
	g_return_val_if_fail (SLIDESHOW_PAGE_IS_SETTINGS_DIALOG (self), 0.0);
#line 118 "/home/jens/Source/shotwell/src/SlideshowPage.vala"
	_tmp0_ = self->priv->delay_entry;
#line 118 "/home/jens/Source/shotwell/src/SlideshowPage.vala"
	_tmp1_ = gtk_spin_button_get_value (_tmp0_);
#line 118 "/home/jens/Source/shotwell/src/SlideshowPage.vala"
	result = _tmp1_;
#line 118 "/home/jens/Source/shotwell/src/SlideshowPage.vala"
	return result;
#line 3149 "SlideshowPage.c"
}


static gdouble slideshow_page_settings_dialog_get_transition_delay (SlideshowPageSettingsDialog* self) {
	gdouble result = 0.0;
	GtkSpinButton* _tmp0_ = NULL;
	gdouble _tmp1_ = 0.0;
#line 121 "/home/jens/Source/shotwell/src/SlideshowPage.vala"
	g_return_val_if_fail (SLIDESHOW_PAGE_IS_SETTINGS_DIALOG (self), 0.0);
#line 122 "/home/jens/Source/shotwell/src/SlideshowPage.vala"
	_tmp0_ = self->priv->transition_effect_entry;
#line 122 "/home/jens/Source/shotwell/src/SlideshowPage.vala"
	_tmp1_ = gtk_spin_button_get_value (_tmp0_);
#line 122 "/home/jens/Source/shotwell/src/SlideshowPage.vala"
	result = _tmp1_;
#line 122 "/home/jens/Source/shotwell/src/SlideshowPage.vala"
	return result;
#line 3167 "SlideshowPage.c"
}


static gchar* slideshow_page_settings_dialog_get_transition_effect_id (SlideshowPageSettingsDialog* self) {
	gchar* result = NULL;
	gchar* active = NULL;
	GtkComboBoxText* _tmp0_ = NULL;
	gchar* _tmp1_ = NULL;
	const gchar* _tmp2_ = NULL;
	gchar* id = NULL;
	TransitionEffectsManager* _tmp4_ = NULL;
	TransitionEffectsManager* _tmp5_ = NULL;
	const gchar* _tmp6_ = NULL;
	gchar* _tmp7_ = NULL;
	gchar* _tmp8_ = NULL;
	const gchar* _tmp9_ = NULL;
	const gchar* _tmp10_ = NULL;
	gchar* _tmp12_ = NULL;
#line 125 "/home/jens/Source/shotwell/src/SlideshowPage.vala"
	g_return_val_if_fail (SLIDESHOW_PAGE_IS_SETTINGS_DIALOG (self), NULL);
#line 126 "/home/jens/Source/shotwell/src/SlideshowPage.vala"
	_tmp0_ = self->priv->transition_effect_selector;
#line 126 "/home/jens/Source/shotwell/src/SlideshowPage.vala"
	_tmp1_ = gtk_combo_box_text_get_active_text (_tmp0_);
#line 126 "/home/jens/Source/shotwell/src/SlideshowPage.vala"
	active = _tmp1_;
#line 127 "/home/jens/Source/shotwell/src/SlideshowPage.vala"
	_tmp2_ = active;
#line 127 "/home/jens/Source/shotwell/src/SlideshowPage.vala"
	if (_tmp2_ == NULL) {
#line 3198 "SlideshowPage.c"
		gchar* _tmp3_ = NULL;
#line 128 "/home/jens/Source/shotwell/src/SlideshowPage.vala"
		_tmp3_ = g_strdup (TRANSITION_EFFECTS_MANAGER_NULL_EFFECT_ID);
#line 128 "/home/jens/Source/shotwell/src/SlideshowPage.vala"
		result = _tmp3_;
#line 128 "/home/jens/Source/shotwell/src/SlideshowPage.vala"
		_g_free0 (active);
#line 128 "/home/jens/Source/shotwell/src/SlideshowPage.vala"
		return result;
#line 3208 "SlideshowPage.c"
	}
#line 130 "/home/jens/Source/shotwell/src/SlideshowPage.vala"
	_tmp4_ = transition_effects_manager_get_instance ();
#line 130 "/home/jens/Source/shotwell/src/SlideshowPage.vala"
	_tmp5_ = _tmp4_;
#line 130 "/home/jens/Source/shotwell/src/SlideshowPage.vala"
	_tmp6_ = active;
#line 130 "/home/jens/Source/shotwell/src/SlideshowPage.vala"
	_tmp7_ = transition_effects_manager_get_id_for_effect_name (_tmp5_, _tmp6_);
#line 130 "/home/jens/Source/shotwell/src/SlideshowPage.vala"
	_tmp8_ = _tmp7_;
#line 130 "/home/jens/Source/shotwell/src/SlideshowPage.vala"
	_transition_effects_manager_unref0 (_tmp5_);
#line 130 "/home/jens/Source/shotwell/src/SlideshowPage.vala"
	id = _tmp8_;
#line 132 "/home/jens/Source/shotwell/src/SlideshowPage.vala"
	_tmp10_ = id;
#line 132 "/home/jens/Source/shotwell/src/SlideshowPage.vala"
	if (_tmp10_ != NULL) {
#line 3228 "SlideshowPage.c"
		const gchar* _tmp11_ = NULL;
#line 132 "/home/jens/Source/shotwell/src/SlideshowPage.vala"
		_tmp11_ = id;
#line 132 "/home/jens/Source/shotwell/src/SlideshowPage.vala"
		_tmp9_ = _tmp11_;
#line 3234 "SlideshowPage.c"
	} else {
#line 132 "/home/jens/Source/shotwell/src/SlideshowPage.vala"
		_tmp9_ = TRANSITION_EFFECTS_MANAGER_NULL_EFFECT_ID;
#line 3238 "SlideshowPage.c"
	}
#line 132 "/home/jens/Source/shotwell/src/SlideshowPage.vala"
	_tmp12_ = g_strdup (_tmp9_);
#line 132 "/home/jens/Source/shotwell/src/SlideshowPage.vala"
	result = _tmp12_;
#line 132 "/home/jens/Source/shotwell/src/SlideshowPage.vala"
	_g_free0 (id);
#line 132 "/home/jens/Source/shotwell/src/SlideshowPage.vala"
	_g_free0 (active);
#line 132 "/home/jens/Source/shotwell/src/SlideshowPage.vala"
	return result;
#line 3250 "SlideshowPage.c"
}


static gboolean slideshow_page_settings_dialog_get_show_title (SlideshowPageSettingsDialog* self) {
	gboolean result = FALSE;
	GtkCheckButton* _tmp0_ = NULL;
	gboolean _tmp1_ = FALSE;
	gboolean _tmp2_ = FALSE;
#line 135 "/home/jens/Source/shotwell/src/SlideshowPage.vala"
	g_return_val_if_fail (SLIDESHOW_PAGE_IS_SETTINGS_DIALOG (self), FALSE);
#line 136 "/home/jens/Source/shotwell/src/SlideshowPage.vala"
	_tmp0_ = self->priv->show_title_button;
#line 136 "/home/jens/Source/shotwell/src/SlideshowPage.vala"
	_tmp1_ = gtk_toggle_button_get_active (G_TYPE_CHECK_INSTANCE_CAST (_tmp0_, gtk_toggle_button_get_type (), GtkToggleButton));
#line 136 "/home/jens/Source/shotwell/src/SlideshowPage.vala"
	_tmp2_ = _tmp1_;
#line 136 "/home/jens/Source/shotwell/src/SlideshowPage.vala"
	result = _tmp2_;
#line 136 "/home/jens/Source/shotwell/src/SlideshowPage.vala"
	return result;
#line 3271 "SlideshowPage.c"
}


static void slideshow_page_settings_dialog_class_init (SlideshowPageSettingsDialogClass * klass) {
#line 26 "/home/jens/Source/shotwell/src/SlideshowPage.vala"
	slideshow_page_settings_dialog_parent_class = g_type_class_peek_parent (klass);
#line 26 "/home/jens/Source/shotwell/src/SlideshowPage.vala"
	g_type_class_add_private (klass, sizeof (SlideshowPageSettingsDialogPrivate));
#line 26 "/home/jens/Source/shotwell/src/SlideshowPage.vala"
	G_OBJECT_CLASS (klass)->finalize = slideshow_page_settings_dialog_finalize;
#line 3282 "SlideshowPage.c"
}


static void slideshow_page_settings_dialog_instance_init (SlideshowPageSettingsDialog * self) {
#line 26 "/home/jens/Source/shotwell/src/SlideshowPage.vala"
	self->priv = SLIDESHOW_PAGE_SETTINGS_DIALOG_GET_PRIVATE (self);
#line 27 "/home/jens/Source/shotwell/src/SlideshowPage.vala"
	self->priv->builder = NULL;
#line 3291 "SlideshowPage.c"
}


static void slideshow_page_settings_dialog_finalize (GObject* obj) {
	SlideshowPageSettingsDialog * self;
#line 26 "/home/jens/Source/shotwell/src/SlideshowPage.vala"
	self = G_TYPE_CHECK_INSTANCE_CAST (obj, SLIDESHOW_PAGE_TYPE_SETTINGS_DIALOG, SlideshowPageSettingsDialog);
#line 27 "/home/jens/Source/shotwell/src/SlideshowPage.vala"
	_g_object_unref0 (self->priv->builder);
#line 28 "/home/jens/Source/shotwell/src/SlideshowPage.vala"
	_g_object_unref0 (self->priv->delay_entry);
#line 29 "/home/jens/Source/shotwell/src/SlideshowPage.vala"
	_g_object_unref0 (self->priv->delay_hscale);
#line 30 "/home/jens/Source/shotwell/src/SlideshowPage.vala"
	_g_object_unref0 (self->priv->transition_effect_selector);
#line 31 "/home/jens/Source/shotwell/src/SlideshowPage.vala"
	_g_object_unref0 (self->priv->transition_effect_hscale);
#line 32 "/home/jens/Source/shotwell/src/SlideshowPage.vala"
	_g_object_unref0 (self->priv->transition_effect_entry);
#line 33 "/home/jens/Source/shotwell/src/SlideshowPage.vala"
	_g_object_unref0 (self->priv->transition_effect_adjustment);
#line 34 "/home/jens/Source/shotwell/src/SlideshowPage.vala"
	_g_object_unref0 (self->priv->show_title_button);
#line 35 "/home/jens/Source/shotwell/src/SlideshowPage.vala"
	_g_object_unref0 (self->priv->pane);
#line 26 "/home/jens/Source/shotwell/src/SlideshowPage.vala"
	G_OBJECT_CLASS (slideshow_page_settings_dialog_parent_class)->finalize (obj);
#line 3319 "SlideshowPage.c"
}


static GType slideshow_page_settings_dialog_get_type (void) {
	static volatile gsize slideshow_page_settings_dialog_type_id__volatile = 0;
	if (g_once_init_enter (&slideshow_page_settings_dialog_type_id__volatile)) {
		static const GTypeInfo g_define_type_info = { sizeof (SlideshowPageSettingsDialogClass), (GBaseInitFunc) NULL, (GBaseFinalizeFunc) NULL, (GClassInitFunc) slideshow_page_settings_dialog_class_init, (GClassFinalizeFunc) NULL, NULL, sizeof (SlideshowPageSettingsDialog), 0, (GInstanceInitFunc) slideshow_page_settings_dialog_instance_init, NULL };
		GType slideshow_page_settings_dialog_type_id;
		slideshow_page_settings_dialog_type_id = g_type_register_static (gtk_dialog_get_type (), "SlideshowPageSettingsDialog", &g_define_type_info, 0);
		g_once_init_leave (&slideshow_page_settings_dialog_type_id__volatile, slideshow_page_settings_dialog_type_id);
	}
	return slideshow_page_settings_dialog_type_id__volatile;
}


static void slideshow_page_class_init (SlideshowPageClass * klass) {
#line 7 "/home/jens/Source/shotwell/src/SlideshowPage.vala"
	slideshow_page_parent_class = g_type_class_peek_parent (klass);
#line 7 "/home/jens/Source/shotwell/src/SlideshowPage.vala"
	g_type_class_add_private (klass, sizeof (SlideshowPagePrivate));
#line 7 "/home/jens/Source/shotwell/src/SlideshowPage.vala"
	((PageClass *) klass)->switched_to = slideshow_page_real_switched_to;
#line 7 "/home/jens/Source/shotwell/src/SlideshowPage.vala"
	((PageClass *) klass)->switching_from = slideshow_page_real_switching_from;
#line 7 "/home/jens/Source/shotwell/src/SlideshowPage.vala"
	((SinglePhotoPageClass *) klass)->on_previous_photo = slideshow_page_real_on_previous_photo;
#line 7 "/home/jens/Source/shotwell/src/SlideshowPage.vala"
	((SinglePhotoPageClass *) klass)->on_next_photo = slideshow_page_real_on_next_photo;
#line 7 "/home/jens/Source/shotwell/src/SlideshowPage.vala"
	((GtkWidgetClass *) klass)->key_press_event = slideshow_page_real_key_press_event;
#line 7 "/home/jens/Source/shotwell/src/SlideshowPage.vala"
	((SinglePhotoPageClass *) klass)->paint = slideshow_page_real_paint;
#line 7 "/home/jens/Source/shotwell/src/SlideshowPage.vala"
	G_OBJECT_CLASS (klass)->finalize = slideshow_page_finalize;
#line 7 "/home/jens/Source/shotwell/src/SlideshowPage.vala"
	g_signal_new ("hide_toolbar", TYPE_SLIDESHOW_PAGE, G_SIGNAL_RUN_LAST, 0, NULL, NULL, g_cclosure_marshal_VOID__VOID, G_TYPE_NONE, 0);
#line 3356 "SlideshowPage.c"
}


static void slideshow_page_instance_init (SlideshowPage * self) {
	GTimer* _tmp0_ = NULL;
#line 7 "/home/jens/Source/shotwell/src/SlideshowPage.vala"
	self->priv = SLIDESHOW_PAGE_GET_PRIVATE (self);
#line 16 "/home/jens/Source/shotwell/src/SlideshowPage.vala"
	self->priv->cache = NULL;
#line 17 "/home/jens/Source/shotwell/src/SlideshowPage.vala"
	_tmp0_ = g_timer_new ();
#line 17 "/home/jens/Source/shotwell/src/SlideshowPage.vala"
	self->priv->timer = _tmp0_;
#line 18 "/home/jens/Source/shotwell/src/SlideshowPage.vala"
	self->priv->playing = TRUE;
#line 19 "/home/jens/Source/shotwell/src/SlideshowPage.vala"
	self->priv->exiting = FALSE;
#line 3374 "SlideshowPage.c"
}


static void slideshow_page_finalize (GObject* obj) {
	SlideshowPage * self;
#line 7 "/home/jens/Source/shotwell/src/SlideshowPage.vala"
	self = G_TYPE_CHECK_INSTANCE_CAST (obj, TYPE_SLIDESHOW_PAGE, SlideshowPage);
#line 11 "/home/jens/Source/shotwell/src/SlideshowPage.vala"
	_data_collection_unref0 (self->priv->sources);
#line 12 "/home/jens/Source/shotwell/src/SlideshowPage.vala"
	_data_collection_unref0 (self->priv->controller);
#line 13 "/home/jens/Source/shotwell/src/SlideshowPage.vala"
	_g_object_unref0 (self->priv->current);
#line 14 "/home/jens/Source/shotwell/src/SlideshowPage.vala"
	_g_object_unref0 (self->priv->play_pause_button);
#line 15 "/home/jens/Source/shotwell/src/SlideshowPage.vala"
	_g_object_unref0 (self->priv->settings_button);
#line 16 "/home/jens/Source/shotwell/src/SlideshowPage.vala"
	_g_object_unref0 (self->priv->cache);
#line 17 "/home/jens/Source/shotwell/src/SlideshowPage.vala"
	_g_timer_destroy0 (self->priv->timer);
#line 20 "/home/jens/Source/shotwell/src/SlideshowPage.vala"
	self->priv->transitions = (_vala_array_free (self->priv->transitions, self->priv->transitions_length1, (GDestroyNotify) g_free), NULL);
#line 22 "/home/jens/Source/shotwell/src/SlideshowPage.vala"
	_screensaver_unref0 (self->priv->screensaver);
#line 7 "/home/jens/Source/shotwell/src/SlideshowPage.vala"
	G_OBJECT_CLASS (slideshow_page_parent_class)->finalize (obj);
#line 3402 "SlideshowPage.c"
}


GType slideshow_page_get_type (void) {
	static volatile gsize slideshow_page_type_id__volatile = 0;
	if (g_once_init_enter (&slideshow_page_type_id__volatile)) {
		static const GTypeInfo g_define_type_info = { sizeof (SlideshowPageClass), (GBaseInitFunc) NULL, (GBaseFinalizeFunc) NULL, (GClassInitFunc) slideshow_page_class_init, (GClassFinalizeFunc) NULL, NULL, sizeof (SlideshowPage), 0, (GInstanceInitFunc) slideshow_page_instance_init, NULL };
		GType slideshow_page_type_id;
		slideshow_page_type_id = g_type_register_static (TYPE_SINGLE_PHOTO_PAGE, "SlideshowPage", &g_define_type_info, 0);
		g_once_init_leave (&slideshow_page_type_id__volatile, slideshow_page_type_id);
	}
	return slideshow_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);
}