1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
888
889
890
891
892
893
894
895
896
897
898
899
900
901
902
903
904
905
906
907
908
909
910
911
912
913
914
915
916
917
918
919
920
921
922
923
924
925
926
927
928
929
930
931
932
933
934
935
936
937
938
939
940
941
942
943
944
945
946
947
948
949
950
951
952
953
954
955
956
957
958
959
960
961
962
963
964
965
966
967
968
969
970
971
972
973
974
975
976
977
978
979
980
981
982
983
984
985
986
987
988
989
990
991
992
993
994
995
996
997
998
999
1000
1001
1002
1003
1004
1005
1006
1007
1008
1009
1010
1011
1012
1013
1014
1015
1016
1017
1018
1019
1020
1021
1022
1023
1024
1025
1026
1027
1028
1029
1030
1031
1032
1033
1034
1035
1036
1037
1038
1039
1040
1041
1042
1043
1044
1045
1046
1047
1048
1049
1050
1051
1052
1053
1054
1055
1056
1057
1058
1059
1060
1061
1062
1063
1064
1065
1066
1067
1068
1069
1070
1071
1072
1073
1074
1075
1076
1077
1078
1079
1080
1081
1082
1083
1084
1085
1086
1087
1088
1089
1090
1091
1092
1093
1094
1095
1096
1097
1098
1099
1100
1101
1102
1103
1104
1105
1106
1107
1108
1109
1110
1111
1112
1113
1114
1115
1116
1117
1118
1119
1120
1121
1122
1123
1124
1125
1126
1127
1128
1129
1130
1131
1132
1133
1134
1135
1136
1137
1138
1139
1140
1141
1142
1143
1144
1145
1146
1147
1148
1149
1150
1151
1152
1153
1154
1155
1156
1157
1158
1159
1160
1161
1162
1163
1164
1165
1166
1167
1168
1169
1170
1171
1172
1173
1174
1175
1176
1177
1178
1179
1180
1181
1182
1183
1184
1185
1186
1187
1188
1189
1190
1191
1192
1193
1194
1195
1196
1197
1198
1199
1200
1201
1202
1203
1204
1205
1206
1207
1208
1209
1210
1211
1212
1213
1214
1215
1216
1217
1218
1219
1220
1221
1222
1223
1224
1225
1226
1227
1228
1229
1230
1231
1232
1233
1234
1235
1236
1237
1238
1239
1240
1241
1242
1243
1244
1245
1246
1247
1248
1249
1250
1251
1252
1253
1254
1255
1256
1257
1258
1259
1260
1261
1262
1263
1264
1265
1266
1267
1268
1269
1270
1271
1272
1273
1274
1275
1276
1277
1278
1279
1280
1281
1282
1283
1284
1285
1286
1287
1288
1289
1290
1291
1292
1293
1294
1295
1296
1297
1298
1299
1300
1301
1302
1303
1304
1305
1306
1307
1308
1309
1310
1311
1312
1313
1314
1315
1316
1317
1318
1319
1320
1321
1322
1323
1324
1325
1326
1327
1328
1329
1330
1331
1332
1333
1334
1335
1336
1337
1338
1339
1340
1341
1342
1343
1344
1345
1346
1347
1348
1349
1350
1351
1352
1353
1354
1355
1356
1357
1358
1359
1360
1361
1362
1363
1364
1365
1366
1367
1368
1369
1370
1371
1372
1373
1374
1375
1376
1377
1378
1379
1380
1381
1382
1383
1384
1385
1386
1387
1388
1389
1390
1391
1392
1393
1394
1395
1396
1397
1398
1399
1400
1401
1402
1403
1404
1405
1406
1407
1408
1409
1410
1411
1412
1413
1414
1415
1416
1417
1418
1419
1420
1421
1422
1423
1424
1425
1426
1427
1428
1429
1430
1431
1432
1433
1434
1435
1436
1437
1438
1439
1440
1441
1442
1443
1444
1445
1446
1447
1448
1449
1450
1451
1452
1453
1454
1455
1456
1457
1458
1459
1460
1461
1462
1463
1464
1465
1466
1467
1468
1469
1470
1471
1472
1473
1474
1475
1476
1477
1478
1479
1480
1481
1482
1483
1484
1485
1486
1487
1488
1489
1490
1491
1492
1493
1494
1495
1496
1497
1498
1499
1500
1501
1502
1503
1504
1505
1506
1507
1508
1509
1510
1511
1512
1513
1514
1515
1516
1517
1518
1519
1520
1521
1522
1523
1524
1525
1526
1527
1528
1529
1530
1531
1532
1533
1534
1535
1536
1537
1538
1539
1540
1541
1542
1543
1544
1545
1546
1547
1548
1549
1550
1551
1552
1553
1554
1555
1556
1557
1558
1559
1560
1561
1562
1563
1564
1565
1566
1567
1568
1569
1570
1571
1572
1573
1574
1575
1576
1577
1578
1579
1580
1581
1582
1583
1584
1585
1586
1587
1588
1589
1590
1591
1592
1593
1594
1595
1596
1597
1598
1599
1600
1601
1602
1603
1604
1605
1606
1607
1608
1609
1610
1611
1612
1613
1614
1615
1616
1617
1618
1619
1620
1621
1622
1623
1624
1625
1626
1627
1628
1629
1630
1631
1632
1633
1634
1635
1636
1637
1638
1639
1640
1641
1642
1643
1644
1645
1646
1647
1648
1649
1650
1651
1652
1653
1654
1655
1656
1657
1658
1659
1660
1661
1662
1663
1664
1665
1666
1667
1668
1669
1670
1671
1672
1673
1674
1675
1676
1677
1678
1679
1680
1681
1682
1683
1684
1685
1686
1687
1688
1689
1690
1691
1692
1693
1694
1695
1696
1697
1698
1699
1700
1701
1702
1703
1704
1705
1706
1707
1708
1709
1710
1711
1712
1713
1714
1715
1716
1717
1718
1719
1720
1721
1722
1723
1724
1725
1726
1727
1728
1729
1730
1731
1732
1733
1734
1735
1736
1737
1738
1739
1740
1741
1742
1743
1744
1745
1746
1747
1748
1749
1750
1751
1752
1753
1754
1755
1756
1757
1758
1759
1760
1761
1762
1763
1764
1765
1766
1767
1768
1769
1770
1771
1772
1773
1774
1775
1776
1777
1778
1779
1780
1781
1782
1783
1784
1785
1786
1787
1788
1789
1790
1791
1792
1793
1794
1795
1796
1797
1798
1799
1800
1801
1802
1803
1804
1805
1806
1807
1808
1809
1810
1811
1812
1813
1814
1815
1816
1817
1818
1819
1820
1821
1822
1823
1824
1825
1826
1827
1828
1829
1830
1831
1832
1833
1834
1835
1836
1837
1838
1839
1840
1841
1842
1843
1844
1845
1846
1847
1848
1849
1850
1851
1852
1853
1854
1855
1856
1857
1858
1859
1860
1861
1862
1863
1864
1865
1866
1867
1868
1869
1870
1871
1872
1873
1874
1875
1876
1877
1878
1879
1880
1881
1882
1883
1884
1885
1886
1887
1888
1889
1890
1891
1892
1893
1894
1895
1896
1897
1898
1899
1900
1901
1902
1903
1904
1905
1906
1907
1908
1909
1910
1911
1912
1913
1914
1915
1916
1917
1918
1919
1920
1921
1922
1923
1924
1925
1926
1927
1928
1929
1930
1931
1932
1933
1934
1935
1936
1937
1938
1939
1940
1941
1942
1943
1944
1945
1946
1947
1948
1949
1950
1951
1952
1953
1954
1955
1956
1957
1958
1959
1960
1961
1962
1963
1964
1965
1966
1967
1968
1969
1970
1971
1972
1973
1974
1975
1976
1977
1978
1979
1980
1981
1982
1983
1984
1985
1986
1987
1988
1989
1990
1991
1992
1993
1994
1995
1996
1997
1998
1999
2000
2001
2002
2003
2004
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
2025
2026
2027
2028
2029
2030
2031
2032
2033
2034
2035
2036
2037
2038
2039
2040
2041
2042
2043
2044
2045
2046
2047
2048
2049
2050
2051
2052
2053
2054
2055
2056
2057
2058
2059
2060
2061
2062
2063
2064
2065
2066
2067
2068
2069
2070
2071
2072
2073
2074
2075
2076
2077
2078
2079
2080
2081
2082
2083
2084
2085
2086
2087
2088
2089
2090
2091
2092
2093
2094
2095
2096
2097
2098
2099
2100
2101
2102
2103
2104
2105
2106
2107
2108
2109
2110
2111
2112
2113
2114
2115
2116
2117
2118
2119
2120
2121
2122
2123
2124
2125
2126
2127
2128
2129
2130
2131
2132
2133
2134
2135
2136
2137
2138
2139
2140
2141
2142
2143
2144
2145
2146
2147
2148
2149
2150
2151
2152
2153
2154
2155
2156
2157
2158
2159
2160
2161
2162
2163
2164
2165
2166
2167
2168
2169
2170
2171
2172
2173
2174
2175
2176
2177
2178
2179
2180
2181
2182
2183
2184
2185
2186
2187
2188
2189
2190
2191
2192
2193
2194
2195
2196
2197
2198
2199
2200
2201
2202
2203
2204
2205
2206
2207
2208
2209
2210
2211
2212
2213
2214
2215
2216
2217
2218
2219
2220
2221
2222
2223
2224
2225
2226
2227
2228
2229
2230
2231
2232
2233
2234
2235
2236
2237
2238
2239
2240
2241
2242
2243
2244
2245
2246
2247
2248
2249
2250
2251
2252
2253
2254
2255
2256
2257
2258
2259
2260
2261
2262
2263
2264
2265
2266
2267
2268
2269
2270
2271
2272
2273
2274
2275
2276
2277
2278
2279
2280
2281
2282
2283
2284
2285
2286
2287
2288
2289
2290
2291
2292
2293
2294
2295
2296
2297
2298
2299
2300
2301
2302
2303
2304
2305
2306
2307
2308
2309
2310
2311
2312
2313
2314
2315
2316
2317
2318
2319
2320
2321
2322
2323
2324
2325
2326
2327
2328
2329
2330
2331
2332
2333
2334
2335
2336
2337
2338
2339
2340
2341
2342
2343
2344
2345
2346
2347
2348
2349
2350
2351
2352
2353
2354
2355
2356
2357
2358
2359
2360
2361
2362
2363
2364
2365
2366
2367
2368
2369
2370
2371
2372
2373
2374
2375
2376
2377
2378
2379
2380
2381
2382
2383
2384
2385
2386
2387
2388
2389
2390
2391
2392
2393
2394
2395
2396
2397
2398
2399
2400
2401
2402
2403
2404
2405
2406
2407
2408
2409
2410
2411
2412
2413
2414
2415
2416
2417
2418
2419
2420
2421
2422
2423
2424
2425
2426
2427
2428
2429
2430
2431
2432
2433
2434
2435
2436
2437
2438
2439
2440
2441
2442
2443
2444
2445
2446
2447
2448
2449
2450
2451
2452
2453
2454
2455
2456
2457
2458
2459
2460
2461
2462
2463
2464
2465
2466
2467
2468
2469
2470
2471
2472
2473
2474
2475
2476
2477
2478
2479
2480
2481
2482
2483
2484
2485
2486
2487
2488
2489
2490
2491
2492
2493
2494
2495
2496
2497
2498
2499
2500
2501
2502
2503
2504
2505
2506
2507
2508
2509
2510
2511
2512
2513
2514
2515
2516
2517
2518
2519
2520
2521
2522
2523
2524
2525
2526
2527
2528
2529
2530
2531
2532
2533
2534
2535
2536
2537
2538
2539
2540
2541
2542
2543
2544
2545
2546
2547
2548
2549
2550
2551
2552
2553
2554
2555
2556
2557
2558
2559
2560
2561
2562
2563
2564
2565
2566
2567
2568
2569
2570
2571
2572
2573
2574
2575
2576
2577
2578
2579
2580
2581
2582
2583
2584
2585
2586
2587
2588
2589
2590
2591
2592
2593
2594
2595
2596
2597
2598
2599
2600
2601
2602
2603
2604
2605
2606
2607
2608
2609
2610
2611
2612
2613
2614
2615
2616
2617
2618
2619
2620
2621
2622
2623
2624
2625
2626
2627
2628
2629
2630
2631
2632
2633
2634
2635
2636
2637
2638
2639
2640
2641
2642
2643
2644
2645
2646
2647
2648
2649
2650
2651
2652
2653
2654
2655
2656
2657
2658
2659
2660
2661
2662
2663
2664
2665
2666
2667
2668
2669
2670
2671
2672
2673
2674
2675
2676
2677
2678
2679
2680
2681
2682
2683
2684
2685
2686
2687
2688
2689
2690
2691
2692
2693
2694
2695
2696
2697
2698
2699
2700
2701
2702
2703
2704
2705
2706
2707
2708
2709
2710
2711
2712
2713
2714
2715
2716
2717
2718
2719
2720
2721
2722
2723
2724
2725
2726
2727
2728
2729
2730
2731
2732
2733
2734
2735
2736
2737
2738
2739
2740
2741
2742
2743
2744
2745
2746
2747
2748
2749
2750
2751
2752
2753
2754
2755
2756
2757
2758
2759
2760
2761
2762
2763
2764
2765
2766
2767
2768
2769
2770
2771
2772
2773
2774
2775
2776
2777
2778
2779
2780
2781
2782
2783
2784
2785
2786
2787
2788
2789
2790
2791
2792
2793
2794
2795
2796
2797
2798
2799
2800
2801
2802
2803
2804
2805
2806
2807
2808
2809
2810
2811
2812
2813
2814
2815
2816
2817
2818
2819
2820
2821
2822
2823
2824
2825
2826
2827
2828
2829
2830
2831
2832
2833
2834
2835
2836
2837
2838
2839
2840
2841
2842
2843
2844
2845
2846
2847
2848
2849
2850
2851
2852
2853
2854
2855
2856
2857
2858
2859
2860
2861
2862
2863
2864
2865
2866
2867
2868
2869
2870
2871
2872
2873
2874
2875
2876
2877
2878
2879
2880
2881
2882
2883
2884
2885
2886
2887
2888
2889
2890
2891
2892
2893
2894
2895
2896
2897
2898
2899
2900
2901
2902
2903
2904
2905
2906
2907
2908
2909
2910
2911
2912
2913
2914
2915
2916
2917
2918
2919
2920
2921
2922
2923
2924
2925
2926
2927
2928
2929
2930
2931
2932
2933
2934
2935
2936
2937
2938
2939
2940
2941
2942
2943
2944
2945
2946
2947
2948
2949
2950
2951
2952
2953
2954
2955
2956
2957
2958
2959
2960
2961
2962
2963
2964
2965
2966
2967
2968
2969
2970
2971
2972
2973
2974
2975
2976
2977
2978
2979
2980
2981
2982
2983
2984
2985
2986
2987
2988
2989
2990
2991
2992
2993
2994
2995
2996
2997
2998
2999
3000
3001
3002
3003
3004
3005
3006
3007
3008
3009
3010
3011
3012
3013
3014
3015
3016
3017
3018
3019
3020
3021
3022
3023
3024
3025
3026
3027
3028
3029
3030
3031
3032
3033
3034
3035
3036
3037
3038
3039
3040
3041
3042
3043
3044
3045
3046
3047
3048
3049
3050
3051
3052
3053
3054
3055
3056
3057
3058
3059
3060
3061
3062
3063
3064
3065
3066
3067
3068
3069
3070
3071
3072
3073
3074
3075
3076
3077
3078
3079
3080
3081
3082
3083
3084
3085
3086
3087
3088
3089
3090
3091
3092
3093
3094
3095
3096
3097
3098
3099
3100
3101
3102
3103
3104
3105
3106
3107
3108
3109
3110
3111
3112
3113
3114
3115
3116
3117
3118
3119
3120
3121
3122
3123
3124
3125
3126
3127
3128
3129
3130
3131
3132
3133
3134
3135
3136
3137
3138
3139
3140
3141
3142
3143
3144
3145
3146
3147
3148
3149
3150
3151
3152
3153
3154
3155
3156
3157
3158
3159
3160
3161
3162
3163
3164
3165
3166
3167
3168
3169
3170
3171
3172
3173
3174
3175
3176
3177
3178
3179
3180
3181
3182
3183
3184
3185
3186
3187
3188
3189
3190
3191
3192
3193
3194
3195
3196
3197
3198
3199
3200
3201
3202
3203
3204
3205
3206
3207
3208
3209
3210
3211
3212
3213
3214
3215
3216
3217
3218
3219
3220
3221
3222
3223
3224
3225
3226
3227
3228
3229
3230
3231
3232
3233
3234
3235
3236
3237
3238
3239
3240
3241
3242
3243
3244
3245
3246
3247
3248
3249
3250
3251
3252
3253
3254
3255
3256
3257
3258
3259
3260
3261
3262
3263
3264
3265
3266
3267
3268
3269
3270
3271
3272
3273
3274
3275
3276
3277
3278
3279
3280
3281
3282
3283
3284
3285
3286
3287
3288
3289
3290
3291
3292
3293
3294
3295
3296
3297
3298
3299
3300
3301
3302
3303
3304
3305
3306
3307
3308
3309
3310
3311
3312
3313
3314
3315
3316
3317
3318
3319
3320
3321
3322
3323
3324
3325
3326
3327
3328
3329
3330
3331
3332
3333
3334
3335
3336
3337
3338
3339
3340
3341
3342
3343
3344
3345
3346
3347
3348
3349
3350
3351
3352
3353
3354
3355
3356
3357
3358
3359
3360
3361
3362
3363
3364
3365
3366
3367
3368
3369
3370
3371
3372
3373
3374
3375
3376
3377
3378
3379
3380
3381
3382
3383
3384
3385
3386
3387
3388
3389
3390
3391
3392
3393
3394
3395
3396
3397
3398
3399
3400
3401
3402
3403
3404
3405
3406
3407
3408
3409
3410
3411
3412
3413
3414
3415
3416
3417
3418
3419
3420
3421
3422
3423
3424
3425
3426
3427
3428
3429
3430
3431
3432
3433
3434
3435
3436
3437
3438
3439
3440
3441
3442
3443
3444
3445
3446
3447
3448
3449
3450
3451
3452
3453
3454
3455
3456
3457
3458
3459
3460
3461
3462
3463
3464
3465
3466
3467
3468
3469
3470
3471
3472
3473
3474
3475
3476
3477
3478
3479
3480
3481
3482
3483
3484
3485
3486
3487
3488
3489
3490
3491
3492
3493
3494
3495
3496
3497
3498
3499
3500
3501
3502
3503
3504
3505
3506
3507
3508
3509
3510
3511
3512
3513
3514
3515
3516
3517
3518
3519
3520
3521
3522
3523
3524
3525
3526
3527
3528
3529
3530
3531
3532
3533
3534
3535
3536
3537
3538
3539
3540
3541
3542
3543
3544
3545
3546
3547
3548
3549
3550
3551
3552
3553
3554
3555
3556
3557
3558
3559
3560
3561
3562
3563
3564
3565
3566
3567
3568
3569
3570
3571
3572
3573
3574
3575
3576
3577
3578
3579
3580
3581
3582
3583
3584
3585
3586
3587
3588
3589
3590
3591
3592
3593
3594
3595
3596
3597
3598
3599
3600
3601
3602
3603
3604
3605
3606
3607
3608
3609
3610
3611
3612
3613
3614
3615
3616
3617
3618
3619
3620
3621
3622
3623
3624
3625
3626
3627
3628
3629
3630
3631
3632
3633
3634
3635
3636
3637
3638
3639
3640
3641
3642
3643
3644
3645
3646
3647
3648
3649
3650
3651
3652
3653
3654
3655
3656
3657
3658
3659
3660
3661
3662
3663
3664
3665
3666
3667
3668
3669
3670
3671
3672
3673
3674
3675
3676
3677
3678
3679
3680
3681
3682
3683
3684
3685
3686
3687
3688
3689
3690
3691
3692
3693
3694
3695
3696
3697
3698
3699
3700
3701
3702
3703
3704
3705
3706
3707
3708
3709
3710
3711
3712
3713
3714
3715
3716
3717
3718
3719
3720
3721
3722
3723
3724
3725
3726
3727
3728
3729
3730
3731
3732
3733
3734
3735
3736
3737
3738
3739
3740
3741
3742
3743
3744
3745
3746
3747
3748
3749
3750
3751
3752
3753
3754
3755
3756
3757
3758
3759
3760
3761
3762
3763
3764
3765
3766
3767
3768
3769
3770
3771
3772
3773
3774
3775
3776
3777
3778
3779
3780
3781
3782
3783
3784
3785
3786
3787
3788
3789
3790
3791
3792
3793
3794
3795
3796
3797
3798
3799
3800
3801
3802
3803
3804
3805
3806
3807
3808
3809
3810
3811
3812
3813
3814
3815
3816
3817
3818
3819
3820
3821
3822
3823
3824
3825
3826
3827
3828
3829
3830
3831
3832
3833
3834
3835
3836
3837
3838
3839
3840
3841
3842
3843
3844
3845
3846
3847
3848
3849
3850
3851
3852
3853
3854
3855
3856
3857
3858
3859
3860
3861
3862
3863
3864
3865
3866
3867
3868
3869
3870
3871
3872
3873
3874
3875
3876
3877
3878
3879
3880
3881
3882
3883
3884
3885
3886
3887
3888
3889
3890
3891
3892
3893
3894
3895
3896
3897
3898
3899
3900
3901
3902
3903
3904
3905
3906
3907
3908
3909
3910
3911
3912
3913
3914
3915
3916
3917
3918
3919
3920
3921
3922
3923
3924
3925
3926
3927
3928
3929
3930
3931
3932
3933
3934
3935
3936
3937
3938
3939
3940
3941
3942
3943
3944
3945
3946
3947
3948
3949
3950
3951
3952
3953
3954
3955
3956
3957
3958
3959
3960
3961
3962
3963
3964
3965
3966
3967
3968
3969
3970
3971
3972
3973
3974
3975
3976
3977
3978
3979
3980
3981
3982
3983
3984
3985
3986
3987
3988
3989
3990
3991
3992
3993
3994
3995
3996
3997
3998
3999
4000
4001
4002
4003
4004
4005
4006
4007
4008
4009
4010
4011
4012
4013
4014
4015
4016
4017
4018
4019
4020
4021
4022
4023
4024
4025
4026
4027
4028
4029
4030
4031
4032
4033
4034
4035
4036
4037
4038
4039
4040
4041
4042
4043
4044
4045
4046
4047
4048
4049
4050
4051
4052
4053
4054
4055
4056
4057
4058
4059
4060
4061
4062
4063
4064
4065
4066
4067
4068
4069
4070
4071
4072
4073
4074
4075
4076
4077
4078
4079
4080
4081
4082
4083
4084
4085
4086
4087
4088
4089
4090
4091
4092
4093
4094
4095
4096
4097
4098
4099
4100
4101
4102
4103
4104
4105
4106
4107
4108
4109
4110
4111
4112
4113
4114
4115
4116
4117
4118
4119
4120
4121
4122
4123
4124
4125
4126
4127
4128
4129
4130
4131
4132
4133
4134
4135
4136
4137
4138
4139
4140
4141
4142
4143
4144
4145
4146
4147
4148
4149
4150
4151
4152
4153
4154
4155
4156
4157
4158
4159
4160
4161
4162
4163
4164
4165
4166
4167
4168
4169
4170
4171
4172
4173
4174
4175
4176
4177
4178
4179
4180
4181
4182
4183
4184
4185
4186
4187
4188
4189
4190
4191
4192
4193
4194
4195
4196
4197
4198
4199
4200
4201
4202
4203
4204
4205
4206
4207
4208
4209
4210
4211
4212
4213
4214
4215
4216
4217
4218
4219
4220
4221
4222
4223
4224
4225
4226
4227
4228
4229
4230
4231
4232
4233
4234
4235
4236
4237
4238
4239
4240
4241
4242
4243
4244
4245
4246
4247
4248
4249
4250
4251
4252
4253
4254
4255
4256
4257
4258
4259
4260
4261
4262
4263
4264
4265
4266
4267
4268
4269
4270
4271
4272
4273
4274
4275
4276
4277
4278
4279
4280
4281
4282
4283
4284
4285
4286
4287
4288
4289
4290
4291
4292
4293
4294
4295
4296
4297
4298
4299
4300
4301
4302
4303
4304
4305
4306
4307
4308
4309
4310
4311
4312
4313
4314
4315
4316
4317
4318
4319
4320
4321
4322
4323
4324
4325
4326
4327
4328
4329
4330
4331
4332
4333
4334
4335
4336
4337
4338
4339
4340
4341
4342
4343
4344
4345
4346
4347
4348
4349
4350
4351
4352
4353
4354
4355
4356
4357
4358
4359
4360
4361
4362
4363
4364
4365
4366
4367
4368
4369
4370
4371
4372
4373
4374
4375
4376
4377
4378
4379
4380
4381
4382
4383
4384
4385
4386
4387
4388
4389
4390
4391
4392
4393
4394
4395
4396
4397
4398
4399
4400
4401
4402
4403
4404
4405
4406
4407
4408
4409
4410
4411
4412
4413
4414
4415
4416
4417
4418
4419
4420
4421
4422
4423
4424
4425
4426
4427
4428
4429
4430
4431
4432
4433
4434
4435
4436
4437
4438
4439
4440
4441
4442
4443
4444
4445
4446
4447
4448
4449
4450
4451
4452
4453
4454
4455
4456
4457
4458
4459
4460
4461
4462
4463
4464
4465
4466
4467
4468
4469
4470
4471
4472
4473
4474
4475
4476
4477
4478
4479
4480
4481
4482
4483
4484
4485
4486
4487
4488
4489
4490
4491
4492
4493
4494
4495
4496
4497
4498
4499
4500
4501
4502
4503
4504
4505
4506
4507
4508
4509
4510
4511
4512
4513
4514
4515
4516
4517
4518
4519
4520
4521
4522
4523
4524
4525
4526
4527
4528
4529
4530
4531
4532
4533
4534
4535
4536
4537
4538
4539
4540
4541
4542
4543
4544
4545
4546
4547
4548
4549
4550
4551
4552
4553
4554
4555
4556
4557
4558
4559
4560
4561
4562
4563
4564
4565
4566
4567
4568
4569
4570
4571
4572
4573
4574
4575
4576
4577
4578
4579
4580
4581
4582
4583
4584
4585
4586
4587
4588
4589
4590
4591
4592
4593
4594
4595
4596
4597
4598
4599
4600
4601
4602
4603
4604
4605
4606
4607
4608
4609
4610
4611
4612
4613
4614
4615
4616
4617
4618
4619
4620
4621
4622
4623
4624
4625
4626
4627
4628
4629
4630
4631
4632
4633
4634
4635
4636
4637
4638
4639
4640
4641
4642
4643
4644
4645
4646
4647
4648
4649
4650
4651
4652
4653
4654
4655
4656
4657
4658
4659
4660
4661
4662
4663
4664
4665
4666
4667
4668
4669
4670
4671
4672
4673
4674
4675
4676
4677
4678
4679
4680
4681
4682
4683
4684
4685
4686
4687
4688
4689
4690
4691
4692
4693
4694
4695
4696
4697
4698
4699
4700
4701
4702
4703
4704
4705
4706
4707
4708
4709
4710
4711
4712
4713
4714
4715
4716
4717
4718
4719
4720
4721
4722
4723
4724
4725
4726
4727
4728
4729
4730
4731
4732
4733
4734
4735
4736
4737
4738
4739
4740
4741
4742
4743
4744
4745
4746
4747
4748
4749
4750
4751
4752
4753
4754
4755
4756
4757
4758
4759
4760
4761
4762
4763
4764
4765
4766
4767
4768
4769
4770
4771
4772
4773
4774
4775
4776
4777
4778
4779
4780
4781
4782
4783
4784
4785
4786
4787
4788
4789
4790
4791
4792
4793
4794
4795
4796
4797
4798
4799
4800
4801
4802
4803
4804
4805
4806
4807
4808
4809
4810
4811
4812
4813
4814
4815
4816
4817
4818
4819
4820
4821
4822
4823
4824
4825
4826
4827
4828
4829
4830
4831
4832
4833
4834
4835
4836
4837
4838
4839
4840
4841
4842
4843
4844
4845
4846
4847
4848
4849
4850
4851
4852
4853
4854
4855
4856
4857
4858
4859
4860
4861
4862
4863
4864
4865
4866
4867
4868
4869
4870
4871
4872
4873
4874
4875
4876
4877
4878
4879
4880
4881
4882
4883
4884
4885
4886
4887
4888
4889
4890
4891
4892
4893
4894
4895
4896
4897
4898
4899
4900
4901
4902
4903
4904
4905
4906
4907
4908
4909
4910
4911
4912
4913
4914
4915
4916
4917
4918
4919
4920
4921
4922
4923
4924
4925
4926
4927
4928
4929
4930
4931
4932
4933
4934
4935
4936
4937
4938
4939
4940
4941
4942
4943
4944
4945
4946
4947
4948
4949
4950
4951
4952
4953
4954
4955
4956
4957
4958
4959
4960
4961
4962
4963
4964
4965
4966
4967
4968
4969
4970
4971
4972
4973
4974
4975
4976
4977
4978
4979
4980
4981
4982
4983
4984
4985
4986
4987
4988
4989
4990
4991
4992
4993
4994
4995
4996
4997
4998
4999
5000
5001
5002
5003
5004
5005
5006
5007
5008
5009
5010
5011
5012
5013
5014
5015
5016
5017
5018
5019
5020
5021
5022
5023
5024
5025
5026
5027
5028
5029
5030
5031
5032
5033
5034
5035
5036
5037
5038
5039
5040
5041
5042
5043
5044
5045
5046
5047
5048
5049
5050
5051
5052
5053
5054
5055
5056
5057
5058
5059
5060
5061
5062
5063
5064
5065
5066
5067
5068
5069
5070
5071
5072
5073
5074
5075
5076
5077
5078
5079
5080
5081
5082
5083
5084
5085
5086
5087
5088
5089
5090
5091
5092
5093
5094
5095
5096
5097
5098
5099
5100
5101
5102
5103
5104
5105
5106
5107
5108
5109
5110
5111
5112
5113
5114
5115
5116
5117
5118
5119
5120
5121
5122
5123
5124
5125
5126
5127
5128
5129
5130
5131
5132
5133
5134
5135
5136
5137
5138
5139
5140
5141
5142
5143
5144
5145
5146
5147
5148
5149
5150
5151
5152
5153
5154
5155
5156
5157
5158
5159
5160
5161
5162
5163
5164
5165
5166
5167
5168
5169
5170
5171
5172
5173
5174
5175
5176
5177
5178
5179
5180
5181
5182
5183
5184
5185
5186
5187
5188
5189
5190
5191
5192
5193
5194
5195
5196
5197
5198
5199
5200
5201
5202
5203
5204
5205
5206
5207
5208
5209
5210
5211
5212
5213
5214
5215
5216
5217
5218
5219
5220
5221
5222
5223
5224
5225
5226
5227
5228
5229
5230
5231
5232
5233
5234
5235
5236
5237
5238
5239
5240
5241
5242
5243
5244
5245
5246
5247
5248
5249
5250
5251
5252
5253
5254
5255
5256
5257
5258
5259
5260
5261
5262
5263
5264
5265
5266
5267
5268
5269
5270
5271
5272
5273
5274
5275
5276
5277
5278
5279
5280
5281
5282
5283
5284
5285
5286
5287
5288
5289
5290
5291
5292
5293
5294
5295
5296
5297
5298
5299
5300
5301
5302
5303
5304
5305
5306
5307
5308
5309
5310
5311
5312
5313
5314
5315
5316
5317
5318
5319
5320
5321
5322
5323
5324
5325
5326
5327
5328
5329
5330
5331
5332
5333
5334
5335
5336
5337
5338
5339
5340
5341
5342
5343
5344
5345
5346
5347
5348
5349
5350
5351
5352
5353
5354
5355
5356
5357
5358
5359
5360
5361
5362
5363
5364
5365
5366
5367
5368
5369
5370
5371
5372
5373
5374
5375
5376
5377
5378
5379
5380
5381
5382
5383
5384
5385
5386
5387
5388
5389
5390
5391
5392
5393
5394
5395
5396
5397
5398
5399
5400
5401
5402
5403
5404
5405
5406
5407
5408
5409
5410
5411
5412
5413
5414
5415
5416
5417
5418
5419
5420
5421
5422
5423
5424
5425
5426
5427
5428
5429
5430
5431
5432
5433
5434
5435
5436
5437
5438
5439
5440
5441
5442
5443
5444
5445
5446
5447
5448
5449
5450
5451
5452
5453
5454
5455
5456
5457
5458
5459
5460
5461
5462
5463
5464
5465
5466
5467
5468
5469
5470
5471
5472
5473
5474
5475
5476
5477
5478
5479
5480
5481
5482
5483
5484
5485
5486
5487
5488
5489
5490
5491
5492
5493
5494
5495
5496
5497
5498
5499
5500
5501
5502
5503
5504
5505
5506
5507
5508
5509
5510
5511
5512
5513
5514
5515
5516
5517
5518
5519
5520
5521
5522
5523
5524
5525
5526
5527
5528
5529
5530
5531
5532
5533
5534
5535
5536
5537
5538
5539
5540
5541
5542
5543
5544
5545
5546
5547
5548
5549
5550
5551
5552
5553
5554
5555
5556
5557
5558
5559
5560
5561
5562
5563
5564
5565
5566
5567
5568
5569
5570
5571
5572
5573
5574
5575
5576
5577
5578
5579
5580
5581
5582
5583
5584
5585
5586
5587
5588
5589
5590
5591
5592
5593
5594
5595
5596
5597
5598
5599
5600
5601
5602
5603
5604
5605
5606
5607
5608
5609
5610
5611
5612
5613
5614
5615
5616
5617
5618
5619
5620
5621
5622
5623
5624
5625
5626
5627
5628
5629
5630
5631
5632
5633
5634
5635
5636
5637
5638
5639
5640
5641
5642
5643
5644
5645
5646
5647
5648
5649
5650
5651
5652
5653
5654
5655
5656
5657
5658
5659
5660
5661
5662
5663
5664
5665
5666
5667
5668
5669
5670
5671
5672
5673
5674
5675
5676
5677
5678
5679
5680
5681
5682
5683
5684
5685
5686
5687
5688
5689
5690
5691
5692
5693
5694
5695
5696
5697
5698
5699
5700
5701
5702
5703
5704
5705
5706
5707
5708
5709
5710
5711
5712
5713
5714
5715
5716
5717
5718
5719
5720
5721
5722
5723
5724
5725
5726
5727
5728
5729
5730
5731
5732
5733
5734
5735
5736
5737
5738
5739
5740
5741
5742
5743
5744
5745
5746
5747
5748
5749
5750
5751
5752
5753
5754
5755
5756
5757
5758
5759
5760
5761
5762
5763
5764
5765
5766
5767
5768
5769
5770
5771
5772
5773
5774
5775
5776
5777
5778
5779
5780
5781
5782
5783
5784
5785
5786
5787
5788
5789
5790
5791
5792
5793
5794
5795
5796
5797
5798
5799
5800
5801
5802
5803
5804
5805
5806
5807
5808
5809
5810
5811
5812
5813
5814
5815
5816
5817
5818
5819
5820
5821
5822
5823
5824
5825
5826
5827
5828
5829
5830
5831
5832
5833
5834
5835
5836
5837
5838
5839
5840
5841
5842
5843
5844
5845
5846
5847
5848
5849
5850
5851
5852
5853
5854
5855
5856
5857
5858
5859
5860
5861
5862
5863
5864
5865
5866
5867
5868
5869
5870
5871
5872
5873
5874
5875
5876
5877
5878
5879
5880
5881
5882
5883
5884
5885
5886
5887
5888
5889
5890
5891
5892
5893
5894
5895
5896
5897
5898
5899
5900
5901
5902
5903
5904
5905
5906
5907
5908
5909
5910
5911
5912
5913
5914
5915
5916
5917
5918
5919
5920
5921
5922
5923
5924
5925
5926
5927
5928
5929
5930
5931
5932
5933
5934
5935
5936
5937
5938
5939
5940
5941
5942
5943
5944
5945
5946
5947
5948
5949
5950
5951
5952
5953
5954
5955
5956
5957
5958
5959
5960
5961
5962
5963
5964
5965
5966
5967
5968
5969
5970
5971
5972
5973
5974
5975
5976
5977
5978
5979
5980
5981
5982
5983
5984
5985
5986
5987
5988
5989
5990
5991
5992
5993
5994
5995
5996
5997
5998
5999
6000
6001
6002
6003
6004
6005
6006
6007
6008
6009
6010
6011
6012
6013
6014
6015
6016
6017
6018
6019
6020
6021
6022
6023
6024
6025
6026
6027
6028
6029
6030
6031
6032
6033
6034
6035
6036
6037
6038
6039
6040
6041
6042
6043
6044
6045
6046
6047
6048
6049
6050
6051
6052
6053
6054
6055
6056
6057
6058
6059
6060
6061
6062
6063
6064
6065
6066
6067
6068
6069
6070
6071
6072
6073
6074
6075
6076
6077
6078
6079
6080
6081
6082
6083
6084
6085
6086
6087
6088
6089
6090
6091
6092
6093
6094
6095
6096
6097
6098
6099
6100
6101
6102
6103
6104
6105
6106
6107
6108
6109
6110
6111
6112
6113
6114
6115
6116
6117
6118
6119
6120
6121
6122
6123
6124
6125
6126
6127
6128
6129
6130
6131
6132
6133
6134
6135
6136
6137
6138
6139
6140
6141
6142
6143
6144
6145
6146
6147
6148
6149
6150
6151
6152
6153
6154
6155
6156
6157
6158
6159
6160
6161
6162
6163
6164
6165
6166
6167
6168
6169
6170
6171
6172
6173
6174
6175
6176
6177
6178
6179
6180
6181
6182
6183
6184
6185
6186
6187
6188
6189
6190
6191
6192
6193
6194
6195
6196
6197
6198
6199
6200
6201
6202
6203
6204
6205
6206
6207
6208
6209
6210
6211
6212
6213
6214
6215
6216
6217
6218
6219
6220
6221
6222
6223
6224
6225
6226
6227
6228
6229
6230
6231
6232
6233
6234
6235
6236
6237
6238
6239
6240
6241
6242
6243
6244
6245
6246
6247
6248
6249
6250
6251
6252
6253
6254
6255
6256
6257
6258
6259
6260
6261
6262
6263
6264
6265
6266
6267
6268
6269
6270
6271
6272
6273
6274
6275
6276
6277
6278
6279
6280
6281
6282
6283
6284
6285
6286
6287
6288
6289
6290
6291
6292
6293
6294
6295
6296
6297
6298
6299
6300
6301
6302
6303
6304
6305
6306
6307
6308
6309
6310
6311
6312
6313
6314
6315
6316
6317
6318
6319
6320
6321
6322
6323
6324
6325
6326
6327
6328
6329
6330
6331
6332
6333
6334
6335
6336
6337
6338
6339
6340
6341
6342
6343
6344
6345
6346
6347
6348
6349
6350
6351
6352
6353
6354
6355
6356
6357
6358
6359
6360
6361
6362
6363
6364
6365
6366
6367
6368
6369
6370
6371
6372
6373
6374
6375
6376
6377
6378
6379
6380
6381
6382
6383
6384
6385
6386
6387
6388
6389
6390
6391
6392
6393
6394
6395
6396
6397
6398
6399
6400
6401
6402
6403
6404
6405
6406
6407
6408
6409
6410
6411
6412
6413
6414
6415
6416
6417
6418
6419
6420
6421
6422
6423
6424
6425
6426
6427
6428
6429
6430
6431
6432
6433
6434
6435
6436
6437
6438
6439
6440
6441
6442
6443
6444
6445
6446
6447
6448
6449
6450
6451
6452
6453
6454
6455
6456
6457
6458
6459
6460
6461
6462
6463
6464
6465
6466
6467
6468
6469
6470
6471
6472
6473
6474
6475
6476
6477
6478
6479
6480
6481
6482
6483
6484
6485
6486
6487
6488
6489
6490
6491
6492
6493
6494
6495
6496
6497
6498
6499
6500
6501
6502
6503
6504
6505
6506
6507
6508
6509
6510
6511
6512
6513
6514
6515
6516
6517
6518
6519
6520
6521
6522
6523
6524
6525
6526
6527
6528
6529
6530
6531
6532
6533
6534
6535
6536
6537
6538
6539
6540
6541
6542
6543
6544
6545
6546
6547
6548
6549
6550
6551
6552
6553
6554
6555
6556
6557
6558
6559
6560
6561
6562
6563
6564
6565
6566
6567
6568
6569
6570
6571
6572
6573
6574
6575
6576
6577
6578
6579
6580
6581
6582
6583
6584
6585
6586
6587
6588
6589
6590
6591
6592
6593
6594
6595
6596
6597
6598
6599
6600
6601
6602
6603
6604
6605
6606
6607
6608
6609
6610
6611
6612
6613
6614
6615
6616
6617
6618
6619
6620
6621
6622
6623
6624
6625
6626
6627
6628
6629
6630
6631
6632
6633
6634
6635
6636
6637
6638
6639
6640
6641
6642
6643
6644
6645
6646
6647
6648
6649
6650
6651
6652
6653
6654
6655
6656
6657
6658
6659
6660
6661
6662
6663
6664
6665
6666
6667
6668
6669
6670
6671
6672
6673
6674
6675
6676
6677
6678
6679
6680
6681
6682
6683
6684
6685
6686
6687
6688
6689
6690
6691
6692
6693
6694
6695
6696
6697
6698
6699
6700
6701
6702
6703
6704
6705
6706
6707
6708
6709
6710
6711
6712
6713
6714
6715
6716
6717
6718
6719
6720
6721
6722
6723
6724
6725
6726
6727
6728
6729
6730
6731
6732
6733
6734
6735
6736
6737
6738
6739
6740
6741
6742
6743
6744
6745
6746
6747
6748
6749
6750
6751
6752
6753
6754
6755
6756
6757
6758
6759
6760
6761
6762
6763
6764
6765
6766
6767
6768
6769
6770
6771
6772
6773
6774
6775
6776
6777
6778
6779
6780
6781
6782
6783
6784
6785
6786
6787
6788
6789
6790
6791
6792
6793
6794
6795
6796
6797
6798
6799
6800
6801
6802
6803
6804
6805
6806
6807
6808
6809
6810
6811
6812
6813
6814
6815
6816
6817
6818
6819
6820
6821
6822
6823
6824
6825
6826
6827
6828
6829
6830
6831
6832
6833
6834
6835
6836
6837
6838
6839
6840
6841
6842
6843
6844
6845
6846
6847
6848
6849
6850
6851
6852
6853
6854
6855
6856
6857
6858
6859
6860
6861
6862
6863
6864
6865
6866
6867
6868
6869
6870
6871
6872
6873
6874
6875
6876
6877
6878
6879
6880
6881
6882
6883
6884
6885
6886
6887
6888
6889
6890
6891
6892
6893
6894
6895
6896
6897
6898
6899
6900
6901
6902
6903
6904
6905
6906
6907
6908
6909
6910
6911
6912
6913
6914
6915
6916
6917
6918
6919
6920
6921
6922
6923
6924
6925
6926
6927
6928
6929
6930
6931
6932
6933
6934
6935
6936
6937
6938
6939
6940
6941
6942
6943
6944
6945
6946
6947
6948
6949
6950
6951
6952
6953
6954
6955
6956
6957
6958
6959
6960
6961
6962
6963
6964
6965
6966
6967
6968
6969
6970
6971
6972
6973
6974
6975
6976
6977
6978
6979
6980
6981
6982
6983
6984
6985
6986
6987
6988
6989
6990
6991
6992
6993
6994
6995
6996
6997
6998
6999
7000
7001
7002
7003
7004
7005
7006
7007
7008
7009
7010
7011
7012
7013
7014
7015
7016
7017
7018
7019
7020
7021
7022
7023
7024
7025
7026
7027
7028
7029
7030
7031
7032
7033
7034
7035
7036
7037
7038
7039
7040
7041
7042
7043
7044
7045
7046
7047
7048
7049
7050
7051
7052
7053
7054
7055
7056
7057
7058
7059
7060
7061
7062
7063
7064
7065
7066
7067
7068
7069
7070
7071
7072
7073
7074
7075
7076
7077
7078
7079
7080
7081
7082
7083
7084
7085
7086
7087
7088
7089
7090
7091
7092
7093
7094
7095
7096
7097
7098
7099
7100
7101
7102
7103
7104
7105
7106
7107
7108
7109
7110
7111
7112
7113
7114
7115
7116
7117
7118
7119
7120
7121
7122
7123
7124
7125
7126
7127
7128
7129
7130
7131
7132
7133
7134
7135
7136
7137
7138
7139
7140
7141
7142
7143
7144
7145
7146
7147
7148
7149
7150
7151
7152
7153
7154
7155
7156
7157
7158
7159
7160
7161
7162
7163
7164
7165
7166
7167
7168
7169
7170
7171
7172
7173
7174
7175
7176
7177
7178
7179
7180
7181
7182
7183
7184
7185
7186
7187
7188
7189
7190
7191
7192
7193
7194
7195
7196
7197
7198
7199
7200
7201
7202
7203
7204
7205
7206
7207
7208
7209
7210
7211
7212
7213
7214
7215
7216
7217
7218
7219
7220
7221
7222
7223
7224
7225
7226
7227
7228
7229
7230
7231
7232
7233
7234
7235
7236
7237
7238
7239
7240
7241
7242
7243
7244
7245
7246
7247
7248
7249
7250
7251
7252
7253
7254
7255
7256
7257
7258
7259
7260
7261
7262
7263
7264
7265
7266
7267
7268
7269
7270
7271
7272
7273
7274
7275
7276
7277
7278
7279
7280
7281
7282
7283
7284
7285
7286
7287
7288
7289
7290
7291
7292
7293
7294
7295
7296
7297
7298
7299
7300
7301
7302
7303
7304
7305
7306
7307
7308
7309
7310
7311
7312
7313
7314
7315
7316
7317
7318
7319
7320
7321
7322
7323
7324
7325
7326
7327
7328
7329
7330
7331
7332
7333
7334
7335
7336
7337
7338
7339
7340
7341
7342
7343
7344
7345
7346
7347
7348
7349
7350
7351
7352
7353
7354
7355
7356
7357
7358
7359
7360
7361
7362
7363
7364
7365
7366
7367
7368
7369
7370
7371
7372
7373
7374
7375
7376
7377
7378
7379
7380
7381
7382
7383
7384
7385
7386
7387
7388
7389
7390
7391
7392
7393
7394
7395
7396
7397
7398
7399
7400
7401
7402
7403
7404
7405
7406
7407
7408
7409
7410
7411
7412
7413
7414
7415
7416
7417
7418
7419
7420
7421
7422
7423
7424
7425
7426
7427
7428
7429
7430
7431
7432
7433
7434
7435
7436
7437
7438
7439
7440
7441
7442
7443
7444
7445
7446
7447
7448
7449
7450
7451
7452
7453
7454
7455
7456
7457
7458
7459
7460
7461
7462
7463
7464
7465
7466
7467
7468
7469
7470
7471
7472
7473
7474
7475
7476
7477
7478
7479
7480
7481
7482
7483
7484
7485
7486
7487
7488
7489
7490
7491
7492
7493
7494
7495
7496
7497
7498
7499
7500
7501
7502
7503
7504
7505
7506
7507
7508
7509
7510
7511
7512
7513
7514
7515
7516
7517
7518
7519
7520
7521
7522
7523
7524
7525
7526
7527
7528
7529
7530
7531
7532
7533
7534
7535
7536
7537
7538
7539
7540
7541
7542
7543
7544
7545
7546
7547
7548
7549
7550
7551
7552
7553
7554
7555
7556
7557
7558
7559
7560
7561
7562
7563
7564
7565
7566
7567
7568
7569
7570
7571
7572
7573
7574
7575
7576
7577
7578
7579
7580
7581
7582
7583
7584
7585
7586
7587
7588
7589
7590
7591
7592
7593
7594
7595
7596
7597
7598
7599
7600
7601
7602
7603
7604
7605
7606
7607
7608
7609
7610
7611
7612
7613
7614
7615
7616
7617
7618
7619
7620
7621
7622
7623
7624
7625
7626
7627
7628
7629
7630
7631
7632
7633
7634
7635
7636
7637
7638
7639
7640
7641
7642
7643
7644
7645
7646
7647
7648
7649
7650
7651
7652
7653
7654
7655
7656
7657
7658
7659
7660
7661
7662
7663
7664
7665
7666
7667
7668
7669
7670
7671
7672
7673
7674
7675
7676
7677
7678
7679
7680
7681
7682
7683
7684
7685
7686
7687
7688
7689
7690
7691
7692
7693
7694
7695
7696
7697
7698
7699
7700
7701
7702
7703
7704
7705
7706
7707
7708
7709
7710
7711
7712
7713
7714
7715
7716
7717
7718
7719
7720
7721
7722
7723
7724
7725
7726
7727
7728
7729
7730
7731
7732
7733
7734
7735
7736
7737
7738
7739
7740
7741
7742
7743
7744
7745
7746
7747
7748
7749
7750
7751
7752
7753
7754
7755
7756
7757
7758
7759
7760
7761
7762
7763
7764
7765
7766
7767
7768
7769
7770
7771
7772
7773
7774
7775
7776
7777
7778
7779
7780
7781
7782
7783
7784
7785
7786
7787
7788
7789
7790
7791
7792
7793
7794
7795
7796
7797
7798
7799
7800
7801
7802
7803
7804
7805
7806
7807
7808
7809
7810
7811
7812
7813
7814
7815
7816
7817
7818
7819
7820
7821
7822
7823
7824
7825
7826
7827
7828
7829
7830
7831
7832
7833
7834
7835
7836
7837
7838
7839
7840
7841
7842
7843
7844
7845
7846
7847
7848
7849
7850
7851
7852
7853
7854
7855
7856
7857
7858
7859
7860
7861
7862
7863
7864
7865
7866
7867
7868
7869
7870
7871
7872
7873
7874
7875
7876
7877
7878
7879
7880
7881
7882
7883
7884
7885
7886
7887
7888
7889
7890
7891
7892
7893
7894
7895
7896
7897
7898
7899
7900
7901
7902
7903
7904
7905
7906
7907
7908
7909
7910
7911
7912
7913
7914
7915
7916
7917
7918
7919
7920
7921
7922
7923
7924
7925
7926
7927
7928
7929
7930
7931
7932
7933
7934
7935
7936
7937
7938
7939
7940
7941
7942
7943
7944
7945
7946
7947
7948
7949
7950
7951
7952
7953
7954
7955
7956
7957
7958
7959
7960
7961
7962
7963
7964
7965
7966
7967
7968
7969
7970
7971
7972
7973
7974
7975
7976
7977
7978
7979
7980
7981
7982
7983
7984
7985
7986
7987
7988
7989
7990
7991
7992
7993
7994
7995
7996
7997
7998
7999
8000
8001
8002
8003
8004
8005
8006
8007
8008
8009
8010
8011
8012
8013
8014
8015
8016
8017
8018
8019
8020
8021
8022
8023
8024
8025
8026
8027
8028
8029
8030
8031
8032
8033
8034
8035
8036
8037
8038
8039
8040
8041
8042
8043
8044
8045
8046
8047
8048
8049
8050
8051
8052
8053
8054
8055
8056
8057
8058
8059
8060
8061
8062
8063
8064
8065
8066
8067
8068
8069
8070
8071
8072
8073
8074
8075
8076
8077
8078
8079
8080
8081
8082
8083
8084
8085
8086
8087
8088
8089
8090
8091
8092
8093
8094
8095
8096
8097
8098
8099
8100
8101
8102
8103
8104
8105
8106
8107
8108
8109
8110
8111
8112
8113
8114
8115
8116
8117
8118
8119
8120
8121
8122
8123
8124
8125
8126
8127
8128
8129
8130
8131
8132
8133
8134
8135
8136
8137
8138
8139
8140
8141
8142
8143
8144
8145
8146
8147
8148
8149
8150
8151
8152
8153
8154
8155
8156
8157
8158
8159
8160
8161
8162
8163
8164
8165
8166
8167
8168
8169
8170
8171
8172
8173
8174
8175
8176
8177
8178
8179
8180
8181
8182
8183
8184
8185
8186
8187
8188
8189
8190
8191
8192
8193
8194
8195
8196
8197
8198
8199
8200
8201
8202
8203
8204
8205
8206
8207
8208
8209
8210
8211
8212
8213
8214
8215
8216
8217
8218
8219
8220
8221
8222
8223
8224
8225
8226
8227
8228
8229
8230
8231
8232
8233
8234
8235
8236
8237
8238
8239
8240
8241
8242
8243
8244
8245
8246
8247
8248
8249
8250
8251
8252
8253
8254
8255
8256
8257
8258
8259
8260
8261
8262
8263
8264
8265
8266
8267
8268
8269
8270
8271
8272
8273
8274
8275
8276
8277
8278
8279
8280
8281
8282
8283
8284
8285
8286
8287
8288
8289
8290
8291
8292
8293
8294
8295
8296
8297
8298
8299
8300
8301
8302
8303
8304
8305
8306
8307
8308
8309
8310
8311
8312
8313
8314
8315
8316
8317
8318
8319
8320
8321
8322
8323
8324
8325
8326
8327
8328
8329
8330
8331
8332
8333
8334
8335
8336
8337
8338
8339
8340
8341
8342
8343
8344
8345
8346
8347
8348
8349
8350
8351
8352
8353
8354
8355
8356
8357
8358
8359
8360
8361
8362
8363
8364
8365
8366
8367
8368
8369
8370
8371
8372
8373
8374
8375
8376
8377
8378
8379
8380
8381
8382
8383
8384
8385
8386
8387
8388
8389
8390
8391
8392
8393
8394
8395
8396
8397
8398
8399
8400
8401
8402
8403
8404
8405
8406
8407
8408
8409
8410
8411
8412
8413
8414
8415
8416
8417
8418
8419
8420
8421
8422
8423
8424
8425
8426
8427
8428
8429
8430
8431
8432
8433
8434
8435
8436
8437
8438
8439
8440
8441
8442
8443
8444
8445
8446
8447
8448
8449
8450
8451
8452
8453
8454
8455
8456
8457
8458
8459
8460
8461
8462
8463
8464
8465
8466
8467
8468
8469
8470
8471
8472
8473
8474
8475
8476
8477
8478
8479
8480
8481
8482
8483
8484
8485
8486
8487
8488
8489
8490
8491
8492
8493
8494
8495
8496
8497
8498
8499
8500
8501
8502
8503
8504
8505
8506
8507
8508
8509
8510
8511
8512
8513
8514
8515
8516
8517
8518
8519
8520
8521
8522
8523
8524
8525
8526
8527
8528
8529
8530
8531
8532
8533
8534
8535
8536
8537
8538
8539
8540
8541
8542
8543
8544
8545
8546
8547
8548
8549
8550
8551
8552
8553
8554
8555
8556
8557
8558
8559
8560
8561
8562
8563
8564
8565
8566
8567
8568
8569
8570
8571
8572
8573
8574
8575
8576
8577
8578
8579
8580
8581
8582
8583
8584
8585
8586
8587
8588
8589
8590
8591
8592
8593
8594
8595
8596
8597
8598
8599
8600
8601
8602
8603
8604
8605
8606
8607
8608
8609
8610
8611
8612
8613
8614
8615
8616
8617
8618
8619
8620
8621
8622
8623
8624
8625
8626
8627
8628
8629
8630
8631
8632
8633
8634
8635
8636
8637
8638
8639
8640
8641
8642
8643
8644
8645
8646
8647
8648
8649
8650
8651
8652
8653
8654
8655
8656
8657
8658
8659
8660
8661
8662
8663
8664
8665
8666
8667
8668
8669
8670
8671
8672
8673
8674
8675
8676
8677
8678
8679
8680
8681
8682
8683
8684
8685
8686
8687
8688
8689
8690
8691
8692
8693
8694
8695
8696
8697
8698
8699
8700
8701
8702
8703
8704
8705
8706
8707
8708
8709
8710
8711
8712
8713
8714
8715
8716
8717
8718
8719
8720
8721
8722
8723
8724
8725
8726
8727
8728
8729
8730
8731
8732
8733
8734
8735
8736
8737
8738
8739
8740
8741
8742
8743
8744
8745
8746
8747
8748
8749
8750
8751
8752
8753
8754
8755
8756
8757
8758
8759
8760
8761
8762
8763
8764
8765
8766
8767
8768
8769
8770
8771
8772
8773
8774
8775
8776
8777
8778
8779
8780
8781
8782
8783
8784
8785
8786
8787
8788
8789
8790
8791
8792
8793
8794
8795
8796
8797
8798
8799
8800
8801
8802
8803
8804
8805
8806
8807
8808
8809
8810
8811
8812
8813
8814
8815
8816
8817
8818
8819
8820
8821
8822
8823
8824
8825
8826
8827
8828
8829
8830
8831
8832
8833
8834
8835
8836
8837
8838
8839
8840
8841
8842
8843
8844
8845
8846
8847
8848
8849
8850
8851
8852
8853
8854
8855
8856
8857
8858
8859
8860
8861
8862
8863
8864
8865
8866
8867
8868
8869
8870
8871
8872
8873
8874
8875
8876
8877
8878
8879
8880
8881
8882
8883
8884
8885
8886
8887
8888
8889
8890
8891
8892
8893
8894
8895
8896
8897
8898
8899
8900
8901
8902
8903
8904
8905
8906
8907
8908
8909
8910
8911
8912
8913
8914
8915
8916
8917
8918
8919
8920
8921
8922
8923
8924
8925
8926
8927
8928
8929
8930
8931
8932
8933
8934
8935
8936
8937
8938
8939
8940
8941
8942
8943
8944
8945
8946
8947
8948
8949
8950
8951
8952
8953
8954
8955
8956
8957
8958
8959
8960
8961
8962
8963
8964
8965
8966
8967
8968
8969
8970
8971
8972
8973
8974
8975
8976
8977
8978
8979
8980
8981
8982
8983
8984
8985
8986
8987
8988
8989
8990
8991
8992
8993
8994
8995
8996
8997
8998
8999
9000
9001
9002
9003
9004
9005
9006
9007
9008
9009
9010
9011
9012
9013
9014
9015
9016
9017
9018
9019
9020
9021
9022
9023
9024
9025
9026
9027
9028
9029
9030
9031
9032
9033
9034
9035
9036
9037
9038
9039
9040
9041
9042
9043
9044
9045
9046
9047
9048
9049
9050
9051
9052
9053
9054
9055
9056
9057
9058
9059
9060
9061
9062
9063
9064
9065
9066
9067
9068
9069
9070
9071
9072
9073
9074
9075
9076
9077
9078
9079
9080
9081
9082
9083
9084
9085
9086
9087
9088
9089
9090
9091
9092
9093
9094
9095
9096
9097
9098
9099
9100
9101
9102
9103
9104
9105
9106
9107
9108
9109
9110
9111
9112
9113
9114
9115
9116
9117
9118
9119
9120
9121
9122
9123
9124
9125
9126
9127
9128
9129
9130
9131
9132
9133
9134
9135
9136
9137
9138
9139
9140
9141
9142
9143
9144
9145
9146
9147
9148
9149
9150
9151
9152
9153
9154
9155
9156
9157
9158
9159
9160
9161
9162
9163
9164
9165
9166
9167
9168
9169
9170
9171
9172
9173
9174
9175
9176
9177
9178
9179
9180
9181
9182
9183
9184
9185
9186
9187
9188
9189
9190
9191
9192
9193
9194
9195
9196
9197
9198
9199
9200
9201
9202
9203
9204
9205
9206
9207
9208
9209
9210
9211
9212
9213
9214
9215
9216
9217
9218
9219
9220
9221
9222
9223
9224
9225
9226
9227
9228
9229
9230
9231
9232
9233
9234
9235
9236
9237
9238
9239
9240
9241
9242
9243
9244
9245
9246
9247
9248
9249
9250
9251
9252
9253
9254
9255
9256
9257
9258
9259
9260
9261
9262
9263
9264
9265
9266
9267
9268
9269
9270
9271
9272
9273
9274
9275
9276
9277
9278
9279
9280
9281
9282
9283
9284
9285
9286
9287
9288
9289
9290
9291
9292
9293
9294
9295
9296
9297
9298
9299
9300
9301
9302
9303
9304
9305
9306
9307
9308
9309
9310
9311
9312
9313
9314
9315
9316
9317
9318
9319
9320
9321
9322
9323
9324
9325
9326
9327
9328
9329
9330
9331
9332
9333
9334
9335
9336
9337
9338
9339
9340
9341
9342
9343
9344
9345
9346
9347
9348
9349
9350
9351
9352
9353
9354
9355
9356
9357
9358
9359
9360
9361
9362
9363
9364
9365
9366
9367
9368
9369
9370
9371
9372
9373
9374
9375
9376
9377
9378
9379
9380
9381
9382
9383
9384
9385
9386
9387
9388
9389
9390
9391
9392
9393
9394
9395
9396
9397
9398
9399
9400
9401
9402
9403
9404
9405
9406
9407
9408
9409
9410
9411
9412
9413
9414
9415
9416
9417
9418
9419
9420
9421
9422
9423
9424
9425
9426
9427
9428
9429
9430
9431
9432
9433
9434
9435
9436
9437
9438
9439
9440
9441
9442
9443
9444
9445
9446
9447
9448
9449
9450
9451
9452
9453
9454
9455
9456
9457
9458
9459
9460
9461
9462
9463
9464
9465
9466
9467
9468
9469
9470
9471
9472
9473
9474
9475
9476
9477
9478
9479
9480
9481
9482
9483
9484
9485
9486
9487
9488
9489
9490
9491
9492
9493
9494
9495
9496
9497
9498
9499
9500
9501
9502
9503
9504
9505
9506
9507
9508
9509
9510
9511
9512
9513
9514
9515
9516
9517
9518
9519
9520
9521
9522
9523
9524
9525
9526
9527
9528
9529
9530
9531
9532
9533
9534
9535
9536
9537
9538
9539
9540
9541
9542
9543
9544
9545
9546
9547
9548
9549
9550
9551
9552
9553
9554
9555
9556
9557
9558
9559
9560
9561
9562
9563
9564
9565
9566
9567
9568
9569
9570
9571
9572
9573
9574
9575
9576
9577
9578
9579
9580
9581
9582
9583
9584
9585
9586
9587
9588
9589
9590
9591
9592
9593
9594
9595
9596
9597
9598
9599
9600
9601
9602
9603
9604
9605
9606
9607
9608
9609
9610
9611
9612
9613
9614
9615
9616
9617
9618
9619
9620
9621
9622
9623
9624
9625
9626
9627
9628
9629
9630
9631
9632
9633
9634
9635
9636
9637
9638
9639
9640
9641
9642
9643
9644
9645
9646
9647
9648
9649
9650
9651
9652
9653
9654
9655
9656
9657
9658
9659
9660
9661
9662
9663
9664
9665
9666
9667
9668
9669
9670
9671
9672
9673
9674
9675
9676
9677
9678
9679
9680
9681
9682
9683
9684
9685
9686
9687
9688
9689
9690
9691
9692
9693
9694
9695
9696
9697
9698
9699
9700
9701
9702
9703
9704
9705
9706
9707
9708
9709
9710
9711
9712
9713
9714
9715
9716
9717
9718
9719
9720
9721
9722
9723
9724
9725
9726
9727
9728
9729
9730
9731
9732
9733
9734
9735
9736
9737
9738
9739
9740
9741
9742
9743
9744
9745
9746
9747
9748
9749
9750
9751
9752
9753
9754
9755
9756
9757
9758
9759
9760
9761
9762
9763
9764
9765
9766
9767
9768
9769
9770
9771
9772
9773
9774
9775
9776
9777
9778
9779
9780
9781
9782
9783
9784
9785
9786
9787
9788
9789
9790
9791
9792
9793
9794
9795
9796
9797
9798
9799
9800
9801
9802
9803
9804
9805
9806
9807
9808
9809
9810
9811
9812
9813
9814
9815
9816
9817
9818
9819
9820
9821
9822
9823
9824
9825
9826
9827
9828
9829
9830
9831
9832
9833
9834
9835
9836
9837
9838
9839
9840
9841
9842
9843
9844
9845
9846
9847
9848
9849
9850
9851
9852
9853
9854
9855
9856
9857
9858
9859
9860
9861
9862
9863
9864
9865
9866
9867
9868
9869
9870
9871
9872
9873
9874
9875
9876
9877
9878
9879
9880
9881
9882
9883
9884
9885
9886
9887
9888
9889
9890
9891
9892
9893
9894
9895
9896
9897
9898
9899
9900
9901
9902
9903
9904
9905
9906
9907
9908
9909
9910
9911
9912
9913
9914
9915
9916
9917
9918
9919
9920
9921
9922
9923
9924
9925
9926
9927
9928
9929
9930
9931
9932
9933
9934
9935
9936
9937
9938
9939
9940
9941
9942
9943
9944
9945
9946
9947
9948
9949
9950
9951
9952
9953
9954
9955
9956
9957
9958
9959
9960
9961
9962
9963
9964
9965
9966
9967
9968
9969
9970
9971
9972
9973
9974
9975
9976
9977
9978
9979
9980
9981
9982
9983
9984
9985
9986
9987
9988
9989
9990
9991
9992
9993
9994
9995
9996
9997
9998
9999
10000
10001
10002
10003
10004
10005
10006
10007
10008
10009
10010
10011
10012
10013
10014
10015
10016
10017
10018
10019
10020
10021
10022
10023
10024
10025
10026
10027
10028
10029
10030
10031
10032
10033
10034
10035
10036
10037
10038
10039
10040
10041
10042
10043
10044
10045
10046
10047
10048
10049
10050
10051
10052
10053
10054
10055
10056
10057
10058
10059
10060
10061
10062
10063
10064
10065
10066
10067
10068
10069
10070
10071
10072
10073
10074
10075
10076
10077
10078
10079
10080
10081
10082
10083
10084
10085
10086
10087
10088
10089
10090
10091
10092
10093
10094
10095
10096
10097
10098
10099
10100
10101
10102
10103
10104
10105
10106
10107
10108
10109
10110
10111
10112
10113
10114
10115
10116
10117
10118
10119
10120
10121
10122
10123
10124
10125
10126
10127
10128
10129
10130
10131
10132
10133
10134
10135
10136
10137
10138
10139
10140
10141
10142
10143
10144
10145
10146
10147
10148
10149
10150
10151
10152
10153
10154
10155
10156
10157
10158
10159
10160
10161
10162
10163
10164
10165
10166
10167
10168
10169
10170
10171
10172
10173
10174
10175
10176
10177
10178
10179
10180
10181
10182
10183
10184
10185
10186
10187
10188
10189
10190
10191
10192
10193
10194
10195
10196
10197
10198
10199
10200
10201
10202
10203
10204
10205
10206
10207
10208
10209
10210
10211
10212
10213
10214
10215
10216
10217
10218
10219
10220
10221
10222
10223
10224
10225
10226
10227
10228
10229
10230
10231
10232
10233
10234
10235
10236
10237
10238
10239
10240
10241
10242
10243
10244
10245
10246
10247
10248
10249
10250
10251
10252
10253
10254
10255
10256
10257
10258
10259
10260
10261
10262
10263
10264
10265
10266
10267
10268
10269
10270
10271
10272
10273
10274
10275
10276
10277
10278
10279
10280
10281
10282
10283
10284
10285
10286
10287
10288
10289
10290
10291
10292
10293
10294
10295
10296
10297
10298
10299
10300
10301
10302
10303
10304
10305
10306
10307
10308
10309
10310
10311
10312
10313
10314
10315
10316
10317
10318
10319
10320
10321
10322
10323
10324
10325
10326
10327
10328
10329
10330
10331
10332
10333
10334
10335
10336
10337
10338
10339
10340
10341
10342
10343
10344
10345
10346
10347
10348
10349
10350
10351
10352
10353
10354
10355
10356
10357
10358
10359
10360
10361
10362
10363
10364
10365
10366
10367
10368
10369
10370
10371
10372
10373
10374
10375
10376
10377
10378
10379
10380
10381
10382
10383
10384
10385
10386
10387
10388
10389
10390
10391
10392
10393
10394
10395
10396
10397
10398
10399
10400
10401
10402
10403
10404
10405
10406
10407
10408
10409
10410
10411
10412
10413
10414
10415
10416
10417
10418
10419
10420
10421
10422
10423
10424
10425
10426
10427
10428
10429
10430
10431
10432
10433
10434
10435
10436
10437
10438
10439
10440
10441
10442
10443
10444
10445
10446
10447
10448
10449
10450
10451
10452
10453
10454
10455
10456
10457
10458
10459
10460
10461
10462
10463
10464
10465
10466
10467
10468
10469
10470
10471
10472
10473
10474
10475
10476
10477
10478
10479
10480
10481
10482
10483
10484
10485
10486
10487
10488
10489
10490
10491
10492
10493
10494
10495
10496
10497
10498
10499
10500
10501
10502
10503
10504
10505
10506
10507
10508
10509
10510
10511
10512
10513
10514
10515
10516
10517
10518
10519
10520
10521
10522
10523
10524
10525
10526
10527
10528
10529
10530
10531
10532
10533
10534
10535
10536
10537
10538
10539
10540
10541
10542
10543
10544
10545
10546
10547
10548
10549
10550
10551
10552
10553
10554
10555
10556
10557
10558
10559
10560
10561
10562
10563
10564
10565
10566
10567
10568
10569
10570
10571
10572
10573
10574
10575
10576
10577
10578
10579
10580
10581
10582
10583
10584
10585
10586
10587
10588
10589
10590
10591
10592
10593
10594
10595
10596
10597
10598
10599
10600
10601
10602
10603
10604
10605
10606
10607
10608
10609
10610
10611
10612
10613
10614
10615
10616
10617
10618
10619
10620
10621
10622
10623
10624
10625
10626
10627
10628
10629
10630
10631
10632
10633
10634
10635
10636
10637
10638
10639
10640
10641
10642
10643
10644
10645
10646
10647
10648
10649
10650
10651
10652
10653
10654
10655
10656
10657
10658
10659
10660
10661
10662
10663
10664
10665
10666
10667
10668
10669
10670
10671
10672
10673
10674
10675
10676
10677
10678
10679
10680
10681
10682
10683
10684
10685
10686
10687
10688
10689
10690
10691
10692
10693
10694
10695
10696
10697
10698
10699
10700
10701
10702
10703
10704
10705
10706
10707
10708
10709
10710
10711
10712
10713
10714
10715
10716
10717
10718
10719
10720
10721
10722
10723
10724
10725
10726
10727
10728
10729
10730
10731
10732
10733
10734
10735
10736
10737
10738
10739
10740
10741
10742
10743
10744
10745
10746
10747
10748
10749
10750
10751
10752
10753
10754
10755
10756
10757
10758
10759
10760
10761
10762
10763
10764
10765
10766
10767
10768
10769
10770
10771
10772
10773
10774
10775
10776
10777
10778
10779
10780
10781
10782
10783
10784
10785
10786
10787
10788
10789
10790
10791
10792
10793
10794
10795
10796
10797
10798
10799
10800
10801
10802
10803
10804
10805
10806
10807
10808
10809
10810
10811
10812
10813
10814
10815
10816
10817
10818
10819
10820
10821
10822
10823
10824
10825
10826
10827
10828
10829
10830
10831
10832
10833
10834
10835
10836
10837
10838
10839
10840
10841
10842
10843
10844
10845
10846
10847
10848
10849
10850
10851
10852
10853
10854
10855
10856
10857
10858
10859
10860
10861
10862
10863
10864
10865
10866
10867
10868
10869
10870
10871
10872
10873
10874
10875
10876
10877
10878
10879
10880
10881
10882
10883
10884
10885
10886
10887
10888
10889
10890
10891
10892
10893
10894
10895
10896
10897
10898
10899
10900
10901
10902
10903
10904
10905
10906
10907
10908
10909
10910
10911
10912
10913
10914
10915
10916
10917
10918
10919
10920
10921
10922
10923
10924
10925
10926
10927
10928
10929
10930
10931
10932
10933
10934
10935
10936
10937
10938
10939
10940
10941
10942
10943
10944
10945
10946
10947
10948
10949
10950
10951
10952
10953
10954
10955
10956
10957
10958
10959
10960
10961
10962
10963
10964
10965
10966
10967
10968
10969
10970
10971
10972
10973
10974
10975
10976
10977
10978
10979
10980
10981
10982
10983
10984
10985
10986
10987
10988
10989
10990
10991
10992
10993
10994
10995
10996
10997
10998
10999
11000
11001
11002
11003
11004
11005
11006
11007
11008
11009
11010
11011
11012
11013
11014
11015
11016
11017
11018
11019
11020
11021
11022
11023
11024
11025
11026
11027
11028
11029
11030
11031
11032
11033
11034
11035
11036
11037
11038
11039
11040
11041
11042
11043
11044
11045
11046
11047
11048
11049
11050
11051
11052
11053
11054
11055
11056
11057
11058
11059
11060
11061
11062
11063
11064
11065
11066
11067
11068
11069
11070
11071
11072
11073
11074
11075
11076
11077
11078
11079
11080
11081
11082
11083
11084
11085
11086
11087
11088
11089
11090
11091
11092
11093
11094
11095
11096
11097
11098
11099
11100
11101
11102
11103
11104
11105
11106
11107
11108
11109
11110
11111
11112
11113
11114
11115
11116
11117
11118
11119
11120
11121
11122
11123
11124
11125
11126
11127
11128
11129
11130
11131
11132
11133
11134
11135
11136
11137
11138
11139
11140
11141
11142
11143
11144
11145
11146
11147
11148
11149
11150
11151
11152
11153
11154
11155
11156
11157
11158
11159
11160
11161
11162
11163
11164
11165
11166
11167
11168
11169
11170
11171
11172
11173
11174
11175
11176
11177
11178
11179
11180
11181
11182
11183
11184
11185
11186
11187
11188
11189
11190
11191
11192
11193
11194
11195
11196
11197
11198
11199
11200
11201
11202
11203
11204
11205
11206
11207
11208
11209
11210
11211
11212
11213
11214
11215
11216
11217
11218
11219
11220
11221
11222
11223
11224
11225
11226
11227
11228
11229
11230
11231
11232
11233
11234
11235
11236
11237
11238
11239
11240
11241
11242
11243
11244
11245
11246
11247
11248
11249
11250
11251
11252
11253
11254
11255
11256
11257
11258
11259
11260
11261
11262
11263
11264
11265
11266
11267
11268
11269
11270
11271
11272
11273
11274
11275
11276
11277
11278
11279
11280
11281
11282
11283
11284
11285
11286
11287
11288
11289
11290
11291
11292
11293
11294
11295
11296
11297
11298
11299
11300
11301
11302
11303
11304
11305
11306
11307
11308
11309
11310
11311
11312
11313
11314
11315
11316
11317
11318
11319
11320
11321
11322
11323
11324
11325
11326
11327
11328
11329
11330
11331
11332
11333
11334
11335
11336
11337
11338
11339
11340
11341
11342
11343
11344
11345
11346
11347
11348
11349
11350
11351
11352
11353
11354
11355
11356
11357
11358
11359
11360
11361
11362
11363
11364
11365
11366
11367
11368
11369
11370
11371
11372
11373
11374
11375
11376
11377
11378
11379
11380
11381
11382
11383
11384
11385
11386
11387
11388
11389
11390
11391
11392
11393
11394
11395
11396
11397
11398
11399
11400
11401
11402
11403
11404
11405
11406
11407
11408
11409
11410
11411
11412
11413
11414
11415
11416
11417
11418
11419
11420
11421
11422
11423
11424
11425
11426
11427
11428
11429
11430
11431
11432
11433
11434
11435
11436
11437
11438
11439
11440
11441
11442
11443
11444
11445
11446
11447
11448
11449
11450
11451
11452
11453
11454
11455
11456
11457
11458
11459
11460
11461
11462
11463
11464
11465
11466
11467
11468
11469
11470
11471
11472
11473
11474
11475
11476
11477
11478
11479
11480
11481
11482
11483
11484
11485
11486
11487
11488
11489
11490
11491
11492
11493
11494
11495
11496
11497
11498
11499
11500
11501
11502
11503
11504
11505
11506
11507
11508
11509
11510
11511
11512
11513
11514
11515
11516
11517
11518
11519
11520
11521
11522
11523
11524
11525
11526
11527
11528
11529
11530
11531
11532
11533
11534
11535
11536
11537
11538
11539
11540
11541
11542
11543
11544
11545
11546
11547
11548
11549
11550
11551
11552
11553
11554
11555
11556
11557
11558
11559
11560
11561
11562
11563
11564
11565
11566
11567
11568
11569
11570
11571
11572
11573
11574
11575
11576
11577
11578
11579
11580
11581
11582
11583
11584
11585
11586
11587
11588
11589
11590
11591
11592
11593
11594
11595
11596
11597
11598
11599
11600
11601
11602
11603
11604
11605
11606
11607
11608
11609
11610
11611
11612
11613
11614
11615
11616
11617
11618
11619
11620
11621
11622
11623
11624
11625
11626
11627
11628
11629
11630
11631
11632
11633
11634
11635
11636
11637
11638
11639
11640
11641
11642
11643
11644
11645
11646
11647
11648
11649
11650
11651
11652
11653
11654
11655
11656
11657
11658
11659
11660
11661
11662
11663
11664
11665
11666
11667
11668
11669
11670
11671
11672
11673
11674
11675
11676
11677
11678
11679
11680
11681
11682
11683
11684
11685
11686
11687
11688
11689
11690
11691
11692
11693
11694
11695
11696
11697
11698
11699
11700
11701
11702
11703
11704
11705
11706
11707
11708
11709
11710
11711
11712
11713
11714
11715
11716
11717
11718
11719
11720
11721
11722
11723
11724
11725
11726
11727
11728
11729
11730
11731
11732
11733
11734
11735
11736
11737
11738
11739
11740
11741
11742
11743
11744
11745
11746
11747
11748
11749
11750
11751
11752
11753
11754
11755
11756
11757
11758
11759
11760
11761
11762
11763
11764
11765
11766
11767
11768
11769
11770
11771
11772
11773
11774
11775
11776
11777
11778
11779
11780
11781
11782
11783
11784
11785
11786
11787
11788
11789
11790
11791
11792
11793
11794
11795
11796
11797
11798
11799
11800
11801
11802
11803
11804
11805
11806
11807
11808
11809
11810
11811
11812
11813
11814
11815
11816
11817
11818
11819
11820
11821
11822
11823
11824
11825
11826
11827
11828
11829
11830
11831
11832
11833
11834
11835
11836
11837
11838
11839
11840
11841
11842
11843
11844
11845
11846
11847
11848
11849
11850
11851
11852
11853
11854
11855
11856
11857
11858
11859
11860
11861
11862
11863
11864
11865
11866
11867
11868
11869
11870
11871
11872
11873
11874
11875
11876
11877
11878
11879
11880
11881
11882
11883
11884
11885
11886
11887
11888
11889
11890
11891
11892
11893
11894
11895
11896
11897
11898
11899
11900
11901
11902
11903
11904
11905
11906
11907
11908
11909
11910
11911
11912
11913
11914
11915
11916
11917
11918
11919
11920
11921
11922
11923
11924
11925
11926
11927
11928
11929
11930
11931
11932
11933
11934
11935
11936
11937
11938
11939
11940
11941
11942
11943
11944
11945
11946
11947
11948
11949
11950
11951
11952
11953
11954
11955
11956
11957
11958
11959
11960
11961
11962
11963
11964
11965
11966
11967
11968
11969
11970
11971
11972
11973
11974
11975
11976
11977
11978
11979
11980
11981
11982
11983
11984
11985
11986
11987
11988
11989
11990
11991
11992
11993
11994
11995
11996
11997
11998
11999
12000
12001
12002
12003
12004
12005
12006
12007
12008
12009
12010
12011
12012
12013
12014
12015
12016
12017
12018
12019
12020
12021
12022
12023
12024
12025
12026
12027
12028
12029
12030
12031
12032
12033
12034
12035
12036
12037
12038
12039
12040
12041
12042
12043
12044
12045
12046
12047
12048
12049
12050
12051
12052
12053
12054
12055
12056
12057
12058
12059
12060
12061
12062
12063
12064
12065
12066
12067
12068
12069
12070
12071
12072
12073
12074
12075
12076
12077
12078
12079
12080
12081
12082
12083
12084
12085
12086
12087
12088
12089
12090
12091
12092
12093
12094
12095
12096
12097
12098
12099
12100
12101
12102
12103
12104
12105
12106
12107
12108
12109
12110
12111
12112
12113
12114
12115
12116
12117
12118
12119
12120
12121
12122
12123
12124
12125
12126
12127
12128
12129
12130
12131
12132
12133
12134
12135
12136
12137
12138
12139
12140
12141
12142
12143
12144
12145
12146
12147
12148
12149
12150
12151
12152
12153
12154
12155
12156
12157
12158
12159
12160
12161
12162
12163
12164
12165
12166
12167
12168
12169
12170
12171
12172
12173
12174
12175
12176
12177
12178
12179
12180
12181
12182
12183
12184
12185
12186
12187
12188
12189
12190
12191
12192
12193
12194
12195
12196
12197
12198
12199
12200
12201
12202
12203
12204
12205
12206
12207
12208
12209
12210
12211
12212
12213
12214
12215
12216
12217
12218
12219
12220
12221
12222
12223
12224
12225
12226
12227
12228
12229
12230
12231
12232
12233
12234
12235
12236
12237
12238
12239
12240
12241
12242
12243
12244
12245
12246
12247
12248
12249
12250
12251
12252
12253
12254
12255
12256
12257
12258
12259
12260
12261
12262
12263
12264
12265
12266
12267
12268
12269
12270
12271
12272
12273
12274
12275
12276
12277
12278
12279
12280
12281
12282
12283
12284
12285
12286
12287
12288
12289
12290
12291
12292
12293
12294
12295
12296
12297
12298
12299
12300
12301
12302
12303
12304
12305
12306
12307
12308
12309
12310
12311
12312
12313
12314
12315
12316
12317
12318
12319
12320
12321
12322
12323
12324
12325
12326
12327
12328
12329
12330
12331
12332
12333
12334
12335
12336
12337
12338
12339
12340
12341
12342
12343
12344
12345
12346
12347
12348
12349
12350
12351
12352
12353
12354
12355
12356
12357
12358
12359
12360
12361
12362
12363
12364
12365
12366
12367
12368
12369
12370
12371
12372
12373
12374
12375
12376
12377
12378
12379
12380
12381
12382
12383
12384
12385
12386
12387
12388
12389
12390
12391
12392
12393
12394
12395
12396
12397
12398
12399
12400
12401
12402
12403
12404
12405
12406
12407
12408
12409
12410
12411
12412
12413
12414
12415
12416
12417
12418
12419
12420
12421
12422
12423
12424
12425
12426
12427
12428
12429
12430
12431
12432
12433
12434
12435
12436
12437
12438
12439
12440
12441
12442
12443
12444
12445
12446
12447
12448
12449
12450
12451
12452
12453
12454
12455
12456
12457
12458
12459
12460
12461
12462
12463
12464
12465
12466
12467
12468
12469
12470
12471
12472
12473
12474
12475
12476
12477
12478
12479
12480
12481
12482
12483
12484
12485
12486
12487
12488
12489
12490
12491
12492
12493
12494
12495
12496
12497
12498
12499
12500
12501
12502
12503
12504
12505
12506
12507
12508
12509
12510
12511
12512
12513
12514
12515
12516
12517
12518
12519
12520
12521
12522
12523
12524
12525
12526
12527
12528
12529
12530
12531
12532
12533
12534
12535
12536
12537
12538
12539
12540
12541
12542
12543
12544
12545
12546
12547
12548
12549
12550
12551
12552
12553
12554
12555
12556
12557
12558
12559
12560
12561
12562
12563
12564
12565
12566
12567
12568
12569
12570
12571
12572
12573
12574
12575
12576
12577
12578
12579
12580
12581
12582
12583
12584
12585
12586
12587
12588
12589
12590
12591
12592
12593
12594
12595
12596
12597
12598
12599
12600
12601
12602
12603
12604
12605
12606
12607
12608
12609
12610
12611
12612
12613
12614
12615
12616
12617
12618
12619
12620
12621
12622
12623
12624
12625
12626
12627
12628
12629
12630
12631
12632
12633
12634
12635
12636
12637
12638
12639
12640
12641
12642
12643
12644
12645
12646
12647
12648
12649
12650
12651
12652
12653
12654
12655
12656
12657
12658
12659
12660
12661
12662
12663
12664
12665
12666
12667
12668
12669
12670
12671
12672
12673
12674
12675
12676
12677
12678
12679
12680
12681
12682
12683
12684
12685
12686
12687
12688
12689
12690
12691
12692
12693
12694
12695
12696
12697
12698
12699
12700
12701
12702
12703
12704
12705
12706
12707
12708
12709
12710
12711
12712
12713
12714
12715
12716
12717
12718
12719
12720
12721
12722
12723
12724
12725
12726
12727
12728
12729
12730
12731
12732
12733
12734
12735
12736
12737
12738
12739
12740
12741
12742
12743
12744
12745
12746
12747
12748
12749
12750
12751
12752
12753
12754
12755
12756
12757
12758
12759
12760
12761
12762
12763
12764
12765
12766
12767
12768
12769
12770
12771
12772
12773
12774
12775
12776
12777
12778
12779
12780
12781
12782
12783
12784
12785
12786
12787
12788
12789
12790
12791
12792
12793
12794
12795
12796
12797
12798
12799
12800
12801
12802
12803
12804
12805
12806
12807
12808
12809
12810
12811
12812
12813
12814
12815
12816
12817
12818
12819
12820
12821
12822
12823
12824
12825
12826
12827
12828
12829
12830
12831
12832
12833
12834
12835
12836
12837
12838
12839
12840
12841
12842
12843
12844
12845
12846
12847
12848
12849
12850
12851
12852
12853
12854
12855
12856
12857
12858
12859
12860
12861
12862
12863
12864
12865
12866
12867
12868
12869
12870
12871
12872
12873
12874
12875
12876
12877
12878
12879
12880
12881
12882
12883
12884
12885
12886
12887
12888
12889
12890
12891
12892
12893
12894
12895
12896
12897
12898
12899
12900
12901
12902
12903
12904
12905
12906
12907
12908
12909
12910
12911
12912
12913
12914
12915
12916
12917
12918
12919
12920
12921
12922
12923
12924
12925
12926
12927
12928
12929
12930
12931
12932
12933
12934
12935
12936
12937
12938
12939
12940
12941
12942
12943
12944
12945
12946
12947
12948
12949
12950
12951
12952
12953
12954
12955
12956
12957
12958
12959
12960
12961
12962
12963
12964
12965
12966
12967
12968
12969
12970
12971
12972
12973
12974
12975
12976
12977
12978
12979
12980
12981
12982
12983
12984
12985
12986
12987
12988
12989
12990
12991
12992
12993
12994
12995
12996
12997
12998
12999
13000
13001
13002
13003
13004
13005
13006
13007
13008
13009
13010
13011
13012
13013
13014
13015
13016
13017
13018
13019
13020
13021
13022
13023
13024
13025
13026
13027
13028
13029
13030
13031
13032
13033
13034
13035
13036
13037
13038
13039
13040
13041
13042
13043
13044
13045
13046
13047
13048
13049
13050
13051
13052
13053
13054
13055
13056
13057
13058
13059
13060
13061
13062
13063
13064
13065
13066
13067
13068
13069
13070
13071
13072
13073
13074
13075
13076
13077
13078
13079
13080
13081
13082
13083
13084
13085
13086
13087
13088
13089
13090
13091
13092
13093
13094
13095
13096
13097
13098
13099
13100
13101
13102
13103
13104
13105
13106
13107
13108
13109
13110
13111
13112
13113
13114
13115
13116
13117
13118
13119
13120
13121
13122
13123
13124
13125
13126
13127
13128
13129
13130
13131
13132
13133
13134
13135
13136
13137
13138
13139
13140
13141
13142
13143
13144
13145
13146
13147
13148
13149
13150
13151
13152
13153
13154
13155
13156
13157
13158
13159
13160
13161
13162
13163
13164
13165
13166
13167
13168
13169
13170
13171
13172
13173
13174
13175
13176
13177
13178
13179
13180
13181
13182
13183
13184
13185
13186
13187
13188
13189
13190
13191
13192
13193
13194
13195
13196
13197
13198
13199
13200
13201
13202
13203
13204
13205
13206
13207
13208
13209
13210
13211
13212
13213
13214
13215
13216
13217
13218
13219
13220
13221
13222
13223
13224
13225
13226
13227
13228
13229
13230
13231
13232
13233
13234
13235
13236
13237
13238
13239
13240
13241
13242
13243
13244
13245
13246
13247
13248
13249
13250
13251
13252
13253
13254
13255
13256
13257
13258
13259
13260
13261
13262
13263
13264
13265
13266
13267
13268
13269
13270
13271
13272
13273
13274
13275
13276
13277
13278
13279
13280
13281
13282
13283
13284
13285
13286
13287
13288
13289
13290
13291
13292
13293
13294
13295
13296
13297
13298
13299
13300
13301
13302
13303
13304
13305
13306
13307
13308
13309
13310
13311
13312
13313
13314
13315
13316
13317
13318
13319
13320
13321
13322
13323
13324
13325
13326
13327
13328
13329
13330
13331
13332
13333
13334
13335
13336
13337
13338
13339
13340
13341
13342
13343
13344
13345
13346
13347
13348
13349
13350
13351
13352
13353
13354
13355
13356
13357
13358
13359
13360
13361
13362
13363
13364
13365
13366
13367
13368
13369
13370
13371
13372
13373
13374
13375
13376
13377
13378
13379
13380
13381
13382
13383
13384
13385
13386
13387
13388
13389
13390
13391
13392
13393
13394
13395
13396
13397
13398
13399
13400
13401
13402
13403
13404
13405
13406
13407
13408
13409
13410
13411
13412
13413
13414
13415
13416
13417
13418
13419
13420
13421
13422
13423
13424
13425
13426
13427
13428
13429
13430
13431
13432
13433
13434
13435
13436
13437
13438
13439
13440
13441
13442
13443
13444
13445
13446
13447
13448
13449
13450
13451
13452
13453
13454
13455
13456
13457
13458
13459
13460
13461
13462
13463
13464
13465
13466
13467
13468
13469
13470
13471
13472
13473
13474
13475
13476
13477
13478
13479
13480
13481
13482
13483
13484
13485
13486
13487
13488
13489
13490
13491
13492
13493
13494
13495
13496
13497
13498
13499
13500
13501
13502
13503
13504
13505
13506
13507
13508
13509
13510
13511
13512
13513
13514
13515
13516
13517
13518
13519
13520
13521
13522
13523
13524
13525
13526
13527
13528
13529
13530
13531
13532
13533
13534
13535
13536
13537
13538
13539
13540
13541
13542
13543
13544
13545
13546
13547
13548
13549
13550
13551
13552
13553
13554
13555
13556
13557
13558
13559
13560
13561
13562
13563
13564
13565
13566
13567
13568
13569
13570
13571
13572
13573
13574
13575
13576
13577
13578
13579
13580
13581
13582
13583
13584
13585
13586
13587
13588
13589
13590
13591
13592
13593
13594
13595
13596
13597
13598
13599
13600
13601
13602
13603
13604
13605
13606
13607
13608
13609
13610
13611
13612
13613
13614
13615
13616
13617
13618
13619
13620
13621
13622
13623
13624
13625
13626
13627
13628
13629
13630
13631
13632
13633
13634
13635
13636
13637
13638
13639
13640
13641
13642
13643
13644
13645
13646
13647
13648
13649
13650
13651
13652
13653
13654
13655
13656
13657
13658
13659
13660
13661
13662
13663
13664
13665
13666
13667
13668
13669
13670
13671
13672
13673
13674
13675
13676
13677
13678
13679
13680
13681
13682
13683
13684
13685
13686
13687
13688
13689
13690
13691
13692
13693
13694
13695
13696
13697
13698
13699
13700
13701
13702
13703
13704
13705
13706
13707
13708
13709
13710
13711
13712
13713
13714
13715
13716
13717
13718
13719
13720
13721
13722
13723
13724
13725
13726
13727
13728
13729
13730
13731
13732
13733
13734
13735
13736
13737
13738
13739
13740
13741
13742
13743
13744
13745
13746
13747
13748
13749
13750
13751
13752
13753
13754
13755
13756
13757
13758
13759
13760
13761
13762
13763
13764
13765
13766
13767
13768
13769
13770
13771
13772
13773
13774
13775
13776
13777
13778
13779
13780
13781
13782
13783
13784
13785
13786
13787
13788
13789
13790
13791
13792
13793
13794
13795
13796
13797
13798
13799
13800
13801
13802
13803
13804
13805
13806
13807
13808
13809
13810
13811
13812
13813
13814
13815
13816
13817
13818
13819
13820
13821
13822
13823
13824
13825
13826
13827
13828
13829
13830
13831
13832
13833
13834
13835
13836
13837
13838
13839
13840
13841
13842
13843
13844
13845
13846
13847
13848
13849
13850
13851
13852
13853
13854
13855
13856
13857
13858
13859
13860
13861
13862
13863
13864
13865
13866
13867
13868
13869
13870
13871
13872
13873
13874
13875
13876
13877
13878
13879
13880
13881
13882
13883
13884
13885
13886
13887
13888
13889
13890
13891
13892
13893
13894
13895
13896
13897
13898
13899
13900
13901
13902
13903
13904
13905
13906
13907
13908
13909
13910
13911
13912
13913
13914
13915
13916
13917
13918
13919
13920
13921
13922
13923
13924
13925
13926
13927
13928
13929
13930
13931
13932
13933
13934
13935
13936
13937
13938
13939
13940
13941
13942
13943
13944
13945
13946
13947
13948
13949
13950
13951
13952
13953
13954
13955
13956
13957
13958
13959
13960
13961
13962
13963
13964
13965
13966
13967
13968
13969
13970
13971
13972
13973
13974
13975
13976
13977
13978
13979
13980
13981
13982
13983
13984
13985
13986
13987
13988
13989
13990
13991
13992
13993
13994
13995
13996
13997
13998
13999
14000
14001
14002
14003
14004
14005
14006
14007
14008
14009
14010
14011
14012
14013
14014
14015
14016
14017
14018
14019
14020
14021
14022
14023
14024
14025
14026
14027
14028
14029
14030
14031
14032
14033
14034
14035
14036
14037
14038
14039
14040
14041
14042
14043
14044
14045
14046
14047
14048
14049
14050
14051
14052
14053
14054
14055
14056
14057
14058
14059
14060
14061
14062
14063
14064
14065
14066
14067
14068
14069
14070
14071
14072
14073
14074
14075
14076
14077
14078
14079
14080
14081
14082
14083
14084
14085
14086
14087
14088
14089
14090
14091
14092
14093
14094
14095
14096
14097
14098
14099
14100
14101
14102
14103
14104
14105
14106
14107
14108
14109
14110
14111
14112
14113
14114
14115
14116
14117
14118
14119
14120
14121
14122
14123
14124
14125
14126
14127
14128
14129
14130
14131
14132
14133
14134
14135
14136
14137
14138
14139
14140
14141
14142
14143
14144
14145
14146
14147
14148
14149
14150
14151
14152
14153
14154
14155
14156
14157
14158
14159
14160
14161
14162
14163
14164
14165
14166
14167
14168
14169
14170
14171
14172
14173
14174
14175
14176
14177
14178
14179
14180
14181
14182
14183
14184
14185
14186
14187
14188
14189
14190
14191
14192
14193
14194
14195
14196
14197
14198
14199
14200
14201
14202
14203
14204
14205
14206
14207
14208
14209
14210
14211
14212
14213
14214
14215
14216
14217
14218
14219
14220
14221
14222
14223
14224
14225
14226
14227
14228
14229
14230
14231
14232
14233
14234
14235
14236
14237
14238
14239
14240
14241
14242
14243
14244
14245
14246
14247
14248
14249
14250
14251
14252
14253
14254
14255
14256
14257
14258
14259
14260
14261
14262
14263
14264
14265
14266
14267
14268
14269
14270
14271
14272
14273
14274
14275
14276
14277
14278
14279
14280
14281
14282
14283
14284
14285
14286
14287
14288
14289
14290
14291
14292
14293
14294
14295
14296
14297
14298
14299
14300
14301
14302
14303
14304
14305
14306
14307
14308
14309
14310
14311
14312
14313
14314
14315
14316
14317
14318
14319
14320
14321
14322
14323
14324
14325
14326
14327
14328
14329
14330
14331
14332
14333
14334
14335
14336
14337
14338
14339
14340
14341
14342
14343
14344
14345
14346
14347
14348
14349
14350
14351
14352
14353
14354
14355
14356
14357
14358
14359
14360
14361
14362
14363
14364
14365
14366
14367
14368
14369
14370
14371
14372
14373
14374
14375
14376
14377
14378
14379
14380
14381
14382
14383
14384
14385
14386
14387
14388
14389
14390
14391
14392
14393
14394
14395
14396
14397
14398
14399
14400
14401
14402
14403
14404
14405
14406
14407
14408
14409
14410
14411
14412
14413
14414
14415
14416
14417
14418
14419
14420
14421
14422
14423
14424
14425
14426
14427
14428
14429
14430
14431
14432
14433
14434
14435
14436
14437
14438
14439
14440
14441
14442
14443
14444
14445
14446
14447
14448
14449
14450
14451
14452
14453
14454
14455
14456
14457
14458
14459
14460
14461
14462
14463
14464
14465
14466
14467
14468
14469
14470
14471
14472
14473
14474
14475
14476
14477
14478
14479
14480
14481
14482
14483
14484
14485
14486
14487
14488
14489
14490
14491
14492
14493
14494
14495
14496
14497
14498
14499
14500
14501
14502
14503
14504
14505
14506
14507
14508
14509
14510
14511
14512
14513
14514
14515
14516
14517
14518
14519
14520
14521
14522
14523
14524
14525
14526
14527
14528
14529
14530
14531
14532
14533
14534
14535
14536
14537
14538
14539
14540
14541
14542
14543
14544
14545
14546
14547
14548
14549
14550
14551
14552
14553
14554
14555
14556
14557
14558
14559
14560
14561
14562
14563
14564
14565
14566
14567
14568
14569
14570
14571
14572
14573
14574
14575
14576
14577
14578
14579
14580
14581
14582
14583
14584
14585
14586
14587
14588
14589
14590
14591
14592
14593
14594
14595
14596
14597
14598
14599
14600
14601
14602
14603
14604
14605
14606
14607
14608
14609
14610
14611
14612
14613
14614
14615
14616
14617
14618
14619
14620
14621
14622
14623
14624
14625
14626
14627
14628
14629
14630
14631
14632
14633
14634
14635
14636
14637
14638
14639
14640
14641
14642
14643
14644
14645
14646
14647
14648
14649
14650
14651
14652
14653
14654
14655
14656
14657
14658
14659
14660
14661
14662
14663
14664
14665
14666
14667
14668
14669
14670
14671
14672
14673
14674
14675
14676
14677
14678
14679
14680
14681
14682
14683
14684
14685
14686
14687
14688
14689
14690
14691
14692
14693
14694
14695
14696
14697
14698
14699
14700
14701
14702
14703
14704
14705
14706
14707
14708
14709
14710
14711
14712
14713
14714
14715
14716
14717
14718
14719
14720
14721
14722
14723
14724
14725
14726
14727
14728
14729
14730
14731
14732
14733
14734
14735
14736
14737
14738
14739
14740
14741
14742
14743
14744
14745
14746
14747
14748
14749
14750
14751
14752
14753
14754
14755
14756
14757
14758
14759
14760
14761
14762
14763
14764
14765
14766
14767
14768
14769
14770
14771
14772
14773
14774
14775
14776
14777
14778
14779
14780
14781
14782
14783
14784
14785
14786
14787
14788
14789
14790
14791
14792
14793
14794
14795
14796
14797
14798
14799
14800
14801
14802
14803
14804
14805
14806
14807
14808
14809
14810
14811
14812
14813
14814
14815
14816
14817
14818
14819
14820
14821
14822
14823
14824
14825
14826
14827
14828
14829
14830
14831
14832
14833
14834
14835
14836
14837
14838
14839
14840
14841
14842
14843
14844
14845
14846
14847
14848
14849
14850
14851
14852
14853
14854
14855
14856
14857
14858
14859
14860
14861
14862
14863
14864
14865
14866
14867
14868
14869
14870
14871
14872
14873
14874
14875
14876
14877
14878
14879
14880
14881
14882
14883
14884
14885
14886
14887
14888
14889
14890
14891
14892
14893
14894
14895
14896
14897
14898
14899
14900
14901
14902
14903
14904
14905
14906
14907
14908
14909
14910
14911
14912
14913
14914
14915
14916
14917
14918
14919
14920
14921
14922
14923
14924
14925
14926
14927
14928
14929
14930
14931
14932
14933
14934
14935
14936
14937
14938
14939
14940
14941
14942
14943
14944
14945
14946
14947
14948
14949
14950
14951
14952
14953
14954
14955
14956
14957
14958
14959
14960
14961
14962
14963
14964
14965
14966
14967
14968
14969
14970
14971
14972
14973
14974
14975
14976
14977
14978
14979
14980
14981
14982
14983
14984
14985
14986
14987
14988
14989
14990
14991
14992
14993
14994
14995
14996
14997
14998
14999
15000
15001
15002
15003
15004
15005
15006
15007
15008
15009
15010
15011
15012
15013
15014
15015
15016
15017
15018
15019
15020
15021
15022
15023
15024
15025
15026
15027
15028
15029
15030
15031
15032
15033
15034
15035
15036
15037
15038
15039
15040
15041
15042
15043
15044
15045
15046
15047
15048
15049
15050
15051
15052
15053
15054
15055
15056
15057
15058
15059
15060
15061
15062
15063
15064
15065
15066
15067
15068
15069
15070
15071
15072
15073
15074
15075
15076
15077
15078
15079
15080
15081
15082
15083
15084
15085
15086
15087
15088
15089
15090
15091
15092
15093
15094
15095
15096
15097
15098
15099
15100
15101
15102
15103
15104
15105
15106
15107
15108
15109
15110
15111
15112
15113
15114
15115
15116
15117
15118
15119
15120
15121
15122
15123
15124
15125
15126
15127
15128
15129
15130
15131
15132
15133
15134
15135
15136
15137
15138
15139
15140
15141
15142
15143
15144
15145
15146
15147
15148
15149
15150
15151
15152
15153
15154
15155
15156
15157
15158
15159
15160
15161
15162
15163
15164
15165
15166
15167
15168
15169
15170
15171
15172
15173
15174
15175
15176
15177
15178
15179
15180
15181
15182
15183
15184
15185
15186
15187
15188
15189
15190
15191
15192
15193
15194
15195
15196
15197
15198
15199
15200
15201
15202
15203
15204
15205
15206
15207
15208
15209
15210
15211
15212
15213
15214
15215
15216
15217
15218
15219
15220
15221
15222
15223
15224
15225
15226
15227
15228
15229
15230
15231
15232
15233
15234
15235
15236
15237
15238
15239
15240
15241
15242
15243
15244
15245
15246
15247
15248
15249
15250
15251
15252
15253
15254
15255
15256
15257
15258
15259
15260
15261
15262
15263
15264
15265
15266
15267
15268
15269
15270
15271
15272
15273
15274
15275
15276
15277
15278
15279
15280
15281
15282
15283
15284
15285
15286
15287
15288
15289
15290
15291
15292
15293
15294
15295
15296
15297
15298
15299
15300
15301
15302
15303
15304
15305
15306
15307
15308
15309
15310
15311
15312
15313
15314
15315
15316
15317
15318
15319
15320
15321
15322
15323
15324
15325
15326
15327
15328
15329
15330
15331
15332
15333
15334
15335
15336
15337
15338
15339
15340
15341
15342
15343
15344
15345
15346
15347
15348
15349
15350
15351
15352
15353
15354
15355
15356
15357
15358
15359
15360
15361
15362
15363
15364
15365
15366
15367
15368
15369
15370
15371
15372
15373
15374
15375
15376
15377
15378
15379
15380
15381
15382
15383
15384
15385
15386
15387
15388
15389
15390
15391
15392
15393
15394
15395
15396
15397
15398
15399
15400
15401
15402
15403
15404
15405
15406
15407
15408
15409
15410
15411
15412
15413
15414
15415
15416
15417
15418
15419
15420
15421
15422
15423
15424
15425
15426
15427
15428
15429
15430
15431
15432
15433
15434
15435
15436
15437
15438
15439
15440
15441
15442
15443
15444
15445
15446
15447
15448
15449
15450
15451
15452
15453
15454
15455
15456
15457
15458
15459
15460
15461
15462
15463
15464
15465
15466
15467
15468
15469
15470
15471
15472
15473
15474
15475
15476
15477
15478
15479
15480
15481
15482
15483
15484
15485
15486
15487
15488
15489
15490
15491
15492
15493
15494
15495
15496
15497
15498
15499
15500
15501
15502
15503
15504
15505
15506
15507
15508
15509
15510
15511
15512
15513
15514
15515
15516
15517
15518
15519
15520
15521
15522
15523
15524
15525
15526
15527
15528
15529
15530
15531
15532
15533
15534
15535
15536
15537
15538
15539
15540
15541
15542
15543
15544
15545
15546
15547
15548
15549
15550
15551
15552
15553
15554
15555
15556
15557
15558
15559
15560
15561
15562
15563
15564
15565
15566
15567
15568
15569
15570
15571
15572
15573
15574
15575
15576
15577
15578
15579
15580
15581
15582
15583
15584
15585
15586
15587
15588
15589
15590
15591
15592
15593
15594
15595
15596
15597
15598
15599
15600
15601
15602
15603
15604
15605
15606
15607
15608
15609
15610
15611
15612
15613
15614
15615
15616
15617
15618
15619
15620
15621
15622
15623
15624
15625
15626
15627
15628
15629
15630
15631
15632
15633
15634
15635
15636
15637
15638
15639
15640
15641
15642
15643
15644
15645
15646
15647
15648
15649
15650
15651
15652
15653
15654
15655
15656
15657
15658
15659
15660
15661
15662
15663
15664
15665
15666
15667
15668
15669
15670
15671
15672
15673
15674
15675
15676
15677
15678
15679
15680
15681
15682
15683
15684
15685
15686
15687
15688
15689
15690
15691
15692
15693
15694
15695
15696
15697
15698
15699
15700
15701
15702
15703
15704
15705
15706
15707
15708
15709
15710
15711
15712
15713
15714
15715
15716
15717
15718
15719
15720
15721
15722
15723
15724
15725
15726
15727
15728
15729
15730
15731
15732
15733
15734
15735
15736
15737
15738
15739
15740
15741
15742
15743
15744
15745
15746
15747
15748
15749
15750
15751
15752
15753
15754
15755
15756
15757
15758
15759
15760
15761
15762
15763
15764
15765
15766
15767
15768
15769
15770
15771
15772
15773
15774
15775
15776
15777
15778
15779
15780
15781
15782
15783
15784
15785
15786
15787
15788
15789
15790
15791
15792
15793
15794
15795
15796
15797
15798
15799
15800
15801
15802
15803
15804
15805
15806
15807
15808
15809
15810
15811
15812
15813
15814
15815
15816
15817
15818
15819
15820
15821
15822
15823
15824
15825
15826
15827
15828
15829
15830
15831
15832
15833
15834
15835
15836
15837
15838
15839
15840
15841
15842
15843
15844
15845
15846
15847
15848
15849
15850
15851
15852
15853
15854
15855
15856
15857
15858
15859
15860
15861
15862
15863
15864
15865
15866
15867
15868
15869
15870
15871
15872
15873
15874
15875
15876
15877
15878
15879
15880
15881
15882
15883
15884
15885
15886
15887
15888
15889
15890
15891
15892
15893
15894
15895
15896
15897
15898
15899
15900
15901
15902
15903
15904
15905
15906
15907
15908
15909
15910
15911
15912
15913
15914
15915
15916
15917
15918
15919
15920
15921
15922
15923
15924
15925
15926
15927
15928
15929
15930
15931
15932
15933
15934
15935
15936
15937
15938
15939
15940
15941
15942
15943
15944
15945
15946
15947
15948
15949
15950
15951
15952
15953
15954
15955
15956
15957
15958
15959
15960
15961
15962
15963
15964
15965
15966
15967
15968
15969
15970
15971
15972
15973
15974
15975
15976
15977
15978
15979
15980
15981
15982
15983
15984
15985
15986
15987
15988
15989
15990
15991
15992
15993
15994
15995
15996
15997
15998
15999
16000
16001
16002
16003
16004
16005
16006
16007
16008
16009
16010
16011
16012
16013
16014
16015
16016
16017
16018
16019
16020
16021
16022
16023
16024
16025
16026
16027
16028
16029
16030
16031
16032
16033
16034
16035
16036
16037
16038
16039
16040
16041
16042
16043
16044
16045
16046
16047
16048
16049
16050
16051
16052
16053
16054
16055
16056
16057
16058
16059
16060
16061
16062
16063
16064
16065
16066
16067
16068
16069
16070
16071
16072
16073
16074
16075
16076
16077
16078
16079
16080
16081
16082
16083
16084
16085
16086
16087
16088
16089
16090
16091
16092
16093
16094
16095
16096
16097
16098
16099
16100
16101
16102
16103
16104
16105
16106
16107
16108
16109
16110
16111
16112
16113
16114
16115
16116
16117
16118
16119
16120
16121
16122
16123
16124
16125
16126
16127
16128
16129
16130
16131
16132
16133
16134
16135
16136
16137
16138
16139
16140
16141
16142
16143
16144
16145
16146
16147
16148
16149
16150
16151
16152
16153
16154
16155
16156
16157
16158
16159
16160
16161
16162
16163
16164
16165
16166
16167
16168
16169
16170
16171
16172
16173
16174
16175
16176
16177
16178
16179
16180
16181
16182
16183
16184
16185
16186
16187
16188
16189
16190
16191
16192
16193
16194
16195
16196
16197
16198
16199
16200
16201
16202
16203
16204
16205
16206
16207
16208
16209
16210
16211
16212
16213
16214
16215
16216
16217
16218
16219
16220
16221
16222
16223
16224
16225
16226
16227
16228
16229
16230
16231
16232
16233
16234
16235
16236
16237
16238
16239
16240
16241
16242
16243
16244
16245
16246
16247
16248
16249
16250
16251
16252
16253
16254
16255
16256
16257
16258
16259
16260
16261
16262
16263
16264
16265
16266
16267
16268
16269
16270
16271
16272
16273
16274
16275
16276
16277
16278
16279
16280
16281
16282
16283
16284
16285
16286
16287
16288
16289
16290
16291
16292
16293
16294
16295
16296
16297
16298
16299
16300
16301
16302
16303
16304
16305
16306
16307
16308
16309
16310
16311
16312
16313
16314
16315
16316
16317
16318
16319
16320
16321
16322
16323
16324
16325
16326
16327
16328
16329
16330
16331
16332
16333
16334
16335
16336
16337
16338
16339
16340
16341
16342
16343
16344
16345
16346
16347
16348
16349
16350
16351
16352
16353
16354
16355
16356
16357
16358
16359
16360
16361
16362
16363
16364
16365
16366
16367
16368
16369
16370
16371
16372
16373
16374
16375
16376
16377
16378
16379
16380
16381
16382
16383
16384
16385
16386
16387
16388
16389
16390
16391
16392
16393
16394
16395
16396
16397
16398
16399
16400
16401
16402
16403
16404
16405
16406
16407
16408
16409
16410
16411
16412
16413
16414
16415
16416
16417
16418
16419
16420
16421
16422
16423
16424
16425
16426
16427
16428
16429
16430
16431
16432
16433
16434
16435
16436
16437
16438
16439
16440
16441
16442
16443
16444
16445
16446
16447
16448
16449
16450
16451
16452
16453
16454
16455
16456
16457
16458
16459
16460
16461
16462
16463
16464
16465
16466
16467
16468
16469
16470
16471
16472
16473
16474
16475
16476
16477
16478
16479
16480
16481
16482
16483
16484
16485
16486
16487
16488
16489
16490
16491
16492
16493
16494
16495
16496
16497
16498
16499
16500
16501
16502
16503
16504
16505
16506
16507
16508
16509
16510
16511
16512
16513
16514
16515
16516
16517
16518
16519
16520
16521
16522
16523
16524
16525
16526
16527
16528
16529
16530
16531
16532
16533
16534
16535
16536
16537
16538
16539
16540
16541
16542
16543
16544
16545
16546
16547
16548
16549
16550
16551
16552
16553
16554
16555
16556
16557
16558
16559
16560
16561
16562
16563
16564
16565
16566
16567
16568
16569
16570
16571
16572
16573
16574
16575
16576
16577
16578
16579
16580
16581
16582
16583
16584
16585
16586
16587
16588
16589
16590
16591
16592
16593
16594
16595
16596
16597
16598
16599
16600
16601
16602
16603
16604
16605
16606
16607
16608
16609
16610
16611
16612
16613
16614
16615
16616
16617
16618
16619
16620
16621
16622
16623
16624
16625
16626
16627
16628
16629
16630
16631
16632
16633
16634
16635
16636
16637
16638
16639
16640
16641
16642
16643
16644
16645
16646
16647
16648
16649
16650
16651
16652
16653
16654
16655
16656
16657
16658
16659
16660
16661
16662
16663
16664
16665
16666
16667
16668
16669
16670
16671
16672
16673
16674
16675
16676
16677
16678
16679
16680
16681
16682
16683
16684
16685
16686
16687
16688
16689
16690
16691
16692
16693
16694
16695
16696
16697
16698
16699
16700
16701
16702
16703
16704
16705
16706
16707
16708
16709
16710
16711
16712
16713
16714
16715
16716
16717
16718
16719
16720
16721
16722
16723
16724
16725
16726
16727
16728
16729
16730
16731
16732
16733
16734
16735
16736
16737
16738
16739
16740
16741
16742
16743
16744
16745
16746
16747
16748
16749
16750
16751
16752
16753
16754
16755
16756
16757
16758
16759
16760
16761
16762
16763
16764
16765
16766
16767
16768
16769
16770
16771
16772
16773
16774
16775
16776
16777
16778
16779
16780
16781
16782
16783
16784
16785
16786
16787
16788
16789
16790
16791
16792
16793
16794
16795
16796
16797
16798
16799
16800
16801
16802
16803
16804
16805
16806
16807
16808
16809
16810
16811
16812
16813
16814
16815
16816
16817
16818
16819
16820
16821
16822
16823
16824
16825
16826
16827
16828
16829
16830
16831
16832
16833
16834
16835
16836
16837
16838
16839
16840
16841
16842
16843
16844
16845
16846
16847
16848
16849
16850
16851
16852
16853
16854
16855
16856
16857
16858
16859
16860
16861
16862
16863
16864
16865
16866
16867
16868
16869
16870
16871
16872
16873
16874
16875
16876
16877
16878
16879
16880
16881
16882
16883
16884
16885
16886
16887
16888
16889
16890
16891
16892
16893
16894
16895
16896
16897
16898
16899
16900
16901
16902
16903
16904
16905
16906
16907
16908
16909
16910
16911
16912
16913
16914
16915
16916
16917
16918
16919
16920
16921
16922
16923
16924
16925
16926
16927
16928
16929
16930
16931
16932
16933
16934
16935
16936
16937
16938
16939
16940
16941
16942
16943
16944
16945
16946
16947
16948
16949
16950
16951
16952
16953
16954
16955
16956
16957
16958
16959
16960
16961
16962
16963
16964
16965
16966
16967
16968
16969
16970
16971
16972
16973
16974
16975
16976
16977
16978
16979
16980
16981
16982
16983
16984
16985
16986
16987
16988
16989
16990
16991
16992
16993
16994
16995
16996
16997
16998
16999
17000
17001
17002
17003
17004
17005
17006
17007
17008
17009
17010
17011
17012
17013
17014
17015
17016
17017
17018
17019
17020
17021
17022
17023
17024
17025
17026
17027
17028
17029
17030
17031
17032
17033
17034
17035
17036
17037
17038
17039
17040
17041
17042
17043
17044
17045
17046
17047
17048
17049
17050
17051
17052
17053
17054
17055
17056
17057
17058
17059
17060
17061
17062
17063
17064
17065
17066
17067
17068
17069
17070
17071
17072
17073
17074
17075
17076
17077
17078
17079
17080
17081
17082
17083
17084
17085
17086
17087
17088
17089
17090
17091
17092
17093
17094
17095
17096
17097
17098
17099
17100
17101
17102
17103
17104
17105
17106
17107
17108
17109
17110
17111
17112
17113
17114
17115
17116
17117
17118
17119
17120
17121
17122
17123
17124
17125
17126
17127
17128
17129
17130
17131
17132
17133
17134
17135
17136
17137
17138
17139
17140
17141
17142
17143
17144
17145
17146
17147
17148
17149
17150
17151
17152
17153
17154
17155
17156
17157
17158
17159
17160
17161
17162
17163
17164
17165
17166
17167
17168
17169
17170
17171
17172
17173
17174
17175
17176
17177
17178
17179
17180
17181
17182
17183
17184
17185
17186
17187
17188
17189
17190
17191
17192
17193
17194
17195
17196
17197
17198
17199
17200
17201
17202
17203
17204
17205
17206
17207
17208
17209
17210
17211
17212
17213
17214
17215
17216
17217
17218
17219
17220
17221
17222
17223
17224
17225
17226
17227
17228
17229
17230
17231
17232
17233
17234
17235
17236
17237
17238
17239
17240
17241
17242
17243
17244
17245
17246
17247
17248
17249
17250
17251
17252
17253
17254
17255
17256
17257
17258
17259
17260
17261
17262
17263
17264
17265
17266
17267
17268
17269
17270
17271
17272
17273
17274
17275
17276
17277
17278
17279
17280
17281
17282
17283
17284
17285
17286
17287
17288
17289
17290
17291
17292
17293
17294
17295
17296
17297
17298
17299
17300
17301
17302
17303
17304
17305
17306
17307
17308
17309
17310
17311
17312
17313
17314
17315
17316
17317
17318
17319
17320
17321
17322
17323
17324
17325
17326
17327
17328
17329
17330
17331
17332
17333
17334
17335
17336
17337
17338
17339
17340
17341
17342
17343
17344
17345
17346
17347
17348
17349
17350
17351
17352
17353
17354
17355
17356
17357
17358
17359
17360
17361
17362
17363
17364
17365
17366
17367
17368
17369
17370
17371
17372
17373
17374
17375
17376
17377
17378
17379
17380
17381
17382
17383
17384
17385
17386
17387
17388
17389
17390
17391
17392
17393
17394
17395
17396
17397
17398
17399
17400
17401
17402
17403
17404
17405
17406
17407
17408
17409
17410
17411
17412
17413
17414
17415
17416
17417
17418
17419
17420
17421
17422
17423
17424
17425
17426
17427
17428
17429
17430
17431
17432
17433
17434
17435
17436
17437
17438
17439
17440
17441
17442
17443
17444
17445
17446
17447
17448
17449
17450
17451
17452
17453
17454
17455
17456
17457
17458
17459
17460
17461
17462
17463
17464
17465
17466
17467
17468
17469
17470
17471
17472
17473
17474
17475
17476
17477
17478
17479
17480
17481
17482
17483
17484
17485
17486
17487
17488
17489
17490
17491
17492
17493
17494
17495
17496
17497
17498
17499
17500
17501
17502
17503
17504
17505
17506
17507
17508
17509
17510
17511
17512
17513
17514
17515
17516
17517
17518
17519
17520
17521
17522
17523
17524
17525
17526
17527
17528
17529
17530
17531
17532
17533
17534
17535
17536
17537
17538
17539
17540
17541
17542
17543
17544
17545
17546
17547
17548
17549
17550
17551
17552
17553
17554
17555
17556
17557
17558
17559
17560
17561
17562
17563
17564
17565
17566
17567
17568
17569
17570
17571
17572
17573
17574
17575
17576
17577
17578
17579
17580
17581
17582
17583
17584
17585
17586
17587
17588
17589
17590
17591
17592
17593
17594
17595
17596
17597
17598
17599
17600
17601
17602
17603
17604
17605
17606
17607
17608
17609
17610
17611
17612
17613
17614
17615
17616
17617
17618
17619
17620
17621
17622
17623
17624
17625
17626
17627
17628
17629
17630
17631
17632
17633
17634
17635
17636
17637
17638
17639
17640
17641
17642
17643
17644
17645
17646
17647
17648
17649
17650
17651
17652
17653
17654
17655
17656
17657
17658
17659
17660
17661
17662
17663
17664
17665
17666
17667
17668
17669
17670
17671
17672
17673
17674
17675
17676
17677
17678
17679
17680
17681
17682
17683
17684
17685
17686
17687
17688
17689
17690
17691
17692
17693
17694
17695
17696
17697
17698
17699
17700
17701
17702
17703
17704
17705
17706
17707
17708
17709
17710
17711
17712
17713
17714
17715
17716
17717
17718
17719
17720
17721
17722
17723
17724
17725
17726
17727
17728
17729
17730
17731
17732
17733
17734
17735
17736
17737
17738
17739
17740
17741
17742
17743
17744
17745
17746
17747
17748
17749
17750
17751
17752
17753
17754
17755
17756
17757
17758
17759
17760
17761
17762
17763
17764
17765
17766
17767
17768
17769
17770
17771
17772
17773
17774
17775
17776
17777
17778
17779
17780
17781
17782
17783
17784
17785
17786
17787
17788
17789
17790
17791
17792
17793
17794
17795
17796
17797
17798
17799
17800
17801
17802
17803
17804
17805
17806
17807
17808
17809
17810
17811
17812
17813
17814
17815
17816
17817
17818
17819
17820
17821
17822
17823
17824
17825
17826
17827
17828
17829
17830
17831
17832
17833
17834
17835
17836
17837
17838
17839
17840
17841
17842
17843
17844
17845
17846
17847
17848
17849
17850
17851
17852
17853
17854
17855
17856
17857
17858
17859
17860
17861
17862
17863
17864
17865
17866
17867
17868
17869
17870
17871
17872
17873
17874
17875
17876
17877
17878
17879
17880
17881
17882
17883
17884
17885
17886
17887
17888
17889
17890
17891
17892
17893
17894
17895
17896
17897
17898
17899
17900
17901
17902
17903
17904
17905
17906
17907
17908
17909
17910
17911
17912
17913
17914
17915
17916
17917
17918
17919
17920
17921
17922
17923
17924
17925
17926
17927
17928
17929
17930
17931
17932
17933
17934
17935
17936
17937
17938
17939
17940
17941
17942
17943
17944
17945
17946
17947
17948
17949
17950
17951
17952
17953
17954
17955
17956
17957
17958
17959
17960
17961
17962
17963
17964
17965
17966
17967
17968
17969
17970
17971
17972
17973
17974
17975
17976
17977
17978
17979
17980
17981
17982
17983
17984
17985
17986
17987
17988
17989
17990
17991
17992
17993
17994
17995
17996
17997
17998
17999
18000
18001
18002
18003
18004
18005
18006
18007
18008
18009
18010
18011
18012
18013
18014
18015
18016
18017
18018
18019
18020
18021
18022
18023
18024
18025
18026
18027
18028
18029
18030
18031
18032
18033
18034
18035
18036
18037
18038
18039
18040
18041
18042
18043
18044
18045
18046
18047
18048
18049
18050
18051
18052
18053
18054
18055
18056
18057
18058
18059
18060
18061
18062
18063
18064
18065
18066
18067
18068
18069
18070
18071
18072
18073
18074
18075
18076
18077
18078
18079
18080
18081
18082
18083
18084
18085
18086
18087
18088
18089
18090
18091
18092
18093
18094
18095
18096
18097
18098
18099
18100
18101
18102
18103
18104
18105
18106
18107
18108
18109
18110
18111
18112
18113
18114
18115
18116
18117
18118
18119
18120
18121
18122
18123
18124
18125
18126
18127
18128
18129
18130
18131
18132
18133
18134
18135
18136
18137
18138
18139
18140
18141
18142
18143
18144
18145
18146
18147
18148
18149
18150
18151
18152
18153
18154
18155
18156
18157
18158
18159
18160
18161
18162
18163
18164
18165
18166
18167
18168
18169
18170
18171
18172
18173
18174
18175
18176
18177
18178
18179
18180
18181
18182
18183
18184
18185
18186
18187
18188
18189
18190
18191
18192
18193
18194
18195
18196
18197
18198
18199
18200
18201
18202
18203
18204
18205
18206
18207
18208
18209
18210
18211
18212
18213
18214
18215
18216
18217
18218
18219
18220
18221
18222
18223
18224
18225
18226
18227
18228
18229
18230
18231
18232
18233
18234
18235
18236
18237
18238
18239
18240
18241
18242
18243
18244
18245
18246
18247
18248
18249
18250
18251
18252
18253
18254
18255
18256
18257
18258
18259
18260
18261
18262
18263
18264
18265
18266
18267
18268
18269
18270
18271
18272
18273
18274
18275
18276
18277
18278
18279
18280
18281
18282
18283
18284
18285
18286
18287
18288
18289
18290
18291
18292
18293
18294
18295
18296
18297
18298
18299
18300
18301
18302
18303
18304
18305
18306
18307
18308
18309
18310
18311
18312
18313
18314
18315
18316
18317
18318
18319
18320
18321
18322
18323
18324
18325
18326
18327
18328
18329
18330
18331
18332
18333
18334
18335
18336
18337
18338
18339
18340
18341
18342
18343
18344
18345
18346
18347
18348
18349
18350
18351
18352
18353
18354
18355
18356
18357
18358
18359
18360
18361
18362
18363
18364
18365
18366
18367
18368
18369
18370
18371
18372
18373
18374
18375
18376
18377
18378
18379
18380
18381
18382
18383
18384
18385
18386
18387
18388
18389
18390
18391
18392
18393
18394
18395
18396
18397
18398
18399
18400
18401
18402
18403
18404
18405
18406
18407
18408
18409
18410
18411
18412
18413
18414
18415
18416
18417
18418
18419
18420
18421
18422
18423
18424
18425
18426
18427
18428
18429
18430
18431
18432
18433
18434
18435
18436
18437
18438
18439
18440
18441
18442
18443
18444
18445
18446
18447
18448
18449
18450
18451
18452
18453
18454
18455
18456
18457
18458
18459
18460
18461
18462
18463
18464
18465
18466
18467
18468
18469
18470
18471
18472
18473
18474
18475
18476
18477
18478
18479
18480
18481
18482
18483
18484
18485
18486
18487
18488
18489
18490
18491
18492
18493
18494
18495
18496
18497
18498
18499
18500
18501
18502
18503
18504
18505
18506
18507
18508
18509
18510
18511
18512
18513
18514
18515
18516
18517
18518
18519
18520
18521
18522
18523
18524
18525
18526
18527
18528
18529
18530
18531
18532
18533
18534
18535
18536
18537
18538
18539
18540
18541
18542
18543
18544
18545
18546
18547
18548
18549
18550
18551
18552
18553
18554
18555
18556
18557
18558
18559
18560
18561
18562
18563
18564
18565
18566
18567
18568
18569
18570
18571
18572
18573
18574
18575
18576
18577
18578
18579
18580
18581
18582
18583
18584
18585
18586
18587
18588
18589
18590
18591
18592
18593
18594
18595
18596
18597
18598
18599
18600
18601
18602
18603
18604
18605
18606
18607
18608
18609
18610
18611
18612
18613
18614
18615
18616
18617
18618
18619
18620
18621
18622
18623
18624
18625
18626
18627
18628
18629
18630
18631
18632
18633
18634
18635
18636
18637
18638
18639
18640
18641
18642
18643
18644
18645
18646
18647
18648
18649
18650
18651
18652
18653
18654
18655
18656
18657
18658
18659
18660
18661
18662
18663
18664
18665
18666
18667
18668
18669
18670
18671
18672
18673
18674
18675
18676
18677
18678
18679
18680
18681
18682
18683
18684
18685
18686
18687
18688
18689
18690
18691
18692
18693
18694
18695
18696
18697
18698
18699
18700
18701
18702
18703
18704
18705
18706
18707
18708
18709
18710
18711
18712
18713
18714
18715
18716
18717
18718
18719
18720
18721
18722
18723
18724
18725
18726
18727
18728
18729
18730
18731
18732
18733
18734
18735
18736
18737
18738
18739
18740
18741
18742
18743
18744
18745
18746
18747
18748
18749
18750
18751
18752
18753
18754
18755
18756
18757
18758
18759
18760
18761
18762
18763
18764
18765
18766
18767
18768
18769
18770
18771
18772
18773
18774
18775
18776
18777
18778
18779
18780
18781
18782
18783
18784
18785
18786
18787
18788
18789
18790
18791
18792
18793
18794
18795
18796
18797
18798
18799
18800
18801
18802
18803
18804
18805
18806
18807
18808
18809
18810
18811
18812
18813
18814
18815
18816
18817
18818
18819
18820
18821
18822
18823
18824
18825
18826
18827
18828
18829
18830
18831
18832
18833
18834
18835
18836
18837
18838
18839
18840
18841
18842
18843
18844
18845
18846
18847
18848
18849
18850
18851
18852
18853
18854
18855
18856
18857
18858
18859
18860
18861
18862
18863
18864
18865
18866
18867
18868
18869
18870
18871
18872
18873
18874
18875
18876
18877
18878
18879
18880
18881
18882
18883
18884
18885
18886
18887
18888
18889
18890
18891
18892
18893
18894
18895
18896
18897
18898
18899
18900
18901
18902
18903
18904
18905
18906
18907
18908
18909
18910
18911
18912
18913
18914
18915
18916
18917
18918
18919
18920
18921
18922
18923
18924
18925
18926
18927
18928
18929
18930
18931
18932
18933
18934
18935
18936
18937
18938
18939
18940
18941
18942
18943
18944
18945
18946
18947
18948
18949
18950
18951
18952
18953
18954
18955
18956
18957
18958
18959
18960
18961
18962
18963
18964
18965
18966
18967
18968
18969
18970
18971
18972
18973
18974
18975
18976
18977
18978
18979
18980
18981
18982
18983
18984
18985
18986
18987
18988
18989
18990
18991
18992
18993
18994
18995
18996
18997
18998
18999
19000
19001
19002
19003
19004
19005
19006
19007
19008
19009
19010
19011
19012
19013
19014
19015
19016
19017
19018
19019
19020
19021
19022
19023
19024
19025
19026
19027
19028
19029
19030
19031
19032
19033
19034
19035
19036
19037
19038
19039
19040
19041
19042
19043
19044
19045
19046
19047
19048
19049
19050
19051
19052
19053
19054
19055
19056
19057
19058
19059
19060
19061
19062
19063
19064
19065
19066
19067
19068
19069
19070
19071
19072
19073
19074
19075
19076
19077
19078
19079
19080
19081
19082
19083
19084
19085
19086
19087
19088
19089
19090
19091
19092
19093
19094
19095
19096
19097
19098
19099
19100
19101
19102
19103
19104
19105
19106
19107
19108
19109
19110
19111
19112
19113
19114
19115
19116
19117
19118
19119
19120
19121
19122
19123
19124
19125
19126
19127
19128
19129
19130
19131
19132
19133
19134
19135
19136
19137
19138
19139
19140
19141
19142
19143
19144
19145
19146
19147
19148
19149
19150
19151
19152
19153
19154
19155
19156
19157
19158
19159
19160
19161
19162
19163
19164
19165
19166
19167
19168
19169
19170
19171
19172
19173
19174
19175
19176
19177
19178
19179
19180
19181
19182
19183
19184
19185
19186
19187
19188
19189
19190
19191
19192
19193
19194
19195
19196
19197
19198
19199
19200
19201
19202
19203
19204
19205
19206
19207
19208
19209
19210
19211
19212
19213
19214
19215
19216
19217
19218
19219
19220
19221
19222
19223
19224
19225
19226
19227
19228
19229
19230
19231
19232
19233
19234
19235
19236
19237
19238
19239
19240
19241
19242
19243
19244
19245
19246
19247
19248
19249
19250
19251
19252
19253
19254
19255
19256
19257
19258
19259
19260
19261
19262
19263
19264
19265
19266
19267
19268
19269
19270
19271
19272
19273
19274
19275
19276
19277
19278
19279
19280
19281
19282
19283
19284
19285
19286
19287
19288
19289
19290
19291
19292
19293
19294
19295
19296
19297
19298
19299
19300
19301
19302
19303
19304
19305
19306
19307
19308
19309
19310
19311
19312
19313
19314
19315
19316
19317
19318
19319
19320
19321
19322
19323
19324
19325
19326
19327
19328
19329
19330
19331
19332
19333
19334
19335
19336
19337
19338
19339
19340
19341
19342
19343
19344
19345
19346
19347
19348
19349
19350
19351
19352
19353
19354
19355
19356
19357
19358
19359
19360
19361
19362
19363
19364
19365
19366
19367
19368
19369
19370
19371
19372
19373
19374
19375
19376
19377
19378
19379
19380
19381
19382
19383
19384
19385
19386
19387
19388
19389
19390
19391
19392
19393
19394
19395
19396
19397
19398
19399
19400
19401
19402
19403
19404
19405
19406
19407
19408
19409
19410
19411
19412
19413
19414
19415
19416
19417
19418
19419
19420
19421
19422
19423
19424
19425
19426
19427
19428
19429
19430
19431
19432
19433
19434
19435
19436
19437
19438
19439
19440
19441
19442
19443
19444
19445
19446
19447
19448
19449
19450
19451
19452
19453
19454
19455
19456
19457
19458
19459
19460
19461
19462
19463
19464
19465
19466
19467
19468
19469
19470
19471
19472
19473
19474
19475
19476
19477
19478
19479
19480
19481
19482
19483
19484
19485
19486
19487
19488
19489
19490
19491
19492
19493
19494
19495
19496
19497
19498
19499
19500
19501
19502
19503
19504
19505
19506
19507
19508
19509
19510
19511
19512
19513
19514
19515
19516
19517
19518
19519
19520
19521
19522
19523
19524
19525
19526
19527
19528
19529
19530
19531
19532
19533
19534
19535
19536
19537
19538
19539
19540
19541
19542
19543
19544
19545
19546
19547
19548
19549
19550
19551
19552
19553
19554
19555
19556
19557
19558
19559
19560
19561
19562
19563
19564
19565
19566
19567
19568
19569
19570
19571
19572
19573
19574
19575
19576
19577
19578
19579
19580
19581
19582
19583
19584
19585
19586
19587
19588
19589
19590
19591
19592
19593
19594
19595
19596
19597
19598
19599
19600
19601
19602
19603
19604
19605
19606
19607
19608
19609
19610
19611
19612
19613
19614
19615
19616
19617
19618
19619
19620
19621
19622
19623
19624
19625
19626
19627
19628
19629
19630
19631
19632
19633
19634
19635
19636
19637
19638
19639
19640
19641
19642
19643
19644
19645
19646
19647
19648
19649
19650
19651
19652
19653
19654
19655
19656
19657
19658
19659
19660
19661
19662
19663
19664
19665
19666
19667
19668
19669
19670
19671
19672
19673
19674
19675
19676
19677
19678
19679
19680
19681
19682
19683
19684
19685
19686
19687
19688
19689
19690
19691
19692
19693
19694
19695
19696
19697
19698
19699
19700
19701
19702
19703
19704
19705
19706
19707
19708
19709
19710
19711
19712
19713
19714
19715
19716
19717
19718
19719
19720
19721
19722
19723
19724
19725
19726
19727
19728
19729
19730
19731
19732
19733
19734
19735
19736
19737
19738
19739
19740
19741
19742
19743
19744
19745
19746
19747
19748
19749
19750
19751
19752
19753
19754
19755
19756
19757
19758
19759
19760
19761
19762
19763
19764
19765
19766
19767
19768
19769
19770
19771
19772
19773
19774
19775
19776
19777
19778
19779
19780
19781
19782
19783
19784
19785
19786
19787
19788
19789
19790
19791
19792
19793
19794
19795
19796
19797
19798
19799
19800
19801
19802
19803
19804
19805
19806
19807
19808
19809
19810
19811
19812
19813
19814
19815
19816
19817
19818
19819
19820
19821
19822
19823
19824
19825
19826
19827
19828
19829
19830
19831
19832
19833
19834
19835
19836
19837
19838
19839
19840
19841
19842
19843
19844
19845
19846
19847
19848
19849
19850
19851
19852
19853
19854
19855
19856
19857
19858
19859
19860
19861
19862
19863
19864
19865
19866
19867
19868
19869
19870
19871
19872
19873
19874
19875
19876
19877
19878
19879
19880
19881
19882
19883
19884
19885
19886
19887
19888
19889
19890
19891
19892
19893
19894
19895
19896
19897
19898
19899
19900
19901
19902
19903
19904
19905
19906
19907
19908
19909
19910
19911
19912
19913
19914
19915
19916
19917
19918
19919
19920
19921
19922
19923
19924
19925
19926
19927
19928
19929
19930
19931
19932
19933
19934
19935
19936
19937
19938
19939
19940
19941
19942
19943
19944
19945
19946
19947
19948
19949
19950
19951
19952
19953
19954
19955
19956
19957
19958
19959
19960
19961
19962
19963
19964
19965
19966
19967
19968
19969
19970
19971
19972
19973
19974
19975
19976
19977
19978
19979
19980
19981
19982
19983
19984
19985
19986
19987
19988
19989
19990
19991
19992
19993
19994
19995
19996
19997
19998
19999
20000
20001
20002
20003
20004
20005
20006
20007
20008
20009
20010
20011
20012
20013
20014
20015
20016
20017
20018
20019
20020
20021
20022
20023
20024
20025
20026
20027
20028
20029
20030
20031
20032
20033
20034
20035
20036
20037
20038
20039
20040
20041
20042
20043
20044
20045
20046
20047
20048
20049
20050
20051
20052
20053
20054
20055
20056
20057
20058
20059
20060
20061
20062
20063
20064
20065
20066
20067
20068
20069
20070
20071
20072
20073
20074
20075
20076
20077
20078
20079
20080
20081
20082
20083
20084
20085
20086
20087
20088
20089
20090
20091
20092
20093
20094
20095
20096
20097
20098
20099
20100
20101
20102
20103
20104
20105
20106
20107
20108
20109
20110
20111
20112
20113
20114
20115
20116
20117
20118
20119
20120
20121
20122
20123
20124
20125
20126
20127
20128
20129
20130
20131
20132
20133
20134
20135
20136
20137
20138
20139
20140
20141
20142
20143
20144
20145
20146
20147
20148
20149
20150
20151
20152
20153
20154
20155
20156
20157
20158
20159
20160
20161
20162
20163
20164
20165
20166
20167
20168
20169
20170
20171
20172
20173
20174
20175
20176
20177
20178
20179
20180
20181
20182
20183
20184
20185
20186
20187
20188
20189
20190
20191
20192
20193
20194
20195
20196
20197
20198
20199
20200
20201
20202
20203
20204
20205
20206
20207
20208
20209
20210
20211
20212
20213
20214
20215
20216
20217
20218
20219
20220
20221
20222
20223
20224
20225
20226
20227
20228
20229
20230
20231
20232
20233
20234
20235
20236
20237
20238
20239
20240
20241
20242
20243
20244
20245
20246
20247
20248
20249
20250
20251
20252
20253
20254
20255
20256
20257
20258
20259
20260
20261
20262
20263
20264
20265
20266
20267
20268
20269
20270
20271
20272
20273
20274
20275
20276
20277
20278
20279
20280
20281
20282
20283
20284
20285
20286
20287
20288
20289
20290
20291
20292
20293
20294
20295
20296
20297
20298
20299
20300
20301
20302
20303
20304
20305
20306
20307
20308
20309
20310
20311
20312
20313
20314
20315
20316
20317
20318
20319
20320
20321
20322
20323
20324
20325
20326
20327
20328
20329
20330
20331
20332
20333
20334
20335
20336
20337
20338
20339
20340
20341
20342
20343
20344
20345
20346
20347
20348
20349
20350
20351
20352
20353
20354
20355
20356
20357
20358
20359
20360
20361
20362
20363
20364
20365
20366
20367
20368
20369
20370
20371
20372
20373
20374
20375
20376
20377
20378
20379
20380
20381
20382
20383
20384
20385
20386
20387
20388
20389
20390
20391
20392
20393
20394
20395
20396
20397
20398
20399
20400
20401
20402
20403
20404
20405
20406
20407
20408
20409
20410
20411
20412
20413
20414
20415
20416
20417
20418
20419
20420
20421
20422
20423
20424
20425
20426
20427
20428
20429
20430
20431
20432
20433
20434
20435
20436
20437
20438
20439
20440
20441
20442
20443
20444
20445
20446
20447
20448
20449
20450
20451
20452
20453
20454
20455
20456
20457
20458
20459
20460
20461
20462
20463
20464
20465
20466
20467
20468
20469
20470
20471
20472
20473
20474
20475
20476
20477
20478
20479
20480
20481
20482
20483
20484
20485
20486
20487
20488
20489
20490
20491
20492
20493
20494
20495
20496
20497
20498
20499
20500
20501
20502
20503
20504
20505
20506
20507
20508
20509
20510
20511
20512
20513
20514
20515
20516
20517
20518
20519
20520
20521
20522
20523
20524
20525
20526
20527
20528
20529
20530
20531
20532
20533
20534
20535
20536
20537
20538
20539
20540
20541
20542
20543
20544
20545
20546
20547
20548
20549
20550
20551
20552
20553
20554
20555
20556
20557
20558
20559
20560
20561
20562
20563
20564
20565
20566
20567
20568
20569
20570
20571
20572
20573
20574
20575
20576
20577
20578
20579
20580
20581
20582
20583
20584
20585
20586
20587
20588
20589
20590
20591
20592
20593
20594
20595
20596
20597
20598
20599
20600
20601
20602
20603
20604
20605
20606
20607
20608
20609
20610
20611
20612
20613
20614
20615
20616
20617
20618
20619
20620
20621
20622
20623
20624
20625
20626
20627
20628
20629
20630
20631
20632
20633
20634
20635
20636
20637
20638
20639
20640
20641
20642
20643
20644
20645
20646
20647
20648
20649
20650
20651
20652
20653
20654
20655
20656
20657
20658
20659
20660
20661
20662
20663
20664
20665
20666
20667
20668
20669
20670
20671
20672
20673
20674
20675
20676
20677
20678
20679
20680
20681
20682
20683
20684
20685
20686
20687
20688
20689
20690
20691
20692
20693
20694
20695
20696
20697
20698
20699
20700
20701
20702
20703
20704
20705
20706
20707
20708
20709
20710
20711
20712
20713
20714
20715
20716
20717
20718
20719
20720
20721
20722
20723
20724
20725
20726
20727
20728
20729
20730
20731
20732
20733
20734
20735
20736
20737
20738
20739
20740
20741
20742
20743
20744
20745
20746
20747
20748
20749
20750
20751
20752
20753
20754
20755
20756
20757
20758
20759
20760
20761
20762
20763
20764
20765
20766
20767
20768
20769
20770
20771
20772
20773
20774
20775
20776
20777
20778
20779
20780
20781
20782
20783
20784
20785
20786
20787
20788
20789
20790
20791
20792
20793
20794
20795
20796
20797
20798
20799
20800
20801
20802
20803
20804
20805
20806
20807
20808
20809
20810
20811
20812
20813
20814
20815
20816
20817
20818
20819
20820
20821
20822
20823
20824
20825
20826
20827
20828
20829
20830
20831
20832
20833
20834
20835
20836
20837
20838
20839
20840
20841
20842
20843
20844
20845
20846
20847
20848
20849
20850
20851
20852
20853
20854
20855
20856
20857
20858
20859
20860
20861
20862
20863
20864
20865
20866
20867
20868
20869
20870
20871
20872
20873
20874
20875
20876
20877
20878
20879
20880
20881
20882
20883
20884
20885
20886
20887
20888
20889
20890
20891
20892
20893
20894
20895
20896
20897
20898
20899
20900
20901
20902
20903
20904
20905
20906
20907
20908
20909
20910
20911
20912
20913
20914
20915
20916
20917
20918
20919
20920
20921
20922
20923
20924
20925
20926
20927
20928
20929
20930
20931
20932
20933
20934
20935
20936
20937
20938
20939
20940
20941
20942
20943
20944
20945
20946
20947
20948
20949
20950
20951
20952
20953
20954
20955
20956
20957
20958
20959
20960
20961
20962
20963
20964
20965
20966
20967
20968
20969
20970
20971
20972
20973
20974
20975
20976
20977
20978
20979
20980
20981
20982
20983
20984
20985
20986
20987
20988
20989
20990
20991
20992
20993
20994
20995
20996
20997
20998
20999
21000
21001
21002
21003
21004
21005
21006
21007
21008
21009
21010
21011
21012
21013
21014
21015
21016
21017
21018
21019
21020
21021
21022
21023
21024
21025
21026
21027
21028
21029
21030
21031
21032
21033
21034
21035
21036
21037
21038
21039
21040
21041
21042
21043
21044
21045
21046
21047
21048
21049
21050
21051
21052
21053
21054
21055
21056
21057
21058
21059
21060
21061
21062
21063
21064
21065
21066
21067
21068
21069
21070
21071
21072
21073
21074
21075
21076
21077
21078
21079
21080
21081
21082
21083
21084
21085
21086
21087
21088
21089
21090
21091
21092
21093
21094
21095
21096
21097
21098
21099
21100
21101
21102
21103
21104
21105
21106
21107
21108
21109
21110
21111
21112
21113
21114
21115
21116
21117
21118
21119
21120
21121
21122
21123
21124
21125
21126
21127
21128
21129
21130
21131
21132
21133
21134
21135
21136
21137
21138
21139
21140
21141
21142
21143
21144
21145
21146
21147
21148
21149
21150
21151
21152
21153
21154
21155
21156
21157
21158
21159
21160
21161
21162
21163
21164
21165
21166
21167
21168
21169
21170
21171
21172
21173
21174
21175
21176
21177
21178
21179
21180
21181
21182
21183
21184
21185
21186
21187
21188
21189
21190
21191
21192
21193
21194
21195
21196
21197
21198
21199
21200
21201
21202
21203
21204
21205
21206
21207
21208
21209
21210
21211
21212
21213
21214
21215
21216
21217
21218
21219
21220
21221
21222
21223
21224
21225
21226
21227
21228
21229
21230
21231
21232
21233
21234
21235
21236
21237
21238
21239
21240
21241
21242
21243
21244
21245
21246
21247
21248
21249
21250
21251
21252
21253
21254
21255
21256
21257
21258
21259
21260
21261
21262
21263
21264
21265
21266
21267
21268
21269
21270
21271
21272
21273
21274
21275
21276
21277
21278
21279
21280
21281
21282
21283
21284
21285
21286
21287
21288
21289
21290
21291
21292
21293
21294
21295
21296
21297
21298
21299
21300
21301
21302
21303
21304
21305
21306
21307
21308
21309
21310
21311
21312
21313
21314
21315
21316
21317
21318
21319
21320
21321
21322
21323
21324
21325
21326
21327
21328
21329
21330
21331
21332
21333
21334
21335
21336
21337
21338
21339
21340
21341
21342
21343
21344
21345
21346
21347
21348
21349
21350
21351
21352
21353
21354
21355
21356
21357
21358
21359
21360
21361
21362
21363
21364
21365
21366
21367
21368
21369
21370
21371
21372
21373
21374
21375
21376
21377
21378
21379
21380
21381
21382
21383
21384
21385
21386
21387
21388
21389
21390
21391
21392
21393
21394
21395
21396
21397
21398
21399
21400
21401
21402
21403
21404
21405
21406
21407
21408
21409
21410
21411
21412
21413
21414
21415
21416
21417
21418
21419
21420
21421
21422
21423
21424
21425
21426
21427
21428
21429
21430
21431
21432
21433
21434
21435
21436
21437
21438
21439
21440
21441
21442
21443
21444
21445
21446
21447
21448
21449
21450
21451
21452
21453
21454
21455
21456
21457
21458
21459
21460
21461
21462
21463
21464
21465
21466
21467
21468
21469
21470
21471
21472
21473
21474
21475
21476
21477
21478
21479
21480
21481
21482
21483
21484
21485
21486
21487
21488
21489
21490
21491
21492
21493
21494
21495
21496
21497
21498
21499
21500
21501
21502
21503
21504
21505
21506
21507
21508
21509
21510
21511
21512
21513
21514
21515
21516
21517
21518
21519
21520
21521
21522
21523
21524
21525
21526
21527
21528
21529
21530
21531
21532
21533
21534
21535
21536
21537
21538
21539
21540
21541
21542
21543
21544
21545
21546
21547
21548
21549
21550
21551
21552
21553
21554
21555
21556
21557
21558
21559
21560
21561
21562
21563
21564
21565
21566
21567
21568
21569
21570
21571
21572
21573
21574
21575
21576
21577
21578
21579
21580
21581
21582
21583
21584
21585
21586
21587
21588
21589
21590
21591
21592
21593
21594
21595
21596
21597
21598
21599
21600
21601
21602
21603
21604
21605
21606
21607
21608
21609
21610
21611
21612
21613
21614
21615
21616
21617
21618
21619
21620
21621
21622
21623
21624
21625
21626
21627
21628
21629
21630
21631
21632
21633
21634
21635
21636
21637
21638
21639
21640
21641
21642
21643
21644
21645
21646
21647
21648
21649
21650
21651
21652
21653
21654
21655
21656
21657
21658
21659
21660
21661
21662
21663
21664
21665
21666
21667
21668
21669
21670
21671
21672
21673
21674
21675
21676
21677
21678
21679
21680
21681
21682
21683
21684
21685
21686
21687
21688
21689
21690
21691
21692
21693
21694
21695
21696
21697
21698
21699
21700
21701
21702
21703
21704
21705
21706
21707
21708
21709
21710
21711
21712
21713
21714
21715
21716
21717
21718
21719
21720
21721
21722
21723
21724
21725
21726
21727
21728
21729
21730
21731
21732
21733
21734
21735
21736
21737
21738
21739
21740
21741
21742
21743
21744
21745
21746
21747
21748
21749
21750
21751
21752
21753
21754
21755
21756
21757
21758
21759
21760
21761
21762
21763
21764
21765
21766
21767
21768
21769
21770
21771
21772
21773
21774
21775
21776
21777
21778
21779
21780
21781
21782
21783
21784
21785
21786
21787
21788
21789
21790
21791
21792
21793
21794
21795
21796
21797
21798
21799
21800
21801
21802
21803
21804
21805
21806
21807
21808
21809
21810
21811
21812
21813
21814
21815
21816
21817
21818
21819
21820
21821
21822
21823
21824
21825
21826
21827
21828
21829
21830
21831
21832
21833
21834
21835
21836
21837
21838
21839
21840
21841
21842
21843
21844
21845
21846
21847
21848
21849
21850
21851
21852
21853
21854
21855
21856
21857
21858
21859
21860
21861
21862
21863
21864
21865
21866
21867
21868
21869
21870
21871
21872
21873
21874
21875
21876
21877
21878
21879
21880
21881
21882
21883
21884
21885
21886
21887
21888
21889
21890
21891
21892
21893
21894
21895
21896
21897
21898
21899
21900
21901
21902
21903
21904
21905
21906
21907
21908
21909
21910
21911
21912
21913
21914
21915
21916
21917
21918
21919
21920
21921
21922
21923
21924
21925
21926
21927
21928
21929
21930
21931
21932
21933
21934
21935
21936
21937
21938
21939
21940
21941
21942
21943
21944
21945
21946
21947
21948
21949
21950
21951
21952
21953
21954
21955
21956
21957
21958
21959
21960
21961
21962
21963
21964
21965
21966
21967
21968
21969
21970
21971
21972
21973
21974
21975
21976
21977
21978
21979
21980
21981
21982
21983
21984
21985
21986
21987
21988
21989
21990
21991
21992
21993
21994
21995
21996
21997
21998
21999
22000
22001
22002
22003
22004
22005
22006
22007
22008
22009
22010
22011
22012
22013
22014
22015
22016
22017
22018
22019
22020
22021
22022
22023
22024
22025
22026
22027
22028
22029
22030
22031
22032
22033
22034
22035
22036
22037
22038
22039
22040
22041
22042
22043
22044
22045
22046
22047
22048
22049
22050
22051
22052
22053
22054
22055
22056
22057
22058
22059
22060
22061
22062
22063
22064
22065
22066
22067
22068
22069
22070
22071
22072
22073
22074
22075
22076
22077
22078
22079
22080
22081
22082
22083
22084
22085
22086
22087
22088
22089
22090
22091
22092
22093
22094
22095
22096
22097
22098
22099
22100
22101
22102
22103
22104
22105
22106
22107
22108
22109
22110
22111
22112
22113
22114
22115
22116
22117
22118
22119
22120
22121
22122
22123
22124
22125
22126
22127
22128
22129
22130
22131
22132
22133
22134
22135
22136
22137
22138
22139
22140
22141
22142
22143
22144
22145
22146
22147
22148
22149
22150
22151
22152
22153
22154
22155
22156
22157
22158
22159
22160
22161
22162
22163
22164
22165
22166
22167
22168
22169
22170
22171
22172
22173
22174
22175
22176
22177
22178
22179
22180
22181
22182
22183
22184
22185
22186
22187
22188
22189
22190
22191
22192
22193
22194
22195
22196
22197
22198
22199
22200
22201
22202
22203
22204
22205
22206
22207
22208
22209
22210
22211
22212
22213
22214
22215
22216
22217
22218
22219
22220
22221
22222
22223
22224
22225
22226
22227
22228
22229
22230
22231
22232
22233
22234
22235
22236
22237
22238
22239
22240
22241
22242
22243
22244
22245
22246
22247
22248
22249
22250
22251
22252
22253
22254
22255
22256
22257
22258
22259
22260
22261
22262
22263
22264
22265
22266
22267
22268
22269
22270
22271
22272
22273
22274
22275
22276
22277
22278
22279
22280
22281
22282
22283
22284
22285
22286
22287
22288
22289
22290
22291
22292
22293
22294
22295
22296
22297
22298
22299
22300
22301
22302
22303
22304
22305
22306
22307
22308
22309
22310
22311
22312
22313
22314
22315
22316
22317
22318
22319
22320
22321
22322
22323
22324
22325
22326
22327
22328
22329
22330
22331
22332
22333
22334
22335
22336
22337
22338
22339
22340
22341
22342
22343
22344
22345
22346
22347
22348
22349
22350
22351
22352
22353
22354
22355
22356
22357
22358
22359
22360
22361
22362
22363
22364
22365
22366
22367
22368
22369
22370
22371
22372
22373
22374
22375
22376
22377
22378
22379
22380
22381
22382
22383
22384
22385
22386
22387
22388
22389
22390
22391
22392
22393
22394
22395
22396
22397
22398
22399
22400
22401
22402
22403
22404
22405
22406
22407
22408
22409
22410
22411
22412
22413
22414
22415
22416
22417
22418
22419
22420
22421
22422
22423
22424
22425
22426
22427
22428
22429
22430
22431
22432
22433
22434
22435
22436
22437
22438
22439
22440
22441
22442
22443
22444
22445
22446
22447
22448
22449
22450
22451
22452
22453
22454
22455
22456
22457
22458
22459
22460
22461
22462
22463
22464
22465
22466
22467
22468
22469
22470
22471
22472
22473
22474
22475
22476
22477
22478
22479
22480
22481
22482
22483
22484
22485
22486
22487
22488
22489
22490
22491
22492
22493
22494
22495
22496
22497
22498
22499
22500
22501
22502
22503
22504
22505
22506
22507
22508
22509
22510
22511
22512
22513
22514
22515
22516
22517
22518
22519
22520
22521
22522
22523
22524
22525
22526
22527
22528
22529
22530
22531
22532
22533
22534
22535
22536
22537
22538
22539
22540
22541
22542
22543
22544
22545
22546
22547
22548
22549
22550
22551
22552
22553
22554
22555
22556
22557
22558
22559
22560
22561
22562
22563
22564
22565
22566
22567
22568
22569
22570
22571
22572
22573
22574
22575
22576
22577
22578
22579
22580
22581
22582
22583
22584
22585
22586
22587
22588
22589
22590
22591
22592
22593
22594
22595
22596
22597
22598
22599
22600
22601
22602
22603
22604
22605
22606
22607
22608
22609
22610
22611
22612
22613
22614
22615
22616
22617
22618
22619
22620
22621
22622
22623
22624
22625
22626
22627
22628
22629
22630
22631
22632
22633
22634
22635
22636
22637
22638
22639
22640
22641
22642
22643
22644
22645
22646
22647
22648
22649
22650
22651
22652
22653
22654
22655
22656
22657
22658
22659
22660
22661
22662
22663
22664
22665
22666
22667
22668
22669
22670
22671
22672
22673
22674
22675
22676
22677
22678
22679
22680
22681
22682
22683
22684
22685
22686
22687
22688
22689
22690
22691
22692
22693
22694
22695
22696
22697
22698
22699
22700
22701
22702
22703
22704
22705
22706
22707
22708
22709
22710
22711
22712
22713
22714
22715
22716
22717
22718
22719
22720
22721
22722
22723
22724
22725
22726
22727
22728
22729
22730
22731
22732
22733
22734
22735
22736
22737
22738
22739
22740
22741
22742
22743
22744
22745
22746
22747
22748
22749
22750
22751
22752
22753
22754
22755
22756
22757
22758
22759
22760
22761
22762
22763
22764
22765
22766
22767
22768
22769
22770
22771
22772
22773
22774
22775
22776
22777
22778
22779
22780
22781
22782
22783
22784
22785
22786
22787
22788
22789
22790
22791
22792
22793
22794
22795
22796
22797
22798
22799
22800
22801
22802
22803
22804
22805
22806
22807
22808
22809
22810
22811
22812
22813
22814
22815
22816
22817
22818
22819
22820
22821
22822
22823
22824
22825
22826
22827
22828
22829
22830
22831
22832
22833
22834
22835
22836
22837
22838
22839
22840
22841
22842
22843
22844
22845
22846
22847
22848
22849
22850
22851
22852
22853
22854
22855
22856
22857
22858
22859
22860
22861
22862
22863
22864
22865
22866
22867
22868
22869
22870
22871
22872
22873
22874
22875
22876
22877
22878
22879
22880
22881
22882
22883
22884
22885
22886
22887
22888
22889
22890
22891
22892
22893
22894
22895
22896
22897
22898
22899
22900
22901
22902
22903
22904
22905
22906
22907
22908
22909
22910
22911
22912
22913
22914
22915
22916
22917
22918
22919
22920
22921
22922
22923
22924
22925
22926
22927
22928
22929
22930
22931
22932
22933
22934
22935
22936
22937
22938
22939
22940
22941
22942
22943
22944
22945
22946
22947
22948
22949
22950
22951
22952
22953
22954
22955
22956
22957
22958
22959
22960
22961
22962
22963
22964
22965
22966
22967
22968
22969
22970
22971
22972
22973
22974
22975
22976
22977
22978
22979
22980
22981
22982
22983
22984
22985
22986
22987
22988
22989
22990
22991
22992
22993
22994
22995
22996
22997
22998
22999
23000
23001
23002
23003
23004
23005
23006
23007
23008
23009
23010
23011
23012
23013
23014
23015
23016
23017
23018
23019
23020
23021
23022
23023
23024
23025
23026
23027
23028
23029
23030
23031
23032
23033
23034
23035
23036
23037
23038
23039
23040
23041
23042
23043
23044
23045
23046
23047
23048
23049
23050
23051
23052
23053
23054
23055
23056
23057
23058
23059
23060
23061
23062
23063
23064
23065
23066
23067
23068
23069
23070
23071
23072
23073
23074
23075
23076
23077
23078
23079
23080
23081
23082
23083
23084
23085
23086
23087
23088
23089
23090
23091
23092
23093
23094
23095
23096
23097
23098
23099
23100
23101
23102
23103
23104
23105
23106
23107
23108
23109
23110
23111
23112
23113
23114
23115
23116
23117
23118
23119
23120
23121
23122
23123
23124
23125
23126
23127
23128
23129
23130
23131
23132
23133
23134
23135
23136
23137
23138
23139
23140
23141
23142
23143
23144
23145
23146
23147
23148
23149
23150
23151
23152
23153
23154
23155
23156
23157
23158
23159
23160
23161
23162
23163
23164
23165
23166
23167
23168
23169
23170
23171
23172
23173
23174
23175
23176
23177
23178
23179
23180
23181
23182
23183
23184
23185
23186
23187
23188
23189
23190
23191
23192
23193
23194
23195
23196
23197
23198
23199
23200
23201
23202
23203
23204
23205
23206
23207
23208
23209
23210
23211
23212
23213
23214
23215
23216
23217
23218
23219
23220
23221
23222
23223
23224
23225
23226
23227
23228
23229
23230
23231
23232
23233
23234
23235
23236
23237
23238
23239
23240
23241
23242
23243
23244
23245
23246
23247
23248
23249
23250
23251
23252
23253
23254
23255
23256
23257
23258
23259
23260
23261
23262
23263
23264
23265
23266
23267
23268
23269
23270
23271
23272
23273
23274
23275
23276
23277
23278
23279
23280
23281
23282
23283
23284
23285
23286
23287
23288
23289
23290
23291
23292
23293
23294
23295
23296
23297
23298
23299
23300
23301
23302
23303
23304
23305
23306
23307
23308
23309
23310
23311
23312
23313
23314
23315
23316
23317
23318
23319
23320
23321
23322
23323
23324
23325
23326
23327
23328
23329
23330
23331
23332
23333
23334
23335
23336
23337
23338
23339
23340
23341
23342
23343
23344
23345
23346
23347
23348
23349
23350
23351
23352
23353
23354
23355
23356
23357
23358
23359
23360
23361
23362
23363
23364
23365
23366
23367
23368
23369
23370
23371
23372
23373
23374
23375
23376
23377
23378
23379
23380
23381
23382
23383
23384
23385
23386
23387
23388
23389
23390
23391
23392
23393
23394
23395
23396
23397
23398
23399
23400
23401
23402
23403
23404
23405
23406
23407
23408
23409
23410
23411
23412
23413
23414
23415
23416
23417
23418
23419
23420
23421
23422
23423
23424
23425
23426
23427
23428
23429
23430
23431
23432
23433
23434
23435
23436
23437
23438
23439
23440
23441
23442
23443
23444
23445
23446
23447
23448
23449
23450
23451
23452
23453
23454
23455
23456
23457
23458
23459
23460
23461
23462
23463
23464
23465
23466
23467
23468
23469
23470
23471
23472
23473
23474
23475
23476
23477
23478
23479
23480
23481
23482
23483
23484
23485
23486
23487
23488
23489
23490
23491
23492
23493
23494
23495
23496
23497
23498
23499
23500
23501
23502
23503
23504
23505
23506
23507
23508
23509
23510
23511
23512
23513
23514
23515
23516
23517
23518
23519
23520
23521
23522
23523
23524
23525
23526
23527
23528
23529
23530
23531
23532
23533
23534
23535
23536
23537
23538
23539
23540
23541
23542
23543
23544
23545
23546
23547
23548
23549
23550
23551
23552
23553
23554
23555
23556
23557
23558
23559
23560
23561
23562
23563
23564
23565
23566
23567
23568
23569
23570
23571
23572
23573
23574
23575
23576
23577
23578
23579
23580
23581
23582
23583
23584
23585
23586
23587
23588
23589
23590
23591
23592
23593
23594
23595
23596
23597
23598
23599
23600
23601
23602
23603
23604
23605
23606
23607
23608
23609
23610
23611
23612
23613
23614
23615
23616
23617
23618
23619
23620
23621
23622
23623
23624
23625
23626
23627
23628
23629
23630
23631
23632
23633
23634
23635
23636
23637
23638
23639
23640
23641
23642
23643
23644
23645
23646
23647
23648
23649
23650
23651
23652
23653
23654
23655
23656
23657
23658
23659
23660
23661
23662
23663
23664
23665
23666
23667
23668
23669
23670
23671
23672
23673
23674
23675
23676
23677
23678
23679
23680
23681
23682
23683
23684
23685
23686
23687
23688
23689
23690
23691
23692
23693
23694
23695
23696
23697
23698
23699
23700
23701
23702
23703
23704
23705
23706
23707
23708
23709
23710
23711
23712
23713
23714
23715
23716
23717
23718
23719
23720
23721
23722
23723
23724
23725
23726
23727
23728
23729
23730
23731
23732
23733
23734
23735
23736
23737
23738
23739
23740
23741
23742
23743
23744
23745
23746
23747
23748
23749
23750
23751
23752
23753
23754
23755
23756
23757
23758
23759
23760
23761
23762
23763
23764
23765
23766
23767
23768
23769
23770
23771
23772
23773
23774
23775
23776
23777
23778
23779
23780
23781
23782
23783
23784
23785
23786
23787
23788
23789
23790
23791
23792
23793
23794
23795
23796
23797
23798
23799
23800
23801
23802
23803
23804
23805
23806
23807
23808
23809
23810
23811
23812
23813
23814
23815
23816
23817
23818
23819
23820
23821
23822
23823
23824
23825
23826
23827
23828
23829
23830
23831
23832
23833
23834
23835
23836
23837
23838
23839
23840
23841
23842
23843
23844
23845
23846
23847
23848
23849
23850
23851
23852
23853
23854
23855
23856
23857
23858
23859
23860
23861
23862
23863
23864
23865
23866
23867
23868
23869
23870
23871
23872
23873
23874
23875
23876
23877
23878
23879
23880
23881
23882
23883
23884
23885
23886
23887
23888
23889
23890
23891
23892
23893
23894
23895
23896
23897
23898
23899
23900
23901
23902
23903
23904
23905
23906
23907
23908
23909
23910
23911
23912
23913
23914
23915
23916
23917
23918
23919
23920
23921
23922
23923
23924
23925
23926
23927
23928
23929
23930
23931
23932
23933
23934
23935
23936
23937
23938
23939
23940
23941
23942
23943
23944
23945
23946
23947
23948
23949
23950
23951
23952
23953
23954
23955
23956
23957
23958
23959
23960
23961
23962
23963
23964
23965
23966
23967
23968
23969
23970
23971
23972
23973
23974
23975
23976
23977
23978
23979
23980
23981
23982
23983
23984
23985
23986
23987
23988
23989
23990
23991
23992
23993
23994
23995
23996
23997
23998
23999
24000
24001
24002
24003
24004
24005
24006
24007
24008
24009
24010
24011
24012
24013
24014
24015
24016
24017
24018
24019
24020
24021
24022
24023
24024
24025
24026
24027
24028
24029
24030
24031
24032
24033
24034
24035
24036
24037
24038
24039
24040
24041
24042
24043
24044
24045
24046
24047
24048
24049
24050
24051
24052
24053
24054
24055
24056
24057
24058
24059
24060
24061
24062
24063
24064
24065
24066
24067
24068
24069
24070
24071
24072
24073
24074
24075
24076
24077
24078
24079
24080
24081
24082
24083
24084
24085
24086
24087
24088
24089
24090
24091
24092
24093
24094
24095
24096
24097
24098
24099
24100
24101
24102
24103
24104
24105
24106
24107
24108
24109
24110
24111
24112
24113
24114
24115
24116
24117
24118
24119
24120
24121
24122
24123
24124
24125
24126
24127
24128
24129
24130
24131
24132
24133
24134
24135
24136
24137
24138
24139
24140
24141
24142
24143
24144
24145
24146
24147
24148
24149
24150
24151
24152
24153
24154
24155
24156
24157
24158
24159
24160
24161
24162
24163
24164
24165
24166
24167
24168
24169
24170
24171
24172
24173
24174
24175
24176
24177
24178
24179
24180
24181
24182
24183
24184
24185
24186
24187
24188
24189
24190
24191
24192
24193
24194
24195
24196
24197
24198
24199
24200
24201
24202
24203
24204
24205
24206
24207
24208
24209
24210
24211
24212
24213
24214
24215
24216
24217
24218
24219
24220
24221
24222
24223
24224
24225
24226
24227
24228
24229
24230
24231
24232
24233
24234
24235
24236
24237
24238
24239
24240
24241
24242
24243
24244
24245
24246
24247
24248
24249
24250
24251
24252
24253
24254
24255
24256
24257
24258
24259
24260
24261
24262
24263
24264
24265
24266
24267
24268
24269
24270
24271
24272
24273
24274
24275
24276
24277
24278
24279
24280
24281
24282
24283
24284
24285
24286
24287
24288
24289
24290
24291
24292
24293
24294
24295
24296
24297
24298
24299
24300
24301
24302
24303
24304
24305
24306
24307
24308
24309
24310
24311
24312
24313
24314
24315
24316
24317
24318
24319
24320
24321
24322
24323
24324
24325
24326
24327
24328
24329
24330
24331
24332
24333
24334
24335
24336
24337
24338
24339
24340
24341
24342
24343
24344
24345
24346
24347
24348
24349
24350
24351
24352
24353
24354
24355
24356
24357
24358
24359
24360
24361
24362
24363
24364
24365
24366
24367
24368
24369
24370
24371
24372
24373
24374
24375
24376
24377
24378
24379
24380
24381
24382
24383
24384
24385
24386
24387
24388
24389
24390
24391
24392
24393
24394
24395
24396
24397
24398
24399
24400
24401
24402
24403
24404
24405
24406
24407
24408
24409
24410
24411
24412
24413
24414
24415
24416
24417
24418
24419
24420
24421
24422
24423
24424
24425
24426
24427
24428
24429
24430
24431
24432
24433
24434
24435
24436
24437
24438
24439
24440
24441
24442
24443
24444
24445
24446
24447
24448
24449
24450
24451
24452
24453
24454
24455
24456
24457
24458
24459
24460
24461
24462
24463
24464
24465
24466
24467
24468
24469
24470
24471
24472
24473
24474
24475
24476
24477
24478
24479
24480
24481
24482
24483
24484
24485
24486
24487
24488
24489
24490
24491
24492
24493
24494
24495
24496
24497
24498
24499
24500
24501
24502
24503
24504
24505
24506
24507
24508
24509
24510
24511
24512
24513
24514
24515
24516
24517
24518
24519
24520
24521
24522
24523
24524
24525
24526
24527
24528
24529
24530
24531
24532
24533
24534
24535
24536
24537
24538
24539
24540
24541
24542
24543
24544
24545
24546
24547
24548
24549
24550
24551
24552
24553
24554
24555
24556
24557
24558
24559
24560
24561
24562
24563
24564
24565
24566
24567
24568
24569
24570
24571
24572
24573
24574
24575
24576
24577
24578
24579
24580
24581
24582
24583
24584
24585
24586
24587
24588
24589
24590
24591
24592
24593
24594
24595
24596
24597
24598
24599
24600
24601
24602
24603
24604
24605
24606
24607
24608
24609
24610
24611
24612
24613
24614
24615
24616
24617
24618
24619
24620
24621
24622
24623
24624
24625
24626
24627
24628
24629
24630
24631
24632
24633
24634
24635
24636
24637
24638
24639
24640
24641
24642
24643
24644
24645
24646
24647
24648
24649
24650
24651
24652
24653
24654
24655
24656
24657
24658
24659
24660
24661
24662
24663
24664
24665
24666
24667
24668
24669
24670
24671
24672
24673
24674
24675
24676
24677
24678
24679
24680
24681
24682
24683
24684
24685
24686
24687
24688
24689
24690
24691
24692
24693
24694
24695
24696
24697
24698
24699
24700
24701
24702
24703
24704
24705
24706
24707
24708
24709
24710
24711
24712
24713
24714
24715
24716
24717
24718
24719
24720
24721
24722
24723
24724
24725
24726
24727
24728
24729
24730
24731
24732
24733
24734
24735
24736
24737
24738
24739
24740
24741
24742
24743
24744
24745
24746
24747
24748
24749
24750
24751
24752
24753
24754
24755
24756
24757
24758
24759
24760
24761
24762
24763
24764
24765
24766
24767
24768
24769
24770
24771
24772
24773
24774
24775
24776
24777
24778
24779
24780
24781
24782
24783
24784
24785
24786
24787
24788
24789
24790
24791
24792
24793
24794
24795
24796
24797
24798
24799
24800
24801
24802
24803
24804
24805
24806
24807
24808
24809
24810
24811
24812
24813
24814
24815
24816
24817
24818
24819
24820
24821
24822
24823
24824
24825
24826
24827
24828
24829
24830
24831
24832
24833
24834
24835
24836
24837
24838
24839
24840
24841
24842
24843
24844
24845
24846
24847
24848
24849
24850
24851
24852
24853
24854
24855
24856
24857
24858
24859
24860
24861
24862
24863
24864
24865
24866
24867
24868
24869
24870
24871
24872
24873
24874
24875
24876
24877
24878
24879
24880
24881
24882
24883
24884
24885
24886
24887
24888
24889
24890
24891
24892
24893
24894
24895
24896
24897
24898
24899
24900
24901
24902
24903
24904
24905
24906
24907
24908
24909
24910
24911
24912
24913
24914
24915
24916
24917
24918
24919
24920
24921
24922
24923
24924
24925
24926
24927
24928
24929
24930
24931
24932
24933
24934
24935
24936
24937
24938
24939
24940
24941
24942
24943
24944
24945
24946
24947
24948
24949
24950
24951
24952
24953
24954
24955
24956
24957
24958
24959
24960
24961
24962
24963
24964
24965
24966
24967
24968
24969
24970
24971
24972
24973
24974
24975
24976
24977
24978
24979
24980
24981
24982
24983
24984
24985
24986
24987
24988
24989
24990
24991
24992
24993
24994
24995
24996
24997
24998
24999
25000
25001
25002
25003
25004
25005
25006
25007
25008
25009
25010
25011
25012
25013
25014
25015
25016
25017
25018
25019
25020
25021
25022
25023
25024
25025
25026
25027
25028
25029
25030
25031
25032
25033
25034
25035
25036
25037
25038
25039
25040
25041
25042
25043
25044
25045
25046
25047
25048
25049
25050
25051
25052
25053
25054
25055
25056
25057
25058
25059
25060
25061
25062
25063
25064
25065
25066
25067
25068
25069
25070
25071
25072
25073
25074
25075
25076
25077
25078
25079
25080
25081
25082
25083
25084
25085
25086
25087
25088
25089
25090
25091
25092
25093
25094
25095
25096
25097
25098
25099
25100
25101
25102
25103
25104
25105
25106
25107
25108
25109
25110
25111
25112
25113
25114
25115
25116
25117
25118
25119
25120
25121
25122
25123
25124
25125
25126
25127
25128
25129
25130
25131
25132
25133
25134
25135
25136
25137
25138
25139
25140
25141
25142
25143
25144
25145
25146
25147
25148
25149
25150
25151
25152
25153
25154
25155
25156
25157
25158
25159
25160
25161
25162
25163
25164
25165
25166
25167
25168
25169
25170
25171
25172
25173
25174
25175
25176
25177
25178
25179
25180
25181
25182
25183
25184
25185
25186
25187
25188
25189
25190
25191
25192
25193
25194
25195
25196
25197
25198
25199
25200
25201
25202
25203
25204
25205
25206
25207
25208
25209
25210
25211
25212
25213
25214
25215
25216
25217
25218
25219
25220
25221
25222
25223
25224
25225
25226
25227
25228
25229
25230
25231
25232
25233
25234
25235
25236
25237
25238
25239
25240
25241
25242
25243
25244
25245
25246
25247
25248
25249
25250
25251
25252
25253
25254
25255
25256
25257
25258
25259
25260
25261
25262
25263
25264
25265
25266
25267
25268
25269
25270
25271
25272
25273
25274
25275
25276
25277
25278
25279
25280
25281
25282
25283
25284
25285
25286
25287
25288
25289
25290
25291
25292
25293
25294
25295
25296
25297
25298
25299
25300
25301
25302
25303
25304
25305
25306
25307
25308
25309
25310
25311
25312
25313
25314
25315
25316
25317
25318
25319
25320
25321
25322
25323
25324
25325
25326
25327
25328
25329
25330
25331
25332
25333
25334
25335
25336
25337
25338
25339
25340
25341
25342
25343
25344
25345
25346
25347
25348
25349
25350
25351
25352
25353
25354
25355
25356
25357
25358
25359
25360
25361
25362
25363
25364
25365
25366
25367
25368
25369
25370
25371
25372
25373
25374
25375
25376
25377
25378
25379
25380
25381
25382
25383
25384
25385
25386
25387
25388
25389
25390
25391
25392
25393
25394
25395
25396
25397
25398
25399
25400
25401
25402
25403
25404
25405
25406
25407
25408
25409
25410
25411
25412
25413
25414
25415
25416
25417
25418
25419
25420
25421
25422
25423
25424
25425
25426
25427
25428
25429
25430
25431
25432
25433
25434
25435
25436
25437
25438
25439
25440
25441
25442
25443
25444
25445
25446
25447
25448
25449
25450
25451
25452
25453
25454
25455
25456
25457
25458
25459
25460
25461
25462
25463
25464
25465
25466
25467
25468
25469
25470
25471
25472
25473
25474
25475
25476
25477
25478
25479
25480
25481
25482
25483
25484
25485
25486
25487
25488
25489
25490
25491
25492
25493
25494
25495
25496
25497
25498
25499
25500
25501
25502
25503
25504
25505
25506
25507
25508
25509
25510
25511
25512
25513
25514
25515
25516
25517
25518
25519
25520
25521
25522
25523
25524
25525
25526
25527
25528
25529
25530
25531
25532
25533
25534
25535
25536
25537
25538
25539
25540
25541
25542
25543
25544
25545
25546
25547
25548
25549
25550
25551
25552
25553
25554
25555
25556
25557
25558
25559
25560
25561
25562
25563
25564
25565
25566
25567
25568
25569
25570
25571
25572
25573
25574
25575
25576
25577
25578
25579
25580
25581
25582
25583
25584
25585
25586
25587
25588
25589
25590
25591
25592
25593
25594
25595
25596
25597
25598
25599
25600
25601
25602
25603
25604
25605
25606
25607
25608
25609
25610
25611
25612
25613
25614
25615
25616
25617
25618
25619
25620
25621
25622
25623
25624
25625
25626
25627
25628
25629
25630
25631
25632
25633
25634
25635
25636
25637
25638
25639
25640
25641
25642
25643
25644
25645
25646
25647
25648
25649
25650
25651
25652
25653
25654
25655
25656
25657
25658
25659
25660
25661
25662
25663
25664
25665
25666
25667
25668
25669
25670
25671
25672
25673
25674
25675
25676
25677
25678
25679
25680
25681
25682
25683
25684
25685
25686
25687
25688
25689
25690
25691
25692
25693
25694
25695
25696
25697
25698
25699
25700
25701
25702
25703
25704
25705
25706
25707
25708
25709
25710
25711
25712
25713
25714
25715
25716
25717
25718
25719
25720
25721
25722
25723
25724
25725
25726
25727
25728
25729
25730
25731
25732
25733
25734
25735
25736
25737
25738
25739
25740
25741
25742
25743
25744
25745
25746
25747
25748
25749
25750
25751
25752
25753
25754
25755
25756
25757
25758
25759
25760
25761
25762
25763
25764
25765
25766
25767
25768
25769
25770
25771
25772
25773
25774
25775
25776
25777
25778
25779
25780
25781
25782
25783
25784
25785
25786
25787
25788
25789
25790
25791
25792
25793
25794
25795
25796
25797
25798
25799
25800
25801
25802
25803
25804
25805
25806
25807
25808
25809
25810
25811
25812
25813
25814
25815
25816
25817
25818
25819
25820
25821
25822
25823
25824
25825
25826
25827
25828
25829
25830
25831
25832
25833
25834
25835
25836
25837
25838
25839
25840
25841
25842
25843
25844
25845
25846
25847
25848
25849
25850
25851
25852
25853
25854
25855
25856
25857
25858
25859
25860
25861
25862
25863
25864
25865
25866
25867
25868
25869
25870
25871
25872
25873
25874
25875
25876
25877
25878
25879
25880
25881
25882
25883
25884
25885
25886
25887
25888
25889
25890
25891
25892
25893
25894
25895
25896
25897
25898
25899
25900
25901
25902
25903
25904
25905
25906
25907
25908
25909
25910
25911
25912
25913
25914
25915
25916
25917
25918
25919
25920
25921
25922
25923
25924
25925
25926
25927
25928
25929
25930
25931
25932
25933
25934
25935
25936
25937
25938
25939
25940
25941
25942
25943
25944
25945
25946
25947
25948
25949
25950
25951
25952
25953
25954
25955
25956
25957
25958
25959
25960
25961
25962
25963
25964
25965
25966
25967
25968
25969
25970
25971
25972
25973
25974
25975
25976
25977
25978
25979
25980
25981
25982
25983
25984
25985
25986
25987
25988
25989
25990
25991
25992
25993
25994
25995
25996
25997
25998
25999
26000
26001
26002
26003
26004
26005
26006
26007
26008
26009
26010
26011
26012
26013
26014
26015
26016
26017
26018
26019
26020
26021
26022
26023
26024
26025
26026
26027
26028
26029
26030
26031
26032
26033
26034
26035
26036
26037
26038
26039
26040
26041
26042
26043
26044
26045
26046
26047
26048
26049
26050
26051
26052
26053
26054
26055
26056
26057
26058
26059
26060
26061
26062
26063
26064
26065
26066
26067
26068
26069
26070
26071
26072
26073
26074
26075
26076
26077
26078
26079
26080
26081
26082
26083
26084
26085
26086
26087
26088
26089
26090
26091
26092
26093
26094
26095
26096
26097
26098
26099
26100
26101
26102
26103
26104
26105
26106
26107
26108
26109
26110
26111
26112
26113
26114
26115
26116
26117
26118
26119
26120
26121
26122
26123
26124
26125
26126
26127
26128
26129
26130
26131
26132
26133
26134
26135
26136
26137
26138
26139
26140
26141
26142
26143
26144
26145
26146
26147
26148
26149
26150
26151
26152
26153
26154
26155
26156
26157
26158
26159
26160
26161
26162
26163
26164
26165
26166
26167
26168
26169
26170
26171
26172
26173
26174
26175
26176
26177
26178
26179
26180
26181
26182
26183
26184
26185
26186
26187
26188
26189
26190
26191
26192
26193
26194
26195
26196
26197
26198
26199
26200
26201
26202
26203
26204
26205
26206
26207
26208
26209
26210
26211
26212
26213
26214
26215
26216
26217
26218
26219
26220
26221
26222
26223
26224
26225
26226
26227
26228
26229
26230
26231
26232
26233
26234
26235
26236
26237
26238
26239
26240
26241
26242
26243
26244
26245
26246
26247
26248
26249
26250
26251
26252
26253
26254
26255
26256
26257
26258
26259
26260
26261
26262
26263
26264
26265
26266
26267
26268
26269
26270
26271
26272
26273
26274
26275
26276
26277
26278
26279
26280
26281
26282
26283
26284
26285
26286
26287
26288
26289
26290
26291
26292
26293
26294
26295
26296
26297
26298
26299
26300
26301
26302
26303
26304
26305
26306
26307
26308
26309
26310
26311
26312
26313
26314
26315
26316
26317
26318
26319
26320
26321
26322
26323
26324
26325
26326
26327
26328
26329
26330
26331
26332
26333
26334
26335
26336
26337
26338
26339
26340
26341
26342
26343
26344
26345
26346
26347
26348
26349
26350
26351
26352
26353
26354
26355
26356
26357
26358
26359
26360
26361
26362
26363
26364
26365
26366
26367
26368
26369
26370
26371
26372
26373
26374
26375
26376
26377
26378
26379
26380
26381
26382
26383
26384
26385
26386
26387
26388
26389
26390
26391
26392
26393
26394
26395
26396
26397
26398
26399
26400
26401
26402
26403
26404
26405
26406
26407
26408
26409
26410
26411
26412
26413
26414
26415
26416
26417
26418
26419
26420
26421
26422
26423
26424
26425
26426
26427
26428
26429
26430
26431
26432
26433
26434
26435
26436
26437
26438
26439
26440
26441
26442
26443
26444
26445
26446
26447
26448
26449
26450
26451
26452
26453
26454
26455
26456
26457
26458
26459
26460
26461
26462
26463
26464
26465
26466
26467
26468
26469
26470
26471
26472
26473
26474
26475
26476
26477
26478
26479
26480
26481
26482
26483
26484
26485
26486
26487
26488
26489
26490
26491
26492
26493
26494
26495
26496
26497
26498
26499
26500
26501
26502
26503
26504
26505
26506
26507
26508
26509
26510
26511
26512
26513
26514
26515
26516
26517
26518
26519
26520
26521
26522
26523
26524
26525
26526
26527
26528
26529
26530
26531
26532
26533
26534
26535
26536
26537
26538
26539
26540
26541
26542
26543
26544
26545
26546
26547
26548
26549
26550
26551
26552
26553
26554
26555
26556
26557
26558
26559
26560
26561
26562
26563
26564
26565
26566
26567
26568
26569
26570
26571
26572
26573
26574
26575
26576
26577
26578
26579
26580
26581
26582
26583
26584
26585
26586
26587
26588
26589
26590
26591
26592
26593
26594
26595
26596
26597
26598
26599
26600
26601
26602
26603
26604
26605
26606
26607
26608
26609
26610
26611
26612
26613
26614
26615
26616
26617
26618
26619
26620
26621
26622
26623
26624
26625
26626
26627
26628
26629
26630
26631
26632
26633
26634
26635
26636
26637
26638
26639
26640
26641
26642
26643
26644
26645
26646
26647
26648
26649
26650
26651
26652
26653
26654
26655
26656
26657
26658
26659
26660
26661
26662
26663
26664
26665
26666
26667
26668
26669
26670
26671
26672
26673
26674
26675
26676
26677
26678
26679
26680
26681
26682
26683
26684
26685
26686
26687
26688
26689
26690
26691
26692
26693
26694
26695
26696
26697
26698
26699
26700
26701
26702
26703
26704
26705
26706
26707
26708
26709
26710
26711
26712
26713
26714
26715
26716
26717
26718
26719
26720
26721
26722
26723
26724
26725
26726
26727
26728
26729
26730
26731
26732
26733
26734
26735
26736
26737
26738
26739
26740
26741
26742
26743
26744
26745
26746
26747
26748
26749
26750
26751
26752
26753
26754
26755
26756
26757
26758
26759
26760
26761
26762
26763
26764
26765
26766
26767
26768
26769
26770
26771
26772
26773
26774
26775
26776
26777
26778
26779
26780
26781
26782
26783
26784
26785
26786
26787
26788
26789
26790
26791
26792
26793
26794
26795
26796
26797
26798
26799
26800
26801
26802
26803
26804
26805
26806
26807
26808
26809
26810
26811
26812
26813
26814
26815
26816
26817
26818
26819
26820
26821
26822
26823
26824
26825
26826
26827
26828
26829
26830
26831
26832
26833
26834
26835
26836
26837
26838
26839
26840
26841
26842
26843
26844
26845
26846
26847
26848
26849
26850
26851
26852
26853
26854
26855
26856
26857
26858
26859
26860
26861
26862
26863
26864
26865
26866
26867
26868
26869
26870
26871
26872
26873
26874
26875
26876
26877
26878
26879
26880
26881
26882
26883
26884
26885
26886
26887
26888
26889
26890
26891
26892
26893
26894
26895
26896
26897
26898
26899
26900
26901
26902
26903
26904
26905
26906
26907
26908
26909
26910
26911
26912
26913
26914
26915
26916
26917
26918
26919
26920
26921
26922
26923
26924
26925
26926
26927
26928
26929
26930
26931
26932
26933
26934
26935
26936
26937
26938
26939
26940
26941
26942
26943
26944
26945
26946
26947
26948
26949
26950
26951
26952
26953
26954
26955
26956
26957
26958
26959
26960
26961
26962
26963
26964
26965
26966
26967
26968
26969
26970
26971
26972
26973
26974
26975
26976
26977
26978
26979
26980
26981
26982
26983
26984
26985
26986
26987
26988
26989
26990
26991
26992
26993
26994
26995
26996
26997
26998
26999
27000
27001
27002
27003
27004
27005
27006
27007
27008
27009
27010
27011
27012
27013
27014
27015
27016
27017
27018
27019
27020
27021
27022
27023
27024
27025
27026
27027
27028
27029
27030
27031
27032
27033
27034
27035
27036
27037
27038
27039
27040
27041
27042
27043
27044
27045
27046
27047
27048
27049
27050
27051
27052
27053
27054
27055
27056
27057
27058
27059
27060
27061
27062
27063
27064
27065
27066
27067
27068
27069
27070
27071
27072
27073
27074
27075
27076
27077
27078
27079
27080
27081
27082
27083
27084
27085
27086
27087
27088
27089
27090
27091
27092
27093
27094
27095
27096
27097
27098
27099
27100
27101
27102
27103
27104
27105
27106
27107
27108
27109
27110
27111
27112
27113
27114
27115
27116
27117
27118
27119
27120
27121
27122
27123
27124
27125
27126
27127
27128
27129
27130
27131
27132
27133
27134
27135
27136
27137
27138
27139
27140
27141
27142
27143
27144
27145
27146
27147
27148
27149
27150
27151
27152
27153
27154
27155
27156
27157
27158
27159
27160
27161
27162
27163
27164
27165
27166
27167
27168
27169
27170
27171
27172
27173
27174
27175
27176
27177
27178
27179
27180
27181
27182
27183
27184
27185
27186
27187
27188
27189
27190
27191
27192
27193
27194
27195
27196
27197
27198
27199
27200
27201
27202
27203
27204
27205
27206
27207
27208
27209
27210
27211
27212
27213
27214
27215
27216
27217
27218
27219
27220
27221
27222
27223
27224
27225
27226
27227
27228
27229
27230
27231
27232
27233
27234
27235
27236
27237
27238
27239
27240
27241
27242
27243
27244
27245
27246
27247
27248
27249
27250
27251
27252
27253
27254
27255
27256
27257
27258
27259
27260
27261
27262
27263
27264
27265
27266
27267
27268
27269
27270
27271
27272
27273
27274
27275
27276
27277
27278
27279
27280
27281
27282
27283
27284
27285
27286
27287
27288
27289
27290
27291
27292
27293
27294
27295
27296
27297
27298
27299
27300
27301
27302
27303
27304
27305
27306
27307
27308
27309
27310
27311
27312
27313
27314
27315
27316
27317
27318
27319
27320
27321
27322
27323
27324
27325
27326
27327
27328
27329
27330
27331
27332
27333
27334
27335
27336
27337
27338
27339
27340
27341
27342
27343
27344
27345
27346
27347
27348
27349
27350
27351
27352
27353
27354
27355
27356
27357
27358
27359
27360
27361
27362
27363
27364
27365
27366
27367
27368
27369
27370
27371
27372
27373
27374
27375
27376
27377
27378
27379
27380
27381
27382
27383
27384
27385
27386
27387
27388
27389
27390
27391
27392
27393
27394
27395
27396
27397
27398
27399
27400
27401
27402
27403
27404
27405
27406
27407
27408
27409
27410
27411
27412
27413
27414
27415
27416
27417
27418
27419
27420
27421
27422
27423
27424
27425
27426
27427
27428
27429
27430
27431
27432
27433
27434
27435
27436
27437
27438
27439
27440
27441
27442
27443
27444
27445
27446
27447
27448
27449
27450
27451
27452
27453
27454
27455
27456
27457
27458
27459
27460
27461
27462
27463
27464
27465
27466
27467
27468
27469
27470
27471
27472
27473
27474
27475
27476
27477
27478
27479
27480
27481
27482
27483
27484
27485
27486
27487
27488
27489
27490
27491
27492
27493
27494
27495
27496
27497
27498
27499
27500
27501
27502
27503
27504
27505
27506
27507
27508
27509
27510
27511
27512
27513
27514
27515
27516
27517
27518
27519
27520
27521
27522
27523
27524
27525
27526
27527
27528
27529
27530
27531
27532
27533
27534
27535
27536
27537
27538
27539
27540
27541
27542
27543
27544
27545
27546
27547
27548
27549
27550
27551
27552
27553
27554
27555
27556
27557
27558
27559
27560
27561
27562
27563
27564
27565
27566
27567
27568
27569
27570
27571
27572
27573
27574
27575
27576
27577
27578
27579
27580
27581
27582
27583
27584
27585
27586
27587
27588
27589
27590
27591
27592
27593
27594
27595
27596
27597
27598
27599
27600
27601
27602
27603
27604
27605
27606
27607
27608
27609
27610
27611
27612
27613
27614
27615
27616
27617
27618
27619
27620
27621
27622
27623
27624
27625
27626
27627
27628
27629
27630
27631
27632
27633
27634
27635
27636
27637
27638
27639
27640
27641
27642
27643
27644
27645
27646
27647
27648
27649
27650
27651
27652
27653
27654
27655
27656
27657
27658
27659
27660
27661
27662
27663
27664
27665
27666
27667
27668
27669
27670
27671
27672
27673
27674
27675
27676
27677
27678
27679
27680
27681
27682
27683
27684
27685
27686
27687
27688
27689
27690
27691
27692
27693
27694
27695
27696
27697
27698
27699
27700
27701
27702
27703
27704
27705
27706
27707
27708
27709
27710
27711
27712
27713
27714
27715
27716
27717
27718
27719
27720
27721
27722
27723
27724
27725
27726
27727
27728
27729
27730
27731
27732
27733
27734
27735
27736
27737
27738
27739
27740
27741
27742
27743
27744
27745
27746
27747
27748
27749
27750
27751
27752
27753
27754
27755
27756
27757
27758
27759
27760
27761
27762
27763
27764
27765
27766
27767
27768
27769
27770
27771
27772
27773
27774
27775
27776
27777
27778
27779
27780
27781
27782
27783
27784
27785
27786
27787
27788
27789
27790
27791
27792
27793
27794
27795
27796
27797
27798
27799
27800
27801
27802
27803
27804
27805
27806
27807
27808
27809
27810
27811
27812
27813
27814
27815
27816
27817
27818
27819
27820
27821
27822
27823
27824
27825
27826
27827
27828
27829
27830
27831
27832
27833
27834
27835
27836
27837
27838
27839
27840
27841
27842
27843
27844
27845
27846
27847
27848
27849
27850
27851
27852
27853
27854
27855
27856
27857
27858
27859
27860
27861
27862
27863
27864
27865
27866
27867
27868
27869
27870
27871
27872
27873
27874
27875
27876
27877
27878
27879
27880
27881
27882
27883
27884
27885
27886
27887
27888
27889
27890
27891
27892
27893
27894
27895
27896
27897
27898
27899
27900
27901
27902
27903
27904
27905
27906
27907
27908
27909
27910
27911
27912
27913
27914
27915
27916
27917
27918
27919
27920
27921
27922
27923
27924
27925
27926
27927
27928
27929
27930
27931
27932
27933
27934
27935
27936
27937
27938
27939
27940
27941
27942
27943
27944
27945
27946
27947
27948
27949
27950
27951
27952
27953
27954
27955
27956
27957
27958
27959
27960
27961
27962
27963
27964
27965
27966
27967
27968
27969
27970
27971
27972
27973
27974
27975
27976
27977
27978
27979
27980
27981
27982
27983
27984
27985
27986
27987
27988
27989
27990
27991
27992
27993
27994
27995
27996
27997
27998
27999
28000
28001
28002
28003
28004
28005
28006
28007
28008
28009
28010
28011
28012
28013
28014
28015
28016
28017
28018
28019
28020
28021
28022
28023
28024
28025
28026
28027
28028
28029
28030
28031
28032
28033
28034
28035
28036
28037
28038
28039
28040
28041
28042
28043
28044
28045
28046
28047
28048
28049
28050
28051
28052
28053
28054
28055
28056
28057
28058
28059
28060
28061
28062
28063
28064
28065
28066
28067
28068
28069
28070
28071
28072
28073
28074
28075
28076
28077
28078
28079
28080
28081
28082
28083
28084
28085
28086
28087
28088
28089
28090
28091
28092
28093
28094
28095
28096
28097
28098
28099
28100
28101
28102
28103
28104
28105
28106
28107
28108
28109
28110
28111
28112
28113
28114
28115
28116
28117
28118
28119
28120
28121
28122
28123
28124
28125
28126
28127
28128
28129
28130
28131
28132
28133
28134
28135
28136
28137
28138
28139
28140
28141
28142
28143
28144
28145
28146
28147
28148
28149
28150
28151
28152
28153
28154
28155
28156
28157
28158
28159
28160
28161
28162
28163
28164
28165
28166
28167
28168
28169
28170
28171
28172
28173
28174
28175
28176
28177
28178
28179
28180
28181
28182
28183
28184
28185
28186
28187
28188
28189
28190
28191
28192
28193
28194
28195
28196
28197
28198
28199
28200
28201
28202
28203
28204
28205
28206
28207
28208
28209
28210
28211
28212
28213
28214
28215
28216
28217
28218
28219
28220
28221
28222
28223
28224
28225
28226
28227
28228
28229
28230
28231
28232
28233
28234
28235
28236
28237
28238
28239
28240
28241
28242
28243
28244
28245
28246
28247
28248
28249
28250
28251
28252
28253
28254
28255
28256
28257
28258
28259
28260
28261
28262
28263
28264
28265
28266
28267
28268
28269
28270
28271
28272
28273
28274
28275
28276
28277
28278
28279
28280
28281
28282
28283
28284
28285
28286
28287
28288
28289
28290
28291
28292
28293
28294
28295
28296
28297
28298
28299
28300
28301
28302
28303
28304
28305
28306
28307
28308
28309
28310
28311
28312
28313
28314
28315
28316
28317
28318
28319
28320
28321
28322
28323
28324
28325
28326
28327
28328
28329
28330
28331
28332
28333
28334
28335
28336
28337
28338
28339
28340
28341
28342
28343
28344
28345
28346
28347
28348
28349
28350
28351
28352
28353
28354
28355
28356
28357
28358
28359
28360
28361
28362
28363
28364
28365
28366
28367
28368
28369
28370
28371
28372
28373
28374
28375
28376
28377
28378
28379
28380
28381
28382
28383
28384
28385
28386
28387
28388
28389
28390
28391
28392
28393
28394
28395
28396
28397
28398
28399
28400
28401
28402
28403
28404
28405
28406
28407
28408
28409
28410
28411
28412
28413
28414
28415
28416
28417
28418
28419
28420
28421
28422
28423
28424
28425
28426
28427
28428
28429
28430
28431
28432
28433
28434
28435
28436
28437
28438
28439
28440
28441
28442
28443
28444
28445
28446
28447
28448
28449
28450
28451
28452
28453
28454
28455
28456
28457
28458
28459
28460
28461
28462
28463
28464
28465
28466
28467
28468
28469
28470
28471
28472
28473
28474
28475
28476
28477
28478
28479
28480
28481
28482
28483
28484
28485
28486
28487
28488
28489
28490
28491
28492
28493
28494
28495
28496
28497
28498
28499
28500
28501
28502
28503
28504
28505
28506
28507
28508
28509
28510
28511
28512
28513
28514
28515
28516
28517
28518
28519
28520
28521
28522
28523
28524
28525
28526
28527
28528
28529
28530
28531
28532
28533
28534
28535
28536
28537
28538
28539
28540
28541
28542
28543
28544
28545
28546
28547
28548
28549
28550
28551
28552
28553
28554
28555
28556
28557
28558
28559
28560
28561
28562
28563
28564
28565
28566
28567
28568
28569
28570
28571
28572
28573
28574
28575
28576
28577
28578
28579
28580
28581
28582
28583
28584
28585
28586
28587
28588
28589
28590
28591
28592
28593
28594
28595
28596
28597
28598
28599
28600
28601
28602
28603
28604
28605
28606
28607
28608
28609
28610
28611
28612
28613
28614
28615
28616
28617
28618
28619
28620
28621
28622
28623
28624
28625
28626
28627
28628
28629
28630
28631
28632
28633
28634
28635
28636
28637
28638
28639
28640
28641
28642
28643
28644
28645
28646
28647
28648
28649
28650
28651
28652
28653
28654
28655
28656
28657
28658
28659
28660
28661
28662
28663
28664
28665
28666
28667
28668
28669
28670
28671
28672
28673
28674
28675
28676
28677
28678
28679
28680
28681
28682
28683
28684
28685
28686
28687
28688
28689
28690
28691
28692
28693
28694
28695
28696
28697
28698
28699
28700
28701
28702
28703
28704
28705
28706
28707
28708
28709
28710
28711
28712
28713
28714
28715
28716
28717
28718
28719
28720
28721
28722
28723
28724
28725
28726
28727
28728
28729
28730
28731
28732
28733
28734
28735
28736
28737
28738
28739
28740
28741
28742
28743
28744
28745
28746
28747
28748
28749
28750
28751
28752
28753
28754
28755
28756
28757
28758
28759
28760
28761
28762
28763
28764
28765
28766
28767
28768
28769
28770
28771
28772
28773
28774
28775
28776
28777
28778
28779
28780
28781
28782
28783
28784
28785
28786
28787
28788
28789
28790
28791
28792
28793
28794
28795
28796
28797
28798
28799
28800
28801
28802
28803
28804
28805
28806
28807
28808
28809
28810
28811
28812
28813
28814
28815
28816
28817
28818
28819
28820
28821
28822
28823
28824
28825
28826
28827
28828
28829
28830
28831
28832
28833
28834
28835
28836
28837
28838
28839
28840
28841
28842
28843
28844
28845
28846
28847
28848
28849
28850
28851
28852
28853
28854
28855
28856
28857
28858
28859
28860
28861
28862
28863
28864
28865
28866
28867
28868
28869
28870
28871
28872
28873
28874
28875
28876
28877
28878
28879
28880
28881
28882
28883
28884
28885
28886
28887
28888
28889
28890
28891
28892
28893
28894
28895
28896
28897
28898
28899
28900
28901
28902
28903
28904
28905
28906
28907
28908
28909
28910
28911
28912
28913
28914
28915
28916
28917
28918
28919
28920
28921
28922
28923
28924
28925
28926
28927
28928
28929
28930
28931
28932
28933
28934
28935
28936
28937
28938
28939
28940
28941
28942
28943
28944
28945
28946
28947
28948
28949
28950
28951
28952
28953
28954
28955
28956
28957
28958
28959
28960
28961
28962
28963
28964
28965
28966
28967
28968
28969
28970
28971
28972
28973
28974
28975
28976
28977
28978
28979
28980
28981
28982
28983
28984
28985
28986
28987
28988
28989
28990
28991
28992
28993
28994
28995
28996
28997
28998
28999
29000
29001
29002
29003
29004
29005
29006
29007
29008
29009
29010
29011
29012
29013
29014
29015
29016
29017
29018
29019
29020
29021
29022
29023
29024
29025
29026
29027
29028
29029
29030
29031
29032
29033
29034
29035
29036
29037
29038
29039
29040
29041
29042
29043
29044
29045
29046
29047
29048
29049
29050
29051
29052
29053
29054
29055
29056
29057
29058
29059
29060
29061
29062
29063
29064
29065
29066
29067
29068
29069
29070
29071
29072
29073
29074
29075
29076
29077
29078
29079
29080
29081
29082
29083
29084
29085
29086
29087
29088
29089
29090
29091
29092
29093
29094
29095
29096
29097
29098
29099
29100
29101
29102
29103
29104
29105
29106
29107
29108
29109
29110
29111
29112
29113
29114
29115
29116
29117
29118
29119
29120
29121
29122
29123
29124
29125
29126
29127
29128
29129
29130
29131
29132
29133
29134
29135
29136
29137
29138
29139
29140
29141
29142
29143
29144
29145
29146
29147
29148
29149
29150
29151
29152
29153
29154
29155
29156
29157
29158
29159
29160
29161
29162
29163
29164
29165
29166
29167
29168
29169
29170
29171
29172
29173
29174
29175
29176
29177
29178
29179
29180
29181
29182
29183
29184
29185
29186
29187
29188
29189
29190
29191
29192
29193
29194
29195
29196
29197
29198
29199
29200
29201
29202
29203
29204
29205
29206
29207
29208
29209
29210
29211
29212
29213
29214
29215
29216
29217
29218
29219
29220
29221
29222
29223
29224
29225
29226
29227
29228
29229
29230
29231
29232
29233
29234
29235
29236
29237
29238
29239
29240
29241
29242
29243
29244
29245
29246
29247
29248
29249
29250
29251
29252
29253
29254
29255
29256
29257
29258
29259
29260
29261
29262
29263
29264
29265
29266
29267
29268
29269
29270
29271
29272
29273
29274
29275
29276
29277
29278
29279
29280
29281
29282
29283
29284
29285
29286
29287
29288
29289
29290
29291
29292
29293
29294
29295
29296
29297
29298
29299
29300
29301
29302
29303
29304
29305
29306
29307
29308
29309
29310
29311
29312
29313
29314
29315
29316
29317
29318
29319
29320
29321
29322
29323
29324
29325
29326
29327
29328
29329
29330
29331
29332
29333
29334
29335
29336
29337
29338
29339
29340
29341
29342
29343
29344
29345
29346
29347
29348
29349
29350
29351
29352
29353
29354
29355
29356
29357
29358
29359
29360
29361
29362
29363
29364
29365
29366
29367
29368
29369
29370
29371
29372
29373
29374
29375
29376
29377
29378
29379
29380
29381
29382
29383
29384
29385
29386
29387
29388
29389
29390
29391
29392
29393
29394
29395
29396
29397
29398
29399
29400
29401
29402
29403
29404
29405
29406
29407
29408
29409
29410
29411
29412
29413
29414
29415
29416
29417
29418
29419
29420
29421
29422
29423
29424
29425
29426
29427
29428
29429
29430
29431
29432
29433
29434
29435
29436
29437
29438
29439
29440
29441
29442
29443
29444
29445
29446
29447
29448
29449
29450
29451
29452
29453
29454
29455
29456
29457
29458
29459
29460
29461
29462
29463
29464
29465
29466
29467
29468
29469
29470
29471
29472
29473
29474
29475
29476
29477
29478
29479
29480
29481
29482
29483
29484
29485
29486
29487
29488
29489
29490
29491
29492
29493
29494
29495
29496
29497
29498
29499
29500
29501
29502
29503
29504
29505
29506
29507
29508
29509
29510
29511
29512
29513
29514
29515
29516
29517
29518
29519
29520
29521
29522
29523
29524
29525
29526
29527
29528
29529
29530
29531
29532
29533
29534
29535
29536
29537
29538
29539
29540
29541
29542
29543
29544
29545
29546
29547
29548
29549
29550
29551
29552
29553
29554
29555
29556
29557
29558
29559
29560
29561
29562
29563
29564
29565
29566
29567
29568
29569
29570
29571
29572
29573
29574
29575
29576
29577
29578
29579
29580
29581
29582
29583
29584
29585
29586
29587
29588
29589
29590
29591
29592
29593
29594
29595
29596
29597
29598
29599
29600
29601
29602
29603
29604
29605
29606
29607
29608
29609
29610
29611
29612
29613
29614
29615
29616
29617
29618
29619
29620
29621
29622
29623
29624
29625
29626
29627
29628
29629
29630
29631
29632
29633
29634
29635
29636
29637
29638
29639
29640
29641
29642
29643
29644
29645
29646
29647
29648
29649
29650
29651
29652
29653
29654
29655
29656
29657
29658
29659
29660
29661
29662
29663
29664
29665
29666
29667
29668
29669
29670
29671
29672
29673
29674
29675
29676
29677
29678
29679
29680
29681
29682
29683
29684
29685
29686
29687
29688
29689
29690
29691
29692
29693
29694
29695
29696
29697
29698
29699
29700
29701
29702
29703
29704
29705
29706
29707
29708
29709
29710
29711
29712
29713
29714
29715
29716
29717
29718
29719
29720
29721
29722
29723
29724
29725
29726
29727
29728
29729
29730
29731
29732
29733
29734
29735
29736
29737
29738
29739
29740
29741
29742
29743
29744
29745
29746
29747
29748
29749
29750
29751
29752
29753
29754
29755
29756
29757
29758
29759
29760
29761
29762
29763
29764
29765
29766
29767
29768
29769
29770
29771
29772
29773
29774
29775
29776
29777
29778
29779
29780
29781
29782
29783
29784
29785
29786
29787
29788
29789
29790
29791
29792
29793
29794
29795
29796
29797
29798
29799
29800
29801
29802
29803
29804
29805
29806
29807
29808
29809
29810
29811
29812
29813
29814
29815
29816
29817
29818
29819
29820
29821
29822
29823
29824
29825
29826
29827
29828
29829
29830
29831
29832
29833
29834
29835
29836
29837
29838
29839
29840
29841
29842
29843
29844
29845
29846
29847
29848
29849
29850
29851
29852
29853
29854
29855
29856
29857
29858
29859
29860
29861
29862
29863
29864
29865
29866
29867
29868
29869
29870
29871
29872
29873
29874
29875
29876
29877
29878
29879
29880
29881
29882
29883
29884
29885
29886
29887
29888
29889
29890
29891
29892
29893
29894
29895
29896
29897
29898
29899
29900
29901
29902
29903
29904
29905
29906
29907
29908
29909
29910
29911
29912
29913
29914
29915
29916
29917
29918
29919
29920
29921
29922
29923
29924
29925
29926
29927
29928
29929
29930
29931
29932
29933
29934
29935
29936
29937
29938
29939
29940
29941
29942
29943
29944
29945
29946
29947
29948
29949
29950
29951
29952
29953
29954
29955
29956
29957
29958
29959
29960
29961
29962
29963
29964
29965
29966
29967
29968
29969
29970
29971
29972
29973
29974
29975
29976
29977
29978
29979
29980
29981
29982
29983
29984
29985
29986
29987
29988
29989
29990
29991
29992
29993
29994
29995
29996
29997
29998
29999
30000
30001
30002
30003
30004
30005
30006
30007
30008
30009
30010
30011
30012
30013
30014
30015
30016
30017
30018
30019
30020
30021
30022
30023
30024
30025
30026
30027
30028
30029
30030
30031
30032
30033
30034
30035
30036
30037
30038
30039
30040
30041
30042
30043
30044
30045
30046
30047
30048
30049
30050
30051
30052
30053
30054
30055
30056
30057
30058
30059
30060
30061
30062
30063
30064
30065
30066
30067
30068
30069
30070
30071
30072
30073
30074
30075
30076
30077
30078
30079
30080
30081
30082
30083
30084
30085
30086
30087
30088
30089
30090
30091
30092
30093
30094
30095
30096
30097
30098
30099
30100
30101
30102
30103
30104
30105
30106
30107
30108
30109
30110
30111
30112
30113
30114
30115
30116
30117
30118
30119
30120
30121
30122
30123
30124
30125
30126
30127
30128
30129
30130
30131
30132
30133
30134
30135
30136
30137
30138
30139
30140
30141
30142
30143
30144
30145
30146
30147
30148
30149
30150
30151
30152
30153
30154
30155
30156
30157
30158
30159
30160
30161
30162
30163
30164
30165
30166
30167
30168
30169
30170
30171
30172
30173
30174
30175
30176
30177
30178
30179
30180
30181
30182
30183
30184
30185
30186
30187
30188
30189
30190
30191
30192
30193
30194
30195
30196
30197
30198
30199
30200
30201
30202
30203
30204
30205
30206
30207
30208
30209
30210
30211
30212
30213
30214
30215
30216
30217
30218
30219
30220
30221
30222
30223
30224
30225
30226
30227
30228
30229
30230
30231
30232
30233
30234
30235
30236
30237
30238
30239
30240
30241
30242
30243
30244
30245
30246
30247
30248
30249
30250
30251
30252
30253
30254
30255
30256
30257
30258
30259
30260
30261
30262
30263
30264
30265
30266
30267
30268
30269
30270
30271
30272
30273
30274
30275
30276
30277
30278
30279
30280
30281
30282
30283
30284
30285
30286
30287
30288
30289
30290
30291
30292
30293
30294
30295
30296
30297
30298
30299
30300
30301
30302
30303
30304
30305
30306
30307
30308
30309
30310
30311
30312
30313
30314
30315
30316
30317
30318
30319
30320
30321
30322
30323
30324
30325
30326
30327
30328
30329
30330
30331
30332
30333
30334
30335
30336
30337
30338
30339
30340
30341
30342
30343
30344
30345
30346
30347
30348
30349
30350
30351
30352
30353
30354
30355
30356
30357
30358
30359
30360
30361
30362
30363
30364
30365
30366
30367
30368
30369
30370
30371
30372
30373
30374
30375
30376
30377
30378
30379
30380
30381
30382
30383
30384
30385
30386
30387
30388
30389
30390
30391
30392
30393
30394
30395
30396
30397
30398
30399
30400
30401
30402
30403
30404
30405
30406
30407
30408
30409
30410
30411
30412
30413
30414
30415
30416
30417
30418
30419
30420
30421
30422
30423
30424
30425
30426
30427
30428
30429
30430
30431
30432
30433
30434
30435
30436
30437
30438
30439
30440
30441
30442
30443
30444
30445
30446
30447
30448
30449
30450
30451
30452
30453
30454
30455
30456
30457
30458
30459
30460
30461
30462
30463
30464
30465
30466
30467
30468
30469
30470
30471
30472
30473
30474
30475
30476
30477
30478
30479
30480
30481
30482
30483
30484
30485
30486
30487
30488
30489
30490
30491
30492
30493
30494
30495
30496
30497
30498
30499
30500
30501
30502
30503
30504
30505
30506
30507
30508
30509
30510
30511
30512
30513
30514
30515
30516
30517
30518
30519
30520
30521
30522
30523
30524
30525
30526
30527
30528
30529
30530
30531
30532
30533
30534
30535
30536
30537
30538
30539
30540
30541
30542
30543
30544
30545
30546
30547
30548
30549
30550
30551
30552
30553
30554
30555
30556
30557
30558
30559
30560
30561
30562
30563
30564
30565
30566
30567
30568
30569
30570
30571
30572
30573
30574
30575
30576
30577
30578
30579
30580
30581
30582
30583
30584
30585
30586
30587
30588
30589
30590
30591
30592
30593
30594
30595
30596
30597
30598
30599
30600
30601
30602
30603
30604
30605
30606
30607
30608
30609
30610
30611
30612
30613
30614
30615
30616
30617
30618
30619
30620
30621
30622
30623
30624
30625
30626
30627
30628
30629
30630
30631
30632
30633
30634
30635
30636
30637
30638
30639
30640
30641
30642
30643
30644
30645
30646
30647
30648
30649
30650
30651
30652
30653
30654
30655
30656
30657
30658
30659
30660
30661
30662
30663
30664
30665
30666
30667
30668
30669
30670
30671
30672
30673
30674
30675
30676
30677
30678
30679
30680
30681
30682
30683
30684
30685
30686
30687
30688
30689
30690
30691
30692
30693
30694
30695
30696
30697
30698
30699
30700
30701
30702
30703
30704
30705
30706
30707
30708
30709
30710
30711
30712
30713
30714
30715
30716
30717
30718
30719
30720
30721
30722
30723
30724
30725
30726
30727
30728
30729
30730
30731
30732
30733
30734
30735
30736
30737
30738
30739
30740
30741
30742
30743
30744
30745
30746
30747
30748
30749
30750
30751
30752
30753
30754
30755
30756
30757
30758
30759
30760
30761
30762
30763
30764
30765
30766
30767
30768
30769
30770
30771
30772
30773
30774
30775
30776
30777
30778
30779
30780
30781
30782
30783
30784
30785
30786
30787
30788
30789
30790
30791
30792
30793
30794
30795
30796
30797
30798
30799
30800
30801
30802
30803
30804
30805
30806
30807
30808
30809
30810
30811
30812
30813
30814
30815
30816
30817
30818
30819
30820
30821
30822
30823
30824
30825
30826
30827
30828
30829
30830
30831
30832
30833
30834
30835
30836
30837
30838
30839
30840
30841
30842
30843
30844
30845
30846
30847
30848
30849
30850
30851
30852
30853
30854
30855
30856
30857
30858
30859
30860
30861
30862
30863
30864
30865
30866
30867
30868
30869
30870
30871
30872
30873
30874
30875
30876
30877
30878
30879
30880
30881
30882
30883
30884
30885
30886
30887
30888
30889
30890
30891
30892
30893
30894
30895
30896
30897
30898
30899
30900
30901
30902
30903
30904
30905
30906
30907
30908
30909
30910
30911
30912
30913
30914
30915
30916
30917
30918
30919
30920
30921
30922
30923
30924
30925
30926
30927
30928
30929
30930
30931
30932
30933
30934
30935
30936
30937
30938
30939
30940
30941
30942
30943
30944
30945
30946
30947
30948
30949
30950
30951
30952
30953
30954
30955
30956
30957
30958
30959
30960
30961
30962
30963
30964
30965
30966
30967
30968
30969
30970
30971
30972
30973
30974
30975
30976
30977
30978
30979
30980
30981
30982
30983
30984
30985
30986
30987
30988
30989
30990
30991
30992
30993
30994
30995
30996
30997
30998
30999
31000
31001
31002
31003
31004
31005
31006
31007
31008
31009
31010
31011
31012
31013
31014
31015
31016
31017
31018
31019
31020
31021
31022
31023
31024
31025
31026
31027
31028
31029
31030
31031
31032
31033
31034
31035
31036
31037
31038
31039
31040
31041
31042
31043
31044
31045
31046
31047
31048
31049
31050
31051
31052
31053
31054
31055
31056
31057
31058
31059
31060
31061
31062
31063
31064
31065
31066
31067
31068
31069
31070
31071
31072
31073
31074
31075
31076
31077
31078
31079
31080
31081
31082
31083
31084
31085
31086
31087
31088
31089
31090
31091
31092
31093
31094
31095
31096
31097
31098
31099
31100
31101
31102
31103
31104
31105
31106
31107
31108
31109
31110
31111
31112
31113
31114
31115
31116
31117
31118
31119
31120
31121
31122
31123
31124
31125
31126
31127
31128
31129
31130
31131
31132
31133
31134
31135
31136
31137
31138
31139
31140
31141
31142
31143
31144
31145
31146
31147
31148
31149
31150
31151
31152
31153
31154
31155
31156
31157
31158
31159
31160
31161
31162
31163
31164
31165
31166
31167
31168
31169
31170
31171
31172
31173
31174
31175
31176
31177
31178
31179
31180
31181
31182
31183
31184
31185
31186
31187
31188
31189
31190
31191
31192
31193
31194
31195
31196
31197
31198
31199
31200
31201
31202
31203
31204
31205
31206
31207
31208
31209
31210
31211
31212
31213
31214
31215
31216
31217
31218
31219
31220
31221
31222
31223
31224
31225
31226
31227
31228
31229
31230
31231
31232
31233
31234
31235
31236
31237
31238
31239
31240
31241
31242
31243
31244
31245
31246
31247
31248
31249
31250
31251
31252
31253
31254
31255
31256
31257
31258
31259
31260
31261
31262
31263
31264
31265
31266
31267
31268
31269
31270
31271
31272
31273
31274
31275
31276
31277
31278
31279
31280
31281
31282
31283
31284
31285
31286
31287
31288
31289
31290
31291
31292
31293
31294
31295
31296
31297
31298
31299
31300
31301
31302
31303
31304
31305
31306
31307
31308
31309
31310
31311
31312
31313
31314
31315
31316
31317
31318
31319
31320
31321
31322
31323
31324
31325
31326
31327
31328
31329
31330
31331
31332
31333
31334
31335
31336
31337
31338
31339
31340
31341
31342
31343
31344
31345
31346
31347
31348
31349
31350
31351
31352
31353
31354
31355
31356
31357
31358
31359
31360
31361
31362
31363
31364
31365
31366
31367
31368
31369
31370
31371
31372
31373
31374
31375
31376
31377
31378
31379
31380
31381
31382
31383
31384
31385
31386
31387
31388
31389
31390
31391
31392
31393
31394
31395
31396
31397
31398
31399
31400
31401
31402
31403
31404
31405
31406
31407
31408
31409
31410
31411
31412
31413
31414
31415
31416
31417
31418
31419
31420
31421
31422
31423
31424
31425
31426
31427
31428
31429
31430
31431
31432
31433
31434
31435
31436
31437
31438
31439
31440
31441
31442
31443
31444
31445
31446
31447
31448
31449
31450
31451
31452
31453
31454
31455
31456
31457
31458
31459
31460
31461
31462
31463
31464
31465
31466
31467
31468
31469
31470
31471
31472
31473
31474
31475
31476
31477
31478
31479
31480
31481
31482
31483
31484
31485
31486
31487
31488
31489
31490
31491
31492
31493
31494
31495
31496
31497
31498
31499
31500
31501
31502
31503
31504
31505
31506
31507
31508
31509
31510
31511
31512
31513
31514
31515
31516
31517
31518
31519
31520
31521
31522
31523
31524
31525
31526
31527
31528
31529
31530
31531
31532
31533
31534
31535
31536
31537
31538
31539
31540
31541
31542
31543
31544
31545
31546
31547
31548
31549
31550
31551
31552
31553
31554
31555
31556
31557
31558
31559
31560
31561
31562
31563
31564
31565
31566
31567
31568
31569
31570
31571
31572
31573
31574
31575
31576
31577
31578
31579
31580
31581
31582
31583
31584
31585
31586
31587
31588
31589
31590
31591
31592
31593
31594
31595
31596
31597
31598
31599
31600
31601
31602
31603
31604
31605
31606
31607
31608
31609
31610
31611
31612
31613
31614
31615
31616
31617
31618
31619
31620
31621
31622
31623
31624
31625
31626
31627
31628
31629
31630
31631
31632
31633
31634
31635
31636
31637
31638
31639
31640
31641
31642
31643
31644
31645
31646
31647
31648
31649
31650
31651
31652
31653
31654
31655
31656
31657
31658
31659
31660
31661
31662
31663
31664
31665
31666
31667
31668
31669
31670
31671
31672
31673
31674
31675
31676
31677
31678
31679
31680
31681
31682
31683
31684
31685
31686
31687
31688
31689
31690
31691
31692
31693
31694
31695
31696
31697
31698
31699
31700
31701
31702
31703
31704
31705
31706
31707
31708
31709
31710
31711
31712
31713
31714
31715
31716
31717
31718
31719
31720
31721
31722
31723
31724
31725
31726
31727
31728
31729
31730
31731
31732
31733
31734
31735
31736
31737
31738
31739
31740
31741
31742
31743
31744
31745
31746
31747
31748
31749
31750
31751
31752
31753
31754
31755
31756
31757
31758
31759
31760
31761
31762
31763
31764
31765
31766
31767
31768
31769
31770
31771
31772
31773
31774
31775
31776
31777
31778
31779
31780
31781
31782
31783
31784
31785
31786
31787
31788
31789
31790
31791
31792
31793
31794
31795
31796
31797
31798
31799
31800
31801
31802
31803
31804
31805
31806
31807
31808
31809
31810
31811
31812
31813
31814
31815
31816
31817
31818
31819
31820
31821
31822
31823
31824
31825
31826
31827
31828
31829
31830
31831
31832
31833
31834
31835
31836
31837
31838
31839
31840
31841
31842
31843
31844
31845
31846
31847
31848
31849
31850
31851
31852
31853
31854
31855
31856
31857
31858
31859
31860
31861
31862
31863
31864
31865
31866
31867
31868
31869
31870
31871
31872
31873
31874
31875
31876
31877
31878
31879
31880
31881
31882
31883
31884
31885
31886
31887
31888
31889
31890
31891
31892
31893
31894
31895
31896
31897
31898
31899
31900
31901
31902
31903
31904
31905
31906
31907
31908
31909
31910
31911
31912
31913
31914
31915
31916
31917
31918
31919
31920
31921
31922
31923
31924
31925
31926
31927
31928
31929
31930
31931
31932
31933
31934
31935
31936
31937
31938
31939
31940
31941
31942
31943
31944
31945
31946
31947
31948
31949
31950
31951
31952
31953
31954
31955
31956
31957
31958
31959
31960
31961
31962
31963
31964
31965
31966
31967
31968
31969
31970
31971
31972
31973
31974
31975
31976
31977
31978
31979
31980
31981
31982
31983
31984
31985
31986
31987
31988
31989
31990
31991
31992
31993
31994
31995
31996
31997
31998
31999
32000
32001
32002
32003
32004
32005
32006
32007
32008
32009
32010
32011
32012
32013
32014
32015
32016
32017
32018
32019
32020
32021
32022
32023
32024
32025
32026
32027
32028
32029
32030
32031
32032
32033
32034
32035
32036
32037
32038
32039
32040
32041
32042
32043
32044
32045
32046
32047
32048
32049
32050
32051
32052
32053
32054
32055
32056
32057
32058
32059
32060
32061
32062
32063
32064
32065
32066
32067
32068
32069
32070
32071
32072
32073
32074
32075
32076
32077
32078
32079
32080
32081
32082
32083
32084
32085
32086
32087
32088
32089
32090
32091
32092
32093
32094
32095
32096
32097
32098
32099
32100
32101
32102
32103
32104
32105
32106
32107
32108
32109
32110
32111
32112
32113
32114
32115
32116
32117
32118
32119
32120
32121
32122
32123
32124
32125
32126
32127
32128
32129
32130
32131
32132
32133
32134
32135
32136
32137
32138
32139
32140
32141
32142
32143
32144
32145
32146
32147
32148
32149
32150
32151
32152
32153
32154
32155
32156
32157
32158
32159
32160
32161
32162
32163
32164
32165
32166
32167
32168
32169
32170
32171
32172
32173
32174
32175
32176
32177
32178
32179
32180
32181
32182
32183
32184
32185
32186
32187
32188
32189
32190
32191
32192
32193
32194
32195
32196
32197
32198
32199
32200
32201
32202
32203
32204
32205
32206
32207
32208
32209
32210
32211
32212
32213
32214
32215
32216
32217
32218
32219
32220
32221
32222
32223
32224
32225
32226
32227
32228
32229
32230
32231
32232
32233
32234
32235
32236
32237
32238
32239
32240
32241
32242
32243
32244
32245
32246
32247
32248
32249
32250
32251
32252
32253
32254
32255
32256
32257
32258
32259
32260
32261
32262
32263
32264
32265
32266
32267
32268
32269
32270
32271
32272
32273
32274
32275
32276
32277
32278
32279
32280
32281
32282
32283
32284
32285
32286
32287
32288
32289
32290
32291
32292
32293
32294
32295
32296
32297
32298
32299
32300
32301
32302
32303
32304
32305
32306
32307
32308
32309
32310
32311
32312
32313
32314
32315
32316
32317
32318
32319
32320
32321
32322
32323
32324
32325
32326
32327
32328
32329
32330
32331
32332
32333
32334
32335
32336
32337
32338
32339
32340
32341
32342
32343
32344
32345
32346
32347
32348
32349
32350
32351
32352
32353
32354
32355
32356
32357
32358
32359
32360
32361
32362
32363
32364
32365
32366
32367
32368
32369
32370
32371
32372
32373
32374
32375
32376
32377
32378
32379
32380
32381
32382
32383
32384
32385
32386
32387
32388
32389
32390
32391
32392
32393
32394
32395
32396
32397
32398
32399
32400
32401
32402
32403
32404
32405
32406
32407
32408
32409
32410
32411
32412
32413
32414
32415
32416
32417
32418
32419
32420
32421
32422
32423
32424
32425
32426
32427
32428
32429
32430
32431
32432
32433
32434
32435
32436
32437
32438
32439
32440
32441
32442
32443
32444
32445
32446
32447
32448
32449
32450
32451
32452
32453
32454
32455
32456
32457
32458
32459
32460
32461
32462
32463
32464
32465
32466
32467
32468
32469
32470
32471
32472
32473
32474
32475
32476
32477
32478
32479
32480
32481
32482
32483
32484
32485
32486
32487
32488
32489
32490
32491
32492
32493
32494
32495
32496
32497
32498
32499
32500
32501
32502
32503
32504
32505
32506
32507
32508
32509
32510
32511
32512
32513
32514
32515
32516
32517
32518
32519
32520
32521
32522
32523
32524
32525
32526
32527
32528
32529
32530
32531
32532
32533
32534
32535
32536
32537
32538
32539
32540
32541
32542
32543
32544
32545
32546
32547
32548
32549
32550
32551
32552
32553
32554
32555
32556
32557
32558
32559
32560
32561
32562
32563
32564
32565
32566
32567
32568
32569
32570
32571
32572
32573
32574
32575
32576
32577
32578
32579
32580
32581
32582
32583
32584
32585
32586
32587
32588
32589
32590
32591
32592
32593
32594
32595
32596
32597
32598
32599
32600
32601
32602
32603
32604
32605
32606
32607
32608
32609
32610
32611
32612
32613
32614
32615
32616
32617
32618
32619
32620
32621
32622
32623
32624
32625
32626
32627
32628
32629
32630
32631
32632
32633
32634
32635
32636
32637
32638
32639
32640
32641
32642
32643
32644
32645
32646
32647
32648
32649
32650
32651
32652
32653
32654
32655
32656
32657
32658
32659
32660
32661
32662
32663
32664
32665
32666
32667
32668
32669
32670
32671
32672
32673
32674
32675
32676
32677
32678
32679
32680
32681
32682
32683
32684
32685
32686
32687
32688
32689
32690
32691
32692
32693
32694
32695
32696
32697
32698
32699
32700
32701
32702
32703
32704
32705
32706
32707
32708
32709
32710
32711
32712
32713
32714
32715
32716
32717
32718
32719
32720
32721
32722
32723
32724
32725
32726
32727
32728
32729
32730
32731
32732
32733
32734
32735
32736
32737
32738
32739
32740
32741
32742
32743
32744
32745
32746
32747
32748
32749
32750
32751
32752
32753
32754
32755
32756
32757
32758
32759
32760
32761
32762
32763
32764
32765
32766
32767
32768
32769
32770
32771
32772
32773
32774
32775
32776
32777
32778
32779
32780
32781
32782
32783
32784
32785
32786
32787
32788
32789
32790
32791
32792
32793
32794
32795
32796
32797
32798
32799
32800
32801
32802
32803
32804
32805
32806
32807
32808
32809
32810
32811
32812
32813
32814
32815
32816
32817
32818
32819
32820
32821
32822
32823
32824
32825
32826
32827
32828
32829
32830
32831
32832
32833
32834
32835
32836
32837
32838
32839
32840
32841
32842
32843
32844
32845
32846
32847
32848
32849
32850
32851
32852
32853
32854
32855
32856
32857
32858
32859
32860
32861
32862
32863
32864
32865
32866
32867
32868
32869
32870
32871
32872
32873
32874
32875
32876
32877
32878
32879
32880
32881
32882
32883
32884
32885
32886
32887
32888
32889
32890
32891
32892
32893
32894
32895
32896
32897
32898
32899
32900
32901
32902
32903
32904
32905
32906
32907
32908
32909
32910
32911
32912
32913
32914
32915
32916
32917
32918
32919
32920
32921
32922
32923
32924
32925
32926
32927
32928
32929
32930
32931
32932
32933
32934
32935
32936
32937
32938
32939
32940
32941
32942
32943
32944
32945
32946
32947
32948
32949
32950
32951
32952
32953
32954
32955
32956
32957
32958
32959
32960
32961
32962
32963
32964
32965
32966
32967
32968
32969
32970
32971
32972
32973
32974
32975
32976
32977
32978
32979
32980
32981
32982
32983
32984
32985
32986
32987
32988
32989
32990
32991
32992
32993
32994
32995
32996
32997
32998
32999
33000
33001
33002
33003
33004
33005
33006
33007
33008
33009
33010
33011
33012
33013
33014
33015
33016
33017
33018
33019
33020
33021
33022
33023
33024
33025
33026
33027
33028
33029
33030
33031
33032
33033
33034
33035
33036
33037
33038
33039
33040
33041
33042
33043
33044
33045
33046
33047
33048
33049
33050
33051
33052
33053
33054
33055
33056
33057
33058
33059
33060
33061
33062
33063
33064
33065
33066
33067
33068
33069
33070
33071
33072
33073
33074
33075
33076
33077
33078
33079
33080
33081
33082
33083
33084
33085
33086
33087
33088
33089
33090
33091
33092
33093
33094
33095
33096
33097
33098
33099
33100
33101
33102
33103
33104
33105
33106
33107
33108
33109
33110
33111
33112
33113
33114
33115
33116
33117
33118
33119
33120
33121
33122
33123
33124
33125
33126
33127
33128
33129
33130
33131
33132
33133
33134
33135
33136
33137
33138
33139
33140
33141
33142
33143
33144
33145
33146
33147
33148
33149
33150
33151
33152
33153
33154
33155
33156
33157
33158
33159
33160
33161
33162
33163
33164
33165
33166
33167
33168
33169
33170
33171
33172
33173
33174
33175
33176
33177
33178
33179
33180
33181
33182
33183
33184
33185
33186
33187
33188
33189
33190
33191
33192
33193
33194
33195
33196
33197
33198
33199
33200
33201
33202
33203
33204
33205
33206
33207
33208
33209
33210
33211
33212
33213
33214
33215
33216
33217
33218
33219
33220
33221
33222
33223
33224
33225
33226
33227
33228
33229
33230
33231
33232
33233
33234
33235
33236
33237
33238
33239
33240
33241
33242
33243
33244
33245
33246
33247
33248
33249
33250
33251
33252
33253
33254
33255
33256
33257
33258
33259
33260
33261
33262
33263
33264
33265
33266
33267
33268
33269
33270
33271
33272
33273
33274
33275
33276
33277
33278
33279
33280
33281
33282
33283
33284
33285
33286
33287
33288
33289
33290
33291
33292
33293
33294
33295
33296
33297
33298
33299
33300
33301
33302
33303
33304
33305
33306
33307
33308
33309
33310
33311
33312
33313
33314
33315
33316
33317
33318
33319
33320
33321
33322
33323
33324
33325
33326
33327
33328
33329
33330
33331
33332
33333
33334
33335
33336
33337
33338
33339
33340
33341
33342
33343
33344
33345
33346
33347
33348
33349
33350
33351
33352
33353
33354
33355
33356
33357
33358
33359
33360
33361
33362
33363
33364
33365
33366
33367
33368
33369
33370
33371
33372
33373
33374
33375
33376
33377
33378
33379
33380
33381
33382
33383
33384
33385
33386
33387
33388
33389
33390
33391
33392
33393
33394
33395
33396
33397
33398
33399
33400
33401
33402
33403
33404
33405
33406
33407
33408
33409
33410
33411
33412
33413
33414
33415
33416
33417
33418
33419
33420
33421
33422
33423
33424
33425
33426
33427
33428
33429
33430
33431
33432
33433
33434
33435
33436
33437
33438
33439
33440
33441
33442
33443
33444
33445
33446
33447
33448
33449
33450
33451
33452
33453
33454
33455
33456
33457
33458
33459
33460
33461
33462
33463
33464
33465
33466
33467
33468
33469
33470
33471
33472
33473
33474
33475
33476
33477
33478
33479
33480
33481
33482
33483
33484
33485
33486
33487
33488
33489
33490
33491
33492
33493
33494
33495
33496
33497
33498
33499
33500
33501
33502
33503
33504
33505
33506
33507
33508
33509
33510
33511
33512
33513
33514
33515
33516
33517
33518
33519
33520
33521
33522
33523
33524
33525
33526
33527
33528
33529
33530
33531
33532
33533
33534
33535
33536
33537
33538
33539
33540
33541
33542
33543
33544
33545
33546
33547
33548
33549
33550
33551
33552
33553
33554
33555
33556
33557
33558
33559
33560
33561
33562
33563
33564
33565
33566
33567
33568
33569
33570
33571
33572
33573
33574
33575
33576
33577
33578
33579
33580
33581
33582
33583
33584
33585
33586
33587
33588
33589
33590
33591
33592
33593
33594
33595
33596
33597
33598
33599
33600
33601
33602
33603
33604
33605
33606
33607
33608
33609
33610
33611
33612
33613
33614
33615
33616
33617
33618
33619
33620
33621
33622
33623
33624
33625
33626
33627
33628
33629
33630
33631
33632
33633
33634
33635
33636
33637
33638
33639
33640
33641
33642
33643
33644
33645
33646
33647
33648
33649
33650
33651
33652
33653
33654
33655
33656
33657
33658
33659
33660
33661
33662
33663
33664
33665
33666
33667
33668
33669
33670
33671
33672
33673
33674
33675
33676
33677
33678
33679
33680
33681
33682
33683
33684
33685
33686
33687
33688
33689
33690
33691
33692
33693
33694
33695
33696
33697
33698
33699
33700
33701
33702
33703
33704
33705
33706
33707
33708
33709
33710
33711
33712
33713
33714
33715
33716
33717
33718
33719
33720
33721
33722
33723
33724
33725
33726
33727
33728
33729
33730
33731
33732
33733
33734
33735
33736
33737
33738
33739
33740
33741
33742
33743
33744
33745
33746
33747
33748
33749
33750
33751
33752
33753
33754
33755
33756
33757
33758
33759
33760
33761
33762
33763
33764
33765
33766
33767
33768
33769
33770
33771
33772
33773
33774
33775
33776
33777
33778
33779
33780
33781
33782
33783
33784
33785
33786
33787
33788
33789
33790
33791
33792
33793
33794
33795
33796
33797
33798
33799
33800
33801
33802
33803
33804
33805
33806
33807
33808
33809
33810
33811
33812
33813
33814
33815
33816
33817
33818
33819
33820
33821
33822
33823
33824
33825
33826
33827
33828
33829
33830
33831
33832
33833
33834
33835
33836
33837
33838
33839
33840
33841
33842
33843
33844
33845
33846
33847
33848
33849
33850
33851
33852
33853
33854
33855
33856
33857
33858
33859
33860
33861
33862
33863
33864
33865
33866
33867
33868
33869
33870
33871
33872
33873
33874
33875
33876
33877
33878
33879
33880
33881
33882
33883
33884
33885
33886
33887
33888
33889
33890
33891
33892
33893
33894
33895
33896
33897
33898
33899
33900
33901
33902
33903
33904
33905
33906
33907
33908
33909
33910
33911
33912
33913
33914
33915
33916
33917
33918
33919
33920
33921
33922
33923
33924
33925
33926
33927
33928
33929
33930
33931
33932
33933
33934
33935
33936
33937
33938
33939
33940
33941
33942
33943
33944
33945
33946
33947
33948
33949
33950
33951
33952
33953
33954
33955
33956
33957
33958
33959
33960
33961
33962
33963
33964
33965
33966
33967
33968
33969
33970
33971
33972
33973
33974
33975
33976
33977
33978
33979
33980
33981
33982
33983
33984
33985
33986
33987
33988
33989
33990
33991
33992
33993
33994
33995
33996
33997
33998
33999
34000
34001
34002
34003
34004
34005
34006
34007
34008
34009
34010
34011
34012
34013
34014
34015
34016
34017
34018
34019
34020
34021
34022
34023
34024
34025
34026
34027
34028
34029
34030
34031
34032
34033
34034
34035
34036
34037
34038
34039
34040
34041
34042
34043
34044
34045
34046
34047
34048
34049
34050
34051
34052
34053
34054
34055
34056
34057
34058
34059
34060
34061
34062
34063
34064
34065
34066
34067
34068
34069
34070
34071
34072
34073
34074
34075
34076
34077
34078
34079
34080
34081
34082
34083
34084
34085
34086
34087
34088
34089
34090
34091
34092
34093
34094
34095
34096
34097
34098
34099
34100
34101
34102
34103
34104
34105
34106
34107
34108
34109
34110
34111
34112
34113
34114
34115
34116
34117
34118
34119
34120
34121
34122
34123
34124
34125
34126
34127
34128
34129
34130
34131
34132
34133
34134
34135
34136
34137
34138
34139
34140
34141
34142
34143
34144
34145
34146
34147
34148
34149
34150
34151
34152
34153
34154
34155
34156
34157
34158
34159
34160
34161
34162
34163
34164
34165
34166
34167
34168
34169
34170
34171
34172
34173
34174
34175
34176
34177
34178
34179
34180
34181
34182
34183
34184
34185
34186
34187
34188
34189
34190
34191
34192
34193
34194
34195
34196
34197
34198
34199
34200
34201
34202
34203
34204
34205
34206
34207
34208
34209
34210
34211
34212
34213
34214
34215
34216
34217
34218
34219
34220
34221
34222
34223
34224
34225
34226
34227
34228
34229
34230
34231
34232
34233
34234
34235
34236
34237
34238
34239
34240
34241
34242
34243
34244
34245
34246
34247
34248
34249
34250
34251
34252
34253
34254
34255
34256
34257
34258
34259
34260
34261
34262
34263
34264
34265
34266
34267
34268
34269
34270
34271
34272
34273
34274
34275
34276
34277
34278
34279
34280
34281
34282
34283
34284
34285
34286
34287
34288
34289
34290
34291
34292
34293
34294
34295
34296
34297
34298
34299
34300
34301
34302
34303
34304
34305
34306
34307
34308
34309
34310
34311
34312
34313
34314
34315
34316
34317
34318
34319
34320
34321
34322
34323
34324
34325
34326
34327
34328
34329
34330
34331
34332
34333
34334
34335
34336
34337
34338
34339
34340
34341
34342
34343
34344
34345
34346
34347
34348
34349
34350
34351
34352
34353
34354
34355
34356
34357
34358
34359
34360
34361
34362
34363
34364
34365
34366
34367
34368
34369
34370
34371
34372
34373
34374
34375
34376
34377
34378
34379
34380
34381
34382
34383
34384
34385
34386
34387
34388
34389
34390
34391
34392
34393
34394
34395
34396
34397
34398
34399
34400
34401
34402
34403
34404
34405
34406
34407
34408
34409
34410
34411
34412
34413
34414
34415
34416
34417
34418
34419
34420
34421
34422
34423
34424
34425
34426
34427
34428
34429
34430
34431
34432
34433
34434
34435
34436
34437
34438
34439
34440
34441
34442
34443
34444
34445
34446
34447
34448
34449
34450
34451
34452
34453
34454
34455
34456
34457
34458
34459
34460
34461
34462
34463
34464
34465
34466
34467
34468
34469
34470
34471
34472
34473
34474
34475
34476
34477
34478
34479
34480
34481
34482
34483
34484
34485
34486
34487
34488
34489
34490
34491
34492
34493
34494
34495
34496
34497
34498
34499
34500
34501
34502
34503
34504
34505
34506
34507
34508
34509
34510
34511
34512
34513
34514
34515
34516
34517
34518
34519
34520
34521
34522
34523
34524
34525
34526
34527
34528
34529
34530
34531
34532
34533
34534
34535
34536
34537
34538
34539
34540
34541
34542
34543
34544
34545
34546
34547
34548
34549
34550
34551
34552
34553
34554
34555
34556
34557
34558
34559
34560
34561
34562
34563
34564
34565
34566
34567
34568
34569
34570
34571
34572
34573
34574
34575
34576
34577
34578
34579
34580
34581
34582
34583
34584
34585
34586
34587
34588
34589
34590
34591
34592
34593
34594
34595
34596
34597
34598
34599
34600
34601
34602
34603
34604
34605
34606
34607
34608
34609
34610
34611
34612
34613
34614
34615
34616
34617
34618
34619
34620
34621
34622
34623
34624
34625
34626
34627
34628
34629
34630
34631
34632
34633
34634
34635
34636
34637
34638
34639
34640
34641
34642
34643
34644
34645
34646
34647
34648
34649
34650
34651
34652
34653
34654
34655
34656
34657
34658
34659
34660
34661
34662
34663
34664
34665
34666
34667
34668
34669
34670
34671
34672
34673
34674
34675
34676
34677
34678
34679
34680
34681
34682
34683
34684
34685
34686
34687
34688
34689
34690
34691
34692
34693
34694
34695
34696
34697
34698
34699
34700
34701
34702
34703
34704
34705
34706
34707
34708
34709
34710
34711
34712
34713
34714
34715
34716
34717
34718
34719
34720
34721
34722
34723
34724
34725
34726
34727
34728
34729
34730
34731
34732
34733
34734
34735
34736
34737
34738
34739
34740
34741
34742
34743
34744
34745
34746
34747
34748
34749
34750
34751
34752
34753
34754
34755
34756
34757
34758
34759
34760
34761
34762
34763
34764
34765
34766
34767
34768
34769
34770
34771
34772
34773
34774
34775
34776
34777
34778
34779
34780
34781
34782
34783
34784
34785
34786
34787
34788
34789
34790
34791
34792
34793
34794
34795
34796
34797
34798
34799
34800
34801
34802
34803
34804
34805
34806
34807
34808
34809
34810
34811
34812
34813
34814
34815
34816
34817
34818
34819
34820
34821
34822
34823
34824
34825
34826
34827
34828
34829
34830
34831
34832
34833
34834
34835
34836
34837
34838
34839
34840
34841
34842
34843
34844
34845
34846
34847
34848
34849
34850
34851
34852
34853
34854
34855
34856
34857
34858
34859
34860
34861
34862
34863
34864
34865
34866
34867
34868
34869
34870
34871
34872
34873
34874
34875
34876
34877
34878
34879
34880
34881
34882
34883
34884
34885
34886
34887
34888
34889
34890
34891
34892
34893
34894
34895
34896
34897
34898
34899
34900
34901
34902
34903
34904
34905
34906
34907
34908
34909
34910
34911
34912
34913
34914
34915
34916
34917
34918
34919
34920
34921
34922
34923
34924
34925
34926
34927
34928
34929
34930
34931
34932
34933
34934
34935
34936
34937
34938
34939
34940
34941
34942
34943
34944
34945
34946
34947
34948
34949
34950
34951
34952
34953
34954
34955
34956
34957
34958
34959
34960
34961
34962
34963
34964
34965
34966
34967
34968
34969
34970
34971
34972
34973
34974
34975
34976
34977
34978
34979
34980
34981
34982
34983
34984
34985
34986
34987
34988
34989
34990
34991
34992
34993
34994
34995
34996
34997
34998
34999
35000
35001
35002
35003
35004
35005
35006
35007
35008
35009
35010
35011
35012
35013
35014
35015
35016
35017
35018
35019
35020
35021
35022
35023
35024
35025
35026
35027
35028
35029
35030
35031
35032
35033
35034
35035
35036
35037
35038
35039
35040
35041
35042
35043
35044
35045
35046
35047
35048
35049
35050
35051
35052
35053
35054
35055
35056
35057
35058
35059
35060
35061
35062
35063
35064
35065
35066
35067
35068
35069
35070
35071
35072
35073
35074
35075
35076
35077
35078
35079
35080
35081
35082
35083
35084
35085
35086
35087
35088
35089
35090
35091
35092
35093
35094
35095
35096
35097
35098
35099
35100
35101
35102
35103
35104
35105
35106
35107
35108
35109
35110
35111
35112
35113
35114
35115
35116
35117
35118
35119
35120
35121
35122
35123
35124
35125
35126
35127
35128
35129
35130
35131
35132
35133
35134
35135
35136
35137
35138
35139
35140
35141
35142
35143
35144
35145
35146
35147
35148
35149
35150
35151
35152
35153
35154
35155
35156
35157
35158
35159
35160
35161
35162
35163
35164
35165
35166
35167
35168
35169
35170
35171
35172
35173
35174
35175
35176
35177
35178
35179
35180
35181
35182
35183
35184
35185
35186
35187
35188
35189
35190
35191
35192
35193
35194
35195
35196
35197
35198
35199
35200
35201
35202
35203
35204
35205
35206
35207
35208
35209
35210
35211
35212
35213
35214
35215
35216
35217
35218
35219
35220
35221
35222
35223
35224
35225
35226
35227
35228
35229
35230
35231
35232
35233
35234
35235
35236
35237
35238
35239
35240
35241
35242
35243
35244
35245
35246
35247
35248
35249
35250
35251
35252
35253
35254
35255
35256
35257
35258
35259
35260
35261
35262
35263
35264
35265
35266
35267
35268
35269
35270
35271
35272
35273
35274
35275
35276
35277
35278
35279
35280
35281
35282
35283
35284
35285
35286
35287
35288
35289
35290
35291
35292
35293
35294
35295
35296
35297
35298
35299
35300
35301
35302
35303
35304
35305
35306
35307
35308
35309
35310
35311
35312
35313
35314
35315
35316
35317
35318
35319
35320
35321
35322
35323
35324
35325
35326
35327
35328
35329
35330
35331
35332
35333
35334
35335
35336
35337
35338
35339
35340
35341
35342
35343
35344
35345
35346
35347
35348
35349
35350
35351
35352
35353
35354
35355
35356
35357
35358
35359
35360
35361
35362
35363
35364
35365
35366
35367
35368
35369
35370
35371
35372
35373
35374
35375
35376
35377
35378
35379
35380
35381
35382
35383
35384
35385
35386
35387
35388
35389
35390
35391
35392
35393
35394
35395
35396
35397
35398
35399
35400
35401
35402
35403
35404
35405
35406
35407
35408
35409
35410
35411
35412
35413
35414
35415
35416
35417
35418
35419
35420
35421
35422
35423
35424
35425
35426
35427
35428
35429
35430
35431
35432
35433
35434
35435
35436
35437
35438
35439
35440
35441
35442
35443
35444
35445
35446
35447
35448
35449
35450
35451
35452
35453
35454
35455
35456
35457
35458
35459
35460
35461
35462
35463
35464
35465
35466
35467
35468
35469
35470
35471
35472
35473
35474
35475
35476
35477
35478
35479
35480
35481
35482
35483
35484
35485
35486
35487
35488
35489
35490
35491
35492
35493
35494
35495
35496
35497
35498
35499
35500
35501
35502
35503
35504
35505
35506
35507
35508
35509
35510
35511
35512
35513
35514
35515
35516
35517
35518
35519
35520
35521
35522
35523
35524
35525
35526
35527
35528
35529
35530
35531
35532
35533
35534
35535
35536
35537
35538
35539
35540
35541
35542
35543
35544
35545
35546
35547
35548
35549
35550
35551
35552
35553
35554
35555
35556
35557
35558
35559
35560
35561
35562
35563
35564
35565
35566
35567
35568
35569
35570
35571
35572
35573
35574
35575
35576
35577
35578
35579
35580
35581
35582
35583
35584
35585
35586
35587
35588
35589
35590
35591
35592
35593
35594
35595
35596
35597
35598
35599
35600
35601
35602
35603
35604
35605
35606
35607
35608
35609
35610
35611
35612
35613
35614
35615
35616
35617
35618
35619
35620
35621
35622
35623
35624
35625
35626
35627
35628
35629
35630
35631
35632
35633
35634
35635
35636
35637
35638
35639
35640
35641
35642
35643
35644
35645
35646
35647
35648
35649
35650
35651
35652
35653
35654
35655
35656
35657
35658
35659
35660
35661
35662
35663
35664
35665
35666
35667
35668
35669
35670
35671
35672
35673
35674
35675
35676
35677
35678
35679
35680
35681
35682
35683
35684
35685
35686
35687
35688
35689
35690
35691
35692
35693
35694
35695
35696
35697
35698
35699
35700
35701
35702
35703
35704
35705
35706
35707
35708
35709
35710
35711
35712
35713
35714
35715
35716
35717
35718
35719
35720
35721
35722
35723
35724
35725
35726
35727
35728
35729
35730
35731
35732
35733
35734
35735
35736
35737
35738
35739
35740
35741
35742
35743
35744
35745
35746
35747
35748
35749
35750
35751
35752
35753
35754
35755
35756
35757
35758
35759
35760
35761
35762
35763
35764
35765
35766
35767
35768
35769
35770
35771
35772
35773
35774
35775
35776
35777
35778
35779
35780
35781
35782
35783
35784
35785
35786
35787
35788
35789
35790
35791
35792
35793
35794
35795
35796
35797
35798
35799
35800
35801
35802
35803
35804
35805
35806
35807
35808
35809
35810
35811
35812
35813
35814
35815
35816
35817
35818
35819
35820
35821
35822
35823
35824
35825
35826
35827
35828
35829
35830
35831
35832
35833
35834
35835
35836
35837
35838
35839
35840
35841
35842
35843
35844
35845
35846
35847
35848
35849
35850
35851
35852
35853
35854
35855
35856
35857
35858
35859
35860
35861
35862
35863
35864
35865
35866
35867
35868
35869
35870
35871
35872
35873
35874
35875
35876
35877
35878
35879
35880
35881
35882
35883
35884
35885
35886
35887
35888
35889
35890
35891
35892
35893
35894
35895
35896
35897
35898
35899
35900
35901
35902
35903
35904
35905
35906
35907
35908
35909
35910
35911
35912
35913
35914
35915
35916
35917
35918
35919
35920
35921
35922
35923
35924
35925
35926
35927
35928
35929
35930
35931
35932
35933
35934
35935
35936
35937
35938
35939
35940
35941
35942
35943
35944
35945
35946
35947
35948
35949
35950
35951
35952
35953
35954
35955
35956
35957
35958
35959
35960
35961
35962
35963
35964
35965
35966
35967
35968
35969
35970
35971
35972
35973
35974
35975
35976
35977
35978
35979
35980
35981
35982
35983
35984
35985
35986
35987
35988
35989
35990
35991
35992
35993
35994
35995
35996
35997
35998
35999
36000
36001
36002
36003
36004
36005
36006
36007
36008
36009
36010
36011
36012
36013
36014
36015
36016
36017
36018
36019
36020
36021
36022
36023
36024
36025
36026
36027
36028
36029
36030
36031
36032
36033
36034
36035
36036
36037
36038
36039
36040
36041
36042
36043
36044
36045
36046
36047
36048
36049
36050
36051
36052
36053
36054
36055
36056
36057
36058
36059
36060
36061
36062
36063
36064
36065
36066
36067
36068
36069
36070
36071
36072
36073
36074
36075
36076
36077
36078
36079
36080
36081
36082
36083
36084
36085
36086
36087
36088
36089
36090
36091
36092
36093
36094
36095
36096
36097
36098
36099
36100
36101
36102
36103
36104
36105
36106
36107
36108
36109
36110
36111
36112
36113
36114
36115
36116
36117
36118
36119
36120
36121
36122
36123
36124
36125
36126
36127
36128
36129
36130
36131
36132
36133
36134
36135
36136
36137
36138
36139
36140
36141
36142
36143
36144
36145
36146
36147
36148
36149
36150
36151
36152
36153
36154
36155
36156
36157
36158
36159
36160
36161
36162
36163
36164
36165
36166
36167
36168
36169
36170
36171
36172
36173
36174
36175
36176
36177
36178
36179
36180
36181
36182
36183
36184
36185
36186
36187
36188
36189
36190
36191
36192
36193
36194
36195
36196
36197
36198
36199
36200
36201
36202
36203
36204
36205
36206
36207
36208
36209
36210
36211
36212
36213
36214
36215
36216
36217
36218
36219
36220
36221
36222
36223
36224
36225
36226
36227
36228
36229
36230
36231
36232
36233
36234
36235
36236
36237
36238
36239
36240
36241
36242
36243
36244
36245
36246
36247
36248
36249
36250
36251
36252
36253
36254
36255
36256
36257
36258
36259
36260
36261
36262
36263
36264
36265
36266
36267
36268
36269
36270
36271
36272
36273
36274
36275
36276
36277
36278
36279
36280
36281
36282
36283
36284
36285
36286
36287
36288
36289
36290
36291
36292
36293
36294
36295
36296
36297
36298
36299
36300
36301
36302
36303
36304
36305
36306
36307
36308
36309
36310
36311
36312
36313
36314
36315
36316
36317
36318
36319
36320
36321
36322
36323
36324
36325
36326
36327
36328
36329
36330
36331
36332
36333
36334
36335
36336
36337
36338
36339
36340
36341
36342
36343
36344
36345
36346
36347
36348
36349
36350
36351
36352
36353
36354
36355
36356
36357
36358
36359
36360
36361
36362
36363
36364
36365
36366
36367
36368
36369
36370
36371
36372
36373
36374
36375
36376
36377
36378
36379
36380
36381
36382
36383
36384
36385
36386
36387
36388
36389
36390
36391
36392
36393
36394
36395
36396
36397
36398
36399
36400
36401
36402
36403
36404
36405
36406
36407
36408
36409
36410
36411
36412
36413
36414
36415
36416
36417
36418
36419
36420
36421
36422
36423
36424
36425
36426
36427
36428
36429
36430
36431
36432
36433
36434
36435
36436
36437
36438
36439
36440
36441
36442
36443
36444
36445
36446
36447
36448
36449
36450
36451
36452
36453
36454
36455
36456
36457
36458
36459
36460
36461
36462
36463
36464
36465
36466
36467
36468
36469
36470
36471
36472
36473
36474
36475
36476
36477
36478
36479
36480
36481
36482
36483
36484
36485
36486
36487
36488
36489
36490
36491
36492
36493
36494
36495
36496
36497
36498
36499
36500
36501
36502
36503
36504
36505
36506
36507
36508
36509
36510
36511
36512
36513
36514
36515
36516
36517
36518
36519
36520
36521
36522
36523
36524
36525
36526
36527
36528
36529
36530
36531
36532
36533
36534
36535
36536
36537
36538
36539
36540
36541
36542
36543
36544
36545
36546
36547
36548
36549
36550
36551
36552
36553
36554
36555
36556
36557
36558
36559
36560
36561
36562
36563
36564
36565
36566
36567
36568
36569
36570
36571
36572
36573
36574
36575
36576
36577
36578
36579
36580
36581
36582
36583
36584
36585
36586
36587
36588
36589
36590
36591
36592
36593
36594
36595
36596
36597
36598
36599
36600
36601
36602
36603
36604
36605
36606
36607
36608
36609
36610
36611
36612
36613
36614
36615
36616
36617
36618
36619
36620
36621
36622
36623
36624
36625
36626
36627
36628
36629
36630
36631
36632
36633
36634
36635
36636
36637
36638
36639
36640
36641
36642
36643
36644
36645
36646
36647
36648
36649
36650
36651
36652
36653
36654
36655
36656
36657
36658
36659
36660
36661
36662
36663
36664
36665
36666
36667
36668
36669
36670
36671
36672
36673
36674
36675
36676
36677
36678
36679
36680
36681
36682
36683
36684
36685
36686
36687
36688
36689
36690
36691
36692
36693
36694
36695
36696
36697
36698
36699
36700
36701
36702
36703
36704
36705
36706
36707
36708
36709
36710
36711
36712
36713
36714
36715
36716
36717
36718
36719
36720
36721
36722
36723
36724
36725
36726
36727
36728
36729
36730
36731
36732
36733
36734
36735
36736
36737
36738
36739
36740
36741
36742
36743
36744
36745
36746
36747
36748
36749
36750
36751
36752
36753
36754
36755
36756
36757
36758
36759
36760
36761
36762
36763
36764
36765
36766
36767
36768
36769
36770
36771
36772
36773
36774
36775
36776
36777
36778
36779
36780
36781
36782
36783
36784
36785
36786
36787
36788
36789
36790
36791
36792
36793
36794
36795
36796
36797
36798
36799
36800
36801
36802
36803
36804
36805
36806
36807
36808
36809
36810
36811
36812
36813
36814
36815
36816
36817
36818
36819
36820
36821
36822
36823
36824
36825
36826
36827
36828
36829
36830
36831
36832
36833
36834
36835
36836
36837
36838
36839
36840
36841
36842
36843
36844
36845
36846
36847
36848
36849
36850
36851
36852
36853
36854
36855
36856
36857
36858
36859
36860
36861
36862
36863
36864
36865
36866
36867
36868
36869
36870
36871
36872
36873
36874
36875
36876
36877
36878
36879
36880
36881
36882
36883
36884
36885
36886
36887
36888
36889
36890
36891
36892
36893
36894
36895
36896
36897
36898
36899
36900
36901
36902
36903
36904
36905
36906
36907
36908
36909
36910
36911
36912
36913
36914
36915
36916
36917
36918
36919
36920
36921
36922
36923
36924
36925
36926
36927
36928
36929
36930
36931
36932
36933
36934
36935
36936
36937
36938
36939
36940
36941
36942
36943
36944
36945
36946
36947
36948
36949
36950
36951
36952
36953
36954
36955
36956
36957
36958
36959
36960
36961
36962
36963
36964
36965
36966
36967
36968
36969
36970
36971
36972
36973
36974
36975
36976
36977
36978
36979
36980
36981
36982
36983
36984
36985
36986
36987
36988
36989
36990
36991
36992
36993
36994
36995
36996
36997
36998
36999
37000
37001
37002
37003
37004
37005
37006
37007
37008
37009
37010
37011
37012
37013
37014
37015
37016
37017
37018
37019
37020
37021
37022
37023
37024
37025
37026
37027
37028
37029
37030
37031
37032
37033
37034
37035
37036
37037
37038
37039
37040
37041
37042
37043
37044
37045
37046
37047
37048
37049
37050
37051
37052
37053
37054
37055
37056
37057
37058
37059
37060
37061
37062
37063
37064
37065
37066
37067
37068
37069
37070
37071
37072
37073
37074
37075
37076
37077
37078
37079
37080
37081
37082
37083
37084
37085
37086
37087
37088
37089
37090
37091
37092
37093
37094
37095
37096
37097
37098
37099
37100
37101
37102
37103
37104
37105
37106
37107
37108
37109
37110
37111
37112
37113
37114
37115
37116
37117
37118
37119
37120
37121
37122
37123
37124
37125
37126
37127
37128
37129
37130
37131
37132
37133
37134
37135
37136
37137
37138
37139
37140
37141
37142
37143
37144
37145
37146
37147
37148
37149
37150
37151
37152
37153
37154
37155
37156
37157
37158
37159
37160
37161
37162
37163
37164
37165
37166
37167
37168
37169
37170
37171
37172
37173
37174
37175
37176
37177
37178
37179
37180
37181
37182
37183
37184
37185
37186
37187
37188
37189
37190
37191
37192
37193
37194
37195
37196
37197
37198
37199
37200
37201
37202
37203
37204
37205
37206
37207
37208
37209
37210
37211
37212
37213
37214
37215
37216
37217
37218
37219
37220
37221
37222
37223
37224
37225
37226
37227
37228
37229
37230
37231
37232
37233
37234
37235
37236
37237
37238
37239
37240
37241
37242
37243
37244
37245
37246
37247
37248
37249
37250
37251
37252
37253
37254
37255
37256
37257
37258
37259
37260
37261
37262
37263
37264
37265
37266
37267
37268
37269
37270
37271
37272
37273
37274
37275
37276
37277
37278
37279
37280
37281
37282
37283
37284
37285
37286
37287
37288
37289
37290
37291
37292
37293
37294
37295
37296
37297
37298
37299
37300
37301
37302
37303
37304
37305
37306
37307
37308
37309
37310
37311
37312
37313
37314
37315
37316
37317
37318
37319
37320
37321
37322
37323
37324
37325
37326
37327
37328
37329
37330
37331
37332
37333
37334
37335
37336
37337
37338
37339
37340
37341
37342
37343
37344
37345
37346
37347
37348
37349
37350
37351
37352
37353
37354
37355
37356
37357
37358
37359
37360
37361
37362
37363
37364
37365
37366
37367
37368
37369
37370
37371
37372
37373
37374
37375
37376
37377
37378
37379
37380
37381
37382
37383
37384
37385
37386
37387
37388
37389
37390
37391
37392
37393
37394
37395
37396
37397
37398
37399
37400
37401
37402
37403
37404
37405
37406
37407
37408
37409
37410
37411
37412
37413
37414
37415
37416
37417
37418
37419
37420
37421
37422
37423
37424
37425
37426
37427
37428
37429
37430
37431
37432
37433
37434
37435
37436
37437
37438
37439
37440
37441
37442
37443
37444
37445
37446
37447
37448
37449
37450
37451
37452
37453
37454
37455
37456
37457
37458
37459
37460
37461
37462
37463
37464
37465
37466
37467
37468
37469
37470
37471
37472
37473
37474
37475
37476
37477
37478
37479
37480
37481
37482
37483
37484
37485
37486
37487
37488
37489
37490
37491
37492
37493
37494
37495
37496
37497
37498
37499
37500
37501
37502
37503
37504
37505
37506
37507
37508
37509
37510
37511
37512
37513
37514
37515
37516
37517
37518
37519
37520
37521
37522
37523
37524
37525
37526
37527
37528
37529
37530
37531
37532
37533
37534
37535
37536
37537
37538
37539
37540
37541
37542
37543
37544
37545
37546
37547
37548
37549
37550
37551
37552
37553
37554
37555
37556
37557
37558
37559
37560
37561
37562
37563
37564
37565
37566
37567
37568
37569
37570
37571
37572
37573
37574
37575
37576
37577
37578
37579
37580
37581
37582
37583
37584
37585
37586
37587
37588
37589
37590
37591
37592
37593
37594
37595
37596
37597
37598
37599
37600
37601
37602
37603
37604
37605
37606
37607
37608
37609
37610
37611
37612
37613
37614
37615
37616
37617
37618
37619
37620
37621
37622
37623
37624
37625
37626
37627
37628
37629
37630
37631
37632
37633
37634
37635
37636
37637
37638
37639
37640
37641
37642
37643
37644
37645
37646
37647
37648
37649
37650
37651
37652
37653
37654
37655
37656
37657
37658
37659
37660
37661
37662
37663
37664
37665
37666
37667
37668
37669
37670
37671
37672
37673
37674
37675
37676
37677
37678
37679
37680
37681
37682
37683
37684
37685
37686
37687
37688
37689
37690
37691
37692
37693
37694
37695
37696
37697
37698
37699
37700
37701
37702
37703
37704
37705
37706
37707
37708
37709
37710
37711
37712
37713
37714
37715
37716
37717
37718
37719
37720
37721
37722
37723
37724
37725
37726
37727
37728
37729
37730
37731
37732
37733
37734
37735
37736
37737
37738
37739
37740
37741
37742
37743
37744
37745
37746
37747
37748
37749
37750
37751
37752
37753
37754
37755
37756
37757
37758
37759
37760
37761
37762
37763
37764
37765
37766
37767
37768
37769
37770
37771
37772
37773
37774
37775
37776
37777
37778
37779
37780
37781
37782
37783
37784
37785
37786
37787
37788
37789
37790
37791
37792
37793
37794
37795
37796
37797
37798
37799
37800
37801
37802
37803
37804
37805
37806
37807
37808
37809
37810
37811
37812
37813
37814
37815
37816
37817
37818
37819
37820
37821
37822
37823
37824
37825
37826
37827
37828
37829
37830
37831
37832
37833
37834
37835
37836
37837
37838
37839
37840
37841
37842
37843
37844
37845
37846
37847
37848
37849
37850
37851
37852
37853
37854
37855
37856
37857
37858
37859
37860
37861
37862
37863
37864
37865
37866
37867
37868
37869
37870
37871
37872
37873
37874
37875
37876
37877
37878
37879
37880
37881
37882
37883
37884
37885
37886
37887
37888
37889
37890
37891
37892
37893
37894
37895
37896
37897
37898
37899
37900
37901
37902
37903
37904
37905
37906
37907
37908
37909
37910
37911
37912
37913
37914
37915
37916
37917
37918
37919
37920
37921
37922
37923
37924
37925
37926
37927
37928
37929
37930
37931
37932
37933
37934
37935
37936
37937
37938
37939
37940
37941
37942
37943
37944
37945
37946
37947
37948
37949
37950
37951
37952
37953
37954
37955
37956
37957
37958
37959
37960
37961
37962
37963
37964
37965
37966
37967
37968
37969
37970
37971
37972
37973
37974
37975
37976
37977
37978
37979
37980
37981
37982
37983
37984
37985
37986
37987
37988
37989
37990
37991
37992
37993
37994
37995
37996
37997
37998
37999
38000
38001
38002
38003
38004
38005
38006
38007
38008
38009
38010
38011
38012
38013
38014
38015
38016
38017
38018
38019
38020
38021
38022
38023
38024
38025
38026
38027
38028
38029
38030
38031
38032
38033
38034
38035
38036
38037
38038
38039
38040
38041
38042
38043
38044
38045
38046
38047
38048
38049
38050
38051
38052
38053
38054
38055
38056
38057
38058
38059
38060
38061
38062
38063
38064
38065
38066
38067
38068
38069
38070
38071
38072
38073
38074
38075
38076
38077
38078
38079
38080
38081
38082
38083
38084
38085
38086
38087
38088
38089
38090
38091
38092
38093
38094
38095
38096
38097
38098
38099
38100
38101
38102
38103
38104
38105
38106
38107
38108
38109
38110
38111
38112
38113
38114
38115
38116
38117
38118
38119
38120
38121
38122
38123
38124
38125
38126
38127
38128
38129
38130
38131
38132
38133
38134
38135
38136
38137
38138
38139
38140
38141
38142
38143
38144
38145
38146
38147
38148
38149
38150
38151
38152
38153
38154
38155
38156
38157
38158
38159
38160
38161
38162
38163
38164
38165
38166
38167
38168
38169
38170
38171
38172
38173
38174
38175
38176
38177
38178
38179
38180
38181
38182
38183
38184
38185
38186
38187
38188
38189
38190
38191
38192
38193
38194
38195
38196
38197
38198
38199
38200
38201
38202
38203
38204
38205
38206
38207
38208
38209
38210
38211
38212
38213
38214
38215
38216
38217
38218
38219
38220
38221
38222
38223
38224
38225
38226
38227
38228
38229
38230
38231
38232
38233
38234
38235
38236
38237
38238
38239
38240
38241
38242
38243
38244
38245
38246
38247
38248
38249
38250
38251
38252
38253
38254
38255
38256
38257
38258
38259
38260
38261
38262
38263
38264
38265
38266
38267
38268
38269
38270
38271
38272
38273
38274
38275
38276
38277
38278
38279
38280
38281
38282
38283
38284
38285
38286
38287
38288
38289
38290
38291
38292
38293
38294
38295
38296
38297
38298
38299
38300
38301
38302
38303
38304
38305
38306
38307
38308
38309
38310
38311
38312
38313
38314
38315
38316
38317
38318
38319
38320
38321
38322
38323
38324
38325
38326
38327
38328
38329
38330
38331
38332
38333
38334
38335
38336
38337
38338
38339
38340
38341
38342
38343
38344
38345
38346
38347
38348
38349
38350
38351
38352
38353
38354
38355
38356
38357
38358
38359
38360
38361
38362
38363
38364
38365
38366
38367
38368
38369
38370
38371
38372
38373
38374
38375
38376
38377
38378
38379
38380
38381
38382
38383
38384
38385
38386
38387
38388
38389
38390
38391
38392
38393
38394
38395
38396
38397
38398
38399
38400
38401
38402
38403
38404
38405
38406
38407
38408
38409
38410
38411
38412
38413
38414
38415
38416
38417
38418
38419
38420
38421
38422
38423
38424
38425
38426
38427
38428
38429
38430
38431
38432
38433
38434
38435
38436
38437
38438
38439
38440
38441
38442
38443
38444
38445
38446
38447
38448
38449
38450
38451
38452
38453
38454
38455
38456
38457
38458
38459
38460
38461
38462
38463
38464
38465
38466
38467
38468
38469
38470
38471
38472
38473
38474
38475
38476
38477
38478
38479
38480
38481
38482
38483
38484
38485
38486
38487
38488
38489
38490
38491
38492
38493
38494
38495
38496
38497
38498
38499
38500
38501
38502
38503
38504
38505
38506
38507
38508
38509
38510
38511
38512
38513
38514
38515
38516
38517
38518
38519
38520
38521
38522
38523
38524
38525
38526
38527
38528
38529
38530
38531
38532
38533
38534
38535
38536
38537
38538
38539
38540
38541
38542
38543
38544
38545
38546
38547
38548
38549
38550
38551
38552
38553
38554
38555
38556
38557
38558
38559
38560
38561
38562
38563
38564
38565
38566
38567
38568
38569
38570
38571
38572
38573
38574
38575
38576
38577
38578
38579
38580
38581
38582
38583
38584
38585
38586
38587
38588
38589
38590
38591
38592
38593
38594
38595
38596
38597
38598
38599
38600
38601
38602
38603
38604
38605
38606
38607
38608
38609
38610
38611
38612
38613
38614
38615
38616
38617
38618
38619
38620
38621
38622
38623
38624
38625
38626
38627
38628
38629
38630
38631
38632
38633
38634
38635
38636
38637
38638
38639
38640
38641
38642
38643
38644
38645
38646
38647
38648
38649
38650
38651
38652
38653
38654
38655
38656
38657
38658
38659
38660
38661
38662
38663
38664
38665
38666
38667
38668
38669
38670
38671
38672
38673
38674
38675
38676
38677
38678
38679
38680
38681
38682
38683
38684
38685
38686
38687
38688
38689
38690
38691
38692
38693
38694
38695
38696
38697
38698
38699
38700
38701
38702
38703
38704
38705
38706
38707
38708
38709
38710
38711
38712
38713
38714
38715
38716
38717
38718
38719
38720
38721
38722
38723
38724
38725
38726
38727
38728
38729
38730
38731
38732
38733
38734
38735
38736
38737
38738
38739
38740
38741
38742
38743
38744
38745
38746
38747
38748
38749
38750
38751
38752
38753
38754
38755
38756
38757
38758
38759
38760
38761
38762
38763
38764
38765
38766
38767
38768
38769
38770
38771
38772
38773
38774
38775
38776
38777
38778
38779
38780
38781
38782
38783
38784
38785
38786
38787
38788
38789
38790
38791
38792
38793
38794
38795
38796
38797
38798
38799
38800
38801
38802
38803
38804
38805
38806
38807
38808
38809
38810
38811
38812
38813
38814
38815
38816
38817
38818
38819
38820
38821
38822
38823
38824
38825
38826
38827
38828
38829
38830
38831
38832
38833
38834
38835
38836
38837
38838
38839
38840
38841
38842
38843
38844
38845
38846
38847
38848
38849
38850
38851
38852
38853
38854
38855
38856
38857
38858
38859
38860
38861
38862
38863
38864
38865
38866
38867
38868
38869
38870
38871
38872
38873
38874
38875
38876
38877
38878
38879
38880
38881
38882
38883
38884
38885
38886
38887
38888
38889
38890
38891
38892
38893
38894
38895
38896
38897
38898
38899
38900
38901
38902
38903
38904
38905
38906
38907
38908
38909
38910
38911
38912
38913
38914
38915
38916
38917
38918
38919
38920
38921
38922
38923
38924
38925
38926
38927
38928
38929
38930
38931
38932
38933
38934
38935
38936
38937
38938
38939
38940
38941
38942
38943
38944
38945
38946
38947
38948
38949
38950
38951
38952
38953
38954
38955
38956
38957
38958
38959
38960
38961
38962
38963
38964
38965
38966
38967
38968
38969
38970
38971
38972
38973
38974
38975
38976
38977
38978
38979
38980
38981
38982
38983
38984
38985
38986
38987
38988
38989
38990
38991
38992
38993
38994
38995
38996
38997
38998
38999
39000
39001
39002
39003
39004
39005
39006
39007
39008
39009
39010
39011
39012
39013
39014
39015
39016
39017
39018
39019
39020
39021
39022
39023
39024
39025
39026
39027
39028
39029
39030
39031
39032
39033
39034
39035
39036
39037
39038
39039
39040
39041
39042
39043
39044
39045
39046
39047
39048
39049
39050
39051
39052
39053
39054
39055
39056
39057
39058
39059
39060
39061
39062
39063
39064
39065
39066
39067
39068
39069
39070
39071
39072
39073
39074
39075
39076
39077
39078
39079
39080
39081
39082
39083
39084
39085
39086
39087
39088
39089
39090
39091
39092
39093
39094
39095
39096
39097
39098
39099
39100
39101
39102
39103
39104
39105
39106
39107
39108
39109
39110
39111
39112
39113
39114
39115
39116
39117
39118
39119
39120
39121
39122
39123
39124
39125
39126
39127
39128
39129
39130
39131
39132
39133
39134
39135
39136
39137
39138
39139
39140
39141
39142
39143
39144
39145
39146
39147
39148
39149
39150
39151
39152
39153
39154
39155
39156
39157
39158
39159
39160
39161
39162
39163
39164
39165
39166
39167
39168
39169
39170
39171
39172
39173
39174
39175
39176
39177
39178
39179
39180
39181
39182
39183
39184
39185
39186
39187
39188
39189
39190
39191
39192
39193
39194
39195
39196
39197
39198
39199
39200
39201
39202
39203
39204
39205
39206
39207
39208
39209
39210
39211
39212
39213
39214
39215
39216
39217
39218
39219
39220
39221
39222
39223
39224
39225
39226
39227
39228
39229
39230
39231
39232
39233
39234
39235
39236
39237
39238
39239
39240
39241
39242
39243
39244
39245
39246
39247
39248
39249
39250
39251
39252
39253
39254
39255
39256
39257
39258
39259
39260
39261
39262
39263
39264
39265
39266
39267
39268
39269
39270
39271
39272
39273
39274
39275
39276
39277
39278
39279
39280
39281
39282
39283
39284
39285
39286
39287
39288
39289
39290
39291
39292
39293
39294
39295
39296
39297
39298
39299
39300
39301
39302
39303
39304
39305
39306
39307
39308
39309
39310
39311
39312
39313
39314
39315
39316
39317
39318
39319
39320
39321
39322
39323
39324
39325
39326
39327
39328
39329
39330
39331
39332
39333
39334
39335
39336
39337
39338
39339
39340
39341
39342
39343
39344
39345
39346
39347
39348
39349
39350
39351
39352
39353
39354
39355
39356
39357
39358
39359
39360
39361
39362
39363
39364
39365
39366
39367
39368
39369
39370
39371
39372
39373
39374
39375
39376
39377
39378
39379
39380
39381
39382
39383
39384
39385
39386
39387
39388
39389
39390
39391
39392
39393
39394
39395
39396
39397
39398
39399
39400
39401
39402
39403
39404
39405
39406
39407
39408
39409
39410
39411
39412
39413
39414
39415
39416
39417
39418
39419
39420
39421
39422
39423
39424
39425
39426
39427
39428
39429
39430
39431
39432
39433
39434
39435
39436
39437
39438
39439
39440
39441
39442
39443
39444
39445
39446
39447
39448
39449
39450
39451
39452
39453
39454
39455
39456
39457
39458
39459
39460
39461
39462
39463
39464
39465
39466
39467
39468
39469
39470
39471
39472
39473
39474
39475
39476
39477
39478
39479
39480
39481
39482
39483
39484
39485
39486
39487
39488
39489
39490
39491
39492
39493
39494
39495
39496
39497
39498
39499
39500
39501
39502
39503
39504
39505
39506
39507
39508
39509
39510
39511
39512
39513
39514
39515
39516
39517
39518
39519
39520
39521
39522
39523
39524
39525
39526
39527
39528
39529
39530
39531
39532
39533
39534
39535
39536
39537
39538
39539
39540
39541
39542
39543
39544
39545
39546
39547
39548
39549
39550
39551
39552
39553
39554
39555
39556
39557
39558
39559
39560
39561
39562
39563
39564
39565
39566
39567
39568
39569
39570
39571
39572
39573
39574
39575
39576
39577
39578
39579
39580
39581
39582
39583
39584
39585
39586
39587
39588
39589
39590
39591
39592
39593
39594
39595
39596
39597
39598
39599
39600
39601
39602
39603
39604
39605
39606
39607
39608
39609
39610
39611
39612
39613
39614
39615
39616
39617
39618
39619
39620
39621
39622
39623
39624
39625
39626
39627
39628
39629
39630
39631
39632
39633
39634
39635
39636
39637
39638
39639
39640
39641
39642
39643
39644
39645
39646
39647
39648
39649
39650
39651
39652
39653
39654
39655
39656
39657
39658
39659
39660
39661
39662
39663
39664
39665
39666
39667
39668
39669
39670
39671
39672
39673
39674
39675
39676
39677
39678
39679
39680
39681
39682
39683
39684
39685
39686
39687
39688
39689
39690
39691
39692
39693
39694
39695
39696
39697
39698
39699
39700
39701
39702
39703
39704
39705
39706
39707
39708
39709
39710
39711
39712
39713
39714
39715
39716
39717
39718
39719
39720
39721
39722
39723
39724
39725
39726
39727
39728
39729
39730
39731
39732
39733
39734
39735
39736
39737
39738
39739
39740
39741
39742
39743
39744
39745
39746
39747
39748
39749
39750
39751
39752
39753
39754
39755
39756
39757
39758
39759
39760
39761
39762
39763
39764
39765
39766
39767
39768
39769
39770
39771
39772
39773
39774
39775
39776
39777
39778
39779
39780
39781
39782
39783
39784
39785
39786
39787
39788
39789
39790
39791
39792
39793
39794
39795
39796
39797
39798
39799
39800
39801
39802
39803
39804
39805
39806
39807
39808
39809
39810
39811
39812
39813
39814
39815
39816
39817
39818
39819
39820
39821
39822
39823
39824
39825
39826
39827
39828
39829
39830
39831
39832
39833
39834
39835
39836
39837
39838
39839
39840
39841
39842
39843
39844
39845
39846
39847
39848
39849
39850
39851
39852
39853
39854
39855
39856
39857
39858
39859
39860
39861
39862
39863
39864
39865
39866
39867
39868
39869
39870
39871
39872
39873
39874
39875
39876
39877
39878
39879
39880
39881
39882
39883
39884
39885
39886
39887
39888
39889
39890
39891
39892
39893
39894
39895
39896
39897
39898
39899
39900
39901
39902
39903
39904
39905
39906
39907
39908
39909
39910
39911
39912
39913
39914
39915
39916
39917
39918
39919
39920
39921
39922
39923
39924
39925
39926
39927
39928
39929
39930
39931
39932
39933
39934
39935
39936
39937
39938
39939
39940
39941
39942
39943
39944
39945
39946
39947
39948
39949
39950
39951
39952
39953
39954
39955
39956
39957
39958
39959
39960
39961
39962
39963
39964
39965
39966
39967
39968
39969
39970
39971
39972
39973
39974
39975
39976
39977
39978
39979
39980
39981
39982
39983
39984
39985
39986
39987
39988
39989
39990
39991
39992
39993
39994
39995
39996
39997
39998
39999
40000
40001
40002
40003
40004
40005
40006
40007
40008
40009
40010
40011
40012
40013
40014
40015
40016
40017
40018
40019
40020
40021
40022
40023
40024
40025
40026
40027
40028
40029
40030
40031
40032
40033
40034
40035
40036
40037
40038
40039
40040
40041
40042
40043
40044
40045
40046
40047
40048
40049
40050
40051
40052
40053
40054
40055
40056
40057
40058
40059
40060
40061
40062
40063
40064
40065
40066
40067
40068
40069
40070
40071
40072
40073
40074
40075
40076
40077
40078
40079
40080
40081
40082
40083
40084
40085
40086
40087
40088
40089
40090
40091
40092
40093
40094
40095
40096
40097
40098
40099
40100
40101
40102
40103
40104
40105
40106
40107
40108
40109
40110
40111
40112
40113
40114
40115
40116
40117
40118
40119
40120
40121
40122
40123
40124
40125
40126
40127
40128
40129
40130
40131
40132
40133
40134
40135
40136
40137
40138
40139
40140
40141
40142
40143
40144
40145
40146
40147
40148
40149
40150
40151
40152
40153
40154
40155
40156
40157
40158
40159
40160
40161
40162
40163
40164
40165
40166
40167
40168
40169
40170
40171
40172
40173
40174
40175
40176
40177
40178
40179
40180
40181
40182
40183
40184
40185
40186
40187
40188
40189
40190
40191
40192
40193
40194
40195
40196
40197
40198
40199
40200
40201
40202
40203
40204
40205
40206
40207
40208
40209
40210
40211
40212
40213
40214
40215
40216
40217
40218
40219
40220
40221
40222
40223
40224
40225
40226
40227
40228
40229
40230
40231
40232
40233
40234
40235
40236
40237
40238
40239
40240
40241
40242
40243
40244
40245
40246
40247
40248
40249
40250
40251
40252
40253
40254
40255
40256
40257
40258
40259
40260
40261
40262
40263
40264
40265
40266
40267
40268
40269
40270
40271
40272
40273
40274
40275
40276
40277
40278
40279
40280
40281
40282
40283
40284
40285
40286
40287
40288
40289
40290
40291
40292
40293
40294
40295
40296
40297
40298
40299
40300
40301
40302
40303
40304
40305
40306
40307
40308
40309
40310
40311
40312
40313
40314
40315
40316
40317
40318
40319
40320
40321
40322
40323
40324
40325
40326
40327
40328
40329
40330
40331
40332
40333
40334
40335
40336
40337
40338
40339
40340
40341
40342
40343
40344
40345
40346
40347
40348
40349
40350
40351
40352
40353
40354
40355
40356
40357
40358
40359
40360
40361
40362
40363
40364
40365
40366
40367
40368
40369
40370
40371
40372
40373
40374
40375
40376
40377
40378
40379
40380
40381
40382
40383
40384
40385
40386
40387
40388
40389
40390
40391
40392
40393
40394
40395
40396
40397
40398
40399
40400
40401
40402
40403
40404
40405
40406
40407
40408
40409
40410
40411
40412
40413
40414
40415
40416
40417
40418
40419
40420
40421
40422
40423
40424
40425
40426
40427
40428
40429
40430
40431
40432
40433
40434
40435
40436
40437
40438
40439
40440
40441
40442
40443
40444
40445
40446
40447
40448
40449
40450
40451
40452
40453
40454
40455
40456
40457
40458
40459
40460
40461
40462
40463
40464
40465
40466
40467
40468
40469
40470
40471
40472
40473
40474
40475
40476
40477
40478
40479
40480
40481
40482
40483
40484
40485
40486
40487
40488
40489
40490
40491
40492
40493
40494
40495
40496
40497
40498
40499
40500
40501
40502
40503
40504
40505
40506
40507
40508
40509
40510
40511
40512
40513
40514
40515
40516
40517
40518
40519
40520
40521
40522
40523
40524
40525
40526
40527
40528
40529
40530
40531
40532
40533
40534
40535
40536
40537
40538
40539
40540
40541
40542
40543
40544
40545
40546
40547
40548
40549
40550
40551
40552
40553
40554
40555
40556
40557
40558
40559
40560
40561
40562
40563
40564
40565
40566
40567
40568
40569
40570
40571
40572
40573
40574
40575
40576
40577
40578
40579
40580
40581
40582
40583
40584
40585
40586
40587
40588
40589
40590
40591
40592
40593
40594
40595
40596
40597
40598
40599
40600
40601
40602
40603
40604
40605
40606
40607
40608
40609
40610
40611
40612
40613
40614
40615
40616
40617
40618
40619
40620
40621
40622
40623
40624
40625
40626
40627
40628
40629
40630
40631
40632
40633
40634
40635
40636
40637
40638
40639
40640
40641
40642
40643
40644
40645
40646
40647
40648
40649
40650
40651
40652
40653
40654
40655
40656
40657
40658
40659
40660
40661
40662
40663
40664
40665
40666
40667
40668
40669
40670
40671
40672
40673
40674
40675
40676
40677
40678
40679
40680
40681
40682
40683
40684
40685
40686
40687
40688
40689
40690
40691
40692
40693
40694
40695
40696
40697
40698
40699
40700
40701
40702
40703
40704
40705
40706
40707
40708
40709
40710
40711
40712
40713
40714
40715
40716
40717
40718
40719
40720
40721
40722
40723
40724
40725
40726
40727
40728
40729
40730
40731
40732
40733
40734
40735
40736
40737
40738
40739
40740
40741
40742
40743
40744
40745
40746
40747
40748
40749
40750
40751
40752
40753
40754
40755
40756
40757
40758
40759
40760
40761
40762
40763
40764
40765
40766
40767
40768
40769
40770
40771
40772
40773
40774
40775
40776
40777
40778
40779
40780
40781
40782
40783
40784
40785
40786
40787
40788
40789
40790
40791
40792
40793
40794
40795
40796
40797
40798
40799
40800
40801
40802
40803
40804
40805
40806
40807
40808
40809
40810
40811
40812
40813
40814
40815
40816
40817
40818
40819
40820
40821
40822
40823
40824
40825
40826
40827
40828
40829
40830
40831
40832
40833
40834
40835
40836
40837
40838
40839
40840
40841
40842
40843
40844
40845
40846
40847
40848
40849
40850
40851
40852
40853
40854
40855
40856
40857
40858
40859
40860
40861
40862
40863
40864
40865
40866
40867
40868
40869
40870
40871
40872
40873
40874
40875
40876
40877
40878
40879
40880
40881
40882
40883
40884
40885
40886
40887
40888
40889
40890
40891
40892
40893
40894
40895
40896
40897
40898
40899
40900
40901
40902
40903
40904
40905
40906
40907
40908
40909
40910
40911
40912
40913
40914
40915
40916
40917
40918
40919
40920
40921
40922
40923
40924
40925
40926
40927
40928
40929
40930
40931
40932
40933
40934
40935
40936
40937
40938
40939
40940
40941
40942
40943
40944
40945
40946
40947
40948
40949
40950
40951
40952
40953
40954
40955
40956
40957
40958
40959
40960
40961
40962
40963
40964
40965
40966
40967
40968
40969
40970
40971
40972
40973
40974
40975
40976
40977
40978
40979
40980
40981
40982
40983
40984
40985
40986
40987
40988
40989
40990
40991
40992
40993
40994
40995
40996
40997
40998
40999
41000
41001
41002
41003
41004
41005
41006
41007
41008
41009
41010
41011
41012
41013
41014
41015
41016
41017
41018
41019
41020
41021
41022
41023
41024
41025
41026
41027
41028
41029
41030
41031
41032
41033
41034
41035
41036
41037
41038
41039
41040
41041
41042
41043
41044
41045
41046
41047
41048
41049
41050
41051
41052
41053
41054
41055
41056
41057
41058
41059
41060
41061
41062
41063
41064
41065
41066
41067
41068
41069
41070
41071
41072
41073
41074
41075
41076
41077
41078
41079
41080
41081
41082
41083
41084
41085
41086
41087
41088
41089
41090
41091
41092
41093
41094
41095
41096
41097
41098
41099
41100
41101
41102
41103
41104
41105
41106
41107
41108
41109
41110
41111
41112
41113
41114
41115
41116
41117
41118
41119
41120
41121
41122
41123
41124
41125
41126
41127
41128
41129
41130
41131
41132
41133
41134
41135
41136
41137
41138
41139
41140
41141
41142
41143
41144
41145
41146
41147
41148
41149
41150
41151
41152
41153
41154
41155
41156
41157
41158
41159
41160
41161
41162
41163
41164
41165
41166
41167
41168
41169
41170
41171
41172
41173
41174
41175
41176
41177
41178
41179
41180
41181
41182
41183
41184
41185
41186
41187
41188
41189
41190
41191
41192
41193
41194
41195
41196
41197
41198
41199
41200
41201
41202
41203
41204
41205
41206
41207
41208
41209
41210
41211
41212
41213
41214
41215
41216
41217
41218
41219
41220
41221
41222
41223
41224
41225
41226
41227
41228
41229
41230
41231
41232
41233
41234
41235
41236
41237
41238
41239
41240
41241
41242
41243
41244
41245
41246
41247
41248
41249
41250
41251
41252
41253
41254
41255
41256
41257
41258
41259
41260
41261
41262
41263
41264
41265
41266
41267
41268
41269
41270
41271
41272
41273
41274
41275
41276
41277
41278
41279
41280
41281
41282
41283
41284
41285
41286
41287
41288
41289
41290
41291
41292
41293
41294
41295
41296
41297
41298
41299
41300
41301
41302
41303
41304
41305
41306
41307
41308
41309
41310
41311
41312
41313
41314
41315
41316
41317
41318
41319
41320
41321
41322
41323
41324
41325
41326
41327
41328
41329
41330
41331
41332
41333
41334
41335
41336
41337
41338
41339
41340
41341
41342
41343
41344
41345
41346
41347
41348
41349
41350
41351
41352
41353
41354
41355
41356
41357
41358
41359
41360
41361
41362
41363
41364
41365
41366
41367
41368
41369
41370
41371
41372
41373
41374
41375
41376
41377
41378
41379
41380
41381
41382
41383
41384
41385
41386
41387
41388
41389
41390
41391
41392
41393
41394
41395
41396
41397
41398
41399
41400
41401
41402
41403
41404
41405
41406
41407
41408
41409
41410
41411
41412
41413
41414
41415
41416
41417
41418
41419
41420
41421
41422
41423
41424
41425
41426
41427
41428
41429
41430
41431
41432
41433
41434
41435
41436
41437
41438
41439
41440
41441
41442
41443
41444
41445
41446
41447
41448
41449
41450
41451
41452
41453
41454
41455
41456
41457
41458
41459
41460
41461
41462
41463
41464
41465
41466
41467
41468
41469
41470
41471
41472
41473
41474
41475
41476
41477
41478
41479
41480
41481
41482
41483
41484
41485
41486
41487
41488
41489
41490
41491
41492
41493
41494
41495
41496
41497
41498
41499
41500
41501
41502
41503
41504
41505
41506
41507
41508
41509
41510
41511
41512
41513
41514
41515
41516
41517
41518
41519
41520
41521
41522
41523
41524
41525
41526
41527
41528
41529
41530
41531
41532
41533
41534
41535
41536
41537
41538
41539
41540
41541
41542
41543
41544
41545
41546
41547
41548
41549
41550
41551
41552
41553
41554
41555
41556
41557
41558
41559
41560
41561
41562
41563
41564
41565
41566
41567
41568
41569
41570
41571
41572
41573
41574
41575
41576
41577
41578
41579
41580
41581
41582
41583
41584
41585
41586
41587
41588
41589
41590
41591
41592
41593
41594
41595
41596
41597
41598
41599
41600
41601
41602
41603
41604
41605
41606
41607
41608
41609
41610
41611
41612
41613
41614
41615
41616
41617
41618
41619
41620
41621
41622
41623
41624
41625
41626
41627
41628
41629
41630
41631
41632
41633
41634
41635
41636
41637
41638
41639
41640
41641
41642
41643
41644
41645
41646
41647
41648
41649
41650
41651
41652
41653
41654
41655
41656
41657
41658
41659
41660
41661
41662
41663
41664
41665
41666
41667
41668
41669
41670
41671
41672
41673
41674
41675
41676
41677
41678
41679
41680
41681
41682
41683
41684
41685
41686
41687
41688
41689
41690
41691
41692
41693
41694
41695
41696
41697
41698
41699
41700
41701
41702
41703
41704
41705
41706
41707
41708
41709
41710
41711
41712
41713
41714
41715
41716
41717
41718
41719
41720
41721
41722
41723
41724
41725
41726
41727
41728
41729
41730
41731
41732
41733
41734
41735
41736
41737
41738
41739
41740
41741
41742
41743
41744
41745
41746
41747
41748
41749
41750
41751
41752
41753
41754
41755
41756
41757
41758
41759
41760
41761
41762
41763
41764
41765
41766
41767
41768
41769
41770
41771
41772
41773
41774
41775
41776
41777
41778
41779
41780
41781
41782
41783
41784
41785
41786
41787
41788
41789
41790
41791
41792
41793
41794
41795
41796
41797
41798
41799
41800
41801
41802
41803
41804
41805
41806
41807
41808
41809
41810
41811
41812
41813
41814
41815
41816
41817
41818
41819
41820
41821
41822
41823
41824
41825
41826
41827
41828
41829
41830
41831
41832
41833
41834
41835
41836
41837
41838
41839
41840
41841
41842
41843
41844
41845
41846
41847
41848
41849
41850
41851
41852
41853
41854
41855
41856
41857
41858
41859
41860
41861
41862
41863
41864
41865
41866
41867
41868
41869
41870
41871
41872
41873
41874
41875
41876
41877
41878
41879
41880
41881
41882
41883
41884
41885
41886
41887
41888
41889
41890
41891
41892
41893
41894
41895
41896
41897
41898
41899
41900
41901
41902
41903
41904
41905
41906
41907
41908
41909
41910
41911
41912
41913
41914
41915
41916
41917
41918
41919
41920
41921
41922
41923
41924
41925
41926
41927
41928
41929
41930
41931
41932
41933
41934
41935
41936
41937
41938
41939
41940
41941
41942
41943
41944
41945
41946
41947
41948
41949
41950
41951
41952
41953
41954
41955
41956
41957
41958
41959
41960
41961
41962
41963
41964
41965
41966
41967
41968
41969
41970
41971
41972
41973
41974
41975
41976
41977
41978
41979
41980
41981
41982
41983
41984
41985
41986
41987
41988
41989
41990
41991
41992
41993
41994
41995
41996
41997
41998
41999
42000
42001
42002
42003
42004
42005
42006
42007
42008
42009
42010
42011
42012
42013
42014
42015
42016
42017
42018
42019
42020
42021
42022
42023
42024
42025
42026
42027
42028
42029
42030
42031
42032
42033
42034
42035
42036
42037
42038
42039
42040
42041
42042
42043
42044
42045
42046
42047
42048
42049
42050
42051
42052
42053
42054
42055
42056
42057
42058
42059
42060
42061
42062
42063
42064
42065
42066
42067
42068
42069
42070
42071
42072
42073
42074
42075
42076
42077
42078
42079
42080
42081
42082
42083
42084
42085
42086
42087
42088
42089
42090
42091
42092
42093
42094
42095
42096
42097
42098
42099
42100
42101
42102
42103
42104
42105
42106
42107
42108
42109
42110
42111
42112
42113
42114
42115
42116
42117
42118
42119
42120
42121
42122
42123
42124
42125
42126
42127
42128
42129
42130
42131
42132
42133
42134
42135
42136
42137
42138
42139
42140
42141
42142
42143
42144
42145
42146
42147
42148
42149
42150
42151
42152
42153
42154
42155
42156
42157
42158
42159
42160
42161
42162
42163
42164
42165
42166
42167
42168
42169
42170
42171
42172
42173
42174
42175
42176
42177
42178
42179
42180
42181
42182
42183
42184
42185
42186
42187
42188
42189
42190
42191
42192
42193
42194
42195
42196
42197
42198
42199
42200
42201
42202
42203
42204
42205
42206
42207
|
/* Photo.c generated by valac 0.34.2, the Vala compiler
* generated from Photo.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.
*/
/* Specifies how pixel data is fetched from the backing file on disk. MASTER is the original*/
/* backing photo of any supported photo file format; SOURCE is either the master or the editable*/
/* file, that is, the appropriate reference file for user display; BASELINE is an appropriate*/
/* file with the proviso that it may be a suitable substitute for the master and/or the editable.*/
/* UNMODIFIED represents the photo with no edits, i.e. the head of the pipeline.*/
/**/
/* In general, callers want to use the BASELINE unless requirements are specific.*/
#include <glib.h>
#include <glib-object.h>
#include <gio/gio.h>
#include <stdlib.h>
#include <string.h>
#include <gee.h>
#include <gdk-pixbuf/gdk-pixbuf.h>
#include <time.h>
#include <glib/gstdio.h>
#include <float.h>
#include <math.h>
#include <gdk/gdk.h>
#include <glib/gi18n-lib.h>
#include <cairo.h>
#include <gobject/gvaluecollector.h>
#define TYPE_BACKING_FETCH_MODE (backing_fetch_mode_get_type ())
#define TYPE_PHOTO_IMPORT_PARAMS (photo_import_params_get_type ())
#define PHOTO_IMPORT_PARAMS(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_PHOTO_IMPORT_PARAMS, PhotoImportParams))
#define PHOTO_IMPORT_PARAMS_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_PHOTO_IMPORT_PARAMS, PhotoImportParamsClass))
#define IS_PHOTO_IMPORT_PARAMS(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_PHOTO_IMPORT_PARAMS))
#define IS_PHOTO_IMPORT_PARAMS_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_PHOTO_IMPORT_PARAMS))
#define PHOTO_IMPORT_PARAMS_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_PHOTO_IMPORT_PARAMS, PhotoImportParamsClass))
typedef struct _PhotoImportParams PhotoImportParams;
typedef struct _PhotoImportParamsClass PhotoImportParamsClass;
typedef struct _PhotoImportParamsPrivate PhotoImportParamsPrivate;
#define TYPE_IMPORT_ID (import_id_get_type ())
typedef struct _ImportID ImportID;
#define PHOTO_FILE_SNIFFER_TYPE_OPTIONS (photo_file_sniffer_options_get_type ())
#define TYPE_THUMBNAILS (thumbnails_get_type ())
#define THUMBNAILS(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_THUMBNAILS, Thumbnails))
#define THUMBNAILS_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_THUMBNAILS, ThumbnailsClass))
#define IS_THUMBNAILS(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_THUMBNAILS))
#define IS_THUMBNAILS_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_THUMBNAILS))
#define THUMBNAILS_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_THUMBNAILS, ThumbnailsClass))
typedef struct _Thumbnails Thumbnails;
typedef struct _ThumbnailsClass ThumbnailsClass;
#define TYPE_PHOTO_ROW (photo_row_get_type ())
#define PHOTO_ROW(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_PHOTO_ROW, PhotoRow))
#define PHOTO_ROW_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_PHOTO_ROW, PhotoRowClass))
#define IS_PHOTO_ROW(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_PHOTO_ROW))
#define IS_PHOTO_ROW_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_PHOTO_ROW))
#define PHOTO_ROW_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_PHOTO_ROW, PhotoRowClass))
typedef struct _PhotoRow PhotoRow;
typedef struct _PhotoRowClass PhotoRowClass;
#define _g_object_unref0(var) ((var == NULL) ? NULL : (var = (g_object_unref (var), NULL)))
#define _g_free0(var) (var = (g_free (var), NULL))
#define _thumbnails_unref0(var) ((var == NULL) ? NULL : (var = (thumbnails_unref (var), NULL)))
#define _photo_row_unref0(var) ((var == NULL) ? NULL : (var = (photo_row_unref (var), NULL)))
typedef struct _ParamSpecPhotoImportParams ParamSpecPhotoImportParams;
#define TYPE_PHOTO_TRANSFORMATION_STATE (photo_transformation_state_get_type ())
#define PHOTO_TRANSFORMATION_STATE(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_PHOTO_TRANSFORMATION_STATE, PhotoTransformationState))
#define PHOTO_TRANSFORMATION_STATE_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_PHOTO_TRANSFORMATION_STATE, PhotoTransformationStateClass))
#define IS_PHOTO_TRANSFORMATION_STATE(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_PHOTO_TRANSFORMATION_STATE))
#define IS_PHOTO_TRANSFORMATION_STATE_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_PHOTO_TRANSFORMATION_STATE))
#define PHOTO_TRANSFORMATION_STATE_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_PHOTO_TRANSFORMATION_STATE, PhotoTransformationStateClass))
typedef struct _PhotoTransformationState PhotoTransformationState;
typedef struct _PhotoTransformationStateClass PhotoTransformationStateClass;
typedef struct _PhotoTransformationStatePrivate PhotoTransformationStatePrivate;
#define TYPE_RATING (rating_get_type ())
#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;
typedef struct _DataObjectPrivate DataObjectPrivate;
#define TYPE_ALTERATION (alteration_get_type ())
#define ALTERATION(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_ALTERATION, Alteration))
#define ALTERATION_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_ALTERATION, AlterationClass))
#define IS_ALTERATION(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_ALTERATION))
#define IS_ALTERATION_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_ALTERATION))
#define ALTERATION_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_ALTERATION, AlterationClass))
typedef struct _Alteration Alteration;
typedef struct _AlterationClass AlterationClass;
#define 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_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;
typedef struct _DataSourcePrivate DataSourcePrivate;
#define TYPE_SOURCE_HOLDING_TANK (source_holding_tank_get_type ())
#define SOURCE_HOLDING_TANK(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_SOURCE_HOLDING_TANK, SourceHoldingTank))
#define SOURCE_HOLDING_TANK_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_SOURCE_HOLDING_TANK, SourceHoldingTankClass))
#define IS_SOURCE_HOLDING_TANK(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_SOURCE_HOLDING_TANK))
#define IS_SOURCE_HOLDING_TANK_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_SOURCE_HOLDING_TANK))
#define SOURCE_HOLDING_TANK_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_SOURCE_HOLDING_TANK, SourceHoldingTankClass))
typedef struct _SourceHoldingTank SourceHoldingTank;
typedef struct _SourceHoldingTankClass SourceHoldingTankClass;
#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_SOURCE_SNAPSHOT (source_snapshot_get_type ())
#define SOURCE_SNAPSHOT(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_SOURCE_SNAPSHOT, SourceSnapshot))
#define SOURCE_SNAPSHOT_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_SOURCE_SNAPSHOT, SourceSnapshotClass))
#define IS_SOURCE_SNAPSHOT(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_SOURCE_SNAPSHOT))
#define IS_SOURCE_SNAPSHOT_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_SOURCE_SNAPSHOT))
#define SOURCE_SNAPSHOT_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_SOURCE_SNAPSHOT, SourceSnapshotClass))
typedef struct _SourceSnapshot SourceSnapshot;
typedef struct _SourceSnapshotClass SourceSnapshotClass;
#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;
typedef struct _ThumbnailSourcePrivate ThumbnailSourcePrivate;
#define TYPE_PHOTO_FILE_FORMAT (photo_file_format_get_type ())
#define TYPE_INDEXABLE (indexable_get_type ())
#define INDEXABLE(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_INDEXABLE, Indexable))
#define IS_INDEXABLE(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_INDEXABLE))
#define INDEXABLE_GET_INTERFACE(obj) (G_TYPE_INSTANCE_GET_INTERFACE ((obj), TYPE_INDEXABLE, IndexableIface))
typedef struct _Indexable Indexable;
typedef struct _IndexableIface IndexableIface;
#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;
typedef struct _MediaSourcePrivate MediaSourcePrivate;
#define TYPE_EVENT_ID (event_id_get_type ())
typedef struct _EventID EventID;
#define TYPE_BACKING_FILE_STATE (backing_file_state_get_type ())
#define BACKING_FILE_STATE(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_BACKING_FILE_STATE, BackingFileState))
#define BACKING_FILE_STATE_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_BACKING_FILE_STATE, BackingFileStateClass))
#define IS_BACKING_FILE_STATE(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_BACKING_FILE_STATE))
#define IS_BACKING_FILE_STATE_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_BACKING_FILE_STATE))
#define BACKING_FILE_STATE_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_BACKING_FILE_STATE, BackingFileStateClass))
typedef struct _BackingFileState BackingFileState;
typedef struct _BackingFileStateClass BackingFileStateClass;
#define PHOTO_TYPE_EXCEPTION (photo_exception_get_type ())
#define TYPE_DIMENSIONS (dimensions_get_type ())
typedef struct _Dimensions Dimensions;
#define TYPE_SCALING (scaling_get_type ())
#define TYPE_SCALE_CONSTRAINT (scale_constraint_get_type ())
typedef struct _Scaling Scaling;
#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;
typedef struct _PhotoSourcePrivate PhotoSourcePrivate;
#define TYPE_MEDIA_METADATA (media_metadata_get_type ())
#define MEDIA_METADATA(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_MEDIA_METADATA, MediaMetadata))
#define MEDIA_METADATA_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_MEDIA_METADATA, MediaMetadataClass))
#define IS_MEDIA_METADATA(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_MEDIA_METADATA))
#define IS_MEDIA_METADATA_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_MEDIA_METADATA))
#define MEDIA_METADATA_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_MEDIA_METADATA, MediaMetadataClass))
typedef struct _MediaMetadata MediaMetadata;
typedef struct _MediaMetadataClass MediaMetadataClass;
#define TYPE_PHOTO_METADATA (photo_metadata_get_type ())
#define PHOTO_METADATA(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_PHOTO_METADATA, PhotoMetadata))
#define PHOTO_METADATA_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_PHOTO_METADATA, PhotoMetadataClass))
#define IS_PHOTO_METADATA(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_PHOTO_METADATA))
#define IS_PHOTO_METADATA_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_PHOTO_METADATA))
#define PHOTO_METADATA_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_PHOTO_METADATA, PhotoMetadataClass))
typedef struct _PhotoMetadata PhotoMetadata;
typedef struct _PhotoMetadataClass PhotoMetadataClass;
#define TYPE_DATEABLE (dateable_get_type ())
#define DATEABLE(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_DATEABLE, Dateable))
#define IS_DATEABLE(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_DATEABLE))
#define DATEABLE_GET_INTERFACE(obj) (G_TYPE_INSTANCE_GET_INTERFACE ((obj), TYPE_DATEABLE, DateableIface))
typedef struct _Dateable Dateable;
typedef struct _DateableIface DateableIface;
#define TYPE_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;
typedef struct _PhotoPrivate PhotoPrivate;
#define TYPE_ROTATION (rotation_get_type ())
#define TYPE_BACKING_PHOTO_ROW (backing_photo_row_get_type ())
#define BACKING_PHOTO_ROW(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_BACKING_PHOTO_ROW, BackingPhotoRow))
#define BACKING_PHOTO_ROW_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_BACKING_PHOTO_ROW, BackingPhotoRowClass))
#define IS_BACKING_PHOTO_ROW(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_BACKING_PHOTO_ROW))
#define IS_BACKING_PHOTO_ROW_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_BACKING_PHOTO_ROW))
#define BACKING_PHOTO_ROW_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_BACKING_PHOTO_ROW, BackingPhotoRowClass))
typedef struct _BackingPhotoRow BackingPhotoRow;
typedef struct _BackingPhotoRowClass BackingPhotoRowClass;
#define PHOTO_TYPE_BACKING_READERS (photo_backing_readers_get_type ())
#define PHOTO_BACKING_READERS(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), PHOTO_TYPE_BACKING_READERS, PhotoBackingReaders))
#define PHOTO_BACKING_READERS_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), PHOTO_TYPE_BACKING_READERS, PhotoBackingReadersClass))
#define PHOTO_IS_BACKING_READERS(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), PHOTO_TYPE_BACKING_READERS))
#define PHOTO_IS_BACKING_READERS_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), PHOTO_TYPE_BACKING_READERS))
#define PHOTO_BACKING_READERS_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), PHOTO_TYPE_BACKING_READERS, PhotoBackingReadersClass))
typedef struct _PhotoBackingReaders PhotoBackingReaders;
typedef struct _PhotoBackingReadersClass PhotoBackingReadersClass;
#define TYPE_PIXEL_TRANSFORMER (pixel_transformer_get_type ())
#define PIXEL_TRANSFORMER(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_PIXEL_TRANSFORMER, PixelTransformer))
#define PIXEL_TRANSFORMER_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_PIXEL_TRANSFORMER, PixelTransformerClass))
#define IS_PIXEL_TRANSFORMER(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_PIXEL_TRANSFORMER))
#define IS_PIXEL_TRANSFORMER_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_PIXEL_TRANSFORMER))
#define PIXEL_TRANSFORMER_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_PIXEL_TRANSFORMER, PixelTransformerClass))
typedef struct _PixelTransformer PixelTransformer;
typedef struct _PixelTransformerClass PixelTransformerClass;
#define TYPE_PIXEL_TRANSFORMATION_BUNDLE (pixel_transformation_bundle_get_type ())
#define PIXEL_TRANSFORMATION_BUNDLE(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_PIXEL_TRANSFORMATION_BUNDLE, PixelTransformationBundle))
#define PIXEL_TRANSFORMATION_BUNDLE_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_PIXEL_TRANSFORMATION_BUNDLE, PixelTransformationBundleClass))
#define IS_PIXEL_TRANSFORMATION_BUNDLE(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_PIXEL_TRANSFORMATION_BUNDLE))
#define IS_PIXEL_TRANSFORMATION_BUNDLE_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_PIXEL_TRANSFORMATION_BUNDLE))
#define PIXEL_TRANSFORMATION_BUNDLE_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_PIXEL_TRANSFORMATION_BUNDLE, PixelTransformationBundleClass))
typedef struct _PixelTransformationBundle PixelTransformationBundle;
typedef struct _PixelTransformationBundleClass PixelTransformationBundleClass;
#define TYPE_ONE_SHOT_SCHEDULER (one_shot_scheduler_get_type ())
#define ONE_SHOT_SCHEDULER(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_ONE_SHOT_SCHEDULER, OneShotScheduler))
#define ONE_SHOT_SCHEDULER_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_ONE_SHOT_SCHEDULER, OneShotSchedulerClass))
#define IS_ONE_SHOT_SCHEDULER(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_ONE_SHOT_SCHEDULER))
#define IS_ONE_SHOT_SCHEDULER_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_ONE_SHOT_SCHEDULER))
#define ONE_SHOT_SCHEDULER_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_ONE_SHOT_SCHEDULER, OneShotSchedulerClass))
typedef struct _OneShotScheduler OneShotScheduler;
typedef struct _OneShotSchedulerClass OneShotSchedulerClass;
#define TYPE_RAW_DEVELOPER (raw_developer_get_type ())
#define PHOTO_TYPE_CACHED_PIXBUF (photo_cached_pixbuf_get_type ())
#define PHOTO_CACHED_PIXBUF(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), PHOTO_TYPE_CACHED_PIXBUF, PhotoCachedPixbuf))
#define PHOTO_CACHED_PIXBUF_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), PHOTO_TYPE_CACHED_PIXBUF, PhotoCachedPixbufClass))
#define PHOTO_IS_CACHED_PIXBUF(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), PHOTO_TYPE_CACHED_PIXBUF))
#define PHOTO_IS_CACHED_PIXBUF_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), PHOTO_TYPE_CACHED_PIXBUF))
#define PHOTO_CACHED_PIXBUF_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), PHOTO_TYPE_CACHED_PIXBUF, PhotoCachedPixbufClass))
typedef struct _PhotoCachedPixbuf PhotoCachedPixbuf;
typedef struct _PhotoCachedPixbufClass PhotoCachedPixbufClass;
#define _backing_photo_row_unref0(var) ((var == NULL) ? NULL : (var = (backing_photo_row_unref (var), NULL)))
#define _photo_backing_readers_unref0(var) ((var == NULL) ? NULL : (var = (photo_backing_readers_unref (var), NULL)))
#define _pixel_transformer_unref0(var) ((var == NULL) ? NULL : (var = (pixel_transformer_unref (var), NULL)))
#define _pixel_transformation_bundle_unref0(var) ((var == NULL) ? NULL : (var = (pixel_transformation_bundle_unref (var), NULL)))
#define _one_shot_scheduler_unref0(var) ((var == NULL) ? NULL : (var = (one_shot_scheduler_unref (var), NULL)))
typedef struct _PhotoRowPrivate PhotoRowPrivate;
#define TYPE_PHOTO_ID (photo_id_get_type ())
typedef struct _PhotoID PhotoID;
#define TYPE_ORIENTATION (orientation_get_type ())
#define TYPE_KEY_VALUE_MAP (key_value_map_get_type ())
#define KEY_VALUE_MAP(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_KEY_VALUE_MAP, KeyValueMap))
#define KEY_VALUE_MAP_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_KEY_VALUE_MAP, KeyValueMapClass))
#define IS_KEY_VALUE_MAP(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_KEY_VALUE_MAP))
#define IS_KEY_VALUE_MAP_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_KEY_VALUE_MAP))
#define KEY_VALUE_MAP_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_KEY_VALUE_MAP, KeyValueMapClass))
typedef struct _KeyValueMap KeyValueMap;
typedef struct _KeyValueMapClass KeyValueMapClass;
#define TYPE_BACKING_PHOTO_ID (backing_photo_id_get_type ())
typedef struct _BackingPhotoID BackingPhotoID;
typedef struct _BackingPhotoRowPrivate BackingPhotoRowPrivate;
#define TYPE_PHOTO_FILE_ADAPTER (photo_file_adapter_get_type ())
#define PHOTO_FILE_ADAPTER(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_PHOTO_FILE_ADAPTER, PhotoFileAdapter))
#define PHOTO_FILE_ADAPTER_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_PHOTO_FILE_ADAPTER, PhotoFileAdapterClass))
#define IS_PHOTO_FILE_ADAPTER(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_PHOTO_FILE_ADAPTER))
#define IS_PHOTO_FILE_ADAPTER_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_PHOTO_FILE_ADAPTER))
#define PHOTO_FILE_ADAPTER_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_PHOTO_FILE_ADAPTER, PhotoFileAdapterClass))
typedef struct _PhotoFileAdapter PhotoFileAdapter;
typedef struct _PhotoFileAdapterClass PhotoFileAdapterClass;
#define TYPE_PHOTO_FILE_READER (photo_file_reader_get_type ())
#define PHOTO_FILE_READER(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_PHOTO_FILE_READER, PhotoFileReader))
#define PHOTO_FILE_READER_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_PHOTO_FILE_READER, PhotoFileReaderClass))
#define IS_PHOTO_FILE_READER(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_PHOTO_FILE_READER))
#define IS_PHOTO_FILE_READER_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_PHOTO_FILE_READER))
#define PHOTO_FILE_READER_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_PHOTO_FILE_READER, PhotoFileReaderClass))
typedef struct _PhotoFileReader PhotoFileReader;
typedef struct _PhotoFileReaderClass PhotoFileReaderClass;
typedef struct _PhotoBackingReadersPrivate PhotoBackingReadersPrivate;
#define _photo_file_adapter_unref0(var) ((var == NULL) ? NULL : (var = (photo_file_adapter_unref (var), NULL)))
#define TYPE_DATABASE_TABLE (database_table_get_type ())
#define DATABASE_TABLE(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_DATABASE_TABLE, DatabaseTable))
#define DATABASE_TABLE_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_DATABASE_TABLE, DatabaseTableClass))
#define IS_DATABASE_TABLE(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_DATABASE_TABLE))
#define IS_DATABASE_TABLE_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_DATABASE_TABLE))
#define DATABASE_TABLE_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_DATABASE_TABLE, DatabaseTableClass))
typedef struct _DatabaseTable DatabaseTable;
typedef struct _DatabaseTableClass DatabaseTableClass;
#define TYPE_PHOTO_TABLE (photo_table_get_type ())
#define PHOTO_TABLE(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_PHOTO_TABLE, PhotoTable))
#define PHOTO_TABLE_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_PHOTO_TABLE, PhotoTableClass))
#define IS_PHOTO_TABLE(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_PHOTO_TABLE))
#define IS_PHOTO_TABLE_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_PHOTO_TABLE))
#define PHOTO_TABLE_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_PHOTO_TABLE, PhotoTableClass))
typedef struct _PhotoTable PhotoTable;
typedef struct _PhotoTableClass PhotoTableClass;
#define _database_table_unref0(var) ((var == NULL) ? NULL : (var = (database_table_unref (var), NULL)))
#define _g_error_free0(var) ((var == NULL) ? NULL : (var = (g_error_free (var), NULL)))
#define TYPE_BACKING_PHOTO_TABLE (backing_photo_table_get_type ())
#define BACKING_PHOTO_TABLE(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_BACKING_PHOTO_TABLE, BackingPhotoTable))
#define BACKING_PHOTO_TABLE_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_BACKING_PHOTO_TABLE, BackingPhotoTableClass))
#define IS_BACKING_PHOTO_TABLE(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_BACKING_PHOTO_TABLE))
#define IS_BACKING_PHOTO_TABLE_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_BACKING_PHOTO_TABLE))
#define BACKING_PHOTO_TABLE_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_BACKING_PHOTO_TABLE, BackingPhotoTableClass))
typedef struct _BackingPhotoTable BackingPhotoTable;
typedef struct _BackingPhotoTableClass BackingPhotoTableClass;
#define TYPE_PHOTO_PREVIEW (photo_preview_get_type ())
#define PHOTO_PREVIEW(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_PHOTO_PREVIEW, PhotoPreview))
#define PHOTO_PREVIEW_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_PHOTO_PREVIEW, PhotoPreviewClass))
#define IS_PHOTO_PREVIEW(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_PHOTO_PREVIEW))
#define IS_PHOTO_PREVIEW_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_PHOTO_PREVIEW))
#define PHOTO_PREVIEW_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_PHOTO_PREVIEW, PhotoPreviewClass))
typedef struct _PhotoPreview PhotoPreview;
typedef struct _PhotoPreviewClass PhotoPreviewClass;
#define _photo_preview_unref0(var) ((var == NULL) ? NULL : (var = (photo_preview_unref (var), NULL)))
#define _media_metadata_unref0(var) ((var == NULL) ? NULL : (var = (media_metadata_unref (var), NULL)))
#define _alteration_unref0(var) ((var == NULL) ? NULL : (var = (alteration_unref (var), NULL)))
#define TYPE_PHOTO_FILE_INTERROGATOR (photo_file_interrogator_get_type ())
#define PHOTO_FILE_INTERROGATOR(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_PHOTO_FILE_INTERROGATOR, PhotoFileInterrogator))
#define PHOTO_FILE_INTERROGATOR_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_PHOTO_FILE_INTERROGATOR, PhotoFileInterrogatorClass))
#define IS_PHOTO_FILE_INTERROGATOR(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_PHOTO_FILE_INTERROGATOR))
#define IS_PHOTO_FILE_INTERROGATOR_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_PHOTO_FILE_INTERROGATOR))
#define PHOTO_FILE_INTERROGATOR_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_PHOTO_FILE_INTERROGATOR, PhotoFileInterrogatorClass))
typedef struct _PhotoFileInterrogator PhotoFileInterrogator;
typedef struct _PhotoFileInterrogatorClass PhotoFileInterrogatorClass;
#define _photo_file_interrogator_unref0(var) ((var == NULL) ? NULL : (var = (photo_file_interrogator_unref (var), NULL)))
#define TYPE_DETECTED_PHOTO_INFORMATION (detected_photo_information_get_type ())
#define DETECTED_PHOTO_INFORMATION(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_DETECTED_PHOTO_INFORMATION, DetectedPhotoInformation))
#define DETECTED_PHOTO_INFORMATION_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_DETECTED_PHOTO_INFORMATION, DetectedPhotoInformationClass))
#define IS_DETECTED_PHOTO_INFORMATION(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_DETECTED_PHOTO_INFORMATION))
#define IS_DETECTED_PHOTO_INFORMATION_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_DETECTED_PHOTO_INFORMATION))
#define DETECTED_PHOTO_INFORMATION_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_DETECTED_PHOTO_INFORMATION, DetectedPhotoInformationClass))
typedef struct _DetectedPhotoInformation DetectedPhotoInformation;
typedef struct _DetectedPhotoInformationClass DetectedPhotoInformationClass;
#define _detected_photo_information_unref0(var) ((var == NULL) ? NULL : (var = (detected_photo_information_unref (var), NULL)))
typedef struct _DetectedPhotoInformationPrivate DetectedPhotoInformationPrivate;
#define TYPE_PHOTO_FILE_WRITER (photo_file_writer_get_type ())
#define PHOTO_FILE_WRITER(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_PHOTO_FILE_WRITER, PhotoFileWriter))
#define PHOTO_FILE_WRITER_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_PHOTO_FILE_WRITER, PhotoFileWriterClass))
#define IS_PHOTO_FILE_WRITER(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_PHOTO_FILE_WRITER))
#define IS_PHOTO_FILE_WRITER_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_PHOTO_FILE_WRITER))
#define PHOTO_FILE_WRITER_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_PHOTO_FILE_WRITER, PhotoFileWriterClass))
typedef struct _PhotoFileWriter PhotoFileWriter;
typedef struct _PhotoFileWriterClass PhotoFileWriterClass;
#define JPEG_TYPE_QUALITY (jpeg_quality_get_type ())
#define TYPE_PHOTO_FILE_METADATA_WRITER (photo_file_metadata_writer_get_type ())
#define PHOTO_FILE_METADATA_WRITER(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_PHOTO_FILE_METADATA_WRITER, PhotoFileMetadataWriter))
#define PHOTO_FILE_METADATA_WRITER_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_PHOTO_FILE_METADATA_WRITER, PhotoFileMetadataWriterClass))
#define IS_PHOTO_FILE_METADATA_WRITER(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_PHOTO_FILE_METADATA_WRITER))
#define IS_PHOTO_FILE_METADATA_WRITER_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_PHOTO_FILE_METADATA_WRITER))
#define PHOTO_FILE_METADATA_WRITER_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_PHOTO_FILE_METADATA_WRITER, PhotoFileMetadataWriterClass))
typedef struct _PhotoFileMetadataWriter PhotoFileMetadataWriter;
typedef struct _PhotoFileMetadataWriterClass PhotoFileMetadataWriterClass;
#define TYPE_EXPORT_FORMAT_PARAMETERS (export_format_parameters_get_type ())
#define TYPE_EXPORT_FORMAT_MODE (export_format_mode_get_type ())
typedef struct _ExportFormatParameters ExportFormatParameters;
#define TYPE_IMPORT_RESULT (import_result_get_type ())
#define TYPE_METADATA_DATE_TIME (metadata_date_time_get_type ())
#define METADATA_DATE_TIME(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_METADATA_DATE_TIME, MetadataDateTime))
#define METADATA_DATE_TIME_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_METADATA_DATE_TIME, MetadataDateTimeClass))
#define IS_METADATA_DATE_TIME(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_METADATA_DATE_TIME))
#define IS_METADATA_DATE_TIME_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_METADATA_DATE_TIME))
#define METADATA_DATE_TIME_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_METADATA_DATE_TIME, MetadataDateTimeClass))
typedef struct _MetadataDateTime MetadataDateTime;
typedef struct _MetadataDateTimeClass MetadataDateTimeClass;
#define _metadata_date_time_unref0(var) ((var == NULL) ? NULL : (var = (metadata_date_time_unref (var), NULL)))
#define PHOTO_TYPE_REIMPORT_MASTER_STATE (photo_reimport_master_state_get_type ())
#define PHOTO_REIMPORT_MASTER_STATE(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), PHOTO_TYPE_REIMPORT_MASTER_STATE, PhotoReimportMasterState))
#define PHOTO_REIMPORT_MASTER_STATE_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), PHOTO_TYPE_REIMPORT_MASTER_STATE, PhotoReimportMasterStateClass))
#define PHOTO_IS_REIMPORT_MASTER_STATE(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), PHOTO_TYPE_REIMPORT_MASTER_STATE))
#define PHOTO_IS_REIMPORT_MASTER_STATE_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), PHOTO_TYPE_REIMPORT_MASTER_STATE))
#define PHOTO_REIMPORT_MASTER_STATE_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), PHOTO_TYPE_REIMPORT_MASTER_STATE, PhotoReimportMasterStateClass))
typedef struct _PhotoReimportMasterState PhotoReimportMasterState;
typedef struct _PhotoReimportMasterStateClass PhotoReimportMasterStateClass;
#define _photo_reimport_master_state_unref0(var) ((var == NULL) ? NULL : (var = (photo_reimport_master_state_unref (var), NULL)))
#define PHOTO_TYPE_REIMPORT_MASTER_STATE_IMPL (photo_reimport_master_state_impl_get_type ())
#define PHOTO_REIMPORT_MASTER_STATE_IMPL(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), PHOTO_TYPE_REIMPORT_MASTER_STATE_IMPL, PhotoReimportMasterStateImpl))
#define PHOTO_REIMPORT_MASTER_STATE_IMPL_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), PHOTO_TYPE_REIMPORT_MASTER_STATE_IMPL, PhotoReimportMasterStateImplClass))
#define PHOTO_IS_REIMPORT_MASTER_STATE_IMPL(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), PHOTO_TYPE_REIMPORT_MASTER_STATE_IMPL))
#define PHOTO_IS_REIMPORT_MASTER_STATE_IMPL_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), PHOTO_TYPE_REIMPORT_MASTER_STATE_IMPL))
#define PHOTO_REIMPORT_MASTER_STATE_IMPL_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), PHOTO_TYPE_REIMPORT_MASTER_STATE_IMPL, PhotoReimportMasterStateImplClass))
typedef struct _PhotoReimportMasterStateImpl PhotoReimportMasterStateImpl;
typedef struct _PhotoReimportMasterStateImplClass PhotoReimportMasterStateImplClass;
typedef struct _PhotoReimportMasterStatePrivate PhotoReimportMasterStatePrivate;
typedef struct _PhotoReimportMasterStateImplPrivate PhotoReimportMasterStateImplPrivate;
#define PHOTO_TYPE_REIMPORT_EDITABLE_STATE (photo_reimport_editable_state_get_type ())
#define PHOTO_REIMPORT_EDITABLE_STATE(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), PHOTO_TYPE_REIMPORT_EDITABLE_STATE, PhotoReimportEditableState))
#define PHOTO_REIMPORT_EDITABLE_STATE_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), PHOTO_TYPE_REIMPORT_EDITABLE_STATE, PhotoReimportEditableStateClass))
#define PHOTO_IS_REIMPORT_EDITABLE_STATE(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), PHOTO_TYPE_REIMPORT_EDITABLE_STATE))
#define PHOTO_IS_REIMPORT_EDITABLE_STATE_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), PHOTO_TYPE_REIMPORT_EDITABLE_STATE))
#define PHOTO_REIMPORT_EDITABLE_STATE_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), PHOTO_TYPE_REIMPORT_EDITABLE_STATE, PhotoReimportEditableStateClass))
typedef struct _PhotoReimportEditableState PhotoReimportEditableState;
typedef struct _PhotoReimportEditableStateClass PhotoReimportEditableStateClass;
#define _photo_reimport_editable_state_unref0(var) ((var == NULL) ? NULL : (var = (photo_reimport_editable_state_unref (var), NULL)))
#define PHOTO_TYPE_REIMPORT_EDITABLE_STATE_IMPL (photo_reimport_editable_state_impl_get_type ())
#define PHOTO_REIMPORT_EDITABLE_STATE_IMPL(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), PHOTO_TYPE_REIMPORT_EDITABLE_STATE_IMPL, PhotoReimportEditableStateImpl))
#define PHOTO_REIMPORT_EDITABLE_STATE_IMPL_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), PHOTO_TYPE_REIMPORT_EDITABLE_STATE_IMPL, PhotoReimportEditableStateImplClass))
#define PHOTO_IS_REIMPORT_EDITABLE_STATE_IMPL(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), PHOTO_TYPE_REIMPORT_EDITABLE_STATE_IMPL))
#define PHOTO_IS_REIMPORT_EDITABLE_STATE_IMPL_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), PHOTO_TYPE_REIMPORT_EDITABLE_STATE_IMPL))
#define PHOTO_REIMPORT_EDITABLE_STATE_IMPL_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), PHOTO_TYPE_REIMPORT_EDITABLE_STATE_IMPL, PhotoReimportEditableStateImplClass))
typedef struct _PhotoReimportEditableStateImpl PhotoReimportEditableStateImpl;
typedef struct _PhotoReimportEditableStateImplClass PhotoReimportEditableStateImplClass;
typedef struct _PhotoReimportEditableStatePrivate PhotoReimportEditableStatePrivate;
typedef struct _PhotoReimportEditableStateImplPrivate PhotoReimportEditableStateImplPrivate;
#define PHOTO_TYPE_REIMPORT_RAW_DEVELOPMENT_STATE (photo_reimport_raw_development_state_get_type ())
#define PHOTO_REIMPORT_RAW_DEVELOPMENT_STATE(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), PHOTO_TYPE_REIMPORT_RAW_DEVELOPMENT_STATE, PhotoReimportRawDevelopmentState))
#define PHOTO_REIMPORT_RAW_DEVELOPMENT_STATE_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), PHOTO_TYPE_REIMPORT_RAW_DEVELOPMENT_STATE, PhotoReimportRawDevelopmentStateClass))
#define PHOTO_IS_REIMPORT_RAW_DEVELOPMENT_STATE(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), PHOTO_TYPE_REIMPORT_RAW_DEVELOPMENT_STATE))
#define PHOTO_IS_REIMPORT_RAW_DEVELOPMENT_STATE_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), PHOTO_TYPE_REIMPORT_RAW_DEVELOPMENT_STATE))
#define PHOTO_REIMPORT_RAW_DEVELOPMENT_STATE_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), PHOTO_TYPE_REIMPORT_RAW_DEVELOPMENT_STATE, PhotoReimportRawDevelopmentStateClass))
typedef struct _PhotoReimportRawDevelopmentState PhotoReimportRawDevelopmentState;
typedef struct _PhotoReimportRawDevelopmentStateClass PhotoReimportRawDevelopmentStateClass;
#define _photo_reimport_raw_development_state_unref0(var) ((var == NULL) ? NULL : (var = (photo_reimport_raw_development_state_unref (var), NULL)))
#define PHOTO_TYPE_REIMPORT_RAW_DEVELOPMENT_STATE_IMPL (photo_reimport_raw_development_state_impl_get_type ())
#define PHOTO_REIMPORT_RAW_DEVELOPMENT_STATE_IMPL(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), PHOTO_TYPE_REIMPORT_RAW_DEVELOPMENT_STATE_IMPL, PhotoReimportRawDevelopmentStateImpl))
#define PHOTO_REIMPORT_RAW_DEVELOPMENT_STATE_IMPL_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), PHOTO_TYPE_REIMPORT_RAW_DEVELOPMENT_STATE_IMPL, PhotoReimportRawDevelopmentStateImplClass))
#define PHOTO_IS_REIMPORT_RAW_DEVELOPMENT_STATE_IMPL(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), PHOTO_TYPE_REIMPORT_RAW_DEVELOPMENT_STATE_IMPL))
#define PHOTO_IS_REIMPORT_RAW_DEVELOPMENT_STATE_IMPL_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), PHOTO_TYPE_REIMPORT_RAW_DEVELOPMENT_STATE_IMPL))
#define PHOTO_REIMPORT_RAW_DEVELOPMENT_STATE_IMPL_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), PHOTO_TYPE_REIMPORT_RAW_DEVELOPMENT_STATE_IMPL, PhotoReimportRawDevelopmentStateImplClass))
typedef struct _PhotoReimportRawDevelopmentStateImpl PhotoReimportRawDevelopmentStateImpl;
typedef struct _PhotoReimportRawDevelopmentStateImplClass PhotoReimportRawDevelopmentStateImplClass;
#define PHOTO_REIMPORT_RAW_DEVELOPMENT_STATE_IMPL_TYPE_DEV_TO_REIMPORT (photo_reimport_raw_development_state_impl_dev_to_reimport_get_type ())
#define PHOTO_REIMPORT_RAW_DEVELOPMENT_STATE_IMPL_DEV_TO_REIMPORT(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), PHOTO_REIMPORT_RAW_DEVELOPMENT_STATE_IMPL_TYPE_DEV_TO_REIMPORT, PhotoReimportRawDevelopmentStateImplDevToReimport))
#define PHOTO_REIMPORT_RAW_DEVELOPMENT_STATE_IMPL_DEV_TO_REIMPORT_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), PHOTO_REIMPORT_RAW_DEVELOPMENT_STATE_IMPL_TYPE_DEV_TO_REIMPORT, PhotoReimportRawDevelopmentStateImplDevToReimportClass))
#define PHOTO_REIMPORT_RAW_DEVELOPMENT_STATE_IMPL_IS_DEV_TO_REIMPORT(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), PHOTO_REIMPORT_RAW_DEVELOPMENT_STATE_IMPL_TYPE_DEV_TO_REIMPORT))
#define PHOTO_REIMPORT_RAW_DEVELOPMENT_STATE_IMPL_IS_DEV_TO_REIMPORT_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), PHOTO_REIMPORT_RAW_DEVELOPMENT_STATE_IMPL_TYPE_DEV_TO_REIMPORT))
#define PHOTO_REIMPORT_RAW_DEVELOPMENT_STATE_IMPL_DEV_TO_REIMPORT_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), PHOTO_REIMPORT_RAW_DEVELOPMENT_STATE_IMPL_TYPE_DEV_TO_REIMPORT, PhotoReimportRawDevelopmentStateImplDevToReimportClass))
typedef struct _PhotoReimportRawDevelopmentStateImplDevToReimport PhotoReimportRawDevelopmentStateImplDevToReimport;
typedef struct _PhotoReimportRawDevelopmentStateImplDevToReimportClass PhotoReimportRawDevelopmentStateImplDevToReimportClass;
typedef struct _PhotoReimportRawDevelopmentStatePrivate PhotoReimportRawDevelopmentStatePrivate;
typedef struct _PhotoReimportRawDevelopmentStateImplPrivate PhotoReimportRawDevelopmentStateImplPrivate;
typedef struct _PhotoReimportRawDevelopmentStateImplDevToReimportPrivate PhotoReimportRawDevelopmentStateImplDevToReimportPrivate;
#define _photo_reimport_raw_development_state_impl_dev_to_reimport_unref0(var) ((var == NULL) ? NULL : (var = (photo_reimport_raw_development_state_impl_dev_to_reimport_unref (var), NULL)))
#define TYPE_LIBRARY_PHOTO (library_photo_get_type ())
#define LIBRARY_PHOTO(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_LIBRARY_PHOTO, LibraryPhoto))
#define LIBRARY_PHOTO_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_LIBRARY_PHOTO, LibraryPhotoClass))
#define IS_LIBRARY_PHOTO(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_LIBRARY_PHOTO))
#define IS_LIBRARY_PHOTO_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_LIBRARY_PHOTO))
#define LIBRARY_PHOTO_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_LIBRARY_PHOTO, LibraryPhotoClass))
typedef struct _LibraryPhoto LibraryPhoto;
typedef struct _LibraryPhotoClass LibraryPhotoClass;
#define PHOTO_METADATA_TYPE_SET_OPTION (photo_metadata_set_option_get_type ())
#define TYPE_BOX (box_get_type ())
typedef struct _Box Box;
#define _key_value_map_unref0(var) ((var == NULL) ? NULL : (var = (key_value_map_unref (var), NULL)))
#define TYPE_PIXEL_TRANSFORMATION_TYPE (pixel_transformation_type_get_type ())
#define TYPE_PIXEL_TRANSFORMATION (pixel_transformation_get_type ())
#define PIXEL_TRANSFORMATION(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_PIXEL_TRANSFORMATION, PixelTransformation))
#define PIXEL_TRANSFORMATION_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_PIXEL_TRANSFORMATION, PixelTransformationClass))
#define IS_PIXEL_TRANSFORMATION(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_PIXEL_TRANSFORMATION))
#define IS_PIXEL_TRANSFORMATION_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_PIXEL_TRANSFORMATION))
#define PIXEL_TRANSFORMATION_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_PIXEL_TRANSFORMATION, PixelTransformationClass))
typedef struct _PixelTransformation PixelTransformation;
typedef struct _PixelTransformationClass PixelTransformationClass;
#define _pixel_transformation_unref0(var) ((var == NULL) ? NULL : (var = (pixel_transformation_unref (var), NULL)))
#define PHOTO_TYPE_PHOTO_TRANSFORMATION_STATE_IMPL (photo_photo_transformation_state_impl_get_type ())
#define PHOTO_PHOTO_TRANSFORMATION_STATE_IMPL(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), PHOTO_TYPE_PHOTO_TRANSFORMATION_STATE_IMPL, PhotoPhotoTransformationStateImpl))
#define PHOTO_PHOTO_TRANSFORMATION_STATE_IMPL_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), PHOTO_TYPE_PHOTO_TRANSFORMATION_STATE_IMPL, PhotoPhotoTransformationStateImplClass))
#define PHOTO_IS_PHOTO_TRANSFORMATION_STATE_IMPL(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), PHOTO_TYPE_PHOTO_TRANSFORMATION_STATE_IMPL))
#define PHOTO_IS_PHOTO_TRANSFORMATION_STATE_IMPL_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), PHOTO_TYPE_PHOTO_TRANSFORMATION_STATE_IMPL))
#define PHOTO_PHOTO_TRANSFORMATION_STATE_IMPL_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), PHOTO_TYPE_PHOTO_TRANSFORMATION_STATE_IMPL, PhotoPhotoTransformationStateImplClass))
typedef struct _PhotoPhotoTransformationStateImpl PhotoPhotoTransformationStateImpl;
typedef struct _PhotoPhotoTransformationStateImplClass PhotoPhotoTransformationStateImplClass;
#define EDITING_TOOLS_TYPE_REDEYE_INSTANCE (editing_tools_redeye_instance_get_type ())
typedef struct _EditingToolsRedeyeInstance EditingToolsRedeyeInstance;
typedef struct _PhotoCachedPixbufPrivate PhotoCachedPixbufPrivate;
#define _photo_cached_pixbuf_unref0(var) ((var == NULL) ? NULL : (var = (photo_cached_pixbuf_unref (var), NULL)))
#define TYPE_PHOTO_FILE_FORMAT_PROPERTIES (photo_file_format_properties_get_type ())
#define PHOTO_FILE_FORMAT_PROPERTIES(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_PHOTO_FILE_FORMAT_PROPERTIES, PhotoFileFormatProperties))
#define PHOTO_FILE_FORMAT_PROPERTIES_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_PHOTO_FILE_FORMAT_PROPERTIES, PhotoFileFormatPropertiesClass))
#define IS_PHOTO_FILE_FORMAT_PROPERTIES(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_PHOTO_FILE_FORMAT_PROPERTIES))
#define IS_PHOTO_FILE_FORMAT_PROPERTIES_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_PHOTO_FILE_FORMAT_PROPERTIES))
#define PHOTO_FILE_FORMAT_PROPERTIES_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_PHOTO_FILE_FORMAT_PROPERTIES, PhotoFileFormatPropertiesClass))
typedef struct _PhotoFileFormatProperties PhotoFileFormatProperties;
typedef struct _PhotoFileFormatPropertiesClass PhotoFileFormatPropertiesClass;
#define _photo_file_format_properties_unref0(var) ((var == NULL) ? NULL : (var = (photo_file_format_properties_unref (var), NULL)))
#define TYPE_CONFIGURATION_FACADE (configuration_facade_get_type ())
#define CONFIGURATION_FACADE(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_CONFIGURATION_FACADE, ConfigurationFacade))
#define CONFIGURATION_FACADE_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_CONFIGURATION_FACADE, ConfigurationFacadeClass))
#define IS_CONFIGURATION_FACADE(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_CONFIGURATION_FACADE))
#define IS_CONFIGURATION_FACADE_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_CONFIGURATION_FACADE))
#define CONFIGURATION_FACADE_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_CONFIGURATION_FACADE, ConfigurationFacadeClass))
typedef struct _ConfigurationFacade ConfigurationFacade;
typedef struct _ConfigurationFacadeClass ConfigurationFacadeClass;
#define CONFIG_TYPE_FACADE (config_facade_get_type ())
#define CONFIG_FACADE(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), CONFIG_TYPE_FACADE, ConfigFacade))
#define CONFIG_FACADE_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), CONFIG_TYPE_FACADE, ConfigFacadeClass))
#define CONFIG_IS_FACADE(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), CONFIG_TYPE_FACADE))
#define CONFIG_IS_FACADE_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), CONFIG_TYPE_FACADE))
#define CONFIG_FACADE_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), CONFIG_TYPE_FACADE, ConfigFacadeClass))
typedef struct _ConfigFacade ConfigFacade;
typedef struct _ConfigFacadeClass ConfigFacadeClass;
#define __g_list_free__g_object_unref0_0(var) ((var == NULL) ? NULL : (var = (_g_list_free__g_object_unref0_ (var), NULL)))
typedef struct _PhotoPhotoTransformationStateImplPrivate PhotoPhotoTransformationStateImplPrivate;
typedef struct _PhotoParamSpecBackingReaders PhotoParamSpecBackingReaders;
#define _g_timer_destroy0(var) ((var == NULL) ? NULL : (var = (g_timer_destroy (var), NULL)))
typedef struct _PhotoParamSpecCachedPixbuf PhotoParamSpecCachedPixbuf;
typedef struct _PhotoParamSpecReimportMasterState PhotoParamSpecReimportMasterState;
typedef struct _PhotoParamSpecReimportEditableState PhotoParamSpecReimportEditableState;
typedef struct _PhotoParamSpecReimportRawDevelopmentState PhotoParamSpecReimportRawDevelopmentState;
typedef struct _PhotoReimportRawDevelopmentStateImplParamSpecDevToReimport PhotoReimportRawDevelopmentStateImplParamSpecDevToReimport;
typedef struct _DataCollectionPrivate DataCollectionPrivate;
#define TYPE_MARKER (marker_get_type ())
#define MARKER(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_MARKER, Marker))
#define IS_MARKER(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_MARKER))
#define MARKER_GET_INTERFACE(obj) (G_TYPE_INSTANCE_GET_INTERFACE ((obj), TYPE_MARKER, MarkerIface))
typedef struct _Marker Marker;
typedef struct _MarkerIface MarkerIface;
typedef struct _SourceCollectionPrivate SourceCollectionPrivate;
#define TYPE_SOURCE_BACKLINK (source_backlink_get_type ())
#define SOURCE_BACKLINK(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_SOURCE_BACKLINK, SourceBacklink))
#define SOURCE_BACKLINK_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_SOURCE_BACKLINK, SourceBacklinkClass))
#define IS_SOURCE_BACKLINK(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_SOURCE_BACKLINK))
#define IS_SOURCE_BACKLINK_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_SOURCE_BACKLINK))
#define SOURCE_BACKLINK_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_SOURCE_BACKLINK, SourceBacklinkClass))
typedef struct _SourceBacklink SourceBacklink;
typedef struct _SourceBacklinkClass SourceBacklinkClass;
#define TYPE_DATABASE_SOURCE_COLLECTION (database_source_collection_get_type ())
#define DATABASE_SOURCE_COLLECTION(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_DATABASE_SOURCE_COLLECTION, DatabaseSourceCollection))
#define DATABASE_SOURCE_COLLECTION_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_DATABASE_SOURCE_COLLECTION, DatabaseSourceCollectionClass))
#define IS_DATABASE_SOURCE_COLLECTION(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_DATABASE_SOURCE_COLLECTION))
#define IS_DATABASE_SOURCE_COLLECTION_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_DATABASE_SOURCE_COLLECTION))
#define DATABASE_SOURCE_COLLECTION_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_DATABASE_SOURCE_COLLECTION, DatabaseSourceCollectionClass))
typedef struct _DatabaseSourceCollection DatabaseSourceCollection;
typedef struct _DatabaseSourceCollectionClass DatabaseSourceCollectionClass;
typedef struct _DatabaseSourceCollectionPrivate DatabaseSourceCollectionPrivate;
#define TYPE_MEDIA_SOURCE_COLLECTION (media_source_collection_get_type ())
#define MEDIA_SOURCE_COLLECTION(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_MEDIA_SOURCE_COLLECTION, MediaSourceCollection))
#define MEDIA_SOURCE_COLLECTION_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_MEDIA_SOURCE_COLLECTION, MediaSourceCollectionClass))
#define IS_MEDIA_SOURCE_COLLECTION(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_MEDIA_SOURCE_COLLECTION))
#define IS_MEDIA_SOURCE_COLLECTION_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_MEDIA_SOURCE_COLLECTION))
#define MEDIA_SOURCE_COLLECTION_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_MEDIA_SOURCE_COLLECTION, MediaSourceCollectionClass))
typedef struct _MediaSourceCollection MediaSourceCollection;
typedef struct _MediaSourceCollectionClass MediaSourceCollectionClass;
typedef struct _MediaSourceCollectionPrivate MediaSourceCollectionPrivate;
#define TYPE_DATABASE_SOURCE_HOLDING_TANK (database_source_holding_tank_get_type ())
#define DATABASE_SOURCE_HOLDING_TANK(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_DATABASE_SOURCE_HOLDING_TANK, DatabaseSourceHoldingTank))
#define DATABASE_SOURCE_HOLDING_TANK_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_DATABASE_SOURCE_HOLDING_TANK, DatabaseSourceHoldingTankClass))
#define IS_DATABASE_SOURCE_HOLDING_TANK(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_DATABASE_SOURCE_HOLDING_TANK))
#define IS_DATABASE_SOURCE_HOLDING_TANK_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_DATABASE_SOURCE_HOLDING_TANK))
#define DATABASE_SOURCE_HOLDING_TANK_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_DATABASE_SOURCE_HOLDING_TANK, DatabaseSourceHoldingTankClass))
typedef struct _DatabaseSourceHoldingTank DatabaseSourceHoldingTank;
typedef struct _DatabaseSourceHoldingTankClass DatabaseSourceHoldingTankClass;
#define TYPE_MEDIA_SOURCE_HOLDING_TANK (media_source_holding_tank_get_type ())
#define MEDIA_SOURCE_HOLDING_TANK(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_MEDIA_SOURCE_HOLDING_TANK, MediaSourceHoldingTank))
#define MEDIA_SOURCE_HOLDING_TANK_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_MEDIA_SOURCE_HOLDING_TANK, MediaSourceHoldingTankClass))
#define IS_MEDIA_SOURCE_HOLDING_TANK(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_MEDIA_SOURCE_HOLDING_TANK))
#define IS_MEDIA_SOURCE_HOLDING_TANK_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_MEDIA_SOURCE_HOLDING_TANK))
#define MEDIA_SOURCE_HOLDING_TANK_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_MEDIA_SOURCE_HOLDING_TANK, MediaSourceHoldingTankClass))
typedef struct _MediaSourceHoldingTank MediaSourceHoldingTank;
typedef struct _MediaSourceHoldingTankClass MediaSourceHoldingTankClass;
#define TYPE_WORKERS (workers_get_type ())
#define WORKERS(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_WORKERS, Workers))
#define WORKERS_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_WORKERS, WorkersClass))
#define IS_WORKERS(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_WORKERS))
#define IS_WORKERS_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_WORKERS))
#define WORKERS_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_WORKERS, WorkersClass))
typedef struct _Workers Workers;
typedef struct _WorkersClass WorkersClass;
#define TYPE_MEDIA_MONITOR (media_monitor_get_type ())
#define MEDIA_MONITOR(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_MEDIA_MONITOR, MediaMonitor))
#define MEDIA_MONITOR_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_MEDIA_MONITOR, MediaMonitorClass))
#define IS_MEDIA_MONITOR(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_MEDIA_MONITOR))
#define IS_MEDIA_MONITOR_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_MEDIA_MONITOR))
#define MEDIA_MONITOR_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_MEDIA_MONITOR, MediaMonitorClass))
typedef struct _MediaMonitor MediaMonitor;
typedef struct _MediaMonitorClass MediaMonitorClass;
#define TYPE_TRANSACTION_CONTROLLER (transaction_controller_get_type ())
#define TRANSACTION_CONTROLLER(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_TRANSACTION_CONTROLLER, TransactionController))
#define TRANSACTION_CONTROLLER_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_TRANSACTION_CONTROLLER, TransactionControllerClass))
#define IS_TRANSACTION_CONTROLLER(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_TRANSACTION_CONTROLLER))
#define IS_TRANSACTION_CONTROLLER_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_TRANSACTION_CONTROLLER))
#define TRANSACTION_CONTROLLER_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_TRANSACTION_CONTROLLER, TransactionControllerClass))
typedef struct _TransactionController TransactionController;
typedef struct _TransactionControllerClass TransactionControllerClass;
#define TYPE_LIBRARY_PHOTO_SOURCE_COLLECTION (library_photo_source_collection_get_type ())
#define LIBRARY_PHOTO_SOURCE_COLLECTION(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_LIBRARY_PHOTO_SOURCE_COLLECTION, LibraryPhotoSourceCollection))
#define LIBRARY_PHOTO_SOURCE_COLLECTION_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_LIBRARY_PHOTO_SOURCE_COLLECTION, LibraryPhotoSourceCollectionClass))
#define IS_LIBRARY_PHOTO_SOURCE_COLLECTION(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_LIBRARY_PHOTO_SOURCE_COLLECTION))
#define IS_LIBRARY_PHOTO_SOURCE_COLLECTION_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_LIBRARY_PHOTO_SOURCE_COLLECTION))
#define LIBRARY_PHOTO_SOURCE_COLLECTION_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_LIBRARY_PHOTO_SOURCE_COLLECTION, LibraryPhotoSourceCollectionClass))
typedef struct _LibraryPhotoSourceCollection LibraryPhotoSourceCollection;
typedef struct _LibraryPhotoSourceCollectionClass LibraryPhotoSourceCollectionClass;
typedef struct _LibraryPhotoSourceCollectionPrivate LibraryPhotoSourceCollectionPrivate;
#define LIBRARY_PHOTO_SOURCE_COLLECTION_TYPE_STATE (library_photo_source_collection_state_get_type ())
#define _transaction_controller_unref0(var) ((var == NULL) ? NULL : (var = (transaction_controller_unref (var), NULL)))
#define _source_holding_tank_unref0(var) ((var == NULL) ? NULL : (var = (source_holding_tank_unref (var), NULL)))
#define TYPE_LIBRARY_PHOTO_SOURCE_HOLDING_TANK (library_photo_source_holding_tank_get_type ())
#define LIBRARY_PHOTO_SOURCE_HOLDING_TANK(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_LIBRARY_PHOTO_SOURCE_HOLDING_TANK, LibraryPhotoSourceHoldingTank))
#define LIBRARY_PHOTO_SOURCE_HOLDING_TANK_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_LIBRARY_PHOTO_SOURCE_HOLDING_TANK, LibraryPhotoSourceHoldingTankClass))
#define IS_LIBRARY_PHOTO_SOURCE_HOLDING_TANK(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_LIBRARY_PHOTO_SOURCE_HOLDING_TANK))
#define IS_LIBRARY_PHOTO_SOURCE_HOLDING_TANK_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_LIBRARY_PHOTO_SOURCE_HOLDING_TANK))
#define LIBRARY_PHOTO_SOURCE_HOLDING_TANK_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_LIBRARY_PHOTO_SOURCE_HOLDING_TANK, LibraryPhotoSourceHoldingTankClass))
typedef struct _LibraryPhotoSourceHoldingTank LibraryPhotoSourceHoldingTank;
typedef struct _LibraryPhotoSourceHoldingTankClass LibraryPhotoSourceHoldingTankClass;
#define TYPE_PHOTO_MONITOR (photo_monitor_get_type ())
#define PHOTO_MONITOR(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_PHOTO_MONITOR, PhotoMonitor))
#define PHOTO_MONITOR_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_PHOTO_MONITOR, PhotoMonitorClass))
#define IS_PHOTO_MONITOR(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_PHOTO_MONITOR))
#define IS_PHOTO_MONITOR_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_PHOTO_MONITOR))
#define PHOTO_MONITOR_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_PHOTO_MONITOR, PhotoMonitorClass))
typedef struct _PhotoMonitor PhotoMonitor;
typedef struct _PhotoMonitorClass PhotoMonitorClass;
#define TYPE_TAG (tag_get_type ())
#define TAG(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_TAG, Tag))
#define TAG_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_TAG, TagClass))
#define IS_TAG(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_TAG))
#define IS_TAG_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_TAG))
#define TAG_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_TAG, TagClass))
typedef struct _Tag Tag;
typedef struct _TagClass TagClass;
#define TYPE_HIERARCHICAL_TAG_INDEX (hierarchical_tag_index_get_type ())
#define HIERARCHICAL_TAG_INDEX(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_HIERARCHICAL_TAG_INDEX, HierarchicalTagIndex))
#define HIERARCHICAL_TAG_INDEX_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_HIERARCHICAL_TAG_INDEX, HierarchicalTagIndexClass))
#define IS_HIERARCHICAL_TAG_INDEX(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_HIERARCHICAL_TAG_INDEX))
#define IS_HIERARCHICAL_TAG_INDEX_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_HIERARCHICAL_TAG_INDEX))
#define HIERARCHICAL_TAG_INDEX_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_HIERARCHICAL_TAG_INDEX, HierarchicalTagIndexClass))
typedef struct _HierarchicalTagIndex HierarchicalTagIndex;
typedef struct _HierarchicalTagIndexClass HierarchicalTagIndexClass;
#define _hierarchical_tag_index_unref0(var) ((var == NULL) ? NULL : (var = (hierarchical_tag_index_unref (var), NULL)))
#define TYPE_MEDIA_SOURCE_TRANSACTION_CONTROLLER (media_source_transaction_controller_get_type ())
#define MEDIA_SOURCE_TRANSACTION_CONTROLLER(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_MEDIA_SOURCE_TRANSACTION_CONTROLLER, MediaSourceTransactionController))
#define MEDIA_SOURCE_TRANSACTION_CONTROLLER_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_MEDIA_SOURCE_TRANSACTION_CONTROLLER, MediaSourceTransactionControllerClass))
#define IS_MEDIA_SOURCE_TRANSACTION_CONTROLLER(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_MEDIA_SOURCE_TRANSACTION_CONTROLLER))
#define IS_MEDIA_SOURCE_TRANSACTION_CONTROLLER_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_MEDIA_SOURCE_TRANSACTION_CONTROLLER))
#define MEDIA_SOURCE_TRANSACTION_CONTROLLER_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_MEDIA_SOURCE_TRANSACTION_CONTROLLER, MediaSourceTransactionControllerClass))
typedef struct _MediaSourceTransactionController MediaSourceTransactionController;
typedef struct _MediaSourceTransactionControllerClass MediaSourceTransactionControllerClass;
#define TYPE_FLAGGABLE (flaggable_get_type ())
#define FLAGGABLE(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_FLAGGABLE, Flaggable))
#define IS_FLAGGABLE(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_FLAGGABLE))
#define FLAGGABLE_GET_INTERFACE(obj) (G_TYPE_INSTANCE_GET_INTERFACE ((obj), TYPE_FLAGGABLE, FlaggableIface))
typedef struct _Flaggable Flaggable;
typedef struct _FlaggableIface FlaggableIface;
#define TYPE_MONITORABLE (monitorable_get_type ())
#define MONITORABLE(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_MONITORABLE, Monitorable))
#define IS_MONITORABLE(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_MONITORABLE))
#define MONITORABLE_GET_INTERFACE(obj) (G_TYPE_INSTANCE_GET_INTERFACE ((obj), TYPE_MONITORABLE, MonitorableIface))
typedef struct _Monitorable Monitorable;
typedef struct _MonitorableIface MonitorableIface;
typedef struct _LibraryPhotoPrivate LibraryPhotoPrivate;
#define _data_collection_unref0(var) ((var == NULL) ? NULL : (var = (data_collection_unref (var), NULL)))
#define THUMBNAIL_CACHE_TYPE_SIZE (thumbnail_cache_size_get_type ())
#define TYPE_EVENT_SOURCE (event_source_get_type ())
#define EVENT_SOURCE(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_EVENT_SOURCE, EventSource))
#define EVENT_SOURCE_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_EVENT_SOURCE, EventSourceClass))
#define IS_EVENT_SOURCE(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_EVENT_SOURCE))
#define IS_EVENT_SOURCE_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_EVENT_SOURCE))
#define EVENT_SOURCE_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_EVENT_SOURCE, EventSourceClass))
typedef struct _EventSource EventSource;
typedef struct _EventSourceClass EventSourceClass;
#define TYPE_EVENT (event_get_type ())
#define EVENT(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_EVENT, Event))
#define EVENT_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_EVENT, EventClass))
#define IS_EVENT(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_EVENT))
#define IS_EVENT_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_EVENT))
#define EVENT_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_EVENT, EventClass))
typedef struct _Event Event;
typedef struct _EventClass EventClass;
#define TYPE_CONTAINER_SOURCE_COLLECTION (container_source_collection_get_type ())
#define CONTAINER_SOURCE_COLLECTION(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_CONTAINER_SOURCE_COLLECTION, ContainerSourceCollection))
#define CONTAINER_SOURCE_COLLECTION_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_CONTAINER_SOURCE_COLLECTION, ContainerSourceCollectionClass))
#define IS_CONTAINER_SOURCE_COLLECTION(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_CONTAINER_SOURCE_COLLECTION))
#define IS_CONTAINER_SOURCE_COLLECTION_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_CONTAINER_SOURCE_COLLECTION))
#define CONTAINER_SOURCE_COLLECTION_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_CONTAINER_SOURCE_COLLECTION, ContainerSourceCollectionClass))
typedef struct _ContainerSourceCollection ContainerSourceCollection;
typedef struct _ContainerSourceCollectionClass ContainerSourceCollectionClass;
#define TYPE_TAG_SOURCE_COLLECTION (tag_source_collection_get_type ())
#define TAG_SOURCE_COLLECTION(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_TAG_SOURCE_COLLECTION, TagSourceCollection))
#define TAG_SOURCE_COLLECTION_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_TAG_SOURCE_COLLECTION, TagSourceCollectionClass))
#define IS_TAG_SOURCE_COLLECTION(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_TAG_SOURCE_COLLECTION))
#define IS_TAG_SOURCE_COLLECTION_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_TAG_SOURCE_COLLECTION))
#define TAG_SOURCE_COLLECTION_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_TAG_SOURCE_COLLECTION, TagSourceCollectionClass))
typedef struct _TagSourceCollection TagSourceCollection;
typedef struct _TagSourceCollectionClass TagSourceCollectionClass;
typedef struct _SourceHoldingTankPrivate SourceHoldingTankPrivate;
typedef struct _DatabaseSourceHoldingTankPrivate DatabaseSourceHoldingTankPrivate;
typedef struct _MediaSourceHoldingTankPrivate MediaSourceHoldingTankPrivate;
typedef struct _LibraryPhotoSourceHoldingTankPrivate LibraryPhotoSourceHoldingTankPrivate;
#define _vala_assert(expr, msg) if G_LIKELY (expr) ; else g_assertion_message_expr (G_LOG_DOMAIN, __FILE__, __LINE__, G_STRFUNC, msg);
#define _vala_return_if_fail(expr, msg) if G_LIKELY (expr) ; else { g_return_if_fail_warning (G_LOG_DOMAIN, G_STRFUNC, msg); return; }
#define _vala_return_val_if_fail(expr, msg, val) if G_LIKELY (expr) ; else { g_return_if_fail_warning (G_LOG_DOMAIN, G_STRFUNC, msg); return val; }
#define _vala_warn_if_fail(expr, msg) if G_LIKELY (expr) ; else g_warn_message (G_LOG_DOMAIN, __FILE__, __LINE__, G_STRFUNC, msg);
typedef enum {
BACKING_FETCH_MODE_SOURCE,
BACKING_FETCH_MODE_BASELINE,
BACKING_FETCH_MODE_MASTER,
BACKING_FETCH_MODE_UNMODIFIED
} BackingFetchMode;
struct _ImportID {
gint64 id;
};
typedef enum {
PHOTO_FILE_SNIFFER_OPTIONS_GET_ALL = 0x00000000,
PHOTO_FILE_SNIFFER_OPTIONS_NO_MD5 = 0x00000001
} PhotoFileSnifferOptions;
struct _PhotoImportParams {
GTypeInstance parent_instance;
volatile int ref_count;
PhotoImportParamsPrivate * priv;
GFile* file;
GFile* final_associated_file;
ImportID import_id;
PhotoFileSnifferOptions sniffer_options;
gchar* exif_md5;
gchar* thumbnail_md5;
gchar* full_md5;
Thumbnails* thumbnails;
PhotoRow* row;
GeeCollection* keywords;
};
struct _PhotoImportParamsClass {
GTypeClass parent_class;
void (*finalize) (PhotoImportParams *self);
};
struct _ParamSpecPhotoImportParams {
GParamSpec parent_instance;
};
struct _PhotoTransformationState {
GObject parent_instance;
PhotoTransformationStatePrivate * priv;
};
struct _PhotoTransformationStateClass {
GObjectClass parent_class;
void (*broken) (PhotoTransformationState* self);
};
struct _PhotoTransformationStatePrivate {
gboolean is_broke;
};
typedef enum {
RATING_REJECTED = -1,
RATING_UNRATED = 0,
RATING_ONE = 1,
RATING_TWO = 2,
RATING_THREE = 3,
RATING_FOUR = 4,
RATING_FIVE = 5
} Rating;
struct _DataObject {
GObject parent_instance;
DataObjectPrivate * priv;
};
struct _DataObjectClass {
GObjectClass parent_class;
void (*notify_altered) (DataObject* self, Alteration* alteration);
void (*notify_membership_changed) (DataObject* self, DataCollection* collection);
void (*notify_collection_property_set) (DataObject* self, const gchar* name, GValue* old, GValue* val);
void (*notify_collection_property_cleared) (DataObject* self, const gchar* name);
gchar* (*get_name) (DataObject* self);
gchar* (*to_string) (DataObject* self);
};
struct _DataSource {
DataObject parent_instance;
DataSourcePrivate * priv;
};
struct _DataSourceClass {
DataObjectClass parent_class;
void (*notify_held_in_tank) (DataSource* self, SourceHoldingTank* holding_tank);
void (*notify_unlinking) (DataSource* self, SourceCollection* collection);
void (*notify_unlinked) (DataSource* self);
void (*notify_relinking) (DataSource* self, SourceCollection* collection);
void (*notify_relinked) (DataSource* self);
gchar* (*get_typename) (DataSource* self);
gint64 (*get_instance_id) (DataSource* self);
gchar* (*get_source_id) (DataSource* self);
void (*commit_backlinks) (DataSource* self, SourceCollection* sources, const gchar* dehydrated);
SourceSnapshot* (*save_snapshot) (DataSource* self);
gboolean (*internal_delete_backing) (DataSource* self, GError** error);
gboolean (*equals) (DataSource* self, DataSource* source);
void (*destroy) (DataSource* self);
void (*unlinked) (DataSource* self, SourceCollection* sources);
void (*relinked) (DataSource* self, SourceCollection* sources);
void (*destroyed) (DataSource* self);
};
typedef enum {
PHOTO_FILE_FORMAT_JFIF,
PHOTO_FILE_FORMAT_RAW,
PHOTO_FILE_FORMAT_PNG,
PHOTO_FILE_FORMAT_TIFF,
PHOTO_FILE_FORMAT_BMP,
PHOTO_FILE_FORMAT_UNKNOWN
} PhotoFileFormat;
struct _ThumbnailSource {
DataSource parent_instance;
ThumbnailSourcePrivate * priv;
};
struct _ThumbnailSourceClass {
DataSourceClass parent_class;
void (*notify_thumbnail_altered) (ThumbnailSource* self);
GdkPixbuf* (*get_thumbnail) (ThumbnailSource* self, gint scale, GError** error);
GdkPixbuf* (*create_thumbnail) (ThumbnailSource* self, gint scale, GError** error);
gchar* (*get_representative_id) (ThumbnailSource* self);
PhotoFileFormat (*get_preferred_thumbnail_format) (ThumbnailSource* self);
void (*thumbnail_altered) (ThumbnailSource* self);
};
struct _IndexableIface {
GTypeInterface parent_iface;
const gchar* (*get_indexable_keywords) (Indexable* self);
};
struct _EventID {
gint64 id;
};
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;
struct _Dimensions {
gint width;
gint height;
};
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;
};
struct _MediaSource {
ThumbnailSource parent_instance;
MediaSourcePrivate * priv;
};
struct _MediaSourceClass {
ThumbnailSourceClass parent_class;
void (*notify_master_replaced) (MediaSource* self, GFile* old_file, GFile* new_file);
gboolean (*set_event_id) (MediaSource* self, EventID* id);
gchar* (*get_basename) (MediaSource* self);
GFile* (*get_file) (MediaSource* self);
GFile* (*get_master_file) (MediaSource* self);
guint64 (*get_master_filesize) (MediaSource* self);
guint64 (*get_filesize) (MediaSource* self);
time_t (*get_timestamp) (MediaSource* self);
BackingFileState** (*get_backing_files_state) (MediaSource* self, int* result_length1);
gchar* (*get_title) (MediaSource* self);
gchar* (*get_comment) (MediaSource* self);
void (*set_title) (MediaSource* self, const gchar* title);
gboolean (*set_comment) (MediaSource* self, const gchar* comment);
Rating (*get_rating) (MediaSource* self);
void (*set_rating) (MediaSource* self, Rating rating);
void (*increase_rating) (MediaSource* self);
void (*decrease_rating) (MediaSource* self);
void (*get_dimensions) (MediaSource* self, PhotoException disallowed_steps, Dimensions* result);
GdkPixbuf* (*get_preview_pixbuf) (MediaSource* self, Scaling* scaling, GError** error);
gboolean (*is_trashed) (MediaSource* self);
void (*trash) (MediaSource* self);
void (*untrash) (MediaSource* self);
gboolean (*is_offline) (MediaSource* self);
void (*mark_offline) (MediaSource* self);
void (*mark_online) (MediaSource* self);
gchar* (*get_master_md5) (MediaSource* self);
void (*get_event_id) (MediaSource* self, EventID* result);
time_t (*get_exposure_time) (MediaSource* self);
void (*get_import_id) (MediaSource* self, ImportID* result);
void (*master_replaced) (MediaSource* self, GFile* old_file, GFile* new_file);
};
struct _PhotoSource {
MediaSource parent_instance;
PhotoSourcePrivate * priv;
};
struct _PhotoSourceClass {
MediaSourceClass parent_class;
PhotoMetadata* (*get_metadata) (PhotoSource* self);
GdkPixbuf* (*get_pixbuf) (PhotoSource* self, Scaling* scaling, GError** error);
};
struct _DateableIface {
GTypeInterface parent_iface;
void (*set_exposure_time) (Dateable* self, time_t target_time);
time_t (*get_exposure_time) (Dateable* self);
};
typedef enum {
ROTATION_CLOCKWISE,
ROTATION_COUNTERCLOCKWISE,
ROTATION_MIRROR,
ROTATION_UPSIDE_DOWN
} Rotation;
struct _Photo {
PhotoSource parent_instance;
PhotoPrivate * priv;
PhotoRow* row;
gboolean can_rotate_now;
BackingPhotoRow* backing_photo_row;
};
struct _PhotoClass {
PhotoSourceClass parent_class;
void (*notify_editable_replaced) (Photo* self, GFile* old_file, GFile* new_file);
void (*notify_raw_development_modified) (Photo* self);
void (*notify_baseline_replaced) (Photo* self);
void (*notify_master_reimported) (Photo* self, PhotoMetadata* metadata);
void (*notify_editable_reimported) (Photo* self, PhotoMetadata* metadata);
void (*notify_source_reimported) (Photo* self, PhotoMetadata* metadata);
void (*notify_baseline_reimported) (Photo* self, PhotoMetadata* metadata);
void (*apply_user_metadata_for_reimport) (Photo* self, PhotoMetadata* metadata);
void (*rotate) (Photo* self, Rotation rotation);
gboolean (*has_user_generated_metadata) (Photo* self);
void (*set_user_metadata_for_export) (Photo* self, PhotoMetadata* metadata);
void (*editable_replaced) (Photo* self, GFile* old_file, GFile* new_file);
void (*raw_development_modified) (Photo* self);
void (*baseline_replaced) (Photo* self);
void (*master_reimported) (Photo* self, PhotoMetadata* metadata);
void (*editable_reimported) (Photo* self, PhotoMetadata* metadata);
void (*baseline_reimported) (Photo* self, PhotoMetadata* metadata);
void (*source_reimported) (Photo* self, PhotoMetadata* metadata);
};
typedef enum {
RAW_DEVELOPER_SHOTWELL = 0,
RAW_DEVELOPER_CAMERA,
RAW_DEVELOPER_EMBEDDED
} RawDeveloper;
struct _PhotoPrivate {
time_t cached_exposure_time;
GRecMutex __lock_row;
BackingPhotoRow* editable;
PhotoBackingReaders* readers;
GRecMutex __lock_readers;
PixelTransformer* transformer;
PixelTransformationBundle* adjustments;
gchar* file_title;
GFileMonitor* editable_monitor;
OneShotScheduler* reimport_editable_scheduler;
OneShotScheduler* update_editable_attributes_scheduler;
OneShotScheduler* remove_editable_scheduler;
GeeHashMap* developments;
GRecMutex __lock_developments;
};
struct _PhotoID {
gint64 id;
};
typedef enum {
ORIENTATION_MIN = 1,
ORIENTATION_TOP_LEFT = 1,
ORIENTATION_TOP_RIGHT = 2,
ORIENTATION_BOTTOM_RIGHT = 3,
ORIENTATION_BOTTOM_LEFT = 4,
ORIENTATION_LEFT_TOP = 5,
ORIENTATION_RIGHT_TOP = 6,
ORIENTATION_RIGHT_BOTTOM = 7,
ORIENTATION_LEFT_BOTTOM = 8,
ORIENTATION_MAX = 8
} Orientation;
struct _BackingPhotoID {
gint64 id;
};
struct _PhotoRow {
GTypeInstance parent_instance;
volatile int ref_count;
PhotoRowPrivate * priv;
PhotoID photo_id;
BackingPhotoRow* master;
time_t exposure_time;
ImportID import_id;
EventID event_id;
Orientation orientation;
GeeHashMap* transformations;
gchar* md5;
gchar* thumbnail_md5;
gchar* exif_md5;
time_t time_created;
guint64 flags;
Rating rating;
gchar* title;
gchar* comment;
gchar* backlinks;
time_t time_reimported;
BackingPhotoID editable_id;
gboolean metadata_dirty;
RawDeveloper developer;
BackingPhotoID* development_ids;
gint development_ids_length1;
};
struct _PhotoRowClass {
GTypeClass parent_class;
void (*finalize) (PhotoRow *self);
};
struct _BackingPhotoRow {
GTypeInstance parent_instance;
volatile int ref_count;
BackingPhotoRowPrivate * priv;
BackingPhotoID id;
time_t time_created;
gchar* filepath;
gint64 filesize;
time_t timestamp;
PhotoFileFormat file_format;
Dimensions dim;
Orientation original_orientation;
};
struct _BackingPhotoRowClass {
GTypeClass parent_class;
void (*finalize) (BackingPhotoRow *self);
};
struct _PhotoBackingReaders {
GTypeInstance parent_instance;
volatile int ref_count;
PhotoBackingReadersPrivate * priv;
PhotoFileReader* master;
PhotoFileReader* developer;
PhotoFileReader* editable;
};
struct _PhotoBackingReadersClass {
GTypeClass parent_class;
void (*finalize) (PhotoBackingReaders *self);
};
typedef enum {
DATABASE_ERROR_ERROR,
DATABASE_ERROR_BACKING,
DATABASE_ERROR_MEMORY,
DATABASE_ERROR_ABORT,
DATABASE_ERROR_LIMITS,
DATABASE_ERROR_TYPESPEC
} DatabaseError;
#define DATABASE_ERROR database_error_quark ()
struct _DetectedPhotoInformation {
GTypeInstance parent_instance;
volatile int ref_count;
DetectedPhotoInformationPrivate * priv;
PhotoFileFormat file_format;
PhotoMetadata* metadata;
gchar* md5;
gchar* exif_md5;
gchar* thumbnail_md5;
gchar* format_name;
Dimensions image_dim;
GdkColorspace colorspace;
gint channels;
gint bits_per_channel;
};
struct _DetectedPhotoInformationClass {
GTypeClass parent_class;
void (*finalize) (DetectedPhotoInformation *self);
};
typedef enum {
PHOTO_FORMAT_ERROR_READ_ONLY
} PhotoFormatError;
#define PHOTO_FORMAT_ERROR photo_format_error_quark ()
typedef enum {
JPEG_QUALITY_LOW = 50,
JPEG_QUALITY_MEDIUM = 75,
JPEG_QUALITY_HIGH = 90,
JPEG_QUALITY_MAXIMUM = 100
} JpegQuality;
typedef enum {
EXPORT_FORMAT_MODE_UNMODIFIED,
EXPORT_FORMAT_MODE_CURRENT,
EXPORT_FORMAT_MODE_SPECIFIED,
EXPORT_FORMAT_MODE_LAST
} ExportFormatMode;
struct _ExportFormatParameters {
ExportFormatMode mode;
PhotoFileFormat specified_format;
JpegQuality quality;
gboolean export_metadata;
};
typedef enum {
IMPORT_RESULT_SUCCESS,
IMPORT_RESULT_FILE_ERROR,
IMPORT_RESULT_DECODE_ERROR,
IMPORT_RESULT_DATABASE_ERROR,
IMPORT_RESULT_USER_ABORT,
IMPORT_RESULT_NOT_A_FILE,
IMPORT_RESULT_PHOTO_EXISTS,
IMPORT_RESULT_UNSUPPORTED_FORMAT,
IMPORT_RESULT_NOT_AN_IMAGE,
IMPORT_RESULT_DISK_FAILURE,
IMPORT_RESULT_DISK_FULL,
IMPORT_RESULT_CAMERA_ERROR,
IMPORT_RESULT_FILE_WRITE_ERROR,
IMPORT_RESULT_PIXBUF_CORRUPT_IMAGE
} ImportResult;
struct _PhotoReimportMasterState {
GTypeInstance parent_instance;
volatile int ref_count;
PhotoReimportMasterStatePrivate * priv;
};
struct _PhotoReimportMasterStateClass {
GTypeClass parent_class;
void (*finalize) (PhotoReimportMasterState *self);
};
struct _PhotoReimportMasterStateImpl {
PhotoReimportMasterState parent_instance;
PhotoReimportMasterStateImplPrivate * priv;
PhotoRow* row;
PhotoMetadata* metadata;
gchar** alterations;
gint alterations_length1;
gint _alterations_size_;
gboolean metadata_only;
};
struct _PhotoReimportMasterStateImplClass {
PhotoReimportMasterStateClass parent_class;
};
struct _PhotoReimportEditableState {
GTypeInstance parent_instance;
volatile int ref_count;
PhotoReimportEditableStatePrivate * priv;
};
struct _PhotoReimportEditableStateClass {
GTypeClass parent_class;
void (*finalize) (PhotoReimportEditableState *self);
};
struct _PhotoReimportEditableStateImpl {
PhotoReimportEditableState parent_instance;
PhotoReimportEditableStateImplPrivate * priv;
BackingPhotoRow* backing_state;
PhotoMetadata* metadata;
gboolean metadata_only;
};
struct _PhotoReimportEditableStateImplClass {
PhotoReimportEditableStateClass parent_class;
};
struct _PhotoReimportRawDevelopmentState {
GTypeInstance parent_instance;
volatile int ref_count;
PhotoReimportRawDevelopmentStatePrivate * priv;
};
struct _PhotoReimportRawDevelopmentStateClass {
GTypeClass parent_class;
void (*finalize) (PhotoReimportRawDevelopmentState *self);
};
struct _PhotoReimportRawDevelopmentStateImpl {
PhotoReimportRawDevelopmentState parent_instance;
PhotoReimportRawDevelopmentStateImplPrivate * priv;
GeeCollection* list;
gboolean metadata_only;
};
struct _PhotoReimportRawDevelopmentStateImplClass {
PhotoReimportRawDevelopmentStateClass parent_class;
};
struct _PhotoReimportRawDevelopmentStateImplDevToReimport {
GTypeInstance parent_instance;
volatile int ref_count;
PhotoReimportRawDevelopmentStateImplDevToReimportPrivate * priv;
BackingPhotoRow* backing;
PhotoMetadata* metadata;
};
struct _PhotoReimportRawDevelopmentStateImplDevToReimportClass {
GTypeClass parent_class;
void (*finalize) (PhotoReimportRawDevelopmentStateImplDevToReimport *self);
};
typedef enum {
PHOTO_METADATA_SET_OPTION_ALL_DOMAINS,
PHOTO_METADATA_SET_OPTION_ONLY_IF_DOMAIN_PRESENT,
PHOTO_METADATA_SET_OPTION_AT_LEAST_DEFAULT_DOMAIN
} PhotoMetadataSetOption;
struct _Box {
gint left;
gint top;
gint right;
gint bottom;
};
typedef enum {
PIXEL_TRANSFORMATION_TYPE_TONE_EXPANSION,
PIXEL_TRANSFORMATION_TYPE_SHADOWS,
PIXEL_TRANSFORMATION_TYPE_HIGHLIGHTS,
PIXEL_TRANSFORMATION_TYPE_TEMPERATURE,
PIXEL_TRANSFORMATION_TYPE_TINT,
PIXEL_TRANSFORMATION_TYPE_SATURATION,
PIXEL_TRANSFORMATION_TYPE_EXPOSURE,
PIXEL_TRANSFORMATION_TYPE_CONTRAST
} PixelTransformationType;
struct _EditingToolsRedeyeInstance {
GdkPoint center;
gint radius;
};
struct _PhotoCachedPixbuf {
GTypeInstance parent_instance;
volatile int ref_count;
PhotoCachedPixbufPrivate * priv;
Photo* photo;
GdkPixbuf* pixbuf;
GTimer* last_touched;
};
struct _PhotoCachedPixbufClass {
GTypeClass parent_class;
void (*finalize) (PhotoCachedPixbuf *self);
};
typedef void (*OneShotCallback) (void* user_data);
struct _PhotoPhotoTransformationStateImpl {
PhotoTransformationState parent_instance;
PhotoPhotoTransformationStateImplPrivate * priv;
};
struct _PhotoPhotoTransformationStateImplClass {
PhotoTransformationStateClass parent_class;
};
struct _PhotoPhotoTransformationStateImplPrivate {
Photo* photo;
Orientation orientation;
GeeHashMap* transformations;
PixelTransformer* transformer;
PixelTransformationBundle* adjustments;
};
struct _PhotoParamSpecBackingReaders {
GParamSpec parent_instance;
};
struct _PhotoParamSpecCachedPixbuf {
GParamSpec parent_instance;
};
struct _PhotoParamSpecReimportMasterState {
GParamSpec parent_instance;
};
struct _PhotoParamSpecReimportEditableState {
GParamSpec parent_instance;
};
struct _PhotoParamSpecReimportRawDevelopmentState {
GParamSpec parent_instance;
};
struct _PhotoReimportRawDevelopmentStateImplParamSpecDevToReimport {
GParamSpec parent_instance;
};
typedef gint64 (*Comparator) (void* a, void* b, void* user_data);
typedef gboolean (*ComparatorPredicate) (DataObject* object, Alteration* alteration, void* user_data);
typedef gboolean (*ProgressMonitor) (guint64 current, guint64 total, gboolean do_event_loop, void* user_data);
struct _MarkerIface {
GTypeInterface parent_iface;
void (*mark) (Marker* self, DataObject* object);
void (*unmark) (Marker* self, DataObject* object);
gboolean (*toggle) (Marker* self, DataObject* object);
void (*mark_many) (Marker* self, GeeCollection* list);
void (*unmark_many) (Marker* self, GeeCollection* list);
void (*mark_all) (Marker* self);
gint (*get_count) (Marker* self);
GeeCollection* (*get_all) (Marker* self);
};
struct _DataCollection {
GTypeInstance parent_instance;
volatile int ref_count;
DataCollectionPrivate * priv;
};
struct _DataCollectionClass {
GTypeClass parent_class;
void (*finalize) (DataCollection *self);
gchar* (*to_string) (DataCollection* self);
void (*notify_items_added) (DataCollection* self, GeeIterable* added);
void (*notify_items_removed) (DataCollection* self, GeeIterable* removed);
void (*notify_contents_altered) (DataCollection* self, GeeIterable* added, GeeIterable* removed);
void (*notify_items_altered) (DataCollection* self, GeeMap* items);
void (*notify_ordering_changed) (DataCollection* self);
void (*notify_property_set) (DataCollection* self, const gchar* name, GValue* old, GValue* val);
void (*notify_property_cleared) (DataCollection* self, const gchar* name);
gboolean (*valid_type) (DataCollection* self, DataObject* object);
void (*set_comparator) (DataCollection* self, Comparator comparator, void* comparator_target, ComparatorPredicate predicate, void* predicate_target);
void (*reset_comparator) (DataCollection* self);
GeeCollection* (*get_all) (DataCollection* self);
gint (*get_count) (DataCollection* self);
DataObject* (*get_at) (DataCollection* self, gint index);
gint (*index_of) (DataCollection* self, DataObject* object);
gboolean (*contains) (DataCollection* self, DataObject* object);
gboolean (*add) (DataCollection* self, DataObject* object);
GeeCollection* (*add_many) (DataCollection* self, GeeCollection* objects, ProgressMonitor monitor, void* monitor_target);
void (*remove_marked) (DataCollection* self, Marker* m);
void (*clear) (DataCollection* self);
void (*close) (DataCollection* self);
void (*notify_frozen) (DataCollection* self);
void (*notify_thawed) (DataCollection* self);
void (*items_added) (DataCollection* self, GeeIterable* added);
void (*items_removed) (DataCollection* self, GeeIterable* removed);
void (*contents_altered) (DataCollection* self, GeeIterable* added, GeeIterable* removed);
void (*items_altered) (DataCollection* self, GeeMap* items);
void (*ordering_changed) (DataCollection* self);
void (*property_set) (DataCollection* self, const gchar* name, GValue* old, GValue* val);
void (*property_cleared) (DataCollection* self, const gchar* name);
void (*frozen) (DataCollection* self);
void (*thawed) (DataCollection* self);
};
struct _SourceCollection {
DataCollection parent_instance;
SourceCollectionPrivate * priv;
};
struct _SourceCollectionClass {
DataCollectionClass parent_class;
gboolean (*holds_type_of_source) (SourceCollection* self, DataSource* source);
void (*notify_items_unlinking) (SourceCollection* self, GeeCollection* unlinking);
void (*notify_items_relinked) (SourceCollection* self, GeeCollection* relinked);
void (*notify_item_destroyed) (SourceCollection* self, DataSource* source);
void (*notify_items_destroyed) (SourceCollection* self, GeeCollection* destroyed);
void (*notify_unlinked_destroyed) (SourceCollection* self, DataSource* unlinked);
void (*notify_backlink_removed) (SourceCollection* self, SourceBacklink* backlink, GeeCollection* sources);
gboolean (*has_backlink) (SourceCollection* self, SourceBacklink* backlink);
void (*remove_backlink) (SourceCollection* self, SourceBacklink* backlink);
void (*items_unlinking) (SourceCollection* self, GeeCollection* unlinking);
void (*items_relinked) (SourceCollection* self, GeeCollection* relinked);
void (*item_destroyed) (SourceCollection* self, DataSource* source);
void (*items_destroyed) (SourceCollection* self, GeeCollection* destroyed);
void (*unlinked_destroyed) (SourceCollection* self, DataSource* source);
void (*backlink_removed) (SourceCollection* self, SourceBacklink* backlink, GeeCollection* sources);
};
struct _DatabaseSourceCollection {
SourceCollection parent_instance;
DatabaseSourceCollectionPrivate * priv;
};
struct _DatabaseSourceCollectionClass {
SourceCollectionClass parent_class;
};
struct _MediaSourceCollection {
DatabaseSourceCollection parent_instance;
MediaSourceCollectionPrivate * priv;
};
struct _MediaSourceCollectionClass {
DatabaseSourceCollectionClass parent_class;
MediaSourceHoldingTank* (*create_trashcan) (MediaSourceCollection* self);
MediaSourceHoldingTank* (*create_offline_bin) (MediaSourceCollection* self);
MediaMonitor* (*create_media_monitor) (MediaSourceCollection* self, Workers* workers, GCancellable* cancellable);
gchar* (*get_typename) (MediaSourceCollection* self);
gboolean (*is_file_recognized) (MediaSourceCollection* self, GFile* file);
MediaSource* (*fetch_by_numeric_id) (MediaSourceCollection* self, gint64 numeric_id);
void (*notify_import_roll_altered) (MediaSourceCollection* self);
void (*notify_flagged_contents_altered) (MediaSourceCollection* self);
void (*notify_media_import_starting) (MediaSourceCollection* self, GeeCollection* media);
void (*notify_media_import_completed) (MediaSourceCollection* self, GeeCollection* media);
MediaSource* (*fetch_by_source_id) (MediaSourceCollection* self, const gchar* source_id);
GeeCollection* (*get_event_source_ids) (MediaSourceCollection* self, EventID* event_id);
void (*import_many) (MediaSourceCollection* self, GeeCollection* media);
void (*postprocess_imported_media) (MediaSourceCollection* self, GeeCollection* media);
void (*media_import_starting) (MediaSourceCollection* self, GeeCollection* media);
void (*media_import_completed) (MediaSourceCollection* self, GeeCollection* media);
void (*master_file_replaced) (MediaSourceCollection* self, MediaSource* media, GFile* old_file, GFile* new_file);
void (*trashcan_contents_altered) (MediaSourceCollection* self, GeeCollection* added, GeeCollection* removed);
void (*import_roll_altered) (MediaSourceCollection* self);
void (*offline_contents_altered) (MediaSourceCollection* self, GeeCollection* added, GeeCollection* removed);
void (*flagged_contents_altered) (MediaSourceCollection* self);
TransactionController* (*get_transaction_controller) (MediaSourceCollection* self);
};
struct _LibraryPhotoSourceCollection {
MediaSourceCollection parent_instance;
LibraryPhotoSourceCollectionPrivate * priv;
};
struct _LibraryPhotoSourceCollectionClass {
MediaSourceCollectionClass parent_class;
void (*notify_master_reimported) (LibraryPhotoSourceCollection* self, LibraryPhoto* photo, PhotoMetadata* metadata);
void (*notify_editable_reimported) (LibraryPhotoSourceCollection* self, LibraryPhoto* photo, PhotoMetadata* metadata);
void (*notify_source_reimported) (LibraryPhotoSourceCollection* self, LibraryPhoto* photo, PhotoMetadata* metadata);
void (*notify_baseline_reimported) (LibraryPhotoSourceCollection* self, LibraryPhoto* photo, PhotoMetadata* metadata);
void (*master_reimported) (LibraryPhotoSourceCollection* self, LibraryPhoto* photo, PhotoMetadata* metadata);
void (*editable_reimported) (LibraryPhotoSourceCollection* self, LibraryPhoto* photo, PhotoMetadata* metadata);
void (*baseline_reimported) (LibraryPhotoSourceCollection* self, LibraryPhoto* photo, PhotoMetadata* metadata);
void (*source_reimported) (LibraryPhotoSourceCollection* self, LibraryPhoto* photo, PhotoMetadata* metadata);
};
struct _LibraryPhotoSourceCollectionPrivate {
TransactionController* _transaction_controller;
GeeHashMap* by_editable_file;
GeeHashMap* by_raw_development_file;
GeeMultiMap* filesize_to_photo;
GeeHashMap* photo_to_master_filesize;
GeeHashMap* photo_to_editable_filesize;
GeeMultiMap* photo_to_raw_development_filesize;
};
typedef enum {
LIBRARY_PHOTO_SOURCE_COLLECTION_STATE_UNKNOWN,
LIBRARY_PHOTO_SOURCE_COLLECTION_STATE_ONLINE,
LIBRARY_PHOTO_SOURCE_COLLECTION_STATE_OFFLINE,
LIBRARY_PHOTO_SOURCE_COLLECTION_STATE_TRASH,
LIBRARY_PHOTO_SOURCE_COLLECTION_STATE_EDITABLE,
LIBRARY_PHOTO_SOURCE_COLLECTION_STATE_DEVELOPER
} LibraryPhotoSourceCollectionState;
typedef gint64 (*GetSourceDatabaseKey) (DataSource* source, void* user_data);
typedef gboolean (*SourceHoldingTankCheckToKeep) (DataSource* source, Alteration* alteration, void* user_data);
struct _FlaggableIface {
GTypeInterface parent_iface;
gboolean (*is_flagged) (Flaggable* self);
void (*mark_flagged) (Flaggable* self);
void (*mark_unflagged) (Flaggable* self);
};
struct _MonitorableIface {
GTypeInterface parent_iface;
gboolean (*is_offline) (Monitorable* self);
void (*mark_online) (Monitorable* self);
void (*mark_offline) (Monitorable* self);
void (*set_master_file) (Monitorable* self, GFile* file);
void (*set_master_timestamp) (Monitorable* self, GFileInfo* info);
};
struct _LibraryPhoto {
Photo parent_instance;
LibraryPhotoPrivate * priv;
};
struct _LibraryPhotoClass {
PhotoClass parent_class;
};
struct _LibraryPhotoPrivate {
gboolean block_thumbnail_generation;
OneShotScheduler* thumbnail_scheduler;
GeeCollection* import_keywords;
};
typedef enum {
THUMBNAIL_CACHE_SIZE_LARGEST = 360,
THUMBNAIL_CACHE_SIZE_BIG = 360,
THUMBNAIL_CACHE_SIZE_MEDIUM = 128,
THUMBNAIL_CACHE_SIZE_SMALLEST = 128
} ThumbnailCacheSize;
struct _SourceHoldingTank {
GTypeInstance parent_instance;
volatile int ref_count;
SourceHoldingTankPrivate * priv;
};
struct _SourceHoldingTankClass {
GTypeClass parent_class;
void (*finalize) (SourceHoldingTank *self);
void (*notify_contents_altered) (SourceHoldingTank* self, GeeCollection* added, GeeCollection* removed);
void (*contents_altered) (SourceHoldingTank* self, GeeCollection* added, GeeCollection* removed);
};
struct _DatabaseSourceHoldingTank {
SourceHoldingTank parent_instance;
DatabaseSourceHoldingTankPrivate * priv;
};
struct _DatabaseSourceHoldingTankClass {
SourceHoldingTankClass parent_class;
};
struct _MediaSourceHoldingTank {
DatabaseSourceHoldingTank parent_instance;
MediaSourceHoldingTankPrivate * priv;
};
struct _MediaSourceHoldingTankClass {
DatabaseSourceHoldingTankClass parent_class;
};
struct _LibraryPhotoSourceHoldingTank {
MediaSourceHoldingTank parent_instance;
LibraryPhotoSourceHoldingTankPrivate * priv;
};
struct _LibraryPhotoSourceHoldingTankClass {
MediaSourceHoldingTankClass parent_class;
};
struct _LibraryPhotoSourceHoldingTankPrivate {
GeeHashMap* editable_file_map;
GeeHashMap* development_file_map;
GeeMultiMap* reverse_editable_file_map;
GeeMultiMap* reverse_development_file_map;
};
static gpointer photo_import_params_parent_class = NULL;
static gpointer photo_transformation_state_parent_class = NULL;
static gpointer photo_parent_class = NULL;
static GeeLinkedList* photo_source_pixbuf_cache;
static GRecMutex __lock_photo_source_pixbuf_cache = {0};
static GeeLinkedList* photo_source_pixbuf_cache = NULL;
static guint photo_discard_source_id;
static guint photo_discard_source_id = (guint) 0;
static gboolean photo__develop_raw_photos_to_files;
static gboolean photo__develop_raw_photos_to_files = FALSE;
static gpointer photo_photo_transformation_state_impl_parent_class = NULL;
static gpointer photo_backing_readers_parent_class = NULL;
static gpointer photo_cached_pixbuf_parent_class = NULL;
static gpointer photo_reimport_master_state_parent_class = NULL;
static gpointer photo_reimport_master_state_impl_parent_class = NULL;
static gpointer photo_reimport_editable_state_parent_class = NULL;
static gpointer photo_reimport_editable_state_impl_parent_class = NULL;
static gpointer photo_reimport_raw_development_state_parent_class = NULL;
static gpointer photo_reimport_raw_development_state_impl_parent_class = NULL;
static gpointer photo_reimport_raw_development_state_impl_dev_to_reimport_parent_class = NULL;
static DateableIface* photo_dateable_parent_iface = NULL;
static gpointer library_photo_source_collection_parent_class = NULL;
static gpointer library_photo_parent_class = NULL;
extern LibraryPhotoSourceCollection* library_photo_global;
LibraryPhotoSourceCollection* library_photo_global = NULL;
extern TagSourceCollection* tag_global;
static FlaggableIface* library_photo_flaggable_parent_iface = NULL;
static MonitorableIface* library_photo_monitorable_parent_iface = NULL;
static gpointer library_photo_source_holding_tank_parent_class = NULL;
GType backing_fetch_mode_get_type (void) G_GNUC_CONST;
gpointer photo_import_params_ref (gpointer instance);
void photo_import_params_unref (gpointer instance);
GParamSpec* param_spec_photo_import_params (const gchar* name, const gchar* nick, const gchar* blurb, GType object_type, GParamFlags flags);
void value_set_photo_import_params (GValue* value, gpointer v_object);
void value_take_photo_import_params (GValue* value, gpointer v_object);
gpointer value_get_photo_import_params (const GValue* value);
GType photo_import_params_get_type (void) G_GNUC_CONST;
GType import_id_get_type (void) G_GNUC_CONST;
ImportID* import_id_dup (const ImportID* self);
void import_id_free (ImportID* self);
GType photo_file_sniffer_options_get_type (void) G_GNUC_CONST;
gpointer thumbnails_ref (gpointer instance);
void thumbnails_unref (gpointer instance);
GParamSpec* param_spec_thumbnails (const gchar* name, const gchar* nick, const gchar* blurb, GType object_type, GParamFlags flags);
void value_set_thumbnails (GValue* value, gpointer v_object);
void value_take_thumbnails (GValue* value, gpointer v_object);
gpointer value_get_thumbnails (const GValue* value);
GType thumbnails_get_type (void) G_GNUC_CONST;
gpointer photo_row_ref (gpointer instance);
void photo_row_unref (gpointer instance);
GParamSpec* param_spec_photo_row (const gchar* name, const gchar* nick, const gchar* blurb, GType object_type, GParamFlags flags);
void value_set_photo_row (GValue* value, gpointer v_object);
void value_take_photo_row (GValue* value, gpointer v_object);
gpointer value_get_photo_row (const GValue* value);
GType photo_row_get_type (void) G_GNUC_CONST;
enum {
PHOTO_IMPORT_PARAMS_DUMMY_PROPERTY
};
PhotoRow* photo_row_new (void);
PhotoRow* photo_row_construct (GType object_type);
PhotoImportParams* photo_import_params_new (GFile* file, GFile* final_associated_file, ImportID* import_id, PhotoFileSnifferOptions sniffer_options, const gchar* exif_md5, const gchar* thumbnail_md5, const gchar* full_md5, Thumbnails* thumbnails);
PhotoImportParams* photo_import_params_construct (GType object_type, GFile* file, GFile* final_associated_file, ImportID* import_id, PhotoFileSnifferOptions sniffer_options, const gchar* exif_md5, const gchar* thumbnail_md5, const gchar* full_md5, Thumbnails* thumbnails);
PhotoImportParams* photo_import_params_new_create_placeholder (GFile* file, ImportID* import_id);
PhotoImportParams* photo_import_params_construct_create_placeholder (GType object_type, GFile* file, ImportID* import_id);
static void photo_import_params_finalize (PhotoImportParams* obj);
GType photo_transformation_state_get_type (void) G_GNUC_CONST;
#define PHOTO_TRANSFORMATION_STATE_GET_PRIVATE(o) (G_TYPE_INSTANCE_GET_PRIVATE ((o), TYPE_PHOTO_TRANSFORMATION_STATE, PhotoTransformationStatePrivate))
enum {
PHOTO_TRANSFORMATION_STATE_DUMMY_PROPERTY
};
PhotoTransformationState* photo_transformation_state_construct (GType object_type);
gboolean photo_transformation_state_is_broken (PhotoTransformationState* self);
static void photo_transformation_state_real_broken (PhotoTransformationState* self);
static void photo_transformation_state_finalize (GObject* obj);
GType rating_get_type (void) G_GNUC_CONST;
gboolean rating_can_increase (Rating self);
gboolean rating_can_decrease (Rating self);
gboolean rating_is_valid (Rating self);
Rating rating_increase (Rating self);
Rating rating_decrease (Rating self);
gint rating_serialize (Rating self);
Rating rating_unserialize (gint value);
GType data_object_get_type (void) G_GNUC_CONST;
gpointer alteration_ref (gpointer instance);
void alteration_unref (gpointer instance);
GParamSpec* param_spec_alteration (const gchar* name, const gchar* nick, const gchar* blurb, GType object_type, GParamFlags flags);
void value_set_alteration (GValue* value, gpointer v_object);
void value_take_alteration (GValue* value, gpointer v_object);
gpointer value_get_alteration (const GValue* value);
GType alteration_get_type (void) G_GNUC_CONST;
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 data_source_get_type (void) G_GNUC_CONST;
gpointer source_holding_tank_ref (gpointer instance);
void source_holding_tank_unref (gpointer instance);
GParamSpec* param_spec_source_holding_tank (const gchar* name, const gchar* nick, const gchar* blurb, GType object_type, GParamFlags flags);
void value_set_source_holding_tank (GValue* value, gpointer v_object);
void value_take_source_holding_tank (GValue* value, gpointer v_object);
gpointer value_get_source_holding_tank (const GValue* value);
GType source_holding_tank_get_type (void) G_GNUC_CONST;
GType source_collection_get_type (void) G_GNUC_CONST;
gpointer source_snapshot_ref (gpointer instance);
void source_snapshot_unref (gpointer instance);
GParamSpec* param_spec_source_snapshot (const gchar* name, const gchar* nick, const gchar* blurb, GType object_type, GParamFlags flags);
void value_set_source_snapshot (GValue* value, gpointer v_object);
void value_take_source_snapshot (GValue* value, gpointer v_object);
gpointer value_get_source_snapshot (const GValue* value);
GType source_snapshot_get_type (void) G_GNUC_CONST;
GType thumbnail_source_get_type (void) G_GNUC_CONST;
GType photo_file_format_get_type (void) G_GNUC_CONST;
GType indexable_get_type (void) G_GNUC_CONST;
GType media_source_get_type (void) G_GNUC_CONST;
GType event_id_get_type (void) G_GNUC_CONST;
EventID* event_id_dup (const EventID* self);
void event_id_free (EventID* self);
gpointer backing_file_state_ref (gpointer instance);
void backing_file_state_unref (gpointer instance);
GParamSpec* param_spec_backing_file_state (const gchar* name, const gchar* nick, const gchar* blurb, GType object_type, GParamFlags flags);
void value_set_backing_file_state (GValue* value, gpointer v_object);
void value_take_backing_file_state (GValue* value, gpointer v_object);
gpointer value_get_backing_file_state (const GValue* value);
GType backing_file_state_get_type (void) G_GNUC_CONST;
GType photo_exception_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 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);
GType photo_source_get_type (void) G_GNUC_CONST;
gpointer media_metadata_ref (gpointer instance);
void media_metadata_unref (gpointer instance);
GParamSpec* param_spec_media_metadata (const gchar* name, const gchar* nick, const gchar* blurb, GType object_type, GParamFlags flags);
void value_set_media_metadata (GValue* value, gpointer v_object);
void value_take_media_metadata (GValue* value, gpointer v_object);
gpointer value_get_media_metadata (const GValue* value);
GType media_metadata_get_type (void) G_GNUC_CONST;
GType photo_metadata_get_type (void) G_GNUC_CONST;
GType dateable_get_type (void) G_GNUC_CONST;
GType photo_get_type (void) G_GNUC_CONST;
GType rotation_get_type (void) G_GNUC_CONST;
gpointer backing_photo_row_ref (gpointer instance);
void backing_photo_row_unref (gpointer instance);
GParamSpec* param_spec_backing_photo_row (const gchar* name, const gchar* nick, const gchar* blurb, GType object_type, GParamFlags flags);
void value_set_backing_photo_row (GValue* value, gpointer v_object);
void value_take_backing_photo_row (GValue* value, gpointer v_object);
gpointer value_get_backing_photo_row (const GValue* value);
GType backing_photo_row_get_type (void) G_GNUC_CONST;
static gpointer photo_backing_readers_ref (gpointer instance);
static void photo_backing_readers_unref (gpointer instance);
static GParamSpec* photo_param_spec_backing_readers (const gchar* name, const gchar* nick, const gchar* blurb, GType object_type, GParamFlags flags) G_GNUC_UNUSED;
static void photo_value_set_backing_readers (GValue* value, gpointer v_object) G_GNUC_UNUSED;
static void photo_value_take_backing_readers (GValue* value, gpointer v_object) G_GNUC_UNUSED;
static gpointer photo_value_get_backing_readers (const GValue* value) G_GNUC_UNUSED;
static GType photo_backing_readers_get_type (void) G_GNUC_CONST G_GNUC_UNUSED;
gpointer pixel_transformer_ref (gpointer instance);
void pixel_transformer_unref (gpointer instance);
GParamSpec* param_spec_pixel_transformer (const gchar* name, const gchar* nick, const gchar* blurb, GType object_type, GParamFlags flags);
void value_set_pixel_transformer (GValue* value, gpointer v_object);
void value_take_pixel_transformer (GValue* value, gpointer v_object);
gpointer value_get_pixel_transformer (const GValue* value);
GType pixel_transformer_get_type (void) G_GNUC_CONST;
gpointer pixel_transformation_bundle_ref (gpointer instance);
void pixel_transformation_bundle_unref (gpointer instance);
GParamSpec* param_spec_pixel_transformation_bundle (const gchar* name, const gchar* nick, const gchar* blurb, GType object_type, GParamFlags flags);
void value_set_pixel_transformation_bundle (GValue* value, gpointer v_object);
void value_take_pixel_transformation_bundle (GValue* value, gpointer v_object);
gpointer value_get_pixel_transformation_bundle (const GValue* value);
GType pixel_transformation_bundle_get_type (void) G_GNUC_CONST;
gpointer one_shot_scheduler_ref (gpointer instance);
void one_shot_scheduler_unref (gpointer instance);
GParamSpec* param_spec_one_shot_scheduler (const gchar* name, const gchar* nick, const gchar* blurb, GType object_type, GParamFlags flags);
void value_set_one_shot_scheduler (GValue* value, gpointer v_object);
void value_take_one_shot_scheduler (GValue* value, gpointer v_object);
gpointer value_get_one_shot_scheduler (const GValue* value);
GType one_shot_scheduler_get_type (void) G_GNUC_CONST;
GType raw_developer_get_type (void) G_GNUC_CONST;
#define PHOTO_GET_PRIVATE(o) (G_TYPE_INSTANCE_GET_PRIVATE ((o), TYPE_PHOTO, PhotoPrivate))
enum {
PHOTO_DUMMY_PROPERTY
};
gboolean photo_exception_prohibits (PhotoException self, PhotoException exception);
gboolean photo_exception_allows (PhotoException self, PhotoException exception);
static gpointer photo_cached_pixbuf_ref (gpointer instance);
static void photo_cached_pixbuf_unref (gpointer instance);
static GParamSpec* photo_param_spec_cached_pixbuf (const gchar* name, const gchar* nick, const gchar* blurb, GType object_type, GParamFlags flags) G_GNUC_UNUSED;
static void photo_value_set_cached_pixbuf (GValue* value, gpointer v_object) G_GNUC_UNUSED;
static void photo_value_take_cached_pixbuf (GValue* value, gpointer v_object) G_GNUC_UNUSED;
static gpointer photo_value_get_cached_pixbuf (const GValue* value) G_GNUC_UNUSED;
static GType photo_cached_pixbuf_get_type (void) G_GNUC_CONST G_GNUC_UNUSED;
BackingPhotoRow* backing_photo_row_new (void);
BackingPhotoRow* backing_photo_row_construct (GType object_type);
static PhotoBackingReaders* photo_backing_readers_new (void);
static PhotoBackingReaders* photo_backing_readers_construct (GType object_type);
#define PHOTO_TYPENAME "thumb"
#define PHOTO_SCALING_FUDGE 64
#define PHOTO_SOURCE_PIXBUF_TIME_TO_LIVE_SEC 10
#define PHOTO_SOURCE_PIXBUF_MIN_LRU_COUNT 1
#define PHOTO_SOURCE_PIXBUF_MAX_LRU_COUNT 3
#define PHOTO_MIN_EMBEDDED_SIZE 1024
Photo* photo_construct (GType object_type, PhotoRow* row);
#define DATA_OBJECT_INVALID_OBJECT_ID ((gint64) -1)
PhotoSource* photo_source_construct (GType object_type, gint64 object_id);
gchar* media_source_prep_title (const gchar* title);
GType photo_id_get_type (void) G_GNUC_CONST;
PhotoID* photo_id_dup (const PhotoID* self);
void photo_id_free (PhotoID* self);
GType orientation_get_type (void) G_GNUC_CONST;
gpointer key_value_map_ref (gpointer instance);
void key_value_map_unref (gpointer instance);
GParamSpec* param_spec_key_value_map (const gchar* name, const gchar* nick, const gchar* blurb, GType object_type, GParamFlags flags);
void value_set_key_value_map (GValue* value, gpointer v_object);
void value_take_key_value_map (GValue* value, gpointer v_object);
gpointer value_get_key_value_map (const GValue* value);
GType key_value_map_get_type (void) G_GNUC_CONST;
GType backing_photo_id_get_type (void) G_GNUC_CONST;
BackingPhotoID* backing_photo_id_dup (const BackingPhotoID* self);
void backing_photo_id_free (BackingPhotoID* self);
gchar* media_source_prep_comment (const gchar* comment);
gpointer photo_file_adapter_ref (gpointer instance);
void photo_file_adapter_unref (gpointer instance);
GParamSpec* param_spec_photo_file_adapter (const gchar* name, const gchar* nick, const gchar* blurb, GType object_type, GParamFlags flags);
void value_set_photo_file_adapter (GValue* value, gpointer v_object);
void value_take_photo_file_adapter (GValue* value, gpointer v_object);
gpointer value_get_photo_file_adapter (const GValue* value);
GType photo_file_adapter_get_type (void) G_GNUC_CONST;
GType photo_file_reader_get_type (void) G_GNUC_CONST;
PhotoFileReader* photo_file_format_create_reader (PhotoFileFormat self, const gchar* filepath);
gchar* string_sliced_at_last_char (const gchar* haystack, gunichar ch, gint start_index);
gchar* string_sliced_at (const gchar* str, gint index);
gboolean is_string_empty (const gchar* s);
#define BACKING_PHOTO_ID_INVALID ((gint64) -1)
static BackingPhotoRow* photo_get_backing_row (Photo* self, BackingPhotoID* id);
gpointer database_table_ref (gpointer instance);
void database_table_unref (gpointer instance);
GParamSpec* param_spec_database_table (const gchar* name, const gchar* nick, const gchar* blurb, GType object_type, GParamFlags flags);
void value_set_database_table (GValue* value, gpointer v_object);
void value_take_database_table (GValue* value, gpointer v_object);
gpointer value_get_database_table (const GValue* value);
GType database_table_get_type (void) G_GNUC_CONST;
GType photo_table_get_type (void) G_GNUC_CONST;
PhotoTable* photo_table_get_instance (void);
GQuark database_error_quark (void);
void photo_table_detach_editable (PhotoTable* self, PhotoRow* row, GError** error);
static void photo_internal_remove_all_transformations (Photo* self, gboolean notify);
RawDeveloper* raw_developer_as_array (int* result_length1);
void photo_init_photo (void);
void photo_terminate_photo (void);
void photo_notify_editable_replaced (Photo* self, GFile* old_file, GFile* new_file);
static void photo_real_notify_editable_replaced (Photo* self, GFile* old_file, GFile* new_file);
void photo_notify_raw_development_modified (Photo* self);
static void photo_real_notify_raw_development_modified (Photo* self);
void photo_notify_baseline_replaced (Photo* self);
static void photo_real_notify_baseline_replaced (Photo* self);
void photo_notify_master_reimported (Photo* self, PhotoMetadata* metadata);
static void photo_real_notify_master_reimported (Photo* self, PhotoMetadata* metadata);
void photo_notify_editable_reimported (Photo* self, PhotoMetadata* metadata);
static void photo_real_notify_editable_reimported (Photo* self, PhotoMetadata* metadata);
void photo_notify_source_reimported (Photo* self, PhotoMetadata* metadata);
static void photo_real_notify_source_reimported (Photo* self, PhotoMetadata* metadata);
void photo_notify_baseline_reimported (Photo* self, PhotoMetadata* metadata);
static void photo_real_notify_baseline_reimported (Photo* self, PhotoMetadata* metadata);
static gboolean photo_real_internal_delete_backing (DataSource* base, GError** error);
GFile* photo_file_adapter_get_file (PhotoFileAdapter* self);
static void photo_detach_editable (Photo* self, gboolean delete_editable, gboolean remove_transformations, gboolean notify);
PhotoFileFormat photo_get_master_file_format (Photo* self);
static gboolean photo_delete_raw_development (Photo* self, RawDeveloper d);
gchar* data_object_to_string (DataObject* self);
gboolean data_source_internal_delete_backing (DataSource* self, GError** error);
GType backing_photo_table_get_type (void) G_GNUC_CONST;
BackingPhotoTable* backing_photo_table_get_instance (void);
BackingPhotoRow* backing_photo_table_fetch (BackingPhotoTable* self, BackingPhotoID* id, GError** error);
void backing_photo_table_remove (BackingPhotoTable* self, BackingPhotoID* backing_id, GError** error);
gboolean photo_is_raw_developer_complete (Photo* self, RawDeveloper d);
gboolean photo_is_raw_developer_available (Photo* self, RawDeveloper d);
PhotoMetadata* photo_get_master_metadata (Photo* self, GError** error);
guint photo_metadata_get_preview_count (PhotoMetadata* self);
gpointer photo_preview_ref (gpointer instance);
void photo_preview_unref (gpointer instance);
GParamSpec* param_spec_photo_preview (const gchar* name, const gchar* nick, const gchar* blurb, GType object_type, GParamFlags flags);
void value_set_photo_preview (GValue* value, gpointer v_object);
void value_take_photo_preview (GValue* value, gpointer v_object);
gpointer value_get_photo_preview (const GValue* value);
GType photo_preview_get_type (void) G_GNUC_CONST;
PhotoPreview* photo_metadata_get_preview (PhotoMetadata* self, guint number);
void photo_preview_get_pixel_dimensions (PhotoPreview* self, Dimensions* result);
void photo_add_backing_photo_for_development (Photo* self, RawDeveloper d, BackingPhotoRow* bpr, GError** error);
void photo_import_developed_backing_photo (PhotoRow* row, RawDeveloper d, BackingPhotoRow* bpr, GError** error);
void data_object_notify_altered (DataObject* self, Alteration* alteration);
Alteration* alteration_new (const gchar* subject, const gchar* detail);
Alteration* alteration_construct (GType object_type, const gchar* subject, const gchar* detail);
#define UTIL_FILE_ATTRIBUTES "standard::*,time::*,id::file,id::filesystem,etag::value"
#define DIRECTORY_MONITOR_SUPPLIED_ATTRIBUTES UTIL_FILE_ATTRIBUTES
gpointer photo_file_interrogator_ref (gpointer instance);
void photo_file_interrogator_unref (gpointer instance);
GParamSpec* param_spec_photo_file_interrogator (const gchar* name, const gchar* nick, const gchar* blurb, GType object_type, GParamFlags flags);
void value_set_photo_file_interrogator (GValue* value, gpointer v_object);
void value_take_photo_file_interrogator (GValue* value, gpointer v_object);
gpointer value_get_photo_file_interrogator (const GValue* value);
GType photo_file_interrogator_get_type (void) G_GNUC_CONST;
PhotoFileInterrogator* photo_file_interrogator_new (GFile* file, PhotoFileSnifferOptions options);
PhotoFileInterrogator* photo_file_interrogator_construct (GType object_type, GFile* file, PhotoFileSnifferOptions options);
void photo_file_interrogator_interrogate (PhotoFileInterrogator* self, GError** error);
gpointer detected_photo_information_ref (gpointer instance);
void detected_photo_information_unref (gpointer instance);
GParamSpec* param_spec_detected_photo_information (const gchar* name, const gchar* nick, const gchar* blurb, GType object_type, GParamFlags flags);
void value_set_detected_photo_information (GValue* value, gpointer v_object);
void value_take_detected_photo_information (GValue* value, gpointer v_object);
gpointer value_get_detected_photo_information (const GValue* value);
GType detected_photo_information_get_type (void) G_GNUC_CONST;
DetectedPhotoInformation* photo_file_interrogator_get_detected_photo_information (PhotoFileInterrogator* self);
gboolean photo_file_interrogator_get_is_photo_corrupted (PhotoFileInterrogator* self);
Orientation photo_metadata_get_orientation (PhotoMetadata* self);
void backing_photo_table_add (BackingPhotoTable* self, BackingPhotoRow* state, GError** error);
void photo_table_update_raw_development (PhotoTable* self, PhotoRow* row, RawDeveloper rd, BackingPhotoID* backing_photo_id, GError** error);
static void photo_develop_photo (Photo* self, RawDeveloper d);
BackingPhotoRow* raw_developer_create_backing_row_for_development (RawDeveloper self, const gchar* raw_filepath, const gchar* camera_development_filename, GError** error);
GdkPixbuf* photo_get_master_pixbuf (Photo* self, Scaling* scaling, gboolean rotate, GError** error);
void scaling_for_original (Scaling* result);
GType photo_file_writer_get_type (void) G_GNUC_CONST;
GQuark photo_format_error_quark (void);
PhotoFileWriter* photo_file_format_create_writer (PhotoFileFormat self, const gchar* filepath, GError** error);
GType jpeg_quality_get_type (void) G_GNUC_CONST;
void photo_file_writer_write (PhotoFileWriter* self, GdkPixbuf* pixbuf, JpegQuality quality, GError** error);
GType photo_file_metadata_writer_get_type (void) G_GNUC_CONST;
PhotoFileMetadataWriter* photo_file_format_create_metadata_writer (PhotoFileFormat self, const gchar* filepath, GError** error);
void photo_file_metadata_writer_write_metadata (PhotoFileMetadataWriter* self, PhotoMetadata* metadata, GError** error);
GdkPixbuf* photo_preview_get_pixbuf (PhotoPreview* self, GError** error);
void photo_set_default_raw_developer (Photo* self, RawDeveloper d);
void photo_set_raw_developer (Photo* self, RawDeveloper d);
GdkPixbuf* photo_get_prefetched_copy (Photo* self, GError** error);
void photo_revert_to_master (Photo* self, gboolean notify);
gboolean photo_set_orientation (Photo* self, Orientation orientation);
void photo_discard_prefetched (Photo* self);
RawDeveloper photo_get_raw_developer (Photo* self);
gchar* raw_developer_to_string (RawDeveloper self);
void photo_table_remove_development (PhotoTable* self, PhotoRow* row, RawDeveloper rd, GError** error);
void photo_redevelop_raw (Photo* self, RawDeveloper d);
static BackingFileState** photo_real_get_backing_files_state (MediaSource* base, int* result_length1);
BackingFileState* backing_file_state_new_from_photo_row (BackingPhotoRow* photo_row, const gchar* md5);
BackingFileState* backing_file_state_construct_from_photo_row (GType object_type, BackingPhotoRow* photo_row, const gchar* md5);
static void _vala_array_add251 (BackingFileState*** array, int* length, int* size, BackingFileState* value);
gboolean photo_has_editable (Photo* self);
static void _vala_array_add252 (BackingFileState*** array, int* length, int* size, BackingFileState* value);
gboolean photo_is_developed (Photo* self);
GeeCollection* photo_get_raw_development_photo_rows (Photo* self);
static void _vala_array_add253 (BackingFileState*** array, int* length, int* size, BackingFileState* value);
static PhotoFileReader* photo_get_backing_reader (Photo* self, BackingFetchMode mode);
static PhotoFileReader* photo_get_master_reader (Photo* self);
static PhotoFileReader* photo_get_baseline_reader (Photo* self);
static PhotoFileReader* photo_get_source_reader (Photo* self);
static PhotoFileReader* photo_get_raw_developer_reader (Photo* self);
const gchar* backing_fetch_mode_to_string (BackingFetchMode self);
PhotoFileReader* photo_get_editable_reader (Photo* self);
gboolean photo_does_master_exist (Photo* self);
gboolean photo_file_adapter_file_exists (PhotoFileAdapter* self);
gboolean photo_does_editable_exist (Photo* self);
gboolean photo_is_master_baseline (Photo* self);
gboolean photo_is_master_source (Photo* self);
gboolean photo_is_editable_baseline (Photo* self);
gboolean photo_is_editable_source (Photo* self);
BackingPhotoRow* photo_get_master_photo_row (Photo* self);
BackingPhotoRow* photo_get_editable_photo_row (Photo* self);
gboolean backing_photo_id_is_valid (BackingPhotoID *self);
BackingPhotoRow* photo_get_raw_development_photo_row (Photo* self, RawDeveloper d);
PhotoFileFormat* photo_get_editable_file_format (Photo* self);
PhotoFileFormat photo_file_adapter_get_file_format (PhotoFileAdapter* self);
static PhotoFileFormat* _photo_file_format_dup (PhotoFileFormat* self);
GType export_format_parameters_get_type (void) G_GNUC_CONST;
GType export_format_mode_get_type (void) G_GNUC_CONST;
ExportFormatParameters* export_format_parameters_dup (const ExportFormatParameters* self);
void export_format_parameters_free (ExportFormatParameters* self);
PhotoFileFormat photo_get_export_format_for_parameters (Photo* self, ExportFormatParameters* params);
PhotoFileFormat photo_file_format_get_system_default_format (void);
PhotoFileFormat photo_get_best_export_file_format (Photo* self);
gchar* photo_get_export_basename_for_parameters (Photo* self, ExportFormatParameters* params);
GFile* media_source_get_master_file (MediaSource* self);
gchar* photo_get_export_basename (Photo* self, PhotoFileFormat* file_format);
GType import_result_get_type (void) G_GNUC_CONST;
ImportResult photo_prepare_for_import (PhotoImportParams* params);
gboolean photo_is_file_image (GFile* file);
gboolean photo_file_format_is_file_supported (GFile* file);
gpointer metadata_date_time_ref (gpointer instance);
void metadata_date_time_unref (gpointer instance);
GParamSpec* param_spec_metadata_date_time (const gchar* name, const gchar* nick, const gchar* blurb, GType object_type, GParamFlags flags);
void value_set_metadata_date_time (GValue* value, gpointer v_object);
void value_take_metadata_date_time (GValue* value, gpointer v_object);
gpointer value_get_metadata_date_time (const GValue* value);
GType metadata_date_time_get_type (void) G_GNUC_CONST;
MetadataDateTime* photo_metadata_get_exposure_date_time (PhotoMetadata* self);
time_t metadata_date_time_get_timestamp (MetadataDateTime* self);
gchar* media_metadata_get_title (MediaMetadata* self);
gchar* media_metadata_get_comment (MediaMetadata* self);
GeeSet* photo_metadata_get_keywords (PhotoMetadata* self, GCompareDataFunc compare_func, void* compare_func_target, GDestroyNotify compare_func_target_destroy_notify);
Rating photo_metadata_get_rating (PhotoMetadata* self);
#define PHOTO_ID_INVALID ((gint64) -1)
void photo_id_init (PhotoID *self, gint64 id);
#define EVENT_ID_INVALID ((gint64) -1)
void event_id_init (EventID *self, gint64 id);
void thumbnail_cache_generate_for_photo (Thumbnails* thumbnails, PhotoFileReader* reader, Orientation orientation, Dimensions* original_dim, GError** error);
ImportResult import_result_convert_error (GError* err, ImportResult default_result);
void photo_create_pre_import (PhotoImportParams* params);
void dimensions_init (Dimensions *self, gint width, gint height);
BackingPhotoRow* photo_query_backing_photo_row (Photo* self, GFile* file, PhotoFileSnifferOptions options, DetectedPhotoInformation** detected, GError** error);
gpointer photo_reimport_master_state_ref (gpointer instance);
void photo_reimport_master_state_unref (gpointer instance);
GParamSpec* photo_param_spec_reimport_master_state (const gchar* name, const gchar* nick, const gchar* blurb, GType object_type, GParamFlags flags);
void photo_value_set_reimport_master_state (GValue* value, gpointer v_object);
void photo_value_take_reimport_master_state (GValue* value, gpointer v_object);
gpointer photo_value_get_reimport_master_state (const GValue* value);
GType photo_reimport_master_state_get_type (void) G_GNUC_CONST;
gboolean photo_prepare_for_reimport_master (Photo* self, PhotoReimportMasterState** reimport_state, GError** error);
static void _vala_array_add254 (gchar*** array, int* length, int* size, gchar* value);
static void _vala_array_add255 (gchar*** array, int* length, int* size, gchar* value);
static void _vala_array_add256 (gchar*** array, int* length, int* size, gchar* value);
static void _vala_array_add257 (gchar*** array, int* length, int* size, gchar* value);
static void _vala_array_add258 (gchar*** array, int* length, int* size, gchar* value);
static void _vala_array_add259 (gchar*** array, int* length, int* size, gchar* value);
static PhotoReimportMasterStateImpl* photo_reimport_master_state_impl_new (PhotoRow* row, PhotoMetadata* metadata, gchar** alterations, int alterations_length1);
static PhotoReimportMasterStateImpl* photo_reimport_master_state_impl_construct (GType object_type, PhotoRow* row, PhotoMetadata* metadata, gchar** alterations, int alterations_length1);
static GType photo_reimport_master_state_impl_get_type (void) G_GNUC_CONST G_GNUC_UNUSED;
void photo_apply_user_metadata_for_reimport (Photo* self, PhotoMetadata* metadata);
static void photo_real_apply_user_metadata_for_reimport (Photo* self, PhotoMetadata* metadata);
void photo_finish_reimport_master (Photo* self, PhotoReimportMasterState* state, GError** error);
void photo_table_reimport (PhotoTable* self, PhotoRow* row, GError** error);
void backing_photo_row_copy_from (BackingPhotoRow* self, BackingPhotoRow* from);
static void _vala_array_add260 (gchar*** array, int* length, int* size, gchar* value);
static void _vala_array_add261 (gchar*** array, int* length, int* size, gchar* value);
Alteration* alteration_new_from_array (gchar** array, int array_length1);
Alteration* alteration_construct_from_array (GType object_type, gchar** array, int array_length1);
static gboolean photo_verify_file_for_reimport (Photo* self, GFile* file, BackingPhotoRow** backing, DetectedPhotoInformation** detected, GError** error);
gpointer photo_reimport_editable_state_ref (gpointer instance);
void photo_reimport_editable_state_unref (gpointer instance);
GParamSpec* photo_param_spec_reimport_editable_state (const gchar* name, const gchar* nick, const gchar* blurb, GType object_type, GParamFlags flags);
void photo_value_set_reimport_editable_state (GValue* value, gpointer v_object);
void photo_value_take_reimport_editable_state (GValue* value, gpointer v_object);
gpointer photo_value_get_reimport_editable_state (const GValue* value);
GType photo_reimport_editable_state_get_type (void) G_GNUC_CONST;
gboolean photo_prepare_for_reimport_editable (Photo* self, PhotoReimportEditableState** state, GError** error);
GFile* photo_get_editable_file (Photo* self);
static PhotoReimportEditableStateImpl* photo_reimport_editable_state_impl_new (BackingPhotoRow* backing_state, PhotoMetadata* metadata);
static PhotoReimportEditableStateImpl* photo_reimport_editable_state_impl_construct (GType object_type, BackingPhotoRow* backing_state, PhotoMetadata* metadata);
static GType photo_reimport_editable_state_impl_get_type (void) G_GNUC_CONST G_GNUC_UNUSED;
void photo_finish_reimport_editable (Photo* self, PhotoReimportEditableState* state, GError** error);
void photo_get_editable_id (Photo* self, BackingPhotoID* result);
gboolean backing_photo_id_is_invalid (BackingPhotoID *self);
void backing_photo_table_update (BackingPhotoTable* self, BackingPhotoRow* row, GError** error);
void media_source_set_title (MediaSource* self, const gchar* title);
gboolean media_source_set_comment (MediaSource* self, const gchar* comment);
void media_source_set_rating (MediaSource* self, Rating rating);
Alteration* alteration_new_from_list (const gchar* list);
Alteration* alteration_construct_from_list (GType object_type, const gchar* list);
gpointer photo_reimport_raw_development_state_ref (gpointer instance);
void photo_reimport_raw_development_state_unref (gpointer instance);
GParamSpec* photo_param_spec_reimport_raw_development_state (const gchar* name, const gchar* nick, const gchar* blurb, GType object_type, GParamFlags flags);
void photo_value_set_reimport_raw_development_state (GValue* value, gpointer v_object);
void photo_value_take_reimport_raw_development_state (GValue* value, gpointer v_object);
gpointer photo_value_get_reimport_raw_development_state (const GValue* value);
GType photo_reimport_raw_development_state_get_type (void) G_GNUC_CONST;
gboolean photo_prepare_for_reimport_raw_development (Photo* self, PhotoReimportRawDevelopmentState** state, GError** error);
GeeCollection* photo_get_raw_developer_files (Photo* self);
static GType photo_reimport_raw_development_state_impl_get_type (void) G_GNUC_CONST G_GNUC_UNUSED;
static PhotoReimportRawDevelopmentStateImpl* photo_reimport_raw_development_state_impl_new (void);
static PhotoReimportRawDevelopmentStateImpl* photo_reimport_raw_development_state_impl_construct (GType object_type);
static void photo_reimport_raw_development_state_impl_add (PhotoReimportRawDevelopmentStateImpl* self, BackingPhotoRow* backing, PhotoMetadata* metadata);
static gint photo_reimport_raw_development_state_impl_get_size (PhotoReimportRawDevelopmentStateImpl* self);
void photo_finish_reimport_raw_development (Photo* self, PhotoReimportRawDevelopmentState* state, GError** error);
static gpointer photo_reimport_raw_development_state_impl_dev_to_reimport_ref (gpointer instance);
static void photo_reimport_raw_development_state_impl_dev_to_reimport_unref (gpointer instance);
static GParamSpec* photo_reimport_raw_development_state_impl_param_spec_dev_to_reimport (const gchar* name, const gchar* nick, const gchar* blurb, GType object_type, GParamFlags flags) G_GNUC_UNUSED;
static void photo_reimport_raw_development_state_impl_value_set_dev_to_reimport (GValue* value, gpointer v_object) G_GNUC_UNUSED;
static void photo_reimport_raw_development_state_impl_value_take_dev_to_reimport (GValue* value, gpointer v_object) G_GNUC_UNUSED;
static gpointer photo_reimport_raw_development_state_impl_value_get_dev_to_reimport (const GValue* value) G_GNUC_UNUSED;
GType photo_reimport_raw_development_state_impl_dev_to_reimport_get_type (void) G_GNUC_CONST;
static gchar* photo_real_get_typename (DataSource* base);
static gint64 photo_real_get_instance_id (DataSource* base);
void photo_get_photo_id (Photo* self, PhotoID* result);
static gchar* photo_real_get_source_id (DataSource* base);
gchar* data_source_get_typename (DataSource* self);
gint64 data_source_get_instance_id (DataSource* self);
void photo_set_master_timestamp (Photo* self, GFileInfo* info);
void photo_table_update_timestamp (PhotoTable* self, PhotoID* photo_id, time_t timestamp, GError** error);
void app_window_database_error (GError* err);
void photo_update_editable_modification_time (Photo* self, GFileInfo* info, GError** error);
void backing_photo_table_update_timestamp (BackingPhotoTable* self, BackingPhotoID* id, time_t timestamp, GError** error);
void photo_update_many_editable_timestamps (GeeMap* map, GError** error);
void database_table_begin_transaction (void);
void database_table_commit_transaction (GError** error);
static PhotoFileFormat photo_real_get_preferred_thumbnail_format (ThumbnailSource* base);
PhotoFileFormat photo_get_file_format (Photo* self);
gboolean photo_file_format_can_write_image (PhotoFileFormat self);
static GdkPixbuf* photo_real_create_thumbnail (ThumbnailSource* base, gint scale, GError** error);
GdkPixbuf* photo_source_get_pixbuf (PhotoSource* self, Scaling* scaling, GError** error);
void scaling_for_best_fit (gint pixels, gboolean scale_up, Scaling* result);
static gboolean photo_is_extension_found (const gchar* basename, gchar** extensions, int extensions_length1);
void disassemble_filename (const gchar* basename, gchar** name, gchar** ext);
gboolean photo_is_duplicate (GFile* file, const gchar* thumbnail_md5, const gchar* full_md5, PhotoFileFormat file_format);
gboolean photo_table_has_duplicate (PhotoTable* self, GFile* file, const gchar* thumbnail_md5, const gchar* md5, PhotoFileFormat file_format);
PhotoID* photo_get_duplicate_ids (GFile* file, const gchar* thumbnail_md5, const gchar* full_md5, PhotoFileFormat file_format, int* result_length1);
PhotoID* photo_table_get_duplicate_ids (PhotoTable* self, GFile* file, const gchar* thumbnail_md5, const gchar* md5, PhotoFileFormat file_format, int* result_length1);
gint64 photo_get_photo_key (DataSource* source);
GType library_photo_get_type (void) G_GNUC_CONST;
static GFile* photo_real_get_file (MediaSource* base);
void photo_set_master_file (Photo* self, GFile* file);
void photo_table_set_filepath (PhotoTable* self, PhotoID* photo_id, const gchar* filepath, GError** error);
void media_source_notify_master_replaced (MediaSource* self, GFile* old_file, GFile* new_file);
static void _vala_array_add262 (gchar*** array, int* length, int* size, gchar* value);
static void _vala_array_add263 (gchar*** array, int* length, int* size, gchar* value);
static void _vala_array_add264 (gchar*** array, int* length, int* size, gchar* value);
static void _vala_array_add265 (gchar*** array, int* length, int* size, gchar* value);
void photo_set_editable_file (Photo* self, GFile* file);
void backing_photo_table_set_filepath (BackingPhotoTable* self, BackingPhotoID* id, const gchar* filepath, GError** error);
static void _vala_array_add266 (gchar*** array, int* length, int* size, gchar* value);
static void _vala_array_add267 (gchar*** array, int* length, int* size, gchar* value);
static void _vala_array_add268 (gchar*** array, int* length, int* size, gchar* value);
void photo_set_many_editable_file (GeeMap* map, GError** error);
GFile* photo_get_actual_file (Photo* self);
static GFile* photo_real_get_master_file (MediaSource* base);
GFile* photo_get_source_file (Photo* self);
gboolean photo_file_format_can_write (PhotoFileFormat self);
static time_t photo_real_get_timestamp (MediaSource* base);
static inline void photo_real_get_event_id (MediaSource* base, EventID* result);
gint64 photo_get_raw_event_id (Photo* self);
static void photo_real_get_import_id (MediaSource* base, ImportID* result);
static gchar* photo_real_get_master_md5 (MediaSource* base);
guint64 photo_get_flags (Photo* self);
static void photo_notify_flags_altered (Photo* self, Alteration* additional_alteration);
Alteration* alteration_compress (Alteration* self, Alteration* other);
guint64 photo_replace_flags (Photo* self, guint64 flags, Alteration* additional_alteration);
gboolean photo_table_replace_flags (PhotoTable* self, PhotoID* photo_id, guint64 flags);
gboolean photo_is_flag_set (Photo* self, guint64 mask);
gboolean media_source_internal_is_flag_set (guint64 flags, guint64 selector);
guint64 photo_add_flags (Photo* self, guint64 mask, Alteration* additional_alteration);
guint64 media_source_internal_add_flags (guint64 flags, guint64 selector);
guint64 photo_remove_flags (Photo* self, guint64 mask, Alteration* additional_alteration);
guint64 media_source_internal_remove_flags (guint64 flags, guint64 selector);
guint64 photo_add_remove_flags (Photo* self, guint64 add, guint64 remove, Alteration* additional_alteration);
void photo_add_remove_many_flags (GeeCollection* add, guint64 add_mask, Alteration* additional_add_alteration, GeeCollection* remove, guint64 remove_mask, Alteration* additional_remove_alteration, GError** error);
guint64 photo_toggle_flags (Photo* self, guint64 mask, Alteration* additional_alteration);
gboolean photo_is_master_metadata_dirty (Photo* self);
void photo_set_master_metadata_dirty (Photo* self, gboolean dirty, GError** error);
void photo_table_set_metadata_dirty (PhotoTable* self, PhotoID* photo_id, gboolean dirty, GError** error);
static Rating photo_real_get_rating (MediaSource* base);
static void photo_real_set_rating (MediaSource* base, Rating rating);
gboolean photo_table_set_rating (PhotoTable* self, PhotoID* photo_id, Rating rating);
static void photo_real_increase_rating (MediaSource* base);
static void photo_real_decrease_rating (MediaSource* base);
static void photo_real_commit_backlinks (DataSource* base, SourceCollection* sources, const gchar* backlinks);
void photo_table_update_backlinks (PhotoTable* self, PhotoID* photo_id, const gchar* backlinks, GError** error);
static gboolean photo_real_set_event_id (MediaSource* base, EventID* event_id);
gboolean photo_table_set_event (PhotoTable* self, PhotoID* photo_id, EventID* event_id);
static gchar* photo_real_to_string (DataObject* base);
gchar* photo_file_adapter_get_filepath (PhotoFileAdapter* self);
static gboolean photo_real_equals (DataSource* base, DataSource* source);
gboolean data_source_equals (DataSource* self, DataSource* source);
static void photo_file_exif_updated (Photo* self);
GFile* media_source_get_file (MediaSource* self);
gboolean photo_table_master_exif_updated (PhotoTable* self, PhotoID* photoID, gint64 filesize, glong timestamp, const gchar* md5, const gchar* exif_md5, const gchar* thumbnail_md5, PhotoRow* row);
static guint64 photo_real_get_filesize (MediaSource* base);
static guint64 photo_real_get_master_filesize (MediaSource* base);
guint64 photo_get_editable_filesize (Photo* self);
static time_t photo_real_get_exposure_time (Dateable* base);
static gchar* photo_real_get_basename (MediaSource* base);
static gchar* photo_real_get_title (MediaSource* base);
static gchar* photo_real_get_comment (MediaSource* base);
static void photo_real_set_title (MediaSource* base, const gchar* title);
gboolean photo_table_set_title (PhotoTable* self, PhotoID* photo_id, const gchar* new_title);
static gboolean photo_real_set_comment (MediaSource* base, const gchar* comment);
gboolean photo_table_set_comment (PhotoTable* self, PhotoID* photo_id, const gchar* new_comment);
void photo_set_import_id (Photo* self, ImportID* import_id);
void photo_table_set_import_id (PhotoTable* self, PhotoID* photo_id, ImportID* import_id, GError** error);
void photo_set_title_persistent (Photo* self, const gchar* title, GError** error);
gboolean photo_file_format_can_write_metadata (PhotoFileFormat self);
PhotoMetadata* photo_file_reader_read_metadata (PhotoFileReader* self, GError** error);
GType photo_metadata_set_option_get_type (void) G_GNUC_CONST;
void photo_metadata_set_title (PhotoMetadata* self, const gchar* title, PhotoMetadataSetOption option);
PhotoFileMetadataWriter* photo_file_reader_create_metadata_writer (PhotoFileReader* self, GError** error);
void library_monitor_blacklist_file (GFile* file, const gchar* reason);
void library_monitor_unblacklist_file (GFile* file);
void photo_set_comment_persistent (Photo* self, const gchar* comment, GError** error);
void photo_metadata_set_comment (PhotoMetadata* self, const gchar* comment, PhotoMetadataSetOption option);
static void photo_real_set_exposure_time (Dateable* base, time_t time);
gboolean photo_table_set_exposure_time (PhotoTable* self, PhotoID* photo_id, time_t time);
void photo_set_exposure_time_persistent (Photo* self, time_t time, GError** error);
void dateable_set_exposure_time (Dateable* self, time_t target_time);
void photo_metadata_set_exposure_date_time (PhotoMetadata* self, MetadataDateTime* date_time, PhotoMetadataSetOption option);
MetadataDateTime* metadata_date_time_new (time_t timestamp);
MetadataDateTime* metadata_date_time_construct (GType object_type, time_t timestamp);
static void photo_real_get_dimensions (MediaSource* base, PhotoException disallowed_steps, Dimensions* result);
void photo_get_raw_dimensions (Photo* self, Dimensions* result);
Orientation photo_get_orientation (Photo* self);
gboolean photo_get_straighten (Photo* self, gdouble* theta);
void compute_arb_rotated_size (gdouble src_width, gdouble src_height, gdouble angle, gdouble* dest_width, gdouble* dest_height);
GType box_get_type (void) G_GNUC_CONST;
Box* box_dup (const Box* self);
void box_free (Box* self);
gboolean photo_get_crop (Photo* self, Box* crop, PhotoException exceptions);
void box_get_dimensions (Box *self, Dimensions* result);
static void photo_locked_create_adjustments_from_data (Photo* self);
PixelTransformationBundle* pixel_transformation_bundle_new (void);
PixelTransformationBundle* pixel_transformation_bundle_construct (GType object_type);
static KeyValueMap* photo_get_transformation (Photo* self, const gchar* name);
void pixel_transformation_bundle_set_to_identity (PixelTransformationBundle* self);
void pixel_transformation_bundle_load (PixelTransformationBundle* self, KeyValueMap* store);
PixelTransformer* pixel_transformation_bundle_generate_transformer (PixelTransformationBundle* self);
PixelTransformationBundle* photo_get_color_adjustments (Photo* self);
PixelTransformationBundle* pixel_transformation_bundle_copy (PixelTransformationBundle* self);
PixelTransformer* photo_get_pixel_transformer (Photo* self);
PixelTransformer* pixel_transformer_copy (PixelTransformer* self);
gboolean photo_has_color_adjustments (Photo* self);
static gboolean photo_has_transformation (Photo* self, const gchar* name);
GType pixel_transformation_type_get_type (void) G_GNUC_CONST;
gpointer pixel_transformation_ref (gpointer instance);
void pixel_transformation_unref (gpointer instance);
GParamSpec* param_spec_pixel_transformation (const gchar* name, const gchar* nick, const gchar* blurb, GType object_type, GParamFlags flags);
void value_set_pixel_transformation (GValue* value, gpointer v_object);
void value_take_pixel_transformation (GValue* value, gpointer v_object);
gpointer value_get_pixel_transformation (const GValue* value);
GType pixel_transformation_get_type (void) G_GNUC_CONST;
PixelTransformation* photo_get_color_adjustment (Photo* self, PixelTransformationType type);
PixelTransformation* pixel_transformation_bundle_get_transformation (PixelTransformationBundle* self, PixelTransformationType type);
void photo_set_color_adjustments (Photo* self, PixelTransformationBundle* new_adjustments);
gboolean pixel_transformation_bundle_is_identity (PixelTransformationBundle* self);
static gboolean photo_remove_transformation (Photo* self, const gchar* name);
KeyValueMap* pixel_transformation_bundle_save (PixelTransformationBundle* self, const gchar* group);
GeeIterable* pixel_transformation_bundle_get_transformations (PixelTransformationBundle* self);
void pixel_transformer_replace_transformation (PixelTransformer* self, PixelTransformation* old_trans, PixelTransformation* new_trans);
PixelTransformationType pixel_transformation_get_transformation_type (PixelTransformation* self);
static gboolean photo_set_transformation (Photo* self, KeyValueMap* trans);
static PhotoMetadata* photo_real_get_metadata (PhotoSource* base);
PhotoMetadata* photo_get_editable_metadata (Photo* self, GError** error);
gboolean photo_persist_master_metadata (Photo* self, PhotoMetadata* metadata, PhotoReimportMasterState** state, GError** error);
void photo_finish_update_master_metadata (Photo* self, PhotoReimportMasterState* state, GError** error);
gboolean photo_persist_editable_metadata (Photo* self, PhotoMetadata* metadata, PhotoReimportEditableState** state, GError** error);
void photo_finish_update_editable_metadata (Photo* self, PhotoReimportEditableState* state, GError** error);
gboolean photo_has_transformations (Photo* self);
gboolean photo_only_metadata_changed (Photo* self);
PhotoMetadata* photo_source_get_metadata (PhotoSource* self);
gboolean photo_has_alterations (Photo* self);
gchar* media_source_get_comment (MediaSource* self);
gchar* media_source_get_title (MediaSource* self);
PhotoTransformationState* photo_save_transformation_state (Photo* self);
static PhotoPhotoTransformationStateImpl* photo_photo_transformation_state_impl_new (Photo* photo, Orientation orientation, GeeHashMap* transformations, PixelTransformer* transformer, PixelTransformationBundle* adjustments);
static PhotoPhotoTransformationStateImpl* photo_photo_transformation_state_impl_construct (GType object_type, Photo* photo, Orientation orientation, GeeHashMap* transformations, PixelTransformer* transformer, PixelTransformationBundle* adjustments);
static GType photo_photo_transformation_state_impl_get_type (void) G_GNUC_CONST G_GNUC_UNUSED;
gboolean photo_load_transformation_state (Photo* self, PhotoTransformationState* state);
static Orientation photo_photo_transformation_state_impl_get_orientation (PhotoPhotoTransformationStateImpl* self);
static GeeHashMap* photo_photo_transformation_state_impl_get_transformations (PhotoPhotoTransformationStateImpl* self);
static PixelTransformer* photo_photo_transformation_state_impl_get_transformer (PhotoPhotoTransformationStateImpl* self);
static PixelTransformationBundle* photo_photo_transformation_state_impl_get_color_adjustments (PhotoPhotoTransformationStateImpl* self);
gboolean photo_table_set_transformation_state (PhotoTable* self, PhotoID* photo_id, Orientation orientation, GeeHashMap* transformations);
void photo_remove_all_transformations (Photo* self);
gboolean photo_table_remove_all_transformations (PhotoTable* self, PhotoID* photo_id);
gboolean photo_table_set_orientation (PhotoTable* self, PhotoID* photo_id, Orientation orientation);
Orientation photo_get_original_orientation (Photo* self);
gboolean photo_check_can_rotate (Photo* self);
void photo_rotate (Photo* self, Rotation rotation);
static void photo_real_rotate (Photo* self, Rotation rotation);
Orientation orientation_perform (Orientation self, Rotation rotation);
KeyValueMap* key_value_map_copy (KeyValueMap* self);
gchar* key_value_map_get_group (KeyValueMap* self);
gboolean photo_table_set_transformation (PhotoTable* self, PhotoID* photo_id, KeyValueMap* map);
gboolean photo_table_remove_transformation (PhotoTable* self, PhotoID* photo_id, const gchar* object);
gboolean photo_has_crop (Photo* self);
gboolean photo_get_raw_crop (Photo* self, Box* crop);
void box_init (Box *self, gint left, gint top, gint right, gint bottom);
gint key_value_map_get_int (KeyValueMap* self, const gchar* key, gint def);
static void photo_set_raw_crop (Photo* self, Box* crop);
KeyValueMap* key_value_map_new (const gchar* group);
KeyValueMap* key_value_map_construct (GType object_type, const gchar* group);
void key_value_map_set_int (KeyValueMap* self, const gchar* key, gint value);
static gboolean photo_get_raw_straighten (Photo* self, gdouble* angle);
gdouble key_value_map_get_double (KeyValueMap* self, const gchar* key, gdouble def);
static void photo_set_raw_straighten (Photo* self, gdouble theta);
void key_value_map_set_double (KeyValueMap* self, const gchar* key, gdouble value);
GType editing_tools_redeye_instance_get_type (void) G_GNUC_CONST;
EditingToolsRedeyeInstance* editing_tools_redeye_instance_dup (const EditingToolsRedeyeInstance* self);
void editing_tools_redeye_instance_free (EditingToolsRedeyeInstance* self);
static EditingToolsRedeyeInstance* photo_get_raw_redeye_instances (Photo* self, int* result_length1);
void key_value_map_get_point (KeyValueMap* self, const gchar* key, GdkPoint* def, GdkPoint* result);
gboolean photo_has_redeye_transformations (Photo* self);
void photo_add_redeye_instance (Photo* self, EditingToolsRedeyeInstance* redeye);
void key_value_map_set_point (KeyValueMap* self, const gchar* key, GdkPoint* point);
static gboolean photo_calculate_pixbuf_dimensions (Photo* self, Scaling* scaling, PhotoException exceptions, Dimensions* scaled_image, Dimensions* scaled_to_viewport);
static gboolean photo_locked_calculate_pixbuf_dimensions (Photo* self, Scaling* scaling, PhotoException exceptions, Dimensions* scaled_image, Dimensions* scaled_to_viewport);
gboolean scaling_is_unscaled (Scaling *self);
void orientation_rotate_box (Orientation self, Dimensions* space, Box* box, Box* result);
void orientation_rotate_dimensions (Orientation self, Dimensions* dim, Dimensions* result);
void box_get_scaled (Box *self, Dimensions* scaled, Box* result);
void scaling_get_scaled_dimensions (Scaling *self, Dimensions* original, Dimensions* result);
gint box_get_width (Box *self);
gint box_get_height (Box *self);
void dimensions_get_scaled_similar (Dimensions *self, Dimensions* original, Dimensions* scaled, Dimensions* result);
void orientation_derotate_dimensions (Orientation self, Dimensions* dim, Dimensions* result);
gboolean dimensions_has_area (Dimensions *self);
static GdkPixbuf* photo_load_raw_pixbuf (Photo* self, Scaling* scaling, PhotoException exceptions, BackingFetchMode fetch_mode, GError** error);
GdkPixbuf* photo_file_reader_unscaled_read (PhotoFileReader* self, GError** error);
GdkPixbuf* photo_file_reader_scaled_read (PhotoFileReader* self, Dimensions* full, Dimensions* scaled, GError** error);
gboolean dimensions_approx_equals (Dimensions *self, Dimensions* dim, gint fudge);
void dimensions_for_pixbuf (GdkPixbuf* pixbuf, Dimensions* result);
static GdkPixbuf* photo_get_untransformed_pixbuf (Photo* self, Scaling* scaling, gboolean rotate, BackingFetchMode fetch_mode, GError** error);
GdkPixbuf* photo_get_unmodified_pixbuf (Photo* self, Scaling* scaling, gboolean rotate, GError** error);
GdkPixbuf* orientation_rotate_pixbuf (Orientation self, GdkPixbuf* pixbuf);
static GdkPixbuf* photo_real_get_pixbuf (PhotoSource* base, Scaling* scaling, GError** error);
GdkPixbuf* photo_get_pixbuf_with_options (Photo* self, Scaling* scaling, PhotoException exceptions, BackingFetchMode fetch_mode, GError** error);
static GdkPixbuf* photo_run_source_pixbuf_cache (Photo* locate, gboolean keep, GError** error);
static PhotoCachedPixbuf* photo_cached_pixbuf_new (Photo* photo, GdkPixbuf* pixbuf);
static PhotoCachedPixbuf* photo_cached_pixbuf_construct (GType object_type, Photo* photo, GdkPixbuf* pixbuf);
static gboolean photo_trim_source_pixbuf_cache (void);
static gboolean _photo_trim_source_pixbuf_cache_gsource_func (gpointer self);
gboolean photo_get_develop_raw_photos_to_files (void);
void media_source_get_dimensions (MediaSource* self, PhotoException disallowed_steps, Dimensions* result);
gboolean dimensions_equals (Dimensions *self, Dimensions* dim);
static GdkPixbuf* photo_do_redeye (Photo* self, GdkPixbuf* pixbuf, EditingToolsRedeyeInstance* inst);
GdkPixbuf* rotate_arb (GdkPixbuf* source_pixbuf, gdouble angle);
void pixel_transformer_transform_pixbuf (PixelTransformer* self, GdkPixbuf* pixbuf, GCancellable* cancellable);
gboolean photo_has_user_generated_metadata (Photo* self);
static gboolean photo_real_has_user_generated_metadata (Photo* self);
void photo_set_user_metadata_for_export (Photo* self, PhotoMetadata* metadata);
static void photo_real_set_user_metadata_for_export (Photo* self, PhotoMetadata* metadata);
gpointer photo_file_format_properties_ref (gpointer instance);
void photo_file_format_properties_unref (gpointer instance);
GParamSpec* param_spec_photo_file_format_properties (const gchar* name, const gchar* nick, const gchar* blurb, GType object_type, GParamFlags flags);
void value_set_photo_file_format_properties (GValue* value, gpointer v_object);
void value_take_photo_file_format_properties (GValue* value, gpointer v_object);
gpointer value_get_photo_file_format_properties (const GValue* value);
GType photo_file_format_properties_get_type (void) G_GNUC_CONST;
PhotoFileFormatProperties* photo_file_format_get_properties (PhotoFileFormat self);
GFile* photo_file_format_properties_convert_file_extension (PhotoFileFormatProperties* self, GFile* file);
static gboolean photo_export_fullsized_backing (Photo* self, GFile* file, gboolean export_metadata, GError** error);
PhotoMetadata* photo_file_format_create_metadata (PhotoFileFormat self);
time_t media_source_get_exposure_time (MediaSource* self);
void photo_metadata_set_pixel_dimensions (PhotoMetadata* self, Dimensions* dim, PhotoMetadataSetOption option);
void photo_metadata_set_orientation (PhotoMetadata* self, Orientation orientation);
void photo_metadata_set_software (PhotoMetadata* self, const gchar* software, const gchar* version);
#define RESOURCES_APP_TITLE "Shotwell"
#define RESOURCES_APP_VERSION _VERSION
void photo_metadata_remove_exif_thumbnail (PhotoMetadata* self);
void photo_metadata_clear (PhotoMetadata* self);
gboolean photo_is_export_required (Photo* self, Scaling* scaling, PhotoFileFormat export_format);
void photo_export (Photo* self, GFile* dest_file, Scaling* scaling, JpegQuality quality, PhotoFileFormat export_format, gboolean direct_copy_unmodified, gboolean export_metadata, GError** error);
const gchar* photo_file_format_to_string (PhotoFileFormat self);
void photo_metadata_remove_tag (PhotoMetadata* self, const gchar* tag);
static GFile* photo_generate_new_editable_file (Photo* self, PhotoFileFormat* file_format, GError** error);
gboolean photo_file_format_properties_is_recognized_extension (PhotoFileFormatProperties* self, const gchar* ext);
gchar* photo_file_format_properties_get_default_extension (PhotoFileFormatProperties* self);
GFile* generate_unique_file (GFile* dir, const gchar* basename, gboolean* collision, GError** error);
static gboolean photo_launch_editor (GFile* file, PhotoFileFormat file_format, GError** error);
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_external_raw_app (ConfigurationFacade* self);
gchar* configuration_facade_get_external_photo_app (ConfigurationFacade* self);
static void _g_object_unref0_ (gpointer var);
static void _g_list_free__g_object_unref0_ (GList* self);
void photo_open_with_raw_external_editor (Photo* self, GError** error);
void photo_open_with_external_editor (Photo* self, GError** error);
static void photo_halt_monitoring_editable (Photo* self);
static void photo_attach_editable (Photo* self, PhotoFileFormat file_format, GFile* file, GError** error);
static void photo_start_monitoring_editable (Photo* self, GFile* file, GError** error);
static void photo_on_editable_file_changed (Photo* self, GFile* file, GFile* other_file, GFileMonitorEvent event);
static void _photo_on_editable_file_changed_g_file_monitor_changed (GFileMonitor* _sender, GFile* file, GFile* other_file, GFileMonitorEvent event_type, gpointer self);
static void photo_update_editable (Photo* self, gboolean only_attributes, PhotoFileReader* new_reader, GError** error);
static void photo_update_editable_attributes (Photo* self, GError** error);
void photo_reimport_editable (Photo* self, GError** error);
void photo_table_attach_editable (PhotoTable* self, PhotoRow* row, BackingPhotoID* editable_id, GError** error);
void backing_photo_table_update_attributes (BackingPhotoTable* self, BackingPhotoID* id, time_t timestamp, gint64 filesize, GError** error);
static void _vala_array_add269 (gchar*** array, int* length, int* size, gchar* value);
static void _vala_array_add270 (gchar*** array, int* length, int* size, gchar* value);
static void _vala_array_add271 (gchar*** array, int* length, int* size, gchar* value);
static void _vala_array_add272 (gchar*** array, int* length, int* size, gchar* value);
static void _vala_array_add273 (gchar*** array, int* length, int* size, gchar* value);
static void _vala_array_add274 (gchar*** array, int* length, int* size, gchar* value);
void backing_photo_id_init (BackingPhotoID *self, gint64 id);
const gchar* g_file_monitor_event_to_string (GFileMonitorEvent self);
static void photo_on_reimport_editable (Photo* self);
static void _photo_on_reimport_editable_one_shot_callback (gpointer self);
OneShotScheduler* one_shot_scheduler_new (const gchar* name, OneShotCallback callback, void* callback_target);
OneShotScheduler* one_shot_scheduler_construct (GType object_type, const gchar* name, OneShotCallback callback, void* callback_target);
void one_shot_scheduler_after_timeout (OneShotScheduler* self, guint msec, gboolean reschedule);
static void photo_on_update_editable_attributes (Photo* self);
static void _photo_on_update_editable_attributes_one_shot_callback (gpointer self);
static void photo_on_remove_editable (Photo* self);
static void _photo_on_remove_editable_one_shot_callback (gpointer self);
void photo_get_original_dimensions (Photo* self, Dimensions* result);
void photo_get_master_dimensions (Photo* self, Dimensions* result);
void photo_set_crop (Photo* self, Box* crop);
void orientation_derotate_box (Orientation self, Dimensions* space, Box* box, Box* result);
void photo_set_straighten (Photo* self, gdouble theta);
static GdkPixbuf* photo_red_reduce_pixel (Photo* self, GdkPixbuf* pixbuf, gint x, gint y);
void photo_unscaled_to_raw_point (Photo* self, GdkPoint* unscaled_point, GdkPoint* result);
void orientation_derotate_point (Orientation self, Dimensions* space, GdkPoint* point, GdkPoint* result);
void photo_unscaled_to_raw_rect (Photo* self, GdkRectangle* unscaled_rect, GdkRectangle* result);
PixelTransformationBundle* photo_get_enhance_transformations (Photo* self);
PixelTransformationBundle* auto_enhance_create_auto_enhance_adjustments (GdkPixbuf* pixbuf);
gboolean photo_enhance (Photo* self);
void photo_set_develop_raw_photos_to_files (gboolean value);
static void photo_real_editable_replaced (Photo* self, GFile* old_file, GFile* new_file);
static void g_cclosure_user_marshal_VOID__OBJECT_OBJECT (GClosure * closure, GValue * return_value, guint n_param_values, const GValue * param_values, gpointer invocation_hint, gpointer marshal_data);
static void photo_real_raw_development_modified (Photo* self);
static void photo_real_baseline_replaced (Photo* self);
static void photo_real_master_reimported (Photo* self, PhotoMetadata* metadata);
static void g_cclosure_user_marshal_VOID__MEDIA_METADATA (GClosure * closure, GValue * return_value, guint n_param_values, const GValue * param_values, gpointer invocation_hint, gpointer marshal_data);
static void photo_real_editable_reimported (Photo* self, PhotoMetadata* metadata);
static void photo_real_baseline_reimported (Photo* self, PhotoMetadata* metadata);
static void photo_real_source_reimported (Photo* self, PhotoMetadata* metadata);
#define PHOTO_PHOTO_TRANSFORMATION_STATE_IMPL_GET_PRIVATE(o) (G_TYPE_INSTANCE_GET_PRIVATE ((o), PHOTO_TYPE_PHOTO_TRANSFORMATION_STATE_IMPL, PhotoPhotoTransformationStateImplPrivate))
enum {
PHOTO_PHOTO_TRANSFORMATION_STATE_IMPL_DUMMY_PROPERTY
};
static void photo_photo_transformation_state_impl_on_photo_baseline_replaced (PhotoPhotoTransformationStateImpl* self);
static void _photo_photo_transformation_state_impl_on_photo_baseline_replaced_photo_baseline_replaced (Photo* _sender, gpointer self);
static GeeHashMap* photo_photo_transformation_state_impl_copy_transformations (GeeHashMap* original);
static void photo_photo_transformation_state_impl_finalize (GObject* obj);
enum {
PHOTO_BACKING_READERS_DUMMY_PROPERTY
};
static void photo_backing_readers_finalize (PhotoBackingReaders* obj);
enum {
PHOTO_CACHED_PIXBUF_DUMMY_PROPERTY
};
static void photo_cached_pixbuf_finalize (PhotoCachedPixbuf* obj);
enum {
PHOTO_REIMPORT_MASTER_STATE_DUMMY_PROPERTY
};
PhotoReimportMasterState* photo_reimport_master_state_construct (GType object_type);
static void photo_reimport_master_state_finalize (PhotoReimportMasterState* obj);
enum {
PHOTO_REIMPORT_MASTER_STATE_IMPL_DUMMY_PROPERTY
};
static gchar** _vala_array_dup29 (gchar** self, int length);
static void photo_reimport_master_state_impl_finalize (PhotoReimportMasterState* obj);
enum {
PHOTO_REIMPORT_EDITABLE_STATE_DUMMY_PROPERTY
};
PhotoReimportEditableState* photo_reimport_editable_state_construct (GType object_type);
static void photo_reimport_editable_state_finalize (PhotoReimportEditableState* obj);
enum {
PHOTO_REIMPORT_EDITABLE_STATE_IMPL_DUMMY_PROPERTY
};
static void photo_reimport_editable_state_impl_finalize (PhotoReimportEditableState* obj);
enum {
PHOTO_REIMPORT_RAW_DEVELOPMENT_STATE_DUMMY_PROPERTY
};
PhotoReimportRawDevelopmentState* photo_reimport_raw_development_state_construct (GType object_type);
static void photo_reimport_raw_development_state_finalize (PhotoReimportRawDevelopmentState* obj);
enum {
PHOTO_REIMPORT_RAW_DEVELOPMENT_STATE_IMPL_DUMMY_PROPERTY
};
static PhotoReimportRawDevelopmentStateImplDevToReimport* photo_reimport_raw_development_state_impl_dev_to_reimport_new (BackingPhotoRow* backing, PhotoMetadata* metadata);
static PhotoReimportRawDevelopmentStateImplDevToReimport* photo_reimport_raw_development_state_impl_dev_to_reimport_construct (GType object_type, BackingPhotoRow* backing, PhotoMetadata* metadata);
enum {
PHOTO_REIMPORT_RAW_DEVELOPMENT_STATE_IMPL_DEV_TO_REIMPORT_DUMMY_PROPERTY
};
static void photo_reimport_raw_development_state_impl_dev_to_reimport_finalize (PhotoReimportRawDevelopmentStateImplDevToReimport* obj);
static void photo_reimport_raw_development_state_impl_finalize (PhotoReimportRawDevelopmentState* obj);
static void photo_finalize (GObject* obj);
static void _vala_photo_get_property (GObject * object, guint property_id, GValue * value, GParamSpec * pspec);
static void _vala_photo_set_property (GObject * object, guint property_id, const GValue * value, GParamSpec * pspec);
GType marker_get_type (void) G_GNUC_CONST;
gpointer source_backlink_ref (gpointer instance);
void source_backlink_unref (gpointer instance);
GParamSpec* param_spec_source_backlink (const gchar* name, const gchar* nick, const gchar* blurb, GType object_type, GParamFlags flags);
void value_set_source_backlink (GValue* value, gpointer v_object);
void value_take_source_backlink (GValue* value, gpointer v_object);
gpointer value_get_source_backlink (const GValue* value);
GType source_backlink_get_type (void) G_GNUC_CONST;
GType database_source_collection_get_type (void) G_GNUC_CONST;
GType media_source_collection_get_type (void) G_GNUC_CONST;
GType database_source_holding_tank_get_type (void) G_GNUC_CONST;
GType media_source_holding_tank_get_type (void) G_GNUC_CONST;
gpointer workers_ref (gpointer instance);
void workers_unref (gpointer instance);
GParamSpec* param_spec_workers (const gchar* name, const gchar* nick, const gchar* blurb, GType object_type, GParamFlags flags);
void value_set_workers (GValue* value, gpointer v_object);
void value_take_workers (GValue* value, gpointer v_object);
gpointer value_get_workers (const GValue* value);
GType workers_get_type (void) G_GNUC_CONST;
GType media_monitor_get_type (void) G_GNUC_CONST;
gpointer transaction_controller_ref (gpointer instance);
void transaction_controller_unref (gpointer instance);
GParamSpec* param_spec_transaction_controller (const gchar* name, const gchar* nick, const gchar* blurb, GType object_type, GParamFlags flags);
void value_set_transaction_controller (GValue* value, gpointer v_object);
void value_take_transaction_controller (GValue* value, gpointer v_object);
gpointer value_get_transaction_controller (const GValue* value);
GType transaction_controller_get_type (void) G_GNUC_CONST;
GType library_photo_source_collection_get_type (void) G_GNUC_CONST;
#define LIBRARY_PHOTO_SOURCE_COLLECTION_GET_PRIVATE(o) (G_TYPE_INSTANCE_GET_PRIVATE ((o), TYPE_LIBRARY_PHOTO_SOURCE_COLLECTION, LibraryPhotoSourceCollectionPrivate))
enum {
LIBRARY_PHOTO_SOURCE_COLLECTION_DUMMY_PROPERTY
};
GType library_photo_source_collection_state_get_type (void) G_GNUC_CONST;
guint file_hash (GFile* file);
static guint _file_hash_gee_hash_data_func (gconstpointer v, gpointer self);
gboolean file_equal (GFile* a, GFile* b);
static gboolean _file_equal_gee_equal_data_func (gconstpointer a, gconstpointer b, gpointer self);
gint int64_compare (gint64* a, gint64* b);
static gint _int64_compare_gcompare_data_func (gconstpointer a, gconstpointer b, gpointer self);
static gint64* _int64_dup (gint64* self);
gboolean int64_equal (gint64* a, gint64* b);
static gboolean _int64_equal_gee_equal_data_func (gconstpointer a, gconstpointer b, gpointer self);
LibraryPhotoSourceCollection* library_photo_source_collection_new (void);
LibraryPhotoSourceCollection* library_photo_source_collection_construct (GType object_type);
static gint64 _photo_get_photo_key_get_source_database_key (DataSource* source, gpointer self);
MediaSourceCollection* media_source_collection_construct (GType object_type, const gchar* name, GetSourceDatabaseKey source_key_func, void* source_key_func_target);
MediaSourceHoldingTank* media_source_collection_get_trashcan (MediaSourceCollection* self);
static void library_photo_source_collection_on_trashcan_contents_altered (LibraryPhotoSourceCollection* self, GeeCollection* added, GeeCollection* removed);
static void _library_photo_source_collection_on_trashcan_contents_altered_source_holding_tank_contents_altered (SourceHoldingTank* _sender, GeeCollection* added, GeeCollection* removed, gpointer self);
MediaSourceHoldingTank* media_source_collection_get_offline_bin (MediaSourceCollection* self);
static void library_photo_source_collection_on_offline_contents_altered (LibraryPhotoSourceCollection* self, GeeCollection* added, GeeCollection* removed);
static void _library_photo_source_collection_on_offline_contents_altered_source_holding_tank_contents_altered (SourceHoldingTank* _sender, GeeCollection* added, GeeCollection* removed, gpointer self);
static MediaSourceHoldingTank* library_photo_source_collection_real_create_trashcan (MediaSourceCollection* base);
static gboolean library_photo_source_collection_check_if_trashed_photo (LibraryPhotoSourceCollection* self, DataSource* source, Alteration* alteration);
static gboolean _library_photo_source_collection_check_if_trashed_photo_source_holding_tank_check_to_keep (DataSource* source, Alteration* alteration, gpointer self);
LibraryPhotoSourceHoldingTank* library_photo_source_holding_tank_new (LibraryPhotoSourceCollection* sources, SourceHoldingTankCheckToKeep check_to_keep, void* check_to_keep_target, GetSourceDatabaseKey get_key, void* get_key_target);
LibraryPhotoSourceHoldingTank* library_photo_source_holding_tank_construct (GType object_type, LibraryPhotoSourceCollection* sources, SourceHoldingTankCheckToKeep check_to_keep, void* check_to_keep_target, GetSourceDatabaseKey get_key, void* get_key_target);
GType library_photo_source_holding_tank_get_type (void) G_GNUC_CONST;
static MediaSourceHoldingTank* library_photo_source_collection_real_create_offline_bin (MediaSourceCollection* base);
static gboolean library_photo_source_collection_check_if_offline_photo (LibraryPhotoSourceCollection* self, DataSource* source, Alteration* alteration);
static gboolean _library_photo_source_collection_check_if_offline_photo_source_holding_tank_check_to_keep (DataSource* source, Alteration* alteration, gpointer self);
static MediaMonitor* library_photo_source_collection_real_create_media_monitor (MediaSourceCollection* base, Workers* workers, GCancellable* cancellable);
PhotoMonitor* photo_monitor_new (Workers* workers, GCancellable* cancellable);
PhotoMonitor* photo_monitor_construct (GType object_type, Workers* workers, GCancellable* cancellable);
GType photo_monitor_get_type (void) G_GNUC_CONST;
static gboolean library_photo_source_collection_real_holds_type_of_source (SourceCollection* base, DataSource* source);
static gchar* library_photo_source_collection_real_get_typename (MediaSourceCollection* base);
static gboolean library_photo_source_collection_real_is_file_recognized (MediaSourceCollection* base, GFile* file);
static void library_photo_source_collection_real_notify_contents_altered (DataCollection* base, GeeIterable* added, GeeIterable* removed);
static void library_photo_source_collection_on_editable_replaced (LibraryPhotoSourceCollection* self, Photo* photo, GFile* old_file, GFile* new_file);
static void _library_photo_source_collection_on_editable_replaced_photo_editable_replaced (Photo* _sender, GFile* old_file, GFile* new_file, gpointer self);
static void library_photo_source_collection_on_raw_development_modified (LibraryPhotoSourceCollection* self, Photo* _photo);
static void _library_photo_source_collection_on_raw_development_modified_photo_raw_development_modified (Photo* _sender, gpointer self);
void data_collection_notify_contents_altered (DataCollection* self, GeeIterable* added, GeeIterable* removed);
static void library_photo_source_collection_real_items_altered (DataCollection* base, GeeMap* items);
gboolean alteration_has_detail (Alteration* self, const gchar* subject, const gchar* detail);
static void library_photo_source_collection_real_postprocess_imported_media (MediaSourceCollection* base, GeeCollection* media_sources);
GType tag_get_type (void) G_GNUC_CONST;
gpointer hierarchical_tag_index_ref (gpointer instance);
void hierarchical_tag_index_unref (gpointer instance);
GParamSpec* param_spec_hierarchical_tag_index (const gchar* name, const gchar* nick, const gchar* blurb, GType object_type, GParamFlags flags);
void value_set_hierarchical_tag_index (GValue* value, gpointer v_object);
void value_take_hierarchical_tag_index (GValue* value, gpointer v_object);
gpointer value_get_hierarchical_tag_index (const GValue* value);
GType hierarchical_tag_index_get_type (void) G_GNUC_CONST;
HierarchicalTagIndex* hierarchical_tag_index_get_global_index (void);
gboolean photo_metadata_has_hierarchical_keywords (PhotoMetadata* self);
HierarchicalTagIndex* hierarchical_tag_utilities_process_hierarchical_import_keywords (GeeCollection* h_keywords);
GeeSet* photo_metadata_get_hierarchical_keywords (PhotoMetadata* self);
GeeCollection* library_photo_get_import_keywords (LibraryPhoto* self);
gboolean hierarchical_tag_index_is_tag_in_index (HierarchicalTagIndex* self, const gchar* tag);
gchar* tag_prep_tag_name (const gchar* name);
gchar* hierarchical_tag_index_get_path_for_name (HierarchicalTagIndex* self, const gchar* name);
Tag* tag_for_path (const gchar* name);
GeeCollection* hierarchical_tag_index_get_all_paths (HierarchicalTagIndex* self);
void library_photo_clear_import_keywords (LibraryPhoto* self);
void tag_attach_many (Tag* self, GeeCollection* sources);
void media_source_collection_postprocess_imported_media (MediaSourceCollection* self, GeeCollection* media);
void library_photo_source_collection_notify_master_reimported (LibraryPhotoSourceCollection* self, LibraryPhoto* photo, PhotoMetadata* metadata);
static void library_photo_source_collection_real_notify_master_reimported (LibraryPhotoSourceCollection* self, LibraryPhoto* photo, PhotoMetadata* metadata);
void library_photo_source_collection_notify_editable_reimported (LibraryPhotoSourceCollection* self, LibraryPhoto* photo, PhotoMetadata* metadata);
static void library_photo_source_collection_real_notify_editable_reimported (LibraryPhotoSourceCollection* self, LibraryPhoto* photo, PhotoMetadata* metadata);
void library_photo_source_collection_notify_source_reimported (LibraryPhotoSourceCollection* self, LibraryPhoto* photo, PhotoMetadata* metadata);
static void library_photo_source_collection_real_notify_source_reimported (LibraryPhotoSourceCollection* self, LibraryPhoto* photo, PhotoMetadata* metadata);
void library_photo_source_collection_notify_baseline_reimported (LibraryPhotoSourceCollection* self, LibraryPhoto* photo, PhotoMetadata* metadata);
static void library_photo_source_collection_real_notify_baseline_reimported (LibraryPhotoSourceCollection* self, LibraryPhoto* photo, PhotoMetadata* metadata);
static MediaSource* library_photo_source_collection_real_fetch_by_numeric_id (MediaSourceCollection* base, gint64 numeric_id);
LibraryPhoto* library_photo_source_collection_fetch (LibraryPhotoSourceCollection* self, PhotoID* photo_id);
gboolean media_source_is_trashed (MediaSource* self);
gboolean media_source_is_offline (MediaSource* self);
static MediaSource* library_photo_source_collection_real_fetch_by_source_id (MediaSourceCollection* base, const gchar* source_id);
MediaSource* media_source_collection_fetch_by_numeric_id (MediaSourceCollection* self, gint64 numeric_id);
gint64 parse_int64 (const gchar* str, gint num_base);
static GeeCollection* library_photo_source_collection_real_get_event_source_ids (MediaSourceCollection* base, EventID* event_id);
GeeArrayList* photo_table_get_event_source_ids (PhotoTable* self, EventID* event_id);
DataSource* database_source_collection_fetch_by_key (DatabaseSourceCollection* self, gint64 key);
LibraryPhoto* library_photo_source_collection_fetch_by_editable_file (LibraryPhotoSourceCollection* self, GFile* file);
LibraryPhoto* library_photo_source_collection_fetch_by_raw_development_file (LibraryPhotoSourceCollection* self, GFile* file);
static void library_photo_source_collection_compare_backing (LibraryPhotoSourceCollection* self, LibraryPhoto* photo, GFileInfo* info, GeeCollection* matches_master, GeeCollection* matches_editable, GeeCollection* matches_development);
gboolean backing_photo_row_matches_file_info (BackingPhotoRow* self, GFileInfo* info);
void library_photo_source_collection_fetch_by_matching_backing (LibraryPhotoSourceCollection* self, GFileInfo* info, GeeCollection* matches_master, GeeCollection* matches_editable, GeeCollection* matched_development);
GeeCollection* media_source_collection_get_offline_bin_contents (MediaSourceCollection* self);
void library_photo_source_collection_get_basename_filesize_duplicate (LibraryPhotoSourceCollection* self, const gchar* basename, gint64 filesize, PhotoID* result);
gint utf8_ci_compare (void* a, void* b);
gboolean library_photo_source_collection_has_basename_filesize_duplicate (LibraryPhotoSourceCollection* self, const gchar* basename, gint64 filesize);
gboolean photo_id_is_valid (PhotoID *self);
LibraryPhoto* library_photo_source_collection_get_trashed_by_file (LibraryPhotoSourceCollection* self, GFile* file);
MediaSource* media_source_holding_tank_fetch_by_master_file (MediaSourceHoldingTank* self, GFile* file);
LibraryPhoto* library_photo_source_holding_tank_fetch_by_backing_file (LibraryPhotoSourceHoldingTank* self, GFile* file);
LibraryPhoto* library_photo_source_collection_get_trashed_by_md5 (LibraryPhotoSourceCollection* self, const gchar* md5);
MediaSource* media_source_holding_tank_fetch_by_md5 (MediaSourceHoldingTank* self, const gchar* md5);
LibraryPhoto* library_photo_source_collection_get_offline_by_file (LibraryPhotoSourceCollection* self, GFile* file);
LibraryPhoto* library_photo_source_collection_get_offline_by_md5 (LibraryPhotoSourceCollection* self, const gchar* md5);
gint library_photo_source_collection_get_offline_count (LibraryPhotoSourceCollection* self);
gint source_holding_tank_get_count (SourceHoldingTank* self);
LibraryPhoto* library_photo_source_collection_get_state_by_file (LibraryPhotoSourceCollection* self, GFile* file, LibraryPhotoSourceCollectionState* state);
MediaSource* media_source_collection_fetch_by_master_file (MediaSourceCollection* self, GFile* file);
static gboolean library_photo_source_collection_real_has_backlink (SourceCollection* base, SourceBacklink* backlink);
gboolean source_collection_has_backlink (SourceCollection* self, SourceBacklink* backlink);
gboolean source_holding_tank_has_backlink (SourceHoldingTank* self, SourceBacklink* backlink);
static void library_photo_source_collection_real_remove_backlink (SourceCollection* base, SourceBacklink* backlink);
void source_holding_tank_remove_backlink (SourceHoldingTank* self, SourceBacklink* backlink);
void source_collection_remove_backlink (SourceCollection* self, SourceBacklink* backlink);
MediaSourceTransactionController* media_source_transaction_controller_new (MediaSourceCollection* sources);
MediaSourceTransactionController* media_source_transaction_controller_construct (GType object_type, MediaSourceCollection* sources);
GType media_source_transaction_controller_get_type (void) G_GNUC_CONST;
static void library_photo_source_collection_real_master_reimported (LibraryPhotoSourceCollection* self, LibraryPhoto* photo, PhotoMetadata* metadata);
static void g_cclosure_user_marshal_VOID__OBJECT_MEDIA_METADATA (GClosure * closure, GValue * return_value, guint n_param_values, const GValue * param_values, gpointer invocation_hint, gpointer marshal_data);
static void library_photo_source_collection_real_editable_reimported (LibraryPhotoSourceCollection* self, LibraryPhoto* photo, PhotoMetadata* metadata);
static void library_photo_source_collection_real_baseline_reimported (LibraryPhotoSourceCollection* self, LibraryPhoto* photo, PhotoMetadata* metadata);
static void library_photo_source_collection_real_source_reimported (LibraryPhotoSourceCollection* self, LibraryPhoto* photo, PhotoMetadata* metadata);
static void library_photo_source_collection_finalize (DataCollection* obj);
GType flaggable_get_type (void) G_GNUC_CONST;
GType monitorable_get_type (void) G_GNUC_CONST;
#define LIBRARY_PHOTO_GET_PRIVATE(o) (G_TYPE_INSTANCE_GET_PRIVATE ((o), TYPE_LIBRARY_PHOTO, LibraryPhotoPrivate))
enum {
LIBRARY_PHOTO_DUMMY_PROPERTY
};
#define LIBRARY_PHOTO_FLAG_HIDDEN ((guint64) 0x0000000000000001)
#define LIBRARY_PHOTO_FLAG_FAVORITE ((guint64) 0x0000000000000002)
#define LIBRARY_PHOTO_FLAG_TRASH ((guint64) 0x0000000000000004)
#define LIBRARY_PHOTO_FLAG_OFFLINE ((guint64) 0x0000000000000008)
#define LIBRARY_PHOTO_FLAG_FLAGGED ((guint64) 0x0000000000000010)
static LibraryPhoto* library_photo_new (PhotoRow* row);
static LibraryPhoto* library_photo_construct (GType object_type, PhotoRow* row);
static void library_photo_generate_thumbnails (LibraryPhoto* self);
static void _library_photo_generate_thumbnails_one_shot_callback (gpointer self);
void data_source_rehydrate_backlinks (DataSource* self, SourceCollection* unlinked_from, const gchar* dehydrated);
static void library_photo_upgrade_rating_flags (LibraryPhoto* self, guint64 flags);
static LibraryPhoto* library_photo_new_from_import_params (PhotoImportParams* import_params);
static LibraryPhoto* library_photo_construct_from_import_params (GType object_type, PhotoImportParams* import_params);
void library_photo_init (ProgressMonitor monitor, void* monitor_target);
GeeArrayList* photo_table_get_all (PhotoTable* self);
GeeCollection* data_collection_add_many (DataCollection* self, GeeCollection* objects, ProgressMonitor monitor, void* monitor_target);
void media_source_collection_add_many_to_trash (MediaSourceCollection* self, GeeCollection* sources);
void media_source_collection_add_many_to_offline (MediaSourceCollection* self, GeeCollection* sources);
void library_photo_terminate (void);
ImportResult library_photo_import_create (PhotoImportParams* params, LibraryPhoto** photo);
void photo_table_add (PhotoTable* self, PhotoRow* photo_row, PhotoID* result);
gboolean photo_id_is_invalid (PhotoID *self);
void library_photo_import_failed (LibraryPhoto* photo);
void photo_table_remove (PhotoTable* self, PhotoID* photo_id, GError** error);
static void library_photo_real_notify_master_reimported (Photo* base, PhotoMetadata* metadata);
static void library_photo_real_notify_editable_reimported (Photo* base, PhotoMetadata* metadata);
static void library_photo_real_notify_source_reimported (Photo* base, PhotoMetadata* metadata);
static void library_photo_real_notify_baseline_reimported (Photo* base, PhotoMetadata* metadata);
void thumbnail_cache_import_from_source (ThumbnailSource* source, gboolean force, GError** error);
void thumbnail_source_notify_thumbnail_altered (ThumbnailSource* self);
static void library_photo_real_notify_altered (DataObject* base, Alteration* alteration);
gboolean alteration_has_subject (Alteration* self, const gchar* subject);
void one_shot_scheduler_at_priority_idle (OneShotScheduler* self, gint priority);
static GdkPixbuf* library_photo_real_get_preview_pixbuf (MediaSource* base, Scaling* scaling, GError** error);
GdkPixbuf* thumbnail_source_get_thumbnail (ThumbnailSource* self, gint scale, GError** error);
GType thumbnail_cache_size_get_type (void) G_GNUC_CONST;
GdkPixbuf* scaling_perform_on_pixbuf (Scaling *self, GdkPixbuf* pixbuf, GdkInterpType interp, gboolean scale_up);
static void library_photo_real_rotate (Photo* base, Rotation rotation);
void thumbnail_cache_rotate (ThumbnailSource* source, Rotation rotation, GError** error);
static GdkPixbuf* library_photo_real_get_thumbnail (ThumbnailSource* base, gint scale, GError** error);
GdkPixbuf* thumbnail_cache_fetch (ThumbnailSource* source, gint scale, GError** error);
static void library_photo_duplicate_backing_photo (LibraryPhoto* self, BackingPhotoRow* backing, BackingPhotoID* result, GError** error);
GFile* library_files_duplicate (GFile* src, GFileProgressCallback progress_callback, void* progress_callback_target, gboolean blacklist, GError** error);
static void library_photo_on_duplicate_progress (LibraryPhoto* self, gint64 current, gint64 total);
static void _library_photo_on_duplicate_progress_gfile_progress_callback (gint64 current_num_bytes, gint64 total_num_bytes, gpointer self);
LibraryPhoto* library_photo_duplicate (LibraryPhoto* self, GError** error);
void photo_table_duplicate (PhotoTable* self, PhotoID* photo_id, const gchar* new_filename, BackingPhotoID* editable_id, BackingPhotoID* develop_shotwell, BackingPhotoID* develop_camera_id, BackingPhotoID* develop_embedded_id, PhotoID* result);
PhotoRow* photo_table_get_row (PhotoTable* self, PhotoID* photo_id);
void thumbnail_cache_duplicate (ThumbnailSource* src_source, ThumbnailSource* dest_source);
gboolean data_collection_add (DataCollection* self, DataObject* object);
GType event_source_get_type (void) G_GNUC_CONST;
GType event_get_type (void) G_GNUC_CONST;
Event* media_source_get_event (MediaSource* self);
void event_attach (Event* self, MediaSource* source);
GType container_source_collection_get_type (void) G_GNUC_CONST;
GType tag_source_collection_get_type (void) G_GNUC_CONST;
GeeList* tag_source_collection_fetch_for_source (TagSourceCollection* self, MediaSource* source);
void tag_attach (Tag* self, MediaSource* source);
void spin_event_loop (void);
static gboolean library_photo_real_is_trashed (MediaSource* base);
static void library_photo_real_trash (MediaSource* base);
static void library_photo_real_untrash (MediaSource* base);
static gboolean library_photo_real_is_offline (Monitorable* base);
static void library_photo_real_mark_offline (Monitorable* base);
static void library_photo_real_mark_online (Monitorable* base);
static gboolean library_photo_real_is_flagged (Flaggable* base);
static void library_photo_real_mark_flagged (Flaggable* base);
static void library_photo_real_mark_unflagged (Flaggable* base);
static gboolean library_photo_real_internal_delete_backing (DataSource* base, GError** error);
gboolean media_source_delete_original_file (MediaSource* self);
static void library_photo_real_destroy (DataSource* base);
void thumbnail_cache_remove (ThumbnailSource* source);
void data_source_destroy (DataSource* self);
gboolean library_photo_has_nontrash_duplicate (GFile* file, const gchar* thumbnail_md5, const gchar* full_md5, PhotoFileFormat file_format);
void library_photo_get_nontrash_duplicate (GFile* file, const gchar* thumbnail_md5, const gchar* full_md5, PhotoFileFormat file_format, PhotoID* result);
static gboolean library_photo_real_has_user_generated_metadata (Photo* base);
Rating media_source_get_rating (MediaSource* self);
gchar* data_object_get_name (DataObject* self);
static void library_photo_real_set_user_metadata_for_export (Photo* base, PhotoMetadata* metadata);
void photo_metadata_set_keywords (PhotoMetadata* self, GeeCollection* keywords, PhotoMetadataSetOption option);
void photo_metadata_set_rating (PhotoMetadata* self, Rating rating);
static void library_photo_real_apply_user_metadata_for_reimport (Photo* base, PhotoMetadata* metadata);
gchar* hierarchical_tag_utilities_make_flat_tag_safe (const gchar* in_tag);
gchar* hierarchical_tag_utilities_flat_to_hierarchical (const gchar* name);
gboolean tag_source_collection_exists (TagSourceCollection* self, const gchar* name, gboolean treat_htags_as_root);
static void library_photo_finalize (GObject* obj);
#define LIBRARY_PHOTO_SOURCE_HOLDING_TANK_GET_PRIVATE(o) (G_TYPE_INSTANCE_GET_PRIVATE ((o), TYPE_LIBRARY_PHOTO_SOURCE_HOLDING_TANK, LibraryPhotoSourceHoldingTankPrivate))
enum {
LIBRARY_PHOTO_SOURCE_HOLDING_TANK_DUMMY_PROPERTY
};
MediaSourceHoldingTank* media_source_holding_tank_new (MediaSourceCollection* sources, SourceHoldingTankCheckToKeep check_to_keep, void* check_to_keep_target, GetSourceDatabaseKey get_key, void* get_key_target);
MediaSourceHoldingTank* media_source_holding_tank_construct (GType object_type, MediaSourceCollection* sources, SourceHoldingTankCheckToKeep check_to_keep, void* check_to_keep_target, GetSourceDatabaseKey get_key, void* get_key_target);
static void library_photo_source_holding_tank_real_notify_contents_altered (SourceHoldingTank* base, GeeCollection* added, GeeCollection* removed);
static void library_photo_source_holding_tank_on_editable_replaced (LibraryPhotoSourceHoldingTank* self, Photo* _photo, GFile* old_file, GFile* new_file);
static void _library_photo_source_holding_tank_on_editable_replaced_photo_editable_replaced (Photo* _sender, GFile* old_file, GFile* new_file, gpointer self);
static void library_photo_source_holding_tank_on_raw_development_modified (LibraryPhotoSourceHoldingTank* self, Photo* _photo);
static void _library_photo_source_holding_tank_on_raw_development_modified_photo_raw_development_modified (Photo* _sender, gpointer self);
void source_holding_tank_notify_contents_altered (SourceHoldingTank* self, GeeCollection* added, GeeCollection* removed);
static void library_photo_source_holding_tank_finalize (SourceHoldingTank* obj);
static void _vala_array_destroy (gpointer array, gint array_length, GDestroyNotify destroy_func);
static void _vala_array_free (gpointer array, gint array_length, GDestroyNotify destroy_func);
static const gchar* PHOTO_IMAGE_EXTENSIONS[69] = {"jpg", "jpeg", "jpe", "tiff", "tif", "png", "gif", "bmp", "ppm", "pgm", "pbm", "pnm", "thm", "tga", "ilbm", "pcx", "ecw", "img", "sid", "cd5", "fits", "pgf", "cgm", "svg", "odg", "eps", "pdf", "swf", "wmf", "emf", "xps", "pns", "jps", "mpo", "3fr", "arw", "srf", "sr2", "bay", "crw", "cr2", "cap", "iiq", "eip", "dcs", "dcr", "drf", "k25", "kdc", "dng", "erf", "fff", "mef", "mos", "mrw", "nef", "nrw", "orf", "ptx", "pef", "pxn", "r3d", "raf", "raw", "rw2", "rwl", "rwz", "x3f", "srw"};
GType backing_fetch_mode_get_type (void) {
static volatile gsize backing_fetch_mode_type_id__volatile = 0;
if (g_once_init_enter (&backing_fetch_mode_type_id__volatile)) {
static const GEnumValue values[] = {{BACKING_FETCH_MODE_SOURCE, "BACKING_FETCH_MODE_SOURCE", "source"}, {BACKING_FETCH_MODE_BASELINE, "BACKING_FETCH_MODE_BASELINE", "baseline"}, {BACKING_FETCH_MODE_MASTER, "BACKING_FETCH_MODE_MASTER", "master"}, {BACKING_FETCH_MODE_UNMODIFIED, "BACKING_FETCH_MODE_UNMODIFIED", "unmodified"}, {0, NULL, NULL}};
GType backing_fetch_mode_type_id;
backing_fetch_mode_type_id = g_enum_register_static ("BackingFetchMode", values);
g_once_init_leave (&backing_fetch_mode_type_id__volatile, backing_fetch_mode_type_id);
}
return backing_fetch_mode_type_id__volatile;
}
static gpointer _g_object_ref0 (gpointer self) {
#line 41 "/home/jens/Source/shotwell/src/Photo.vala"
return self ? g_object_ref (self) : NULL;
#line 2879 "Photo.c"
}
static gpointer _thumbnails_ref0 (gpointer self) {
#line 48 "/home/jens/Source/shotwell/src/Photo.vala"
return self ? thumbnails_ref (self) : NULL;
#line 2886 "Photo.c"
}
PhotoImportParams* photo_import_params_construct (GType object_type, GFile* file, GFile* final_associated_file, ImportID* import_id, PhotoFileSnifferOptions sniffer_options, const gchar* exif_md5, const gchar* thumbnail_md5, const gchar* full_md5, Thumbnails* thumbnails) {
PhotoImportParams* self = NULL;
GFile* _tmp0_ = NULL;
GFile* _tmp1_ = NULL;
GFile* _tmp2_ = NULL;
GFile* _tmp3_ = NULL;
ImportID _tmp4_ = {0};
PhotoFileSnifferOptions _tmp5_ = 0;
const gchar* _tmp6_ = NULL;
gchar* _tmp7_ = NULL;
const gchar* _tmp8_ = NULL;
gchar* _tmp9_ = NULL;
const gchar* _tmp10_ = NULL;
gchar* _tmp11_ = NULL;
Thumbnails* _tmp12_ = NULL;
Thumbnails* _tmp13_ = NULL;
#line 38 "/home/jens/Source/shotwell/src/Photo.vala"
g_return_val_if_fail (G_IS_FILE (file), NULL);
#line 38 "/home/jens/Source/shotwell/src/Photo.vala"
g_return_val_if_fail ((final_associated_file == NULL) || G_IS_FILE (final_associated_file), NULL);
#line 38 "/home/jens/Source/shotwell/src/Photo.vala"
g_return_val_if_fail (import_id != NULL, NULL);
#line 38 "/home/jens/Source/shotwell/src/Photo.vala"
g_return_val_if_fail ((thumbnails == NULL) || IS_THUMBNAILS (thumbnails), NULL);
#line 38 "/home/jens/Source/shotwell/src/Photo.vala"
self = (PhotoImportParams*) g_type_create_instance (object_type);
#line 41 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp0_ = file;
#line 41 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp1_ = _g_object_ref0 (_tmp0_);
#line 41 "/home/jens/Source/shotwell/src/Photo.vala"
_g_object_unref0 (self->file);
#line 41 "/home/jens/Source/shotwell/src/Photo.vala"
self->file = _tmp1_;
#line 42 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp2_ = final_associated_file;
#line 42 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp3_ = _g_object_ref0 (_tmp2_);
#line 42 "/home/jens/Source/shotwell/src/Photo.vala"
_g_object_unref0 (self->final_associated_file);
#line 42 "/home/jens/Source/shotwell/src/Photo.vala"
self->final_associated_file = _tmp3_;
#line 43 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp4_ = *import_id;
#line 43 "/home/jens/Source/shotwell/src/Photo.vala"
self->import_id = _tmp4_;
#line 44 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp5_ = sniffer_options;
#line 44 "/home/jens/Source/shotwell/src/Photo.vala"
self->sniffer_options = _tmp5_;
#line 45 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp6_ = exif_md5;
#line 45 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp7_ = g_strdup (_tmp6_);
#line 45 "/home/jens/Source/shotwell/src/Photo.vala"
_g_free0 (self->exif_md5);
#line 45 "/home/jens/Source/shotwell/src/Photo.vala"
self->exif_md5 = _tmp7_;
#line 46 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp8_ = thumbnail_md5;
#line 46 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp9_ = g_strdup (_tmp8_);
#line 46 "/home/jens/Source/shotwell/src/Photo.vala"
_g_free0 (self->thumbnail_md5);
#line 46 "/home/jens/Source/shotwell/src/Photo.vala"
self->thumbnail_md5 = _tmp9_;
#line 47 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp10_ = full_md5;
#line 47 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp11_ = g_strdup (_tmp10_);
#line 47 "/home/jens/Source/shotwell/src/Photo.vala"
_g_free0 (self->full_md5);
#line 47 "/home/jens/Source/shotwell/src/Photo.vala"
self->full_md5 = _tmp11_;
#line 48 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp12_ = thumbnails;
#line 48 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp13_ = _thumbnails_ref0 (_tmp12_);
#line 48 "/home/jens/Source/shotwell/src/Photo.vala"
_thumbnails_unref0 (self->thumbnails);
#line 48 "/home/jens/Source/shotwell/src/Photo.vala"
self->thumbnails = _tmp13_;
#line 38 "/home/jens/Source/shotwell/src/Photo.vala"
return self;
#line 2974 "Photo.c"
}
PhotoImportParams* photo_import_params_new (GFile* file, GFile* final_associated_file, ImportID* import_id, PhotoFileSnifferOptions sniffer_options, const gchar* exif_md5, const gchar* thumbnail_md5, const gchar* full_md5, Thumbnails* thumbnails) {
#line 38 "/home/jens/Source/shotwell/src/Photo.vala"
return photo_import_params_construct (TYPE_PHOTO_IMPORT_PARAMS, file, final_associated_file, import_id, sniffer_options, exif_md5, thumbnail_md5, full_md5, thumbnails);
#line 2981 "Photo.c"
}
PhotoImportParams* photo_import_params_construct_create_placeholder (GType object_type, GFile* file, ImportID* import_id) {
PhotoImportParams* self = NULL;
GFile* _tmp0_ = NULL;
GFile* _tmp1_ = NULL;
ImportID _tmp2_ = {0};
#line 52 "/home/jens/Source/shotwell/src/Photo.vala"
g_return_val_if_fail (G_IS_FILE (file), NULL);
#line 52 "/home/jens/Source/shotwell/src/Photo.vala"
g_return_val_if_fail (import_id != NULL, NULL);
#line 52 "/home/jens/Source/shotwell/src/Photo.vala"
self = (PhotoImportParams*) g_type_create_instance (object_type);
#line 53 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp0_ = file;
#line 53 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp1_ = _g_object_ref0 (_tmp0_);
#line 53 "/home/jens/Source/shotwell/src/Photo.vala"
_g_object_unref0 (self->file);
#line 53 "/home/jens/Source/shotwell/src/Photo.vala"
self->file = _tmp1_;
#line 54 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp2_ = *import_id;
#line 54 "/home/jens/Source/shotwell/src/Photo.vala"
self->import_id = _tmp2_;
#line 55 "/home/jens/Source/shotwell/src/Photo.vala"
self->sniffer_options = PHOTO_FILE_SNIFFER_OPTIONS_NO_MD5;
#line 56 "/home/jens/Source/shotwell/src/Photo.vala"
_g_free0 (self->exif_md5);
#line 56 "/home/jens/Source/shotwell/src/Photo.vala"
self->exif_md5 = NULL;
#line 57 "/home/jens/Source/shotwell/src/Photo.vala"
_g_free0 (self->thumbnail_md5);
#line 57 "/home/jens/Source/shotwell/src/Photo.vala"
self->thumbnail_md5 = NULL;
#line 58 "/home/jens/Source/shotwell/src/Photo.vala"
_g_free0 (self->full_md5);
#line 58 "/home/jens/Source/shotwell/src/Photo.vala"
self->full_md5 = NULL;
#line 59 "/home/jens/Source/shotwell/src/Photo.vala"
_thumbnails_unref0 (self->thumbnails);
#line 59 "/home/jens/Source/shotwell/src/Photo.vala"
self->thumbnails = NULL;
#line 52 "/home/jens/Source/shotwell/src/Photo.vala"
return self;
#line 3028 "Photo.c"
}
PhotoImportParams* photo_import_params_new_create_placeholder (GFile* file, ImportID* import_id) {
#line 52 "/home/jens/Source/shotwell/src/Photo.vala"
return photo_import_params_construct_create_placeholder (TYPE_PHOTO_IMPORT_PARAMS, file, import_id);
#line 3035 "Photo.c"
}
static void value_photo_import_params_init (GValue* value) {
#line 21 "/home/jens/Source/shotwell/src/Photo.vala"
value->data[0].v_pointer = NULL;
#line 3042 "Photo.c"
}
static void value_photo_import_params_free_value (GValue* value) {
#line 21 "/home/jens/Source/shotwell/src/Photo.vala"
if (value->data[0].v_pointer) {
#line 21 "/home/jens/Source/shotwell/src/Photo.vala"
photo_import_params_unref (value->data[0].v_pointer);
#line 3051 "Photo.c"
}
}
static void value_photo_import_params_copy_value (const GValue* src_value, GValue* dest_value) {
#line 21 "/home/jens/Source/shotwell/src/Photo.vala"
if (src_value->data[0].v_pointer) {
#line 21 "/home/jens/Source/shotwell/src/Photo.vala"
dest_value->data[0].v_pointer = photo_import_params_ref (src_value->data[0].v_pointer);
#line 3061 "Photo.c"
} else {
#line 21 "/home/jens/Source/shotwell/src/Photo.vala"
dest_value->data[0].v_pointer = NULL;
#line 3065 "Photo.c"
}
}
static gpointer value_photo_import_params_peek_pointer (const GValue* value) {
#line 21 "/home/jens/Source/shotwell/src/Photo.vala"
return value->data[0].v_pointer;
#line 3073 "Photo.c"
}
static gchar* value_photo_import_params_collect_value (GValue* value, guint n_collect_values, GTypeCValue* collect_values, guint collect_flags) {
#line 21 "/home/jens/Source/shotwell/src/Photo.vala"
if (collect_values[0].v_pointer) {
#line 3080 "Photo.c"
PhotoImportParams* object;
object = collect_values[0].v_pointer;
#line 21 "/home/jens/Source/shotwell/src/Photo.vala"
if (object->parent_instance.g_class == NULL) {
#line 21 "/home/jens/Source/shotwell/src/Photo.vala"
return g_strconcat ("invalid unclassed object pointer for value type `", G_VALUE_TYPE_NAME (value), "'", NULL);
#line 3087 "Photo.c"
} else if (!g_value_type_compatible (G_TYPE_FROM_INSTANCE (object), G_VALUE_TYPE (value))) {
#line 21 "/home/jens/Source/shotwell/src/Photo.vala"
return g_strconcat ("invalid object type `", g_type_name (G_TYPE_FROM_INSTANCE (object)), "' for value type `", G_VALUE_TYPE_NAME (value), "'", NULL);
#line 3091 "Photo.c"
}
#line 21 "/home/jens/Source/shotwell/src/Photo.vala"
value->data[0].v_pointer = photo_import_params_ref (object);
#line 3095 "Photo.c"
} else {
#line 21 "/home/jens/Source/shotwell/src/Photo.vala"
value->data[0].v_pointer = NULL;
#line 3099 "Photo.c"
}
#line 21 "/home/jens/Source/shotwell/src/Photo.vala"
return NULL;
#line 3103 "Photo.c"
}
static gchar* value_photo_import_params_lcopy_value (const GValue* value, guint n_collect_values, GTypeCValue* collect_values, guint collect_flags) {
PhotoImportParams** object_p;
object_p = collect_values[0].v_pointer;
#line 21 "/home/jens/Source/shotwell/src/Photo.vala"
if (!object_p) {
#line 21 "/home/jens/Source/shotwell/src/Photo.vala"
return g_strdup_printf ("value location for `%s' passed as NULL", G_VALUE_TYPE_NAME (value));
#line 3114 "Photo.c"
}
#line 21 "/home/jens/Source/shotwell/src/Photo.vala"
if (!value->data[0].v_pointer) {
#line 21 "/home/jens/Source/shotwell/src/Photo.vala"
*object_p = NULL;
#line 3120 "Photo.c"
} else if (collect_flags & G_VALUE_NOCOPY_CONTENTS) {
#line 21 "/home/jens/Source/shotwell/src/Photo.vala"
*object_p = value->data[0].v_pointer;
#line 3124 "Photo.c"
} else {
#line 21 "/home/jens/Source/shotwell/src/Photo.vala"
*object_p = photo_import_params_ref (value->data[0].v_pointer);
#line 3128 "Photo.c"
}
#line 21 "/home/jens/Source/shotwell/src/Photo.vala"
return NULL;
#line 3132 "Photo.c"
}
GParamSpec* param_spec_photo_import_params (const gchar* name, const gchar* nick, const gchar* blurb, GType object_type, GParamFlags flags) {
ParamSpecPhotoImportParams* spec;
#line 21 "/home/jens/Source/shotwell/src/Photo.vala"
g_return_val_if_fail (g_type_is_a (object_type, TYPE_PHOTO_IMPORT_PARAMS), NULL);
#line 21 "/home/jens/Source/shotwell/src/Photo.vala"
spec = g_param_spec_internal (G_TYPE_PARAM_OBJECT, name, nick, blurb, flags);
#line 21 "/home/jens/Source/shotwell/src/Photo.vala"
G_PARAM_SPEC (spec)->value_type = object_type;
#line 21 "/home/jens/Source/shotwell/src/Photo.vala"
return G_PARAM_SPEC (spec);
#line 3146 "Photo.c"
}
gpointer value_get_photo_import_params (const GValue* value) {
#line 21 "/home/jens/Source/shotwell/src/Photo.vala"
g_return_val_if_fail (G_TYPE_CHECK_VALUE_TYPE (value, TYPE_PHOTO_IMPORT_PARAMS), NULL);
#line 21 "/home/jens/Source/shotwell/src/Photo.vala"
return value->data[0].v_pointer;
#line 3155 "Photo.c"
}
void value_set_photo_import_params (GValue* value, gpointer v_object) {
PhotoImportParams* old;
#line 21 "/home/jens/Source/shotwell/src/Photo.vala"
g_return_if_fail (G_TYPE_CHECK_VALUE_TYPE (value, TYPE_PHOTO_IMPORT_PARAMS));
#line 21 "/home/jens/Source/shotwell/src/Photo.vala"
old = value->data[0].v_pointer;
#line 21 "/home/jens/Source/shotwell/src/Photo.vala"
if (v_object) {
#line 21 "/home/jens/Source/shotwell/src/Photo.vala"
g_return_if_fail (G_TYPE_CHECK_INSTANCE_TYPE (v_object, TYPE_PHOTO_IMPORT_PARAMS));
#line 21 "/home/jens/Source/shotwell/src/Photo.vala"
g_return_if_fail (g_value_type_compatible (G_TYPE_FROM_INSTANCE (v_object), G_VALUE_TYPE (value)));
#line 21 "/home/jens/Source/shotwell/src/Photo.vala"
value->data[0].v_pointer = v_object;
#line 21 "/home/jens/Source/shotwell/src/Photo.vala"
photo_import_params_ref (value->data[0].v_pointer);
#line 3175 "Photo.c"
} else {
#line 21 "/home/jens/Source/shotwell/src/Photo.vala"
value->data[0].v_pointer = NULL;
#line 3179 "Photo.c"
}
#line 21 "/home/jens/Source/shotwell/src/Photo.vala"
if (old) {
#line 21 "/home/jens/Source/shotwell/src/Photo.vala"
photo_import_params_unref (old);
#line 3185 "Photo.c"
}
}
void value_take_photo_import_params (GValue* value, gpointer v_object) {
PhotoImportParams* old;
#line 21 "/home/jens/Source/shotwell/src/Photo.vala"
g_return_if_fail (G_TYPE_CHECK_VALUE_TYPE (value, TYPE_PHOTO_IMPORT_PARAMS));
#line 21 "/home/jens/Source/shotwell/src/Photo.vala"
old = value->data[0].v_pointer;
#line 21 "/home/jens/Source/shotwell/src/Photo.vala"
if (v_object) {
#line 21 "/home/jens/Source/shotwell/src/Photo.vala"
g_return_if_fail (G_TYPE_CHECK_INSTANCE_TYPE (v_object, TYPE_PHOTO_IMPORT_PARAMS));
#line 21 "/home/jens/Source/shotwell/src/Photo.vala"
g_return_if_fail (g_value_type_compatible (G_TYPE_FROM_INSTANCE (v_object), G_VALUE_TYPE (value)));
#line 21 "/home/jens/Source/shotwell/src/Photo.vala"
value->data[0].v_pointer = v_object;
#line 3204 "Photo.c"
} else {
#line 21 "/home/jens/Source/shotwell/src/Photo.vala"
value->data[0].v_pointer = NULL;
#line 3208 "Photo.c"
}
#line 21 "/home/jens/Source/shotwell/src/Photo.vala"
if (old) {
#line 21 "/home/jens/Source/shotwell/src/Photo.vala"
photo_import_params_unref (old);
#line 3214 "Photo.c"
}
}
static void photo_import_params_class_init (PhotoImportParamsClass * klass) {
#line 21 "/home/jens/Source/shotwell/src/Photo.vala"
photo_import_params_parent_class = g_type_class_peek_parent (klass);
#line 21 "/home/jens/Source/shotwell/src/Photo.vala"
((PhotoImportParamsClass *) klass)->finalize = photo_import_params_finalize;
#line 3224 "Photo.c"
}
static void photo_import_params_instance_init (PhotoImportParams * self) {
PhotoRow* _tmp0_ = NULL;
#line 24 "/home/jens/Source/shotwell/src/Photo.vala"
self->final_associated_file = NULL;
#line 35 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp0_ = photo_row_new ();
#line 35 "/home/jens/Source/shotwell/src/Photo.vala"
self->row = _tmp0_;
#line 36 "/home/jens/Source/shotwell/src/Photo.vala"
self->keywords = NULL;
#line 21 "/home/jens/Source/shotwell/src/Photo.vala"
self->ref_count = 1;
#line 3240 "Photo.c"
}
static void photo_import_params_finalize (PhotoImportParams* obj) {
PhotoImportParams * self;
#line 21 "/home/jens/Source/shotwell/src/Photo.vala"
self = G_TYPE_CHECK_INSTANCE_CAST (obj, TYPE_PHOTO_IMPORT_PARAMS, PhotoImportParams);
#line 21 "/home/jens/Source/shotwell/src/Photo.vala"
g_signal_handlers_destroy (self);
#line 23 "/home/jens/Source/shotwell/src/Photo.vala"
_g_object_unref0 (self->file);
#line 24 "/home/jens/Source/shotwell/src/Photo.vala"
_g_object_unref0 (self->final_associated_file);
#line 27 "/home/jens/Source/shotwell/src/Photo.vala"
_g_free0 (self->exif_md5);
#line 28 "/home/jens/Source/shotwell/src/Photo.vala"
_g_free0 (self->thumbnail_md5);
#line 29 "/home/jens/Source/shotwell/src/Photo.vala"
_g_free0 (self->full_md5);
#line 32 "/home/jens/Source/shotwell/src/Photo.vala"
_thumbnails_unref0 (self->thumbnails);
#line 35 "/home/jens/Source/shotwell/src/Photo.vala"
_photo_row_unref0 (self->row);
#line 36 "/home/jens/Source/shotwell/src/Photo.vala"
_g_object_unref0 (self->keywords);
#line 3266 "Photo.c"
}
GType photo_import_params_get_type (void) {
static volatile gsize photo_import_params_type_id__volatile = 0;
if (g_once_init_enter (&photo_import_params_type_id__volatile)) {
static const GTypeValueTable g_define_type_value_table = { value_photo_import_params_init, value_photo_import_params_free_value, value_photo_import_params_copy_value, value_photo_import_params_peek_pointer, "p", value_photo_import_params_collect_value, "p", value_photo_import_params_lcopy_value };
static const GTypeInfo g_define_type_info = { sizeof (PhotoImportParamsClass), (GBaseInitFunc) NULL, (GBaseFinalizeFunc) NULL, (GClassInitFunc) photo_import_params_class_init, (GClassFinalizeFunc) NULL, NULL, sizeof (PhotoImportParams), 0, (GInstanceInitFunc) photo_import_params_instance_init, &g_define_type_value_table };
static const GTypeFundamentalInfo g_define_type_fundamental_info = { (G_TYPE_FLAG_CLASSED | G_TYPE_FLAG_INSTANTIATABLE | G_TYPE_FLAG_DERIVABLE | G_TYPE_FLAG_DEEP_DERIVABLE) };
GType photo_import_params_type_id;
photo_import_params_type_id = g_type_register_fundamental (g_type_fundamental_next (), "PhotoImportParams", &g_define_type_info, &g_define_type_fundamental_info, 0);
g_once_init_leave (&photo_import_params_type_id__volatile, photo_import_params_type_id);
}
return photo_import_params_type_id__volatile;
}
gpointer photo_import_params_ref (gpointer instance) {
PhotoImportParams* self;
self = instance;
#line 21 "/home/jens/Source/shotwell/src/Photo.vala"
g_atomic_int_inc (&self->ref_count);
#line 21 "/home/jens/Source/shotwell/src/Photo.vala"
return instance;
#line 3291 "Photo.c"
}
void photo_import_params_unref (gpointer instance) {
PhotoImportParams* self;
self = instance;
#line 21 "/home/jens/Source/shotwell/src/Photo.vala"
if (g_atomic_int_dec_and_test (&self->ref_count)) {
#line 21 "/home/jens/Source/shotwell/src/Photo.vala"
PHOTO_IMPORT_PARAMS_GET_CLASS (self)->finalize (self);
#line 21 "/home/jens/Source/shotwell/src/Photo.vala"
g_type_free_instance ((GTypeInstance *) self);
#line 3304 "Photo.c"
}
}
PhotoTransformationState* photo_transformation_state_construct (GType object_type) {
PhotoTransformationState * self = NULL;
#line 72 "/home/jens/Source/shotwell/src/Photo.vala"
self = (PhotoTransformationState*) g_object_new (object_type, NULL);
#line 72 "/home/jens/Source/shotwell/src/Photo.vala"
return self;
#line 3315 "Photo.c"
}
gboolean photo_transformation_state_is_broken (PhotoTransformationState* self) {
gboolean result = FALSE;
gboolean _tmp0_ = FALSE;
#line 75 "/home/jens/Source/shotwell/src/Photo.vala"
g_return_val_if_fail (IS_PHOTO_TRANSFORMATION_STATE (self), FALSE);
#line 76 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp0_ = self->priv->is_broke;
#line 76 "/home/jens/Source/shotwell/src/Photo.vala"
result = _tmp0_;
#line 76 "/home/jens/Source/shotwell/src/Photo.vala"
return result;
#line 3330 "Photo.c"
}
static void photo_transformation_state_real_broken (PhotoTransformationState* self) {
#line 69 "/home/jens/Source/shotwell/src/Photo.vala"
self->priv->is_broke = TRUE;
#line 3337 "Photo.c"
}
static void photo_transformation_state_class_init (PhotoTransformationStateClass * klass) {
#line 63 "/home/jens/Source/shotwell/src/Photo.vala"
photo_transformation_state_parent_class = g_type_class_peek_parent (klass);
#line 63 "/home/jens/Source/shotwell/src/Photo.vala"
g_type_class_add_private (klass, sizeof (PhotoTransformationStatePrivate));
#line 63 "/home/jens/Source/shotwell/src/Photo.vala"
((PhotoTransformationStateClass *) klass)->broken = photo_transformation_state_real_broken;
#line 63 "/home/jens/Source/shotwell/src/Photo.vala"
G_OBJECT_CLASS (klass)->finalize = photo_transformation_state_finalize;
#line 63 "/home/jens/Source/shotwell/src/Photo.vala"
g_signal_new ("broken", TYPE_PHOTO_TRANSFORMATION_STATE, G_SIGNAL_RUN_LAST, G_STRUCT_OFFSET (PhotoTransformationStateClass, broken), NULL, NULL, g_cclosure_marshal_VOID__VOID, G_TYPE_NONE, 0);
#line 3352 "Photo.c"
}
static void photo_transformation_state_instance_init (PhotoTransformationState * self) {
#line 63 "/home/jens/Source/shotwell/src/Photo.vala"
self->priv = PHOTO_TRANSFORMATION_STATE_GET_PRIVATE (self);
#line 64 "/home/jens/Source/shotwell/src/Photo.vala"
self->priv->is_broke = FALSE;
#line 3361 "Photo.c"
}
static void photo_transformation_state_finalize (GObject* obj) {
PhotoTransformationState * self;
#line 63 "/home/jens/Source/shotwell/src/Photo.vala"
self = G_TYPE_CHECK_INSTANCE_CAST (obj, TYPE_PHOTO_TRANSFORMATION_STATE, PhotoTransformationState);
#line 63 "/home/jens/Source/shotwell/src/Photo.vala"
G_OBJECT_CLASS (photo_transformation_state_parent_class)->finalize (obj);
#line 3371 "Photo.c"
}
GType photo_transformation_state_get_type (void) {
static volatile gsize photo_transformation_state_type_id__volatile = 0;
if (g_once_init_enter (&photo_transformation_state_type_id__volatile)) {
static const GTypeInfo g_define_type_info = { sizeof (PhotoTransformationStateClass), (GBaseInitFunc) NULL, (GBaseFinalizeFunc) NULL, (GClassInitFunc) photo_transformation_state_class_init, (GClassFinalizeFunc) NULL, NULL, sizeof (PhotoTransformationState), 0, (GInstanceInitFunc) photo_transformation_state_instance_init, NULL };
GType photo_transformation_state_type_id;
photo_transformation_state_type_id = g_type_register_static (G_TYPE_OBJECT, "PhotoTransformationState", &g_define_type_info, G_TYPE_FLAG_ABSTRACT);
g_once_init_leave (&photo_transformation_state_type_id__volatile, photo_transformation_state_type_id);
}
return photo_transformation_state_type_id__volatile;
}
gboolean rating_can_increase (Rating self) {
gboolean result = FALSE;
#line 90 "/home/jens/Source/shotwell/src/Photo.vala"
result = self < RATING_FIVE;
#line 90 "/home/jens/Source/shotwell/src/Photo.vala"
return result;
#line 3393 "Photo.c"
}
gboolean rating_can_decrease (Rating self) {
gboolean result = FALSE;
#line 94 "/home/jens/Source/shotwell/src/Photo.vala"
result = self > RATING_REJECTED;
#line 94 "/home/jens/Source/shotwell/src/Photo.vala"
return result;
#line 3403 "Photo.c"
}
gboolean rating_is_valid (Rating self) {
gboolean result = FALSE;
gboolean _tmp0_ = FALSE;
#line 98 "/home/jens/Source/shotwell/src/Photo.vala"
if (self >= RATING_REJECTED) {
#line 98 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp0_ = self <= RATING_FIVE;
#line 3414 "Photo.c"
} else {
#line 98 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp0_ = FALSE;
#line 3418 "Photo.c"
}
#line 98 "/home/jens/Source/shotwell/src/Photo.vala"
result = _tmp0_;
#line 98 "/home/jens/Source/shotwell/src/Photo.vala"
return result;
#line 3424 "Photo.c"
}
Rating rating_increase (Rating self) {
Rating result = 0;
Rating _tmp0_ = 0;
gboolean _tmp1_ = FALSE;
#line 102 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp1_ = rating_can_increase (self);
#line 102 "/home/jens/Source/shotwell/src/Photo.vala"
if (_tmp1_) {
#line 102 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp0_ = self + 1;
#line 3438 "Photo.c"
} else {
#line 102 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp0_ = self;
#line 3442 "Photo.c"
}
#line 102 "/home/jens/Source/shotwell/src/Photo.vala"
result = _tmp0_;
#line 102 "/home/jens/Source/shotwell/src/Photo.vala"
return result;
#line 3448 "Photo.c"
}
Rating rating_decrease (Rating self) {
Rating result = 0;
Rating _tmp0_ = 0;
gboolean _tmp1_ = FALSE;
#line 106 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp1_ = rating_can_decrease (self);
#line 106 "/home/jens/Source/shotwell/src/Photo.vala"
if (_tmp1_) {
#line 106 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp0_ = self - 1;
#line 3462 "Photo.c"
} else {
#line 106 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp0_ = self;
#line 3466 "Photo.c"
}
#line 106 "/home/jens/Source/shotwell/src/Photo.vala"
result = _tmp0_;
#line 106 "/home/jens/Source/shotwell/src/Photo.vala"
return result;
#line 3472 "Photo.c"
}
gint rating_serialize (Rating self) {
gint result = 0;
#line 110 "/home/jens/Source/shotwell/src/Photo.vala"
switch (self) {
#line 110 "/home/jens/Source/shotwell/src/Photo.vala"
case RATING_REJECTED:
#line 3482 "Photo.c"
{
#line 112 "/home/jens/Source/shotwell/src/Photo.vala"
result = -1;
#line 112 "/home/jens/Source/shotwell/src/Photo.vala"
return result;
#line 3488 "Photo.c"
}
#line 110 "/home/jens/Source/shotwell/src/Photo.vala"
case RATING_UNRATED:
#line 3492 "Photo.c"
{
#line 114 "/home/jens/Source/shotwell/src/Photo.vala"
result = 0;
#line 114 "/home/jens/Source/shotwell/src/Photo.vala"
return result;
#line 3498 "Photo.c"
}
#line 110 "/home/jens/Source/shotwell/src/Photo.vala"
case RATING_ONE:
#line 3502 "Photo.c"
{
#line 116 "/home/jens/Source/shotwell/src/Photo.vala"
result = 1;
#line 116 "/home/jens/Source/shotwell/src/Photo.vala"
return result;
#line 3508 "Photo.c"
}
#line 110 "/home/jens/Source/shotwell/src/Photo.vala"
case RATING_TWO:
#line 3512 "Photo.c"
{
#line 118 "/home/jens/Source/shotwell/src/Photo.vala"
result = 2;
#line 118 "/home/jens/Source/shotwell/src/Photo.vala"
return result;
#line 3518 "Photo.c"
}
#line 110 "/home/jens/Source/shotwell/src/Photo.vala"
case RATING_THREE:
#line 3522 "Photo.c"
{
#line 120 "/home/jens/Source/shotwell/src/Photo.vala"
result = 3;
#line 120 "/home/jens/Source/shotwell/src/Photo.vala"
return result;
#line 3528 "Photo.c"
}
#line 110 "/home/jens/Source/shotwell/src/Photo.vala"
case RATING_FOUR:
#line 3532 "Photo.c"
{
#line 122 "/home/jens/Source/shotwell/src/Photo.vala"
result = 4;
#line 122 "/home/jens/Source/shotwell/src/Photo.vala"
return result;
#line 3538 "Photo.c"
}
#line 110 "/home/jens/Source/shotwell/src/Photo.vala"
case RATING_FIVE:
#line 3542 "Photo.c"
{
#line 124 "/home/jens/Source/shotwell/src/Photo.vala"
result = 5;
#line 124 "/home/jens/Source/shotwell/src/Photo.vala"
return result;
#line 3548 "Photo.c"
}
default:
{
#line 126 "/home/jens/Source/shotwell/src/Photo.vala"
result = 0;
#line 126 "/home/jens/Source/shotwell/src/Photo.vala"
return result;
#line 3556 "Photo.c"
}
}
}
Rating rating_unserialize (gint value) {
Rating result = 0;
gint _tmp0_ = 0;
gint _tmp2_ = 0;
#line 131 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp0_ = value;
#line 131 "/home/jens/Source/shotwell/src/Photo.vala"
if (_tmp0_ > ((gint) RATING_FIVE)) {
#line 132 "/home/jens/Source/shotwell/src/Photo.vala"
result = RATING_FIVE;
#line 132 "/home/jens/Source/shotwell/src/Photo.vala"
return result;
#line 3574 "Photo.c"
} else {
gint _tmp1_ = 0;
#line 133 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp1_ = value;
#line 133 "/home/jens/Source/shotwell/src/Photo.vala"
if (_tmp1_ < ((gint) RATING_REJECTED)) {
#line 134 "/home/jens/Source/shotwell/src/Photo.vala"
result = RATING_REJECTED;
#line 134 "/home/jens/Source/shotwell/src/Photo.vala"
return result;
#line 3585 "Photo.c"
}
}
#line 136 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp2_ = value;
#line 136 "/home/jens/Source/shotwell/src/Photo.vala"
switch (_tmp2_) {
#line 136 "/home/jens/Source/shotwell/src/Photo.vala"
case -1:
#line 3594 "Photo.c"
{
#line 138 "/home/jens/Source/shotwell/src/Photo.vala"
result = RATING_REJECTED;
#line 138 "/home/jens/Source/shotwell/src/Photo.vala"
return result;
#line 3600 "Photo.c"
}
#line 136 "/home/jens/Source/shotwell/src/Photo.vala"
case 0:
#line 3604 "Photo.c"
{
#line 140 "/home/jens/Source/shotwell/src/Photo.vala"
result = RATING_UNRATED;
#line 140 "/home/jens/Source/shotwell/src/Photo.vala"
return result;
#line 3610 "Photo.c"
}
#line 136 "/home/jens/Source/shotwell/src/Photo.vala"
case 1:
#line 3614 "Photo.c"
{
#line 142 "/home/jens/Source/shotwell/src/Photo.vala"
result = RATING_ONE;
#line 142 "/home/jens/Source/shotwell/src/Photo.vala"
return result;
#line 3620 "Photo.c"
}
#line 136 "/home/jens/Source/shotwell/src/Photo.vala"
case 2:
#line 3624 "Photo.c"
{
#line 144 "/home/jens/Source/shotwell/src/Photo.vala"
result = RATING_TWO;
#line 144 "/home/jens/Source/shotwell/src/Photo.vala"
return result;
#line 3630 "Photo.c"
}
#line 136 "/home/jens/Source/shotwell/src/Photo.vala"
case 3:
#line 3634 "Photo.c"
{
#line 146 "/home/jens/Source/shotwell/src/Photo.vala"
result = RATING_THREE;
#line 146 "/home/jens/Source/shotwell/src/Photo.vala"
return result;
#line 3640 "Photo.c"
}
#line 136 "/home/jens/Source/shotwell/src/Photo.vala"
case 4:
#line 3644 "Photo.c"
{
#line 148 "/home/jens/Source/shotwell/src/Photo.vala"
result = RATING_FOUR;
#line 148 "/home/jens/Source/shotwell/src/Photo.vala"
return result;
#line 3650 "Photo.c"
}
#line 136 "/home/jens/Source/shotwell/src/Photo.vala"
case 5:
#line 3654 "Photo.c"
{
#line 150 "/home/jens/Source/shotwell/src/Photo.vala"
result = RATING_FIVE;
#line 150 "/home/jens/Source/shotwell/src/Photo.vala"
return result;
#line 3660 "Photo.c"
}
default:
{
#line 152 "/home/jens/Source/shotwell/src/Photo.vala"
result = RATING_UNRATED;
#line 152 "/home/jens/Source/shotwell/src/Photo.vala"
return result;
#line 3668 "Photo.c"
}
}
}
GType rating_get_type (void) {
static volatile gsize rating_type_id__volatile = 0;
if (g_once_init_enter (&rating_type_id__volatile)) {
static const GEnumValue values[] = {{RATING_REJECTED, "RATING_REJECTED", "rejected"}, {RATING_UNRATED, "RATING_UNRATED", "unrated"}, {RATING_ONE, "RATING_ONE", "one"}, {RATING_TWO, "RATING_TWO", "two"}, {RATING_THREE, "RATING_THREE", "three"}, {RATING_FOUR, "RATING_FOUR", "four"}, {RATING_FIVE, "RATING_FIVE", "five"}, {0, NULL, NULL}};
GType rating_type_id;
rating_type_id = g_enum_register_static ("Rating", values);
g_once_init_leave (&rating_type_id__volatile, rating_type_id);
}
return rating_type_id__volatile;
}
gboolean photo_exception_prohibits (PhotoException self, PhotoException exception) {
gboolean result = FALSE;
PhotoException _tmp0_ = 0;
#line 228 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp0_ = exception;
#line 228 "/home/jens/Source/shotwell/src/Photo.vala"
result = (self & _tmp0_) != 0;
#line 228 "/home/jens/Source/shotwell/src/Photo.vala"
return result;
#line 3695 "Photo.c"
}
gboolean photo_exception_allows (PhotoException self, PhotoException exception) {
gboolean result = FALSE;
PhotoException _tmp0_ = 0;
#line 232 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp0_ = exception;
#line 232 "/home/jens/Source/shotwell/src/Photo.vala"
result = (self & _tmp0_) == 0;
#line 232 "/home/jens/Source/shotwell/src/Photo.vala"
return result;
#line 3708 "Photo.c"
}
GType photo_exception_get_type (void) {
static volatile gsize photo_exception_type_id__volatile = 0;
if (g_once_init_enter (&photo_exception_type_id__volatile)) {
static const GEnumValue values[] = {{PHOTO_EXCEPTION_NONE, "PHOTO_EXCEPTION_NONE", "none"}, {PHOTO_EXCEPTION_ORIENTATION, "PHOTO_EXCEPTION_ORIENTATION", "orientation"}, {PHOTO_EXCEPTION_CROP, "PHOTO_EXCEPTION_CROP", "crop"}, {PHOTO_EXCEPTION_REDEYE, "PHOTO_EXCEPTION_REDEYE", "redeye"}, {PHOTO_EXCEPTION_ADJUST, "PHOTO_EXCEPTION_ADJUST", "adjust"}, {PHOTO_EXCEPTION_STRAIGHTEN, "PHOTO_EXCEPTION_STRAIGHTEN", "straighten"}, {PHOTO_EXCEPTION_ALL, "PHOTO_EXCEPTION_ALL", "all"}, {0, NULL, NULL}};
GType photo_exception_type_id;
photo_exception_type_id = g_enum_register_static ("PhotoException", values);
g_once_init_leave (&photo_exception_type_id__volatile, photo_exception_type_id);
}
return photo_exception_type_id__volatile;
}
static gpointer _photo_row_ref0 (gpointer self) {
#line 400 "/home/jens/Source/shotwell/src/Photo.vala"
return self ? photo_row_ref (self) : NULL;
#line 3727 "Photo.c"
}
static gpointer _backing_photo_row_ref0 (gpointer self) {
#line 421 "/home/jens/Source/shotwell/src/Photo.vala"
return self ? backing_photo_row_ref (self) : NULL;
#line 3734 "Photo.c"
}
Photo* photo_construct (GType object_type, PhotoRow* row) {
Photo * self = NULL;
PhotoRow* _tmp0_ = NULL;
PhotoRow* _tmp1_ = NULL;
PhotoRow* _tmp2_ = NULL;
PhotoRow* _tmp3_ = NULL;
const gchar* _tmp4_ = NULL;
gchar* _tmp5_ = NULL;
PhotoRow* _tmp6_ = NULL;
PhotoRow* _tmp7_ = NULL;
const gchar* _tmp8_ = NULL;
gchar* _tmp9_ = NULL;
PhotoBackingReaders* _tmp10_ = NULL;
PhotoRow* _tmp11_ = NULL;
BackingPhotoRow* _tmp12_ = NULL;
PhotoFileFormat _tmp13_ = 0;
PhotoRow* _tmp14_ = NULL;
BackingPhotoRow* _tmp15_ = NULL;
const gchar* _tmp16_ = NULL;
PhotoFileReader* _tmp17_ = NULL;
gchar* basename = NULL;
PhotoRow* _tmp18_ = NULL;
BackingPhotoRow* _tmp19_ = NULL;
const gchar* _tmp20_ = NULL;
gchar* _tmp21_ = NULL;
const gchar* _tmp22_ = NULL;
const gchar* _tmp25_ = NULL;
gboolean _tmp26_ = FALSE;
PhotoRow* _tmp31_ = NULL;
BackingPhotoID _tmp32_ = {0};
gint64 _tmp33_ = 0LL;
PhotoRow* _tmp49_ = NULL;
BackingPhotoRow* _tmp50_ = NULL;
PhotoFileFormat _tmp51_ = 0;
gboolean _tmp67_ = FALSE;
PhotoRow* _tmp68_ = NULL;
BackingPhotoRow* _tmp69_ = NULL;
PhotoFileFormat _tmp70_ = 0;
PhotoBackingReaders* _tmp85_ = NULL;
PhotoFileReader* _tmp86_ = NULL;
PhotoRow* _tmp106_ = NULL;
time_t _tmp107_ = 0;
GError * _inner_error_ = NULL;
#line 399 "/home/jens/Source/shotwell/src/Photo.vala"
g_return_val_if_fail (IS_PHOTO_ROW (row), NULL);
#line 399 "/home/jens/Source/shotwell/src/Photo.vala"
self = (Photo*) photo_source_construct (object_type, DATA_OBJECT_INVALID_OBJECT_ID);
#line 400 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp0_ = row;
#line 400 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp1_ = _photo_row_ref0 (_tmp0_);
#line 400 "/home/jens/Source/shotwell/src/Photo.vala"
_photo_row_unref0 (self->row);
#line 400 "/home/jens/Source/shotwell/src/Photo.vala"
self->row = _tmp1_;
#line 403 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp2_ = self->row;
#line 403 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp3_ = self->row;
#line 403 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp4_ = _tmp3_->title;
#line 403 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp5_ = media_source_prep_title (_tmp4_);
#line 403 "/home/jens/Source/shotwell/src/Photo.vala"
_g_free0 (_tmp2_->title);
#line 403 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp2_->title = _tmp5_;
#line 404 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp6_ = self->row;
#line 404 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp7_ = self->row;
#line 404 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp8_ = _tmp7_->comment;
#line 404 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp9_ = media_source_prep_comment (_tmp8_);
#line 404 "/home/jens/Source/shotwell/src/Photo.vala"
_g_free0 (_tmp6_->comment);
#line 404 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp6_->comment = _tmp9_;
#line 408 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp10_ = self->priv->readers;
#line 408 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp11_ = row;
#line 408 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp12_ = _tmp11_->master;
#line 408 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp13_ = _tmp12_->file_format;
#line 408 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp14_ = row;
#line 408 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp15_ = _tmp14_->master;
#line 408 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp16_ = _tmp15_->filepath;
#line 408 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp17_ = photo_file_format_create_reader (_tmp13_, _tmp16_);
#line 408 "/home/jens/Source/shotwell/src/Photo.vala"
_photo_file_adapter_unref0 (_tmp10_->master);
#line 408 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp10_->master = _tmp17_;
#line 411 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp18_ = row;
#line 411 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp19_ = _tmp18_->master;
#line 411 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp20_ = _tmp19_->filepath;
#line 411 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp21_ = string_sliced_at_last_char (_tmp20_, (gunichar) G_DIR_SEPARATOR, 0);
#line 411 "/home/jens/Source/shotwell/src/Photo.vala"
basename = _tmp21_;
#line 412 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp22_ = basename;
#line 412 "/home/jens/Source/shotwell/src/Photo.vala"
if (_tmp22_ != NULL) {
#line 3851 "Photo.c"
const gchar* _tmp23_ = NULL;
gchar* _tmp24_ = NULL;
#line 413 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp23_ = basename;
#line 413 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp24_ = string_sliced_at (_tmp23_, 1);
#line 413 "/home/jens/Source/shotwell/src/Photo.vala"
_g_free0 (self->priv->file_title);
#line 413 "/home/jens/Source/shotwell/src/Photo.vala"
self->priv->file_title = _tmp24_;
#line 3862 "Photo.c"
}
#line 415 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp25_ = self->priv->file_title;
#line 415 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp26_ = is_string_empty (_tmp25_);
#line 415 "/home/jens/Source/shotwell/src/Photo.vala"
if (_tmp26_) {
#line 3870 "Photo.c"
PhotoRow* _tmp27_ = NULL;
BackingPhotoRow* _tmp28_ = NULL;
const gchar* _tmp29_ = NULL;
gchar* _tmp30_ = NULL;
#line 416 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp27_ = row;
#line 416 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp28_ = _tmp27_->master;
#line 416 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp29_ = _tmp28_->filepath;
#line 416 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp30_ = g_strdup (_tmp29_);
#line 416 "/home/jens/Source/shotwell/src/Photo.vala"
_g_free0 (self->priv->file_title);
#line 416 "/home/jens/Source/shotwell/src/Photo.vala"
self->priv->file_title = _tmp30_;
#line 3887 "Photo.c"
}
#line 418 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp31_ = row;
#line 418 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp32_ = _tmp31_->editable_id;
#line 418 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp33_ = _tmp32_.id;
#line 418 "/home/jens/Source/shotwell/src/Photo.vala"
if (_tmp33_ != BACKING_PHOTO_ID_INVALID) {
#line 3897 "Photo.c"
BackingPhotoRow* e = NULL;
PhotoRow* _tmp34_ = NULL;
BackingPhotoID _tmp35_ = {0};
BackingPhotoRow* _tmp36_ = NULL;
BackingPhotoRow* _tmp37_ = NULL;
#line 419 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp34_ = row;
#line 419 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp35_ = _tmp34_->editable_id;
#line 419 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp36_ = photo_get_backing_row (self, &_tmp35_);
#line 419 "/home/jens/Source/shotwell/src/Photo.vala"
e = _tmp36_;
#line 420 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp37_ = e;
#line 420 "/home/jens/Source/shotwell/src/Photo.vala"
if (_tmp37_ != NULL) {
#line 3915 "Photo.c"
BackingPhotoRow* _tmp38_ = NULL;
BackingPhotoRow* _tmp39_ = NULL;
PhotoBackingReaders* _tmp40_ = NULL;
BackingPhotoRow* _tmp41_ = NULL;
PhotoFileFormat _tmp42_ = 0;
BackingPhotoRow* _tmp43_ = NULL;
const gchar* _tmp44_ = NULL;
PhotoFileReader* _tmp45_ = NULL;
#line 421 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp38_ = e;
#line 421 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp39_ = _backing_photo_row_ref0 (_tmp38_);
#line 421 "/home/jens/Source/shotwell/src/Photo.vala"
_backing_photo_row_unref0 (self->priv->editable);
#line 421 "/home/jens/Source/shotwell/src/Photo.vala"
self->priv->editable = _tmp39_;
#line 422 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp40_ = self->priv->readers;
#line 422 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp41_ = self->priv->editable;
#line 422 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp42_ = _tmp41_->file_format;
#line 422 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp43_ = self->priv->editable;
#line 422 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp44_ = _tmp43_->filepath;
#line 422 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp45_ = photo_file_format_create_reader (_tmp42_, _tmp44_);
#line 422 "/home/jens/Source/shotwell/src/Photo.vala"
_photo_file_adapter_unref0 (_tmp40_->editable);
#line 422 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp40_->editable = _tmp45_;
#line 3948 "Photo.c"
} else {
{
PhotoTable* _tmp46_ = NULL;
PhotoTable* _tmp47_ = NULL;
PhotoRow* _tmp48_ = NULL;
#line 425 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp46_ = photo_table_get_instance ();
#line 425 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp47_ = _tmp46_;
#line 425 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp48_ = self->row;
#line 425 "/home/jens/Source/shotwell/src/Photo.vala"
photo_table_detach_editable (_tmp47_, _tmp48_, &_inner_error_);
#line 425 "/home/jens/Source/shotwell/src/Photo.vala"
_database_table_unref0 (_tmp47_);
#line 425 "/home/jens/Source/shotwell/src/Photo.vala"
if (G_UNLIKELY (_inner_error_ != NULL)) {
#line 425 "/home/jens/Source/shotwell/src/Photo.vala"
if (_inner_error_->domain == DATABASE_ERROR) {
#line 3968 "Photo.c"
goto __catch256_database_error;
}
#line 425 "/home/jens/Source/shotwell/src/Photo.vala"
_backing_photo_row_unref0 (e);
#line 425 "/home/jens/Source/shotwell/src/Photo.vala"
_g_free0 (basename);
#line 425 "/home/jens/Source/shotwell/src/Photo.vala"
g_critical ("file %s: line %d: unexpected error: %s (%s, %d)", __FILE__, __LINE__, _inner_error_->message, g_quark_to_string (_inner_error_->domain), _inner_error_->code);
#line 425 "/home/jens/Source/shotwell/src/Photo.vala"
g_clear_error (&_inner_error_);
#line 425 "/home/jens/Source/shotwell/src/Photo.vala"
return NULL;
#line 3981 "Photo.c"
}
}
goto __finally256;
__catch256_database_error:
{
GError* err = NULL;
#line 424 "/home/jens/Source/shotwell/src/Photo.vala"
err = _inner_error_;
#line 424 "/home/jens/Source/shotwell/src/Photo.vala"
_inner_error_ = NULL;
#line 424 "/home/jens/Source/shotwell/src/Photo.vala"
_g_error_free0 (err);
#line 3994 "Photo.c"
}
__finally256:
#line 424 "/home/jens/Source/shotwell/src/Photo.vala"
if (G_UNLIKELY (_inner_error_ != NULL)) {
#line 424 "/home/jens/Source/shotwell/src/Photo.vala"
_backing_photo_row_unref0 (e);
#line 424 "/home/jens/Source/shotwell/src/Photo.vala"
_g_free0 (basename);
#line 424 "/home/jens/Source/shotwell/src/Photo.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 424 "/home/jens/Source/shotwell/src/Photo.vala"
g_clear_error (&_inner_error_);
#line 424 "/home/jens/Source/shotwell/src/Photo.vala"
return NULL;
#line 4009 "Photo.c"
}
#line 432 "/home/jens/Source/shotwell/src/Photo.vala"
photo_internal_remove_all_transformations (self, FALSE);
#line 4013 "Photo.c"
}
#line 418 "/home/jens/Source/shotwell/src/Photo.vala"
_backing_photo_row_unref0 (e);
#line 4017 "Photo.c"
}
#line 436 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp49_ = row;
#line 436 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp50_ = _tmp49_->master;
#line 436 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp51_ = _tmp50_->file_format;
#line 436 "/home/jens/Source/shotwell/src/Photo.vala"
if (_tmp51_ == PHOTO_FILE_FORMAT_RAW) {
#line 4027 "Photo.c"
GeeHashMap* _tmp52_ = NULL;
gint _tmp53_ = 0;
RawDeveloper* _tmp54_ = NULL;
#line 438 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp52_ = gee_hash_map_new (TYPE_RAW_DEVELOPER, NULL, NULL, TYPE_BACKING_PHOTO_ROW, (GBoxedCopyFunc) backing_photo_row_ref, backing_photo_row_unref, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL);
#line 438 "/home/jens/Source/shotwell/src/Photo.vala"
_g_object_unref0 (self->priv->developments);
#line 438 "/home/jens/Source/shotwell/src/Photo.vala"
self->priv->developments = _tmp52_;
#line 439 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp54_ = raw_developer_as_array (&_tmp53_);
#line 4039 "Photo.c"
{
RawDeveloper* d_collection = NULL;
gint d_collection_length1 = 0;
gint _d_collection_size_ = 0;
gint d_it = 0;
#line 439 "/home/jens/Source/shotwell/src/Photo.vala"
d_collection = _tmp54_;
#line 439 "/home/jens/Source/shotwell/src/Photo.vala"
d_collection_length1 = _tmp53_;
#line 439 "/home/jens/Source/shotwell/src/Photo.vala"
for (d_it = 0; d_it < _tmp53_; d_it = d_it + 1) {
#line 4051 "Photo.c"
RawDeveloper d = 0;
#line 439 "/home/jens/Source/shotwell/src/Photo.vala"
d = d_collection[d_it];
#line 4055 "Photo.c"
{
BackingPhotoID id = {0};
PhotoRow* _tmp55_ = NULL;
BackingPhotoID* _tmp56_ = NULL;
gint _tmp56__length1 = 0;
RawDeveloper _tmp57_ = 0;
BackingPhotoID _tmp58_ = {0};
BackingPhotoID _tmp59_ = {0};
gint64 _tmp60_ = 0LL;
#line 440 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp55_ = row;
#line 440 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp56_ = _tmp55_->development_ids;
#line 440 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp56__length1 = _tmp55_->development_ids_length1;
#line 440 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp57_ = d;
#line 440 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp58_ = _tmp56_[_tmp57_];
#line 440 "/home/jens/Source/shotwell/src/Photo.vala"
id = _tmp58_;
#line 441 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp59_ = id;
#line 441 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp60_ = _tmp59_.id;
#line 441 "/home/jens/Source/shotwell/src/Photo.vala"
if (_tmp60_ != BACKING_PHOTO_ID_INVALID) {
#line 4083 "Photo.c"
BackingPhotoRow* bpr = NULL;
BackingPhotoID _tmp61_ = {0};
BackingPhotoRow* _tmp62_ = NULL;
BackingPhotoRow* _tmp63_ = NULL;
#line 442 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp61_ = id;
#line 442 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp62_ = photo_get_backing_row (self, &_tmp61_);
#line 442 "/home/jens/Source/shotwell/src/Photo.vala"
bpr = _tmp62_;
#line 443 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp63_ = bpr;
#line 443 "/home/jens/Source/shotwell/src/Photo.vala"
if (_tmp63_ != NULL) {
#line 4098 "Photo.c"
GeeHashMap* _tmp64_ = NULL;
RawDeveloper _tmp65_ = 0;
BackingPhotoRow* _tmp66_ = NULL;
#line 444 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp64_ = self->priv->developments;
#line 444 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp65_ = d;
#line 444 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp66_ = bpr;
#line 444 "/home/jens/Source/shotwell/src/Photo.vala"
gee_abstract_map_set (G_TYPE_CHECK_INSTANCE_CAST (_tmp64_, GEE_TYPE_ABSTRACT_MAP, GeeAbstractMap), (gpointer) ((gintptr) _tmp65_), _tmp66_);
#line 4110 "Photo.c"
}
#line 441 "/home/jens/Source/shotwell/src/Photo.vala"
_backing_photo_row_unref0 (bpr);
#line 4114 "Photo.c"
}
}
}
#line 439 "/home/jens/Source/shotwell/src/Photo.vala"
d_collection = (g_free (d_collection), NULL);
#line 4120 "Photo.c"
}
}
#line 450 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp68_ = row;
#line 450 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp69_ = _tmp68_->master;
#line 450 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp70_ = _tmp69_->file_format;
#line 450 "/home/jens/Source/shotwell/src/Photo.vala"
if (_tmp70_ == PHOTO_FILE_FORMAT_RAW) {
#line 4131 "Photo.c"
GeeHashMap* _tmp71_ = NULL;
PhotoRow* _tmp72_ = NULL;
RawDeveloper _tmp73_ = 0;
gboolean _tmp74_ = FALSE;
#line 450 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp71_ = self->priv->developments;
#line 450 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp72_ = row;
#line 450 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp73_ = _tmp72_->developer;
#line 450 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp74_ = gee_abstract_map_has_key (G_TYPE_CHECK_INSTANCE_CAST (_tmp71_, GEE_TYPE_ABSTRACT_MAP, GeeAbstractMap), (gpointer) ((gintptr) _tmp73_));
#line 450 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp67_ = _tmp74_;
#line 4146 "Photo.c"
} else {
#line 450 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp67_ = FALSE;
#line 4150 "Photo.c"
}
#line 450 "/home/jens/Source/shotwell/src/Photo.vala"
if (_tmp67_) {
#line 4154 "Photo.c"
BackingPhotoRow* r = NULL;
GeeHashMap* _tmp75_ = NULL;
PhotoRow* _tmp76_ = NULL;
RawDeveloper _tmp77_ = 0;
gpointer _tmp78_ = NULL;
PhotoBackingReaders* _tmp79_ = NULL;
BackingPhotoRow* _tmp80_ = NULL;
PhotoFileFormat _tmp81_ = 0;
BackingPhotoRow* _tmp82_ = NULL;
const gchar* _tmp83_ = NULL;
PhotoFileReader* _tmp84_ = NULL;
#line 451 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp75_ = self->priv->developments;
#line 451 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp76_ = row;
#line 451 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp77_ = _tmp76_->developer;
#line 451 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp78_ = gee_abstract_map_get (G_TYPE_CHECK_INSTANCE_CAST (_tmp75_, GEE_TYPE_ABSTRACT_MAP, GeeAbstractMap), (gpointer) ((gintptr) _tmp77_));
#line 451 "/home/jens/Source/shotwell/src/Photo.vala"
r = (BackingPhotoRow*) _tmp78_;
#line 452 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp79_ = self->priv->readers;
#line 452 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp80_ = r;
#line 452 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp81_ = _tmp80_->file_format;
#line 452 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp82_ = r;
#line 452 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp83_ = _tmp82_->filepath;
#line 452 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp84_ = photo_file_format_create_reader (_tmp81_, _tmp83_);
#line 452 "/home/jens/Source/shotwell/src/Photo.vala"
_photo_file_adapter_unref0 (_tmp79_->developer);
#line 452 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp79_->developer = _tmp84_;
#line 450 "/home/jens/Source/shotwell/src/Photo.vala"
_backing_photo_row_unref0 (r);
#line 4194 "Photo.c"
}
#line 456 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp85_ = self->priv->readers;
#line 456 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp86_ = _tmp85_->editable;
#line 456 "/home/jens/Source/shotwell/src/Photo.vala"
if (_tmp86_ != NULL) {
#line 4202 "Photo.c"
BackingPhotoRow* _tmp87_ = NULL;
BackingPhotoRow* _tmp88_ = NULL;
#line 457 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp87_ = self->priv->editable;
#line 457 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp88_ = _backing_photo_row_ref0 (_tmp87_);
#line 457 "/home/jens/Source/shotwell/src/Photo.vala"
_backing_photo_row_unref0 (self->backing_photo_row);
#line 457 "/home/jens/Source/shotwell/src/Photo.vala"
self->backing_photo_row = _tmp88_;
#line 4213 "Photo.c"
} else {
PhotoRow* _tmp89_ = NULL;
BackingPhotoRow* _tmp90_ = NULL;
PhotoFileFormat _tmp91_ = 0;
#line 458 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp89_ = row;
#line 458 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp90_ = _tmp89_->master;
#line 458 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp91_ = _tmp90_->file_format;
#line 458 "/home/jens/Source/shotwell/src/Photo.vala"
if (_tmp91_ != PHOTO_FILE_FORMAT_RAW) {
#line 4226 "Photo.c"
PhotoRow* _tmp92_ = NULL;
BackingPhotoRow* _tmp93_ = NULL;
BackingPhotoRow* _tmp94_ = NULL;
#line 459 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp92_ = self->row;
#line 459 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp93_ = _tmp92_->master;
#line 459 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp94_ = _backing_photo_row_ref0 (_tmp93_);
#line 459 "/home/jens/Source/shotwell/src/Photo.vala"
_backing_photo_row_unref0 (self->backing_photo_row);
#line 459 "/home/jens/Source/shotwell/src/Photo.vala"
self->backing_photo_row = _tmp94_;
#line 4240 "Photo.c"
} else {
GeeHashMap* _tmp95_ = NULL;
PhotoRow* _tmp96_ = NULL;
RawDeveloper _tmp97_ = 0;
gboolean _tmp98_ = FALSE;
#line 463 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp95_ = self->priv->developments;
#line 463 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp96_ = row;
#line 463 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp97_ = _tmp96_->developer;
#line 463 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp98_ = gee_abstract_map_has_key (G_TYPE_CHECK_INSTANCE_CAST (_tmp95_, GEE_TYPE_ABSTRACT_MAP, GeeAbstractMap), (gpointer) ((gintptr) _tmp97_));
#line 463 "/home/jens/Source/shotwell/src/Photo.vala"
if (_tmp98_) {
#line 4256 "Photo.c"
GeeHashMap* _tmp99_ = NULL;
PhotoRow* _tmp100_ = NULL;
RawDeveloper _tmp101_ = 0;
gpointer _tmp102_ = NULL;
#line 464 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp99_ = self->priv->developments;
#line 464 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp100_ = row;
#line 464 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp101_ = _tmp100_->developer;
#line 464 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp102_ = gee_abstract_map_get (G_TYPE_CHECK_INSTANCE_CAST (_tmp99_, GEE_TYPE_ABSTRACT_MAP, GeeAbstractMap), (gpointer) ((gintptr) _tmp101_));
#line 464 "/home/jens/Source/shotwell/src/Photo.vala"
_backing_photo_row_unref0 (self->backing_photo_row);
#line 464 "/home/jens/Source/shotwell/src/Photo.vala"
self->backing_photo_row = (BackingPhotoRow*) _tmp102_;
#line 4273 "Photo.c"
} else {
PhotoRow* _tmp103_ = NULL;
BackingPhotoRow* _tmp104_ = NULL;
BackingPhotoRow* _tmp105_ = NULL;
#line 467 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp103_ = self->row;
#line 467 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp104_ = _tmp103_->master;
#line 467 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp105_ = _backing_photo_row_ref0 (_tmp104_);
#line 467 "/home/jens/Source/shotwell/src/Photo.vala"
_backing_photo_row_unref0 (self->backing_photo_row);
#line 467 "/home/jens/Source/shotwell/src/Photo.vala"
self->backing_photo_row = _tmp105_;
#line 4288 "Photo.c"
}
}
}
#line 471 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp106_ = self->row;
#line 471 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp107_ = _tmp106_->exposure_time;
#line 471 "/home/jens/Source/shotwell/src/Photo.vala"
self->priv->cached_exposure_time = _tmp107_;
#line 399 "/home/jens/Source/shotwell/src/Photo.vala"
_g_free0 (basename);
#line 399 "/home/jens/Source/shotwell/src/Photo.vala"
return self;
#line 4302 "Photo.c"
}
void photo_init_photo (void) {
GeeLinkedList* _tmp0_ = NULL;
#line 475 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp0_ = gee_linked_list_new (PHOTO_TYPE_CACHED_PIXBUF, (GBoxedCopyFunc) photo_cached_pixbuf_ref, photo_cached_pixbuf_unref, NULL, NULL, NULL);
#line 475 "/home/jens/Source/shotwell/src/Photo.vala"
_g_object_unref0 (photo_source_pixbuf_cache);
#line 475 "/home/jens/Source/shotwell/src/Photo.vala"
photo_source_pixbuf_cache = _tmp0_;
#line 4314 "Photo.c"
}
void photo_terminate_photo (void) {
guint _tmp0_ = 0U;
#line 479 "/home/jens/Source/shotwell/src/Photo.vala"
_g_object_unref0 (photo_source_pixbuf_cache);
#line 479 "/home/jens/Source/shotwell/src/Photo.vala"
photo_source_pixbuf_cache = NULL;
#line 481 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp0_ = photo_discard_source_id;
#line 481 "/home/jens/Source/shotwell/src/Photo.vala"
if (_tmp0_ != ((guint) 0)) {
#line 4328 "Photo.c"
guint _tmp1_ = 0U;
#line 482 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp1_ = photo_discard_source_id;
#line 482 "/home/jens/Source/shotwell/src/Photo.vala"
g_source_remove (_tmp1_);
#line 483 "/home/jens/Source/shotwell/src/Photo.vala"
photo_discard_source_id = (guint) 0;
#line 4336 "Photo.c"
}
}
static void photo_real_notify_editable_replaced (Photo* self, GFile* old_file, GFile* new_file) {
GFile* _tmp0_ = NULL;
GFile* _tmp1_ = NULL;
#line 487 "/home/jens/Source/shotwell/src/Photo.vala"
g_return_if_fail ((old_file == NULL) || G_IS_FILE (old_file));
#line 487 "/home/jens/Source/shotwell/src/Photo.vala"
g_return_if_fail ((new_file == NULL) || G_IS_FILE (new_file));
#line 488 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp0_ = old_file;
#line 488 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp1_ = new_file;
#line 488 "/home/jens/Source/shotwell/src/Photo.vala"
g_signal_emit_by_name (self, "editable-replaced", _tmp0_, _tmp1_);
#line 4354 "Photo.c"
}
void photo_notify_editable_replaced (Photo* self, GFile* old_file, GFile* new_file) {
#line 487 "/home/jens/Source/shotwell/src/Photo.vala"
g_return_if_fail (IS_PHOTO (self));
#line 487 "/home/jens/Source/shotwell/src/Photo.vala"
PHOTO_GET_CLASS (self)->notify_editable_replaced (self, old_file, new_file);
#line 4363 "Photo.c"
}
static void photo_real_notify_raw_development_modified (Photo* self) {
#line 492 "/home/jens/Source/shotwell/src/Photo.vala"
g_signal_emit_by_name (self, "raw-development-modified");
#line 4370 "Photo.c"
}
void photo_notify_raw_development_modified (Photo* self) {
#line 491 "/home/jens/Source/shotwell/src/Photo.vala"
g_return_if_fail (IS_PHOTO (self));
#line 491 "/home/jens/Source/shotwell/src/Photo.vala"
PHOTO_GET_CLASS (self)->notify_raw_development_modified (self);
#line 4379 "Photo.c"
}
static void photo_real_notify_baseline_replaced (Photo* self) {
#line 496 "/home/jens/Source/shotwell/src/Photo.vala"
g_signal_emit_by_name (self, "baseline-replaced");
#line 4386 "Photo.c"
}
void photo_notify_baseline_replaced (Photo* self) {
#line 495 "/home/jens/Source/shotwell/src/Photo.vala"
g_return_if_fail (IS_PHOTO (self));
#line 495 "/home/jens/Source/shotwell/src/Photo.vala"
PHOTO_GET_CLASS (self)->notify_baseline_replaced (self);
#line 4395 "Photo.c"
}
static void photo_real_notify_master_reimported (Photo* self, PhotoMetadata* metadata) {
PhotoMetadata* _tmp0_ = NULL;
#line 499 "/home/jens/Source/shotwell/src/Photo.vala"
g_return_if_fail ((metadata == NULL) || IS_PHOTO_METADATA (metadata));
#line 500 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp0_ = metadata;
#line 500 "/home/jens/Source/shotwell/src/Photo.vala"
g_signal_emit_by_name (self, "master-reimported", _tmp0_);
#line 4407 "Photo.c"
}
void photo_notify_master_reimported (Photo* self, PhotoMetadata* metadata) {
#line 499 "/home/jens/Source/shotwell/src/Photo.vala"
g_return_if_fail (IS_PHOTO (self));
#line 499 "/home/jens/Source/shotwell/src/Photo.vala"
PHOTO_GET_CLASS (self)->notify_master_reimported (self, metadata);
#line 4416 "Photo.c"
}
static void photo_real_notify_editable_reimported (Photo* self, PhotoMetadata* metadata) {
PhotoMetadata* _tmp0_ = NULL;
#line 503 "/home/jens/Source/shotwell/src/Photo.vala"
g_return_if_fail ((metadata == NULL) || IS_PHOTO_METADATA (metadata));
#line 504 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp0_ = metadata;
#line 504 "/home/jens/Source/shotwell/src/Photo.vala"
g_signal_emit_by_name (self, "editable-reimported", _tmp0_);
#line 4428 "Photo.c"
}
void photo_notify_editable_reimported (Photo* self, PhotoMetadata* metadata) {
#line 503 "/home/jens/Source/shotwell/src/Photo.vala"
g_return_if_fail (IS_PHOTO (self));
#line 503 "/home/jens/Source/shotwell/src/Photo.vala"
PHOTO_GET_CLASS (self)->notify_editable_reimported (self, metadata);
#line 4437 "Photo.c"
}
static void photo_real_notify_source_reimported (Photo* self, PhotoMetadata* metadata) {
PhotoMetadata* _tmp0_ = NULL;
#line 507 "/home/jens/Source/shotwell/src/Photo.vala"
g_return_if_fail ((metadata == NULL) || IS_PHOTO_METADATA (metadata));
#line 508 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp0_ = metadata;
#line 508 "/home/jens/Source/shotwell/src/Photo.vala"
g_signal_emit_by_name (self, "source-reimported", _tmp0_);
#line 4449 "Photo.c"
}
void photo_notify_source_reimported (Photo* self, PhotoMetadata* metadata) {
#line 507 "/home/jens/Source/shotwell/src/Photo.vala"
g_return_if_fail (IS_PHOTO (self));
#line 507 "/home/jens/Source/shotwell/src/Photo.vala"
PHOTO_GET_CLASS (self)->notify_source_reimported (self, metadata);
#line 4458 "Photo.c"
}
static void photo_real_notify_baseline_reimported (Photo* self, PhotoMetadata* metadata) {
PhotoMetadata* _tmp0_ = NULL;
#line 511 "/home/jens/Source/shotwell/src/Photo.vala"
g_return_if_fail ((metadata == NULL) || IS_PHOTO_METADATA (metadata));
#line 512 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp0_ = metadata;
#line 512 "/home/jens/Source/shotwell/src/Photo.vala"
g_signal_emit_by_name (self, "baseline-reimported", _tmp0_);
#line 4470 "Photo.c"
}
void photo_notify_baseline_reimported (Photo* self, PhotoMetadata* metadata) {
#line 511 "/home/jens/Source/shotwell/src/Photo.vala"
g_return_if_fail (IS_PHOTO (self));
#line 511 "/home/jens/Source/shotwell/src/Photo.vala"
PHOTO_GET_CLASS (self)->notify_baseline_reimported (self, metadata);
#line 4479 "Photo.c"
}
static gboolean photo_real_internal_delete_backing (DataSource* base, GError** error) {
Photo * self;
gboolean result = FALSE;
gboolean ret = FALSE;
GFile* file = NULL;
PhotoFileFormat _tmp7_ = 0;
GFile* _tmp11_ = NULL;
gboolean _tmp22_ = FALSE;
gboolean _tmp23_ = FALSE;
gboolean _tmp24_ = FALSE;
GError * _inner_error_ = NULL;
#line 515 "/home/jens/Source/shotwell/src/Photo.vala"
self = G_TYPE_CHECK_INSTANCE_CAST (base, TYPE_PHOTO, Photo);
#line 516 "/home/jens/Source/shotwell/src/Photo.vala"
ret = TRUE;
#line 517 "/home/jens/Source/shotwell/src/Photo.vala"
file = NULL;
#line 4500 "Photo.c"
{
PhotoBackingReaders* _tmp0_ = NULL;
#line 518 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp0_ = self->priv->readers;
#line 518 "/home/jens/Source/shotwell/src/Photo.vala"
g_rec_mutex_lock (&self->priv->__lock_readers);
#line 4507 "Photo.c"
{
PhotoBackingReaders* _tmp1_ = NULL;
PhotoFileReader* _tmp2_ = NULL;
#line 519 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp1_ = self->priv->readers;
#line 519 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp2_ = _tmp1_->editable;
#line 519 "/home/jens/Source/shotwell/src/Photo.vala"
if (_tmp2_ != NULL) {
#line 4517 "Photo.c"
PhotoBackingReaders* _tmp3_ = NULL;
PhotoFileReader* _tmp4_ = NULL;
GFile* _tmp5_ = NULL;
#line 520 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp3_ = self->priv->readers;
#line 520 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp4_ = _tmp3_->editable;
#line 520 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp5_ = photo_file_adapter_get_file (G_TYPE_CHECK_INSTANCE_CAST (_tmp4_, TYPE_PHOTO_FILE_ADAPTER, PhotoFileAdapter));
#line 520 "/home/jens/Source/shotwell/src/Photo.vala"
_g_object_unref0 (file);
#line 520 "/home/jens/Source/shotwell/src/Photo.vala"
file = _tmp5_;
#line 4531 "Photo.c"
}
}
__finally257:
{
PhotoBackingReaders* _tmp6_ = NULL;
#line 518 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp6_ = self->priv->readers;
#line 518 "/home/jens/Source/shotwell/src/Photo.vala"
g_rec_mutex_unlock (&self->priv->__lock_readers);
#line 4541 "Photo.c"
}
#line 518 "/home/jens/Source/shotwell/src/Photo.vala"
if (G_UNLIKELY (_inner_error_ != NULL)) {
#line 518 "/home/jens/Source/shotwell/src/Photo.vala"
g_propagate_error (error, _inner_error_);
#line 518 "/home/jens/Source/shotwell/src/Photo.vala"
_g_object_unref0 (file);
#line 518 "/home/jens/Source/shotwell/src/Photo.vala"
return FALSE;
#line 4551 "Photo.c"
}
}
#line 523 "/home/jens/Source/shotwell/src/Photo.vala"
photo_detach_editable (self, TRUE, FALSE, TRUE);
#line 525 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp7_ = photo_get_master_file_format (self);
#line 525 "/home/jens/Source/shotwell/src/Photo.vala"
if (_tmp7_ == PHOTO_FILE_FORMAT_RAW) {
#line 4560 "Photo.c"
gint _tmp8_ = 0;
RawDeveloper* _tmp9_ = NULL;
#line 526 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp9_ = raw_developer_as_array (&_tmp8_);
#line 4565 "Photo.c"
{
RawDeveloper* d_collection = NULL;
gint d_collection_length1 = 0;
gint _d_collection_size_ = 0;
gint d_it = 0;
#line 526 "/home/jens/Source/shotwell/src/Photo.vala"
d_collection = _tmp9_;
#line 526 "/home/jens/Source/shotwell/src/Photo.vala"
d_collection_length1 = _tmp8_;
#line 526 "/home/jens/Source/shotwell/src/Photo.vala"
for (d_it = 0; d_it < _tmp8_; d_it = d_it + 1) {
#line 4577 "Photo.c"
RawDeveloper d = 0;
#line 526 "/home/jens/Source/shotwell/src/Photo.vala"
d = d_collection[d_it];
#line 4581 "Photo.c"
{
RawDeveloper _tmp10_ = 0;
#line 527 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp10_ = d;
#line 527 "/home/jens/Source/shotwell/src/Photo.vala"
photo_delete_raw_development (self, _tmp10_);
#line 4588 "Photo.c"
}
}
#line 526 "/home/jens/Source/shotwell/src/Photo.vala"
d_collection = (g_free (d_collection), NULL);
#line 4593 "Photo.c"
}
}
#line 531 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp11_ = file;
#line 531 "/home/jens/Source/shotwell/src/Photo.vala"
if (_tmp11_ != NULL) {
#line 4600 "Photo.c"
{
gboolean _tmp12_ = FALSE;
GFile* _tmp13_ = NULL;
gboolean _tmp14_ = FALSE;
#line 533 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp13_ = file;
#line 533 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp14_ = g_file_trash (_tmp13_, NULL, &_inner_error_);
#line 533 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp12_ = _tmp14_;
#line 533 "/home/jens/Source/shotwell/src/Photo.vala"
if (G_UNLIKELY (_inner_error_ != NULL)) {
#line 4613 "Photo.c"
goto __catch258_g_error;
}
#line 533 "/home/jens/Source/shotwell/src/Photo.vala"
ret = _tmp12_;
#line 4618 "Photo.c"
}
goto __finally258;
__catch258_g_error:
{
GError* err = NULL;
GFile* _tmp15_ = NULL;
gchar* _tmp16_ = NULL;
gchar* _tmp17_ = NULL;
gchar* _tmp18_ = NULL;
gchar* _tmp19_ = NULL;
GError* _tmp20_ = NULL;
const gchar* _tmp21_ = NULL;
#line 532 "/home/jens/Source/shotwell/src/Photo.vala"
err = _inner_error_;
#line 532 "/home/jens/Source/shotwell/src/Photo.vala"
_inner_error_ = NULL;
#line 535 "/home/jens/Source/shotwell/src/Photo.vala"
ret = FALSE;
#line 536 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp15_ = file;
#line 536 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp16_ = g_file_get_path (_tmp15_);
#line 536 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp17_ = _tmp16_;
#line 536 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp18_ = data_object_to_string (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_DATA_OBJECT, DataObject));
#line 536 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp19_ = _tmp18_;
#line 536 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp20_ = err;
#line 536 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp21_ = _tmp20_->message;
#line 536 "/home/jens/Source/shotwell/src/Photo.vala"
g_message ("Photo.vala:536: Unable to move editable %s for %s to trash: %s", _tmp17_, _tmp19_, _tmp21_);
#line 536 "/home/jens/Source/shotwell/src/Photo.vala"
_g_free0 (_tmp19_);
#line 536 "/home/jens/Source/shotwell/src/Photo.vala"
_g_free0 (_tmp17_);
#line 532 "/home/jens/Source/shotwell/src/Photo.vala"
_g_error_free0 (err);
#line 4659 "Photo.c"
}
__finally258:
#line 532 "/home/jens/Source/shotwell/src/Photo.vala"
if (G_UNLIKELY (_inner_error_ != NULL)) {
#line 532 "/home/jens/Source/shotwell/src/Photo.vala"
g_propagate_error (error, _inner_error_);
#line 532 "/home/jens/Source/shotwell/src/Photo.vala"
_g_object_unref0 (file);
#line 532 "/home/jens/Source/shotwell/src/Photo.vala"
return FALSE;
#line 4670 "Photo.c"
}
}
#line 542 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp24_ = DATA_SOURCE_CLASS (photo_parent_class)->internal_delete_backing (G_TYPE_CHECK_INSTANCE_CAST (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_PHOTO_SOURCE, PhotoSource), TYPE_DATA_SOURCE, DataSource), &_inner_error_);
#line 542 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp23_ = _tmp24_;
#line 542 "/home/jens/Source/shotwell/src/Photo.vala"
if (G_UNLIKELY (_inner_error_ != NULL)) {
#line 542 "/home/jens/Source/shotwell/src/Photo.vala"
g_propagate_error (error, _inner_error_);
#line 542 "/home/jens/Source/shotwell/src/Photo.vala"
_g_object_unref0 (file);
#line 542 "/home/jens/Source/shotwell/src/Photo.vala"
return FALSE;
#line 4685 "Photo.c"
}
#line 542 "/home/jens/Source/shotwell/src/Photo.vala"
if (_tmp23_) {
#line 4689 "Photo.c"
gboolean _tmp25_ = FALSE;
#line 542 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp25_ = ret;
#line 542 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp22_ = _tmp25_;
#line 4695 "Photo.c"
} else {
#line 542 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp22_ = FALSE;
#line 4699 "Photo.c"
}
#line 542 "/home/jens/Source/shotwell/src/Photo.vala"
result = _tmp22_;
#line 542 "/home/jens/Source/shotwell/src/Photo.vala"
_g_object_unref0 (file);
#line 542 "/home/jens/Source/shotwell/src/Photo.vala"
return result;
#line 4707 "Photo.c"
}
static BackingPhotoRow* photo_get_backing_row (Photo* self, BackingPhotoID* id) {
BackingPhotoRow* result = NULL;
BackingPhotoID _tmp0_ = {0};
gint64 _tmp1_ = 0LL;
BackingPhotoRow* backing_row = NULL;
BackingPhotoRow* _tmp13_ = NULL;
GError * _inner_error_ = NULL;
#line 547 "/home/jens/Source/shotwell/src/Photo.vala"
g_return_val_if_fail (IS_PHOTO (self), NULL);
#line 547 "/home/jens/Source/shotwell/src/Photo.vala"
g_return_val_if_fail (id != NULL, NULL);
#line 548 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp0_ = *id;
#line 548 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp1_ = _tmp0_.id;
#line 548 "/home/jens/Source/shotwell/src/Photo.vala"
if (_tmp1_ == BACKING_PHOTO_ID_INVALID) {
#line 549 "/home/jens/Source/shotwell/src/Photo.vala"
result = NULL;
#line 549 "/home/jens/Source/shotwell/src/Photo.vala"
return result;
#line 4732 "Photo.c"
}
#line 551 "/home/jens/Source/shotwell/src/Photo.vala"
backing_row = NULL;
#line 4736 "Photo.c"
{
BackingPhotoRow* _tmp2_ = NULL;
BackingPhotoTable* _tmp3_ = NULL;
BackingPhotoTable* _tmp4_ = NULL;
BackingPhotoID _tmp5_ = {0};
BackingPhotoRow* _tmp6_ = NULL;
BackingPhotoRow* _tmp7_ = NULL;
BackingPhotoRow* _tmp8_ = NULL;
#line 553 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp3_ = backing_photo_table_get_instance ();
#line 553 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp4_ = _tmp3_;
#line 553 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp5_ = *id;
#line 553 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp6_ = backing_photo_table_fetch (_tmp4_, &_tmp5_, &_inner_error_);
#line 553 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp7_ = _tmp6_;
#line 553 "/home/jens/Source/shotwell/src/Photo.vala"
_database_table_unref0 (_tmp4_);
#line 553 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp2_ = _tmp7_;
#line 553 "/home/jens/Source/shotwell/src/Photo.vala"
if (G_UNLIKELY (_inner_error_ != NULL)) {
#line 553 "/home/jens/Source/shotwell/src/Photo.vala"
if (_inner_error_->domain == DATABASE_ERROR) {
#line 4763 "Photo.c"
goto __catch259_database_error;
}
#line 553 "/home/jens/Source/shotwell/src/Photo.vala"
_backing_photo_row_unref0 (backing_row);
#line 553 "/home/jens/Source/shotwell/src/Photo.vala"
g_critical ("file %s: line %d: unexpected error: %s (%s, %d)", __FILE__, __LINE__, _inner_error_->message, g_quark_to_string (_inner_error_->domain), _inner_error_->code);
#line 553 "/home/jens/Source/shotwell/src/Photo.vala"
g_clear_error (&_inner_error_);
#line 553 "/home/jens/Source/shotwell/src/Photo.vala"
return NULL;
#line 4774 "Photo.c"
}
#line 553 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp8_ = _tmp2_;
#line 553 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp2_ = NULL;
#line 553 "/home/jens/Source/shotwell/src/Photo.vala"
_backing_photo_row_unref0 (backing_row);
#line 553 "/home/jens/Source/shotwell/src/Photo.vala"
backing_row = _tmp8_;
#line 552 "/home/jens/Source/shotwell/src/Photo.vala"
_backing_photo_row_unref0 (_tmp2_);
#line 4786 "Photo.c"
}
goto __finally259;
__catch259_database_error:
{
GError* err = NULL;
gchar* _tmp9_ = NULL;
gchar* _tmp10_ = NULL;
GError* _tmp11_ = NULL;
const gchar* _tmp12_ = NULL;
#line 552 "/home/jens/Source/shotwell/src/Photo.vala"
err = _inner_error_;
#line 552 "/home/jens/Source/shotwell/src/Photo.vala"
_inner_error_ = NULL;
#line 555 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp9_ = data_object_to_string (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_DATA_OBJECT, DataObject));
#line 555 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp10_ = _tmp9_;
#line 555 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp11_ = err;
#line 555 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp12_ = _tmp11_->message;
#line 555 "/home/jens/Source/shotwell/src/Photo.vala"
g_warning ("Photo.vala:555: Unable to fetch backing state for %s: %s", _tmp10_, _tmp12_);
#line 555 "/home/jens/Source/shotwell/src/Photo.vala"
_g_free0 (_tmp10_);
#line 552 "/home/jens/Source/shotwell/src/Photo.vala"
_g_error_free0 (err);
#line 4814 "Photo.c"
}
__finally259:
#line 552 "/home/jens/Source/shotwell/src/Photo.vala"
if (G_UNLIKELY (_inner_error_ != NULL)) {
#line 552 "/home/jens/Source/shotwell/src/Photo.vala"
_backing_photo_row_unref0 (backing_row);
#line 552 "/home/jens/Source/shotwell/src/Photo.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 552 "/home/jens/Source/shotwell/src/Photo.vala"
g_clear_error (&_inner_error_);
#line 552 "/home/jens/Source/shotwell/src/Photo.vala"
return NULL;
#line 4827 "Photo.c"
}
#line 558 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp13_ = backing_row;
#line 558 "/home/jens/Source/shotwell/src/Photo.vala"
if (_tmp13_ == NULL) {
#line 4833 "Photo.c"
{
BackingPhotoTable* _tmp14_ = NULL;
BackingPhotoTable* _tmp15_ = NULL;
BackingPhotoID _tmp16_ = {0};
#line 560 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp14_ = backing_photo_table_get_instance ();
#line 560 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp15_ = _tmp14_;
#line 560 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp16_ = *id;
#line 560 "/home/jens/Source/shotwell/src/Photo.vala"
backing_photo_table_remove (_tmp15_, &_tmp16_, &_inner_error_);
#line 560 "/home/jens/Source/shotwell/src/Photo.vala"
_database_table_unref0 (_tmp15_);
#line 560 "/home/jens/Source/shotwell/src/Photo.vala"
if (G_UNLIKELY (_inner_error_ != NULL)) {
#line 560 "/home/jens/Source/shotwell/src/Photo.vala"
if (_inner_error_->domain == DATABASE_ERROR) {
#line 4852 "Photo.c"
goto __catch260_database_error;
}
#line 560 "/home/jens/Source/shotwell/src/Photo.vala"
_backing_photo_row_unref0 (backing_row);
#line 560 "/home/jens/Source/shotwell/src/Photo.vala"
g_critical ("file %s: line %d: unexpected error: %s (%s, %d)", __FILE__, __LINE__, _inner_error_->message, g_quark_to_string (_inner_error_->domain), _inner_error_->code);
#line 560 "/home/jens/Source/shotwell/src/Photo.vala"
g_clear_error (&_inner_error_);
#line 560 "/home/jens/Source/shotwell/src/Photo.vala"
return NULL;
#line 4863 "Photo.c"
}
}
goto __finally260;
__catch260_database_error:
{
GError* err = NULL;
#line 559 "/home/jens/Source/shotwell/src/Photo.vala"
err = _inner_error_;
#line 559 "/home/jens/Source/shotwell/src/Photo.vala"
_inner_error_ = NULL;
#line 559 "/home/jens/Source/shotwell/src/Photo.vala"
_g_error_free0 (err);
#line 4876 "Photo.c"
}
__finally260:
#line 559 "/home/jens/Source/shotwell/src/Photo.vala"
if (G_UNLIKELY (_inner_error_ != NULL)) {
#line 559 "/home/jens/Source/shotwell/src/Photo.vala"
_backing_photo_row_unref0 (backing_row);
#line 559 "/home/jens/Source/shotwell/src/Photo.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 559 "/home/jens/Source/shotwell/src/Photo.vala"
g_clear_error (&_inner_error_);
#line 559 "/home/jens/Source/shotwell/src/Photo.vala"
return NULL;
#line 4889 "Photo.c"
}
#line 564 "/home/jens/Source/shotwell/src/Photo.vala"
result = NULL;
#line 564 "/home/jens/Source/shotwell/src/Photo.vala"
_backing_photo_row_unref0 (backing_row);
#line 564 "/home/jens/Source/shotwell/src/Photo.vala"
return result;
#line 4897 "Photo.c"
}
#line 567 "/home/jens/Source/shotwell/src/Photo.vala"
result = backing_row;
#line 567 "/home/jens/Source/shotwell/src/Photo.vala"
return result;
#line 4903 "Photo.c"
}
gboolean photo_is_raw_developer_complete (Photo* self, RawDeveloper d) {
gboolean result = FALSE;
GError * _inner_error_ = NULL;
#line 572 "/home/jens/Source/shotwell/src/Photo.vala"
g_return_val_if_fail (IS_PHOTO (self), FALSE);
#line 4912 "Photo.c"
{
GeeHashMap* _tmp0_ = NULL;
#line 573 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp0_ = self->priv->developments;
#line 573 "/home/jens/Source/shotwell/src/Photo.vala"
g_rec_mutex_lock (&self->priv->__lock_developments);
#line 4919 "Photo.c"
{
gboolean _tmp1_ = FALSE;
GeeHashMap* _tmp2_ = NULL;
RawDeveloper _tmp3_ = 0;
gboolean _tmp4_ = FALSE;
#line 574 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp2_ = self->priv->developments;
#line 574 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp3_ = d;
#line 574 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp4_ = gee_abstract_map_has_key (G_TYPE_CHECK_INSTANCE_CAST (_tmp2_, GEE_TYPE_ABSTRACT_MAP, GeeAbstractMap), (gpointer) ((gintptr) _tmp3_));
#line 574 "/home/jens/Source/shotwell/src/Photo.vala"
if (_tmp4_) {
#line 4933 "Photo.c"
GeeHashMap* _tmp5_ = NULL;
RawDeveloper _tmp6_ = 0;
gpointer _tmp7_ = NULL;
BackingPhotoRow* _tmp8_ = NULL;
const gchar* _tmp9_ = NULL;
gboolean _tmp10_ = FALSE;
#line 575 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp5_ = self->priv->developments;
#line 575 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp6_ = d;
#line 575 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp7_ = gee_abstract_map_get (G_TYPE_CHECK_INSTANCE_CAST (_tmp5_, GEE_TYPE_ABSTRACT_MAP, GeeAbstractMap), (gpointer) ((gintptr) _tmp6_));
#line 575 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp8_ = (BackingPhotoRow*) _tmp7_;
#line 575 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp9_ = _tmp8_->filepath;
#line 575 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp10_ = g_file_test (_tmp9_, G_FILE_TEST_EXISTS);
#line 575 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp1_ = _tmp10_;
#line 575 "/home/jens/Source/shotwell/src/Photo.vala"
_backing_photo_row_unref0 (_tmp8_);
#line 4956 "Photo.c"
} else {
#line 574 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp1_ = FALSE;
#line 4960 "Photo.c"
}
#line 574 "/home/jens/Source/shotwell/src/Photo.vala"
result = _tmp1_;
#line 4964 "Photo.c"
{
GeeHashMap* _tmp11_ = NULL;
#line 573 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp11_ = self->priv->developments;
#line 573 "/home/jens/Source/shotwell/src/Photo.vala"
g_rec_mutex_unlock (&self->priv->__lock_developments);
#line 4971 "Photo.c"
}
#line 574 "/home/jens/Source/shotwell/src/Photo.vala"
return result;
#line 4975 "Photo.c"
}
__finally261:
{
GeeHashMap* _tmp12_ = NULL;
#line 573 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp12_ = self->priv->developments;
#line 573 "/home/jens/Source/shotwell/src/Photo.vala"
g_rec_mutex_unlock (&self->priv->__lock_developments);
#line 4984 "Photo.c"
}
#line 573 "/home/jens/Source/shotwell/src/Photo.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 573 "/home/jens/Source/shotwell/src/Photo.vala"
g_clear_error (&_inner_error_);
#line 573 "/home/jens/Source/shotwell/src/Photo.vala"
return FALSE;
#line 4992 "Photo.c"
}
}
gboolean photo_is_raw_developer_available (Photo* self, RawDeveloper d) {
gboolean result = FALSE;
RawDeveloper _tmp6_ = 0;
GError * _inner_error_ = NULL;
#line 580 "/home/jens/Source/shotwell/src/Photo.vala"
g_return_val_if_fail (IS_PHOTO (self), FALSE);
#line 5003 "Photo.c"
{
GeeHashMap* _tmp0_ = NULL;
#line 581 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp0_ = self->priv->developments;
#line 581 "/home/jens/Source/shotwell/src/Photo.vala"
g_rec_mutex_lock (&self->priv->__lock_developments);
#line 5010 "Photo.c"
{
GeeHashMap* _tmp1_ = NULL;
RawDeveloper _tmp2_ = 0;
gboolean _tmp3_ = FALSE;
#line 582 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp1_ = self->priv->developments;
#line 582 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp2_ = d;
#line 582 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp3_ = gee_abstract_map_has_key (G_TYPE_CHECK_INSTANCE_CAST (_tmp1_, GEE_TYPE_ABSTRACT_MAP, GeeAbstractMap), (gpointer) ((gintptr) _tmp2_));
#line 582 "/home/jens/Source/shotwell/src/Photo.vala"
if (_tmp3_) {
#line 583 "/home/jens/Source/shotwell/src/Photo.vala"
result = TRUE;
#line 5025 "Photo.c"
{
GeeHashMap* _tmp4_ = NULL;
#line 581 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp4_ = self->priv->developments;
#line 581 "/home/jens/Source/shotwell/src/Photo.vala"
g_rec_mutex_unlock (&self->priv->__lock_developments);
#line 5032 "Photo.c"
}
#line 583 "/home/jens/Source/shotwell/src/Photo.vala"
return result;
#line 5036 "Photo.c"
}
}
__finally262:
{
GeeHashMap* _tmp5_ = NULL;
#line 581 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp5_ = self->priv->developments;
#line 581 "/home/jens/Source/shotwell/src/Photo.vala"
g_rec_mutex_unlock (&self->priv->__lock_developments);
#line 5046 "Photo.c"
}
#line 581 "/home/jens/Source/shotwell/src/Photo.vala"
if (G_UNLIKELY (_inner_error_ != NULL)) {
#line 581 "/home/jens/Source/shotwell/src/Photo.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 581 "/home/jens/Source/shotwell/src/Photo.vala"
g_clear_error (&_inner_error_);
#line 581 "/home/jens/Source/shotwell/src/Photo.vala"
return FALSE;
#line 5056 "Photo.c"
}
}
#line 586 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp6_ = d;
#line 586 "/home/jens/Source/shotwell/src/Photo.vala"
switch (_tmp6_) {
#line 586 "/home/jens/Source/shotwell/src/Photo.vala"
case RAW_DEVELOPER_SHOTWELL:
#line 5065 "Photo.c"
{
#line 588 "/home/jens/Source/shotwell/src/Photo.vala"
result = TRUE;
#line 588 "/home/jens/Source/shotwell/src/Photo.vala"
return result;
#line 5071 "Photo.c"
}
#line 586 "/home/jens/Source/shotwell/src/Photo.vala"
case RAW_DEVELOPER_CAMERA:
#line 5075 "Photo.c"
{
#line 591 "/home/jens/Source/shotwell/src/Photo.vala"
result = FALSE;
#line 591 "/home/jens/Source/shotwell/src/Photo.vala"
return result;
#line 5081 "Photo.c"
}
#line 586 "/home/jens/Source/shotwell/src/Photo.vala"
case RAW_DEVELOPER_EMBEDDED:
#line 5085 "Photo.c"
{
{
PhotoMetadata* meta = NULL;
PhotoMetadata* _tmp7_ = NULL;
guint num_previews = 0U;
PhotoMetadata* _tmp8_ = NULL;
guint _tmp9_ = 0U;
guint _tmp10_ = 0U;
#line 595 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp7_ = photo_get_master_metadata (self, &_inner_error_);
#line 595 "/home/jens/Source/shotwell/src/Photo.vala"
meta = _tmp7_;
#line 595 "/home/jens/Source/shotwell/src/Photo.vala"
if (G_UNLIKELY (_inner_error_ != NULL)) {
#line 5100 "Photo.c"
goto __catch263_g_error;
}
#line 596 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp8_ = meta;
#line 596 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp9_ = photo_metadata_get_preview_count (_tmp8_);
#line 596 "/home/jens/Source/shotwell/src/Photo.vala"
num_previews = _tmp9_;
#line 598 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp10_ = num_previews;
#line 598 "/home/jens/Source/shotwell/src/Photo.vala"
if (_tmp10_ > ((guint) 0)) {
#line 5113 "Photo.c"
PhotoPreview* prev = NULL;
PhotoMetadata* _tmp11_ = NULL;
guint _tmp12_ = 0U;
PhotoPreview* _tmp13_ = NULL;
PhotoPreview* _tmp14_ = NULL;
Dimensions dims = {0};
PhotoPreview* _tmp15_ = NULL;
Dimensions _tmp16_ = {0};
gint _tmp17_ = 0;
Dimensions _tmp18_ = {0};
gint _tmp19_ = 0;
Dimensions _tmp20_ = {0};
gint _tmp21_ = 0;
gint preview_major_axis = 0;
gint _tmp26_ = 0;
#line 599 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp11_ = meta;
#line 599 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp12_ = num_previews;
#line 599 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp13_ = photo_metadata_get_preview (_tmp11_, _tmp12_ - 1);
#line 599 "/home/jens/Source/shotwell/src/Photo.vala"
prev = _tmp13_;
#line 602 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp14_ = prev;
#line 602 "/home/jens/Source/shotwell/src/Photo.vala"
if (_tmp14_ == NULL) {
#line 603 "/home/jens/Source/shotwell/src/Photo.vala"
result = FALSE;
#line 603 "/home/jens/Source/shotwell/src/Photo.vala"
_photo_preview_unref0 (prev);
#line 603 "/home/jens/Source/shotwell/src/Photo.vala"
_media_metadata_unref0 (meta);
#line 603 "/home/jens/Source/shotwell/src/Photo.vala"
return result;
#line 5149 "Photo.c"
}
#line 605 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp15_ = prev;
#line 605 "/home/jens/Source/shotwell/src/Photo.vala"
photo_preview_get_pixel_dimensions (_tmp15_, &_tmp16_);
#line 605 "/home/jens/Source/shotwell/src/Photo.vala"
dims = _tmp16_;
#line 608 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp18_ = dims;
#line 608 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp19_ = _tmp18_.width;
#line 608 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp20_ = dims;
#line 608 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp21_ = _tmp20_.height;
#line 608 "/home/jens/Source/shotwell/src/Photo.vala"
if (_tmp19_ > _tmp21_) {
#line 5167 "Photo.c"
Dimensions _tmp22_ = {0};
gint _tmp23_ = 0;
#line 608 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp22_ = dims;
#line 608 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp23_ = _tmp22_.width;
#line 608 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp17_ = _tmp23_;
#line 5176 "Photo.c"
} else {
Dimensions _tmp24_ = {0};
gint _tmp25_ = 0;
#line 608 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp24_ = dims;
#line 608 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp25_ = _tmp24_.height;
#line 608 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp17_ = _tmp25_;
#line 5186 "Photo.c"
}
#line 608 "/home/jens/Source/shotwell/src/Photo.vala"
preview_major_axis = _tmp17_;
#line 609 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp26_ = preview_major_axis;
#line 609 "/home/jens/Source/shotwell/src/Photo.vala"
if (_tmp26_ < PHOTO_MIN_EMBEDDED_SIZE) {
#line 610 "/home/jens/Source/shotwell/src/Photo.vala"
result = FALSE;
#line 610 "/home/jens/Source/shotwell/src/Photo.vala"
_photo_preview_unref0 (prev);
#line 610 "/home/jens/Source/shotwell/src/Photo.vala"
_media_metadata_unref0 (meta);
#line 610 "/home/jens/Source/shotwell/src/Photo.vala"
return result;
#line 5202 "Photo.c"
}
#line 613 "/home/jens/Source/shotwell/src/Photo.vala"
result = TRUE;
#line 613 "/home/jens/Source/shotwell/src/Photo.vala"
_photo_preview_unref0 (prev);
#line 613 "/home/jens/Source/shotwell/src/Photo.vala"
_media_metadata_unref0 (meta);
#line 613 "/home/jens/Source/shotwell/src/Photo.vala"
return result;
#line 5212 "Photo.c"
}
#line 617 "/home/jens/Source/shotwell/src/Photo.vala"
result = FALSE;
#line 617 "/home/jens/Source/shotwell/src/Photo.vala"
_media_metadata_unref0 (meta);
#line 617 "/home/jens/Source/shotwell/src/Photo.vala"
return result;
#line 5220 "Photo.c"
}
goto __finally263;
__catch263_g_error:
{
GError* e = NULL;
GError* _tmp27_ = NULL;
const gchar* _tmp28_ = NULL;
#line 594 "/home/jens/Source/shotwell/src/Photo.vala"
e = _inner_error_;
#line 594 "/home/jens/Source/shotwell/src/Photo.vala"
_inner_error_ = NULL;
#line 619 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp27_ = e;
#line 619 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp28_ = _tmp27_->message;
#line 619 "/home/jens/Source/shotwell/src/Photo.vala"
g_debug ("Photo.vala:619: Error accessing embedded preview. Message: %s", _tmp28_);
#line 594 "/home/jens/Source/shotwell/src/Photo.vala"
_g_error_free0 (e);
#line 5240 "Photo.c"
}
__finally263:
#line 594 "/home/jens/Source/shotwell/src/Photo.vala"
if (G_UNLIKELY (_inner_error_ != NULL)) {
#line 594 "/home/jens/Source/shotwell/src/Photo.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 594 "/home/jens/Source/shotwell/src/Photo.vala"
g_clear_error (&_inner_error_);
#line 594 "/home/jens/Source/shotwell/src/Photo.vala"
return FALSE;
#line 5251 "Photo.c"
}
#line 621 "/home/jens/Source/shotwell/src/Photo.vala"
result = FALSE;
#line 621 "/home/jens/Source/shotwell/src/Photo.vala"
return result;
#line 5257 "Photo.c"
}
default:
{
#line 624 "/home/jens/Source/shotwell/src/Photo.vala"
g_assert_not_reached ();
#line 5263 "Photo.c"
}
}
}
void photo_add_backing_photo_for_development (Photo* self, RawDeveloper d, BackingPhotoRow* bpr, GError** error) {
PhotoRow* _tmp0_ = NULL;
RawDeveloper _tmp1_ = 0;
BackingPhotoRow* _tmp2_ = NULL;
Alteration* _tmp8_ = NULL;
Alteration* _tmp9_ = NULL;
GError * _inner_error_ = NULL;
#line 631 "/home/jens/Source/shotwell/src/Photo.vala"
g_return_if_fail (IS_PHOTO (self));
#line 631 "/home/jens/Source/shotwell/src/Photo.vala"
g_return_if_fail (IS_BACKING_PHOTO_ROW (bpr));
#line 632 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp0_ = self->row;
#line 632 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp1_ = d;
#line 632 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp2_ = bpr;
#line 632 "/home/jens/Source/shotwell/src/Photo.vala"
photo_import_developed_backing_photo (_tmp0_, _tmp1_, _tmp2_, &_inner_error_);
#line 632 "/home/jens/Source/shotwell/src/Photo.vala"
if (G_UNLIKELY (_inner_error_ != NULL)) {
#line 632 "/home/jens/Source/shotwell/src/Photo.vala"
g_propagate_error (error, _inner_error_);
#line 632 "/home/jens/Source/shotwell/src/Photo.vala"
return;
#line 5294 "Photo.c"
}
{
GeeHashMap* _tmp3_ = NULL;
#line 633 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp3_ = self->priv->developments;
#line 633 "/home/jens/Source/shotwell/src/Photo.vala"
g_rec_mutex_lock (&self->priv->__lock_developments);
#line 5302 "Photo.c"
{
GeeHashMap* _tmp4_ = NULL;
RawDeveloper _tmp5_ = 0;
BackingPhotoRow* _tmp6_ = NULL;
#line 634 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp4_ = self->priv->developments;
#line 634 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp5_ = d;
#line 634 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp6_ = bpr;
#line 634 "/home/jens/Source/shotwell/src/Photo.vala"
gee_abstract_map_set (G_TYPE_CHECK_INSTANCE_CAST (_tmp4_, GEE_TYPE_ABSTRACT_MAP, GeeAbstractMap), (gpointer) ((gintptr) _tmp5_), _tmp6_);
#line 5315 "Photo.c"
}
__finally264:
{
GeeHashMap* _tmp7_ = NULL;
#line 633 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp7_ = self->priv->developments;
#line 633 "/home/jens/Source/shotwell/src/Photo.vala"
g_rec_mutex_unlock (&self->priv->__lock_developments);
#line 5324 "Photo.c"
}
#line 633 "/home/jens/Source/shotwell/src/Photo.vala"
if (G_UNLIKELY (_inner_error_ != NULL)) {
#line 633 "/home/jens/Source/shotwell/src/Photo.vala"
g_propagate_error (error, _inner_error_);
#line 633 "/home/jens/Source/shotwell/src/Photo.vala"
return;
#line 5332 "Photo.c"
}
}
#line 636 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp8_ = alteration_new ("image", "developer");
#line 636 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp9_ = _tmp8_;
#line 636 "/home/jens/Source/shotwell/src/Photo.vala"
data_object_notify_altered (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_DATA_OBJECT, DataObject), _tmp9_);
#line 636 "/home/jens/Source/shotwell/src/Photo.vala"
_alteration_unref0 (_tmp9_);
#line 5343 "Photo.c"
}
void photo_import_developed_backing_photo (PhotoRow* row, RawDeveloper d, BackingPhotoRow* bpr, GError** error) {
GFile* file = NULL;
BackingPhotoRow* _tmp0_ = NULL;
const gchar* _tmp1_ = NULL;
GFile* _tmp2_ = NULL;
GFileInfo* info = NULL;
GFile* _tmp3_ = NULL;
GFileInfo* _tmp4_ = NULL;
GTimeVal timestamp = {0};
GFileInfo* _tmp5_ = NULL;
GTimeVal _tmp6_ = {0};
PhotoFileInterrogator* interrogator = NULL;
GFile* _tmp7_ = NULL;
PhotoFileInterrogator* _tmp8_ = NULL;
PhotoFileInterrogator* _tmp9_ = NULL;
DetectedPhotoInformation* detected = NULL;
PhotoFileInterrogator* _tmp10_ = NULL;
DetectedPhotoInformation* _tmp11_ = NULL;
gboolean _tmp12_ = FALSE;
DetectedPhotoInformation* _tmp13_ = NULL;
BackingPhotoRow* _tmp16_ = NULL;
DetectedPhotoInformation* _tmp17_ = NULL;
Dimensions _tmp18_ = {0};
BackingPhotoRow* _tmp19_ = NULL;
GFileInfo* _tmp20_ = NULL;
gint64 _tmp21_ = 0LL;
BackingPhotoRow* _tmp22_ = NULL;
GTimeVal _tmp23_ = {0};
glong _tmp24_ = 0L;
Orientation _tmp25_ = 0;
DetectedPhotoInformation* _tmp26_ = NULL;
PhotoMetadata* _tmp27_ = NULL;
BackingPhotoRow* _tmp31_ = NULL;
BackingPhotoTable* _tmp32_ = NULL;
BackingPhotoTable* _tmp33_ = NULL;
BackingPhotoRow* _tmp34_ = NULL;
PhotoTable* _tmp35_ = NULL;
PhotoTable* _tmp36_ = NULL;
PhotoRow* _tmp37_ = NULL;
RawDeveloper _tmp38_ = 0;
BackingPhotoRow* _tmp39_ = NULL;
BackingPhotoID _tmp40_ = {0};
GError * _inner_error_ = NULL;
#line 639 "/home/jens/Source/shotwell/src/Photo.vala"
g_return_if_fail (IS_PHOTO_ROW (row));
#line 639 "/home/jens/Source/shotwell/src/Photo.vala"
g_return_if_fail (IS_BACKING_PHOTO_ROW (bpr));
#line 641 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp0_ = bpr;
#line 641 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp1_ = _tmp0_->filepath;
#line 641 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp2_ = g_file_new_for_path (_tmp1_);
#line 641 "/home/jens/Source/shotwell/src/Photo.vala"
file = _tmp2_;
#line 642 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp3_ = file;
#line 642 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp4_ = g_file_query_info (_tmp3_, DIRECTORY_MONITOR_SUPPLIED_ATTRIBUTES, G_FILE_QUERY_INFO_NOFOLLOW_SYMLINKS, NULL, &_inner_error_);
#line 642 "/home/jens/Source/shotwell/src/Photo.vala"
info = _tmp4_;
#line 642 "/home/jens/Source/shotwell/src/Photo.vala"
if (G_UNLIKELY (_inner_error_ != NULL)) {
#line 642 "/home/jens/Source/shotwell/src/Photo.vala"
g_propagate_error (error, _inner_error_);
#line 642 "/home/jens/Source/shotwell/src/Photo.vala"
_g_object_unref0 (file);
#line 642 "/home/jens/Source/shotwell/src/Photo.vala"
return;
#line 5416 "Photo.c"
}
#line 644 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp5_ = info;
#line 644 "/home/jens/Source/shotwell/src/Photo.vala"
g_file_info_get_modification_time (_tmp5_, &_tmp6_);
#line 644 "/home/jens/Source/shotwell/src/Photo.vala"
timestamp = _tmp6_;
#line 646 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp7_ = file;
#line 646 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp8_ = photo_file_interrogator_new (_tmp7_, PHOTO_FILE_SNIFFER_OPTIONS_GET_ALL);
#line 646 "/home/jens/Source/shotwell/src/Photo.vala"
interrogator = _tmp8_;
#line 648 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp9_ = interrogator;
#line 648 "/home/jens/Source/shotwell/src/Photo.vala"
photo_file_interrogator_interrogate (_tmp9_, &_inner_error_);
#line 648 "/home/jens/Source/shotwell/src/Photo.vala"
if (G_UNLIKELY (_inner_error_ != NULL)) {
#line 648 "/home/jens/Source/shotwell/src/Photo.vala"
g_propagate_error (error, _inner_error_);
#line 648 "/home/jens/Source/shotwell/src/Photo.vala"
_photo_file_interrogator_unref0 (interrogator);
#line 648 "/home/jens/Source/shotwell/src/Photo.vala"
_g_object_unref0 (info);
#line 648 "/home/jens/Source/shotwell/src/Photo.vala"
_g_object_unref0 (file);
#line 648 "/home/jens/Source/shotwell/src/Photo.vala"
return;
#line 5446 "Photo.c"
}
#line 650 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp10_ = interrogator;
#line 650 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp11_ = photo_file_interrogator_get_detected_photo_information (_tmp10_);
#line 650 "/home/jens/Source/shotwell/src/Photo.vala"
detected = _tmp11_;
#line 651 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp13_ = detected;
#line 651 "/home/jens/Source/shotwell/src/Photo.vala"
if (_tmp13_ == NULL) {
#line 651 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp12_ = TRUE;
#line 5460 "Photo.c"
} else {
PhotoFileInterrogator* _tmp14_ = NULL;
gboolean _tmp15_ = FALSE;
#line 651 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp14_ = interrogator;
#line 651 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp15_ = photo_file_interrogator_get_is_photo_corrupted (_tmp14_);
#line 651 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp12_ = _tmp15_;
#line 5470 "Photo.c"
}
#line 651 "/home/jens/Source/shotwell/src/Photo.vala"
if (_tmp12_) {
#line 654 "/home/jens/Source/shotwell/src/Photo.vala"
_detected_photo_information_unref0 (detected);
#line 654 "/home/jens/Source/shotwell/src/Photo.vala"
_photo_file_interrogator_unref0 (interrogator);
#line 654 "/home/jens/Source/shotwell/src/Photo.vala"
_g_object_unref0 (info);
#line 654 "/home/jens/Source/shotwell/src/Photo.vala"
_g_object_unref0 (file);
#line 654 "/home/jens/Source/shotwell/src/Photo.vala"
return;
#line 5484 "Photo.c"
}
#line 657 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp16_ = bpr;
#line 657 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp17_ = detected;
#line 657 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp18_ = _tmp17_->image_dim;
#line 657 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp16_->dim = _tmp18_;
#line 658 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp19_ = bpr;
#line 658 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp20_ = info;
#line 658 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp21_ = g_file_info_get_size (_tmp20_);
#line 658 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp19_->filesize = _tmp21_;
#line 659 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp22_ = bpr;
#line 659 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp23_ = timestamp;
#line 659 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp24_ = _tmp23_.tv_sec;
#line 659 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp22_->timestamp = (time_t) _tmp24_;
#line 660 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp26_ = detected;
#line 660 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp27_ = _tmp26_->metadata;
#line 660 "/home/jens/Source/shotwell/src/Photo.vala"
if (_tmp27_ != NULL) {
#line 5516 "Photo.c"
DetectedPhotoInformation* _tmp28_ = NULL;
PhotoMetadata* _tmp29_ = NULL;
Orientation _tmp30_ = 0;
#line 660 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp28_ = detected;
#line 660 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp29_ = _tmp28_->metadata;
#line 660 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp30_ = photo_metadata_get_orientation (_tmp29_);
#line 660 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp25_ = _tmp30_;
#line 5528 "Photo.c"
} else {
#line 661 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp25_ = ORIENTATION_TOP_LEFT;
#line 5532 "Photo.c"
}
#line 660 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp31_ = bpr;
#line 660 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp31_->original_orientation = _tmp25_;
#line 664 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp32_ = backing_photo_table_get_instance ();
#line 664 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp33_ = _tmp32_;
#line 664 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp34_ = bpr;
#line 664 "/home/jens/Source/shotwell/src/Photo.vala"
backing_photo_table_add (_tmp33_, _tmp34_, &_inner_error_);
#line 664 "/home/jens/Source/shotwell/src/Photo.vala"
_database_table_unref0 (_tmp33_);
#line 664 "/home/jens/Source/shotwell/src/Photo.vala"
if (G_UNLIKELY (_inner_error_ != NULL)) {
#line 664 "/home/jens/Source/shotwell/src/Photo.vala"
g_propagate_error (error, _inner_error_);
#line 664 "/home/jens/Source/shotwell/src/Photo.vala"
_detected_photo_information_unref0 (detected);
#line 664 "/home/jens/Source/shotwell/src/Photo.vala"
_photo_file_interrogator_unref0 (interrogator);
#line 664 "/home/jens/Source/shotwell/src/Photo.vala"
_g_object_unref0 (info);
#line 664 "/home/jens/Source/shotwell/src/Photo.vala"
_g_object_unref0 (file);
#line 664 "/home/jens/Source/shotwell/src/Photo.vala"
return;
#line 5562 "Photo.c"
}
#line 665 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp35_ = photo_table_get_instance ();
#line 665 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp36_ = _tmp35_;
#line 665 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp37_ = row;
#line 665 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp38_ = d;
#line 665 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp39_ = bpr;
#line 665 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp40_ = _tmp39_->id;
#line 665 "/home/jens/Source/shotwell/src/Photo.vala"
photo_table_update_raw_development (_tmp36_, _tmp37_, _tmp38_, &_tmp40_, &_inner_error_);
#line 665 "/home/jens/Source/shotwell/src/Photo.vala"
_database_table_unref0 (_tmp36_);
#line 665 "/home/jens/Source/shotwell/src/Photo.vala"
if (G_UNLIKELY (_inner_error_ != NULL)) {
#line 665 "/home/jens/Source/shotwell/src/Photo.vala"
g_propagate_error (error, _inner_error_);
#line 665 "/home/jens/Source/shotwell/src/Photo.vala"
_detected_photo_information_unref0 (detected);
#line 665 "/home/jens/Source/shotwell/src/Photo.vala"
_photo_file_interrogator_unref0 (interrogator);
#line 665 "/home/jens/Source/shotwell/src/Photo.vala"
_g_object_unref0 (info);
#line 665 "/home/jens/Source/shotwell/src/Photo.vala"
_g_object_unref0 (file);
#line 665 "/home/jens/Source/shotwell/src/Photo.vala"
return;
#line 5594 "Photo.c"
}
#line 639 "/home/jens/Source/shotwell/src/Photo.vala"
_detected_photo_information_unref0 (detected);
#line 639 "/home/jens/Source/shotwell/src/Photo.vala"
_photo_file_interrogator_unref0 (interrogator);
#line 639 "/home/jens/Source/shotwell/src/Photo.vala"
_g_object_unref0 (info);
#line 639 "/home/jens/Source/shotwell/src/Photo.vala"
_g_object_unref0 (file);
#line 5604 "Photo.c"
}
static void photo_develop_photo (Photo* self, RawDeveloper d) {
gboolean wrote_img_to_disk = FALSE;
BackingPhotoRow* bps = NULL;
RawDeveloper _tmp0_ = 0;
GError * _inner_error_ = NULL;
#line 670 "/home/jens/Source/shotwell/src/Photo.vala"
g_return_if_fail (IS_PHOTO (self));
#line 671 "/home/jens/Source/shotwell/src/Photo.vala"
wrote_img_to_disk = FALSE;
#line 672 "/home/jens/Source/shotwell/src/Photo.vala"
bps = NULL;
#line 674 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp0_ = d;
#line 674 "/home/jens/Source/shotwell/src/Photo.vala"
switch (_tmp0_) {
#line 674 "/home/jens/Source/shotwell/src/Photo.vala"
case RAW_DEVELOPER_SHOTWELL:
#line 5625 "Photo.c"
{
{
BackingPhotoRow* _tmp1_ = NULL;
RawDeveloper _tmp2_ = 0;
PhotoRow* _tmp3_ = NULL;
BackingPhotoRow* _tmp4_ = NULL;
const gchar* _tmp5_ = NULL;
BackingPhotoRow* _tmp6_ = NULL;
BackingPhotoRow* _tmp7_ = NULL;
GdkPixbuf* pix = NULL;
GdkPixbuf* _tmp14_ = NULL;
PhotoFileWriter* writer = NULL;
BackingPhotoRow* _tmp20_ = NULL;
const gchar* _tmp21_ = NULL;
PhotoFileWriter* _tmp22_ = NULL;
PhotoFileWriter* _tmp23_ = NULL;
GdkPixbuf* _tmp24_ = NULL;
PhotoMetadata* meta = NULL;
PhotoMetadata* _tmp25_ = NULL;
PhotoFileMetadataWriter* mwriter = NULL;
BackingPhotoRow* _tmp26_ = NULL;
const gchar* _tmp27_ = NULL;
PhotoFileMetadataWriter* _tmp28_ = NULL;
PhotoFileMetadataWriter* _tmp29_ = NULL;
PhotoMetadata* _tmp30_ = NULL;
#line 678 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp2_ = d;
#line 678 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp3_ = self->row;
#line 678 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp4_ = _tmp3_->master;
#line 678 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp5_ = _tmp4_->filepath;
#line 678 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp6_ = raw_developer_create_backing_row_for_development (_tmp2_, _tmp5_, NULL, &_inner_error_);
#line 678 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp1_ = _tmp6_;
#line 678 "/home/jens/Source/shotwell/src/Photo.vala"
if (G_UNLIKELY (_inner_error_ != NULL)) {
#line 5665 "Photo.c"
goto __catch265_g_error;
}
#line 678 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp7_ = _tmp1_;
#line 678 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp1_ = NULL;
#line 678 "/home/jens/Source/shotwell/src/Photo.vala"
_backing_photo_row_unref0 (bps);
#line 678 "/home/jens/Source/shotwell/src/Photo.vala"
bps = _tmp7_;
#line 679 "/home/jens/Source/shotwell/src/Photo.vala"
pix = NULL;
#line 5678 "Photo.c"
{
PhotoBackingReaders* _tmp8_ = NULL;
#line 680 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp8_ = self->priv->readers;
#line 680 "/home/jens/Source/shotwell/src/Photo.vala"
g_rec_mutex_lock (&self->priv->__lock_readers);
#line 5685 "Photo.c"
{
GdkPixbuf* _tmp9_ = NULL;
Scaling _tmp10_ = {0};
GdkPixbuf* _tmp11_ = NULL;
GdkPixbuf* _tmp12_ = NULL;
#line 685 "/home/jens/Source/shotwell/src/Photo.vala"
scaling_for_original (&_tmp10_);
#line 685 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp11_ = photo_get_master_pixbuf (self, &_tmp10_, FALSE, &_inner_error_);
#line 685 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp9_ = _tmp11_;
#line 685 "/home/jens/Source/shotwell/src/Photo.vala"
if (G_UNLIKELY (_inner_error_ != NULL)) {
#line 5699 "Photo.c"
goto __finally266;
}
#line 685 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp12_ = _tmp9_;
#line 685 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp9_ = NULL;
#line 685 "/home/jens/Source/shotwell/src/Photo.vala"
_g_object_unref0 (pix);
#line 685 "/home/jens/Source/shotwell/src/Photo.vala"
pix = _tmp12_;
#line 680 "/home/jens/Source/shotwell/src/Photo.vala"
_g_object_unref0 (_tmp9_);
#line 5712 "Photo.c"
}
__finally266:
{
PhotoBackingReaders* _tmp13_ = NULL;
#line 680 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp13_ = self->priv->readers;
#line 680 "/home/jens/Source/shotwell/src/Photo.vala"
g_rec_mutex_unlock (&self->priv->__lock_readers);
#line 5721 "Photo.c"
}
#line 680 "/home/jens/Source/shotwell/src/Photo.vala"
if (G_UNLIKELY (_inner_error_ != NULL)) {
#line 680 "/home/jens/Source/shotwell/src/Photo.vala"
_g_object_unref0 (pix);
#line 680 "/home/jens/Source/shotwell/src/Photo.vala"
_backing_photo_row_unref0 (_tmp1_);
#line 5729 "Photo.c"
goto __catch265_g_error;
}
}
#line 688 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp14_ = pix;
#line 688 "/home/jens/Source/shotwell/src/Photo.vala"
if (_tmp14_ == NULL) {
#line 689 "/home/jens/Source/shotwell/src/Photo.vala"
g_debug ("Photo.vala:689: Could not get preview pixbuf");
#line 690 "/home/jens/Source/shotwell/src/Photo.vala"
_g_object_unref0 (pix);
#line 690 "/home/jens/Source/shotwell/src/Photo.vala"
_backing_photo_row_unref0 (_tmp1_);
#line 5743 "Photo.c"
{
gboolean _tmp15_ = FALSE;
#line 714 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp15_ = wrote_img_to_disk;
#line 714 "/home/jens/Source/shotwell/src/Photo.vala"
if (_tmp15_) {
#line 5750 "Photo.c"
{
RawDeveloper _tmp16_ = 0;
BackingPhotoRow* _tmp17_ = NULL;
#line 717 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp16_ = d;
#line 717 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp17_ = bps;
#line 717 "/home/jens/Source/shotwell/src/Photo.vala"
photo_add_backing_photo_for_development (self, _tmp16_, _tmp17_, &_inner_error_);
#line 717 "/home/jens/Source/shotwell/src/Photo.vala"
if (G_UNLIKELY (_inner_error_ != NULL)) {
#line 5762 "Photo.c"
goto __catch267_g_error;
}
#line 719 "/home/jens/Source/shotwell/src/Photo.vala"
photo_notify_raw_development_modified (self);
#line 5767 "Photo.c"
}
goto __finally267;
__catch267_g_error:
{
GError* e = NULL;
GError* _tmp18_ = NULL;
const gchar* _tmp19_ = NULL;
#line 715 "/home/jens/Source/shotwell/src/Photo.vala"
e = _inner_error_;
#line 715 "/home/jens/Source/shotwell/src/Photo.vala"
_inner_error_ = NULL;
#line 721 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp18_ = e;
#line 721 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp19_ = _tmp18_->message;
#line 721 "/home/jens/Source/shotwell/src/Photo.vala"
g_debug ("Photo.vala:721: Error adding backing photo as development. Message: %s", _tmp19_);
#line 715 "/home/jens/Source/shotwell/src/Photo.vala"
_g_error_free0 (e);
#line 5787 "Photo.c"
}
__finally267:
#line 715 "/home/jens/Source/shotwell/src/Photo.vala"
if (G_UNLIKELY (_inner_error_ != NULL)) {
#line 5792 "Photo.c"
goto __catch265_g_error;
}
}
}
#line 690 "/home/jens/Source/shotwell/src/Photo.vala"
_backing_photo_row_unref0 (bps);
#line 690 "/home/jens/Source/shotwell/src/Photo.vala"
return;
#line 5801 "Photo.c"
}
#line 694 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp20_ = bps;
#line 694 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp21_ = _tmp20_->filepath;
#line 694 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp22_ = photo_file_format_create_writer (PHOTO_FILE_FORMAT_JFIF, _tmp21_, &_inner_error_);
#line 694 "/home/jens/Source/shotwell/src/Photo.vala"
writer = _tmp22_;
#line 694 "/home/jens/Source/shotwell/src/Photo.vala"
if (G_UNLIKELY (_inner_error_ != NULL)) {
#line 694 "/home/jens/Source/shotwell/src/Photo.vala"
_g_object_unref0 (pix);
#line 694 "/home/jens/Source/shotwell/src/Photo.vala"
_backing_photo_row_unref0 (_tmp1_);
#line 5817 "Photo.c"
goto __catch265_g_error;
}
#line 695 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp23_ = writer;
#line 695 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp24_ = pix;
#line 695 "/home/jens/Source/shotwell/src/Photo.vala"
photo_file_writer_write (_tmp23_, _tmp24_, JPEG_QUALITY_HIGH, &_inner_error_);
#line 695 "/home/jens/Source/shotwell/src/Photo.vala"
if (G_UNLIKELY (_inner_error_ != NULL)) {
#line 695 "/home/jens/Source/shotwell/src/Photo.vala"
_photo_file_adapter_unref0 (writer);
#line 695 "/home/jens/Source/shotwell/src/Photo.vala"
_g_object_unref0 (pix);
#line 695 "/home/jens/Source/shotwell/src/Photo.vala"
_backing_photo_row_unref0 (_tmp1_);
#line 5834 "Photo.c"
goto __catch265_g_error;
}
#line 703 "/home/jens/Source/shotwell/src/Photo.vala"
wrote_img_to_disk = TRUE;
#line 708 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp25_ = photo_get_master_metadata (self, &_inner_error_);
#line 708 "/home/jens/Source/shotwell/src/Photo.vala"
meta = _tmp25_;
#line 708 "/home/jens/Source/shotwell/src/Photo.vala"
if (G_UNLIKELY (_inner_error_ != NULL)) {
#line 708 "/home/jens/Source/shotwell/src/Photo.vala"
_photo_file_adapter_unref0 (writer);
#line 708 "/home/jens/Source/shotwell/src/Photo.vala"
_g_object_unref0 (pix);
#line 708 "/home/jens/Source/shotwell/src/Photo.vala"
_backing_photo_row_unref0 (_tmp1_);
#line 5851 "Photo.c"
goto __catch265_g_error;
}
#line 709 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp26_ = bps;
#line 709 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp27_ = _tmp26_->filepath;
#line 709 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp28_ = photo_file_format_create_metadata_writer (PHOTO_FILE_FORMAT_JFIF, _tmp27_, &_inner_error_);
#line 709 "/home/jens/Source/shotwell/src/Photo.vala"
mwriter = _tmp28_;
#line 709 "/home/jens/Source/shotwell/src/Photo.vala"
if (G_UNLIKELY (_inner_error_ != NULL)) {
#line 709 "/home/jens/Source/shotwell/src/Photo.vala"
_media_metadata_unref0 (meta);
#line 709 "/home/jens/Source/shotwell/src/Photo.vala"
_photo_file_adapter_unref0 (writer);
#line 709 "/home/jens/Source/shotwell/src/Photo.vala"
_g_object_unref0 (pix);
#line 709 "/home/jens/Source/shotwell/src/Photo.vala"
_backing_photo_row_unref0 (_tmp1_);
#line 5872 "Photo.c"
goto __catch265_g_error;
}
#line 710 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp29_ = mwriter;
#line 710 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp30_ = meta;
#line 710 "/home/jens/Source/shotwell/src/Photo.vala"
photo_file_metadata_writer_write_metadata (_tmp29_, _tmp30_, &_inner_error_);
#line 710 "/home/jens/Source/shotwell/src/Photo.vala"
if (G_UNLIKELY (_inner_error_ != NULL)) {
#line 710 "/home/jens/Source/shotwell/src/Photo.vala"
_photo_file_adapter_unref0 (mwriter);
#line 710 "/home/jens/Source/shotwell/src/Photo.vala"
_media_metadata_unref0 (meta);
#line 710 "/home/jens/Source/shotwell/src/Photo.vala"
_photo_file_adapter_unref0 (writer);
#line 710 "/home/jens/Source/shotwell/src/Photo.vala"
_g_object_unref0 (pix);
#line 710 "/home/jens/Source/shotwell/src/Photo.vala"
_backing_photo_row_unref0 (_tmp1_);
#line 5893 "Photo.c"
goto __catch265_g_error;
}
#line 676 "/home/jens/Source/shotwell/src/Photo.vala"
_photo_file_adapter_unref0 (mwriter);
#line 676 "/home/jens/Source/shotwell/src/Photo.vala"
_media_metadata_unref0 (meta);
#line 676 "/home/jens/Source/shotwell/src/Photo.vala"
_photo_file_adapter_unref0 (writer);
#line 676 "/home/jens/Source/shotwell/src/Photo.vala"
_g_object_unref0 (pix);
#line 676 "/home/jens/Source/shotwell/src/Photo.vala"
_backing_photo_row_unref0 (_tmp1_);
#line 5906 "Photo.c"
}
goto __finally265;
__catch265_g_error:
{
GError* err = NULL;
GError* _tmp31_ = NULL;
const gchar* _tmp32_ = NULL;
#line 676 "/home/jens/Source/shotwell/src/Photo.vala"
err = _inner_error_;
#line 676 "/home/jens/Source/shotwell/src/Photo.vala"
_inner_error_ = NULL;
#line 712 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp31_ = err;
#line 712 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp32_ = _tmp31_->message;
#line 712 "/home/jens/Source/shotwell/src/Photo.vala"
g_debug ("Photo.vala:712: Error developing photo: %s", _tmp32_);
#line 676 "/home/jens/Source/shotwell/src/Photo.vala"
_g_error_free0 (err);
#line 5926 "Photo.c"
}
__finally265:
{
gboolean _tmp33_ = FALSE;
#line 714 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp33_ = wrote_img_to_disk;
#line 714 "/home/jens/Source/shotwell/src/Photo.vala"
if (_tmp33_) {
#line 5935 "Photo.c"
{
RawDeveloper _tmp34_ = 0;
BackingPhotoRow* _tmp35_ = NULL;
#line 717 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp34_ = d;
#line 717 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp35_ = bps;
#line 717 "/home/jens/Source/shotwell/src/Photo.vala"
photo_add_backing_photo_for_development (self, _tmp34_, _tmp35_, &_inner_error_);
#line 717 "/home/jens/Source/shotwell/src/Photo.vala"
if (G_UNLIKELY (_inner_error_ != NULL)) {
#line 5947 "Photo.c"
goto __catch268_g_error;
}
#line 719 "/home/jens/Source/shotwell/src/Photo.vala"
photo_notify_raw_development_modified (self);
#line 5952 "Photo.c"
}
goto __finally268;
__catch268_g_error:
{
GError* e = NULL;
GError* _tmp36_ = NULL;
const gchar* _tmp37_ = NULL;
#line 715 "/home/jens/Source/shotwell/src/Photo.vala"
e = _inner_error_;
#line 715 "/home/jens/Source/shotwell/src/Photo.vala"
_inner_error_ = NULL;
#line 721 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp36_ = e;
#line 721 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp37_ = _tmp36_->message;
#line 721 "/home/jens/Source/shotwell/src/Photo.vala"
g_debug ("Photo.vala:721: Error adding backing photo as development. Message: %s", _tmp37_);
#line 715 "/home/jens/Source/shotwell/src/Photo.vala"
_g_error_free0 (e);
#line 5972 "Photo.c"
}
__finally268:
#line 715 "/home/jens/Source/shotwell/src/Photo.vala"
if (G_UNLIKELY (_inner_error_ != NULL)) {
#line 715 "/home/jens/Source/shotwell/src/Photo.vala"
_backing_photo_row_unref0 (bps);
#line 715 "/home/jens/Source/shotwell/src/Photo.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 715 "/home/jens/Source/shotwell/src/Photo.vala"
g_clear_error (&_inner_error_);
#line 715 "/home/jens/Source/shotwell/src/Photo.vala"
return;
#line 5985 "Photo.c"
}
}
}
#line 676 "/home/jens/Source/shotwell/src/Photo.vala"
if (G_UNLIKELY (_inner_error_ != NULL)) {
#line 676 "/home/jens/Source/shotwell/src/Photo.vala"
_backing_photo_row_unref0 (bps);
#line 676 "/home/jens/Source/shotwell/src/Photo.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 676 "/home/jens/Source/shotwell/src/Photo.vala"
g_clear_error (&_inner_error_);
#line 676 "/home/jens/Source/shotwell/src/Photo.vala"
return;
#line 5999 "Photo.c"
}
#line 727 "/home/jens/Source/shotwell/src/Photo.vala"
break;
#line 6003 "Photo.c"
}
#line 674 "/home/jens/Source/shotwell/src/Photo.vala"
case RAW_DEVELOPER_CAMERA:
#line 6007 "Photo.c"
{
#line 731 "/home/jens/Source/shotwell/src/Photo.vala"
break;
#line 6011 "Photo.c"
}
#line 674 "/home/jens/Source/shotwell/src/Photo.vala"
case RAW_DEVELOPER_EMBEDDED:
#line 6015 "Photo.c"
{
{
PhotoMetadata* meta = NULL;
PhotoMetadata* _tmp38_ = NULL;
guint c = 0U;
PhotoMetadata* _tmp39_ = NULL;
guint _tmp40_ = 0U;
guint _tmp41_ = 0U;
PhotoPreview* prev = NULL;
PhotoMetadata* _tmp47_ = NULL;
guint _tmp48_ = 0U;
PhotoPreview* _tmp49_ = NULL;
PhotoPreview* _tmp50_ = NULL;
GdkPixbuf* pix = NULL;
PhotoPreview* _tmp56_ = NULL;
GdkPixbuf* _tmp57_ = NULL;
GdkPixbuf* _tmp58_ = NULL;
BackingPhotoRow* _tmp64_ = NULL;
RawDeveloper _tmp65_ = 0;
PhotoRow* _tmp66_ = NULL;
BackingPhotoRow* _tmp67_ = NULL;
const gchar* _tmp68_ = NULL;
BackingPhotoRow* _tmp69_ = NULL;
BackingPhotoRow* _tmp70_ = NULL;
PhotoFileWriter* writer = NULL;
BackingPhotoRow* _tmp71_ = NULL;
const gchar* _tmp72_ = NULL;
PhotoFileWriter* _tmp73_ = NULL;
PhotoFileWriter* _tmp74_ = NULL;
GdkPixbuf* _tmp75_ = NULL;
PhotoFileMetadataWriter* mwriter = NULL;
BackingPhotoRow* _tmp76_ = NULL;
const gchar* _tmp77_ = NULL;
PhotoFileMetadataWriter* _tmp78_ = NULL;
PhotoFileMetadataWriter* _tmp79_ = NULL;
PhotoMetadata* _tmp80_ = NULL;
#line 736 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp38_ = photo_get_master_metadata (self, &_inner_error_);
#line 736 "/home/jens/Source/shotwell/src/Photo.vala"
meta = _tmp38_;
#line 736 "/home/jens/Source/shotwell/src/Photo.vala"
if (G_UNLIKELY (_inner_error_ != NULL)) {
#line 6058 "Photo.c"
goto __catch269_g_error;
}
#line 737 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp39_ = meta;
#line 737 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp40_ = photo_metadata_get_preview_count (_tmp39_);
#line 737 "/home/jens/Source/shotwell/src/Photo.vala"
c = _tmp40_;
#line 738 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp41_ = c;
#line 738 "/home/jens/Source/shotwell/src/Photo.vala"
if (_tmp41_ <= ((guint) 0)) {
#line 739 "/home/jens/Source/shotwell/src/Photo.vala"
_media_metadata_unref0 (meta);
#line 6073 "Photo.c"
{
gboolean _tmp42_ = FALSE;
#line 768 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp42_ = wrote_img_to_disk;
#line 768 "/home/jens/Source/shotwell/src/Photo.vala"
if (_tmp42_) {
#line 6080 "Photo.c"
{
RawDeveloper _tmp43_ = 0;
BackingPhotoRow* _tmp44_ = NULL;
#line 771 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp43_ = d;
#line 771 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp44_ = bps;
#line 771 "/home/jens/Source/shotwell/src/Photo.vala"
photo_add_backing_photo_for_development (self, _tmp43_, _tmp44_, &_inner_error_);
#line 771 "/home/jens/Source/shotwell/src/Photo.vala"
if (G_UNLIKELY (_inner_error_ != NULL)) {
#line 6092 "Photo.c"
goto __catch270_g_error;
}
#line 773 "/home/jens/Source/shotwell/src/Photo.vala"
photo_notify_raw_development_modified (self);
#line 6097 "Photo.c"
}
goto __finally270;
__catch270_g_error:
{
GError* e = NULL;
GError* _tmp45_ = NULL;
const gchar* _tmp46_ = NULL;
#line 769 "/home/jens/Source/shotwell/src/Photo.vala"
e = _inner_error_;
#line 769 "/home/jens/Source/shotwell/src/Photo.vala"
_inner_error_ = NULL;
#line 775 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp45_ = e;
#line 775 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp46_ = _tmp45_->message;
#line 775 "/home/jens/Source/shotwell/src/Photo.vala"
g_debug ("Photo.vala:775: Error adding backing photo as development. Message: %s", _tmp46_);
#line 769 "/home/jens/Source/shotwell/src/Photo.vala"
_g_error_free0 (e);
#line 6117 "Photo.c"
}
__finally270:
#line 769 "/home/jens/Source/shotwell/src/Photo.vala"
if (G_UNLIKELY (_inner_error_ != NULL)) {
#line 6122 "Photo.c"
goto __catch269_g_error;
}
}
}
#line 739 "/home/jens/Source/shotwell/src/Photo.vala"
_backing_photo_row_unref0 (bps);
#line 739 "/home/jens/Source/shotwell/src/Photo.vala"
return;
#line 6131 "Photo.c"
}
#line 740 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp47_ = meta;
#line 740 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp48_ = c;
#line 740 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp49_ = photo_metadata_get_preview (_tmp47_, _tmp48_ - 1);
#line 740 "/home/jens/Source/shotwell/src/Photo.vala"
prev = _tmp49_;
#line 741 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp50_ = prev;
#line 741 "/home/jens/Source/shotwell/src/Photo.vala"
if (_tmp50_ == NULL) {
#line 742 "/home/jens/Source/shotwell/src/Photo.vala"
g_debug ("Photo.vala:742: Could not get preview from metadata");
#line 743 "/home/jens/Source/shotwell/src/Photo.vala"
_photo_preview_unref0 (prev);
#line 743 "/home/jens/Source/shotwell/src/Photo.vala"
_media_metadata_unref0 (meta);
#line 6151 "Photo.c"
{
gboolean _tmp51_ = FALSE;
#line 768 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp51_ = wrote_img_to_disk;
#line 768 "/home/jens/Source/shotwell/src/Photo.vala"
if (_tmp51_) {
#line 6158 "Photo.c"
{
RawDeveloper _tmp52_ = 0;
BackingPhotoRow* _tmp53_ = NULL;
#line 771 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp52_ = d;
#line 771 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp53_ = bps;
#line 771 "/home/jens/Source/shotwell/src/Photo.vala"
photo_add_backing_photo_for_development (self, _tmp52_, _tmp53_, &_inner_error_);
#line 771 "/home/jens/Source/shotwell/src/Photo.vala"
if (G_UNLIKELY (_inner_error_ != NULL)) {
#line 6170 "Photo.c"
goto __catch271_g_error;
}
#line 773 "/home/jens/Source/shotwell/src/Photo.vala"
photo_notify_raw_development_modified (self);
#line 6175 "Photo.c"
}
goto __finally271;
__catch271_g_error:
{
GError* e = NULL;
GError* _tmp54_ = NULL;
const gchar* _tmp55_ = NULL;
#line 769 "/home/jens/Source/shotwell/src/Photo.vala"
e = _inner_error_;
#line 769 "/home/jens/Source/shotwell/src/Photo.vala"
_inner_error_ = NULL;
#line 775 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp54_ = e;
#line 775 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp55_ = _tmp54_->message;
#line 775 "/home/jens/Source/shotwell/src/Photo.vala"
g_debug ("Photo.vala:775: Error adding backing photo as development. Message: %s", _tmp55_);
#line 769 "/home/jens/Source/shotwell/src/Photo.vala"
_g_error_free0 (e);
#line 6195 "Photo.c"
}
__finally271:
#line 769 "/home/jens/Source/shotwell/src/Photo.vala"
if (G_UNLIKELY (_inner_error_ != NULL)) {
#line 6200 "Photo.c"
goto __catch269_g_error;
}
}
}
#line 743 "/home/jens/Source/shotwell/src/Photo.vala"
_backing_photo_row_unref0 (bps);
#line 743 "/home/jens/Source/shotwell/src/Photo.vala"
return;
#line 6209 "Photo.c"
}
#line 746 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp56_ = prev;
#line 746 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp57_ = photo_preview_get_pixbuf (_tmp56_, &_inner_error_);
#line 746 "/home/jens/Source/shotwell/src/Photo.vala"
pix = _tmp57_;
#line 746 "/home/jens/Source/shotwell/src/Photo.vala"
if (G_UNLIKELY (_inner_error_ != NULL)) {
#line 746 "/home/jens/Source/shotwell/src/Photo.vala"
_photo_preview_unref0 (prev);
#line 746 "/home/jens/Source/shotwell/src/Photo.vala"
_media_metadata_unref0 (meta);
#line 6223 "Photo.c"
goto __catch269_g_error;
}
#line 747 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp58_ = pix;
#line 747 "/home/jens/Source/shotwell/src/Photo.vala"
if (_tmp58_ == NULL) {
#line 748 "/home/jens/Source/shotwell/src/Photo.vala"
g_debug ("Photo.vala:748: Could not get preview pixbuf");
#line 749 "/home/jens/Source/shotwell/src/Photo.vala"
_g_object_unref0 (pix);
#line 749 "/home/jens/Source/shotwell/src/Photo.vala"
_photo_preview_unref0 (prev);
#line 749 "/home/jens/Source/shotwell/src/Photo.vala"
_media_metadata_unref0 (meta);
#line 6238 "Photo.c"
{
gboolean _tmp59_ = FALSE;
#line 768 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp59_ = wrote_img_to_disk;
#line 768 "/home/jens/Source/shotwell/src/Photo.vala"
if (_tmp59_) {
#line 6245 "Photo.c"
{
RawDeveloper _tmp60_ = 0;
BackingPhotoRow* _tmp61_ = NULL;
#line 771 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp60_ = d;
#line 771 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp61_ = bps;
#line 771 "/home/jens/Source/shotwell/src/Photo.vala"
photo_add_backing_photo_for_development (self, _tmp60_, _tmp61_, &_inner_error_);
#line 771 "/home/jens/Source/shotwell/src/Photo.vala"
if (G_UNLIKELY (_inner_error_ != NULL)) {
#line 6257 "Photo.c"
goto __catch272_g_error;
}
#line 773 "/home/jens/Source/shotwell/src/Photo.vala"
photo_notify_raw_development_modified (self);
#line 6262 "Photo.c"
}
goto __finally272;
__catch272_g_error:
{
GError* e = NULL;
GError* _tmp62_ = NULL;
const gchar* _tmp63_ = NULL;
#line 769 "/home/jens/Source/shotwell/src/Photo.vala"
e = _inner_error_;
#line 769 "/home/jens/Source/shotwell/src/Photo.vala"
_inner_error_ = NULL;
#line 775 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp62_ = e;
#line 775 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp63_ = _tmp62_->message;
#line 775 "/home/jens/Source/shotwell/src/Photo.vala"
g_debug ("Photo.vala:775: Error adding backing photo as development. Message: %s", _tmp63_);
#line 769 "/home/jens/Source/shotwell/src/Photo.vala"
_g_error_free0 (e);
#line 6282 "Photo.c"
}
__finally272:
#line 769 "/home/jens/Source/shotwell/src/Photo.vala"
if (G_UNLIKELY (_inner_error_ != NULL)) {
#line 6287 "Photo.c"
goto __catch269_g_error;
}
}
}
#line 749 "/home/jens/Source/shotwell/src/Photo.vala"
_backing_photo_row_unref0 (bps);
#line 749 "/home/jens/Source/shotwell/src/Photo.vala"
return;
#line 6296 "Photo.c"
}
#line 753 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp65_ = d;
#line 753 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp66_ = self->row;
#line 753 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp67_ = _tmp66_->master;
#line 753 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp68_ = _tmp67_->filepath;
#line 753 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp69_ = raw_developer_create_backing_row_for_development (_tmp65_, _tmp68_, NULL, &_inner_error_);
#line 753 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp64_ = _tmp69_;
#line 753 "/home/jens/Source/shotwell/src/Photo.vala"
if (G_UNLIKELY (_inner_error_ != NULL)) {
#line 753 "/home/jens/Source/shotwell/src/Photo.vala"
_g_object_unref0 (pix);
#line 753 "/home/jens/Source/shotwell/src/Photo.vala"
_photo_preview_unref0 (prev);
#line 753 "/home/jens/Source/shotwell/src/Photo.vala"
_media_metadata_unref0 (meta);
#line 6318 "Photo.c"
goto __catch269_g_error;
}
#line 753 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp70_ = _tmp64_;
#line 753 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp64_ = NULL;
#line 753 "/home/jens/Source/shotwell/src/Photo.vala"
_backing_photo_row_unref0 (bps);
#line 753 "/home/jens/Source/shotwell/src/Photo.vala"
bps = _tmp70_;
#line 754 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp71_ = bps;
#line 754 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp72_ = _tmp71_->filepath;
#line 754 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp73_ = photo_file_format_create_writer (PHOTO_FILE_FORMAT_JFIF, _tmp72_, &_inner_error_);
#line 754 "/home/jens/Source/shotwell/src/Photo.vala"
writer = _tmp73_;
#line 754 "/home/jens/Source/shotwell/src/Photo.vala"
if (G_UNLIKELY (_inner_error_ != NULL)) {
#line 754 "/home/jens/Source/shotwell/src/Photo.vala"
_backing_photo_row_unref0 (_tmp64_);
#line 754 "/home/jens/Source/shotwell/src/Photo.vala"
_g_object_unref0 (pix);
#line 754 "/home/jens/Source/shotwell/src/Photo.vala"
_photo_preview_unref0 (prev);
#line 754 "/home/jens/Source/shotwell/src/Photo.vala"
_media_metadata_unref0 (meta);
#line 6347 "Photo.c"
goto __catch269_g_error;
}
#line 755 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp74_ = writer;
#line 755 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp75_ = pix;
#line 755 "/home/jens/Source/shotwell/src/Photo.vala"
photo_file_writer_write (_tmp74_, _tmp75_, JPEG_QUALITY_HIGH, &_inner_error_);
#line 755 "/home/jens/Source/shotwell/src/Photo.vala"
if (G_UNLIKELY (_inner_error_ != NULL)) {
#line 755 "/home/jens/Source/shotwell/src/Photo.vala"
_photo_file_adapter_unref0 (writer);
#line 755 "/home/jens/Source/shotwell/src/Photo.vala"
_backing_photo_row_unref0 (_tmp64_);
#line 755 "/home/jens/Source/shotwell/src/Photo.vala"
_g_object_unref0 (pix);
#line 755 "/home/jens/Source/shotwell/src/Photo.vala"
_photo_preview_unref0 (prev);
#line 755 "/home/jens/Source/shotwell/src/Photo.vala"
_media_metadata_unref0 (meta);
#line 6368 "Photo.c"
goto __catch269_g_error;
}
#line 759 "/home/jens/Source/shotwell/src/Photo.vala"
wrote_img_to_disk = TRUE;
#line 762 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp76_ = bps;
#line 762 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp77_ = _tmp76_->filepath;
#line 762 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp78_ = photo_file_format_create_metadata_writer (PHOTO_FILE_FORMAT_JFIF, _tmp77_, &_inner_error_);
#line 762 "/home/jens/Source/shotwell/src/Photo.vala"
mwriter = _tmp78_;
#line 762 "/home/jens/Source/shotwell/src/Photo.vala"
if (G_UNLIKELY (_inner_error_ != NULL)) {
#line 762 "/home/jens/Source/shotwell/src/Photo.vala"
_photo_file_adapter_unref0 (writer);
#line 762 "/home/jens/Source/shotwell/src/Photo.vala"
_backing_photo_row_unref0 (_tmp64_);
#line 762 "/home/jens/Source/shotwell/src/Photo.vala"
_g_object_unref0 (pix);
#line 762 "/home/jens/Source/shotwell/src/Photo.vala"
_photo_preview_unref0 (prev);
#line 762 "/home/jens/Source/shotwell/src/Photo.vala"
_media_metadata_unref0 (meta);
#line 6393 "Photo.c"
goto __catch269_g_error;
}
#line 763 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp79_ = mwriter;
#line 763 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp80_ = meta;
#line 763 "/home/jens/Source/shotwell/src/Photo.vala"
photo_file_metadata_writer_write_metadata (_tmp79_, _tmp80_, &_inner_error_);
#line 763 "/home/jens/Source/shotwell/src/Photo.vala"
if (G_UNLIKELY (_inner_error_ != NULL)) {
#line 763 "/home/jens/Source/shotwell/src/Photo.vala"
_photo_file_adapter_unref0 (mwriter);
#line 763 "/home/jens/Source/shotwell/src/Photo.vala"
_photo_file_adapter_unref0 (writer);
#line 763 "/home/jens/Source/shotwell/src/Photo.vala"
_backing_photo_row_unref0 (_tmp64_);
#line 763 "/home/jens/Source/shotwell/src/Photo.vala"
_g_object_unref0 (pix);
#line 763 "/home/jens/Source/shotwell/src/Photo.vala"
_photo_preview_unref0 (prev);
#line 763 "/home/jens/Source/shotwell/src/Photo.vala"
_media_metadata_unref0 (meta);
#line 6416 "Photo.c"
goto __catch269_g_error;
}
#line 734 "/home/jens/Source/shotwell/src/Photo.vala"
_photo_file_adapter_unref0 (mwriter);
#line 734 "/home/jens/Source/shotwell/src/Photo.vala"
_photo_file_adapter_unref0 (writer);
#line 734 "/home/jens/Source/shotwell/src/Photo.vala"
_backing_photo_row_unref0 (_tmp64_);
#line 734 "/home/jens/Source/shotwell/src/Photo.vala"
_g_object_unref0 (pix);
#line 734 "/home/jens/Source/shotwell/src/Photo.vala"
_photo_preview_unref0 (prev);
#line 734 "/home/jens/Source/shotwell/src/Photo.vala"
_media_metadata_unref0 (meta);
#line 6431 "Photo.c"
}
goto __finally269;
__catch269_g_error:
{
GError* e = NULL;
GError* _tmp81_ = NULL;
const gchar* _tmp82_ = NULL;
#line 734 "/home/jens/Source/shotwell/src/Photo.vala"
e = _inner_error_;
#line 734 "/home/jens/Source/shotwell/src/Photo.vala"
_inner_error_ = NULL;
#line 765 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp81_ = e;
#line 765 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp82_ = _tmp81_->message;
#line 765 "/home/jens/Source/shotwell/src/Photo.vala"
g_debug ("Photo.vala:765: Error accessing embedded preview. Message: %s", _tmp82_);
#line 766 "/home/jens/Source/shotwell/src/Photo.vala"
_g_error_free0 (e);
#line 6451 "Photo.c"
{
gboolean _tmp83_ = FALSE;
#line 768 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp83_ = wrote_img_to_disk;
#line 768 "/home/jens/Source/shotwell/src/Photo.vala"
if (_tmp83_) {
#line 6458 "Photo.c"
{
RawDeveloper _tmp84_ = 0;
BackingPhotoRow* _tmp85_ = NULL;
#line 771 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp84_ = d;
#line 771 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp85_ = bps;
#line 771 "/home/jens/Source/shotwell/src/Photo.vala"
photo_add_backing_photo_for_development (self, _tmp84_, _tmp85_, &_inner_error_);
#line 771 "/home/jens/Source/shotwell/src/Photo.vala"
if (G_UNLIKELY (_inner_error_ != NULL)) {
#line 6470 "Photo.c"
goto __catch273_g_error;
}
#line 773 "/home/jens/Source/shotwell/src/Photo.vala"
photo_notify_raw_development_modified (self);
#line 6475 "Photo.c"
}
goto __finally273;
__catch273_g_error:
{
GError* e = NULL;
GError* _tmp86_ = NULL;
const gchar* _tmp87_ = NULL;
#line 769 "/home/jens/Source/shotwell/src/Photo.vala"
e = _inner_error_;
#line 769 "/home/jens/Source/shotwell/src/Photo.vala"
_inner_error_ = NULL;
#line 775 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp86_ = e;
#line 775 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp87_ = _tmp86_->message;
#line 775 "/home/jens/Source/shotwell/src/Photo.vala"
g_debug ("Photo.vala:775: Error adding backing photo as development. Message: %s", _tmp87_);
#line 769 "/home/jens/Source/shotwell/src/Photo.vala"
_g_error_free0 (e);
#line 6495 "Photo.c"
}
__finally273:
#line 769 "/home/jens/Source/shotwell/src/Photo.vala"
if (G_UNLIKELY (_inner_error_ != NULL)) {
#line 769 "/home/jens/Source/shotwell/src/Photo.vala"
_backing_photo_row_unref0 (bps);
#line 6502 "Photo.c"
}
}
}
#line 766 "/home/jens/Source/shotwell/src/Photo.vala"
_backing_photo_row_unref0 (bps);
#line 766 "/home/jens/Source/shotwell/src/Photo.vala"
return;
#line 6510 "Photo.c"
}
__finally269:
{
gboolean _tmp88_ = FALSE;
#line 768 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp88_ = wrote_img_to_disk;
#line 768 "/home/jens/Source/shotwell/src/Photo.vala"
if (_tmp88_) {
#line 6519 "Photo.c"
{
RawDeveloper _tmp89_ = 0;
BackingPhotoRow* _tmp90_ = NULL;
#line 771 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp89_ = d;
#line 771 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp90_ = bps;
#line 771 "/home/jens/Source/shotwell/src/Photo.vala"
photo_add_backing_photo_for_development (self, _tmp89_, _tmp90_, &_inner_error_);
#line 771 "/home/jens/Source/shotwell/src/Photo.vala"
if (G_UNLIKELY (_inner_error_ != NULL)) {
#line 6531 "Photo.c"
goto __catch274_g_error;
}
#line 773 "/home/jens/Source/shotwell/src/Photo.vala"
photo_notify_raw_development_modified (self);
#line 6536 "Photo.c"
}
goto __finally274;
__catch274_g_error:
{
GError* e = NULL;
GError* _tmp91_ = NULL;
const gchar* _tmp92_ = NULL;
#line 769 "/home/jens/Source/shotwell/src/Photo.vala"
e = _inner_error_;
#line 769 "/home/jens/Source/shotwell/src/Photo.vala"
_inner_error_ = NULL;
#line 775 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp91_ = e;
#line 775 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp92_ = _tmp91_->message;
#line 775 "/home/jens/Source/shotwell/src/Photo.vala"
g_debug ("Photo.vala:775: Error adding backing photo as development. Message: %s", _tmp92_);
#line 769 "/home/jens/Source/shotwell/src/Photo.vala"
_g_error_free0 (e);
#line 6556 "Photo.c"
}
__finally274:
#line 769 "/home/jens/Source/shotwell/src/Photo.vala"
if (G_UNLIKELY (_inner_error_ != NULL)) {
#line 769 "/home/jens/Source/shotwell/src/Photo.vala"
_backing_photo_row_unref0 (bps);
#line 769 "/home/jens/Source/shotwell/src/Photo.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 769 "/home/jens/Source/shotwell/src/Photo.vala"
g_clear_error (&_inner_error_);
#line 769 "/home/jens/Source/shotwell/src/Photo.vala"
return;
#line 6569 "Photo.c"
}
}
}
#line 734 "/home/jens/Source/shotwell/src/Photo.vala"
if (G_UNLIKELY (_inner_error_ != NULL)) {
#line 734 "/home/jens/Source/shotwell/src/Photo.vala"
_backing_photo_row_unref0 (bps);
#line 734 "/home/jens/Source/shotwell/src/Photo.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 734 "/home/jens/Source/shotwell/src/Photo.vala"
g_clear_error (&_inner_error_);
#line 734 "/home/jens/Source/shotwell/src/Photo.vala"
return;
#line 6583 "Photo.c"
}
#line 780 "/home/jens/Source/shotwell/src/Photo.vala"
break;
#line 6587 "Photo.c"
}
default:
{
#line 783 "/home/jens/Source/shotwell/src/Photo.vala"
g_assert_not_reached ();
#line 6593 "Photo.c"
}
}
#line 670 "/home/jens/Source/shotwell/src/Photo.vala"
_backing_photo_row_unref0 (bps);
#line 6598 "Photo.c"
}
void photo_set_default_raw_developer (Photo* self, RawDeveloper d) {
GError * _inner_error_ = NULL;
#line 788 "/home/jens/Source/shotwell/src/Photo.vala"
g_return_if_fail (IS_PHOTO (self));
#line 6606 "Photo.c"
{
PhotoRow* _tmp0_ = NULL;
#line 789 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp0_ = self->row;
#line 789 "/home/jens/Source/shotwell/src/Photo.vala"
g_rec_mutex_lock (&self->priv->__lock_row);
#line 6613 "Photo.c"
{
PhotoRow* _tmp1_ = NULL;
RawDeveloper _tmp2_ = 0;
#line 790 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp1_ = self->row;
#line 790 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp2_ = d;
#line 790 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp1_->developer = _tmp2_;
#line 6623 "Photo.c"
}
__finally275:
{
PhotoRow* _tmp3_ = NULL;
#line 789 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp3_ = self->row;
#line 789 "/home/jens/Source/shotwell/src/Photo.vala"
g_rec_mutex_unlock (&self->priv->__lock_row);
#line 6632 "Photo.c"
}
#line 789 "/home/jens/Source/shotwell/src/Photo.vala"
if (G_UNLIKELY (_inner_error_ != NULL)) {
#line 789 "/home/jens/Source/shotwell/src/Photo.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 789 "/home/jens/Source/shotwell/src/Photo.vala"
g_clear_error (&_inner_error_);
#line 789 "/home/jens/Source/shotwell/src/Photo.vala"
return;
#line 6642 "Photo.c"
}
}
}
void photo_set_raw_developer (Photo* self, RawDeveloper d) {
PhotoFileFormat _tmp0_ = 0;
gboolean _tmp1_ = FALSE;
gboolean _tmp2_ = FALSE;
gboolean _tmp4_ = FALSE;
Alteration* _tmp48_ = NULL;
Alteration* _tmp49_ = NULL;
GError * _inner_error_ = NULL;
#line 795 "/home/jens/Source/shotwell/src/Photo.vala"
g_return_if_fail (IS_PHOTO (self));
#line 796 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp0_ = photo_get_master_file_format (self);
#line 796 "/home/jens/Source/shotwell/src/Photo.vala"
if (_tmp0_ != PHOTO_FILE_FORMAT_RAW) {
#line 797 "/home/jens/Source/shotwell/src/Photo.vala"
return;
#line 6664 "Photo.c"
}
#line 802 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp2_ = photo_is_raw_developer_available (self, RAW_DEVELOPER_CAMERA);
#line 802 "/home/jens/Source/shotwell/src/Photo.vala"
if (_tmp2_) {
#line 6670 "Photo.c"
RawDeveloper _tmp3_ = 0;
#line 802 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp3_ = d;
#line 802 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp1_ = _tmp3_ == RAW_DEVELOPER_EMBEDDED;
#line 6676 "Photo.c"
} else {
#line 802 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp1_ = FALSE;
#line 6680 "Photo.c"
}
#line 802 "/home/jens/Source/shotwell/src/Photo.vala"
if (_tmp1_) {
#line 803 "/home/jens/Source/shotwell/src/Photo.vala"
d = RAW_DEVELOPER_CAMERA;
#line 6686 "Photo.c"
}
#line 807 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp4_ = photo_is_raw_developer_available (self, RAW_DEVELOPER_EMBEDDED);
#line 807 "/home/jens/Source/shotwell/src/Photo.vala"
if (!_tmp4_) {
#line 808 "/home/jens/Source/shotwell/src/Photo.vala"
d = RAW_DEVELOPER_SHOTWELL;
#line 6694 "Photo.c"
}
{
GeeHashMap* _tmp5_ = NULL;
#line 810 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp5_ = self->priv->developments;
#line 810 "/home/jens/Source/shotwell/src/Photo.vala"
g_rec_mutex_lock (&self->priv->__lock_developments);
#line 6702 "Photo.c"
{
RawDeveloper stale_raw_developer = 0;
PhotoRow* _tmp6_ = NULL;
RawDeveloper _tmp7_ = 0;
RawDeveloper _tmp8_ = 0;
gboolean _tmp9_ = FALSE;
GeeHashMap* _tmp15_ = NULL;
RawDeveloper _tmp16_ = 0;
gboolean _tmp17_ = FALSE;
PhotoRow* _tmp19_ = NULL;
RawDeveloper _tmp20_ = 0;
GeeHashMap* _tmp21_ = NULL;
RawDeveloper _tmp22_ = 0;
gpointer _tmp23_ = NULL;
PhotoBackingReaders* _tmp24_ = NULL;
BackingPhotoRow* _tmp25_ = NULL;
PhotoFileFormat _tmp26_ = 0;
BackingPhotoRow* _tmp27_ = NULL;
const gchar* _tmp28_ = NULL;
PhotoFileReader* _tmp29_ = NULL;
BackingPhotoRow* _tmp30_ = NULL;
Orientation _tmp31_ = 0;
gboolean _tmp41_ = FALSE;
RawDeveloper _tmp42_ = 0;
#line 811 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp6_ = self->row;
#line 811 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp7_ = _tmp6_->developer;
#line 811 "/home/jens/Source/shotwell/src/Photo.vala"
stale_raw_developer = _tmp7_;
#line 814 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp8_ = d;
#line 814 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp9_ = photo_is_raw_developer_complete (self, _tmp8_);
#line 814 "/home/jens/Source/shotwell/src/Photo.vala"
if (!_tmp9_) {
#line 6739 "Photo.c"
RawDeveloper _tmp10_ = 0;
#line 815 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp10_ = d;
#line 815 "/home/jens/Source/shotwell/src/Photo.vala"
photo_develop_photo (self, _tmp10_);
#line 6745 "Photo.c"
{
GdkPixbuf* _tmp11_ = NULL;
GdkPixbuf* _tmp12_ = NULL;
#line 817 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp11_ = photo_get_prefetched_copy (self, &_inner_error_);
#line 817 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp12_ = _tmp11_;
#line 817 "/home/jens/Source/shotwell/src/Photo.vala"
_g_object_unref0 (_tmp12_);
#line 817 "/home/jens/Source/shotwell/src/Photo.vala"
if (G_UNLIKELY (_inner_error_ != NULL)) {
#line 6757 "Photo.c"
goto __catch277_g_error;
}
}
goto __finally277;
__catch277_g_error:
{
GError* e = NULL;
#line 816 "/home/jens/Source/shotwell/src/Photo.vala"
e = _inner_error_;
#line 816 "/home/jens/Source/shotwell/src/Photo.vala"
_inner_error_ = NULL;
#line 820 "/home/jens/Source/shotwell/src/Photo.vala"
_g_error_free0 (e);
#line 6771 "Photo.c"
{
GeeHashMap* _tmp13_ = NULL;
#line 810 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp13_ = self->priv->developments;
#line 810 "/home/jens/Source/shotwell/src/Photo.vala"
g_rec_mutex_unlock (&self->priv->__lock_developments);
#line 6778 "Photo.c"
}
#line 820 "/home/jens/Source/shotwell/src/Photo.vala"
return;
#line 6782 "Photo.c"
}
__finally277:
#line 816 "/home/jens/Source/shotwell/src/Photo.vala"
if (G_UNLIKELY (_inner_error_ != NULL)) {
#line 6787 "Photo.c"
{
GeeHashMap* _tmp14_ = NULL;
#line 810 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp14_ = self->priv->developments;
#line 810 "/home/jens/Source/shotwell/src/Photo.vala"
g_rec_mutex_unlock (&self->priv->__lock_developments);
#line 6794 "Photo.c"
}
#line 816 "/home/jens/Source/shotwell/src/Photo.vala"
g_critical ("file %s: line %d: unexpected error: %s (%s, %d)", __FILE__, __LINE__, _inner_error_->message, g_quark_to_string (_inner_error_->domain), _inner_error_->code);
#line 816 "/home/jens/Source/shotwell/src/Photo.vala"
g_clear_error (&_inner_error_);
#line 816 "/home/jens/Source/shotwell/src/Photo.vala"
return;
#line 6802 "Photo.c"
}
}
#line 823 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp15_ = self->priv->developments;
#line 823 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp16_ = d;
#line 823 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp17_ = gee_abstract_map_has_key (G_TYPE_CHECK_INSTANCE_CAST (_tmp15_, GEE_TYPE_ABSTRACT_MAP, GeeAbstractMap), (gpointer) ((gintptr) _tmp16_));
#line 823 "/home/jens/Source/shotwell/src/Photo.vala"
if (!_tmp17_) {
#line 6813 "Photo.c"
{
GeeHashMap* _tmp18_ = NULL;
#line 810 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp18_ = self->priv->developments;
#line 810 "/home/jens/Source/shotwell/src/Photo.vala"
g_rec_mutex_unlock (&self->priv->__lock_developments);
#line 6820 "Photo.c"
}
#line 824 "/home/jens/Source/shotwell/src/Photo.vala"
return;
#line 6824 "Photo.c"
}
#line 827 "/home/jens/Source/shotwell/src/Photo.vala"
photo_revert_to_master (self, FALSE);
#line 830 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp19_ = self->row;
#line 830 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp20_ = d;
#line 830 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp19_->developer = _tmp20_;
#line 831 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp21_ = self->priv->developments;
#line 831 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp22_ = d;
#line 831 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp23_ = gee_abstract_map_get (G_TYPE_CHECK_INSTANCE_CAST (_tmp21_, GEE_TYPE_ABSTRACT_MAP, GeeAbstractMap), (gpointer) ((gintptr) _tmp22_));
#line 831 "/home/jens/Source/shotwell/src/Photo.vala"
_backing_photo_row_unref0 (self->backing_photo_row);
#line 831 "/home/jens/Source/shotwell/src/Photo.vala"
self->backing_photo_row = (BackingPhotoRow*) _tmp23_;
#line 832 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp24_ = self->priv->readers;
#line 832 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp25_ = self->backing_photo_row;
#line 832 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp26_ = _tmp25_->file_format;
#line 832 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp27_ = self->backing_photo_row;
#line 832 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp28_ = _tmp27_->filepath;
#line 832 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp29_ = photo_file_format_create_reader (_tmp26_, _tmp28_);
#line 832 "/home/jens/Source/shotwell/src/Photo.vala"
_photo_file_adapter_unref0 (_tmp24_->developer);
#line 832 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp24_->developer = _tmp29_;
#line 834 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp30_ = self->backing_photo_row;
#line 834 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp31_ = _tmp30_->original_orientation;
#line 834 "/home/jens/Source/shotwell/src/Photo.vala"
photo_set_orientation (self, _tmp31_);
#line 6866 "Photo.c"
{
PhotoTable* _tmp32_ = NULL;
PhotoTable* _tmp33_ = NULL;
PhotoRow* _tmp34_ = NULL;
RawDeveloper _tmp35_ = 0;
BackingPhotoRow* _tmp36_ = NULL;
BackingPhotoID _tmp37_ = {0};
#line 837 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp32_ = photo_table_get_instance ();
#line 837 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp33_ = _tmp32_;
#line 837 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp34_ = self->row;
#line 837 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp35_ = d;
#line 837 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp36_ = self->backing_photo_row;
#line 837 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp37_ = _tmp36_->id;
#line 837 "/home/jens/Source/shotwell/src/Photo.vala"
photo_table_update_raw_development (_tmp33_, _tmp34_, _tmp35_, &_tmp37_, &_inner_error_);
#line 837 "/home/jens/Source/shotwell/src/Photo.vala"
_database_table_unref0 (_tmp33_);
#line 837 "/home/jens/Source/shotwell/src/Photo.vala"
if (G_UNLIKELY (_inner_error_ != NULL)) {
#line 6892 "Photo.c"
goto __catch278_g_error;
}
}
goto __finally278;
__catch278_g_error:
{
GError* e = NULL;
GError* _tmp38_ = NULL;
const gchar* _tmp39_ = NULL;
#line 836 "/home/jens/Source/shotwell/src/Photo.vala"
e = _inner_error_;
#line 836 "/home/jens/Source/shotwell/src/Photo.vala"
_inner_error_ = NULL;
#line 839 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp38_ = e;
#line 839 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp39_ = _tmp38_->message;
#line 839 "/home/jens/Source/shotwell/src/Photo.vala"
g_warning ("Photo.vala:839: Error updating database: %s", _tmp39_);
#line 836 "/home/jens/Source/shotwell/src/Photo.vala"
_g_error_free0 (e);
#line 6914 "Photo.c"
}
__finally278:
#line 836 "/home/jens/Source/shotwell/src/Photo.vala"
if (G_UNLIKELY (_inner_error_ != NULL)) {
#line 6919 "Photo.c"
{
GeeHashMap* _tmp40_ = NULL;
#line 810 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp40_ = self->priv->developments;
#line 810 "/home/jens/Source/shotwell/src/Photo.vala"
g_rec_mutex_unlock (&self->priv->__lock_developments);
#line 6926 "Photo.c"
}
#line 836 "/home/jens/Source/shotwell/src/Photo.vala"
g_critical ("file %s: line %d: unexpected error: %s (%s, %d)", __FILE__, __LINE__, _inner_error_->message, g_quark_to_string (_inner_error_->domain), _inner_error_->code);
#line 836 "/home/jens/Source/shotwell/src/Photo.vala"
g_clear_error (&_inner_error_);
#line 836 "/home/jens/Source/shotwell/src/Photo.vala"
return;
#line 6934 "Photo.c"
}
#line 846 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp42_ = stale_raw_developer;
#line 846 "/home/jens/Source/shotwell/src/Photo.vala"
if (_tmp42_ != RAW_DEVELOPER_CAMERA) {
#line 6940 "Photo.c"
RawDeveloper _tmp43_ = 0;
PhotoRow* _tmp44_ = NULL;
RawDeveloper _tmp45_ = 0;
#line 847 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp43_ = stale_raw_developer;
#line 847 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp44_ = self->row;
#line 847 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp45_ = _tmp44_->developer;
#line 847 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp41_ = _tmp43_ != _tmp45_;
#line 6952 "Photo.c"
} else {
#line 846 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp41_ = FALSE;
#line 6956 "Photo.c"
}
#line 846 "/home/jens/Source/shotwell/src/Photo.vala"
if (_tmp41_) {
#line 6960 "Photo.c"
RawDeveloper _tmp46_ = 0;
#line 850 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp46_ = stale_raw_developer;
#line 850 "/home/jens/Source/shotwell/src/Photo.vala"
photo_delete_raw_development (self, _tmp46_);
#line 6966 "Photo.c"
}
}
__finally276:
{
GeeHashMap* _tmp47_ = NULL;
#line 810 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp47_ = self->priv->developments;
#line 810 "/home/jens/Source/shotwell/src/Photo.vala"
g_rec_mutex_unlock (&self->priv->__lock_developments);
#line 6976 "Photo.c"
}
#line 810 "/home/jens/Source/shotwell/src/Photo.vala"
if (G_UNLIKELY (_inner_error_ != NULL)) {
#line 810 "/home/jens/Source/shotwell/src/Photo.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 810 "/home/jens/Source/shotwell/src/Photo.vala"
g_clear_error (&_inner_error_);
#line 810 "/home/jens/Source/shotwell/src/Photo.vala"
return;
#line 6986 "Photo.c"
}
}
#line 857 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp48_ = alteration_new ("image", "developer");
#line 857 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp49_ = _tmp48_;
#line 857 "/home/jens/Source/shotwell/src/Photo.vala"
data_object_notify_altered (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_DATA_OBJECT, DataObject), _tmp49_);
#line 857 "/home/jens/Source/shotwell/src/Photo.vala"
_alteration_unref0 (_tmp49_);
#line 858 "/home/jens/Source/shotwell/src/Photo.vala"
photo_discard_prefetched (self);
#line 6999 "Photo.c"
}
RawDeveloper photo_get_raw_developer (Photo* self) {
RawDeveloper result = 0;
PhotoRow* _tmp0_ = NULL;
RawDeveloper _tmp1_ = 0;
#line 861 "/home/jens/Source/shotwell/src/Photo.vala"
g_return_val_if_fail (IS_PHOTO (self), 0);
#line 862 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp0_ = self->row;
#line 862 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp1_ = _tmp0_->developer;
#line 862 "/home/jens/Source/shotwell/src/Photo.vala"
result = _tmp1_;
#line 862 "/home/jens/Source/shotwell/src/Photo.vala"
return result;
#line 7017 "Photo.c"
}
static gboolean photo_delete_raw_development (Photo* self, RawDeveloper d) {
gboolean result = FALSE;
gboolean ret = FALSE;
GError * _inner_error_ = NULL;
#line 867 "/home/jens/Source/shotwell/src/Photo.vala"
g_return_val_if_fail (IS_PHOTO (self), FALSE);
#line 868 "/home/jens/Source/shotwell/src/Photo.vala"
ret = FALSE;
#line 7029 "Photo.c"
{
GeeHashMap* _tmp0_ = NULL;
#line 870 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp0_ = self->priv->developments;
#line 870 "/home/jens/Source/shotwell/src/Photo.vala"
g_rec_mutex_lock (&self->priv->__lock_developments);
#line 7036 "Photo.c"
{
GeeHashMap* _tmp1_ = NULL;
RawDeveloper _tmp2_ = 0;
gboolean _tmp3_ = FALSE;
gchar* _tmp5_ = NULL;
gchar* _tmp6_ = NULL;
RawDeveloper _tmp7_ = 0;
gchar* _tmp8_ = NULL;
gchar* _tmp9_ = NULL;
BackingPhotoRow* bpr = NULL;
GeeHashMap* _tmp10_ = NULL;
RawDeveloper _tmp11_ = 0;
gpointer _tmp12_ = NULL;
BackingPhotoRow* _tmp13_ = NULL;
const gchar* _tmp14_ = NULL;
GeeHashMap* _tmp37_ = NULL;
RawDeveloper _tmp38_ = 0;
gboolean _tmp39_ = FALSE;
#line 871 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp1_ = self->priv->developments;
#line 871 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp2_ = d;
#line 871 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp3_ = gee_abstract_map_has_key (G_TYPE_CHECK_INSTANCE_CAST (_tmp1_, GEE_TYPE_ABSTRACT_MAP, GeeAbstractMap), (gpointer) ((gintptr) _tmp2_));
#line 871 "/home/jens/Source/shotwell/src/Photo.vala"
if (!_tmp3_) {
#line 872 "/home/jens/Source/shotwell/src/Photo.vala"
result = FALSE;
#line 7065 "Photo.c"
{
GeeHashMap* _tmp4_ = NULL;
#line 870 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp4_ = self->priv->developments;
#line 870 "/home/jens/Source/shotwell/src/Photo.vala"
g_rec_mutex_unlock (&self->priv->__lock_developments);
#line 7072 "Photo.c"
}
#line 872 "/home/jens/Source/shotwell/src/Photo.vala"
return result;
#line 7076 "Photo.c"
}
#line 876 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp5_ = data_object_to_string (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_DATA_OBJECT, DataObject));
#line 876 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp6_ = _tmp5_;
#line 876 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp7_ = d;
#line 876 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp8_ = raw_developer_to_string (_tmp7_);
#line 876 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp9_ = _tmp8_;
#line 876 "/home/jens/Source/shotwell/src/Photo.vala"
g_debug ("Photo.vala:876: Delete raw development: %s %s", _tmp6_, _tmp9_);
#line 876 "/home/jens/Source/shotwell/src/Photo.vala"
_g_free0 (_tmp9_);
#line 876 "/home/jens/Source/shotwell/src/Photo.vala"
_g_free0 (_tmp6_);
#line 877 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp10_ = self->priv->developments;
#line 877 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp11_ = d;
#line 877 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp12_ = gee_abstract_map_get (G_TYPE_CHECK_INSTANCE_CAST (_tmp10_, GEE_TYPE_ABSTRACT_MAP, GeeAbstractMap), (gpointer) ((gintptr) _tmp11_));
#line 877 "/home/jens/Source/shotwell/src/Photo.vala"
bpr = (BackingPhotoRow*) _tmp12_;
#line 878 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp13_ = bpr;
#line 878 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp14_ = _tmp13_->filepath;
#line 878 "/home/jens/Source/shotwell/src/Photo.vala"
if (_tmp14_ != NULL) {
#line 7108 "Photo.c"
GFile* f = NULL;
BackingPhotoRow* _tmp15_ = NULL;
const gchar* _tmp16_ = NULL;
GFile* _tmp17_ = NULL;
#line 879 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp15_ = bpr;
#line 879 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp16_ = _tmp15_->filepath;
#line 879 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp17_ = g_file_new_for_path (_tmp16_);
#line 879 "/home/jens/Source/shotwell/src/Photo.vala"
f = _tmp17_;
#line 7121 "Photo.c"
{
RawDeveloper _tmp18_ = 0;
#line 881 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp18_ = d;
#line 881 "/home/jens/Source/shotwell/src/Photo.vala"
if (_tmp18_ == RAW_DEVELOPER_CAMERA) {
#line 7128 "Photo.c"
GFile* _tmp19_ = NULL;
#line 882 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp19_ = f;
#line 882 "/home/jens/Source/shotwell/src/Photo.vala"
g_file_trash (_tmp19_, NULL, &_inner_error_);
#line 882 "/home/jens/Source/shotwell/src/Photo.vala"
if (G_UNLIKELY (_inner_error_ != NULL)) {
#line 7136 "Photo.c"
goto __catch280_g_error;
}
} else {
GFile* _tmp20_ = NULL;
#line 884 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp20_ = f;
#line 884 "/home/jens/Source/shotwell/src/Photo.vala"
g_file_delete (_tmp20_, NULL, &_inner_error_);
#line 884 "/home/jens/Source/shotwell/src/Photo.vala"
if (G_UNLIKELY (_inner_error_ != NULL)) {
#line 7147 "Photo.c"
goto __catch280_g_error;
}
}
}
goto __finally280;
__catch280_g_error:
{
GError* e = NULL;
BackingPhotoRow* _tmp21_ = NULL;
const gchar* _tmp22_ = NULL;
GError* _tmp23_ = NULL;
const gchar* _tmp24_ = NULL;
#line 880 "/home/jens/Source/shotwell/src/Photo.vala"
e = _inner_error_;
#line 880 "/home/jens/Source/shotwell/src/Photo.vala"
_inner_error_ = NULL;
#line 886 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp21_ = bpr;
#line 886 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp22_ = _tmp21_->filepath;
#line 886 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp23_ = e;
#line 886 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp24_ = _tmp23_->message;
#line 886 "/home/jens/Source/shotwell/src/Photo.vala"
g_warning ("Photo.vala:886: Unable to delete RAW development: %s error: %s", _tmp22_, _tmp24_);
#line 880 "/home/jens/Source/shotwell/src/Photo.vala"
_g_error_free0 (e);
#line 7176 "Photo.c"
}
__finally280:
#line 880 "/home/jens/Source/shotwell/src/Photo.vala"
if (G_UNLIKELY (_inner_error_ != NULL)) {
#line 880 "/home/jens/Source/shotwell/src/Photo.vala"
_g_object_unref0 (f);
#line 880 "/home/jens/Source/shotwell/src/Photo.vala"
_backing_photo_row_unref0 (bpr);
#line 880 "/home/jens/Source/shotwell/src/Photo.vala"
_g_object_unref0 (f);
#line 880 "/home/jens/Source/shotwell/src/Photo.vala"
_backing_photo_row_unref0 (bpr);
#line 7189 "Photo.c"
{
GeeHashMap* _tmp25_ = NULL;
#line 870 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp25_ = self->priv->developments;
#line 870 "/home/jens/Source/shotwell/src/Photo.vala"
g_rec_mutex_unlock (&self->priv->__lock_developments);
#line 7196 "Photo.c"
}
#line 880 "/home/jens/Source/shotwell/src/Photo.vala"
g_critical ("file %s: line %d: unexpected error: %s (%s, %d)", __FILE__, __LINE__, _inner_error_->message, g_quark_to_string (_inner_error_->domain), _inner_error_->code);
#line 880 "/home/jens/Source/shotwell/src/Photo.vala"
g_clear_error (&_inner_error_);
#line 880 "/home/jens/Source/shotwell/src/Photo.vala"
return FALSE;
#line 7204 "Photo.c"
}
#line 878 "/home/jens/Source/shotwell/src/Photo.vala"
_g_object_unref0 (f);
#line 7208 "Photo.c"
}
{
PhotoTable* _tmp26_ = NULL;
PhotoTable* _tmp27_ = NULL;
PhotoRow* _tmp28_ = NULL;
RawDeveloper _tmp29_ = 0;
BackingPhotoTable* _tmp30_ = NULL;
BackingPhotoTable* _tmp31_ = NULL;
BackingPhotoRow* _tmp32_ = NULL;
BackingPhotoID _tmp33_ = {0};
#line 892 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp26_ = photo_table_get_instance ();
#line 892 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp27_ = _tmp26_;
#line 892 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp28_ = self->row;
#line 892 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp29_ = d;
#line 892 "/home/jens/Source/shotwell/src/Photo.vala"
photo_table_remove_development (_tmp27_, _tmp28_, _tmp29_, &_inner_error_);
#line 892 "/home/jens/Source/shotwell/src/Photo.vala"
_database_table_unref0 (_tmp27_);
#line 892 "/home/jens/Source/shotwell/src/Photo.vala"
if (G_UNLIKELY (_inner_error_ != NULL)) {
#line 7233 "Photo.c"
goto __catch281_g_error;
}
#line 893 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp30_ = backing_photo_table_get_instance ();
#line 893 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp31_ = _tmp30_;
#line 893 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp32_ = bpr;
#line 893 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp33_ = _tmp32_->id;
#line 893 "/home/jens/Source/shotwell/src/Photo.vala"
backing_photo_table_remove (_tmp31_, &_tmp33_, &_inner_error_);
#line 893 "/home/jens/Source/shotwell/src/Photo.vala"
_database_table_unref0 (_tmp31_);
#line 893 "/home/jens/Source/shotwell/src/Photo.vala"
if (G_UNLIKELY (_inner_error_ != NULL)) {
#line 7250 "Photo.c"
goto __catch281_g_error;
}
}
goto __finally281;
__catch281_g_error:
{
GError* e = NULL;
GError* _tmp34_ = NULL;
const gchar* _tmp35_ = NULL;
#line 891 "/home/jens/Source/shotwell/src/Photo.vala"
e = _inner_error_;
#line 891 "/home/jens/Source/shotwell/src/Photo.vala"
_inner_error_ = NULL;
#line 895 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp34_ = e;
#line 895 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp35_ = _tmp34_->message;
#line 895 "/home/jens/Source/shotwell/src/Photo.vala"
g_warning ("Photo.vala:895: Database error while deleting RAW development: %s", _tmp35_);
#line 891 "/home/jens/Source/shotwell/src/Photo.vala"
_g_error_free0 (e);
#line 7272 "Photo.c"
}
__finally281:
#line 891 "/home/jens/Source/shotwell/src/Photo.vala"
if (G_UNLIKELY (_inner_error_ != NULL)) {
#line 891 "/home/jens/Source/shotwell/src/Photo.vala"
_backing_photo_row_unref0 (bpr);
#line 891 "/home/jens/Source/shotwell/src/Photo.vala"
_backing_photo_row_unref0 (bpr);
#line 7281 "Photo.c"
{
GeeHashMap* _tmp36_ = NULL;
#line 870 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp36_ = self->priv->developments;
#line 870 "/home/jens/Source/shotwell/src/Photo.vala"
g_rec_mutex_unlock (&self->priv->__lock_developments);
#line 7288 "Photo.c"
}
#line 891 "/home/jens/Source/shotwell/src/Photo.vala"
g_critical ("file %s: line %d: unexpected error: %s (%s, %d)", __FILE__, __LINE__, _inner_error_->message, g_quark_to_string (_inner_error_->domain), _inner_error_->code);
#line 891 "/home/jens/Source/shotwell/src/Photo.vala"
g_clear_error (&_inner_error_);
#line 891 "/home/jens/Source/shotwell/src/Photo.vala"
return FALSE;
#line 7296 "Photo.c"
}
#line 898 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp37_ = self->priv->developments;
#line 898 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp38_ = d;
#line 898 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp39_ = gee_abstract_map_unset (G_TYPE_CHECK_INSTANCE_CAST (_tmp37_, GEE_TYPE_ABSTRACT_MAP, GeeAbstractMap), (gpointer) ((gintptr) _tmp38_), NULL);
#line 898 "/home/jens/Source/shotwell/src/Photo.vala"
ret = _tmp39_;
#line 870 "/home/jens/Source/shotwell/src/Photo.vala"
_backing_photo_row_unref0 (bpr);
#line 7308 "Photo.c"
}
__finally279:
{
GeeHashMap* _tmp40_ = NULL;
#line 870 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp40_ = self->priv->developments;
#line 870 "/home/jens/Source/shotwell/src/Photo.vala"
g_rec_mutex_unlock (&self->priv->__lock_developments);
#line 7317 "Photo.c"
}
#line 870 "/home/jens/Source/shotwell/src/Photo.vala"
if (G_UNLIKELY (_inner_error_ != NULL)) {
#line 870 "/home/jens/Source/shotwell/src/Photo.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 870 "/home/jens/Source/shotwell/src/Photo.vala"
g_clear_error (&_inner_error_);
#line 870 "/home/jens/Source/shotwell/src/Photo.vala"
return FALSE;
#line 7327 "Photo.c"
}
}
#line 901 "/home/jens/Source/shotwell/src/Photo.vala"
photo_notify_raw_development_modified (self);
#line 902 "/home/jens/Source/shotwell/src/Photo.vala"
result = ret;
#line 902 "/home/jens/Source/shotwell/src/Photo.vala"
return result;
#line 7336 "Photo.c"
}
void photo_redevelop_raw (Photo* self, RawDeveloper d) {
GError * _inner_error_ = NULL;
#line 906 "/home/jens/Source/shotwell/src/Photo.vala"
g_return_if_fail (IS_PHOTO (self));
#line 7344 "Photo.c"
{
GeeHashMap* _tmp0_ = NULL;
#line 907 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp0_ = self->priv->developments;
#line 907 "/home/jens/Source/shotwell/src/Photo.vala"
g_rec_mutex_lock (&self->priv->__lock_developments);
#line 7351 "Photo.c"
{
RawDeveloper _tmp1_ = 0;
RawDeveloper dev = 0;
RawDeveloper _tmp2_ = 0;
RawDeveloper _tmp3_ = 0;
RawDeveloper _tmp4_ = 0;
#line 908 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp1_ = d;
#line 908 "/home/jens/Source/shotwell/src/Photo.vala"
photo_delete_raw_development (self, _tmp1_);
#line 909 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp2_ = d;
#line 909 "/home/jens/Source/shotwell/src/Photo.vala"
dev = _tmp2_;
#line 910 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp3_ = dev;
#line 910 "/home/jens/Source/shotwell/src/Photo.vala"
if (_tmp3_ == RAW_DEVELOPER_CAMERA) {
#line 911 "/home/jens/Source/shotwell/src/Photo.vala"
dev = RAW_DEVELOPER_EMBEDDED;
#line 7372 "Photo.c"
}
#line 913 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp4_ = dev;
#line 913 "/home/jens/Source/shotwell/src/Photo.vala"
photo_set_raw_developer (self, _tmp4_);
#line 7378 "Photo.c"
}
__finally282:
{
GeeHashMap* _tmp5_ = NULL;
#line 907 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp5_ = self->priv->developments;
#line 907 "/home/jens/Source/shotwell/src/Photo.vala"
g_rec_mutex_unlock (&self->priv->__lock_developments);
#line 7387 "Photo.c"
}
#line 907 "/home/jens/Source/shotwell/src/Photo.vala"
if (G_UNLIKELY (_inner_error_ != NULL)) {
#line 907 "/home/jens/Source/shotwell/src/Photo.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 907 "/home/jens/Source/shotwell/src/Photo.vala"
g_clear_error (&_inner_error_);
#line 907 "/home/jens/Source/shotwell/src/Photo.vala"
return;
#line 7397 "Photo.c"
}
}
}
static void _vala_array_add251 (BackingFileState*** array, int* length, int* size, BackingFileState* value) {
#line 920 "/home/jens/Source/shotwell/src/Photo.vala"
if ((*length) == (*size)) {
#line 920 "/home/jens/Source/shotwell/src/Photo.vala"
*size = (*size) ? (2 * (*size)) : 4;
#line 920 "/home/jens/Source/shotwell/src/Photo.vala"
*array = g_renew (BackingFileState*, *array, (*size) + 1);
#line 7410 "Photo.c"
}
#line 920 "/home/jens/Source/shotwell/src/Photo.vala"
(*array)[(*length)++] = value;
#line 920 "/home/jens/Source/shotwell/src/Photo.vala"
(*array)[*length] = NULL;
#line 7416 "Photo.c"
}
static void _vala_array_add252 (BackingFileState*** array, int* length, int* size, BackingFileState* value) {
#line 922 "/home/jens/Source/shotwell/src/Photo.vala"
if ((*length) == (*size)) {
#line 922 "/home/jens/Source/shotwell/src/Photo.vala"
*size = (*size) ? (2 * (*size)) : 4;
#line 922 "/home/jens/Source/shotwell/src/Photo.vala"
*array = g_renew (BackingFileState*, *array, (*size) + 1);
#line 7427 "Photo.c"
}
#line 922 "/home/jens/Source/shotwell/src/Photo.vala"
(*array)[(*length)++] = value;
#line 922 "/home/jens/Source/shotwell/src/Photo.vala"
(*array)[*length] = NULL;
#line 7433 "Photo.c"
}
static void _vala_array_add253 (BackingFileState*** array, int* length, int* size, BackingFileState* value) {
#line 929 "/home/jens/Source/shotwell/src/Photo.vala"
if ((*length) == (*size)) {
#line 929 "/home/jens/Source/shotwell/src/Photo.vala"
*size = (*size) ? (2 * (*size)) : 4;
#line 929 "/home/jens/Source/shotwell/src/Photo.vala"
*array = g_renew (BackingFileState*, *array, (*size) + 1);
#line 7444 "Photo.c"
}
#line 929 "/home/jens/Source/shotwell/src/Photo.vala"
(*array)[(*length)++] = value;
#line 929 "/home/jens/Source/shotwell/src/Photo.vala"
(*array)[*length] = NULL;
#line 7450 "Photo.c"
}
static BackingFileState** photo_real_get_backing_files_state (MediaSource* base, int* result_length1) {
Photo * self;
BackingFileState** result = NULL;
BackingFileState** backing = NULL;
BackingFileState** _tmp0_ = NULL;
gint backing_length1 = 0;
gint _backing_size_ = 0;
BackingFileState** _tmp27_ = NULL;
gint _tmp27__length1 = 0;
GError * _inner_error_ = NULL;
#line 917 "/home/jens/Source/shotwell/src/Photo.vala"
self = G_TYPE_CHECK_INSTANCE_CAST (base, TYPE_PHOTO, Photo);
#line 918 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp0_ = g_new0 (BackingFileState*, 0 + 1);
#line 918 "/home/jens/Source/shotwell/src/Photo.vala"
backing = _tmp0_;
#line 918 "/home/jens/Source/shotwell/src/Photo.vala"
backing_length1 = 0;
#line 918 "/home/jens/Source/shotwell/src/Photo.vala"
_backing_size_ = backing_length1;
#line 7474 "Photo.c"
{
PhotoRow* _tmp1_ = NULL;
#line 919 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp1_ = self->row;
#line 919 "/home/jens/Source/shotwell/src/Photo.vala"
g_rec_mutex_lock (&self->priv->__lock_row);
#line 7481 "Photo.c"
{
BackingFileState** _tmp2_ = NULL;
gint _tmp2__length1 = 0;
PhotoRow* _tmp3_ = NULL;
BackingPhotoRow* _tmp4_ = NULL;
PhotoRow* _tmp5_ = NULL;
const gchar* _tmp6_ = NULL;
BackingFileState* _tmp7_ = NULL;
gboolean _tmp8_ = FALSE;
gboolean _tmp12_ = FALSE;
#line 920 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp2_ = backing;
#line 920 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp2__length1 = backing_length1;
#line 920 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp3_ = self->row;
#line 920 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp4_ = _tmp3_->master;
#line 920 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp5_ = self->row;
#line 920 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp6_ = _tmp5_->md5;
#line 920 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp7_ = backing_file_state_new_from_photo_row (_tmp4_, _tmp6_);
#line 920 "/home/jens/Source/shotwell/src/Photo.vala"
_vala_array_add251 (&backing, &backing_length1, &_backing_size_, _tmp7_);
#line 921 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp8_ = photo_has_editable (self);
#line 921 "/home/jens/Source/shotwell/src/Photo.vala"
if (_tmp8_) {
#line 7512 "Photo.c"
BackingFileState** _tmp9_ = NULL;
gint _tmp9__length1 = 0;
BackingPhotoRow* _tmp10_ = NULL;
BackingFileState* _tmp11_ = NULL;
#line 922 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp9_ = backing;
#line 922 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp9__length1 = backing_length1;
#line 922 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp10_ = self->priv->editable;
#line 922 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp11_ = backing_file_state_new_from_photo_row (_tmp10_, NULL);
#line 922 "/home/jens/Source/shotwell/src/Photo.vala"
_vala_array_add252 (&backing, &backing_length1, &_backing_size_, _tmp11_);
#line 7527 "Photo.c"
}
#line 924 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp12_ = photo_is_developed (self);
#line 924 "/home/jens/Source/shotwell/src/Photo.vala"
if (_tmp12_) {
#line 7533 "Photo.c"
GeeCollection* dev_rows = NULL;
GeeCollection* _tmp13_ = NULL;
GeeCollection* _tmp14_ = NULL;
#line 925 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp13_ = photo_get_raw_development_photo_rows (self);
#line 925 "/home/jens/Source/shotwell/src/Photo.vala"
dev_rows = _tmp13_;
#line 926 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp14_ = dev_rows;
#line 926 "/home/jens/Source/shotwell/src/Photo.vala"
if (_tmp14_ != NULL) {
#line 7545 "Photo.c"
{
GeeIterator* _r_it = NULL;
GeeCollection* _tmp15_ = NULL;
GeeIterator* _tmp16_ = NULL;
#line 927 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp15_ = dev_rows;
#line 927 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp16_ = gee_iterable_iterator (G_TYPE_CHECK_INSTANCE_CAST (_tmp15_, GEE_TYPE_ITERABLE, GeeIterable));
#line 927 "/home/jens/Source/shotwell/src/Photo.vala"
_r_it = _tmp16_;
#line 927 "/home/jens/Source/shotwell/src/Photo.vala"
while (TRUE) {
#line 7558 "Photo.c"
GeeIterator* _tmp17_ = NULL;
gboolean _tmp18_ = FALSE;
BackingPhotoRow* r = NULL;
GeeIterator* _tmp19_ = NULL;
gpointer _tmp20_ = NULL;
BackingPhotoRow* _tmp21_ = NULL;
const gchar* _tmp22_ = NULL;
BackingFileState** _tmp23_ = NULL;
gint _tmp23__length1 = 0;
BackingPhotoRow* _tmp24_ = NULL;
BackingFileState* _tmp25_ = NULL;
#line 927 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp17_ = _r_it;
#line 927 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp18_ = gee_iterator_next (_tmp17_);
#line 927 "/home/jens/Source/shotwell/src/Photo.vala"
if (!_tmp18_) {
#line 927 "/home/jens/Source/shotwell/src/Photo.vala"
break;
#line 7578 "Photo.c"
}
#line 927 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp19_ = _r_it;
#line 927 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp20_ = gee_iterator_get (_tmp19_);
#line 927 "/home/jens/Source/shotwell/src/Photo.vala"
r = (BackingPhotoRow*) _tmp20_;
#line 928 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp21_ = r;
#line 928 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp22_ = _tmp21_->filepath;
#line 928 "/home/jens/Source/shotwell/src/Photo.vala"
g_debug ("Photo.vala:928: adding: %s", _tmp22_);
#line 929 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp23_ = backing;
#line 929 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp23__length1 = backing_length1;
#line 929 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp24_ = r;
#line 929 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp25_ = backing_file_state_new_from_photo_row (_tmp24_, NULL);
#line 929 "/home/jens/Source/shotwell/src/Photo.vala"
_vala_array_add253 (&backing, &backing_length1, &_backing_size_, _tmp25_);
#line 927 "/home/jens/Source/shotwell/src/Photo.vala"
_backing_photo_row_unref0 (r);
#line 7604 "Photo.c"
}
#line 927 "/home/jens/Source/shotwell/src/Photo.vala"
_g_object_unref0 (_r_it);
#line 7608 "Photo.c"
}
}
#line 924 "/home/jens/Source/shotwell/src/Photo.vala"
_g_object_unref0 (dev_rows);
#line 7613 "Photo.c"
}
}
__finally283:
{
PhotoRow* _tmp26_ = NULL;
#line 919 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp26_ = self->row;
#line 919 "/home/jens/Source/shotwell/src/Photo.vala"
g_rec_mutex_unlock (&self->priv->__lock_row);
#line 7623 "Photo.c"
}
#line 919 "/home/jens/Source/shotwell/src/Photo.vala"
if (G_UNLIKELY (_inner_error_ != NULL)) {
#line 919 "/home/jens/Source/shotwell/src/Photo.vala"
backing = (_vala_array_free (backing, backing_length1, (GDestroyNotify) backing_file_state_unref), NULL);
#line 919 "/home/jens/Source/shotwell/src/Photo.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 919 "/home/jens/Source/shotwell/src/Photo.vala"
g_clear_error (&_inner_error_);
#line 919 "/home/jens/Source/shotwell/src/Photo.vala"
return NULL;
#line 7635 "Photo.c"
}
}
#line 935 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp27_ = backing;
#line 935 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp27__length1 = backing_length1;
#line 935 "/home/jens/Source/shotwell/src/Photo.vala"
if (result_length1) {
#line 935 "/home/jens/Source/shotwell/src/Photo.vala"
*result_length1 = _tmp27__length1;
#line 7646 "Photo.c"
}
#line 935 "/home/jens/Source/shotwell/src/Photo.vala"
result = _tmp27_;
#line 935 "/home/jens/Source/shotwell/src/Photo.vala"
return result;
#line 7652 "Photo.c"
}
static PhotoFileReader* photo_get_backing_reader (Photo* self, BackingFetchMode mode) {
PhotoFileReader* result = NULL;
BackingFetchMode _tmp0_ = 0;
#line 938 "/home/jens/Source/shotwell/src/Photo.vala"
g_return_val_if_fail (IS_PHOTO (self), NULL);
#line 939 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp0_ = mode;
#line 939 "/home/jens/Source/shotwell/src/Photo.vala"
switch (_tmp0_) {
#line 939 "/home/jens/Source/shotwell/src/Photo.vala"
case BACKING_FETCH_MODE_MASTER:
#line 7667 "Photo.c"
{
PhotoFileReader* _tmp1_ = NULL;
#line 941 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp1_ = photo_get_master_reader (self);
#line 941 "/home/jens/Source/shotwell/src/Photo.vala"
result = _tmp1_;
#line 941 "/home/jens/Source/shotwell/src/Photo.vala"
return result;
#line 7676 "Photo.c"
}
#line 939 "/home/jens/Source/shotwell/src/Photo.vala"
case BACKING_FETCH_MODE_BASELINE:
#line 7680 "Photo.c"
{
PhotoFileReader* _tmp2_ = NULL;
#line 944 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp2_ = photo_get_baseline_reader (self);
#line 944 "/home/jens/Source/shotwell/src/Photo.vala"
result = _tmp2_;
#line 944 "/home/jens/Source/shotwell/src/Photo.vala"
return result;
#line 7689 "Photo.c"
}
#line 939 "/home/jens/Source/shotwell/src/Photo.vala"
case BACKING_FETCH_MODE_SOURCE:
#line 7693 "Photo.c"
{
PhotoFileReader* _tmp3_ = NULL;
#line 947 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp3_ = photo_get_source_reader (self);
#line 947 "/home/jens/Source/shotwell/src/Photo.vala"
result = _tmp3_;
#line 947 "/home/jens/Source/shotwell/src/Photo.vala"
return result;
#line 7702 "Photo.c"
}
#line 939 "/home/jens/Source/shotwell/src/Photo.vala"
case BACKING_FETCH_MODE_UNMODIFIED:
#line 7706 "Photo.c"
{
PhotoFileFormat _tmp4_ = 0;
#line 950 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp4_ = photo_get_master_file_format (self);
#line 950 "/home/jens/Source/shotwell/src/Photo.vala"
if (_tmp4_ == PHOTO_FILE_FORMAT_RAW) {
#line 7713 "Photo.c"
PhotoFileReader* _tmp5_ = NULL;
#line 951 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp5_ = photo_get_raw_developer_reader (self);
#line 951 "/home/jens/Source/shotwell/src/Photo.vala"
result = _tmp5_;
#line 951 "/home/jens/Source/shotwell/src/Photo.vala"
return result;
#line 7721 "Photo.c"
} else {
PhotoFileReader* _tmp6_ = NULL;
#line 953 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp6_ = photo_get_master_reader (self);
#line 953 "/home/jens/Source/shotwell/src/Photo.vala"
result = _tmp6_;
#line 953 "/home/jens/Source/shotwell/src/Photo.vala"
return result;
#line 7730 "Photo.c"
}
}
default:
{
BackingFetchMode _tmp7_ = 0;
GEnumValue* _tmp8_;
#line 956 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp7_ = mode;
#line 956 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp8_ = g_enum_get_value (g_type_class_ref (TYPE_BACKING_FETCH_MODE), _tmp7_);
#line 956 "/home/jens/Source/shotwell/src/Photo.vala"
g_error ("Photo.vala:956: Unknown backing fetch mode %s", (_tmp8_ != NULL) ? _tmp8_->value_name : NULL);
#line 7743 "Photo.c"
}
}
}
static gpointer _photo_file_adapter_ref0 (gpointer self) {
#line 962 "/home/jens/Source/shotwell/src/Photo.vala"
return self ? photo_file_adapter_ref (self) : NULL;
#line 7752 "Photo.c"
}
static PhotoFileReader* photo_get_master_reader (Photo* self) {
PhotoFileReader* result = NULL;
GError * _inner_error_ = NULL;
#line 960 "/home/jens/Source/shotwell/src/Photo.vala"
g_return_val_if_fail (IS_PHOTO (self), NULL);
#line 7761 "Photo.c"
{
PhotoBackingReaders* _tmp0_ = NULL;
#line 961 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp0_ = self->priv->readers;
#line 961 "/home/jens/Source/shotwell/src/Photo.vala"
g_rec_mutex_lock (&self->priv->__lock_readers);
#line 7768 "Photo.c"
{
PhotoBackingReaders* _tmp1_ = NULL;
PhotoFileReader* _tmp2_ = NULL;
PhotoFileReader* _tmp3_ = NULL;
#line 962 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp1_ = self->priv->readers;
#line 962 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp2_ = _tmp1_->master;
#line 962 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp3_ = _photo_file_adapter_ref0 (_tmp2_);
#line 962 "/home/jens/Source/shotwell/src/Photo.vala"
result = _tmp3_;
#line 7781 "Photo.c"
{
PhotoBackingReaders* _tmp4_ = NULL;
#line 961 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp4_ = self->priv->readers;
#line 961 "/home/jens/Source/shotwell/src/Photo.vala"
g_rec_mutex_unlock (&self->priv->__lock_readers);
#line 7788 "Photo.c"
}
#line 962 "/home/jens/Source/shotwell/src/Photo.vala"
return result;
#line 7792 "Photo.c"
}
__finally284:
{
PhotoBackingReaders* _tmp5_ = NULL;
#line 961 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp5_ = self->priv->readers;
#line 961 "/home/jens/Source/shotwell/src/Photo.vala"
g_rec_mutex_unlock (&self->priv->__lock_readers);
#line 7801 "Photo.c"
}
#line 961 "/home/jens/Source/shotwell/src/Photo.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 961 "/home/jens/Source/shotwell/src/Photo.vala"
g_clear_error (&_inner_error_);
#line 961 "/home/jens/Source/shotwell/src/Photo.vala"
return NULL;
#line 7809 "Photo.c"
}
}
PhotoFileReader* photo_get_editable_reader (Photo* self) {
PhotoFileReader* result = NULL;
GError * _inner_error_ = NULL;
#line 966 "/home/jens/Source/shotwell/src/Photo.vala"
g_return_val_if_fail (IS_PHOTO (self), NULL);
#line 7819 "Photo.c"
{
PhotoBackingReaders* _tmp0_ = NULL;
#line 967 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp0_ = self->priv->readers;
#line 967 "/home/jens/Source/shotwell/src/Photo.vala"
g_rec_mutex_lock (&self->priv->__lock_readers);
#line 7826 "Photo.c"
{
PhotoBackingReaders* _tmp1_ = NULL;
PhotoFileReader* _tmp2_ = NULL;
PhotoFileReader* _tmp3_ = NULL;
#line 968 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp1_ = self->priv->readers;
#line 968 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp2_ = _tmp1_->editable;
#line 968 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp3_ = _photo_file_adapter_ref0 (_tmp2_);
#line 968 "/home/jens/Source/shotwell/src/Photo.vala"
result = _tmp3_;
#line 7839 "Photo.c"
{
PhotoBackingReaders* _tmp4_ = NULL;
#line 967 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp4_ = self->priv->readers;
#line 967 "/home/jens/Source/shotwell/src/Photo.vala"
g_rec_mutex_unlock (&self->priv->__lock_readers);
#line 7846 "Photo.c"
}
#line 968 "/home/jens/Source/shotwell/src/Photo.vala"
return result;
#line 7850 "Photo.c"
}
__finally285:
{
PhotoBackingReaders* _tmp5_ = NULL;
#line 967 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp5_ = self->priv->readers;
#line 967 "/home/jens/Source/shotwell/src/Photo.vala"
g_rec_mutex_unlock (&self->priv->__lock_readers);
#line 7859 "Photo.c"
}
#line 967 "/home/jens/Source/shotwell/src/Photo.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 967 "/home/jens/Source/shotwell/src/Photo.vala"
g_clear_error (&_inner_error_);
#line 967 "/home/jens/Source/shotwell/src/Photo.vala"
return NULL;
#line 7867 "Photo.c"
}
}
static PhotoFileReader* photo_get_baseline_reader (Photo* self) {
PhotoFileReader* result = NULL;
GError * _inner_error_ = NULL;
#line 973 "/home/jens/Source/shotwell/src/Photo.vala"
g_return_val_if_fail (IS_PHOTO (self), NULL);
#line 7877 "Photo.c"
{
PhotoBackingReaders* _tmp0_ = NULL;
#line 974 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp0_ = self->priv->readers;
#line 974 "/home/jens/Source/shotwell/src/Photo.vala"
g_rec_mutex_lock (&self->priv->__lock_readers);
#line 7884 "Photo.c"
{
PhotoBackingReaders* _tmp1_ = NULL;
PhotoFileReader* _tmp2_ = NULL;
PhotoBackingReaders* _tmp7_ = NULL;
PhotoFileReader* _tmp8_ = NULL;
PhotoBackingReaders* _tmp13_ = NULL;
PhotoFileReader* _tmp14_ = NULL;
PhotoFileReader* _tmp15_ = NULL;
#line 975 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp1_ = self->priv->readers;
#line 975 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp2_ = _tmp1_->editable;
#line 975 "/home/jens/Source/shotwell/src/Photo.vala"
if (_tmp2_ != NULL) {
#line 7899 "Photo.c"
PhotoBackingReaders* _tmp3_ = NULL;
PhotoFileReader* _tmp4_ = NULL;
PhotoFileReader* _tmp5_ = NULL;
#line 976 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp3_ = self->priv->readers;
#line 976 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp4_ = _tmp3_->editable;
#line 976 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp5_ = _photo_file_adapter_ref0 (_tmp4_);
#line 976 "/home/jens/Source/shotwell/src/Photo.vala"
result = _tmp5_;
#line 7911 "Photo.c"
{
PhotoBackingReaders* _tmp6_ = NULL;
#line 974 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp6_ = self->priv->readers;
#line 974 "/home/jens/Source/shotwell/src/Photo.vala"
g_rec_mutex_unlock (&self->priv->__lock_readers);
#line 7918 "Photo.c"
}
#line 976 "/home/jens/Source/shotwell/src/Photo.vala"
return result;
#line 7922 "Photo.c"
}
#line 978 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp7_ = self->priv->readers;
#line 978 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp8_ = _tmp7_->developer;
#line 978 "/home/jens/Source/shotwell/src/Photo.vala"
if (_tmp8_ != NULL) {
#line 7930 "Photo.c"
PhotoBackingReaders* _tmp9_ = NULL;
PhotoFileReader* _tmp10_ = NULL;
PhotoFileReader* _tmp11_ = NULL;
#line 979 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp9_ = self->priv->readers;
#line 979 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp10_ = _tmp9_->developer;
#line 979 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp11_ = _photo_file_adapter_ref0 (_tmp10_);
#line 979 "/home/jens/Source/shotwell/src/Photo.vala"
result = _tmp11_;
#line 7942 "Photo.c"
{
PhotoBackingReaders* _tmp12_ = NULL;
#line 974 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp12_ = self->priv->readers;
#line 974 "/home/jens/Source/shotwell/src/Photo.vala"
g_rec_mutex_unlock (&self->priv->__lock_readers);
#line 7949 "Photo.c"
}
#line 979 "/home/jens/Source/shotwell/src/Photo.vala"
return result;
#line 7953 "Photo.c"
}
#line 981 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp13_ = self->priv->readers;
#line 981 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp14_ = _tmp13_->master;
#line 981 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp15_ = _photo_file_adapter_ref0 (_tmp14_);
#line 981 "/home/jens/Source/shotwell/src/Photo.vala"
result = _tmp15_;
#line 7963 "Photo.c"
{
PhotoBackingReaders* _tmp16_ = NULL;
#line 974 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp16_ = self->priv->readers;
#line 974 "/home/jens/Source/shotwell/src/Photo.vala"
g_rec_mutex_unlock (&self->priv->__lock_readers);
#line 7970 "Photo.c"
}
#line 981 "/home/jens/Source/shotwell/src/Photo.vala"
return result;
#line 7974 "Photo.c"
}
__finally286:
{
PhotoBackingReaders* _tmp17_ = NULL;
#line 974 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp17_ = self->priv->readers;
#line 974 "/home/jens/Source/shotwell/src/Photo.vala"
g_rec_mutex_unlock (&self->priv->__lock_readers);
#line 7983 "Photo.c"
}
#line 974 "/home/jens/Source/shotwell/src/Photo.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 974 "/home/jens/Source/shotwell/src/Photo.vala"
g_clear_error (&_inner_error_);
#line 974 "/home/jens/Source/shotwell/src/Photo.vala"
return NULL;
#line 7991 "Photo.c"
}
}
static PhotoFileReader* photo_get_source_reader (Photo* self) {
PhotoFileReader* result = NULL;
GError * _inner_error_ = NULL;
#line 986 "/home/jens/Source/shotwell/src/Photo.vala"
g_return_val_if_fail (IS_PHOTO (self), NULL);
#line 8001 "Photo.c"
{
PhotoBackingReaders* _tmp0_ = NULL;
#line 987 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp0_ = self->priv->readers;
#line 987 "/home/jens/Source/shotwell/src/Photo.vala"
g_rec_mutex_lock (&self->priv->__lock_readers);
#line 8008 "Photo.c"
{
PhotoBackingReaders* _tmp1_ = NULL;
PhotoFileReader* _tmp2_ = NULL;
PhotoBackingReaders* _tmp7_ = NULL;
PhotoFileReader* _tmp8_ = NULL;
PhotoBackingReaders* _tmp13_ = NULL;
PhotoFileReader* _tmp14_ = NULL;
PhotoFileReader* _tmp15_ = NULL;
#line 988 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp1_ = self->priv->readers;
#line 988 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp2_ = _tmp1_->editable;
#line 988 "/home/jens/Source/shotwell/src/Photo.vala"
if (_tmp2_ != NULL) {
#line 8023 "Photo.c"
PhotoBackingReaders* _tmp3_ = NULL;
PhotoFileReader* _tmp4_ = NULL;
PhotoFileReader* _tmp5_ = NULL;
#line 989 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp3_ = self->priv->readers;
#line 989 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp4_ = _tmp3_->editable;
#line 989 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp5_ = _photo_file_adapter_ref0 (_tmp4_);
#line 989 "/home/jens/Source/shotwell/src/Photo.vala"
result = _tmp5_;
#line 8035 "Photo.c"
{
PhotoBackingReaders* _tmp6_ = NULL;
#line 987 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp6_ = self->priv->readers;
#line 987 "/home/jens/Source/shotwell/src/Photo.vala"
g_rec_mutex_unlock (&self->priv->__lock_readers);
#line 8042 "Photo.c"
}
#line 989 "/home/jens/Source/shotwell/src/Photo.vala"
return result;
#line 8046 "Photo.c"
}
#line 991 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp7_ = self->priv->readers;
#line 991 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp8_ = _tmp7_->developer;
#line 991 "/home/jens/Source/shotwell/src/Photo.vala"
if (_tmp8_ != NULL) {
#line 8054 "Photo.c"
PhotoBackingReaders* _tmp9_ = NULL;
PhotoFileReader* _tmp10_ = NULL;
PhotoFileReader* _tmp11_ = NULL;
#line 992 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp9_ = self->priv->readers;
#line 992 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp10_ = _tmp9_->developer;
#line 992 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp11_ = _photo_file_adapter_ref0 (_tmp10_);
#line 992 "/home/jens/Source/shotwell/src/Photo.vala"
result = _tmp11_;
#line 8066 "Photo.c"
{
PhotoBackingReaders* _tmp12_ = NULL;
#line 987 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp12_ = self->priv->readers;
#line 987 "/home/jens/Source/shotwell/src/Photo.vala"
g_rec_mutex_unlock (&self->priv->__lock_readers);
#line 8073 "Photo.c"
}
#line 992 "/home/jens/Source/shotwell/src/Photo.vala"
return result;
#line 8077 "Photo.c"
}
#line 994 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp13_ = self->priv->readers;
#line 994 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp14_ = _tmp13_->master;
#line 994 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp15_ = _photo_file_adapter_ref0 (_tmp14_);
#line 994 "/home/jens/Source/shotwell/src/Photo.vala"
result = _tmp15_;
#line 8087 "Photo.c"
{
PhotoBackingReaders* _tmp16_ = NULL;
#line 987 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp16_ = self->priv->readers;
#line 987 "/home/jens/Source/shotwell/src/Photo.vala"
g_rec_mutex_unlock (&self->priv->__lock_readers);
#line 8094 "Photo.c"
}
#line 994 "/home/jens/Source/shotwell/src/Photo.vala"
return result;
#line 8098 "Photo.c"
}
__finally287:
{
PhotoBackingReaders* _tmp17_ = NULL;
#line 987 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp17_ = self->priv->readers;
#line 987 "/home/jens/Source/shotwell/src/Photo.vala"
g_rec_mutex_unlock (&self->priv->__lock_readers);
#line 8107 "Photo.c"
}
#line 987 "/home/jens/Source/shotwell/src/Photo.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 987 "/home/jens/Source/shotwell/src/Photo.vala"
g_clear_error (&_inner_error_);
#line 987 "/home/jens/Source/shotwell/src/Photo.vala"
return NULL;
#line 8115 "Photo.c"
}
}
static PhotoFileReader* photo_get_raw_developer_reader (Photo* self) {
PhotoFileReader* result = NULL;
GError * _inner_error_ = NULL;
#line 999 "/home/jens/Source/shotwell/src/Photo.vala"
g_return_val_if_fail (IS_PHOTO (self), NULL);
#line 8125 "Photo.c"
{
PhotoBackingReaders* _tmp0_ = NULL;
#line 1000 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp0_ = self->priv->readers;
#line 1000 "/home/jens/Source/shotwell/src/Photo.vala"
g_rec_mutex_lock (&self->priv->__lock_readers);
#line 8132 "Photo.c"
{
PhotoBackingReaders* _tmp1_ = NULL;
PhotoFileReader* _tmp2_ = NULL;
PhotoFileReader* _tmp3_ = NULL;
#line 1001 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp1_ = self->priv->readers;
#line 1001 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp2_ = _tmp1_->developer;
#line 1001 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp3_ = _photo_file_adapter_ref0 (_tmp2_);
#line 1001 "/home/jens/Source/shotwell/src/Photo.vala"
result = _tmp3_;
#line 8145 "Photo.c"
{
PhotoBackingReaders* _tmp4_ = NULL;
#line 1000 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp4_ = self->priv->readers;
#line 1000 "/home/jens/Source/shotwell/src/Photo.vala"
g_rec_mutex_unlock (&self->priv->__lock_readers);
#line 8152 "Photo.c"
}
#line 1001 "/home/jens/Source/shotwell/src/Photo.vala"
return result;
#line 8156 "Photo.c"
}
__finally288:
{
PhotoBackingReaders* _tmp5_ = NULL;
#line 1000 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp5_ = self->priv->readers;
#line 1000 "/home/jens/Source/shotwell/src/Photo.vala"
g_rec_mutex_unlock (&self->priv->__lock_readers);
#line 8165 "Photo.c"
}
#line 1000 "/home/jens/Source/shotwell/src/Photo.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 1000 "/home/jens/Source/shotwell/src/Photo.vala"
g_clear_error (&_inner_error_);
#line 1000 "/home/jens/Source/shotwell/src/Photo.vala"
return NULL;
#line 8173 "Photo.c"
}
}
gboolean photo_is_developed (Photo* self) {
gboolean result = FALSE;
GError * _inner_error_ = NULL;
#line 1005 "/home/jens/Source/shotwell/src/Photo.vala"
g_return_val_if_fail (IS_PHOTO (self), FALSE);
#line 8183 "Photo.c"
{
PhotoBackingReaders* _tmp0_ = NULL;
#line 1006 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp0_ = self->priv->readers;
#line 1006 "/home/jens/Source/shotwell/src/Photo.vala"
g_rec_mutex_lock (&self->priv->__lock_readers);
#line 8190 "Photo.c"
{
PhotoBackingReaders* _tmp1_ = NULL;
PhotoFileReader* _tmp2_ = NULL;
#line 1007 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp1_ = self->priv->readers;
#line 1007 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp2_ = _tmp1_->developer;
#line 1007 "/home/jens/Source/shotwell/src/Photo.vala"
result = _tmp2_ != NULL;
#line 8200 "Photo.c"
{
PhotoBackingReaders* _tmp3_ = NULL;
#line 1006 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp3_ = self->priv->readers;
#line 1006 "/home/jens/Source/shotwell/src/Photo.vala"
g_rec_mutex_unlock (&self->priv->__lock_readers);
#line 8207 "Photo.c"
}
#line 1007 "/home/jens/Source/shotwell/src/Photo.vala"
return result;
#line 8211 "Photo.c"
}
__finally289:
{
PhotoBackingReaders* _tmp4_ = NULL;
#line 1006 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp4_ = self->priv->readers;
#line 1006 "/home/jens/Source/shotwell/src/Photo.vala"
g_rec_mutex_unlock (&self->priv->__lock_readers);
#line 8220 "Photo.c"
}
#line 1006 "/home/jens/Source/shotwell/src/Photo.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 1006 "/home/jens/Source/shotwell/src/Photo.vala"
g_clear_error (&_inner_error_);
#line 1006 "/home/jens/Source/shotwell/src/Photo.vala"
return FALSE;
#line 8228 "Photo.c"
}
}
gboolean photo_has_editable (Photo* self) {
gboolean result = FALSE;
GError * _inner_error_ = NULL;
#line 1011 "/home/jens/Source/shotwell/src/Photo.vala"
g_return_val_if_fail (IS_PHOTO (self), FALSE);
#line 8238 "Photo.c"
{
PhotoBackingReaders* _tmp0_ = NULL;
#line 1012 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp0_ = self->priv->readers;
#line 1012 "/home/jens/Source/shotwell/src/Photo.vala"
g_rec_mutex_lock (&self->priv->__lock_readers);
#line 8245 "Photo.c"
{
PhotoBackingReaders* _tmp1_ = NULL;
PhotoFileReader* _tmp2_ = NULL;
#line 1013 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp1_ = self->priv->readers;
#line 1013 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp2_ = _tmp1_->editable;
#line 1013 "/home/jens/Source/shotwell/src/Photo.vala"
result = _tmp2_ != NULL;
#line 8255 "Photo.c"
{
PhotoBackingReaders* _tmp3_ = NULL;
#line 1012 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp3_ = self->priv->readers;
#line 1012 "/home/jens/Source/shotwell/src/Photo.vala"
g_rec_mutex_unlock (&self->priv->__lock_readers);
#line 8262 "Photo.c"
}
#line 1013 "/home/jens/Source/shotwell/src/Photo.vala"
return result;
#line 8266 "Photo.c"
}
__finally290:
{
PhotoBackingReaders* _tmp4_ = NULL;
#line 1012 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp4_ = self->priv->readers;
#line 1012 "/home/jens/Source/shotwell/src/Photo.vala"
g_rec_mutex_unlock (&self->priv->__lock_readers);
#line 8275 "Photo.c"
}
#line 1012 "/home/jens/Source/shotwell/src/Photo.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 1012 "/home/jens/Source/shotwell/src/Photo.vala"
g_clear_error (&_inner_error_);
#line 1012 "/home/jens/Source/shotwell/src/Photo.vala"
return FALSE;
#line 8283 "Photo.c"
}
}
gboolean photo_does_master_exist (Photo* self) {
gboolean result = FALSE;
GError * _inner_error_ = NULL;
#line 1017 "/home/jens/Source/shotwell/src/Photo.vala"
g_return_val_if_fail (IS_PHOTO (self), FALSE);
#line 8293 "Photo.c"
{
PhotoBackingReaders* _tmp0_ = NULL;
#line 1018 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp0_ = self->priv->readers;
#line 1018 "/home/jens/Source/shotwell/src/Photo.vala"
g_rec_mutex_lock (&self->priv->__lock_readers);
#line 8300 "Photo.c"
{
PhotoBackingReaders* _tmp1_ = NULL;
PhotoFileReader* _tmp2_ = NULL;
gboolean _tmp3_ = FALSE;
#line 1019 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp1_ = self->priv->readers;
#line 1019 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp2_ = _tmp1_->master;
#line 1019 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp3_ = photo_file_adapter_file_exists (G_TYPE_CHECK_INSTANCE_CAST (_tmp2_, TYPE_PHOTO_FILE_ADAPTER, PhotoFileAdapter));
#line 1019 "/home/jens/Source/shotwell/src/Photo.vala"
result = _tmp3_;
#line 8313 "Photo.c"
{
PhotoBackingReaders* _tmp4_ = NULL;
#line 1018 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp4_ = self->priv->readers;
#line 1018 "/home/jens/Source/shotwell/src/Photo.vala"
g_rec_mutex_unlock (&self->priv->__lock_readers);
#line 8320 "Photo.c"
}
#line 1019 "/home/jens/Source/shotwell/src/Photo.vala"
return result;
#line 8324 "Photo.c"
}
__finally291:
{
PhotoBackingReaders* _tmp5_ = NULL;
#line 1018 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp5_ = self->priv->readers;
#line 1018 "/home/jens/Source/shotwell/src/Photo.vala"
g_rec_mutex_unlock (&self->priv->__lock_readers);
#line 8333 "Photo.c"
}
#line 1018 "/home/jens/Source/shotwell/src/Photo.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 1018 "/home/jens/Source/shotwell/src/Photo.vala"
g_clear_error (&_inner_error_);
#line 1018 "/home/jens/Source/shotwell/src/Photo.vala"
return FALSE;
#line 8341 "Photo.c"
}
}
gboolean photo_does_editable_exist (Photo* self) {
gboolean result = FALSE;
GError * _inner_error_ = NULL;
#line 1024 "/home/jens/Source/shotwell/src/Photo.vala"
g_return_val_if_fail (IS_PHOTO (self), FALSE);
#line 8351 "Photo.c"
{
PhotoBackingReaders* _tmp0_ = NULL;
#line 1025 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp0_ = self->priv->readers;
#line 1025 "/home/jens/Source/shotwell/src/Photo.vala"
g_rec_mutex_lock (&self->priv->__lock_readers);
#line 8358 "Photo.c"
{
gboolean _tmp1_ = FALSE;
PhotoBackingReaders* _tmp2_ = NULL;
PhotoFileReader* _tmp3_ = NULL;
#line 1026 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp2_ = self->priv->readers;
#line 1026 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp3_ = _tmp2_->editable;
#line 1026 "/home/jens/Source/shotwell/src/Photo.vala"
if (_tmp3_ != NULL) {
#line 8369 "Photo.c"
PhotoBackingReaders* _tmp4_ = NULL;
PhotoFileReader* _tmp5_ = NULL;
gboolean _tmp6_ = FALSE;
#line 1026 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp4_ = self->priv->readers;
#line 1026 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp5_ = _tmp4_->editable;
#line 1026 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp6_ = photo_file_adapter_file_exists (G_TYPE_CHECK_INSTANCE_CAST (_tmp5_, TYPE_PHOTO_FILE_ADAPTER, PhotoFileAdapter));
#line 1026 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp1_ = _tmp6_;
#line 8381 "Photo.c"
} else {
#line 1026 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp1_ = FALSE;
#line 8385 "Photo.c"
}
#line 1026 "/home/jens/Source/shotwell/src/Photo.vala"
result = _tmp1_;
#line 8389 "Photo.c"
{
PhotoBackingReaders* _tmp7_ = NULL;
#line 1025 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp7_ = self->priv->readers;
#line 1025 "/home/jens/Source/shotwell/src/Photo.vala"
g_rec_mutex_unlock (&self->priv->__lock_readers);
#line 8396 "Photo.c"
}
#line 1026 "/home/jens/Source/shotwell/src/Photo.vala"
return result;
#line 8400 "Photo.c"
}
__finally292:
{
PhotoBackingReaders* _tmp8_ = NULL;
#line 1025 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp8_ = self->priv->readers;
#line 1025 "/home/jens/Source/shotwell/src/Photo.vala"
g_rec_mutex_unlock (&self->priv->__lock_readers);
#line 8409 "Photo.c"
}
#line 1025 "/home/jens/Source/shotwell/src/Photo.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 1025 "/home/jens/Source/shotwell/src/Photo.vala"
g_clear_error (&_inner_error_);
#line 1025 "/home/jens/Source/shotwell/src/Photo.vala"
return FALSE;
#line 8417 "Photo.c"
}
}
gboolean photo_is_master_baseline (Photo* self) {
gboolean result = FALSE;
GError * _inner_error_ = NULL;
#line 1030 "/home/jens/Source/shotwell/src/Photo.vala"
g_return_val_if_fail (IS_PHOTO (self), FALSE);
#line 8427 "Photo.c"
{
PhotoBackingReaders* _tmp0_ = NULL;
#line 1031 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp0_ = self->priv->readers;
#line 1031 "/home/jens/Source/shotwell/src/Photo.vala"
g_rec_mutex_lock (&self->priv->__lock_readers);
#line 8434 "Photo.c"
{
PhotoBackingReaders* _tmp1_ = NULL;
PhotoFileReader* _tmp2_ = NULL;
#line 1032 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp1_ = self->priv->readers;
#line 1032 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp2_ = _tmp1_->editable;
#line 1032 "/home/jens/Source/shotwell/src/Photo.vala"
result = _tmp2_ == NULL;
#line 8444 "Photo.c"
{
PhotoBackingReaders* _tmp3_ = NULL;
#line 1031 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp3_ = self->priv->readers;
#line 1031 "/home/jens/Source/shotwell/src/Photo.vala"
g_rec_mutex_unlock (&self->priv->__lock_readers);
#line 8451 "Photo.c"
}
#line 1032 "/home/jens/Source/shotwell/src/Photo.vala"
return result;
#line 8455 "Photo.c"
}
__finally293:
{
PhotoBackingReaders* _tmp4_ = NULL;
#line 1031 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp4_ = self->priv->readers;
#line 1031 "/home/jens/Source/shotwell/src/Photo.vala"
g_rec_mutex_unlock (&self->priv->__lock_readers);
#line 8464 "Photo.c"
}
#line 1031 "/home/jens/Source/shotwell/src/Photo.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 1031 "/home/jens/Source/shotwell/src/Photo.vala"
g_clear_error (&_inner_error_);
#line 1031 "/home/jens/Source/shotwell/src/Photo.vala"
return FALSE;
#line 8472 "Photo.c"
}
}
gboolean photo_is_master_source (Photo* self) {
gboolean result = FALSE;
gboolean _tmp0_ = FALSE;
#line 1036 "/home/jens/Source/shotwell/src/Photo.vala"
g_return_val_if_fail (IS_PHOTO (self), FALSE);
#line 1037 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp0_ = photo_has_editable (self);
#line 1037 "/home/jens/Source/shotwell/src/Photo.vala"
result = !_tmp0_;
#line 1037 "/home/jens/Source/shotwell/src/Photo.vala"
return result;
#line 8488 "Photo.c"
}
gboolean photo_is_editable_baseline (Photo* self) {
gboolean result = FALSE;
GError * _inner_error_ = NULL;
#line 1040 "/home/jens/Source/shotwell/src/Photo.vala"
g_return_val_if_fail (IS_PHOTO (self), FALSE);
#line 8497 "Photo.c"
{
PhotoBackingReaders* _tmp0_ = NULL;
#line 1041 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp0_ = self->priv->readers;
#line 1041 "/home/jens/Source/shotwell/src/Photo.vala"
g_rec_mutex_lock (&self->priv->__lock_readers);
#line 8504 "Photo.c"
{
PhotoBackingReaders* _tmp1_ = NULL;
PhotoFileReader* _tmp2_ = NULL;
#line 1042 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp1_ = self->priv->readers;
#line 1042 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp2_ = _tmp1_->editable;
#line 1042 "/home/jens/Source/shotwell/src/Photo.vala"
result = _tmp2_ != NULL;
#line 8514 "Photo.c"
{
PhotoBackingReaders* _tmp3_ = NULL;
#line 1041 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp3_ = self->priv->readers;
#line 1041 "/home/jens/Source/shotwell/src/Photo.vala"
g_rec_mutex_unlock (&self->priv->__lock_readers);
#line 8521 "Photo.c"
}
#line 1042 "/home/jens/Source/shotwell/src/Photo.vala"
return result;
#line 8525 "Photo.c"
}
__finally294:
{
PhotoBackingReaders* _tmp4_ = NULL;
#line 1041 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp4_ = self->priv->readers;
#line 1041 "/home/jens/Source/shotwell/src/Photo.vala"
g_rec_mutex_unlock (&self->priv->__lock_readers);
#line 8534 "Photo.c"
}
#line 1041 "/home/jens/Source/shotwell/src/Photo.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 1041 "/home/jens/Source/shotwell/src/Photo.vala"
g_clear_error (&_inner_error_);
#line 1041 "/home/jens/Source/shotwell/src/Photo.vala"
return FALSE;
#line 8542 "Photo.c"
}
}
gboolean photo_is_editable_source (Photo* self) {
gboolean result = FALSE;
gboolean _tmp0_ = FALSE;
#line 1046 "/home/jens/Source/shotwell/src/Photo.vala"
g_return_val_if_fail (IS_PHOTO (self), FALSE);
#line 1047 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp0_ = photo_has_editable (self);
#line 1047 "/home/jens/Source/shotwell/src/Photo.vala"
result = _tmp0_;
#line 1047 "/home/jens/Source/shotwell/src/Photo.vala"
return result;
#line 8558 "Photo.c"
}
BackingPhotoRow* photo_get_master_photo_row (Photo* self) {
BackingPhotoRow* result = NULL;
GError * _inner_error_ = NULL;
#line 1050 "/home/jens/Source/shotwell/src/Photo.vala"
g_return_val_if_fail (IS_PHOTO (self), NULL);
#line 8567 "Photo.c"
{
PhotoRow* _tmp0_ = NULL;
#line 1051 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp0_ = self->row;
#line 1051 "/home/jens/Source/shotwell/src/Photo.vala"
g_rec_mutex_lock (&self->priv->__lock_row);
#line 8574 "Photo.c"
{
PhotoRow* _tmp1_ = NULL;
BackingPhotoRow* _tmp2_ = NULL;
BackingPhotoRow* _tmp3_ = NULL;
#line 1052 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp1_ = self->row;
#line 1052 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp2_ = _tmp1_->master;
#line 1052 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp3_ = _backing_photo_row_ref0 (_tmp2_);
#line 1052 "/home/jens/Source/shotwell/src/Photo.vala"
result = _tmp3_;
#line 8587 "Photo.c"
{
PhotoRow* _tmp4_ = NULL;
#line 1051 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp4_ = self->row;
#line 1051 "/home/jens/Source/shotwell/src/Photo.vala"
g_rec_mutex_unlock (&self->priv->__lock_row);
#line 8594 "Photo.c"
}
#line 1052 "/home/jens/Source/shotwell/src/Photo.vala"
return result;
#line 8598 "Photo.c"
}
__finally295:
{
PhotoRow* _tmp5_ = NULL;
#line 1051 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp5_ = self->row;
#line 1051 "/home/jens/Source/shotwell/src/Photo.vala"
g_rec_mutex_unlock (&self->priv->__lock_row);
#line 8607 "Photo.c"
}
#line 1051 "/home/jens/Source/shotwell/src/Photo.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 1051 "/home/jens/Source/shotwell/src/Photo.vala"
g_clear_error (&_inner_error_);
#line 1051 "/home/jens/Source/shotwell/src/Photo.vala"
return NULL;
#line 8615 "Photo.c"
}
}
BackingPhotoRow* photo_get_editable_photo_row (Photo* self) {
BackingPhotoRow* result = NULL;
GError * _inner_error_ = NULL;
#line 1056 "/home/jens/Source/shotwell/src/Photo.vala"
g_return_val_if_fail (IS_PHOTO (self), NULL);
#line 8625 "Photo.c"
{
PhotoRow* _tmp0_ = NULL;
#line 1057 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp0_ = self->row;
#line 1057 "/home/jens/Source/shotwell/src/Photo.vala"
g_rec_mutex_lock (&self->priv->__lock_row);
#line 8632 "Photo.c"
{
PhotoRow* _tmp1_ = NULL;
gboolean _tmp2_ = FALSE;
#line 1059 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp1_ = self->row;
#line 1059 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp2_ = backing_photo_id_is_valid (&_tmp1_->editable_id);
#line 1059 "/home/jens/Source/shotwell/src/Photo.vala"
if (_tmp2_) {
#line 8642 "Photo.c"
BackingPhotoRow* _tmp3_ = NULL;
BackingPhotoRow* _tmp4_ = NULL;
#line 1060 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp3_ = self->priv->editable;
#line 1060 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp4_ = _backing_photo_row_ref0 (_tmp3_);
#line 1060 "/home/jens/Source/shotwell/src/Photo.vala"
result = _tmp4_;
#line 8651 "Photo.c"
{
PhotoRow* _tmp5_ = NULL;
#line 1057 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp5_ = self->row;
#line 1057 "/home/jens/Source/shotwell/src/Photo.vala"
g_rec_mutex_unlock (&self->priv->__lock_row);
#line 8658 "Photo.c"
}
#line 1060 "/home/jens/Source/shotwell/src/Photo.vala"
return result;
#line 8662 "Photo.c"
} else {
#line 1062 "/home/jens/Source/shotwell/src/Photo.vala"
result = NULL;
#line 8666 "Photo.c"
{
PhotoRow* _tmp6_ = NULL;
#line 1057 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp6_ = self->row;
#line 1057 "/home/jens/Source/shotwell/src/Photo.vala"
g_rec_mutex_unlock (&self->priv->__lock_row);
#line 8673 "Photo.c"
}
#line 1062 "/home/jens/Source/shotwell/src/Photo.vala"
return result;
#line 8677 "Photo.c"
}
}
__finally296:
{
PhotoRow* _tmp7_ = NULL;
#line 1057 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp7_ = self->row;
#line 1057 "/home/jens/Source/shotwell/src/Photo.vala"
g_rec_mutex_unlock (&self->priv->__lock_row);
#line 8687 "Photo.c"
}
#line 1057 "/home/jens/Source/shotwell/src/Photo.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 1057 "/home/jens/Source/shotwell/src/Photo.vala"
g_clear_error (&_inner_error_);
#line 1057 "/home/jens/Source/shotwell/src/Photo.vala"
return NULL;
#line 8695 "Photo.c"
}
}
GeeCollection* photo_get_raw_development_photo_rows (Photo* self) {
GeeCollection* result = NULL;
GError * _inner_error_ = NULL;
#line 1066 "/home/jens/Source/shotwell/src/Photo.vala"
g_return_val_if_fail (IS_PHOTO (self), NULL);
#line 8705 "Photo.c"
{
PhotoRow* _tmp0_ = NULL;
#line 1067 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp0_ = self->row;
#line 1067 "/home/jens/Source/shotwell/src/Photo.vala"
g_rec_mutex_lock (&self->priv->__lock_row);
#line 8712 "Photo.c"
{
GeeCollection* _tmp1_ = NULL;
GeeHashMap* _tmp2_ = NULL;
#line 1068 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp2_ = self->priv->developments;
#line 1068 "/home/jens/Source/shotwell/src/Photo.vala"
if (_tmp2_ != NULL) {
#line 8720 "Photo.c"
GeeHashMap* _tmp3_ = NULL;
GeeCollection* _tmp4_ = NULL;
GeeCollection* _tmp5_ = NULL;
#line 1068 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp3_ = self->priv->developments;
#line 1068 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp4_ = gee_abstract_map_get_values (G_TYPE_CHECK_INSTANCE_CAST (_tmp3_, GEE_TYPE_MAP, GeeMap));
#line 1068 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp5_ = _tmp4_;
#line 1068 "/home/jens/Source/shotwell/src/Photo.vala"
_g_object_unref0 (_tmp1_);
#line 1068 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp1_ = _tmp5_;
#line 8734 "Photo.c"
} else {
#line 1068 "/home/jens/Source/shotwell/src/Photo.vala"
_g_object_unref0 (_tmp1_);
#line 1068 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp1_ = NULL;
#line 8740 "Photo.c"
}
#line 1068 "/home/jens/Source/shotwell/src/Photo.vala"
result = _tmp1_;
#line 8744 "Photo.c"
{
PhotoRow* _tmp6_ = NULL;
#line 1067 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp6_ = self->row;
#line 1067 "/home/jens/Source/shotwell/src/Photo.vala"
g_rec_mutex_unlock (&self->priv->__lock_row);
#line 8751 "Photo.c"
}
#line 1068 "/home/jens/Source/shotwell/src/Photo.vala"
return result;
#line 8755 "Photo.c"
}
__finally297:
{
PhotoRow* _tmp7_ = NULL;
#line 1067 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp7_ = self->row;
#line 1067 "/home/jens/Source/shotwell/src/Photo.vala"
g_rec_mutex_unlock (&self->priv->__lock_row);
#line 8764 "Photo.c"
}
#line 1067 "/home/jens/Source/shotwell/src/Photo.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 1067 "/home/jens/Source/shotwell/src/Photo.vala"
g_clear_error (&_inner_error_);
#line 1067 "/home/jens/Source/shotwell/src/Photo.vala"
return NULL;
#line 8772 "Photo.c"
}
}
BackingPhotoRow* photo_get_raw_development_photo_row (Photo* self, RawDeveloper d) {
BackingPhotoRow* result = NULL;
GError * _inner_error_ = NULL;
#line 1072 "/home/jens/Source/shotwell/src/Photo.vala"
g_return_val_if_fail (IS_PHOTO (self), NULL);
#line 8782 "Photo.c"
{
PhotoRow* _tmp0_ = NULL;
#line 1073 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp0_ = self->row;
#line 1073 "/home/jens/Source/shotwell/src/Photo.vala"
g_rec_mutex_lock (&self->priv->__lock_row);
#line 8789 "Photo.c"
{
BackingPhotoRow* _tmp1_ = NULL;
GeeHashMap* _tmp2_ = NULL;
#line 1074 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp2_ = self->priv->developments;
#line 1074 "/home/jens/Source/shotwell/src/Photo.vala"
if (_tmp2_ != NULL) {
#line 8797 "Photo.c"
GeeHashMap* _tmp3_ = NULL;
RawDeveloper _tmp4_ = 0;
gpointer _tmp5_ = NULL;
#line 1074 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp3_ = self->priv->developments;
#line 1074 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp4_ = d;
#line 1074 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp5_ = gee_abstract_map_get (G_TYPE_CHECK_INSTANCE_CAST (_tmp3_, GEE_TYPE_ABSTRACT_MAP, GeeAbstractMap), (gpointer) ((gintptr) _tmp4_));
#line 1074 "/home/jens/Source/shotwell/src/Photo.vala"
_backing_photo_row_unref0 (_tmp1_);
#line 1074 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp1_ = (BackingPhotoRow*) _tmp5_;
#line 8811 "Photo.c"
} else {
#line 1074 "/home/jens/Source/shotwell/src/Photo.vala"
_backing_photo_row_unref0 (_tmp1_);
#line 1074 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp1_ = NULL;
#line 8817 "Photo.c"
}
#line 1074 "/home/jens/Source/shotwell/src/Photo.vala"
result = _tmp1_;
#line 8821 "Photo.c"
{
PhotoRow* _tmp6_ = NULL;
#line 1073 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp6_ = self->row;
#line 1073 "/home/jens/Source/shotwell/src/Photo.vala"
g_rec_mutex_unlock (&self->priv->__lock_row);
#line 8828 "Photo.c"
}
#line 1074 "/home/jens/Source/shotwell/src/Photo.vala"
return result;
#line 8832 "Photo.c"
}
__finally298:
{
PhotoRow* _tmp7_ = NULL;
#line 1073 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp7_ = self->row;
#line 1073 "/home/jens/Source/shotwell/src/Photo.vala"
g_rec_mutex_unlock (&self->priv->__lock_row);
#line 8841 "Photo.c"
}
#line 1073 "/home/jens/Source/shotwell/src/Photo.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 1073 "/home/jens/Source/shotwell/src/Photo.vala"
g_clear_error (&_inner_error_);
#line 1073 "/home/jens/Source/shotwell/src/Photo.vala"
return NULL;
#line 8849 "Photo.c"
}
}
static PhotoFileFormat* _photo_file_format_dup (PhotoFileFormat* self) {
PhotoFileFormat* dup;
#line 1084 "/home/jens/Source/shotwell/src/Photo.vala"
dup = g_new0 (PhotoFileFormat, 1);
#line 1084 "/home/jens/Source/shotwell/src/Photo.vala"
memcpy (dup, self, sizeof (PhotoFileFormat));
#line 1084 "/home/jens/Source/shotwell/src/Photo.vala"
return dup;
#line 8862 "Photo.c"
}
static gpointer __photo_file_format_dup0 (gpointer self) {
#line 1084 "/home/jens/Source/shotwell/src/Photo.vala"
return self ? _photo_file_format_dup (self) : NULL;
#line 8869 "Photo.c"
}
PhotoFileFormat* photo_get_editable_file_format (Photo* self) {
PhotoFileFormat* result = NULL;
PhotoFileReader* reader = NULL;
PhotoFileReader* _tmp0_ = NULL;
PhotoFileReader* _tmp1_ = NULL;
PhotoFileReader* _tmp2_ = NULL;
PhotoFileFormat _tmp3_ = 0;
PhotoFileFormat* _tmp4_ = NULL;
#line 1078 "/home/jens/Source/shotwell/src/Photo.vala"
g_return_val_if_fail (IS_PHOTO (self), NULL);
#line 1079 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp0_ = photo_get_editable_reader (self);
#line 1079 "/home/jens/Source/shotwell/src/Photo.vala"
reader = _tmp0_;
#line 1080 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp1_ = reader;
#line 1080 "/home/jens/Source/shotwell/src/Photo.vala"
if (_tmp1_ == NULL) {
#line 1081 "/home/jens/Source/shotwell/src/Photo.vala"
result = NULL;
#line 1081 "/home/jens/Source/shotwell/src/Photo.vala"
_photo_file_adapter_unref0 (reader);
#line 1081 "/home/jens/Source/shotwell/src/Photo.vala"
return result;
#line 8897 "Photo.c"
}
#line 1084 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp2_ = reader;
#line 1084 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp3_ = photo_file_adapter_get_file_format (G_TYPE_CHECK_INSTANCE_CAST (_tmp2_, TYPE_PHOTO_FILE_ADAPTER, PhotoFileAdapter));
#line 1084 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp4_ = __photo_file_format_dup0 (&_tmp3_);
#line 1084 "/home/jens/Source/shotwell/src/Photo.vala"
result = _tmp4_;
#line 1084 "/home/jens/Source/shotwell/src/Photo.vala"
_photo_file_adapter_unref0 (reader);
#line 1084 "/home/jens/Source/shotwell/src/Photo.vala"
return result;
#line 8911 "Photo.c"
}
PhotoFileFormat photo_get_export_format_for_parameters (Photo* self, ExportFormatParameters* params) {
PhotoFileFormat result = 0;
PhotoFileFormat _result_ = 0;
PhotoFileFormat _tmp0_ = 0;
ExportFormatParameters _tmp1_ = {0};
ExportFormatMode _tmp2_ = 0;
#line 1087 "/home/jens/Source/shotwell/src/Photo.vala"
g_return_val_if_fail (IS_PHOTO (self), 0);
#line 1087 "/home/jens/Source/shotwell/src/Photo.vala"
g_return_val_if_fail (params != NULL, 0);
#line 1088 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp0_ = photo_file_format_get_system_default_format ();
#line 1088 "/home/jens/Source/shotwell/src/Photo.vala"
_result_ = _tmp0_;
#line 1090 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp1_ = *params;
#line 1090 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp2_ = _tmp1_.mode;
#line 1090 "/home/jens/Source/shotwell/src/Photo.vala"
switch (_tmp2_) {
#line 1090 "/home/jens/Source/shotwell/src/Photo.vala"
case EXPORT_FORMAT_MODE_UNMODIFIED:
#line 8937 "Photo.c"
{
PhotoFileFormat _tmp3_ = 0;
#line 1092 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp3_ = photo_get_master_file_format (self);
#line 1092 "/home/jens/Source/shotwell/src/Photo.vala"
_result_ = _tmp3_;
#line 1093 "/home/jens/Source/shotwell/src/Photo.vala"
break;
#line 8946 "Photo.c"
}
#line 1090 "/home/jens/Source/shotwell/src/Photo.vala"
case EXPORT_FORMAT_MODE_CURRENT:
#line 8950 "Photo.c"
{
PhotoFileFormat _tmp4_ = 0;
#line 1096 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp4_ = photo_get_best_export_file_format (self);
#line 1096 "/home/jens/Source/shotwell/src/Photo.vala"
_result_ = _tmp4_;
#line 1097 "/home/jens/Source/shotwell/src/Photo.vala"
break;
#line 8959 "Photo.c"
}
#line 1090 "/home/jens/Source/shotwell/src/Photo.vala"
case EXPORT_FORMAT_MODE_SPECIFIED:
#line 8963 "Photo.c"
{
ExportFormatParameters _tmp5_ = {0};
PhotoFileFormat _tmp6_ = 0;
#line 1100 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp5_ = *params;
#line 1100 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp6_ = _tmp5_.specified_format;
#line 1100 "/home/jens/Source/shotwell/src/Photo.vala"
_result_ = _tmp6_;
#line 1101 "/home/jens/Source/shotwell/src/Photo.vala"
break;
#line 8975 "Photo.c"
}
default:
{
#line 1104 "/home/jens/Source/shotwell/src/Photo.vala"
g_error ("Photo.vala:1104: get_export_format_for_parameters: unsupported export " \
"format mode");
#line 8981 "Photo.c"
}
}
#line 1107 "/home/jens/Source/shotwell/src/Photo.vala"
result = _result_;
#line 1107 "/home/jens/Source/shotwell/src/Photo.vala"
return result;
#line 8988 "Photo.c"
}
gchar* photo_get_export_basename_for_parameters (Photo* self, ExportFormatParameters* params) {
gchar* result = NULL;
gchar* _result_ = NULL;
ExportFormatParameters _tmp0_ = {0};
ExportFormatMode _tmp1_ = 0;
const gchar* _tmp8_ = NULL;
#line 1110 "/home/jens/Source/shotwell/src/Photo.vala"
g_return_val_if_fail (IS_PHOTO (self), NULL);
#line 1110 "/home/jens/Source/shotwell/src/Photo.vala"
g_return_val_if_fail (params != NULL, NULL);
#line 1111 "/home/jens/Source/shotwell/src/Photo.vala"
_result_ = NULL;
#line 1113 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp0_ = *params;
#line 1113 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp1_ = _tmp0_.mode;
#line 1113 "/home/jens/Source/shotwell/src/Photo.vala"
switch (_tmp1_) {
#line 1113 "/home/jens/Source/shotwell/src/Photo.vala"
case EXPORT_FORMAT_MODE_UNMODIFIED:
#line 9012 "Photo.c"
{
GFile* _tmp2_ = NULL;
GFile* _tmp3_ = NULL;
gchar* _tmp4_ = NULL;
#line 1115 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp2_ = media_source_get_master_file (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_MEDIA_SOURCE, MediaSource));
#line 1115 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp3_ = _tmp2_;
#line 1115 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp4_ = g_file_get_basename (_tmp3_);
#line 1115 "/home/jens/Source/shotwell/src/Photo.vala"
_g_free0 (_result_);
#line 1115 "/home/jens/Source/shotwell/src/Photo.vala"
_result_ = _tmp4_;
#line 1115 "/home/jens/Source/shotwell/src/Photo.vala"
_g_object_unref0 (_tmp3_);
#line 1116 "/home/jens/Source/shotwell/src/Photo.vala"
break;
#line 9031 "Photo.c"
}
#line 1113 "/home/jens/Source/shotwell/src/Photo.vala"
case EXPORT_FORMAT_MODE_CURRENT:
#line 1113 "/home/jens/Source/shotwell/src/Photo.vala"
case EXPORT_FORMAT_MODE_SPECIFIED:
#line 9037 "Photo.c"
{
ExportFormatParameters _tmp5_ = {0};
PhotoFileFormat _tmp6_ = 0;
gchar* _tmp7_ = NULL;
#line 1120 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp5_ = *params;
#line 1120 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp6_ = photo_get_export_format_for_parameters (self, &_tmp5_);
#line 1120 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp7_ = photo_get_export_basename (self, &_tmp6_);
#line 1120 "/home/jens/Source/shotwell/src/Photo.vala"
result = _tmp7_;
#line 1120 "/home/jens/Source/shotwell/src/Photo.vala"
_g_free0 (_result_);
#line 1120 "/home/jens/Source/shotwell/src/Photo.vala"
return result;
#line 9054 "Photo.c"
}
default:
{
#line 1123 "/home/jens/Source/shotwell/src/Photo.vala"
g_error ("Photo.vala:1123: get_export_basename_for_parameters: unsupported expor" \
"t format mode");
#line 9060 "Photo.c"
}
}
#line 1126 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp8_ = _result_;
#line 1126 "/home/jens/Source/shotwell/src/Photo.vala"
_vala_assert (_tmp8_ != NULL, "result != null");
#line 1127 "/home/jens/Source/shotwell/src/Photo.vala"
result = _result_;
#line 1127 "/home/jens/Source/shotwell/src/Photo.vala"
return result;
#line 9071 "Photo.c"
}
ImportResult photo_prepare_for_import (PhotoImportParams* params) {
ImportResult result = 0;
GFile* file = NULL;
PhotoImportParams* _tmp0_ = NULL;
GFile* _tmp1_ = NULL;
GFile* _tmp2_ = NULL;
GFileInfo* info = NULL;
GFileInfo* _tmp7_ = NULL;
GFileType _tmp8_ = 0;
GFile* _tmp9_ = NULL;
gboolean _tmp10_ = FALSE;
GFile* _tmp14_ = NULL;
gboolean _tmp15_ = FALSE;
GTimeVal timestamp = {0};
GFileInfo* _tmp19_ = NULL;
GTimeVal _tmp20_ = {0};
gboolean _tmp21_ = FALSE;
gboolean _tmp22_ = FALSE;
PhotoImportParams* _tmp23_ = NULL;
const gchar* _tmp24_ = NULL;
PhotoFileInterrogator* interrogator = NULL;
GFile* _tmp32_ = NULL;
PhotoImportParams* _tmp33_ = NULL;
PhotoFileSnifferOptions _tmp34_ = 0;
PhotoFileInterrogator* _tmp35_ = NULL;
PhotoFileInterrogator* _tmp42_ = NULL;
gboolean _tmp43_ = FALSE;
DetectedPhotoInformation* detected = NULL;
PhotoFileInterrogator* _tmp44_ = NULL;
DetectedPhotoInformation* _tmp45_ = NULL;
gboolean _tmp46_ = FALSE;
DetectedPhotoInformation* _tmp47_ = NULL;
PhotoImportParams* _tmp50_ = NULL;
PhotoFileSnifferOptions _tmp51_ = 0;
Orientation orientation = 0;
time_t exposure_time = 0;
gchar* title = NULL;
gchar* _tmp64_ = NULL;
gchar* comment = NULL;
gchar* _tmp65_ = NULL;
Rating rating = 0;
DetectedPhotoInformation* _tmp66_ = NULL;
PhotoMetadata* _tmp67_ = NULL;
gboolean _tmp90_ = FALSE;
gboolean _tmp91_ = FALSE;
DetectedPhotoInformation* _tmp92_ = NULL;
GdkColorspace _tmp93_ = 0;
PhotoImportParams* _tmp101_ = NULL;
PhotoRow* _tmp102_ = NULL;
PhotoImportParams* _tmp103_ = NULL;
PhotoRow* _tmp104_ = NULL;
BackingPhotoRow* _tmp105_ = NULL;
GFile* _tmp106_ = NULL;
gchar* _tmp107_ = NULL;
PhotoImportParams* _tmp108_ = NULL;
PhotoRow* _tmp109_ = NULL;
BackingPhotoRow* _tmp110_ = NULL;
DetectedPhotoInformation* _tmp111_ = NULL;
Dimensions _tmp112_ = {0};
PhotoImportParams* _tmp113_ = NULL;
PhotoRow* _tmp114_ = NULL;
BackingPhotoRow* _tmp115_ = NULL;
GFileInfo* _tmp116_ = NULL;
gint64 _tmp117_ = 0LL;
PhotoImportParams* _tmp118_ = NULL;
PhotoRow* _tmp119_ = NULL;
BackingPhotoRow* _tmp120_ = NULL;
GTimeVal _tmp121_ = {0};
glong _tmp122_ = 0L;
PhotoImportParams* _tmp123_ = NULL;
PhotoRow* _tmp124_ = NULL;
time_t _tmp125_ = 0;
PhotoImportParams* _tmp126_ = NULL;
PhotoRow* _tmp127_ = NULL;
Orientation _tmp128_ = 0;
PhotoImportParams* _tmp129_ = NULL;
PhotoRow* _tmp130_ = NULL;
BackingPhotoRow* _tmp131_ = NULL;
Orientation _tmp132_ = 0;
PhotoImportParams* _tmp133_ = NULL;
PhotoRow* _tmp134_ = NULL;
PhotoImportParams* _tmp135_ = NULL;
ImportID _tmp136_ = {0};
PhotoImportParams* _tmp137_ = NULL;
PhotoRow* _tmp138_ = NULL;
PhotoImportParams* _tmp139_ = NULL;
PhotoRow* _tmp140_ = NULL;
PhotoImportParams* _tmp141_ = NULL;
PhotoRow* _tmp142_ = NULL;
DetectedPhotoInformation* _tmp143_ = NULL;
const gchar* _tmp144_ = NULL;
gchar* _tmp145_ = NULL;
PhotoImportParams* _tmp146_ = NULL;
PhotoRow* _tmp147_ = NULL;
DetectedPhotoInformation* _tmp148_ = NULL;
const gchar* _tmp149_ = NULL;
gchar* _tmp150_ = NULL;
PhotoImportParams* _tmp151_ = NULL;
PhotoRow* _tmp152_ = NULL;
DetectedPhotoInformation* _tmp153_ = NULL;
const gchar* _tmp154_ = NULL;
gchar* _tmp155_ = NULL;
PhotoImportParams* _tmp156_ = NULL;
PhotoRow* _tmp157_ = NULL;
PhotoImportParams* _tmp158_ = NULL;
PhotoRow* _tmp159_ = NULL;
PhotoImportParams* _tmp160_ = NULL;
PhotoRow* _tmp161_ = NULL;
BackingPhotoRow* _tmp162_ = NULL;
DetectedPhotoInformation* _tmp163_ = NULL;
PhotoFileFormat _tmp164_ = 0;
PhotoImportParams* _tmp165_ = NULL;
PhotoRow* _tmp166_ = NULL;
const gchar* _tmp167_ = NULL;
gchar* _tmp168_ = NULL;
PhotoImportParams* _tmp169_ = NULL;
PhotoRow* _tmp170_ = NULL;
const gchar* _tmp171_ = NULL;
gchar* _tmp172_ = NULL;
PhotoImportParams* _tmp173_ = NULL;
PhotoRow* _tmp174_ = NULL;
Rating _tmp175_ = 0;
PhotoImportParams* _tmp176_ = NULL;
Thumbnails* _tmp177_ = NULL;
GError * _inner_error_ = NULL;
#line 1142 "/home/jens/Source/shotwell/src/Photo.vala"
g_return_val_if_fail (IS_PHOTO_IMPORT_PARAMS (params), 0);
#line 1146 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp0_ = params;
#line 1146 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp1_ = _tmp0_->file;
#line 1146 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp2_ = _g_object_ref0 (_tmp1_);
#line 1146 "/home/jens/Source/shotwell/src/Photo.vala"
file = _tmp2_;
#line 1148 "/home/jens/Source/shotwell/src/Photo.vala"
info = NULL;
#line 9212 "Photo.c"
{
GFileInfo* _tmp3_ = NULL;
GFile* _tmp4_ = NULL;
GFileInfo* _tmp5_ = NULL;
GFileInfo* _tmp6_ = NULL;
#line 1150 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp4_ = file;
#line 1150 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp5_ = g_file_query_info (_tmp4_, DIRECTORY_MONITOR_SUPPLIED_ATTRIBUTES, G_FILE_QUERY_INFO_NOFOLLOW_SYMLINKS, NULL, &_inner_error_);
#line 1150 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp3_ = _tmp5_;
#line 1150 "/home/jens/Source/shotwell/src/Photo.vala"
if (G_UNLIKELY (_inner_error_ != NULL)) {
#line 9226 "Photo.c"
goto __catch299_g_error;
}
#line 1150 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp6_ = _tmp3_;
#line 1150 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp3_ = NULL;
#line 1150 "/home/jens/Source/shotwell/src/Photo.vala"
_g_object_unref0 (info);
#line 1150 "/home/jens/Source/shotwell/src/Photo.vala"
info = _tmp6_;
#line 1149 "/home/jens/Source/shotwell/src/Photo.vala"
_g_object_unref0 (_tmp3_);
#line 9239 "Photo.c"
}
goto __finally299;
__catch299_g_error:
{
GError* err = NULL;
#line 1149 "/home/jens/Source/shotwell/src/Photo.vala"
err = _inner_error_;
#line 1149 "/home/jens/Source/shotwell/src/Photo.vala"
_inner_error_ = NULL;
#line 1153 "/home/jens/Source/shotwell/src/Photo.vala"
result = IMPORT_RESULT_FILE_ERROR;
#line 1153 "/home/jens/Source/shotwell/src/Photo.vala"
_g_error_free0 (err);
#line 1153 "/home/jens/Source/shotwell/src/Photo.vala"
_g_object_unref0 (info);
#line 1153 "/home/jens/Source/shotwell/src/Photo.vala"
_g_object_unref0 (file);
#line 1153 "/home/jens/Source/shotwell/src/Photo.vala"
return result;
#line 9259 "Photo.c"
}
__finally299:
#line 1149 "/home/jens/Source/shotwell/src/Photo.vala"
if (G_UNLIKELY (_inner_error_ != NULL)) {
#line 1149 "/home/jens/Source/shotwell/src/Photo.vala"
_g_object_unref0 (info);
#line 1149 "/home/jens/Source/shotwell/src/Photo.vala"
_g_object_unref0 (file);
#line 1149 "/home/jens/Source/shotwell/src/Photo.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 1149 "/home/jens/Source/shotwell/src/Photo.vala"
g_clear_error (&_inner_error_);
#line 1149 "/home/jens/Source/shotwell/src/Photo.vala"
return 0;
#line 9274 "Photo.c"
}
#line 1156 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp7_ = info;
#line 1156 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp8_ = g_file_info_get_file_type (_tmp7_);
#line 1156 "/home/jens/Source/shotwell/src/Photo.vala"
if (_tmp8_ != G_FILE_TYPE_REGULAR) {
#line 1157 "/home/jens/Source/shotwell/src/Photo.vala"
result = IMPORT_RESULT_NOT_A_FILE;
#line 1157 "/home/jens/Source/shotwell/src/Photo.vala"
_g_object_unref0 (info);
#line 1157 "/home/jens/Source/shotwell/src/Photo.vala"
_g_object_unref0 (file);
#line 1157 "/home/jens/Source/shotwell/src/Photo.vala"
return result;
#line 9290 "Photo.c"
}
#line 1159 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp9_ = file;
#line 1159 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp10_ = photo_is_file_image (_tmp9_);
#line 1159 "/home/jens/Source/shotwell/src/Photo.vala"
if (!_tmp10_) {
#line 9298 "Photo.c"
GFile* _tmp11_ = NULL;
gchar* _tmp12_ = NULL;
gchar* _tmp13_ = NULL;
#line 1160 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp11_ = file;
#line 1160 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp12_ = g_file_get_path (_tmp11_);
#line 1160 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp13_ = _tmp12_;
#line 1160 "/home/jens/Source/shotwell/src/Photo.vala"
g_message ("Photo.vala:1160: Not importing %s: Not an image file", _tmp13_);
#line 1160 "/home/jens/Source/shotwell/src/Photo.vala"
_g_free0 (_tmp13_);
#line 1162 "/home/jens/Source/shotwell/src/Photo.vala"
result = IMPORT_RESULT_NOT_AN_IMAGE;
#line 1162 "/home/jens/Source/shotwell/src/Photo.vala"
_g_object_unref0 (info);
#line 1162 "/home/jens/Source/shotwell/src/Photo.vala"
_g_object_unref0 (file);
#line 1162 "/home/jens/Source/shotwell/src/Photo.vala"
return result;
#line 9320 "Photo.c"
}
#line 1165 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp14_ = file;
#line 1165 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp15_ = photo_file_format_is_file_supported (_tmp14_);
#line 1165 "/home/jens/Source/shotwell/src/Photo.vala"
if (!_tmp15_) {
#line 9328 "Photo.c"
GFile* _tmp16_ = NULL;
gchar* _tmp17_ = NULL;
gchar* _tmp18_ = NULL;
#line 1166 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp16_ = file;
#line 1166 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp17_ = g_file_get_path (_tmp16_);
#line 1166 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp18_ = _tmp17_;
#line 1166 "/home/jens/Source/shotwell/src/Photo.vala"
g_message ("Photo.vala:1166: Not importing %s: Unsupported extension", _tmp18_);
#line 1166 "/home/jens/Source/shotwell/src/Photo.vala"
_g_free0 (_tmp18_);
#line 1168 "/home/jens/Source/shotwell/src/Photo.vala"
result = IMPORT_RESULT_UNSUPPORTED_FORMAT;
#line 1168 "/home/jens/Source/shotwell/src/Photo.vala"
_g_object_unref0 (info);
#line 1168 "/home/jens/Source/shotwell/src/Photo.vala"
_g_object_unref0 (file);
#line 1168 "/home/jens/Source/shotwell/src/Photo.vala"
return result;
#line 9350 "Photo.c"
}
#line 1171 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp19_ = info;
#line 1171 "/home/jens/Source/shotwell/src/Photo.vala"
g_file_info_get_modification_time (_tmp19_, &_tmp20_);
#line 1171 "/home/jens/Source/shotwell/src/Photo.vala"
timestamp = _tmp20_;
#line 1174 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp23_ = params;
#line 1174 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp24_ = _tmp23_->exif_md5;
#line 1174 "/home/jens/Source/shotwell/src/Photo.vala"
if (_tmp24_ != NULL) {
#line 9364 "Photo.c"
PhotoImportParams* _tmp25_ = NULL;
const gchar* _tmp26_ = NULL;
#line 1174 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp25_ = params;
#line 1174 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp26_ = _tmp25_->thumbnail_md5;
#line 1174 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp22_ = _tmp26_ != NULL;
#line 9373 "Photo.c"
} else {
#line 1174 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp22_ = FALSE;
#line 9377 "Photo.c"
}
#line 1174 "/home/jens/Source/shotwell/src/Photo.vala"
if (_tmp22_) {
#line 9381 "Photo.c"
PhotoImportParams* _tmp27_ = NULL;
const gchar* _tmp28_ = NULL;
#line 1174 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp27_ = params;
#line 1174 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp28_ = _tmp27_->full_md5;
#line 1174 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp21_ = _tmp28_ != NULL;
#line 9390 "Photo.c"
} else {
#line 1174 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp21_ = FALSE;
#line 9394 "Photo.c"
}
#line 1174 "/home/jens/Source/shotwell/src/Photo.vala"
if (_tmp21_) {
#line 9398 "Photo.c"
PhotoImportParams* _tmp29_ = NULL;
PhotoImportParams* _tmp30_ = NULL;
PhotoFileSnifferOptions _tmp31_ = 0;
#line 1175 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp29_ = params;
#line 1175 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp30_ = params;
#line 1175 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp31_ = _tmp30_->sniffer_options;
#line 1175 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp30_->sniffer_options = _tmp31_ | PHOTO_FILE_SNIFFER_OPTIONS_NO_MD5;
#line 9410 "Photo.c"
}
#line 1178 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp32_ = file;
#line 1178 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp33_ = params;
#line 1178 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp34_ = _tmp33_->sniffer_options;
#line 1178 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp35_ = photo_file_interrogator_new (_tmp32_, _tmp34_);
#line 1178 "/home/jens/Source/shotwell/src/Photo.vala"
interrogator = _tmp35_;
#line 9422 "Photo.c"
{
PhotoFileInterrogator* _tmp36_ = NULL;
#line 1180 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp36_ = interrogator;
#line 1180 "/home/jens/Source/shotwell/src/Photo.vala"
photo_file_interrogator_interrogate (_tmp36_, &_inner_error_);
#line 1180 "/home/jens/Source/shotwell/src/Photo.vala"
if (G_UNLIKELY (_inner_error_ != NULL)) {
#line 9431 "Photo.c"
goto __catch300_g_error;
}
}
goto __finally300;
__catch300_g_error:
{
GError* err = NULL;
GFile* _tmp37_ = NULL;
gchar* _tmp38_ = NULL;
gchar* _tmp39_ = NULL;
GError* _tmp40_ = NULL;
const gchar* _tmp41_ = NULL;
#line 1179 "/home/jens/Source/shotwell/src/Photo.vala"
err = _inner_error_;
#line 1179 "/home/jens/Source/shotwell/src/Photo.vala"
_inner_error_ = NULL;
#line 1182 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp37_ = file;
#line 1182 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp38_ = g_file_get_path (_tmp37_);
#line 1182 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp39_ = _tmp38_;
#line 1182 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp40_ = err;
#line 1182 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp41_ = _tmp40_->message;
#line 1182 "/home/jens/Source/shotwell/src/Photo.vala"
g_warning ("Photo.vala:1182: Unable to interrogate photo file %s: %s", _tmp39_, _tmp41_);
#line 1182 "/home/jens/Source/shotwell/src/Photo.vala"
_g_free0 (_tmp39_);
#line 1184 "/home/jens/Source/shotwell/src/Photo.vala"
result = IMPORT_RESULT_DECODE_ERROR;
#line 1184 "/home/jens/Source/shotwell/src/Photo.vala"
_g_error_free0 (err);
#line 1184 "/home/jens/Source/shotwell/src/Photo.vala"
_photo_file_interrogator_unref0 (interrogator);
#line 1184 "/home/jens/Source/shotwell/src/Photo.vala"
_g_object_unref0 (info);
#line 1184 "/home/jens/Source/shotwell/src/Photo.vala"
_g_object_unref0 (file);
#line 1184 "/home/jens/Source/shotwell/src/Photo.vala"
return result;
#line 9474 "Photo.c"
}
__finally300:
#line 1179 "/home/jens/Source/shotwell/src/Photo.vala"
if (G_UNLIKELY (_inner_error_ != NULL)) {
#line 1179 "/home/jens/Source/shotwell/src/Photo.vala"
_photo_file_interrogator_unref0 (interrogator);
#line 1179 "/home/jens/Source/shotwell/src/Photo.vala"
_g_object_unref0 (info);
#line 1179 "/home/jens/Source/shotwell/src/Photo.vala"
_g_object_unref0 (file);
#line 1179 "/home/jens/Source/shotwell/src/Photo.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 1179 "/home/jens/Source/shotwell/src/Photo.vala"
g_clear_error (&_inner_error_);
#line 1179 "/home/jens/Source/shotwell/src/Photo.vala"
return 0;
#line 9491 "Photo.c"
}
#line 1187 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp42_ = interrogator;
#line 1187 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp43_ = photo_file_interrogator_get_is_photo_corrupted (_tmp42_);
#line 1187 "/home/jens/Source/shotwell/src/Photo.vala"
if (_tmp43_) {
#line 1188 "/home/jens/Source/shotwell/src/Photo.vala"
result = IMPORT_RESULT_NOT_AN_IMAGE;
#line 1188 "/home/jens/Source/shotwell/src/Photo.vala"
_photo_file_interrogator_unref0 (interrogator);
#line 1188 "/home/jens/Source/shotwell/src/Photo.vala"
_g_object_unref0 (info);
#line 1188 "/home/jens/Source/shotwell/src/Photo.vala"
_g_object_unref0 (file);
#line 1188 "/home/jens/Source/shotwell/src/Photo.vala"
return result;
#line 9509 "Photo.c"
}
#line 1191 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp44_ = interrogator;
#line 1191 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp45_ = photo_file_interrogator_get_detected_photo_information (_tmp44_);
#line 1191 "/home/jens/Source/shotwell/src/Photo.vala"
detected = _tmp45_;
#line 1192 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp47_ = detected;
#line 1192 "/home/jens/Source/shotwell/src/Photo.vala"
if (_tmp47_ == NULL) {
#line 1192 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp46_ = TRUE;
#line 9523 "Photo.c"
} else {
DetectedPhotoInformation* _tmp48_ = NULL;
PhotoFileFormat _tmp49_ = 0;
#line 1192 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp48_ = detected;
#line 1192 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp49_ = _tmp48_->file_format;
#line 1192 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp46_ = _tmp49_ == PHOTO_FILE_FORMAT_UNKNOWN;
#line 9533 "Photo.c"
}
#line 1192 "/home/jens/Source/shotwell/src/Photo.vala"
if (_tmp46_) {
#line 1193 "/home/jens/Source/shotwell/src/Photo.vala"
result = IMPORT_RESULT_UNSUPPORTED_FORMAT;
#line 1193 "/home/jens/Source/shotwell/src/Photo.vala"
_detected_photo_information_unref0 (detected);
#line 1193 "/home/jens/Source/shotwell/src/Photo.vala"
_photo_file_interrogator_unref0 (interrogator);
#line 1193 "/home/jens/Source/shotwell/src/Photo.vala"
_g_object_unref0 (info);
#line 1193 "/home/jens/Source/shotwell/src/Photo.vala"
_g_object_unref0 (file);
#line 1193 "/home/jens/Source/shotwell/src/Photo.vala"
return result;
#line 9549 "Photo.c"
}
#line 1196 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp50_ = params;
#line 1196 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp51_ = _tmp50_->sniffer_options;
#line 1196 "/home/jens/Source/shotwell/src/Photo.vala"
if ((_tmp51_ & PHOTO_FILE_SNIFFER_OPTIONS_NO_MD5) != 0) {
#line 9557 "Photo.c"
DetectedPhotoInformation* _tmp52_ = NULL;
PhotoImportParams* _tmp53_ = NULL;
const gchar* _tmp54_ = NULL;
gchar* _tmp55_ = NULL;
DetectedPhotoInformation* _tmp56_ = NULL;
PhotoImportParams* _tmp57_ = NULL;
const gchar* _tmp58_ = NULL;
gchar* _tmp59_ = NULL;
DetectedPhotoInformation* _tmp60_ = NULL;
PhotoImportParams* _tmp61_ = NULL;
const gchar* _tmp62_ = NULL;
gchar* _tmp63_ = NULL;
#line 1197 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp52_ = detected;
#line 1197 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp53_ = params;
#line 1197 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp54_ = _tmp53_->exif_md5;
#line 1197 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp55_ = g_strdup (_tmp54_);
#line 1197 "/home/jens/Source/shotwell/src/Photo.vala"
_g_free0 (_tmp52_->exif_md5);
#line 1197 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp52_->exif_md5 = _tmp55_;
#line 1198 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp56_ = detected;
#line 1198 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp57_ = params;
#line 1198 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp58_ = _tmp57_->thumbnail_md5;
#line 1198 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp59_ = g_strdup (_tmp58_);
#line 1198 "/home/jens/Source/shotwell/src/Photo.vala"
_g_free0 (_tmp56_->thumbnail_md5);
#line 1198 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp56_->thumbnail_md5 = _tmp59_;
#line 1199 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp60_ = detected;
#line 1199 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp61_ = params;
#line 1199 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp62_ = _tmp61_->full_md5;
#line 1199 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp63_ = g_strdup (_tmp62_);
#line 1199 "/home/jens/Source/shotwell/src/Photo.vala"
_g_free0 (_tmp60_->md5);
#line 1199 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp60_->md5 = _tmp63_;
#line 9606 "Photo.c"
}
#line 1202 "/home/jens/Source/shotwell/src/Photo.vala"
orientation = ORIENTATION_TOP_LEFT;
#line 1203 "/home/jens/Source/shotwell/src/Photo.vala"
exposure_time = (time_t) 0;
#line 1204 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp64_ = g_strdup ("");
#line 1204 "/home/jens/Source/shotwell/src/Photo.vala"
title = _tmp64_;
#line 1205 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp65_ = g_strdup ("");
#line 1205 "/home/jens/Source/shotwell/src/Photo.vala"
comment = _tmp65_;
#line 1206 "/home/jens/Source/shotwell/src/Photo.vala"
rating = RATING_UNRATED;
#line 1213 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp66_ = detected;
#line 1213 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp67_ = _tmp66_->metadata;
#line 1213 "/home/jens/Source/shotwell/src/Photo.vala"
if (_tmp67_ != NULL) {
#line 9628 "Photo.c"
MetadataDateTime* date_time = NULL;
DetectedPhotoInformation* _tmp68_ = NULL;
PhotoMetadata* _tmp69_ = NULL;
MetadataDateTime* _tmp70_ = NULL;
MetadataDateTime* _tmp71_ = NULL;
DetectedPhotoInformation* _tmp74_ = NULL;
PhotoMetadata* _tmp75_ = NULL;
Orientation _tmp76_ = 0;
DetectedPhotoInformation* _tmp77_ = NULL;
PhotoMetadata* _tmp78_ = NULL;
gchar* _tmp79_ = NULL;
DetectedPhotoInformation* _tmp80_ = NULL;
PhotoMetadata* _tmp81_ = NULL;
gchar* _tmp82_ = NULL;
PhotoImportParams* _tmp83_ = NULL;
DetectedPhotoInformation* _tmp84_ = NULL;
PhotoMetadata* _tmp85_ = NULL;
GeeSet* _tmp86_ = NULL;
DetectedPhotoInformation* _tmp87_ = NULL;
PhotoMetadata* _tmp88_ = NULL;
Rating _tmp89_ = 0;
#line 1214 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp68_ = detected;
#line 1214 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp69_ = _tmp68_->metadata;
#line 1214 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp70_ = photo_metadata_get_exposure_date_time (_tmp69_);
#line 1214 "/home/jens/Source/shotwell/src/Photo.vala"
date_time = _tmp70_;
#line 1215 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp71_ = date_time;
#line 1215 "/home/jens/Source/shotwell/src/Photo.vala"
if (_tmp71_ != NULL) {
#line 9662 "Photo.c"
MetadataDateTime* _tmp72_ = NULL;
time_t _tmp73_ = 0;
#line 1216 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp72_ = date_time;
#line 1216 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp73_ = metadata_date_time_get_timestamp (_tmp72_);
#line 1216 "/home/jens/Source/shotwell/src/Photo.vala"
exposure_time = _tmp73_;
#line 9671 "Photo.c"
}
#line 1218 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp74_ = detected;
#line 1218 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp75_ = _tmp74_->metadata;
#line 1218 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp76_ = photo_metadata_get_orientation (_tmp75_);
#line 1218 "/home/jens/Source/shotwell/src/Photo.vala"
orientation = _tmp76_;
#line 1219 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp77_ = detected;
#line 1219 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp78_ = _tmp77_->metadata;
#line 1219 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp79_ = media_metadata_get_title (G_TYPE_CHECK_INSTANCE_CAST (_tmp78_, TYPE_MEDIA_METADATA, MediaMetadata));
#line 1219 "/home/jens/Source/shotwell/src/Photo.vala"
_g_free0 (title);
#line 1219 "/home/jens/Source/shotwell/src/Photo.vala"
title = _tmp79_;
#line 1220 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp80_ = detected;
#line 1220 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp81_ = _tmp80_->metadata;
#line 1220 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp82_ = media_metadata_get_comment (G_TYPE_CHECK_INSTANCE_CAST (_tmp81_, TYPE_MEDIA_METADATA, MediaMetadata));
#line 1220 "/home/jens/Source/shotwell/src/Photo.vala"
_g_free0 (comment);
#line 1220 "/home/jens/Source/shotwell/src/Photo.vala"
comment = _tmp82_;
#line 1221 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp83_ = params;
#line 1221 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp84_ = detected;
#line 1221 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp85_ = _tmp84_->metadata;
#line 1221 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp86_ = photo_metadata_get_keywords (_tmp85_, NULL, NULL, NULL);
#line 1221 "/home/jens/Source/shotwell/src/Photo.vala"
_g_object_unref0 (_tmp83_->keywords);
#line 1221 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp83_->keywords = G_TYPE_CHECK_INSTANCE_CAST (_tmp86_, GEE_TYPE_COLLECTION, GeeCollection);
#line 1222 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp87_ = detected;
#line 1222 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp88_ = _tmp87_->metadata;
#line 1222 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp89_ = photo_metadata_get_rating (_tmp88_);
#line 1222 "/home/jens/Source/shotwell/src/Photo.vala"
rating = _tmp89_;
#line 1213 "/home/jens/Source/shotwell/src/Photo.vala"
_metadata_date_time_unref0 (date_time);
#line 9723 "Photo.c"
}
#line 1226 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp92_ = detected;
#line 1226 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp93_ = _tmp92_->colorspace;
#line 1226 "/home/jens/Source/shotwell/src/Photo.vala"
if (_tmp93_ != GDK_COLORSPACE_RGB) {
#line 1226 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp91_ = TRUE;
#line 9733 "Photo.c"
} else {
DetectedPhotoInformation* _tmp94_ = NULL;
gint _tmp95_ = 0;
#line 1227 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp94_ = detected;
#line 1227 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp95_ = _tmp94_->channels;
#line 1227 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp91_ = _tmp95_ < 3;
#line 9743 "Photo.c"
}
#line 1226 "/home/jens/Source/shotwell/src/Photo.vala"
if (_tmp91_) {
#line 1226 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp90_ = TRUE;
#line 9749 "Photo.c"
} else {
DetectedPhotoInformation* _tmp96_ = NULL;
gint _tmp97_ = 0;
#line 1228 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp96_ = detected;
#line 1228 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp97_ = _tmp96_->bits_per_channel;
#line 1228 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp90_ = _tmp97_ != 8;
#line 9759 "Photo.c"
}
#line 1226 "/home/jens/Source/shotwell/src/Photo.vala"
if (_tmp90_) {
#line 9763 "Photo.c"
GFile* _tmp98_ = NULL;
gchar* _tmp99_ = NULL;
gchar* _tmp100_ = NULL;
#line 1229 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp98_ = file;
#line 1229 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp99_ = g_file_get_path (_tmp98_);
#line 1229 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp100_ = _tmp99_;
#line 1229 "/home/jens/Source/shotwell/src/Photo.vala"
g_message ("Photo.vala:1229: Not importing %s: Unsupported color format", _tmp100_);
#line 1229 "/home/jens/Source/shotwell/src/Photo.vala"
_g_free0 (_tmp100_);
#line 1231 "/home/jens/Source/shotwell/src/Photo.vala"
result = IMPORT_RESULT_UNSUPPORTED_FORMAT;
#line 1231 "/home/jens/Source/shotwell/src/Photo.vala"
_g_free0 (comment);
#line 1231 "/home/jens/Source/shotwell/src/Photo.vala"
_g_free0 (title);
#line 1231 "/home/jens/Source/shotwell/src/Photo.vala"
_detected_photo_information_unref0 (detected);
#line 1231 "/home/jens/Source/shotwell/src/Photo.vala"
_photo_file_interrogator_unref0 (interrogator);
#line 1231 "/home/jens/Source/shotwell/src/Photo.vala"
_g_object_unref0 (info);
#line 1231 "/home/jens/Source/shotwell/src/Photo.vala"
_g_object_unref0 (file);
#line 1231 "/home/jens/Source/shotwell/src/Photo.vala"
return result;
#line 9793 "Photo.c"
}
#line 1237 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp101_ = params;
#line 1237 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp102_ = _tmp101_->row;
#line 1237 "/home/jens/Source/shotwell/src/Photo.vala"
photo_id_init (&_tmp102_->photo_id, PHOTO_ID_INVALID);
#line 1238 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp103_ = params;
#line 1238 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp104_ = _tmp103_->row;
#line 1238 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp105_ = _tmp104_->master;
#line 1238 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp106_ = file;
#line 1238 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp107_ = g_file_get_path (_tmp106_);
#line 1238 "/home/jens/Source/shotwell/src/Photo.vala"
_g_free0 (_tmp105_->filepath);
#line 1238 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp105_->filepath = _tmp107_;
#line 1239 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp108_ = params;
#line 1239 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp109_ = _tmp108_->row;
#line 1239 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp110_ = _tmp109_->master;
#line 1239 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp111_ = detected;
#line 1239 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp112_ = _tmp111_->image_dim;
#line 1239 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp110_->dim = _tmp112_;
#line 1240 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp113_ = params;
#line 1240 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp114_ = _tmp113_->row;
#line 1240 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp115_ = _tmp114_->master;
#line 1240 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp116_ = info;
#line 1240 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp117_ = g_file_info_get_size (_tmp116_);
#line 1240 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp115_->filesize = _tmp117_;
#line 1241 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp118_ = params;
#line 1241 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp119_ = _tmp118_->row;
#line 1241 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp120_ = _tmp119_->master;
#line 1241 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp121_ = timestamp;
#line 1241 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp122_ = _tmp121_.tv_sec;
#line 1241 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp120_->timestamp = (time_t) _tmp122_;
#line 1242 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp123_ = params;
#line 1242 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp124_ = _tmp123_->row;
#line 1242 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp125_ = exposure_time;
#line 1242 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp124_->exposure_time = _tmp125_;
#line 1243 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp126_ = params;
#line 1243 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp127_ = _tmp126_->row;
#line 1243 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp128_ = orientation;
#line 1243 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp127_->orientation = _tmp128_;
#line 1244 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp129_ = params;
#line 1244 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp130_ = _tmp129_->row;
#line 1244 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp131_ = _tmp130_->master;
#line 1244 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp132_ = orientation;
#line 1244 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp131_->original_orientation = _tmp132_;
#line 1245 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp133_ = params;
#line 1245 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp134_ = _tmp133_->row;
#line 1245 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp135_ = params;
#line 1245 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp136_ = _tmp135_->import_id;
#line 1245 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp134_->import_id = _tmp136_;
#line 1246 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp137_ = params;
#line 1246 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp138_ = _tmp137_->row;
#line 1246 "/home/jens/Source/shotwell/src/Photo.vala"
event_id_init (&_tmp138_->event_id, EVENT_ID_INVALID);
#line 1247 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp139_ = params;
#line 1247 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp140_ = _tmp139_->row;
#line 1247 "/home/jens/Source/shotwell/src/Photo.vala"
_g_object_unref0 (_tmp140_->transformations);
#line 1247 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp140_->transformations = NULL;
#line 1248 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp141_ = params;
#line 1248 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp142_ = _tmp141_->row;
#line 1248 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp143_ = detected;
#line 1248 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp144_ = _tmp143_->md5;
#line 1248 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp145_ = g_strdup (_tmp144_);
#line 1248 "/home/jens/Source/shotwell/src/Photo.vala"
_g_free0 (_tmp142_->md5);
#line 1248 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp142_->md5 = _tmp145_;
#line 1249 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp146_ = params;
#line 1249 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp147_ = _tmp146_->row;
#line 1249 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp148_ = detected;
#line 1249 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp149_ = _tmp148_->thumbnail_md5;
#line 1249 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp150_ = g_strdup (_tmp149_);
#line 1249 "/home/jens/Source/shotwell/src/Photo.vala"
_g_free0 (_tmp147_->thumbnail_md5);
#line 1249 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp147_->thumbnail_md5 = _tmp150_;
#line 1250 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp151_ = params;
#line 1250 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp152_ = _tmp151_->row;
#line 1250 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp153_ = detected;
#line 1250 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp154_ = _tmp153_->exif_md5;
#line 1250 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp155_ = g_strdup (_tmp154_);
#line 1250 "/home/jens/Source/shotwell/src/Photo.vala"
_g_free0 (_tmp152_->exif_md5);
#line 1250 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp152_->exif_md5 = _tmp155_;
#line 1251 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp156_ = params;
#line 1251 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp157_ = _tmp156_->row;
#line 1251 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp157_->time_created = (time_t) 0;
#line 1252 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp158_ = params;
#line 1252 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp159_ = _tmp158_->row;
#line 1252 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp159_->flags = (guint64) 0;
#line 1253 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp160_ = params;
#line 1253 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp161_ = _tmp160_->row;
#line 1253 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp162_ = _tmp161_->master;
#line 1253 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp163_ = detected;
#line 1253 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp164_ = _tmp163_->file_format;
#line 1253 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp162_->file_format = _tmp164_;
#line 1254 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp165_ = params;
#line 1254 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp166_ = _tmp165_->row;
#line 1254 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp167_ = title;
#line 1254 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp168_ = g_strdup (_tmp167_);
#line 1254 "/home/jens/Source/shotwell/src/Photo.vala"
_g_free0 (_tmp166_->title);
#line 1254 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp166_->title = _tmp168_;
#line 1255 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp169_ = params;
#line 1255 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp170_ = _tmp169_->row;
#line 1255 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp171_ = comment;
#line 1255 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp172_ = g_strdup (_tmp171_);
#line 1255 "/home/jens/Source/shotwell/src/Photo.vala"
_g_free0 (_tmp170_->comment);
#line 1255 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp170_->comment = _tmp172_;
#line 1256 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp173_ = params;
#line 1256 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp174_ = _tmp173_->row;
#line 1256 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp175_ = rating;
#line 1256 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp174_->rating = _tmp175_;
#line 1258 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp176_ = params;
#line 1258 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp177_ = _tmp176_->thumbnails;
#line 1258 "/home/jens/Source/shotwell/src/Photo.vala"
if (_tmp177_ != NULL) {
#line 10005 "Photo.c"
PhotoFileReader* reader = NULL;
PhotoImportParams* _tmp178_ = NULL;
PhotoRow* _tmp179_ = NULL;
BackingPhotoRow* _tmp180_ = NULL;
PhotoFileFormat _tmp181_ = 0;
PhotoImportParams* _tmp182_ = NULL;
PhotoRow* _tmp183_ = NULL;
BackingPhotoRow* _tmp184_ = NULL;
const gchar* _tmp185_ = NULL;
PhotoFileReader* _tmp186_ = NULL;
#line 1259 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp178_ = params;
#line 1259 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp179_ = _tmp178_->row;
#line 1259 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp180_ = _tmp179_->master;
#line 1259 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp181_ = _tmp180_->file_format;
#line 1259 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp182_ = params;
#line 1259 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp183_ = _tmp182_->row;
#line 1259 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp184_ = _tmp183_->master;
#line 1259 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp185_ = _tmp184_->filepath;
#line 1259 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp186_ = photo_file_format_create_reader (_tmp181_, _tmp185_);
#line 1259 "/home/jens/Source/shotwell/src/Photo.vala"
reader = _tmp186_;
#line 10036 "Photo.c"
{
PhotoImportParams* _tmp187_ = NULL;
Thumbnails* _tmp188_ = NULL;
PhotoFileReader* _tmp189_ = NULL;
PhotoImportParams* _tmp190_ = NULL;
PhotoRow* _tmp191_ = NULL;
Orientation _tmp192_ = 0;
PhotoImportParams* _tmp193_ = NULL;
PhotoRow* _tmp194_ = NULL;
BackingPhotoRow* _tmp195_ = NULL;
Dimensions _tmp196_ = {0};
#line 1262 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp187_ = params;
#line 1262 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp188_ = _tmp187_->thumbnails;
#line 1262 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp189_ = reader;
#line 1262 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp190_ = params;
#line 1262 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp191_ = _tmp190_->row;
#line 1262 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp192_ = _tmp191_->orientation;
#line 1262 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp193_ = params;
#line 1262 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp194_ = _tmp193_->row;
#line 1262 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp195_ = _tmp194_->master;
#line 1262 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp196_ = _tmp195_->dim;
#line 1262 "/home/jens/Source/shotwell/src/Photo.vala"
thumbnail_cache_generate_for_photo (_tmp188_, _tmp189_, _tmp192_, &_tmp196_, &_inner_error_);
#line 1262 "/home/jens/Source/shotwell/src/Photo.vala"
if (G_UNLIKELY (_inner_error_ != NULL)) {
#line 10072 "Photo.c"
goto __catch301_g_error;
}
}
goto __finally301;
__catch301_g_error:
{
GError* err = NULL;
GError* _tmp197_ = NULL;
ImportResult _tmp198_ = 0;
#line 1261 "/home/jens/Source/shotwell/src/Photo.vala"
err = _inner_error_;
#line 1261 "/home/jens/Source/shotwell/src/Photo.vala"
_inner_error_ = NULL;
#line 1265 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp197_ = err;
#line 1265 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp198_ = import_result_convert_error (_tmp197_, IMPORT_RESULT_FILE_ERROR);
#line 1265 "/home/jens/Source/shotwell/src/Photo.vala"
result = _tmp198_;
#line 1265 "/home/jens/Source/shotwell/src/Photo.vala"
_g_error_free0 (err);
#line 1265 "/home/jens/Source/shotwell/src/Photo.vala"
_photo_file_adapter_unref0 (reader);
#line 1265 "/home/jens/Source/shotwell/src/Photo.vala"
_g_free0 (comment);
#line 1265 "/home/jens/Source/shotwell/src/Photo.vala"
_g_free0 (title);
#line 1265 "/home/jens/Source/shotwell/src/Photo.vala"
_detected_photo_information_unref0 (detected);
#line 1265 "/home/jens/Source/shotwell/src/Photo.vala"
_photo_file_interrogator_unref0 (interrogator);
#line 1265 "/home/jens/Source/shotwell/src/Photo.vala"
_g_object_unref0 (info);
#line 1265 "/home/jens/Source/shotwell/src/Photo.vala"
_g_object_unref0 (file);
#line 1265 "/home/jens/Source/shotwell/src/Photo.vala"
return result;
#line 10110 "Photo.c"
}
__finally301:
#line 1261 "/home/jens/Source/shotwell/src/Photo.vala"
if (G_UNLIKELY (_inner_error_ != NULL)) {
#line 1261 "/home/jens/Source/shotwell/src/Photo.vala"
_photo_file_adapter_unref0 (reader);
#line 1261 "/home/jens/Source/shotwell/src/Photo.vala"
_g_free0 (comment);
#line 1261 "/home/jens/Source/shotwell/src/Photo.vala"
_g_free0 (title);
#line 1261 "/home/jens/Source/shotwell/src/Photo.vala"
_detected_photo_information_unref0 (detected);
#line 1261 "/home/jens/Source/shotwell/src/Photo.vala"
_photo_file_interrogator_unref0 (interrogator);
#line 1261 "/home/jens/Source/shotwell/src/Photo.vala"
_g_object_unref0 (info);
#line 1261 "/home/jens/Source/shotwell/src/Photo.vala"
_g_object_unref0 (file);
#line 1261 "/home/jens/Source/shotwell/src/Photo.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 1261 "/home/jens/Source/shotwell/src/Photo.vala"
g_clear_error (&_inner_error_);
#line 1261 "/home/jens/Source/shotwell/src/Photo.vala"
return 0;
#line 10135 "Photo.c"
}
#line 1258 "/home/jens/Source/shotwell/src/Photo.vala"
_photo_file_adapter_unref0 (reader);
#line 10139 "Photo.c"
}
#line 1272 "/home/jens/Source/shotwell/src/Photo.vala"
result = IMPORT_RESULT_SUCCESS;
#line 1272 "/home/jens/Source/shotwell/src/Photo.vala"
_g_free0 (comment);
#line 1272 "/home/jens/Source/shotwell/src/Photo.vala"
_g_free0 (title);
#line 1272 "/home/jens/Source/shotwell/src/Photo.vala"
_detected_photo_information_unref0 (detected);
#line 1272 "/home/jens/Source/shotwell/src/Photo.vala"
_photo_file_interrogator_unref0 (interrogator);
#line 1272 "/home/jens/Source/shotwell/src/Photo.vala"
_g_object_unref0 (info);
#line 1272 "/home/jens/Source/shotwell/src/Photo.vala"
_g_object_unref0 (file);
#line 1272 "/home/jens/Source/shotwell/src/Photo.vala"
return result;
#line 10157 "Photo.c"
}
void photo_create_pre_import (PhotoImportParams* params) {
GFile* file = NULL;
PhotoImportParams* _tmp0_ = NULL;
GFile* _tmp1_ = NULL;
GFile* _tmp2_ = NULL;
PhotoImportParams* _tmp3_ = NULL;
PhotoRow* _tmp4_ = NULL;
PhotoImportParams* _tmp5_ = NULL;
PhotoRow* _tmp6_ = NULL;
BackingPhotoRow* _tmp7_ = NULL;
gchar* _tmp8_ = NULL;
PhotoImportParams* _tmp9_ = NULL;
PhotoRow* _tmp10_ = NULL;
BackingPhotoRow* _tmp11_ = NULL;
PhotoImportParams* _tmp12_ = NULL;
PhotoRow* _tmp13_ = NULL;
BackingPhotoRow* _tmp14_ = NULL;
PhotoImportParams* _tmp15_ = NULL;
PhotoRow* _tmp16_ = NULL;
BackingPhotoRow* _tmp17_ = NULL;
PhotoImportParams* _tmp18_ = NULL;
PhotoRow* _tmp19_ = NULL;
PhotoImportParams* _tmp20_ = NULL;
PhotoRow* _tmp21_ = NULL;
PhotoImportParams* _tmp22_ = NULL;
PhotoRow* _tmp23_ = NULL;
BackingPhotoRow* _tmp24_ = NULL;
PhotoImportParams* _tmp25_ = NULL;
PhotoRow* _tmp26_ = NULL;
PhotoImportParams* _tmp27_ = NULL;
ImportID _tmp28_ = {0};
PhotoImportParams* _tmp29_ = NULL;
PhotoRow* _tmp30_ = NULL;
PhotoImportParams* _tmp31_ = NULL;
PhotoRow* _tmp32_ = NULL;
PhotoImportParams* _tmp33_ = NULL;
PhotoRow* _tmp34_ = NULL;
PhotoImportParams* _tmp35_ = NULL;
PhotoRow* _tmp36_ = NULL;
PhotoImportParams* _tmp37_ = NULL;
PhotoRow* _tmp38_ = NULL;
PhotoImportParams* _tmp39_ = NULL;
PhotoRow* _tmp40_ = NULL;
PhotoImportParams* _tmp41_ = NULL;
PhotoRow* _tmp42_ = NULL;
PhotoImportParams* _tmp43_ = NULL;
PhotoRow* _tmp44_ = NULL;
BackingPhotoRow* _tmp45_ = NULL;
PhotoImportParams* _tmp46_ = NULL;
PhotoRow* _tmp47_ = NULL;
PhotoImportParams* _tmp48_ = NULL;
PhotoRow* _tmp49_ = NULL;
PhotoImportParams* _tmp50_ = NULL;
PhotoRow* _tmp51_ = NULL;
PhotoFileInterrogator* interrogator = NULL;
PhotoImportParams* _tmp52_ = NULL;
GFile* _tmp53_ = NULL;
PhotoImportParams* _tmp54_ = NULL;
PhotoFileSnifferOptions _tmp55_ = 0;
PhotoFileInterrogator* _tmp56_ = NULL;
GError * _inner_error_ = NULL;
#line 1275 "/home/jens/Source/shotwell/src/Photo.vala"
g_return_if_fail (IS_PHOTO_IMPORT_PARAMS (params));
#line 1276 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp0_ = params;
#line 1276 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp1_ = _tmp0_->file;
#line 1276 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp2_ = _g_object_ref0 (_tmp1_);
#line 1276 "/home/jens/Source/shotwell/src/Photo.vala"
file = _tmp2_;
#line 1277 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp3_ = params;
#line 1277 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp4_ = _tmp3_->row;
#line 1277 "/home/jens/Source/shotwell/src/Photo.vala"
photo_id_init (&_tmp4_->photo_id, PHOTO_ID_INVALID);
#line 1278 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp5_ = params;
#line 1278 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp6_ = _tmp5_->row;
#line 1278 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp7_ = _tmp6_->master;
#line 1278 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp8_ = g_file_get_path (file);
#line 1278 "/home/jens/Source/shotwell/src/Photo.vala"
_g_free0 (_tmp7_->filepath);
#line 1278 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp7_->filepath = _tmp8_;
#line 1279 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp9_ = params;
#line 1279 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp10_ = _tmp9_->row;
#line 1279 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp11_ = _tmp10_->master;
#line 1279 "/home/jens/Source/shotwell/src/Photo.vala"
dimensions_init (&_tmp11_->dim, 0, 0);
#line 1280 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp12_ = params;
#line 1280 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp13_ = _tmp12_->row;
#line 1280 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp14_ = _tmp13_->master;
#line 1280 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp14_->filesize = (gint64) 0;
#line 1281 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp15_ = params;
#line 1281 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp16_ = _tmp15_->row;
#line 1281 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp17_ = _tmp16_->master;
#line 1281 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp17_->timestamp = (time_t) 0;
#line 1282 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp18_ = params;
#line 1282 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp19_ = _tmp18_->row;
#line 1282 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp19_->exposure_time = (time_t) 0;
#line 1283 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp20_ = params;
#line 1283 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp21_ = _tmp20_->row;
#line 1283 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp21_->orientation = ORIENTATION_TOP_LEFT;
#line 1284 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp22_ = params;
#line 1284 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp23_ = _tmp22_->row;
#line 1284 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp24_ = _tmp23_->master;
#line 1284 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp24_->original_orientation = ORIENTATION_TOP_LEFT;
#line 1285 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp25_ = params;
#line 1285 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp26_ = _tmp25_->row;
#line 1285 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp27_ = params;
#line 1285 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp28_ = _tmp27_->import_id;
#line 1285 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp26_->import_id = _tmp28_;
#line 1286 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp29_ = params;
#line 1286 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp30_ = _tmp29_->row;
#line 1286 "/home/jens/Source/shotwell/src/Photo.vala"
event_id_init (&_tmp30_->event_id, EVENT_ID_INVALID);
#line 1287 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp31_ = params;
#line 1287 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp32_ = _tmp31_->row;
#line 1287 "/home/jens/Source/shotwell/src/Photo.vala"
_g_object_unref0 (_tmp32_->transformations);
#line 1287 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp32_->transformations = NULL;
#line 1288 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp33_ = params;
#line 1288 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp34_ = _tmp33_->row;
#line 1288 "/home/jens/Source/shotwell/src/Photo.vala"
_g_free0 (_tmp34_->md5);
#line 1288 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp34_->md5 = NULL;
#line 1289 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp35_ = params;
#line 1289 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp36_ = _tmp35_->row;
#line 1289 "/home/jens/Source/shotwell/src/Photo.vala"
_g_free0 (_tmp36_->thumbnail_md5);
#line 1289 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp36_->thumbnail_md5 = NULL;
#line 1290 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp37_ = params;
#line 1290 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp38_ = _tmp37_->row;
#line 1290 "/home/jens/Source/shotwell/src/Photo.vala"
_g_free0 (_tmp38_->exif_md5);
#line 1290 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp38_->exif_md5 = NULL;
#line 1291 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp39_ = params;
#line 1291 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp40_ = _tmp39_->row;
#line 1291 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp40_->time_created = (time_t) 0;
#line 1292 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp41_ = params;
#line 1292 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp42_ = _tmp41_->row;
#line 1292 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp42_->flags = (guint64) 0;
#line 1293 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp43_ = params;
#line 1293 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp44_ = _tmp43_->row;
#line 1293 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp45_ = _tmp44_->master;
#line 1293 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp45_->file_format = PHOTO_FILE_FORMAT_JFIF;
#line 1294 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp46_ = params;
#line 1294 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp47_ = _tmp46_->row;
#line 1294 "/home/jens/Source/shotwell/src/Photo.vala"
_g_free0 (_tmp47_->title);
#line 1294 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp47_->title = NULL;
#line 1295 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp48_ = params;
#line 1295 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp49_ = _tmp48_->row;
#line 1295 "/home/jens/Source/shotwell/src/Photo.vala"
_g_free0 (_tmp49_->comment);
#line 1295 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp49_->comment = NULL;
#line 1296 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp50_ = params;
#line 1296 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp51_ = _tmp50_->row;
#line 1296 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp51_->rating = RATING_UNRATED;
#line 1298 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp52_ = params;
#line 1298 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp53_ = _tmp52_->file;
#line 1298 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp54_ = params;
#line 1298 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp55_ = _tmp54_->sniffer_options;
#line 1298 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp56_ = photo_file_interrogator_new (_tmp53_, _tmp55_);
#line 1298 "/home/jens/Source/shotwell/src/Photo.vala"
interrogator = _tmp56_;
#line 10396 "Photo.c"
{
DetectedPhotoInformation* detected = NULL;
DetectedPhotoInformation* _tmp57_ = NULL;
gboolean _tmp58_ = FALSE;
gboolean _tmp59_ = FALSE;
DetectedPhotoInformation* _tmp60_ = NULL;
#line 1300 "/home/jens/Source/shotwell/src/Photo.vala"
photo_file_interrogator_interrogate (interrogator, &_inner_error_);
#line 1300 "/home/jens/Source/shotwell/src/Photo.vala"
if (G_UNLIKELY (_inner_error_ != NULL)) {
#line 10407 "Photo.c"
goto __catch302_g_error;
}
#line 1301 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp57_ = photo_file_interrogator_get_detected_photo_information (interrogator);
#line 1301 "/home/jens/Source/shotwell/src/Photo.vala"
detected = _tmp57_;
#line 1302 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp60_ = detected;
#line 1302 "/home/jens/Source/shotwell/src/Photo.vala"
if (_tmp60_ != NULL) {
#line 10418 "Photo.c"
gboolean _tmp61_ = FALSE;
#line 1302 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp61_ = photo_file_interrogator_get_is_photo_corrupted (interrogator);
#line 1302 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp59_ = !_tmp61_;
#line 10424 "Photo.c"
} else {
#line 1302 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp59_ = FALSE;
#line 10428 "Photo.c"
}
#line 1302 "/home/jens/Source/shotwell/src/Photo.vala"
if (_tmp59_) {
#line 10432 "Photo.c"
DetectedPhotoInformation* _tmp62_ = NULL;
PhotoFileFormat _tmp63_ = 0;
#line 1302 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp62_ = detected;
#line 1302 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp63_ = _tmp62_->file_format;
#line 1302 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp58_ = _tmp63_ != PHOTO_FILE_FORMAT_UNKNOWN;
#line 10441 "Photo.c"
} else {
#line 1302 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp58_ = FALSE;
#line 10445 "Photo.c"
}
#line 1302 "/home/jens/Source/shotwell/src/Photo.vala"
if (_tmp58_) {
#line 10449 "Photo.c"
PhotoImportParams* _tmp64_ = NULL;
PhotoRow* _tmp65_ = NULL;
BackingPhotoRow* _tmp66_ = NULL;
DetectedPhotoInformation* _tmp67_ = NULL;
PhotoFileFormat _tmp68_ = 0;
#line 1303 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp64_ = params;
#line 1303 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp65_ = _tmp64_->row;
#line 1303 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp66_ = _tmp65_->master;
#line 1303 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp67_ = detected;
#line 1303 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp68_ = _tmp67_->file_format;
#line 1303 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp66_->file_format = _tmp68_;
#line 10467 "Photo.c"
}
#line 1299 "/home/jens/Source/shotwell/src/Photo.vala"
_detected_photo_information_unref0 (detected);
#line 10471 "Photo.c"
}
goto __finally302;
__catch302_g_error:
{
GError* err = NULL;
gchar* _tmp69_ = NULL;
gchar* _tmp70_ = NULL;
GError* _tmp71_ = NULL;
const gchar* _tmp72_ = NULL;
#line 1299 "/home/jens/Source/shotwell/src/Photo.vala"
err = _inner_error_;
#line 1299 "/home/jens/Source/shotwell/src/Photo.vala"
_inner_error_ = NULL;
#line 1305 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp69_ = g_file_get_path (file);
#line 1305 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp70_ = _tmp69_;
#line 1305 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp71_ = err;
#line 1305 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp72_ = _tmp71_->message;
#line 1305 "/home/jens/Source/shotwell/src/Photo.vala"
g_debug ("Photo.vala:1305: Unable to interrogate photo file %s: %s", _tmp70_, _tmp72_);
#line 1305 "/home/jens/Source/shotwell/src/Photo.vala"
_g_free0 (_tmp70_);
#line 1299 "/home/jens/Source/shotwell/src/Photo.vala"
_g_error_free0 (err);
#line 10499 "Photo.c"
}
__finally302:
#line 1299 "/home/jens/Source/shotwell/src/Photo.vala"
if (G_UNLIKELY (_inner_error_ != NULL)) {
#line 1299 "/home/jens/Source/shotwell/src/Photo.vala"
_photo_file_interrogator_unref0 (interrogator);
#line 1299 "/home/jens/Source/shotwell/src/Photo.vala"
_g_object_unref0 (file);
#line 1299 "/home/jens/Source/shotwell/src/Photo.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 1299 "/home/jens/Source/shotwell/src/Photo.vala"
g_clear_error (&_inner_error_);
#line 1299 "/home/jens/Source/shotwell/src/Photo.vala"
return;
#line 10514 "Photo.c"
}
#line 1275 "/home/jens/Source/shotwell/src/Photo.vala"
_photo_file_interrogator_unref0 (interrogator);
#line 1275 "/home/jens/Source/shotwell/src/Photo.vala"
_g_object_unref0 (file);
#line 10520 "Photo.c"
}
BackingPhotoRow* photo_query_backing_photo_row (Photo* self, GFile* file, PhotoFileSnifferOptions options, DetectedPhotoInformation** detected, GError** error) {
DetectedPhotoInformation* _vala_detected = NULL;
BackingPhotoRow* result = NULL;
BackingPhotoRow* backing = NULL;
BackingPhotoRow* _tmp0_ = NULL;
GFileInfo* info = NULL;
PhotoFileInterrogator* interrogator = NULL;
GFile* _tmp10_ = NULL;
PhotoFileSnifferOptions _tmp11_ = 0;
PhotoFileInterrogator* _tmp12_ = NULL;
PhotoFileInterrogator* _tmp13_ = NULL;
PhotoFileInterrogator* _tmp14_ = NULL;
DetectedPhotoInformation* _tmp15_ = NULL;
gboolean _tmp16_ = FALSE;
DetectedPhotoInformation* _tmp17_ = NULL;
GTimeVal modification_time = {0};
GFileInfo* _tmp22_ = NULL;
GTimeVal _tmp23_ = {0};
BackingPhotoRow* _tmp24_ = NULL;
GFile* _tmp25_ = NULL;
gchar* _tmp26_ = NULL;
BackingPhotoRow* _tmp27_ = NULL;
GTimeVal _tmp28_ = {0};
glong _tmp29_ = 0L;
BackingPhotoRow* _tmp30_ = NULL;
GFileInfo* _tmp31_ = NULL;
gint64 _tmp32_ = 0LL;
BackingPhotoRow* _tmp33_ = NULL;
DetectedPhotoInformation* _tmp34_ = NULL;
PhotoFileFormat _tmp35_ = 0;
BackingPhotoRow* _tmp36_ = NULL;
DetectedPhotoInformation* _tmp37_ = NULL;
Dimensions _tmp38_ = {0};
Orientation _tmp39_ = 0;
DetectedPhotoInformation* _tmp40_ = NULL;
PhotoMetadata* _tmp41_ = NULL;
BackingPhotoRow* _tmp45_ = NULL;
GError * _inner_error_ = NULL;
#line 1309 "/home/jens/Source/shotwell/src/Photo.vala"
g_return_val_if_fail (IS_PHOTO (self), NULL);
#line 1309 "/home/jens/Source/shotwell/src/Photo.vala"
g_return_val_if_fail (G_IS_FILE (file), NULL);
#line 1311 "/home/jens/Source/shotwell/src/Photo.vala"
_detected_photo_information_unref0 (_vala_detected);
#line 1311 "/home/jens/Source/shotwell/src/Photo.vala"
_vala_detected = NULL;
#line 1313 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp0_ = backing_photo_row_new ();
#line 1313 "/home/jens/Source/shotwell/src/Photo.vala"
backing = _tmp0_;
#line 1315 "/home/jens/Source/shotwell/src/Photo.vala"
info = NULL;
#line 10576 "Photo.c"
{
GFileInfo* _tmp1_ = NULL;
GFile* _tmp2_ = NULL;
GFileInfo* _tmp3_ = NULL;
GFileInfo* _tmp4_ = NULL;
#line 1317 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp2_ = file;
#line 1317 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp3_ = g_file_query_info (_tmp2_, DIRECTORY_MONITOR_SUPPLIED_ATTRIBUTES, G_FILE_QUERY_INFO_NOFOLLOW_SYMLINKS, NULL, &_inner_error_);
#line 1317 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp1_ = _tmp3_;
#line 1317 "/home/jens/Source/shotwell/src/Photo.vala"
if (G_UNLIKELY (_inner_error_ != NULL)) {
#line 10590 "Photo.c"
goto __catch303_g_error;
}
#line 1317 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp4_ = _tmp1_;
#line 1317 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp1_ = NULL;
#line 1317 "/home/jens/Source/shotwell/src/Photo.vala"
_g_object_unref0 (info);
#line 1317 "/home/jens/Source/shotwell/src/Photo.vala"
info = _tmp4_;
#line 1316 "/home/jens/Source/shotwell/src/Photo.vala"
_g_object_unref0 (_tmp1_);
#line 10603 "Photo.c"
}
goto __finally303;
__catch303_g_error:
{
GError* err = NULL;
GFile* _tmp5_ = NULL;
gchar* _tmp6_ = NULL;
gchar* _tmp7_ = NULL;
GError* _tmp8_ = NULL;
const gchar* _tmp9_ = NULL;
#line 1316 "/home/jens/Source/shotwell/src/Photo.vala"
err = _inner_error_;
#line 1316 "/home/jens/Source/shotwell/src/Photo.vala"
_inner_error_ = NULL;
#line 1320 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp5_ = file;
#line 1320 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp6_ = g_file_get_path (_tmp5_);
#line 1320 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp7_ = _tmp6_;
#line 1320 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp8_ = err;
#line 1320 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp9_ = _tmp8_->message;
#line 1320 "/home/jens/Source/shotwell/src/Photo.vala"
g_critical ("Photo.vala:1320: Unable to read file information for %s: %s", _tmp7_, _tmp9_);
#line 1320 "/home/jens/Source/shotwell/src/Photo.vala"
_g_free0 (_tmp7_);
#line 1322 "/home/jens/Source/shotwell/src/Photo.vala"
result = NULL;
#line 1322 "/home/jens/Source/shotwell/src/Photo.vala"
_g_error_free0 (err);
#line 1322 "/home/jens/Source/shotwell/src/Photo.vala"
_g_object_unref0 (info);
#line 1322 "/home/jens/Source/shotwell/src/Photo.vala"
_backing_photo_row_unref0 (backing);
#line 1322 "/home/jens/Source/shotwell/src/Photo.vala"
if (detected) {
#line 1322 "/home/jens/Source/shotwell/src/Photo.vala"
*detected = _vala_detected;
#line 10644 "Photo.c"
} else {
#line 1322 "/home/jens/Source/shotwell/src/Photo.vala"
_detected_photo_information_unref0 (_vala_detected);
#line 10648 "Photo.c"
}
#line 1322 "/home/jens/Source/shotwell/src/Photo.vala"
return result;
#line 10652 "Photo.c"
}
__finally303:
#line 1316 "/home/jens/Source/shotwell/src/Photo.vala"
if (G_UNLIKELY (_inner_error_ != NULL)) {
#line 1316 "/home/jens/Source/shotwell/src/Photo.vala"
g_propagate_error (error, _inner_error_);
#line 1316 "/home/jens/Source/shotwell/src/Photo.vala"
_g_object_unref0 (info);
#line 1316 "/home/jens/Source/shotwell/src/Photo.vala"
_backing_photo_row_unref0 (backing);
#line 1316 "/home/jens/Source/shotwell/src/Photo.vala"
return NULL;
#line 10665 "Photo.c"
}
#line 1326 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp10_ = file;
#line 1326 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp11_ = options;
#line 1326 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp12_ = photo_file_interrogator_new (_tmp10_, _tmp11_);
#line 1326 "/home/jens/Source/shotwell/src/Photo.vala"
interrogator = _tmp12_;
#line 1327 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp13_ = interrogator;
#line 1327 "/home/jens/Source/shotwell/src/Photo.vala"
photo_file_interrogator_interrogate (_tmp13_, &_inner_error_);
#line 1327 "/home/jens/Source/shotwell/src/Photo.vala"
if (G_UNLIKELY (_inner_error_ != NULL)) {
#line 1327 "/home/jens/Source/shotwell/src/Photo.vala"
g_propagate_error (error, _inner_error_);
#line 1327 "/home/jens/Source/shotwell/src/Photo.vala"
_photo_file_interrogator_unref0 (interrogator);
#line 1327 "/home/jens/Source/shotwell/src/Photo.vala"
_g_object_unref0 (info);
#line 1327 "/home/jens/Source/shotwell/src/Photo.vala"
_backing_photo_row_unref0 (backing);
#line 1327 "/home/jens/Source/shotwell/src/Photo.vala"
return NULL;
#line 10691 "Photo.c"
}
#line 1328 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp14_ = interrogator;
#line 1328 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp15_ = photo_file_interrogator_get_detected_photo_information (_tmp14_);
#line 1328 "/home/jens/Source/shotwell/src/Photo.vala"
_detected_photo_information_unref0 (_vala_detected);
#line 1328 "/home/jens/Source/shotwell/src/Photo.vala"
_vala_detected = _tmp15_;
#line 1329 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp17_ = _vala_detected;
#line 1329 "/home/jens/Source/shotwell/src/Photo.vala"
if (_tmp17_ == NULL) {
#line 1329 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp16_ = TRUE;
#line 10707 "Photo.c"
} else {
PhotoFileInterrogator* _tmp18_ = NULL;
gboolean _tmp19_ = FALSE;
#line 1329 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp18_ = interrogator;
#line 1329 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp19_ = photo_file_interrogator_get_is_photo_corrupted (_tmp18_);
#line 1329 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp16_ = _tmp19_;
#line 10717 "Photo.c"
}
#line 1329 "/home/jens/Source/shotwell/src/Photo.vala"
if (_tmp16_) {
#line 10721 "Photo.c"
gchar* _tmp20_ = NULL;
gchar* _tmp21_ = NULL;
#line 1330 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp20_ = data_object_to_string (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_DATA_OBJECT, DataObject));
#line 1330 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp21_ = _tmp20_;
#line 1330 "/home/jens/Source/shotwell/src/Photo.vala"
g_critical ("Photo.vala:1330: Photo update: %s no longer a recognized image", _tmp21_);
#line 1330 "/home/jens/Source/shotwell/src/Photo.vala"
_g_free0 (_tmp21_);
#line 1332 "/home/jens/Source/shotwell/src/Photo.vala"
result = NULL;
#line 1332 "/home/jens/Source/shotwell/src/Photo.vala"
_photo_file_interrogator_unref0 (interrogator);
#line 1332 "/home/jens/Source/shotwell/src/Photo.vala"
_g_object_unref0 (info);
#line 1332 "/home/jens/Source/shotwell/src/Photo.vala"
_backing_photo_row_unref0 (backing);
#line 1332 "/home/jens/Source/shotwell/src/Photo.vala"
if (detected) {
#line 1332 "/home/jens/Source/shotwell/src/Photo.vala"
*detected = _vala_detected;
#line 10744 "Photo.c"
} else {
#line 1332 "/home/jens/Source/shotwell/src/Photo.vala"
_detected_photo_information_unref0 (_vala_detected);
#line 10748 "Photo.c"
}
#line 1332 "/home/jens/Source/shotwell/src/Photo.vala"
return result;
#line 10752 "Photo.c"
}
#line 1335 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp22_ = info;
#line 1335 "/home/jens/Source/shotwell/src/Photo.vala"
g_file_info_get_modification_time (_tmp22_, &_tmp23_);
#line 1335 "/home/jens/Source/shotwell/src/Photo.vala"
modification_time = _tmp23_;
#line 1337 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp24_ = backing;
#line 1337 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp25_ = file;
#line 1337 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp26_ = g_file_get_path (_tmp25_);
#line 1337 "/home/jens/Source/shotwell/src/Photo.vala"
_g_free0 (_tmp24_->filepath);
#line 1337 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp24_->filepath = _tmp26_;
#line 1338 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp27_ = backing;
#line 1338 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp28_ = modification_time;
#line 1338 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp29_ = _tmp28_.tv_sec;
#line 1338 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp27_->timestamp = (time_t) _tmp29_;
#line 1339 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp30_ = backing;
#line 1339 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp31_ = info;
#line 1339 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp32_ = g_file_info_get_size (_tmp31_);
#line 1339 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp30_->filesize = _tmp32_;
#line 1340 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp33_ = backing;
#line 1340 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp34_ = _vala_detected;
#line 1340 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp35_ = _tmp34_->file_format;
#line 1340 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp33_->file_format = _tmp35_;
#line 1341 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp36_ = backing;
#line 1341 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp37_ = _vala_detected;
#line 1341 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp38_ = _tmp37_->image_dim;
#line 1341 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp36_->dim = _tmp38_;
#line 1342 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp40_ = _vala_detected;
#line 1342 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp41_ = _tmp40_->metadata;
#line 1342 "/home/jens/Source/shotwell/src/Photo.vala"
if (_tmp41_ != NULL) {
#line 10808 "Photo.c"
DetectedPhotoInformation* _tmp42_ = NULL;
PhotoMetadata* _tmp43_ = NULL;
Orientation _tmp44_ = 0;
#line 1343 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp42_ = _vala_detected;
#line 1343 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp43_ = _tmp42_->metadata;
#line 1343 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp44_ = photo_metadata_get_orientation (_tmp43_);
#line 1343 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp39_ = _tmp44_;
#line 10820 "Photo.c"
} else {
#line 1343 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp39_ = ORIENTATION_TOP_LEFT;
#line 10824 "Photo.c"
}
#line 1342 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp45_ = backing;
#line 1342 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp45_->original_orientation = _tmp39_;
#line 1345 "/home/jens/Source/shotwell/src/Photo.vala"
result = backing;
#line 1345 "/home/jens/Source/shotwell/src/Photo.vala"
_photo_file_interrogator_unref0 (interrogator);
#line 1345 "/home/jens/Source/shotwell/src/Photo.vala"
_g_object_unref0 (info);
#line 1345 "/home/jens/Source/shotwell/src/Photo.vala"
if (detected) {
#line 1345 "/home/jens/Source/shotwell/src/Photo.vala"
*detected = _vala_detected;
#line 10840 "Photo.c"
} else {
#line 1345 "/home/jens/Source/shotwell/src/Photo.vala"
_detected_photo_information_unref0 (_vala_detected);
#line 10844 "Photo.c"
}
#line 1345 "/home/jens/Source/shotwell/src/Photo.vala"
return result;
#line 10848 "Photo.c"
}
static void _vala_array_add254 (gchar*** array, int* length, int* size, gchar* value) {
#line 1441 "/home/jens/Source/shotwell/src/Photo.vala"
if ((*length) == (*size)) {
#line 1441 "/home/jens/Source/shotwell/src/Photo.vala"
*size = (*size) ? (2 * (*size)) : 4;
#line 1441 "/home/jens/Source/shotwell/src/Photo.vala"
*array = g_renew (gchar*, *array, (*size) + 1);
#line 10859 "Photo.c"
}
#line 1441 "/home/jens/Source/shotwell/src/Photo.vala"
(*array)[(*length)++] = value;
#line 1441 "/home/jens/Source/shotwell/src/Photo.vala"
(*array)[*length] = NULL;
#line 10865 "Photo.c"
}
static void _vala_array_add255 (gchar*** array, int* length, int* size, gchar* value) {
#line 1444 "/home/jens/Source/shotwell/src/Photo.vala"
if ((*length) == (*size)) {
#line 1444 "/home/jens/Source/shotwell/src/Photo.vala"
*size = (*size) ? (2 * (*size)) : 4;
#line 1444 "/home/jens/Source/shotwell/src/Photo.vala"
*array = g_renew (gchar*, *array, (*size) + 1);
#line 10876 "Photo.c"
}
#line 1444 "/home/jens/Source/shotwell/src/Photo.vala"
(*array)[(*length)++] = value;
#line 1444 "/home/jens/Source/shotwell/src/Photo.vala"
(*array)[*length] = NULL;
#line 10882 "Photo.c"
}
static void _vala_array_add256 (gchar*** array, int* length, int* size, gchar* value) {
#line 1451 "/home/jens/Source/shotwell/src/Photo.vala"
if ((*length) == (*size)) {
#line 1451 "/home/jens/Source/shotwell/src/Photo.vala"
*size = (*size) ? (2 * (*size)) : 4;
#line 1451 "/home/jens/Source/shotwell/src/Photo.vala"
*array = g_renew (gchar*, *array, (*size) + 1);
#line 10893 "Photo.c"
}
#line 1451 "/home/jens/Source/shotwell/src/Photo.vala"
(*array)[(*length)++] = value;
#line 1451 "/home/jens/Source/shotwell/src/Photo.vala"
(*array)[*length] = NULL;
#line 10899 "Photo.c"
}
static void _vala_array_add257 (gchar*** array, int* length, int* size, gchar* value) {
#line 1454 "/home/jens/Source/shotwell/src/Photo.vala"
if ((*length) == (*size)) {
#line 1454 "/home/jens/Source/shotwell/src/Photo.vala"
*size = (*size) ? (2 * (*size)) : 4;
#line 1454 "/home/jens/Source/shotwell/src/Photo.vala"
*array = g_renew (gchar*, *array, (*size) + 1);
#line 10910 "Photo.c"
}
#line 1454 "/home/jens/Source/shotwell/src/Photo.vala"
(*array)[(*length)++] = value;
#line 1454 "/home/jens/Source/shotwell/src/Photo.vala"
(*array)[*length] = NULL;
#line 10916 "Photo.c"
}
static void _vala_array_add258 (gchar*** array, int* length, int* size, gchar* value) {
#line 1457 "/home/jens/Source/shotwell/src/Photo.vala"
if ((*length) == (*size)) {
#line 1457 "/home/jens/Source/shotwell/src/Photo.vala"
*size = (*size) ? (2 * (*size)) : 4;
#line 1457 "/home/jens/Source/shotwell/src/Photo.vala"
*array = g_renew (gchar*, *array, (*size) + 1);
#line 10927 "Photo.c"
}
#line 1457 "/home/jens/Source/shotwell/src/Photo.vala"
(*array)[(*length)++] = value;
#line 1457 "/home/jens/Source/shotwell/src/Photo.vala"
(*array)[*length] = NULL;
#line 10933 "Photo.c"
}
static void _vala_array_add259 (gchar*** array, int* length, int* size, gchar* value) {
#line 1460 "/home/jens/Source/shotwell/src/Photo.vala"
if ((*length) == (*size)) {
#line 1460 "/home/jens/Source/shotwell/src/Photo.vala"
*size = (*size) ? (2 * (*size)) : 4;
#line 1460 "/home/jens/Source/shotwell/src/Photo.vala"
*array = g_renew (gchar*, *array, (*size) + 1);
#line 10944 "Photo.c"
}
#line 1460 "/home/jens/Source/shotwell/src/Photo.vala"
(*array)[(*length)++] = value;
#line 1460 "/home/jens/Source/shotwell/src/Photo.vala"
(*array)[*length] = NULL;
#line 10950 "Photo.c"
}
static gpointer _media_metadata_ref0 (gpointer self) {
#line 1470 "/home/jens/Source/shotwell/src/Photo.vala"
return self ? media_metadata_ref (self) : NULL;
#line 10957 "Photo.c"
}
gboolean photo_prepare_for_reimport_master (Photo* self, PhotoReimportMasterState** reimport_state, GError** error) {
PhotoReimportMasterState* _vala_reimport_state = NULL;
gboolean result = FALSE;
GFile* file = NULL;
PhotoFileReader* _tmp0_ = NULL;
PhotoFileReader* _tmp1_ = NULL;
GFile* _tmp2_ = NULL;
GFile* _tmp3_ = NULL;
DetectedPhotoInformation* detected = NULL;
BackingPhotoRow* backing = NULL;
GFile* _tmp4_ = NULL;
DetectedPhotoInformation* _tmp5_ = NULL;
BackingPhotoRow* _tmp6_ = NULL;
BackingPhotoRow* _tmp7_ = NULL;
gboolean _tmp11_ = FALSE;
gboolean _tmp12_ = FALSE;
DetectedPhotoInformation* _tmp13_ = NULL;
GdkColorspace _tmp14_ = 0;
PhotoRow* updated_row = NULL;
PhotoRow* _tmp22_ = NULL;
gchar** list = NULL;
gchar** _tmp27_ = NULL;
gint list_length1 = 0;
gint _list_size_ = 0;
PhotoRow* _tmp28_ = NULL;
const gchar* _tmp29_ = NULL;
DetectedPhotoInformation* _tmp30_ = NULL;
const gchar* _tmp31_ = NULL;
PhotoRow* _tmp34_ = NULL;
BackingPhotoRow* _tmp35_ = NULL;
Orientation _tmp36_ = 0;
BackingPhotoRow* _tmp37_ = NULL;
Orientation _tmp38_ = 0;
DetectedPhotoInformation* _tmp45_ = NULL;
PhotoMetadata* _tmp46_ = NULL;
PhotoRow* _tmp83_ = NULL;
BackingPhotoRow* _tmp84_ = NULL;
BackingPhotoRow* _tmp85_ = NULL;
PhotoRow* _tmp86_ = NULL;
DetectedPhotoInformation* _tmp87_ = NULL;
const gchar* _tmp88_ = NULL;
gchar* _tmp89_ = NULL;
PhotoRow* _tmp90_ = NULL;
DetectedPhotoInformation* _tmp91_ = NULL;
const gchar* _tmp92_ = NULL;
gchar* _tmp93_ = NULL;
PhotoRow* _tmp94_ = NULL;
DetectedPhotoInformation* _tmp95_ = NULL;
const gchar* _tmp96_ = NULL;
gchar* _tmp97_ = NULL;
PhotoMetadata* metadata = NULL;
DetectedPhotoInformation* _tmp98_ = NULL;
PhotoMetadata* _tmp99_ = NULL;
PhotoRow* _tmp122_ = NULL;
PhotoMetadata* _tmp123_ = NULL;
gchar** _tmp124_ = NULL;
gint _tmp124__length1 = 0;
PhotoReimportMasterStateImpl* _tmp125_ = NULL;
GError * _inner_error_ = NULL;
#line 1409 "/home/jens/Source/shotwell/src/Photo.vala"
g_return_val_if_fail (IS_PHOTO (self), FALSE);
#line 1410 "/home/jens/Source/shotwell/src/Photo.vala"
_photo_reimport_master_state_unref0 (_vala_reimport_state);
#line 1410 "/home/jens/Source/shotwell/src/Photo.vala"
_vala_reimport_state = NULL;
#line 1412 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp0_ = photo_get_master_reader (self);
#line 1412 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp1_ = _tmp0_;
#line 1412 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp2_ = photo_file_adapter_get_file (G_TYPE_CHECK_INSTANCE_CAST (_tmp1_, TYPE_PHOTO_FILE_ADAPTER, PhotoFileAdapter));
#line 1412 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp3_ = _tmp2_;
#line 1412 "/home/jens/Source/shotwell/src/Photo.vala"
_photo_file_adapter_unref0 (_tmp1_);
#line 1412 "/home/jens/Source/shotwell/src/Photo.vala"
file = _tmp3_;
#line 1415 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp4_ = file;
#line 1415 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp6_ = photo_query_backing_photo_row (self, _tmp4_, PHOTO_FILE_SNIFFER_OPTIONS_GET_ALL, &_tmp5_, &_inner_error_);
#line 1415 "/home/jens/Source/shotwell/src/Photo.vala"
_detected_photo_information_unref0 (detected);
#line 1415 "/home/jens/Source/shotwell/src/Photo.vala"
detected = _tmp5_;
#line 1415 "/home/jens/Source/shotwell/src/Photo.vala"
backing = _tmp6_;
#line 1415 "/home/jens/Source/shotwell/src/Photo.vala"
if (G_UNLIKELY (_inner_error_ != NULL)) {
#line 1415 "/home/jens/Source/shotwell/src/Photo.vala"
g_propagate_error (error, _inner_error_);
#line 1415 "/home/jens/Source/shotwell/src/Photo.vala"
_detected_photo_information_unref0 (detected);
#line 1415 "/home/jens/Source/shotwell/src/Photo.vala"
_g_object_unref0 (file);
#line 1415 "/home/jens/Source/shotwell/src/Photo.vala"
return FALSE;
#line 11058 "Photo.c"
}
#line 1417 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp7_ = backing;
#line 1417 "/home/jens/Source/shotwell/src/Photo.vala"
if (_tmp7_ == NULL) {
#line 11064 "Photo.c"
GFile* _tmp8_ = NULL;
gchar* _tmp9_ = NULL;
gchar* _tmp10_ = NULL;
#line 1418 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp8_ = file;
#line 1418 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp9_ = g_file_get_path (_tmp8_);
#line 1418 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp10_ = _tmp9_;
#line 1418 "/home/jens/Source/shotwell/src/Photo.vala"
g_warning ("Photo.vala:1418: Unable to retrieve photo state from %s for reimport", _tmp10_);
#line 1418 "/home/jens/Source/shotwell/src/Photo.vala"
_g_free0 (_tmp10_);
#line 1419 "/home/jens/Source/shotwell/src/Photo.vala"
result = FALSE;
#line 1419 "/home/jens/Source/shotwell/src/Photo.vala"
_backing_photo_row_unref0 (backing);
#line 1419 "/home/jens/Source/shotwell/src/Photo.vala"
_detected_photo_information_unref0 (detected);
#line 1419 "/home/jens/Source/shotwell/src/Photo.vala"
_g_object_unref0 (file);
#line 1419 "/home/jens/Source/shotwell/src/Photo.vala"
if (reimport_state) {
#line 1419 "/home/jens/Source/shotwell/src/Photo.vala"
*reimport_state = _vala_reimport_state;
#line 11090 "Photo.c"
} else {
#line 1419 "/home/jens/Source/shotwell/src/Photo.vala"
_photo_reimport_master_state_unref0 (_vala_reimport_state);
#line 11094 "Photo.c"
}
#line 1419 "/home/jens/Source/shotwell/src/Photo.vala"
return result;
#line 11098 "Photo.c"
}
#line 1423 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp13_ = detected;
#line 1423 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp14_ = _tmp13_->colorspace;
#line 1423 "/home/jens/Source/shotwell/src/Photo.vala"
if (_tmp14_ != GDK_COLORSPACE_RGB) {
#line 1423 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp12_ = TRUE;
#line 11108 "Photo.c"
} else {
DetectedPhotoInformation* _tmp15_ = NULL;
gint _tmp16_ = 0;
#line 1424 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp15_ = detected;
#line 1424 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp16_ = _tmp15_->channels;
#line 1424 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp12_ = _tmp16_ < 3;
#line 11118 "Photo.c"
}
#line 1423 "/home/jens/Source/shotwell/src/Photo.vala"
if (_tmp12_) {
#line 1423 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp11_ = TRUE;
#line 11124 "Photo.c"
} else {
DetectedPhotoInformation* _tmp17_ = NULL;
gint _tmp18_ = 0;
#line 1425 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp17_ = detected;
#line 1425 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp18_ = _tmp17_->bits_per_channel;
#line 1425 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp11_ = _tmp18_ != 8;
#line 11134 "Photo.c"
}
#line 1423 "/home/jens/Source/shotwell/src/Photo.vala"
if (_tmp11_) {
#line 11138 "Photo.c"
GFile* _tmp19_ = NULL;
gchar* _tmp20_ = NULL;
gchar* _tmp21_ = NULL;
#line 1426 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp19_ = file;
#line 1426 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp20_ = g_file_get_path (_tmp19_);
#line 1426 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp21_ = _tmp20_;
#line 1426 "/home/jens/Source/shotwell/src/Photo.vala"
g_warning ("Photo.vala:1426: Not re-importing %s: Unsupported color format", _tmp21_);
#line 1426 "/home/jens/Source/shotwell/src/Photo.vala"
_g_free0 (_tmp21_);
#line 1428 "/home/jens/Source/shotwell/src/Photo.vala"
result = FALSE;
#line 1428 "/home/jens/Source/shotwell/src/Photo.vala"
_backing_photo_row_unref0 (backing);
#line 1428 "/home/jens/Source/shotwell/src/Photo.vala"
_detected_photo_information_unref0 (detected);
#line 1428 "/home/jens/Source/shotwell/src/Photo.vala"
_g_object_unref0 (file);
#line 1428 "/home/jens/Source/shotwell/src/Photo.vala"
if (reimport_state) {
#line 1428 "/home/jens/Source/shotwell/src/Photo.vala"
*reimport_state = _vala_reimport_state;
#line 11164 "Photo.c"
} else {
#line 1428 "/home/jens/Source/shotwell/src/Photo.vala"
_photo_reimport_master_state_unref0 (_vala_reimport_state);
#line 11168 "Photo.c"
}
#line 1428 "/home/jens/Source/shotwell/src/Photo.vala"
return result;
#line 11172 "Photo.c"
}
#line 1432 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp22_ = photo_row_new ();
#line 1432 "/home/jens/Source/shotwell/src/Photo.vala"
updated_row = _tmp22_;
#line 11178 "Photo.c"
{
PhotoRow* _tmp23_ = NULL;
#line 1433 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp23_ = self->row;
#line 1433 "/home/jens/Source/shotwell/src/Photo.vala"
g_rec_mutex_lock (&self->priv->__lock_row);
#line 11185 "Photo.c"
{
PhotoRow* _tmp24_ = NULL;
PhotoRow* _tmp25_ = NULL;
#line 1434 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp24_ = self->row;
#line 1434 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp25_ = _photo_row_ref0 (_tmp24_);
#line 1434 "/home/jens/Source/shotwell/src/Photo.vala"
_photo_row_unref0 (updated_row);
#line 1434 "/home/jens/Source/shotwell/src/Photo.vala"
updated_row = _tmp25_;
#line 11197 "Photo.c"
}
__finally304:
{
PhotoRow* _tmp26_ = NULL;
#line 1433 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp26_ = self->row;
#line 1433 "/home/jens/Source/shotwell/src/Photo.vala"
g_rec_mutex_unlock (&self->priv->__lock_row);
#line 11206 "Photo.c"
}
#line 1433 "/home/jens/Source/shotwell/src/Photo.vala"
if (G_UNLIKELY (_inner_error_ != NULL)) {
#line 1433 "/home/jens/Source/shotwell/src/Photo.vala"
g_propagate_error (error, _inner_error_);
#line 1433 "/home/jens/Source/shotwell/src/Photo.vala"
_photo_row_unref0 (updated_row);
#line 1433 "/home/jens/Source/shotwell/src/Photo.vala"
_backing_photo_row_unref0 (backing);
#line 1433 "/home/jens/Source/shotwell/src/Photo.vala"
_detected_photo_information_unref0 (detected);
#line 1433 "/home/jens/Source/shotwell/src/Photo.vala"
_g_object_unref0 (file);
#line 1433 "/home/jens/Source/shotwell/src/Photo.vala"
return FALSE;
#line 11222 "Photo.c"
}
}
#line 1438 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp27_ = g_new0 (gchar*, 0 + 1);
#line 1438 "/home/jens/Source/shotwell/src/Photo.vala"
list = _tmp27_;
#line 1438 "/home/jens/Source/shotwell/src/Photo.vala"
list_length1 = 0;
#line 1438 "/home/jens/Source/shotwell/src/Photo.vala"
_list_size_ = list_length1;
#line 1440 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp28_ = updated_row;
#line 1440 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp29_ = _tmp28_->md5;
#line 1440 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp30_ = detected;
#line 1440 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp31_ = _tmp30_->md5;
#line 1440 "/home/jens/Source/shotwell/src/Photo.vala"
if (g_strcmp0 (_tmp29_, _tmp31_) != 0) {
#line 11243 "Photo.c"
gchar** _tmp32_ = NULL;
gint _tmp32__length1 = 0;
gchar* _tmp33_ = NULL;
#line 1441 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp32_ = list;
#line 1441 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp32__length1 = list_length1;
#line 1441 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp33_ = g_strdup ("metadata:md5");
#line 1441 "/home/jens/Source/shotwell/src/Photo.vala"
_vala_array_add254 (&list, &list_length1, &_list_size_, _tmp33_);
#line 11255 "Photo.c"
}
#line 1443 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp34_ = updated_row;
#line 1443 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp35_ = _tmp34_->master;
#line 1443 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp36_ = _tmp35_->original_orientation;
#line 1443 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp37_ = backing;
#line 1443 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp38_ = _tmp37_->original_orientation;
#line 1443 "/home/jens/Source/shotwell/src/Photo.vala"
if (_tmp36_ != _tmp38_) {
#line 11269 "Photo.c"
gchar** _tmp39_ = NULL;
gint _tmp39__length1 = 0;
gchar* _tmp40_ = NULL;
PhotoRow* _tmp41_ = NULL;
BackingPhotoRow* _tmp42_ = NULL;
BackingPhotoRow* _tmp43_ = NULL;
Orientation _tmp44_ = 0;
#line 1444 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp39_ = list;
#line 1444 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp39__length1 = list_length1;
#line 1444 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp40_ = g_strdup ("image:orientation");
#line 1444 "/home/jens/Source/shotwell/src/Photo.vala"
_vala_array_add255 (&list, &list_length1, &_list_size_, _tmp40_);
#line 1445 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp41_ = updated_row;
#line 1445 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp42_ = _tmp41_->master;
#line 1445 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp43_ = backing;
#line 1445 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp44_ = _tmp43_->original_orientation;
#line 1445 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp42_->original_orientation = _tmp44_;
#line 11295 "Photo.c"
}
#line 1448 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp45_ = detected;
#line 1448 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp46_ = _tmp45_->metadata;
#line 1448 "/home/jens/Source/shotwell/src/Photo.vala"
if (_tmp46_ != NULL) {
#line 11303 "Photo.c"
MetadataDateTime* date_time = NULL;
DetectedPhotoInformation* _tmp47_ = NULL;
PhotoMetadata* _tmp48_ = NULL;
MetadataDateTime* _tmp49_ = NULL;
gboolean _tmp50_ = FALSE;
MetadataDateTime* _tmp51_ = NULL;
PhotoRow* _tmp58_ = NULL;
const gchar* _tmp59_ = NULL;
DetectedPhotoInformation* _tmp60_ = NULL;
PhotoMetadata* _tmp61_ = NULL;
gchar* _tmp62_ = NULL;
gchar* _tmp63_ = NULL;
gboolean _tmp64_ = FALSE;
PhotoRow* _tmp67_ = NULL;
const gchar* _tmp68_ = NULL;
DetectedPhotoInformation* _tmp69_ = NULL;
PhotoMetadata* _tmp70_ = NULL;
gchar* _tmp71_ = NULL;
gchar* _tmp72_ = NULL;
gboolean _tmp73_ = FALSE;
PhotoRow* _tmp76_ = NULL;
Rating _tmp77_ = 0;
DetectedPhotoInformation* _tmp78_ = NULL;
PhotoMetadata* _tmp79_ = NULL;
Rating _tmp80_ = 0;
#line 1449 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp47_ = detected;
#line 1449 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp48_ = _tmp47_->metadata;
#line 1449 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp49_ = photo_metadata_get_exposure_date_time (_tmp48_);
#line 1449 "/home/jens/Source/shotwell/src/Photo.vala"
date_time = _tmp49_;
#line 1450 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp51_ = date_time;
#line 1450 "/home/jens/Source/shotwell/src/Photo.vala"
if (_tmp51_ != NULL) {
#line 11341 "Photo.c"
PhotoRow* _tmp52_ = NULL;
time_t _tmp53_ = 0;
MetadataDateTime* _tmp54_ = NULL;
time_t _tmp55_ = 0;
#line 1450 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp52_ = updated_row;
#line 1450 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp53_ = _tmp52_->exposure_time;
#line 1450 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp54_ = date_time;
#line 1450 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp55_ = metadata_date_time_get_timestamp (_tmp54_);
#line 1450 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp50_ = _tmp53_ != _tmp55_;
#line 11356 "Photo.c"
} else {
#line 1450 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp50_ = FALSE;
#line 11360 "Photo.c"
}
#line 1450 "/home/jens/Source/shotwell/src/Photo.vala"
if (_tmp50_) {
#line 11364 "Photo.c"
gchar** _tmp56_ = NULL;
gint _tmp56__length1 = 0;
gchar* _tmp57_ = NULL;
#line 1451 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp56_ = list;
#line 1451 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp56__length1 = list_length1;
#line 1451 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp57_ = g_strdup ("metadata:exposure-time");
#line 1451 "/home/jens/Source/shotwell/src/Photo.vala"
_vala_array_add256 (&list, &list_length1, &_list_size_, _tmp57_);
#line 11376 "Photo.c"
}
#line 1453 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp58_ = updated_row;
#line 1453 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp59_ = _tmp58_->title;
#line 1453 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp60_ = detected;
#line 1453 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp61_ = _tmp60_->metadata;
#line 1453 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp62_ = media_metadata_get_title (G_TYPE_CHECK_INSTANCE_CAST (_tmp61_, TYPE_MEDIA_METADATA, MediaMetadata));
#line 1453 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp63_ = _tmp62_;
#line 1453 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp64_ = g_strcmp0 (_tmp59_, _tmp63_) != 0;
#line 1453 "/home/jens/Source/shotwell/src/Photo.vala"
_g_free0 (_tmp63_);
#line 1453 "/home/jens/Source/shotwell/src/Photo.vala"
if (_tmp64_) {
#line 11396 "Photo.c"
gchar** _tmp65_ = NULL;
gint _tmp65__length1 = 0;
gchar* _tmp66_ = NULL;
#line 1454 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp65_ = list;
#line 1454 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp65__length1 = list_length1;
#line 1454 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp66_ = g_strdup ("metadata:name");
#line 1454 "/home/jens/Source/shotwell/src/Photo.vala"
_vala_array_add257 (&list, &list_length1, &_list_size_, _tmp66_);
#line 11408 "Photo.c"
}
#line 1456 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp67_ = updated_row;
#line 1456 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp68_ = _tmp67_->comment;
#line 1456 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp69_ = detected;
#line 1456 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp70_ = _tmp69_->metadata;
#line 1456 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp71_ = media_metadata_get_comment (G_TYPE_CHECK_INSTANCE_CAST (_tmp70_, TYPE_MEDIA_METADATA, MediaMetadata));
#line 1456 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp72_ = _tmp71_;
#line 1456 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp73_ = g_strcmp0 (_tmp68_, _tmp72_) != 0;
#line 1456 "/home/jens/Source/shotwell/src/Photo.vala"
_g_free0 (_tmp72_);
#line 1456 "/home/jens/Source/shotwell/src/Photo.vala"
if (_tmp73_) {
#line 11428 "Photo.c"
gchar** _tmp74_ = NULL;
gint _tmp74__length1 = 0;
gchar* _tmp75_ = NULL;
#line 1457 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp74_ = list;
#line 1457 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp74__length1 = list_length1;
#line 1457 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp75_ = g_strdup ("metadata:comment");
#line 1457 "/home/jens/Source/shotwell/src/Photo.vala"
_vala_array_add258 (&list, &list_length1, &_list_size_, _tmp75_);
#line 11440 "Photo.c"
}
#line 1459 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp76_ = updated_row;
#line 1459 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp77_ = _tmp76_->rating;
#line 1459 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp78_ = detected;
#line 1459 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp79_ = _tmp78_->metadata;
#line 1459 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp80_ = photo_metadata_get_rating (_tmp79_);
#line 1459 "/home/jens/Source/shotwell/src/Photo.vala"
if (_tmp77_ != _tmp80_) {
#line 11454 "Photo.c"
gchar** _tmp81_ = NULL;
gint _tmp81__length1 = 0;
gchar* _tmp82_ = NULL;
#line 1460 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp81_ = list;
#line 1460 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp81__length1 = list_length1;
#line 1460 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp82_ = g_strdup ("metadata:rating");
#line 1460 "/home/jens/Source/shotwell/src/Photo.vala"
_vala_array_add259 (&list, &list_length1, &_list_size_, _tmp82_);
#line 11466 "Photo.c"
}
#line 1448 "/home/jens/Source/shotwell/src/Photo.vala"
_metadata_date_time_unref0 (date_time);
#line 11470 "Photo.c"
}
#line 1463 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp83_ = updated_row;
#line 1463 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp84_ = backing;
#line 1463 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp85_ = _backing_photo_row_ref0 (_tmp84_);
#line 1463 "/home/jens/Source/shotwell/src/Photo.vala"
_backing_photo_row_unref0 (_tmp83_->master);
#line 1463 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp83_->master = _tmp85_;
#line 1464 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp86_ = updated_row;
#line 1464 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp87_ = detected;
#line 1464 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp88_ = _tmp87_->md5;
#line 1464 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp89_ = g_strdup (_tmp88_);
#line 1464 "/home/jens/Source/shotwell/src/Photo.vala"
_g_free0 (_tmp86_->md5);
#line 1464 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp86_->md5 = _tmp89_;
#line 1465 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp90_ = updated_row;
#line 1465 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp91_ = detected;
#line 1465 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp92_ = _tmp91_->exif_md5;
#line 1465 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp93_ = g_strdup (_tmp92_);
#line 1465 "/home/jens/Source/shotwell/src/Photo.vala"
_g_free0 (_tmp90_->exif_md5);
#line 1465 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp90_->exif_md5 = _tmp93_;
#line 1466 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp94_ = updated_row;
#line 1466 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp95_ = detected;
#line 1466 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp96_ = _tmp95_->thumbnail_md5;
#line 1466 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp97_ = g_strdup (_tmp96_);
#line 1466 "/home/jens/Source/shotwell/src/Photo.vala"
_g_free0 (_tmp94_->thumbnail_md5);
#line 1466 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp94_->thumbnail_md5 = _tmp97_;
#line 1468 "/home/jens/Source/shotwell/src/Photo.vala"
metadata = NULL;
#line 1469 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp98_ = detected;
#line 1469 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp99_ = _tmp98_->metadata;
#line 1469 "/home/jens/Source/shotwell/src/Photo.vala"
if (_tmp99_ != NULL) {
#line 11526 "Photo.c"
DetectedPhotoInformation* _tmp100_ = NULL;
PhotoMetadata* _tmp101_ = NULL;
PhotoMetadata* _tmp102_ = NULL;
MetadataDateTime* date_time = NULL;
DetectedPhotoInformation* _tmp103_ = NULL;
PhotoMetadata* _tmp104_ = NULL;
MetadataDateTime* _tmp105_ = NULL;
MetadataDateTime* _tmp106_ = NULL;
PhotoRow* _tmp110_ = NULL;
DetectedPhotoInformation* _tmp111_ = NULL;
PhotoMetadata* _tmp112_ = NULL;
gchar* _tmp113_ = NULL;
PhotoRow* _tmp114_ = NULL;
DetectedPhotoInformation* _tmp115_ = NULL;
PhotoMetadata* _tmp116_ = NULL;
gchar* _tmp117_ = NULL;
PhotoRow* _tmp118_ = NULL;
DetectedPhotoInformation* _tmp119_ = NULL;
PhotoMetadata* _tmp120_ = NULL;
Rating _tmp121_ = 0;
#line 1470 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp100_ = detected;
#line 1470 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp101_ = _tmp100_->metadata;
#line 1470 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp102_ = _media_metadata_ref0 (_tmp101_);
#line 1470 "/home/jens/Source/shotwell/src/Photo.vala"
_media_metadata_unref0 (metadata);
#line 1470 "/home/jens/Source/shotwell/src/Photo.vala"
metadata = _tmp102_;
#line 1472 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp103_ = detected;
#line 1472 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp104_ = _tmp103_->metadata;
#line 1472 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp105_ = photo_metadata_get_exposure_date_time (_tmp104_);
#line 1472 "/home/jens/Source/shotwell/src/Photo.vala"
date_time = _tmp105_;
#line 1473 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp106_ = date_time;
#line 1473 "/home/jens/Source/shotwell/src/Photo.vala"
if (_tmp106_ != NULL) {
#line 11569 "Photo.c"
PhotoRow* _tmp107_ = NULL;
MetadataDateTime* _tmp108_ = NULL;
time_t _tmp109_ = 0;
#line 1474 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp107_ = updated_row;
#line 1474 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp108_ = date_time;
#line 1474 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp109_ = metadata_date_time_get_timestamp (_tmp108_);
#line 1474 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp107_->exposure_time = _tmp109_;
#line 11581 "Photo.c"
}
#line 1476 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp110_ = updated_row;
#line 1476 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp111_ = detected;
#line 1476 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp112_ = _tmp111_->metadata;
#line 1476 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp113_ = media_metadata_get_title (G_TYPE_CHECK_INSTANCE_CAST (_tmp112_, TYPE_MEDIA_METADATA, MediaMetadata));
#line 1476 "/home/jens/Source/shotwell/src/Photo.vala"
_g_free0 (_tmp110_->title);
#line 1476 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp110_->title = _tmp113_;
#line 1477 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp114_ = updated_row;
#line 1477 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp115_ = detected;
#line 1477 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp116_ = _tmp115_->metadata;
#line 1477 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp117_ = media_metadata_get_comment (G_TYPE_CHECK_INSTANCE_CAST (_tmp116_, TYPE_MEDIA_METADATA, MediaMetadata));
#line 1477 "/home/jens/Source/shotwell/src/Photo.vala"
_g_free0 (_tmp114_->comment);
#line 1477 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp114_->comment = _tmp117_;
#line 1478 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp118_ = updated_row;
#line 1478 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp119_ = detected;
#line 1478 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp120_ = _tmp119_->metadata;
#line 1478 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp121_ = photo_metadata_get_rating (_tmp120_);
#line 1478 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp118_->rating = _tmp121_;
#line 1469 "/home/jens/Source/shotwell/src/Photo.vala"
_metadata_date_time_unref0 (date_time);
#line 11619 "Photo.c"
}
#line 1481 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp122_ = updated_row;
#line 1481 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp123_ = metadata;
#line 1481 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp124_ = list;
#line 1481 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp124__length1 = list_length1;
#line 1481 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp125_ = photo_reimport_master_state_impl_new (_tmp122_, _tmp123_, _tmp124_, _tmp124__length1);
#line 1481 "/home/jens/Source/shotwell/src/Photo.vala"
_photo_reimport_master_state_unref0 (_vala_reimport_state);
#line 1481 "/home/jens/Source/shotwell/src/Photo.vala"
_vala_reimport_state = G_TYPE_CHECK_INSTANCE_CAST (_tmp125_, PHOTO_TYPE_REIMPORT_MASTER_STATE, PhotoReimportMasterState);
#line 1483 "/home/jens/Source/shotwell/src/Photo.vala"
result = TRUE;
#line 1483 "/home/jens/Source/shotwell/src/Photo.vala"
_media_metadata_unref0 (metadata);
#line 1483 "/home/jens/Source/shotwell/src/Photo.vala"
list = (_vala_array_free (list, list_length1, (GDestroyNotify) g_free), NULL);
#line 1483 "/home/jens/Source/shotwell/src/Photo.vala"
_photo_row_unref0 (updated_row);
#line 1483 "/home/jens/Source/shotwell/src/Photo.vala"
_backing_photo_row_unref0 (backing);
#line 1483 "/home/jens/Source/shotwell/src/Photo.vala"
_detected_photo_information_unref0 (detected);
#line 1483 "/home/jens/Source/shotwell/src/Photo.vala"
_g_object_unref0 (file);
#line 1483 "/home/jens/Source/shotwell/src/Photo.vala"
if (reimport_state) {
#line 1483 "/home/jens/Source/shotwell/src/Photo.vala"
*reimport_state = _vala_reimport_state;
#line 11653 "Photo.c"
} else {
#line 1483 "/home/jens/Source/shotwell/src/Photo.vala"
_photo_reimport_master_state_unref0 (_vala_reimport_state);
#line 11657 "Photo.c"
}
#line 1483 "/home/jens/Source/shotwell/src/Photo.vala"
return result;
#line 11661 "Photo.c"
}
static void photo_real_apply_user_metadata_for_reimport (Photo* self, PhotoMetadata* metadata) {
#line 1486 "/home/jens/Source/shotwell/src/Photo.vala"
g_critical ("Type `%s' does not implement abstract method `photo_apply_user_metadata_for_reimport'", g_type_name (G_TYPE_FROM_INSTANCE (self)));
#line 1486 "/home/jens/Source/shotwell/src/Photo.vala"
return;
#line 11670 "Photo.c"
}
void photo_apply_user_metadata_for_reimport (Photo* self, PhotoMetadata* metadata) {
#line 1486 "/home/jens/Source/shotwell/src/Photo.vala"
g_return_if_fail (IS_PHOTO (self));
#line 1486 "/home/jens/Source/shotwell/src/Photo.vala"
PHOTO_GET_CLASS (self)->apply_user_metadata_for_reimport (self, metadata);
#line 11679 "Photo.c"
}
static gpointer _photo_reimport_master_state_ref0 (gpointer self) {
#line 1490 "/home/jens/Source/shotwell/src/Photo.vala"
return self ? photo_reimport_master_state_ref (self) : NULL;
#line 11686 "Photo.c"
}
static void _vala_array_add260 (gchar*** array, int* length, int* size, gchar* value) {
#line 1508 "/home/jens/Source/shotwell/src/Photo.vala"
if ((*length) == (*size)) {
#line 1508 "/home/jens/Source/shotwell/src/Photo.vala"
*size = (*size) ? (2 * (*size)) : 4;
#line 1508 "/home/jens/Source/shotwell/src/Photo.vala"
*array = g_renew (gchar*, *array, (*size) + 1);
#line 11697 "Photo.c"
}
#line 1508 "/home/jens/Source/shotwell/src/Photo.vala"
(*array)[(*length)++] = value;
#line 1508 "/home/jens/Source/shotwell/src/Photo.vala"
(*array)[*length] = NULL;
#line 11703 "Photo.c"
}
static void _vala_array_add261 (gchar*** array, int* length, int* size, gchar* value) {
#line 1510 "/home/jens/Source/shotwell/src/Photo.vala"
if ((*length) == (*size)) {
#line 1510 "/home/jens/Source/shotwell/src/Photo.vala"
*size = (*size) ? (2 * (*size)) : 4;
#line 1510 "/home/jens/Source/shotwell/src/Photo.vala"
*array = g_renew (gchar*, *array, (*size) + 1);
#line 11714 "Photo.c"
}
#line 1510 "/home/jens/Source/shotwell/src/Photo.vala"
(*array)[(*length)++] = value;
#line 1510 "/home/jens/Source/shotwell/src/Photo.vala"
(*array)[*length] = NULL;
#line 11720 "Photo.c"
}
void photo_finish_reimport_master (Photo* self, PhotoReimportMasterState* state, GError** error) {
PhotoReimportMasterStateImpl* reimport_state = NULL;
PhotoReimportMasterState* _tmp0_ = NULL;
PhotoReimportMasterStateImpl* _tmp1_ = NULL;
PhotoTable* _tmp2_ = NULL;
PhotoTable* _tmp3_ = NULL;
PhotoRow* _tmp4_ = NULL;
PhotoMetadata* _tmp20_ = NULL;
gboolean _tmp22_ = FALSE;
gchar** _tmp28_ = NULL;
gint _tmp28__length1 = 0;
PhotoMetadata* _tmp32_ = NULL;
gboolean _tmp33_ = FALSE;
gboolean _tmp35_ = FALSE;
GError * _inner_error_ = NULL;
#line 1489 "/home/jens/Source/shotwell/src/Photo.vala"
g_return_if_fail (IS_PHOTO (self));
#line 1489 "/home/jens/Source/shotwell/src/Photo.vala"
g_return_if_fail (PHOTO_IS_REIMPORT_MASTER_STATE (state));
#line 1490 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp0_ = state;
#line 1490 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp1_ = _photo_reimport_master_state_ref0 (G_TYPE_CHECK_INSTANCE_CAST (_tmp0_, PHOTO_TYPE_REIMPORT_MASTER_STATE_IMPL, PhotoReimportMasterStateImpl));
#line 1490 "/home/jens/Source/shotwell/src/Photo.vala"
reimport_state = _tmp1_;
#line 1492 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp2_ = photo_table_get_instance ();
#line 1492 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp3_ = _tmp2_;
#line 1492 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp4_ = reimport_state->row;
#line 1492 "/home/jens/Source/shotwell/src/Photo.vala"
photo_table_reimport (_tmp3_, _tmp4_, &_inner_error_);
#line 1492 "/home/jens/Source/shotwell/src/Photo.vala"
_database_table_unref0 (_tmp3_);
#line 1492 "/home/jens/Source/shotwell/src/Photo.vala"
if (G_UNLIKELY (_inner_error_ != NULL)) {
#line 1492 "/home/jens/Source/shotwell/src/Photo.vala"
if (_inner_error_->domain == DATABASE_ERROR) {
#line 1492 "/home/jens/Source/shotwell/src/Photo.vala"
g_propagate_error (error, _inner_error_);
#line 1492 "/home/jens/Source/shotwell/src/Photo.vala"
_photo_reimport_master_state_unref0 (reimport_state);
#line 1492 "/home/jens/Source/shotwell/src/Photo.vala"
return;
#line 11769 "Photo.c"
} else {
#line 1492 "/home/jens/Source/shotwell/src/Photo.vala"
_photo_reimport_master_state_unref0 (reimport_state);
#line 1492 "/home/jens/Source/shotwell/src/Photo.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 1492 "/home/jens/Source/shotwell/src/Photo.vala"
g_clear_error (&_inner_error_);
#line 1492 "/home/jens/Source/shotwell/src/Photo.vala"
return;
#line 11779 "Photo.c"
}
}
{
PhotoRow* _tmp5_ = NULL;
#line 1494 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp5_ = self->row;
#line 1494 "/home/jens/Source/shotwell/src/Photo.vala"
g_rec_mutex_lock (&self->priv->__lock_row);
#line 11788 "Photo.c"
{
BackingPhotoRow* original_master = NULL;
PhotoRow* _tmp6_ = NULL;
BackingPhotoRow* _tmp7_ = NULL;
BackingPhotoRow* _tmp8_ = NULL;
PhotoRow* _tmp9_ = NULL;
PhotoRow* _tmp10_ = NULL;
PhotoRow* _tmp11_ = NULL;
BackingPhotoRow* _tmp12_ = NULL;
BackingPhotoRow* _tmp13_ = NULL;
PhotoRow* _tmp14_ = NULL;
BackingPhotoRow* _tmp15_ = NULL;
PhotoRow* _tmp16_ = NULL;
BackingPhotoRow* _tmp17_ = NULL;
gboolean _tmp18_ = FALSE;
#line 1496 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp6_ = self->row;
#line 1496 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp7_ = _tmp6_->master;
#line 1496 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp8_ = _backing_photo_row_ref0 (_tmp7_);
#line 1496 "/home/jens/Source/shotwell/src/Photo.vala"
original_master = _tmp8_;
#line 1497 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp9_ = reimport_state->row;
#line 1497 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp10_ = _photo_row_ref0 (_tmp9_);
#line 1497 "/home/jens/Source/shotwell/src/Photo.vala"
_photo_row_unref0 (self->row);
#line 1497 "/home/jens/Source/shotwell/src/Photo.vala"
self->row = _tmp10_;
#line 1498 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp11_ = self->row;
#line 1498 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp12_ = original_master;
#line 1498 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp13_ = _backing_photo_row_ref0 (_tmp12_);
#line 1498 "/home/jens/Source/shotwell/src/Photo.vala"
_backing_photo_row_unref0 (_tmp11_->master);
#line 1498 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp11_->master = _tmp13_;
#line 1499 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp14_ = self->row;
#line 1499 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp15_ = _tmp14_->master;
#line 1499 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp16_ = reimport_state->row;
#line 1499 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp17_ = _tmp16_->master;
#line 1499 "/home/jens/Source/shotwell/src/Photo.vala"
backing_photo_row_copy_from (_tmp15_, _tmp17_);
#line 1500 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp18_ = reimport_state->metadata_only;
#line 1500 "/home/jens/Source/shotwell/src/Photo.vala"
if (!_tmp18_) {
#line 1501 "/home/jens/Source/shotwell/src/Photo.vala"
photo_internal_remove_all_transformations (self, FALSE);
#line 11846 "Photo.c"
}
#line 1494 "/home/jens/Source/shotwell/src/Photo.vala"
_backing_photo_row_unref0 (original_master);
#line 11850 "Photo.c"
}
__finally305:
{
PhotoRow* _tmp19_ = NULL;
#line 1494 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp19_ = self->row;
#line 1494 "/home/jens/Source/shotwell/src/Photo.vala"
g_rec_mutex_unlock (&self->priv->__lock_row);
#line 11859 "Photo.c"
}
#line 1494 "/home/jens/Source/shotwell/src/Photo.vala"
if (G_UNLIKELY (_inner_error_ != NULL)) {
#line 1494 "/home/jens/Source/shotwell/src/Photo.vala"
if (_inner_error_->domain == DATABASE_ERROR) {
#line 1494 "/home/jens/Source/shotwell/src/Photo.vala"
g_propagate_error (error, _inner_error_);
#line 1494 "/home/jens/Source/shotwell/src/Photo.vala"
_photo_reimport_master_state_unref0 (reimport_state);
#line 1494 "/home/jens/Source/shotwell/src/Photo.vala"
return;
#line 11871 "Photo.c"
} else {
#line 1494 "/home/jens/Source/shotwell/src/Photo.vala"
_photo_reimport_master_state_unref0 (reimport_state);
#line 1494 "/home/jens/Source/shotwell/src/Photo.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 1494 "/home/jens/Source/shotwell/src/Photo.vala"
g_clear_error (&_inner_error_);
#line 1494 "/home/jens/Source/shotwell/src/Photo.vala"
return;
#line 11881 "Photo.c"
}
}
}
#line 1504 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp20_ = reimport_state->metadata;
#line 1504 "/home/jens/Source/shotwell/src/Photo.vala"
if (_tmp20_ != NULL) {
#line 11889 "Photo.c"
PhotoMetadata* _tmp21_ = NULL;
#line 1505 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp21_ = reimport_state->metadata;
#line 1505 "/home/jens/Source/shotwell/src/Photo.vala"
photo_apply_user_metadata_for_reimport (self, _tmp21_);
#line 11895 "Photo.c"
}
#line 1507 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp22_ = reimport_state->metadata_only;
#line 1507 "/home/jens/Source/shotwell/src/Photo.vala"
if (!_tmp22_) {
#line 11901 "Photo.c"
gchar** _tmp23_ = NULL;
gint _tmp23__length1 = 0;
gchar* _tmp24_ = NULL;
gboolean _tmp25_ = FALSE;
#line 1508 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp23_ = reimport_state->alterations;
#line 1508 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp23__length1 = reimport_state->alterations_length1;
#line 1508 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp24_ = g_strdup ("image:master");
#line 1508 "/home/jens/Source/shotwell/src/Photo.vala"
_vala_array_add260 (&reimport_state->alterations, &reimport_state->alterations_length1, &reimport_state->_alterations_size_, _tmp24_);
#line 1509 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp25_ = photo_is_master_baseline (self);
#line 1509 "/home/jens/Source/shotwell/src/Photo.vala"
if (_tmp25_) {
#line 11918 "Photo.c"
gchar** _tmp26_ = NULL;
gint _tmp26__length1 = 0;
gchar* _tmp27_ = NULL;
#line 1510 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp26_ = reimport_state->alterations;
#line 1510 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp26__length1 = reimport_state->alterations_length1;
#line 1510 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp27_ = g_strdup ("image:baseline");
#line 1510 "/home/jens/Source/shotwell/src/Photo.vala"
_vala_array_add261 (&reimport_state->alterations, &reimport_state->alterations_length1, &reimport_state->_alterations_size_, _tmp27_);
#line 11930 "Photo.c"
}
}
#line 1513 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp28_ = reimport_state->alterations;
#line 1513 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp28__length1 = reimport_state->alterations_length1;
#line 1513 "/home/jens/Source/shotwell/src/Photo.vala"
if (_tmp28__length1 > 0) {
#line 11939 "Photo.c"
gchar** _tmp29_ = NULL;
gint _tmp29__length1 = 0;
Alteration* _tmp30_ = NULL;
Alteration* _tmp31_ = NULL;
#line 1514 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp29_ = reimport_state->alterations;
#line 1514 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp29__length1 = reimport_state->alterations_length1;
#line 1514 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp30_ = alteration_new_from_array (_tmp29_, _tmp29__length1);
#line 1514 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp31_ = _tmp30_;
#line 1514 "/home/jens/Source/shotwell/src/Photo.vala"
data_object_notify_altered (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_DATA_OBJECT, DataObject), _tmp31_);
#line 1514 "/home/jens/Source/shotwell/src/Photo.vala"
_alteration_unref0 (_tmp31_);
#line 11956 "Photo.c"
}
#line 1516 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp32_ = reimport_state->metadata;
#line 1516 "/home/jens/Source/shotwell/src/Photo.vala"
photo_notify_master_reimported (self, _tmp32_);
#line 1518 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp33_ = photo_is_master_baseline (self);
#line 1518 "/home/jens/Source/shotwell/src/Photo.vala"
if (_tmp33_) {
#line 11966 "Photo.c"
PhotoMetadata* _tmp34_ = NULL;
#line 1519 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp34_ = reimport_state->metadata;
#line 1519 "/home/jens/Source/shotwell/src/Photo.vala"
photo_notify_baseline_reimported (self, _tmp34_);
#line 11972 "Photo.c"
}
#line 1521 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp35_ = photo_is_master_source (self);
#line 1521 "/home/jens/Source/shotwell/src/Photo.vala"
if (_tmp35_) {
#line 11978 "Photo.c"
PhotoMetadata* _tmp36_ = NULL;
#line 1522 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp36_ = reimport_state->metadata;
#line 1522 "/home/jens/Source/shotwell/src/Photo.vala"
photo_notify_source_reimported (self, _tmp36_);
#line 11984 "Photo.c"
}
#line 1489 "/home/jens/Source/shotwell/src/Photo.vala"
_photo_reimport_master_state_unref0 (reimport_state);
#line 11988 "Photo.c"
}
static gboolean photo_verify_file_for_reimport (Photo* self, GFile* file, BackingPhotoRow** backing, DetectedPhotoInformation** detected, GError** error) {
BackingPhotoRow* _vala_backing = NULL;
DetectedPhotoInformation* _vala_detected = NULL;
gboolean result = FALSE;
BackingPhotoRow* _tmp0_ = NULL;
GFile* _tmp1_ = NULL;
DetectedPhotoInformation* _tmp2_ = NULL;
BackingPhotoRow* _tmp3_ = NULL;
BackingPhotoRow* _tmp4_ = NULL;
BackingPhotoRow* _tmp5_ = NULL;
gboolean _tmp6_ = FALSE;
gboolean _tmp7_ = FALSE;
DetectedPhotoInformation* _tmp8_ = NULL;
GdkColorspace _tmp9_ = 0;
GError * _inner_error_ = NULL;
#line 1526 "/home/jens/Source/shotwell/src/Photo.vala"
g_return_val_if_fail (IS_PHOTO (self), FALSE);
#line 1526 "/home/jens/Source/shotwell/src/Photo.vala"
g_return_val_if_fail (G_IS_FILE (file), FALSE);
#line 1528 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp1_ = file;
#line 1528 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp3_ = photo_query_backing_photo_row (self, _tmp1_, PHOTO_FILE_SNIFFER_OPTIONS_NO_MD5, &_tmp2_, &_inner_error_);
#line 1528 "/home/jens/Source/shotwell/src/Photo.vala"
_detected_photo_information_unref0 (_vala_detected);
#line 1528 "/home/jens/Source/shotwell/src/Photo.vala"
_vala_detected = _tmp2_;
#line 1528 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp0_ = _tmp3_;
#line 1528 "/home/jens/Source/shotwell/src/Photo.vala"
if (G_UNLIKELY (_inner_error_ != NULL)) {
#line 1528 "/home/jens/Source/shotwell/src/Photo.vala"
g_propagate_error (error, _inner_error_);
#line 1528 "/home/jens/Source/shotwell/src/Photo.vala"
return FALSE;
#line 12027 "Photo.c"
}
#line 1528 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp4_ = _tmp0_;
#line 1528 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp0_ = NULL;
#line 1528 "/home/jens/Source/shotwell/src/Photo.vala"
_backing_photo_row_unref0 (_vala_backing);
#line 1528 "/home/jens/Source/shotwell/src/Photo.vala"
_vala_backing = _tmp4_;
#line 1530 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp5_ = _vala_backing;
#line 1530 "/home/jens/Source/shotwell/src/Photo.vala"
if (_tmp5_ == NULL) {
#line 1531 "/home/jens/Source/shotwell/src/Photo.vala"
result = FALSE;
#line 1531 "/home/jens/Source/shotwell/src/Photo.vala"
_backing_photo_row_unref0 (_tmp0_);
#line 1531 "/home/jens/Source/shotwell/src/Photo.vala"
if (backing) {
#line 1531 "/home/jens/Source/shotwell/src/Photo.vala"
*backing = _vala_backing;
#line 12049 "Photo.c"
} else {
#line 1531 "/home/jens/Source/shotwell/src/Photo.vala"
_backing_photo_row_unref0 (_vala_backing);
#line 12053 "Photo.c"
}
#line 1531 "/home/jens/Source/shotwell/src/Photo.vala"
if (detected) {
#line 1531 "/home/jens/Source/shotwell/src/Photo.vala"
*detected = _vala_detected;
#line 12059 "Photo.c"
} else {
#line 1531 "/home/jens/Source/shotwell/src/Photo.vala"
_detected_photo_information_unref0 (_vala_detected);
#line 12063 "Photo.c"
}
#line 1531 "/home/jens/Source/shotwell/src/Photo.vala"
return result;
#line 12067 "Photo.c"
}
#line 1535 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp8_ = _vala_detected;
#line 1535 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp9_ = _tmp8_->colorspace;
#line 1535 "/home/jens/Source/shotwell/src/Photo.vala"
if (_tmp9_ != GDK_COLORSPACE_RGB) {
#line 1535 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp7_ = TRUE;
#line 12077 "Photo.c"
} else {
DetectedPhotoInformation* _tmp10_ = NULL;
gint _tmp11_ = 0;
#line 1536 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp10_ = _vala_detected;
#line 1536 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp11_ = _tmp10_->channels;
#line 1536 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp7_ = _tmp11_ < 3;
#line 12087 "Photo.c"
}
#line 1535 "/home/jens/Source/shotwell/src/Photo.vala"
if (_tmp7_) {
#line 1535 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp6_ = TRUE;
#line 12093 "Photo.c"
} else {
DetectedPhotoInformation* _tmp12_ = NULL;
gint _tmp13_ = 0;
#line 1537 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp12_ = _vala_detected;
#line 1537 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp13_ = _tmp12_->bits_per_channel;
#line 1537 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp6_ = _tmp13_ != 8;
#line 12103 "Photo.c"
}
#line 1535 "/home/jens/Source/shotwell/src/Photo.vala"
if (_tmp6_) {
#line 12107 "Photo.c"
GFile* _tmp14_ = NULL;
gchar* _tmp15_ = NULL;
gchar* _tmp16_ = NULL;
#line 1538 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp14_ = file;
#line 1538 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp15_ = g_file_get_path (_tmp14_);
#line 1538 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp16_ = _tmp15_;
#line 1538 "/home/jens/Source/shotwell/src/Photo.vala"
g_warning ("Photo.vala:1538: Not re-importing %s: Unsupported color format", _tmp16_);
#line 1538 "/home/jens/Source/shotwell/src/Photo.vala"
_g_free0 (_tmp16_);
#line 1540 "/home/jens/Source/shotwell/src/Photo.vala"
result = FALSE;
#line 1540 "/home/jens/Source/shotwell/src/Photo.vala"
_backing_photo_row_unref0 (_tmp0_);
#line 1540 "/home/jens/Source/shotwell/src/Photo.vala"
if (backing) {
#line 1540 "/home/jens/Source/shotwell/src/Photo.vala"
*backing = _vala_backing;
#line 12129 "Photo.c"
} else {
#line 1540 "/home/jens/Source/shotwell/src/Photo.vala"
_backing_photo_row_unref0 (_vala_backing);
#line 12133 "Photo.c"
}
#line 1540 "/home/jens/Source/shotwell/src/Photo.vala"
if (detected) {
#line 1540 "/home/jens/Source/shotwell/src/Photo.vala"
*detected = _vala_detected;
#line 12139 "Photo.c"
} else {
#line 1540 "/home/jens/Source/shotwell/src/Photo.vala"
_detected_photo_information_unref0 (_vala_detected);
#line 12143 "Photo.c"
}
#line 1540 "/home/jens/Source/shotwell/src/Photo.vala"
return result;
#line 12147 "Photo.c"
}
#line 1543 "/home/jens/Source/shotwell/src/Photo.vala"
result = TRUE;
#line 1543 "/home/jens/Source/shotwell/src/Photo.vala"
_backing_photo_row_unref0 (_tmp0_);
#line 1543 "/home/jens/Source/shotwell/src/Photo.vala"
if (backing) {
#line 1543 "/home/jens/Source/shotwell/src/Photo.vala"
*backing = _vala_backing;
#line 12157 "Photo.c"
} else {
#line 1543 "/home/jens/Source/shotwell/src/Photo.vala"
_backing_photo_row_unref0 (_vala_backing);
#line 12161 "Photo.c"
}
#line 1543 "/home/jens/Source/shotwell/src/Photo.vala"
if (detected) {
#line 1543 "/home/jens/Source/shotwell/src/Photo.vala"
*detected = _vala_detected;
#line 12167 "Photo.c"
} else {
#line 1543 "/home/jens/Source/shotwell/src/Photo.vala"
_detected_photo_information_unref0 (_vala_detected);
#line 12171 "Photo.c"
}
#line 1543 "/home/jens/Source/shotwell/src/Photo.vala"
return result;
#line 12175 "Photo.c"
}
gboolean photo_prepare_for_reimport_editable (Photo* self, PhotoReimportEditableState** state, GError** error) {
PhotoReimportEditableState* _vala_state = NULL;
gboolean result = FALSE;
GFile* file = NULL;
GFile* _tmp0_ = NULL;
GFile* _tmp1_ = NULL;
DetectedPhotoInformation* detected = NULL;
BackingPhotoRow* backing = NULL;
gboolean _tmp2_ = FALSE;
GFile* _tmp3_ = NULL;
BackingPhotoRow* _tmp4_ = NULL;
DetectedPhotoInformation* _tmp5_ = NULL;
gboolean _tmp6_ = FALSE;
BackingPhotoRow* _tmp7_ = NULL;
DetectedPhotoInformation* _tmp8_ = NULL;
PhotoMetadata* _tmp9_ = NULL;
PhotoReimportEditableStateImpl* _tmp10_ = NULL;
GError * _inner_error_ = NULL;
#line 1547 "/home/jens/Source/shotwell/src/Photo.vala"
g_return_val_if_fail (IS_PHOTO (self), FALSE);
#line 1548 "/home/jens/Source/shotwell/src/Photo.vala"
_photo_reimport_editable_state_unref0 (_vala_state);
#line 1548 "/home/jens/Source/shotwell/src/Photo.vala"
_vala_state = NULL;
#line 1550 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp0_ = photo_get_editable_file (self);
#line 1550 "/home/jens/Source/shotwell/src/Photo.vala"
file = _tmp0_;
#line 1551 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp1_ = file;
#line 1551 "/home/jens/Source/shotwell/src/Photo.vala"
if (_tmp1_ == NULL) {
#line 1552 "/home/jens/Source/shotwell/src/Photo.vala"
result = FALSE;
#line 1552 "/home/jens/Source/shotwell/src/Photo.vala"
_g_object_unref0 (file);
#line 1552 "/home/jens/Source/shotwell/src/Photo.vala"
if (state) {
#line 1552 "/home/jens/Source/shotwell/src/Photo.vala"
*state = _vala_state;
#line 12219 "Photo.c"
} else {
#line 1552 "/home/jens/Source/shotwell/src/Photo.vala"
_photo_reimport_editable_state_unref0 (_vala_state);
#line 12223 "Photo.c"
}
#line 1552 "/home/jens/Source/shotwell/src/Photo.vala"
return result;
#line 12227 "Photo.c"
}
#line 1556 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp3_ = file;
#line 1556 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp6_ = photo_verify_file_for_reimport (self, _tmp3_, &_tmp4_, &_tmp5_, &_inner_error_);
#line 1556 "/home/jens/Source/shotwell/src/Photo.vala"
_backing_photo_row_unref0 (backing);
#line 1556 "/home/jens/Source/shotwell/src/Photo.vala"
backing = _tmp4_;
#line 1556 "/home/jens/Source/shotwell/src/Photo.vala"
_detected_photo_information_unref0 (detected);
#line 1556 "/home/jens/Source/shotwell/src/Photo.vala"
detected = _tmp5_;
#line 1556 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp2_ = _tmp6_;
#line 1556 "/home/jens/Source/shotwell/src/Photo.vala"
if (G_UNLIKELY (_inner_error_ != NULL)) {
#line 1556 "/home/jens/Source/shotwell/src/Photo.vala"
g_propagate_error (error, _inner_error_);
#line 1556 "/home/jens/Source/shotwell/src/Photo.vala"
_backing_photo_row_unref0 (backing);
#line 1556 "/home/jens/Source/shotwell/src/Photo.vala"
_detected_photo_information_unref0 (detected);
#line 1556 "/home/jens/Source/shotwell/src/Photo.vala"
_g_object_unref0 (file);
#line 1556 "/home/jens/Source/shotwell/src/Photo.vala"
return FALSE;
#line 12255 "Photo.c"
}
#line 1556 "/home/jens/Source/shotwell/src/Photo.vala"
if (!_tmp2_) {
#line 1557 "/home/jens/Source/shotwell/src/Photo.vala"
result = FALSE;
#line 1557 "/home/jens/Source/shotwell/src/Photo.vala"
_backing_photo_row_unref0 (backing);
#line 1557 "/home/jens/Source/shotwell/src/Photo.vala"
_detected_photo_information_unref0 (detected);
#line 1557 "/home/jens/Source/shotwell/src/Photo.vala"
_g_object_unref0 (file);
#line 1557 "/home/jens/Source/shotwell/src/Photo.vala"
if (state) {
#line 1557 "/home/jens/Source/shotwell/src/Photo.vala"
*state = _vala_state;
#line 12271 "Photo.c"
} else {
#line 1557 "/home/jens/Source/shotwell/src/Photo.vala"
_photo_reimport_editable_state_unref0 (_vala_state);
#line 12275 "Photo.c"
}
#line 1557 "/home/jens/Source/shotwell/src/Photo.vala"
return result;
#line 12279 "Photo.c"
}
#line 1559 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp7_ = backing;
#line 1559 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp8_ = detected;
#line 1559 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp9_ = _tmp8_->metadata;
#line 1559 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp10_ = photo_reimport_editable_state_impl_new (_tmp7_, _tmp9_);
#line 1559 "/home/jens/Source/shotwell/src/Photo.vala"
_photo_reimport_editable_state_unref0 (_vala_state);
#line 1559 "/home/jens/Source/shotwell/src/Photo.vala"
_vala_state = G_TYPE_CHECK_INSTANCE_CAST (_tmp10_, PHOTO_TYPE_REIMPORT_EDITABLE_STATE, PhotoReimportEditableState);
#line 1561 "/home/jens/Source/shotwell/src/Photo.vala"
result = TRUE;
#line 1561 "/home/jens/Source/shotwell/src/Photo.vala"
_backing_photo_row_unref0 (backing);
#line 1561 "/home/jens/Source/shotwell/src/Photo.vala"
_detected_photo_information_unref0 (detected);
#line 1561 "/home/jens/Source/shotwell/src/Photo.vala"
_g_object_unref0 (file);
#line 1561 "/home/jens/Source/shotwell/src/Photo.vala"
if (state) {
#line 1561 "/home/jens/Source/shotwell/src/Photo.vala"
*state = _vala_state;
#line 12305 "Photo.c"
} else {
#line 1561 "/home/jens/Source/shotwell/src/Photo.vala"
_photo_reimport_editable_state_unref0 (_vala_state);
#line 12309 "Photo.c"
}
#line 1561 "/home/jens/Source/shotwell/src/Photo.vala"
return result;
#line 12313 "Photo.c"
}
static gpointer _photo_reimport_editable_state_ref0 (gpointer self) {
#line 1570 "/home/jens/Source/shotwell/src/Photo.vala"
return self ? photo_reimport_editable_state_ref (self) : NULL;
#line 12320 "Photo.c"
}
void photo_finish_reimport_editable (Photo* self, PhotoReimportEditableState* state, GError** error) {
BackingPhotoID editable_id = {0};
BackingPhotoID _tmp0_ = {0};
gboolean _tmp1_ = FALSE;
PhotoReimportEditableStateImpl* reimport_state = NULL;
PhotoReimportEditableState* _tmp2_ = NULL;
PhotoReimportEditableStateImpl* _tmp3_ = NULL;
PhotoReimportEditableStateImpl* _tmp4_ = NULL;
gboolean _tmp5_ = FALSE;
PhotoReimportEditableStateImpl* _tmp21_ = NULL;
PhotoMetadata* _tmp22_ = NULL;
gchar* list = NULL;
gchar* _tmp36_ = NULL;
PhotoReimportEditableStateImpl* _tmp37_ = NULL;
gboolean _tmp38_ = FALSE;
const gchar* _tmp41_ = NULL;
Alteration* _tmp42_ = NULL;
Alteration* _tmp43_ = NULL;
PhotoReimportEditableStateImpl* _tmp44_ = NULL;
PhotoMetadata* _tmp45_ = NULL;
gboolean _tmp46_ = FALSE;
gboolean _tmp49_ = FALSE;
GError * _inner_error_ = NULL;
#line 1565 "/home/jens/Source/shotwell/src/Photo.vala"
g_return_if_fail (IS_PHOTO (self));
#line 1565 "/home/jens/Source/shotwell/src/Photo.vala"
g_return_if_fail (PHOTO_IS_REIMPORT_EDITABLE_STATE (state));
#line 1566 "/home/jens/Source/shotwell/src/Photo.vala"
photo_get_editable_id (self, &_tmp0_);
#line 1566 "/home/jens/Source/shotwell/src/Photo.vala"
editable_id = _tmp0_;
#line 1567 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp1_ = backing_photo_id_is_invalid (&editable_id);
#line 1567 "/home/jens/Source/shotwell/src/Photo.vala"
if (_tmp1_) {
#line 1568 "/home/jens/Source/shotwell/src/Photo.vala"
return;
#line 12361 "Photo.c"
}
#line 1570 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp2_ = state;
#line 1570 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp3_ = _photo_reimport_editable_state_ref0 (G_TYPE_CHECK_INSTANCE_CAST (_tmp2_, PHOTO_TYPE_REIMPORT_EDITABLE_STATE_IMPL, PhotoReimportEditableStateImpl));
#line 1570 "/home/jens/Source/shotwell/src/Photo.vala"
reimport_state = _tmp3_;
#line 1572 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp4_ = reimport_state;
#line 1572 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp5_ = _tmp4_->metadata_only;
#line 1572 "/home/jens/Source/shotwell/src/Photo.vala"
if (!_tmp5_) {
#line 12375 "Photo.c"
BackingPhotoTable* _tmp6_ = NULL;
BackingPhotoTable* _tmp7_ = NULL;
PhotoReimportEditableStateImpl* _tmp8_ = NULL;
BackingPhotoRow* _tmp9_ = NULL;
#line 1573 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp6_ = backing_photo_table_get_instance ();
#line 1573 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp7_ = _tmp6_;
#line 1573 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp8_ = reimport_state;
#line 1573 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp9_ = _tmp8_->backing_state;
#line 1573 "/home/jens/Source/shotwell/src/Photo.vala"
backing_photo_table_update (_tmp7_, _tmp9_, &_inner_error_);
#line 1573 "/home/jens/Source/shotwell/src/Photo.vala"
_database_table_unref0 (_tmp7_);
#line 1573 "/home/jens/Source/shotwell/src/Photo.vala"
if (G_UNLIKELY (_inner_error_ != NULL)) {
#line 1573 "/home/jens/Source/shotwell/src/Photo.vala"
if (_inner_error_->domain == DATABASE_ERROR) {
#line 1573 "/home/jens/Source/shotwell/src/Photo.vala"
g_propagate_error (error, _inner_error_);
#line 1573 "/home/jens/Source/shotwell/src/Photo.vala"
_photo_reimport_editable_state_unref0 (reimport_state);
#line 1573 "/home/jens/Source/shotwell/src/Photo.vala"
return;
#line 12402 "Photo.c"
} else {
#line 1573 "/home/jens/Source/shotwell/src/Photo.vala"
_photo_reimport_editable_state_unref0 (reimport_state);
#line 1573 "/home/jens/Source/shotwell/src/Photo.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 1573 "/home/jens/Source/shotwell/src/Photo.vala"
g_clear_error (&_inner_error_);
#line 1573 "/home/jens/Source/shotwell/src/Photo.vala"
return;
#line 12412 "Photo.c"
}
}
{
PhotoRow* _tmp10_ = NULL;
#line 1575 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp10_ = self->row;
#line 1575 "/home/jens/Source/shotwell/src/Photo.vala"
g_rec_mutex_lock (&self->priv->__lock_row);
#line 12421 "Photo.c"
{
PhotoReimportEditableStateImpl* _tmp11_ = NULL;
BackingPhotoRow* _tmp12_ = NULL;
BackingPhotoRow* _tmp13_ = NULL;
PhotoReimportEditableStateImpl* _tmp14_ = NULL;
BackingPhotoRow* _tmp15_ = NULL;
Orientation _tmp16_ = 0;
#line 1576 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp11_ = reimport_state;
#line 1576 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp12_ = _tmp11_->backing_state;
#line 1576 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp13_ = _backing_photo_row_ref0 (_tmp12_);
#line 1576 "/home/jens/Source/shotwell/src/Photo.vala"
_backing_photo_row_unref0 (self->priv->editable);
#line 1576 "/home/jens/Source/shotwell/src/Photo.vala"
self->priv->editable = _tmp13_;
#line 1577 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp14_ = reimport_state;
#line 1577 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp15_ = _tmp14_->backing_state;
#line 1577 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp16_ = _tmp15_->original_orientation;
#line 1577 "/home/jens/Source/shotwell/src/Photo.vala"
photo_set_orientation (self, _tmp16_);
#line 1578 "/home/jens/Source/shotwell/src/Photo.vala"
photo_internal_remove_all_transformations (self, FALSE);
#line 12449 "Photo.c"
}
__finally306:
{
PhotoRow* _tmp17_ = NULL;
#line 1575 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp17_ = self->row;
#line 1575 "/home/jens/Source/shotwell/src/Photo.vala"
g_rec_mutex_unlock (&self->priv->__lock_row);
#line 12458 "Photo.c"
}
#line 1575 "/home/jens/Source/shotwell/src/Photo.vala"
if (G_UNLIKELY (_inner_error_ != NULL)) {
#line 1575 "/home/jens/Source/shotwell/src/Photo.vala"
if (_inner_error_->domain == DATABASE_ERROR) {
#line 1575 "/home/jens/Source/shotwell/src/Photo.vala"
g_propagate_error (error, _inner_error_);
#line 1575 "/home/jens/Source/shotwell/src/Photo.vala"
_photo_reimport_editable_state_unref0 (reimport_state);
#line 1575 "/home/jens/Source/shotwell/src/Photo.vala"
return;
#line 12470 "Photo.c"
} else {
#line 1575 "/home/jens/Source/shotwell/src/Photo.vala"
_photo_reimport_editable_state_unref0 (reimport_state);
#line 1575 "/home/jens/Source/shotwell/src/Photo.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 1575 "/home/jens/Source/shotwell/src/Photo.vala"
g_clear_error (&_inner_error_);
#line 1575 "/home/jens/Source/shotwell/src/Photo.vala"
return;
#line 12480 "Photo.c"
}
}
}
} else {
PhotoReimportEditableStateImpl* _tmp18_ = NULL;
BackingPhotoRow* _tmp19_ = NULL;
Orientation _tmp20_ = 0;
#line 1581 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp18_ = reimport_state;
#line 1581 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp19_ = _tmp18_->backing_state;
#line 1581 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp20_ = _tmp19_->original_orientation;
#line 1581 "/home/jens/Source/shotwell/src/Photo.vala"
photo_set_orientation (self, _tmp20_);
#line 12496 "Photo.c"
}
#line 1584 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp21_ = reimport_state;
#line 1584 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp22_ = _tmp21_->metadata;
#line 1584 "/home/jens/Source/shotwell/src/Photo.vala"
if (_tmp22_ != NULL) {
#line 12504 "Photo.c"
PhotoReimportEditableStateImpl* _tmp23_ = NULL;
PhotoMetadata* _tmp24_ = NULL;
gchar* _tmp25_ = NULL;
gchar* _tmp26_ = NULL;
PhotoReimportEditableStateImpl* _tmp27_ = NULL;
PhotoMetadata* _tmp28_ = NULL;
gchar* _tmp29_ = NULL;
gchar* _tmp30_ = NULL;
PhotoReimportEditableStateImpl* _tmp31_ = NULL;
PhotoMetadata* _tmp32_ = NULL;
Rating _tmp33_ = 0;
PhotoReimportEditableStateImpl* _tmp34_ = NULL;
PhotoMetadata* _tmp35_ = NULL;
#line 1585 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp23_ = reimport_state;
#line 1585 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp24_ = _tmp23_->metadata;
#line 1585 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp25_ = media_metadata_get_title (G_TYPE_CHECK_INSTANCE_CAST (_tmp24_, TYPE_MEDIA_METADATA, MediaMetadata));
#line 1585 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp26_ = _tmp25_;
#line 1585 "/home/jens/Source/shotwell/src/Photo.vala"
media_source_set_title (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_MEDIA_SOURCE, MediaSource), _tmp26_);
#line 1585 "/home/jens/Source/shotwell/src/Photo.vala"
_g_free0 (_tmp26_);
#line 1586 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp27_ = reimport_state;
#line 1586 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp28_ = _tmp27_->metadata;
#line 1586 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp29_ = media_metadata_get_comment (G_TYPE_CHECK_INSTANCE_CAST (_tmp28_, TYPE_MEDIA_METADATA, MediaMetadata));
#line 1586 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp30_ = _tmp29_;
#line 1586 "/home/jens/Source/shotwell/src/Photo.vala"
media_source_set_comment (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_MEDIA_SOURCE, MediaSource), _tmp30_);
#line 1586 "/home/jens/Source/shotwell/src/Photo.vala"
_g_free0 (_tmp30_);
#line 1587 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp31_ = reimport_state;
#line 1587 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp32_ = _tmp31_->metadata;
#line 1587 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp33_ = photo_metadata_get_rating (_tmp32_);
#line 1587 "/home/jens/Source/shotwell/src/Photo.vala"
media_source_set_rating (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_MEDIA_SOURCE, MediaSource), _tmp33_);
#line 1588 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp34_ = reimport_state;
#line 1588 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp35_ = _tmp34_->metadata;
#line 1588 "/home/jens/Source/shotwell/src/Photo.vala"
photo_apply_user_metadata_for_reimport (self, _tmp35_);
#line 12556 "Photo.c"
}
#line 1591 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp36_ = g_strdup ("metadata:name,image:orientation,metadata:rating,metadata:exposure-time");
#line 1591 "/home/jens/Source/shotwell/src/Photo.vala"
list = _tmp36_;
#line 1592 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp37_ = reimport_state;
#line 1592 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp38_ = _tmp37_->metadata_only;
#line 1592 "/home/jens/Source/shotwell/src/Photo.vala"
if (!_tmp38_) {
#line 12568 "Photo.c"
const gchar* _tmp39_ = NULL;
gchar* _tmp40_ = NULL;
#line 1593 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp39_ = list;
#line 1593 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp40_ = g_strconcat (_tmp39_, "image:editable,image:baseline", NULL);
#line 1593 "/home/jens/Source/shotwell/src/Photo.vala"
_g_free0 (list);
#line 1593 "/home/jens/Source/shotwell/src/Photo.vala"
list = _tmp40_;
#line 12579 "Photo.c"
}
#line 1595 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp41_ = list;
#line 1595 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp42_ = alteration_new_from_list (_tmp41_);
#line 1595 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp43_ = _tmp42_;
#line 1595 "/home/jens/Source/shotwell/src/Photo.vala"
data_object_notify_altered (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_DATA_OBJECT, DataObject), _tmp43_);
#line 1595 "/home/jens/Source/shotwell/src/Photo.vala"
_alteration_unref0 (_tmp43_);
#line 1597 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp44_ = reimport_state;
#line 1597 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp45_ = _tmp44_->metadata;
#line 1597 "/home/jens/Source/shotwell/src/Photo.vala"
photo_notify_editable_reimported (self, _tmp45_);
#line 1599 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp46_ = photo_is_editable_baseline (self);
#line 1599 "/home/jens/Source/shotwell/src/Photo.vala"
if (_tmp46_) {
#line 12601 "Photo.c"
PhotoReimportEditableStateImpl* _tmp47_ = NULL;
PhotoMetadata* _tmp48_ = NULL;
#line 1600 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp47_ = reimport_state;
#line 1600 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp48_ = _tmp47_->metadata;
#line 1600 "/home/jens/Source/shotwell/src/Photo.vala"
photo_notify_baseline_reimported (self, _tmp48_);
#line 12610 "Photo.c"
}
#line 1602 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp49_ = photo_is_editable_source (self);
#line 1602 "/home/jens/Source/shotwell/src/Photo.vala"
if (_tmp49_) {
#line 12616 "Photo.c"
PhotoReimportEditableStateImpl* _tmp50_ = NULL;
PhotoMetadata* _tmp51_ = NULL;
#line 1603 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp50_ = reimport_state;
#line 1603 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp51_ = _tmp50_->metadata;
#line 1603 "/home/jens/Source/shotwell/src/Photo.vala"
photo_notify_source_reimported (self, _tmp51_);
#line 12625 "Photo.c"
}
#line 1565 "/home/jens/Source/shotwell/src/Photo.vala"
_g_free0 (list);
#line 1565 "/home/jens/Source/shotwell/src/Photo.vala"
_photo_reimport_editable_state_unref0 (reimport_state);
#line 12631 "Photo.c"
}
static gpointer _photo_reimport_raw_development_state_ref0 (gpointer self) {
#line 1625 "/home/jens/Source/shotwell/src/Photo.vala"
return self ? photo_reimport_raw_development_state_ref (self) : NULL;
#line 12638 "Photo.c"
}
gboolean photo_prepare_for_reimport_raw_development (Photo* self, PhotoReimportRawDevelopmentState** state, GError** error) {
PhotoReimportRawDevelopmentState* _vala_state = NULL;
gboolean result = FALSE;
GeeCollection* files = NULL;
GeeCollection* _tmp0_ = NULL;
GeeCollection* _tmp1_ = NULL;
PhotoReimportRawDevelopmentStateImpl* reimport_state = NULL;
PhotoReimportRawDevelopmentStateImpl* _tmp2_ = NULL;
PhotoReimportRawDevelopmentStateImpl* _tmp18_ = NULL;
PhotoReimportRawDevelopmentState* _tmp19_ = NULL;
PhotoReimportRawDevelopmentStateImpl* _tmp20_ = NULL;
gint _tmp21_ = 0;
GError * _inner_error_ = NULL;
#line 1607 "/home/jens/Source/shotwell/src/Photo.vala"
g_return_val_if_fail (IS_PHOTO (self), FALSE);
#line 1608 "/home/jens/Source/shotwell/src/Photo.vala"
_photo_reimport_raw_development_state_unref0 (_vala_state);
#line 1608 "/home/jens/Source/shotwell/src/Photo.vala"
_vala_state = NULL;
#line 1610 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp0_ = photo_get_raw_developer_files (self);
#line 1610 "/home/jens/Source/shotwell/src/Photo.vala"
files = _tmp0_;
#line 1611 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp1_ = files;
#line 1611 "/home/jens/Source/shotwell/src/Photo.vala"
if (_tmp1_ == NULL) {
#line 1612 "/home/jens/Source/shotwell/src/Photo.vala"
result = FALSE;
#line 1612 "/home/jens/Source/shotwell/src/Photo.vala"
_g_object_unref0 (files);
#line 1612 "/home/jens/Source/shotwell/src/Photo.vala"
if (state) {
#line 1612 "/home/jens/Source/shotwell/src/Photo.vala"
*state = _vala_state;
#line 12677 "Photo.c"
} else {
#line 1612 "/home/jens/Source/shotwell/src/Photo.vala"
_photo_reimport_raw_development_state_unref0 (_vala_state);
#line 12681 "Photo.c"
}
#line 1612 "/home/jens/Source/shotwell/src/Photo.vala"
return result;
#line 12685 "Photo.c"
}
#line 1614 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp2_ = photo_reimport_raw_development_state_impl_new ();
#line 1614 "/home/jens/Source/shotwell/src/Photo.vala"
reimport_state = _tmp2_;
#line 12691 "Photo.c"
{
GeeIterator* _file_it = NULL;
GeeCollection* _tmp3_ = NULL;
GeeIterator* _tmp4_ = NULL;
#line 1616 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp3_ = files;
#line 1616 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp4_ = gee_iterable_iterator (G_TYPE_CHECK_INSTANCE_CAST (_tmp3_, GEE_TYPE_ITERABLE, GeeIterable));
#line 1616 "/home/jens/Source/shotwell/src/Photo.vala"
_file_it = _tmp4_;
#line 1616 "/home/jens/Source/shotwell/src/Photo.vala"
while (TRUE) {
#line 12704 "Photo.c"
GeeIterator* _tmp5_ = NULL;
gboolean _tmp6_ = FALSE;
GFile* file = NULL;
GeeIterator* _tmp7_ = NULL;
gpointer _tmp8_ = NULL;
DetectedPhotoInformation* detected = NULL;
BackingPhotoRow* backing = NULL;
gboolean _tmp9_ = FALSE;
GFile* _tmp10_ = NULL;
BackingPhotoRow* _tmp11_ = NULL;
DetectedPhotoInformation* _tmp12_ = NULL;
gboolean _tmp13_ = FALSE;
PhotoReimportRawDevelopmentStateImpl* _tmp14_ = NULL;
BackingPhotoRow* _tmp15_ = NULL;
DetectedPhotoInformation* _tmp16_ = NULL;
PhotoMetadata* _tmp17_ = NULL;
#line 1616 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp5_ = _file_it;
#line 1616 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp6_ = gee_iterator_next (_tmp5_);
#line 1616 "/home/jens/Source/shotwell/src/Photo.vala"
if (!_tmp6_) {
#line 1616 "/home/jens/Source/shotwell/src/Photo.vala"
break;
#line 12729 "Photo.c"
}
#line 1616 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp7_ = _file_it;
#line 1616 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp8_ = gee_iterator_get (_tmp7_);
#line 1616 "/home/jens/Source/shotwell/src/Photo.vala"
file = (GFile*) _tmp8_;
#line 1619 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp10_ = file;
#line 1619 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp13_ = photo_verify_file_for_reimport (self, _tmp10_, &_tmp11_, &_tmp12_, &_inner_error_);
#line 1619 "/home/jens/Source/shotwell/src/Photo.vala"
_backing_photo_row_unref0 (backing);
#line 1619 "/home/jens/Source/shotwell/src/Photo.vala"
backing = _tmp11_;
#line 1619 "/home/jens/Source/shotwell/src/Photo.vala"
_detected_photo_information_unref0 (detected);
#line 1619 "/home/jens/Source/shotwell/src/Photo.vala"
detected = _tmp12_;
#line 1619 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp9_ = _tmp13_;
#line 1619 "/home/jens/Source/shotwell/src/Photo.vala"
if (G_UNLIKELY (_inner_error_ != NULL)) {
#line 1619 "/home/jens/Source/shotwell/src/Photo.vala"
g_propagate_error (error, _inner_error_);
#line 1619 "/home/jens/Source/shotwell/src/Photo.vala"
_backing_photo_row_unref0 (backing);
#line 1619 "/home/jens/Source/shotwell/src/Photo.vala"
_detected_photo_information_unref0 (detected);
#line 1619 "/home/jens/Source/shotwell/src/Photo.vala"
_g_object_unref0 (file);
#line 1619 "/home/jens/Source/shotwell/src/Photo.vala"
_g_object_unref0 (_file_it);
#line 1619 "/home/jens/Source/shotwell/src/Photo.vala"
_photo_reimport_raw_development_state_unref0 (reimport_state);
#line 1619 "/home/jens/Source/shotwell/src/Photo.vala"
_g_object_unref0 (files);
#line 1619 "/home/jens/Source/shotwell/src/Photo.vala"
return FALSE;
#line 12769 "Photo.c"
}
#line 1619 "/home/jens/Source/shotwell/src/Photo.vala"
if (!_tmp9_) {
#line 1620 "/home/jens/Source/shotwell/src/Photo.vala"
_backing_photo_row_unref0 (backing);
#line 1620 "/home/jens/Source/shotwell/src/Photo.vala"
_detected_photo_information_unref0 (detected);
#line 1620 "/home/jens/Source/shotwell/src/Photo.vala"
_g_object_unref0 (file);
#line 1620 "/home/jens/Source/shotwell/src/Photo.vala"
continue;
#line 12781 "Photo.c"
}
#line 1622 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp14_ = reimport_state;
#line 1622 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp15_ = backing;
#line 1622 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp16_ = detected;
#line 1622 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp17_ = _tmp16_->metadata;
#line 1622 "/home/jens/Source/shotwell/src/Photo.vala"
photo_reimport_raw_development_state_impl_add (_tmp14_, _tmp15_, _tmp17_);
#line 1616 "/home/jens/Source/shotwell/src/Photo.vala"
_backing_photo_row_unref0 (backing);
#line 1616 "/home/jens/Source/shotwell/src/Photo.vala"
_detected_photo_information_unref0 (detected);
#line 1616 "/home/jens/Source/shotwell/src/Photo.vala"
_g_object_unref0 (file);
#line 12799 "Photo.c"
}
#line 1616 "/home/jens/Source/shotwell/src/Photo.vala"
_g_object_unref0 (_file_it);
#line 12803 "Photo.c"
}
#line 1625 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp18_ = reimport_state;
#line 1625 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp19_ = _photo_reimport_raw_development_state_ref0 (G_TYPE_CHECK_INSTANCE_CAST (_tmp18_, PHOTO_TYPE_REIMPORT_RAW_DEVELOPMENT_STATE, PhotoReimportRawDevelopmentState));
#line 1625 "/home/jens/Source/shotwell/src/Photo.vala"
_photo_reimport_raw_development_state_unref0 (_vala_state);
#line 1625 "/home/jens/Source/shotwell/src/Photo.vala"
_vala_state = _tmp19_;
#line 1626 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp20_ = reimport_state;
#line 1626 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp21_ = photo_reimport_raw_development_state_impl_get_size (_tmp20_);
#line 1626 "/home/jens/Source/shotwell/src/Photo.vala"
result = _tmp21_ > 0;
#line 1626 "/home/jens/Source/shotwell/src/Photo.vala"
_photo_reimport_raw_development_state_unref0 (reimport_state);
#line 1626 "/home/jens/Source/shotwell/src/Photo.vala"
_g_object_unref0 (files);
#line 1626 "/home/jens/Source/shotwell/src/Photo.vala"
if (state) {
#line 1626 "/home/jens/Source/shotwell/src/Photo.vala"
*state = _vala_state;
#line 12827 "Photo.c"
} else {
#line 1626 "/home/jens/Source/shotwell/src/Photo.vala"
_photo_reimport_raw_development_state_unref0 (_vala_state);
#line 12831 "Photo.c"
}
#line 1626 "/home/jens/Source/shotwell/src/Photo.vala"
return result;
#line 12835 "Photo.c"
}
void photo_finish_reimport_raw_development (Photo* self, PhotoReimportRawDevelopmentState* state, GError** error) {
PhotoFileFormat _tmp0_ = 0;
PhotoReimportRawDevelopmentStateImpl* reimport_state = NULL;
PhotoReimportRawDevelopmentState* _tmp1_ = NULL;
PhotoReimportRawDevelopmentStateImpl* _tmp2_ = NULL;
gchar* list = NULL;
gchar* _tmp32_ = NULL;
PhotoReimportRawDevelopmentStateImpl* _tmp33_ = NULL;
gboolean _tmp34_ = FALSE;
const gchar* _tmp37_ = NULL;
Alteration* _tmp38_ = NULL;
Alteration* _tmp39_ = NULL;
GError * _inner_error_ = NULL;
#line 1630 "/home/jens/Source/shotwell/src/Photo.vala"
g_return_if_fail (IS_PHOTO (self));
#line 1630 "/home/jens/Source/shotwell/src/Photo.vala"
g_return_if_fail (PHOTO_IS_REIMPORT_RAW_DEVELOPMENT_STATE (state));
#line 1631 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp0_ = photo_get_master_file_format (self);
#line 1631 "/home/jens/Source/shotwell/src/Photo.vala"
if (_tmp0_ != PHOTO_FILE_FORMAT_RAW) {
#line 1632 "/home/jens/Source/shotwell/src/Photo.vala"
return;
#line 12862 "Photo.c"
}
#line 1634 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp1_ = state;
#line 1634 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp2_ = _photo_reimport_raw_development_state_ref0 (G_TYPE_CHECK_INSTANCE_CAST (_tmp1_, PHOTO_TYPE_REIMPORT_RAW_DEVELOPMENT_STATE_IMPL, PhotoReimportRawDevelopmentStateImpl));
#line 1634 "/home/jens/Source/shotwell/src/Photo.vala"
reimport_state = _tmp2_;
#line 12870 "Photo.c"
{
GeeIterator* _dev_it = NULL;
PhotoReimportRawDevelopmentStateImpl* _tmp3_ = NULL;
GeeCollection* _tmp4_ = NULL;
GeeIterator* _tmp5_ = NULL;
#line 1636 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp3_ = reimport_state;
#line 1636 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp4_ = _tmp3_->list;
#line 1636 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp5_ = gee_iterable_iterator (G_TYPE_CHECK_INSTANCE_CAST (_tmp4_, GEE_TYPE_ITERABLE, GeeIterable));
#line 1636 "/home/jens/Source/shotwell/src/Photo.vala"
_dev_it = _tmp5_;
#line 1636 "/home/jens/Source/shotwell/src/Photo.vala"
while (TRUE) {
#line 12886 "Photo.c"
GeeIterator* _tmp6_ = NULL;
gboolean _tmp7_ = FALSE;
PhotoReimportRawDevelopmentStateImplDevToReimport* dev = NULL;
GeeIterator* _tmp8_ = NULL;
gpointer _tmp9_ = NULL;
PhotoReimportRawDevelopmentStateImpl* _tmp10_ = NULL;
gboolean _tmp11_ = FALSE;
#line 1636 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp6_ = _dev_it;
#line 1636 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp7_ = gee_iterator_next (_tmp6_);
#line 1636 "/home/jens/Source/shotwell/src/Photo.vala"
if (!_tmp7_) {
#line 1636 "/home/jens/Source/shotwell/src/Photo.vala"
break;
#line 12902 "Photo.c"
}
#line 1636 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp8_ = _dev_it;
#line 1636 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp9_ = gee_iterator_get (_tmp8_);
#line 1636 "/home/jens/Source/shotwell/src/Photo.vala"
dev = (PhotoReimportRawDevelopmentStateImplDevToReimport*) _tmp9_;
#line 1637 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp10_ = reimport_state;
#line 1637 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp11_ = _tmp10_->metadata_only;
#line 1637 "/home/jens/Source/shotwell/src/Photo.vala"
if (!_tmp11_) {
#line 12916 "Photo.c"
BackingPhotoTable* _tmp12_ = NULL;
BackingPhotoTable* _tmp13_ = NULL;
PhotoReimportRawDevelopmentStateImplDevToReimport* _tmp14_ = NULL;
BackingPhotoRow* _tmp15_ = NULL;
#line 1638 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp12_ = backing_photo_table_get_instance ();
#line 1638 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp13_ = _tmp12_;
#line 1638 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp14_ = dev;
#line 1638 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp15_ = _tmp14_->backing;
#line 1638 "/home/jens/Source/shotwell/src/Photo.vala"
backing_photo_table_update (_tmp13_, _tmp15_, &_inner_error_);
#line 1638 "/home/jens/Source/shotwell/src/Photo.vala"
_database_table_unref0 (_tmp13_);
#line 1638 "/home/jens/Source/shotwell/src/Photo.vala"
if (G_UNLIKELY (_inner_error_ != NULL)) {
#line 1638 "/home/jens/Source/shotwell/src/Photo.vala"
if (_inner_error_->domain == DATABASE_ERROR) {
#line 1638 "/home/jens/Source/shotwell/src/Photo.vala"
g_propagate_error (error, _inner_error_);
#line 1638 "/home/jens/Source/shotwell/src/Photo.vala"
_photo_reimport_raw_development_state_impl_dev_to_reimport_unref0 (dev);
#line 1638 "/home/jens/Source/shotwell/src/Photo.vala"
_g_object_unref0 (_dev_it);
#line 1638 "/home/jens/Source/shotwell/src/Photo.vala"
_photo_reimport_raw_development_state_unref0 (reimport_state);
#line 1638 "/home/jens/Source/shotwell/src/Photo.vala"
return;
#line 12947 "Photo.c"
} else {
#line 1638 "/home/jens/Source/shotwell/src/Photo.vala"
_photo_reimport_raw_development_state_impl_dev_to_reimport_unref0 (dev);
#line 1638 "/home/jens/Source/shotwell/src/Photo.vala"
_g_object_unref0 (_dev_it);
#line 1638 "/home/jens/Source/shotwell/src/Photo.vala"
_photo_reimport_raw_development_state_unref0 (reimport_state);
#line 1638 "/home/jens/Source/shotwell/src/Photo.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 1638 "/home/jens/Source/shotwell/src/Photo.vala"
g_clear_error (&_inner_error_);
#line 1638 "/home/jens/Source/shotwell/src/Photo.vala"
return;
#line 12961 "Photo.c"
}
}
{
PhotoRow* _tmp16_ = NULL;
#line 1640 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp16_ = self->row;
#line 1640 "/home/jens/Source/shotwell/src/Photo.vala"
g_rec_mutex_lock (&self->priv->__lock_row);
#line 12970 "Photo.c"
{
gint _tmp17_ = 0;
RawDeveloper* _tmp18_ = NULL;
#line 1642 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp18_ = raw_developer_as_array (&_tmp17_);
#line 12976 "Photo.c"
{
RawDeveloper* d_collection = NULL;
gint d_collection_length1 = 0;
gint _d_collection_size_ = 0;
gint d_it = 0;
#line 1642 "/home/jens/Source/shotwell/src/Photo.vala"
d_collection = _tmp18_;
#line 1642 "/home/jens/Source/shotwell/src/Photo.vala"
d_collection_length1 = _tmp17_;
#line 1642 "/home/jens/Source/shotwell/src/Photo.vala"
for (d_it = 0; d_it < _tmp17_; d_it = d_it + 1) {
#line 12988 "Photo.c"
RawDeveloper d = 0;
#line 1642 "/home/jens/Source/shotwell/src/Photo.vala"
d = d_collection[d_it];
#line 12992 "Photo.c"
{
BackingPhotoID id = {0};
PhotoRow* _tmp19_ = NULL;
BackingPhotoID* _tmp20_ = NULL;
gint _tmp20__length1 = 0;
RawDeveloper _tmp21_ = 0;
BackingPhotoID _tmp22_ = {0};
BackingPhotoID _tmp23_ = {0};
gint64 _tmp24_ = 0LL;
#line 1643 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp19_ = self->row;
#line 1643 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp20_ = _tmp19_->development_ids;
#line 1643 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp20__length1 = _tmp19_->development_ids_length1;
#line 1643 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp21_ = d;
#line 1643 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp22_ = _tmp20_[_tmp21_];
#line 1643 "/home/jens/Source/shotwell/src/Photo.vala"
id = _tmp22_;
#line 1644 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp23_ = id;
#line 1644 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp24_ = _tmp23_.id;
#line 1644 "/home/jens/Source/shotwell/src/Photo.vala"
if (_tmp24_ != BACKING_PHOTO_ID_INVALID) {
#line 13020 "Photo.c"
BackingPhotoRow* bpr = NULL;
BackingPhotoID _tmp25_ = {0};
BackingPhotoRow* _tmp26_ = NULL;
BackingPhotoRow* _tmp27_ = NULL;
#line 1645 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp25_ = id;
#line 1645 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp26_ = photo_get_backing_row (self, &_tmp25_);
#line 1645 "/home/jens/Source/shotwell/src/Photo.vala"
bpr = _tmp26_;
#line 1646 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp27_ = bpr;
#line 1646 "/home/jens/Source/shotwell/src/Photo.vala"
if (_tmp27_ != NULL) {
#line 13035 "Photo.c"
GeeHashMap* _tmp28_ = NULL;
RawDeveloper _tmp29_ = 0;
BackingPhotoRow* _tmp30_ = NULL;
#line 1647 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp28_ = self->priv->developments;
#line 1647 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp29_ = d;
#line 1647 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp30_ = bpr;
#line 1647 "/home/jens/Source/shotwell/src/Photo.vala"
gee_abstract_map_set (G_TYPE_CHECK_INSTANCE_CAST (_tmp28_, GEE_TYPE_ABSTRACT_MAP, GeeAbstractMap), (gpointer) ((gintptr) _tmp29_), _tmp30_);
#line 13047 "Photo.c"
}
#line 1644 "/home/jens/Source/shotwell/src/Photo.vala"
_backing_photo_row_unref0 (bpr);
#line 13051 "Photo.c"
}
}
}
#line 1642 "/home/jens/Source/shotwell/src/Photo.vala"
d_collection = (g_free (d_collection), NULL);
#line 13057 "Photo.c"
}
}
__finally307:
{
PhotoRow* _tmp31_ = NULL;
#line 1640 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp31_ = self->row;
#line 1640 "/home/jens/Source/shotwell/src/Photo.vala"
g_rec_mutex_unlock (&self->priv->__lock_row);
#line 13067 "Photo.c"
}
#line 1640 "/home/jens/Source/shotwell/src/Photo.vala"
if (G_UNLIKELY (_inner_error_ != NULL)) {
#line 1640 "/home/jens/Source/shotwell/src/Photo.vala"
if (_inner_error_->domain == DATABASE_ERROR) {
#line 1640 "/home/jens/Source/shotwell/src/Photo.vala"
g_propagate_error (error, _inner_error_);
#line 1640 "/home/jens/Source/shotwell/src/Photo.vala"
_photo_reimport_raw_development_state_impl_dev_to_reimport_unref0 (dev);
#line 1640 "/home/jens/Source/shotwell/src/Photo.vala"
_g_object_unref0 (_dev_it);
#line 1640 "/home/jens/Source/shotwell/src/Photo.vala"
_photo_reimport_raw_development_state_unref0 (reimport_state);
#line 1640 "/home/jens/Source/shotwell/src/Photo.vala"
return;
#line 13083 "Photo.c"
} else {
#line 1640 "/home/jens/Source/shotwell/src/Photo.vala"
_photo_reimport_raw_development_state_impl_dev_to_reimport_unref0 (dev);
#line 1640 "/home/jens/Source/shotwell/src/Photo.vala"
_g_object_unref0 (_dev_it);
#line 1640 "/home/jens/Source/shotwell/src/Photo.vala"
_photo_reimport_raw_development_state_unref0 (reimport_state);
#line 1640 "/home/jens/Source/shotwell/src/Photo.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 1640 "/home/jens/Source/shotwell/src/Photo.vala"
g_clear_error (&_inner_error_);
#line 1640 "/home/jens/Source/shotwell/src/Photo.vala"
return;
#line 13097 "Photo.c"
}
}
}
}
#line 1636 "/home/jens/Source/shotwell/src/Photo.vala"
_photo_reimport_raw_development_state_impl_dev_to_reimport_unref0 (dev);
#line 13104 "Photo.c"
}
#line 1636 "/home/jens/Source/shotwell/src/Photo.vala"
_g_object_unref0 (_dev_it);
#line 13108 "Photo.c"
}
#line 1654 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp32_ = g_strdup ("metadata:name,image:orientation,metadata:rating,metadata:exposure-time");
#line 1654 "/home/jens/Source/shotwell/src/Photo.vala"
list = _tmp32_;
#line 1655 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp33_ = reimport_state;
#line 1655 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp34_ = _tmp33_->metadata_only;
#line 1655 "/home/jens/Source/shotwell/src/Photo.vala"
if (!_tmp34_) {
#line 13120 "Photo.c"
const gchar* _tmp35_ = NULL;
gchar* _tmp36_ = NULL;
#line 1656 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp35_ = list;
#line 1656 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp36_ = g_strconcat (_tmp35_, "image:editable,image:baseline", NULL);
#line 1656 "/home/jens/Source/shotwell/src/Photo.vala"
_g_free0 (list);
#line 1656 "/home/jens/Source/shotwell/src/Photo.vala"
list = _tmp36_;
#line 13131 "Photo.c"
}
#line 1658 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp37_ = list;
#line 1658 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp38_ = alteration_new_from_list (_tmp37_);
#line 1658 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp39_ = _tmp38_;
#line 1658 "/home/jens/Source/shotwell/src/Photo.vala"
data_object_notify_altered (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_DATA_OBJECT, DataObject), _tmp39_);
#line 1658 "/home/jens/Source/shotwell/src/Photo.vala"
_alteration_unref0 (_tmp39_);
#line 1660 "/home/jens/Source/shotwell/src/Photo.vala"
photo_notify_raw_development_modified (self);
#line 1630 "/home/jens/Source/shotwell/src/Photo.vala"
_g_free0 (list);
#line 1630 "/home/jens/Source/shotwell/src/Photo.vala"
_photo_reimport_raw_development_state_unref0 (reimport_state);
#line 13149 "Photo.c"
}
static gchar* photo_real_get_typename (DataSource* base) {
Photo * self;
gchar* result = NULL;
gchar* _tmp0_ = NULL;
#line 1663 "/home/jens/Source/shotwell/src/Photo.vala"
self = G_TYPE_CHECK_INSTANCE_CAST (base, TYPE_PHOTO, Photo);
#line 1664 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp0_ = g_strdup (PHOTO_TYPENAME);
#line 1664 "/home/jens/Source/shotwell/src/Photo.vala"
result = _tmp0_;
#line 1664 "/home/jens/Source/shotwell/src/Photo.vala"
return result;
#line 13165 "Photo.c"
}
static gint64 photo_real_get_instance_id (DataSource* base) {
Photo * self;
gint64 result = 0LL;
PhotoID _tmp0_ = {0};
gint64 _tmp1_ = 0LL;
#line 1667 "/home/jens/Source/shotwell/src/Photo.vala"
self = G_TYPE_CHECK_INSTANCE_CAST (base, TYPE_PHOTO, Photo);
#line 1668 "/home/jens/Source/shotwell/src/Photo.vala"
photo_get_photo_id (self, &_tmp0_);
#line 1668 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp1_ = _tmp0_.id;
#line 1668 "/home/jens/Source/shotwell/src/Photo.vala"
result = _tmp1_;
#line 1668 "/home/jens/Source/shotwell/src/Photo.vala"
return result;
#line 13184 "Photo.c"
}
static gchar* photo_real_get_source_id (DataSource* base) {
Photo * self;
gchar* result = NULL;
gchar* _tmp0_ = NULL;
gchar* _tmp1_ = NULL;
gint64 _tmp2_ = 0LL;
gchar* _tmp3_ = NULL;
gchar* _tmp4_ = NULL;
#line 1671 "/home/jens/Source/shotwell/src/Photo.vala"
self = G_TYPE_CHECK_INSTANCE_CAST (base, TYPE_PHOTO, Photo);
#line 1675 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp0_ = data_source_get_typename (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_DATA_SOURCE, DataSource));
#line 1675 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp1_ = _tmp0_;
#line 1675 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp2_ = data_source_get_instance_id (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_DATA_SOURCE, DataSource));
#line 1675 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp3_ = g_strdup_printf ("%s%016" G_GINT64_MODIFIER "x", _tmp1_, _tmp2_);
#line 1675 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp4_ = _tmp3_;
#line 1675 "/home/jens/Source/shotwell/src/Photo.vala"
_g_free0 (_tmp1_);
#line 1675 "/home/jens/Source/shotwell/src/Photo.vala"
result = _tmp4_;
#line 1675 "/home/jens/Source/shotwell/src/Photo.vala"
return result;
#line 13214 "Photo.c"
}
void photo_set_master_timestamp (Photo* self, GFileInfo* info) {
GTimeVal modification = {0};
GFileInfo* _tmp0_ = NULL;
GTimeVal _tmp1_ = {0};
gboolean _tmp21_ = FALSE;
GError * _inner_error_ = NULL;
#line 1679 "/home/jens/Source/shotwell/src/Photo.vala"
g_return_if_fail (IS_PHOTO (self));
#line 1679 "/home/jens/Source/shotwell/src/Photo.vala"
g_return_if_fail (G_IS_FILE_INFO (info));
#line 1680 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp0_ = info;
#line 1680 "/home/jens/Source/shotwell/src/Photo.vala"
g_file_info_get_modification_time (_tmp0_, &_tmp1_);
#line 1680 "/home/jens/Source/shotwell/src/Photo.vala"
modification = _tmp1_;
#line 13234 "Photo.c"
{
{
PhotoRow* _tmp2_ = NULL;
#line 1683 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp2_ = self->row;
#line 1683 "/home/jens/Source/shotwell/src/Photo.vala"
g_rec_mutex_lock (&self->priv->__lock_row);
#line 13242 "Photo.c"
{
PhotoRow* _tmp3_ = NULL;
BackingPhotoRow* _tmp4_ = NULL;
time_t _tmp5_ = 0;
GTimeVal _tmp6_ = {0};
glong _tmp7_ = 0L;
PhotoTable* _tmp9_ = NULL;
PhotoTable* _tmp10_ = NULL;
PhotoRow* _tmp11_ = NULL;
PhotoID _tmp12_ = {0};
GTimeVal _tmp13_ = {0};
glong _tmp14_ = 0L;
PhotoRow* _tmp15_ = NULL;
BackingPhotoRow* _tmp16_ = NULL;
GTimeVal _tmp17_ = {0};
glong _tmp18_ = 0L;
#line 1684 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp3_ = self->row;
#line 1684 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp4_ = _tmp3_->master;
#line 1684 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp5_ = _tmp4_->timestamp;
#line 1684 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp6_ = modification;
#line 1684 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp7_ = _tmp6_.tv_sec;
#line 1684 "/home/jens/Source/shotwell/src/Photo.vala"
if (_tmp5_ == ((time_t) _tmp7_)) {
#line 13271 "Photo.c"
{
PhotoRow* _tmp8_ = NULL;
#line 1683 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp8_ = self->row;
#line 1683 "/home/jens/Source/shotwell/src/Photo.vala"
g_rec_mutex_unlock (&self->priv->__lock_row);
#line 13278 "Photo.c"
}
#line 1685 "/home/jens/Source/shotwell/src/Photo.vala"
return;
#line 13282 "Photo.c"
}
#line 1687 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp9_ = photo_table_get_instance ();
#line 1687 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp10_ = _tmp9_;
#line 1687 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp11_ = self->row;
#line 1687 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp12_ = _tmp11_->photo_id;
#line 1687 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp13_ = modification;
#line 1687 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp14_ = _tmp13_.tv_sec;
#line 1687 "/home/jens/Source/shotwell/src/Photo.vala"
photo_table_update_timestamp (_tmp10_, &_tmp12_, (time_t) _tmp14_, &_inner_error_);
#line 1687 "/home/jens/Source/shotwell/src/Photo.vala"
_database_table_unref0 (_tmp10_);
#line 1687 "/home/jens/Source/shotwell/src/Photo.vala"
if (G_UNLIKELY (_inner_error_ != NULL)) {
#line 13302 "Photo.c"
goto __finally309;
}
#line 1688 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp15_ = self->row;
#line 1688 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp16_ = _tmp15_->master;
#line 1688 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp17_ = modification;
#line 1688 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp18_ = _tmp17_.tv_sec;
#line 1688 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp16_->timestamp = (time_t) _tmp18_;
#line 13315 "Photo.c"
}
__finally309:
{
PhotoRow* _tmp19_ = NULL;
#line 1683 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp19_ = self->row;
#line 1683 "/home/jens/Source/shotwell/src/Photo.vala"
g_rec_mutex_unlock (&self->priv->__lock_row);
#line 13324 "Photo.c"
}
#line 1683 "/home/jens/Source/shotwell/src/Photo.vala"
if (G_UNLIKELY (_inner_error_ != NULL)) {
#line 1683 "/home/jens/Source/shotwell/src/Photo.vala"
if (_inner_error_->domain == DATABASE_ERROR) {
#line 13330 "Photo.c"
goto __catch308_database_error;
}
#line 1683 "/home/jens/Source/shotwell/src/Photo.vala"
g_critical ("file %s: line %d: unexpected error: %s (%s, %d)", __FILE__, __LINE__, _inner_error_->message, g_quark_to_string (_inner_error_->domain), _inner_error_->code);
#line 1683 "/home/jens/Source/shotwell/src/Photo.vala"
g_clear_error (&_inner_error_);
#line 1683 "/home/jens/Source/shotwell/src/Photo.vala"
return;
#line 13339 "Photo.c"
}
}
}
goto __finally308;
__catch308_database_error:
{
GError* err = NULL;
GError* _tmp20_ = NULL;
#line 1682 "/home/jens/Source/shotwell/src/Photo.vala"
err = _inner_error_;
#line 1682 "/home/jens/Source/shotwell/src/Photo.vala"
_inner_error_ = NULL;
#line 1691 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp20_ = err;
#line 1691 "/home/jens/Source/shotwell/src/Photo.vala"
app_window_database_error (_tmp20_);
#line 1693 "/home/jens/Source/shotwell/src/Photo.vala"
_g_error_free0 (err);
#line 1693 "/home/jens/Source/shotwell/src/Photo.vala"
return;
#line 13360 "Photo.c"
}
__finally308:
#line 1682 "/home/jens/Source/shotwell/src/Photo.vala"
if (G_UNLIKELY (_inner_error_ != NULL)) {
#line 1682 "/home/jens/Source/shotwell/src/Photo.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 1682 "/home/jens/Source/shotwell/src/Photo.vala"
g_clear_error (&_inner_error_);
#line 1682 "/home/jens/Source/shotwell/src/Photo.vala"
return;
#line 13371 "Photo.c"
}
#line 1696 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp21_ = photo_is_master_baseline (self);
#line 1696 "/home/jens/Source/shotwell/src/Photo.vala"
if (_tmp21_) {
#line 13377 "Photo.c"
Alteration* _tmp22_ = NULL;
Alteration* _tmp23_ = NULL;
#line 1697 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp22_ = alteration_new_from_list ("metadata:master-timestamp,metadata:baseline-timestamp");
#line 1697 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp23_ = _tmp22_;
#line 1697 "/home/jens/Source/shotwell/src/Photo.vala"
data_object_notify_altered (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_DATA_OBJECT, DataObject), _tmp23_);
#line 1697 "/home/jens/Source/shotwell/src/Photo.vala"
_alteration_unref0 (_tmp23_);
#line 13388 "Photo.c"
} else {
Alteration* _tmp24_ = NULL;
Alteration* _tmp25_ = NULL;
#line 1699 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp24_ = alteration_new ("metadata", "master-timestamp");
#line 1699 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp25_ = _tmp24_;
#line 1699 "/home/jens/Source/shotwell/src/Photo.vala"
data_object_notify_altered (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_DATA_OBJECT, DataObject), _tmp25_);
#line 1699 "/home/jens/Source/shotwell/src/Photo.vala"
_alteration_unref0 (_tmp25_);
#line 13400 "Photo.c"
}
}
void photo_update_editable_modification_time (Photo* self, GFileInfo* info, GError** error) {
GTimeVal modification = {0};
GFileInfo* _tmp0_ = NULL;
GTimeVal _tmp1_ = {0};
gboolean altered = FALSE;
gboolean _tmp20_ = FALSE;
GError * _inner_error_ = NULL;
#line 1703 "/home/jens/Source/shotwell/src/Photo.vala"
g_return_if_fail (IS_PHOTO (self));
#line 1703 "/home/jens/Source/shotwell/src/Photo.vala"
g_return_if_fail (G_IS_FILE_INFO (info));
#line 1704 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp0_ = info;
#line 1704 "/home/jens/Source/shotwell/src/Photo.vala"
g_file_info_get_modification_time (_tmp0_, &_tmp1_);
#line 1704 "/home/jens/Source/shotwell/src/Photo.vala"
modification = _tmp1_;
#line 1706 "/home/jens/Source/shotwell/src/Photo.vala"
altered = FALSE;
#line 13424 "Photo.c"
{
PhotoRow* _tmp2_ = NULL;
#line 1707 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp2_ = self->row;
#line 1707 "/home/jens/Source/shotwell/src/Photo.vala"
g_rec_mutex_lock (&self->priv->__lock_row);
#line 13431 "Photo.c"
{
gboolean _tmp3_ = FALSE;
PhotoRow* _tmp4_ = NULL;
gboolean _tmp5_ = FALSE;
#line 1708 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp4_ = self->row;
#line 1708 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp5_ = backing_photo_id_is_valid (&_tmp4_->editable_id);
#line 1708 "/home/jens/Source/shotwell/src/Photo.vala"
if (_tmp5_) {
#line 13442 "Photo.c"
BackingPhotoRow* _tmp6_ = NULL;
time_t _tmp7_ = 0;
GTimeVal _tmp8_ = {0};
glong _tmp9_ = 0L;
#line 1708 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp6_ = self->priv->editable;
#line 1708 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp7_ = _tmp6_->timestamp;
#line 1708 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp8_ = modification;
#line 1708 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp9_ = _tmp8_.tv_sec;
#line 1708 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp3_ = _tmp7_ != ((time_t) _tmp9_);
#line 13457 "Photo.c"
} else {
#line 1708 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp3_ = FALSE;
#line 13461 "Photo.c"
}
#line 1708 "/home/jens/Source/shotwell/src/Photo.vala"
if (_tmp3_) {
#line 13465 "Photo.c"
BackingPhotoTable* _tmp10_ = NULL;
BackingPhotoTable* _tmp11_ = NULL;
PhotoRow* _tmp12_ = NULL;
BackingPhotoID _tmp13_ = {0};
GTimeVal _tmp14_ = {0};
glong _tmp15_ = 0L;
BackingPhotoRow* _tmp16_ = NULL;
GTimeVal _tmp17_ = {0};
glong _tmp18_ = 0L;
#line 1709 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp10_ = backing_photo_table_get_instance ();
#line 1709 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp11_ = _tmp10_;
#line 1709 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp12_ = self->row;
#line 1709 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp13_ = _tmp12_->editable_id;
#line 1709 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp14_ = modification;
#line 1709 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp15_ = _tmp14_.tv_sec;
#line 1709 "/home/jens/Source/shotwell/src/Photo.vala"
backing_photo_table_update_timestamp (_tmp11_, &_tmp13_, (time_t) _tmp15_, &_inner_error_);
#line 1709 "/home/jens/Source/shotwell/src/Photo.vala"
_database_table_unref0 (_tmp11_);
#line 1709 "/home/jens/Source/shotwell/src/Photo.vala"
if (G_UNLIKELY (_inner_error_ != NULL)) {
#line 13493 "Photo.c"
goto __finally310;
}
#line 1711 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp16_ = self->priv->editable;
#line 1711 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp17_ = modification;
#line 1711 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp18_ = _tmp17_.tv_sec;
#line 1711 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp16_->timestamp = (time_t) _tmp18_;
#line 1712 "/home/jens/Source/shotwell/src/Photo.vala"
altered = TRUE;
#line 13506 "Photo.c"
}
}
__finally310:
{
PhotoRow* _tmp19_ = NULL;
#line 1707 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp19_ = self->row;
#line 1707 "/home/jens/Source/shotwell/src/Photo.vala"
g_rec_mutex_unlock (&self->priv->__lock_row);
#line 13516 "Photo.c"
}
#line 1707 "/home/jens/Source/shotwell/src/Photo.vala"
if (G_UNLIKELY (_inner_error_ != NULL)) {
#line 1707 "/home/jens/Source/shotwell/src/Photo.vala"
if (_inner_error_->domain == DATABASE_ERROR) {
#line 1707 "/home/jens/Source/shotwell/src/Photo.vala"
g_propagate_error (error, _inner_error_);
#line 1707 "/home/jens/Source/shotwell/src/Photo.vala"
return;
#line 13526 "Photo.c"
} else {
#line 1707 "/home/jens/Source/shotwell/src/Photo.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 1707 "/home/jens/Source/shotwell/src/Photo.vala"
g_clear_error (&_inner_error_);
#line 1707 "/home/jens/Source/shotwell/src/Photo.vala"
return;
#line 13534 "Photo.c"
}
}
}
#line 1716 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp20_ = altered;
#line 1716 "/home/jens/Source/shotwell/src/Photo.vala"
if (_tmp20_) {
#line 13542 "Photo.c"
Alteration* _tmp21_ = NULL;
Alteration* _tmp22_ = NULL;
#line 1717 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp21_ = alteration_new_from_list ("metadata:editable-timestamp,metadata:baseline-timestamp");
#line 1717 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp22_ = _tmp21_;
#line 1717 "/home/jens/Source/shotwell/src/Photo.vala"
data_object_notify_altered (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_DATA_OBJECT, DataObject), _tmp22_);
#line 1717 "/home/jens/Source/shotwell/src/Photo.vala"
_alteration_unref0 (_tmp22_);
#line 13553 "Photo.c"
}
}
void photo_update_many_editable_timestamps (GeeMap* map, GError** error) {
GError * _inner_error_ = NULL;
#line 1721 "/home/jens/Source/shotwell/src/Photo.vala"
g_return_if_fail (GEE_IS_MAP (map));
#line 1723 "/home/jens/Source/shotwell/src/Photo.vala"
database_table_begin_transaction ();
#line 13564 "Photo.c"
{
GeeIterator* _photo_it = NULL;
GeeMap* _tmp0_ = NULL;
GeeSet* _tmp1_ = NULL;
GeeSet* _tmp2_ = NULL;
GeeSet* _tmp3_ = NULL;
GeeIterator* _tmp4_ = NULL;
GeeIterator* _tmp5_ = NULL;
#line 1724 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp0_ = map;
#line 1724 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp1_ = gee_map_get_keys (_tmp0_);
#line 1724 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp2_ = _tmp1_;
#line 1724 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp3_ = _tmp2_;
#line 1724 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp4_ = gee_iterable_iterator (G_TYPE_CHECK_INSTANCE_CAST (_tmp3_, GEE_TYPE_ITERABLE, GeeIterable));
#line 1724 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp5_ = _tmp4_;
#line 1724 "/home/jens/Source/shotwell/src/Photo.vala"
_g_object_unref0 (_tmp3_);
#line 1724 "/home/jens/Source/shotwell/src/Photo.vala"
_photo_it = _tmp5_;
#line 1724 "/home/jens/Source/shotwell/src/Photo.vala"
while (TRUE) {
#line 13591 "Photo.c"
GeeIterator* _tmp6_ = NULL;
gboolean _tmp7_ = FALSE;
Photo* photo = NULL;
GeeIterator* _tmp8_ = NULL;
gpointer _tmp9_ = NULL;
Photo* _tmp10_ = NULL;
GeeMap* _tmp11_ = NULL;
Photo* _tmp12_ = NULL;
gpointer _tmp13_ = NULL;
GFileInfo* _tmp14_ = NULL;
#line 1724 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp6_ = _photo_it;
#line 1724 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp7_ = gee_iterator_next (_tmp6_);
#line 1724 "/home/jens/Source/shotwell/src/Photo.vala"
if (!_tmp7_) {
#line 1724 "/home/jens/Source/shotwell/src/Photo.vala"
break;
#line 13610 "Photo.c"
}
#line 1724 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp8_ = _photo_it;
#line 1724 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp9_ = gee_iterator_get (_tmp8_);
#line 1724 "/home/jens/Source/shotwell/src/Photo.vala"
photo = (Photo*) _tmp9_;
#line 1725 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp10_ = photo;
#line 1725 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp11_ = map;
#line 1725 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp12_ = photo;
#line 1725 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp13_ = gee_map_get (_tmp11_, _tmp12_);
#line 1725 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp14_ = (GFileInfo*) _tmp13_;
#line 1725 "/home/jens/Source/shotwell/src/Photo.vala"
photo_update_editable_modification_time (_tmp10_, _tmp14_, &_inner_error_);
#line 1725 "/home/jens/Source/shotwell/src/Photo.vala"
_g_object_unref0 (_tmp14_);
#line 1725 "/home/jens/Source/shotwell/src/Photo.vala"
if (G_UNLIKELY (_inner_error_ != NULL)) {
#line 1725 "/home/jens/Source/shotwell/src/Photo.vala"
if (_inner_error_->domain == DATABASE_ERROR) {
#line 1725 "/home/jens/Source/shotwell/src/Photo.vala"
g_propagate_error (error, _inner_error_);
#line 1725 "/home/jens/Source/shotwell/src/Photo.vala"
_g_object_unref0 (photo);
#line 1725 "/home/jens/Source/shotwell/src/Photo.vala"
_g_object_unref0 (_photo_it);
#line 1725 "/home/jens/Source/shotwell/src/Photo.vala"
return;
#line 13644 "Photo.c"
} else {
#line 1725 "/home/jens/Source/shotwell/src/Photo.vala"
_g_object_unref0 (photo);
#line 1725 "/home/jens/Source/shotwell/src/Photo.vala"
_g_object_unref0 (_photo_it);
#line 1725 "/home/jens/Source/shotwell/src/Photo.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 1725 "/home/jens/Source/shotwell/src/Photo.vala"
g_clear_error (&_inner_error_);
#line 1725 "/home/jens/Source/shotwell/src/Photo.vala"
return;
#line 13656 "Photo.c"
}
}
#line 1724 "/home/jens/Source/shotwell/src/Photo.vala"
_g_object_unref0 (photo);
#line 13661 "Photo.c"
}
#line 1724 "/home/jens/Source/shotwell/src/Photo.vala"
_g_object_unref0 (_photo_it);
#line 13665 "Photo.c"
}
#line 1726 "/home/jens/Source/shotwell/src/Photo.vala"
database_table_commit_transaction (&_inner_error_);
#line 1726 "/home/jens/Source/shotwell/src/Photo.vala"
if (G_UNLIKELY (_inner_error_ != NULL)) {
#line 1726 "/home/jens/Source/shotwell/src/Photo.vala"
if (_inner_error_->domain == DATABASE_ERROR) {
#line 1726 "/home/jens/Source/shotwell/src/Photo.vala"
g_propagate_error (error, _inner_error_);
#line 1726 "/home/jens/Source/shotwell/src/Photo.vala"
return;
#line 13677 "Photo.c"
} else {
#line 1726 "/home/jens/Source/shotwell/src/Photo.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 1726 "/home/jens/Source/shotwell/src/Photo.vala"
g_clear_error (&_inner_error_);
#line 1726 "/home/jens/Source/shotwell/src/Photo.vala"
return;
#line 13685 "Photo.c"
}
}
}
static PhotoFileFormat photo_real_get_preferred_thumbnail_format (ThumbnailSource* base) {
Photo * self;
PhotoFileFormat result = 0;
PhotoFileFormat _tmp0_ = 0;
PhotoFileFormat _tmp1_ = 0;
gboolean _tmp2_ = FALSE;
#line 1729 "/home/jens/Source/shotwell/src/Photo.vala"
self = G_TYPE_CHECK_INSTANCE_CAST (base, TYPE_PHOTO, Photo);
#line 1730 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp1_ = photo_get_file_format (self);
#line 1730 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp2_ = photo_file_format_can_write_image (_tmp1_);
#line 1730 "/home/jens/Source/shotwell/src/Photo.vala"
if (_tmp2_) {
#line 13705 "Photo.c"
PhotoFileFormat _tmp3_ = 0;
#line 1730 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp3_ = photo_get_file_format (self);
#line 1730 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp0_ = _tmp3_;
#line 13711 "Photo.c"
} else {
PhotoFileFormat _tmp4_ = 0;
#line 1731 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp4_ = photo_file_format_get_system_default_format ();
#line 1731 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp0_ = _tmp4_;
#line 13718 "Photo.c"
}
#line 1730 "/home/jens/Source/shotwell/src/Photo.vala"
result = _tmp0_;
#line 1730 "/home/jens/Source/shotwell/src/Photo.vala"
return result;
#line 13724 "Photo.c"
}
static GdkPixbuf* photo_real_create_thumbnail (ThumbnailSource* base, gint scale, GError** error) {
Photo * self;
GdkPixbuf* result = NULL;
GdkPixbuf* _tmp0_ = NULL;
gint _tmp1_ = 0;
Scaling _tmp2_ = {0};
GdkPixbuf* _tmp3_ = NULL;
GdkPixbuf* _tmp4_ = NULL;
GError * _inner_error_ = NULL;
#line 1734 "/home/jens/Source/shotwell/src/Photo.vala"
self = G_TYPE_CHECK_INSTANCE_CAST (base, TYPE_PHOTO, Photo);
#line 1735 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp1_ = scale;
#line 1735 "/home/jens/Source/shotwell/src/Photo.vala"
scaling_for_best_fit (_tmp1_, TRUE, &_tmp2_);
#line 1735 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp3_ = photo_source_get_pixbuf (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_PHOTO_SOURCE, PhotoSource), &_tmp2_, &_inner_error_);
#line 1735 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp0_ = _tmp3_;
#line 1735 "/home/jens/Source/shotwell/src/Photo.vala"
if (G_UNLIKELY (_inner_error_ != NULL)) {
#line 1735 "/home/jens/Source/shotwell/src/Photo.vala"
g_propagate_error (error, _inner_error_);
#line 1735 "/home/jens/Source/shotwell/src/Photo.vala"
return NULL;
#line 13753 "Photo.c"
}
#line 1735 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp4_ = _tmp0_;
#line 1735 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp0_ = NULL;
#line 1735 "/home/jens/Source/shotwell/src/Photo.vala"
result = _tmp4_;
#line 1735 "/home/jens/Source/shotwell/src/Photo.vala"
_g_object_unref0 (_tmp0_);
#line 1735 "/home/jens/Source/shotwell/src/Photo.vala"
return result;
#line 13765 "Photo.c"
}
gboolean photo_is_file_image (GFile* file) {
gboolean result = FALSE;
gboolean _tmp0_ = FALSE;
GFile* _tmp1_ = NULL;
gboolean _tmp2_ = FALSE;
#line 1738 "/home/jens/Source/shotwell/src/Photo.vala"
g_return_val_if_fail (G_IS_FILE (file), FALSE);
#line 1742 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp1_ = file;
#line 1742 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp2_ = photo_file_format_is_file_supported (_tmp1_);
#line 1742 "/home/jens/Source/shotwell/src/Photo.vala"
if (_tmp2_) {
#line 1743 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp0_ = TRUE;
#line 13784 "Photo.c"
} else {
GFile* _tmp3_ = NULL;
gchar* _tmp4_ = NULL;
gchar* _tmp5_ = NULL;
gboolean _tmp6_ = FALSE;
#line 1743 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp3_ = file;
#line 1743 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp4_ = g_file_get_basename (_tmp3_);
#line 1743 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp5_ = _tmp4_;
#line 1743 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp6_ = photo_is_extension_found (_tmp5_, PHOTO_IMAGE_EXTENSIONS, G_N_ELEMENTS (PHOTO_IMAGE_EXTENSIONS));
#line 1743 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp0_ = _tmp6_;
#line 1743 "/home/jens/Source/shotwell/src/Photo.vala"
_g_free0 (_tmp5_);
#line 13802 "Photo.c"
}
#line 1742 "/home/jens/Source/shotwell/src/Photo.vala"
result = _tmp0_;
#line 1742 "/home/jens/Source/shotwell/src/Photo.vala"
return result;
#line 13808 "Photo.c"
}
static gboolean photo_is_extension_found (const gchar* basename, gchar** extensions, int extensions_length1) {
gboolean result = FALSE;
gchar* name = NULL;
gchar* ext = NULL;
const gchar* _tmp0_ = NULL;
gchar* _tmp1_ = NULL;
gchar* _tmp2_ = NULL;
const gchar* _tmp3_ = NULL;
const gchar* _tmp4_ = NULL;
gchar* _tmp5_ = NULL;
gchar** _tmp6_ = NULL;
gint _tmp6__length1 = 0;
#line 1746 "/home/jens/Source/shotwell/src/Photo.vala"
g_return_val_if_fail (basename != NULL, FALSE);
#line 1748 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp0_ = basename;
#line 1748 "/home/jens/Source/shotwell/src/Photo.vala"
disassemble_filename (_tmp0_, &_tmp1_, &_tmp2_);
#line 1748 "/home/jens/Source/shotwell/src/Photo.vala"
_g_free0 (name);
#line 1748 "/home/jens/Source/shotwell/src/Photo.vala"
name = _tmp1_;
#line 1748 "/home/jens/Source/shotwell/src/Photo.vala"
_g_free0 (ext);
#line 1748 "/home/jens/Source/shotwell/src/Photo.vala"
ext = _tmp2_;
#line 1749 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp3_ = ext;
#line 1749 "/home/jens/Source/shotwell/src/Photo.vala"
if (_tmp3_ == NULL) {
#line 1750 "/home/jens/Source/shotwell/src/Photo.vala"
result = FALSE;
#line 1750 "/home/jens/Source/shotwell/src/Photo.vala"
_g_free0 (ext);
#line 1750 "/home/jens/Source/shotwell/src/Photo.vala"
_g_free0 (name);
#line 1750 "/home/jens/Source/shotwell/src/Photo.vala"
return result;
#line 13850 "Photo.c"
}
#line 1753 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp4_ = ext;
#line 1753 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp5_ = g_utf8_strdown (_tmp4_, (gssize) -1);
#line 1753 "/home/jens/Source/shotwell/src/Photo.vala"
_g_free0 (ext);
#line 1753 "/home/jens/Source/shotwell/src/Photo.vala"
ext = _tmp5_;
#line 1756 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp6_ = extensions;
#line 1756 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp6__length1 = extensions_length1;
#line 13864 "Photo.c"
{
gchar** extension_collection = NULL;
gint extension_collection_length1 = 0;
gint _extension_collection_size_ = 0;
gint extension_it = 0;
#line 1756 "/home/jens/Source/shotwell/src/Photo.vala"
extension_collection = _tmp6_;
#line 1756 "/home/jens/Source/shotwell/src/Photo.vala"
extension_collection_length1 = _tmp6__length1;
#line 1756 "/home/jens/Source/shotwell/src/Photo.vala"
for (extension_it = 0; extension_it < _tmp6__length1; extension_it = extension_it + 1) {
#line 13876 "Photo.c"
gchar* _tmp7_ = NULL;
gchar* extension = NULL;
#line 1756 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp7_ = g_strdup (extension_collection[extension_it]);
#line 1756 "/home/jens/Source/shotwell/src/Photo.vala"
extension = _tmp7_;
#line 13883 "Photo.c"
{
const gchar* _tmp8_ = NULL;
const gchar* _tmp9_ = NULL;
#line 1757 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp8_ = ext;
#line 1757 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp9_ = extension;
#line 1757 "/home/jens/Source/shotwell/src/Photo.vala"
if (g_strcmp0 (_tmp8_, _tmp9_) == 0) {
#line 1758 "/home/jens/Source/shotwell/src/Photo.vala"
result = TRUE;
#line 1758 "/home/jens/Source/shotwell/src/Photo.vala"
_g_free0 (extension);
#line 1758 "/home/jens/Source/shotwell/src/Photo.vala"
_g_free0 (ext);
#line 1758 "/home/jens/Source/shotwell/src/Photo.vala"
_g_free0 (name);
#line 1758 "/home/jens/Source/shotwell/src/Photo.vala"
return result;
#line 13903 "Photo.c"
}
#line 1756 "/home/jens/Source/shotwell/src/Photo.vala"
_g_free0 (extension);
#line 13907 "Photo.c"
}
}
}
#line 1761 "/home/jens/Source/shotwell/src/Photo.vala"
result = FALSE;
#line 1761 "/home/jens/Source/shotwell/src/Photo.vala"
_g_free0 (ext);
#line 1761 "/home/jens/Source/shotwell/src/Photo.vala"
_g_free0 (name);
#line 1761 "/home/jens/Source/shotwell/src/Photo.vala"
return result;
#line 13919 "Photo.c"
}
gboolean photo_is_duplicate (GFile* file, const gchar* thumbnail_md5, const gchar* full_md5, PhotoFileFormat file_format) {
gboolean result = FALSE;
PhotoTable* _tmp0_ = NULL;
PhotoTable* _tmp1_ = NULL;
GFile* _tmp2_ = NULL;
const gchar* _tmp3_ = NULL;
const gchar* _tmp4_ = NULL;
PhotoFileFormat _tmp5_ = 0;
gboolean _tmp6_ = FALSE;
gboolean _tmp7_ = FALSE;
#line 1767 "/home/jens/Source/shotwell/src/Photo.vala"
g_return_val_if_fail ((file == NULL) || G_IS_FILE (file), FALSE);
#line 1770 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp0_ = photo_table_get_instance ();
#line 1770 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp1_ = _tmp0_;
#line 1770 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp2_ = file;
#line 1770 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp3_ = thumbnail_md5;
#line 1770 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp4_ = full_md5;
#line 1770 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp5_ = file_format;
#line 1770 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp6_ = photo_table_has_duplicate (_tmp1_, _tmp2_, _tmp3_, _tmp4_, _tmp5_);
#line 1770 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp7_ = _tmp6_;
#line 1770 "/home/jens/Source/shotwell/src/Photo.vala"
_database_table_unref0 (_tmp1_);
#line 1770 "/home/jens/Source/shotwell/src/Photo.vala"
result = _tmp7_;
#line 1770 "/home/jens/Source/shotwell/src/Photo.vala"
return result;
#line 13957 "Photo.c"
}
PhotoID* photo_get_duplicate_ids (GFile* file, const gchar* thumbnail_md5, const gchar* full_md5, PhotoFileFormat file_format, int* result_length1) {
PhotoID* result = NULL;
PhotoTable* _tmp0_ = NULL;
PhotoTable* _tmp1_ = NULL;
GFile* _tmp2_ = NULL;
const gchar* _tmp3_ = NULL;
const gchar* _tmp4_ = NULL;
PhotoFileFormat _tmp5_ = 0;
gint _tmp6_ = 0;
PhotoID* _tmp7_ = NULL;
PhotoID* _tmp8_ = NULL;
gint _tmp8__length1 = 0;
PhotoID* _tmp9_ = NULL;
gint _tmp9__length1 = 0;
#line 1776 "/home/jens/Source/shotwell/src/Photo.vala"
g_return_val_if_fail ((file == NULL) || G_IS_FILE (file), NULL);
#line 1779 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp0_ = photo_table_get_instance ();
#line 1779 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp1_ = _tmp0_;
#line 1779 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp2_ = file;
#line 1779 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp3_ = thumbnail_md5;
#line 1779 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp4_ = full_md5;
#line 1779 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp5_ = file_format;
#line 1779 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp7_ = photo_table_get_duplicate_ids (_tmp1_, _tmp2_, _tmp3_, _tmp4_, _tmp5_, &_tmp6_);
#line 1779 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp8_ = _tmp7_;
#line 1779 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp8__length1 = _tmp6_;
#line 1779 "/home/jens/Source/shotwell/src/Photo.vala"
_database_table_unref0 (_tmp1_);
#line 1779 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp9_ = _tmp8_;
#line 1779 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp9__length1 = _tmp8__length1;
#line 1779 "/home/jens/Source/shotwell/src/Photo.vala"
if (result_length1) {
#line 1779 "/home/jens/Source/shotwell/src/Photo.vala"
*result_length1 = _tmp9__length1;
#line 14005 "Photo.c"
}
#line 1779 "/home/jens/Source/shotwell/src/Photo.vala"
result = _tmp9_;
#line 1779 "/home/jens/Source/shotwell/src/Photo.vala"
return result;
#line 14011 "Photo.c"
}
gint64 photo_get_photo_key (DataSource* source) {
gint64 result = 0LL;
DataSource* _tmp0_ = NULL;
PhotoID _tmp1_ = {0};
gint64 _tmp2_ = 0LL;
#line 1786 "/home/jens/Source/shotwell/src/Photo.vala"
g_return_val_if_fail (IS_DATA_SOURCE (source), 0LL);
#line 1787 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp0_ = source;
#line 1787 "/home/jens/Source/shotwell/src/Photo.vala"
photo_get_photo_id (G_TYPE_CHECK_INSTANCE_CAST (G_TYPE_CHECK_INSTANCE_CAST (_tmp0_, TYPE_LIBRARY_PHOTO, LibraryPhoto), TYPE_PHOTO, Photo), &_tmp1_);
#line 1787 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp2_ = _tmp1_.id;
#line 1787 "/home/jens/Source/shotwell/src/Photo.vala"
result = _tmp2_;
#line 1787 "/home/jens/Source/shotwell/src/Photo.vala"
return result;
#line 14032 "Photo.c"
}
static GFile* photo_real_get_file (MediaSource* base) {
Photo * self;
GFile* result = NULL;
PhotoFileReader* _tmp0_ = NULL;
PhotoFileReader* _tmp1_ = NULL;
GFile* _tmp2_ = NULL;
GFile* _tmp3_ = NULL;
#line 1805 "/home/jens/Source/shotwell/src/Photo.vala"
self = G_TYPE_CHECK_INSTANCE_CAST (base, TYPE_PHOTO, Photo);
#line 1806 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp0_ = photo_get_source_reader (self);
#line 1806 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp1_ = _tmp0_;
#line 1806 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp2_ = photo_file_adapter_get_file (G_TYPE_CHECK_INSTANCE_CAST (_tmp1_, TYPE_PHOTO_FILE_ADAPTER, PhotoFileAdapter));
#line 1806 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp3_ = _tmp2_;
#line 1806 "/home/jens/Source/shotwell/src/Photo.vala"
_photo_file_adapter_unref0 (_tmp1_);
#line 1806 "/home/jens/Source/shotwell/src/Photo.vala"
result = _tmp3_;
#line 1806 "/home/jens/Source/shotwell/src/Photo.vala"
return result;
#line 14059 "Photo.c"
}
static void _vala_array_add262 (gchar*** array, int* length, int* size, gchar* value) {
#line 1849 "/home/jens/Source/shotwell/src/Photo.vala"
if ((*length) == (*size)) {
#line 1849 "/home/jens/Source/shotwell/src/Photo.vala"
*size = (*size) ? (2 * (*size)) : 4;
#line 1849 "/home/jens/Source/shotwell/src/Photo.vala"
*array = g_renew (gchar*, *array, (*size) + 1);
#line 14070 "Photo.c"
}
#line 1849 "/home/jens/Source/shotwell/src/Photo.vala"
(*array)[(*length)++] = value;
#line 1849 "/home/jens/Source/shotwell/src/Photo.vala"
(*array)[*length] = NULL;
#line 14076 "Photo.c"
}
static void _vala_array_add263 (gchar*** array, int* length, int* size, gchar* value) {
#line 1854 "/home/jens/Source/shotwell/src/Photo.vala"
if ((*length) == (*size)) {
#line 1854 "/home/jens/Source/shotwell/src/Photo.vala"
*size = (*size) ? (2 * (*size)) : 4;
#line 1854 "/home/jens/Source/shotwell/src/Photo.vala"
*array = g_renew (gchar*, *array, (*size) + 1);
#line 14087 "Photo.c"
}
#line 1854 "/home/jens/Source/shotwell/src/Photo.vala"
(*array)[(*length)++] = value;
#line 1854 "/home/jens/Source/shotwell/src/Photo.vala"
(*array)[*length] = NULL;
#line 14093 "Photo.c"
}
static void _vala_array_add264 (gchar*** array, int* length, int* size, gchar* value) {
#line 1857 "/home/jens/Source/shotwell/src/Photo.vala"
if ((*length) == (*size)) {
#line 1857 "/home/jens/Source/shotwell/src/Photo.vala"
*size = (*size) ? (2 * (*size)) : 4;
#line 1857 "/home/jens/Source/shotwell/src/Photo.vala"
*array = g_renew (gchar*, *array, (*size) + 1);
#line 14104 "Photo.c"
}
#line 1857 "/home/jens/Source/shotwell/src/Photo.vala"
(*array)[(*length)++] = value;
#line 1857 "/home/jens/Source/shotwell/src/Photo.vala"
(*array)[*length] = NULL;
#line 14110 "Photo.c"
}
static void _vala_array_add265 (gchar*** array, int* length, int* size, gchar* value) {
#line 1860 "/home/jens/Source/shotwell/src/Photo.vala"
if ((*length) == (*size)) {
#line 1860 "/home/jens/Source/shotwell/src/Photo.vala"
*size = (*size) ? (2 * (*size)) : 4;
#line 1860 "/home/jens/Source/shotwell/src/Photo.vala"
*array = g_renew (gchar*, *array, (*size) + 1);
#line 14121 "Photo.c"
}
#line 1860 "/home/jens/Source/shotwell/src/Photo.vala"
(*array)[(*length)++] = value;
#line 1860 "/home/jens/Source/shotwell/src/Photo.vala"
(*array)[*length] = NULL;
#line 14127 "Photo.c"
}
void photo_set_master_file (Photo* self, GFile* file) {
gchar* filepath = NULL;
GFile* _tmp0_ = NULL;
gchar* _tmp1_ = NULL;
gboolean altered = FALSE;
gboolean is_baseline = FALSE;
gboolean is_source = FALSE;
gboolean name_changed = FALSE;
GFile* old_file = NULL;
gboolean _tmp41_ = FALSE;
GError * _inner_error_ = NULL;
#line 1811 "/home/jens/Source/shotwell/src/Photo.vala"
g_return_if_fail (IS_PHOTO (self));
#line 1811 "/home/jens/Source/shotwell/src/Photo.vala"
g_return_if_fail (G_IS_FILE (file));
#line 1812 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp0_ = file;
#line 1812 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp1_ = g_file_get_path (_tmp0_);
#line 1812 "/home/jens/Source/shotwell/src/Photo.vala"
filepath = _tmp1_;
#line 1814 "/home/jens/Source/shotwell/src/Photo.vala"
altered = FALSE;
#line 1815 "/home/jens/Source/shotwell/src/Photo.vala"
is_baseline = FALSE;
#line 1816 "/home/jens/Source/shotwell/src/Photo.vala"
is_source = FALSE;
#line 1817 "/home/jens/Source/shotwell/src/Photo.vala"
name_changed = FALSE;
#line 1818 "/home/jens/Source/shotwell/src/Photo.vala"
old_file = NULL;
#line 14162 "Photo.c"
{
{
PhotoRow* _tmp2_ = NULL;
#line 1820 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp2_ = self->row;
#line 1820 "/home/jens/Source/shotwell/src/Photo.vala"
g_rec_mutex_lock (&self->priv->__lock_row);
#line 14170 "Photo.c"
{
{
PhotoBackingReaders* _tmp3_ = NULL;
#line 1821 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp3_ = self->priv->readers;
#line 1821 "/home/jens/Source/shotwell/src/Photo.vala"
g_rec_mutex_lock (&self->priv->__lock_readers);
#line 14178 "Photo.c"
{
PhotoBackingReaders* _tmp4_ = NULL;
PhotoFileReader* _tmp5_ = NULL;
GFile* _tmp6_ = NULL;
GFile* _tmp7_ = NULL;
GFile* _tmp8_ = NULL;
gboolean _tmp9_ = FALSE;
#line 1822 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp4_ = self->priv->readers;
#line 1822 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp5_ = _tmp4_->master;
#line 1822 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp6_ = photo_file_adapter_get_file (G_TYPE_CHECK_INSTANCE_CAST (_tmp5_, TYPE_PHOTO_FILE_ADAPTER, PhotoFileAdapter));
#line 1822 "/home/jens/Source/shotwell/src/Photo.vala"
_g_object_unref0 (old_file);
#line 1822 "/home/jens/Source/shotwell/src/Photo.vala"
old_file = _tmp6_;
#line 1823 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp7_ = file;
#line 1823 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp8_ = old_file;
#line 1823 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp9_ = g_file_equal (_tmp7_, _tmp8_);
#line 1823 "/home/jens/Source/shotwell/src/Photo.vala"
if (!_tmp9_) {
#line 14204 "Photo.c"
PhotoTable* _tmp10_ = NULL;
PhotoTable* _tmp11_ = NULL;
PhotoID _tmp12_ = {0};
const gchar* _tmp13_ = NULL;
PhotoRow* _tmp14_ = NULL;
BackingPhotoRow* _tmp15_ = NULL;
const gchar* _tmp16_ = NULL;
gchar* _tmp17_ = NULL;
GFile* _tmp18_ = NULL;
gchar* _tmp19_ = NULL;
PhotoBackingReaders* _tmp20_ = NULL;
PhotoRow* _tmp21_ = NULL;
BackingPhotoRow* _tmp22_ = NULL;
PhotoFileFormat _tmp23_ = 0;
const gchar* _tmp24_ = NULL;
PhotoFileReader* _tmp25_ = NULL;
gboolean _tmp26_ = FALSE;
gboolean _tmp27_ = FALSE;
gboolean _tmp28_ = FALSE;
PhotoRow* _tmp29_ = NULL;
const gchar* _tmp30_ = NULL;
gboolean _tmp31_ = FALSE;
#line 1824 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp10_ = photo_table_get_instance ();
#line 1824 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp11_ = _tmp10_;
#line 1824 "/home/jens/Source/shotwell/src/Photo.vala"
photo_get_photo_id (self, &_tmp12_);
#line 1824 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp13_ = filepath;
#line 1824 "/home/jens/Source/shotwell/src/Photo.vala"
photo_table_set_filepath (_tmp11_, &_tmp12_, _tmp13_, &_inner_error_);
#line 1824 "/home/jens/Source/shotwell/src/Photo.vala"
_database_table_unref0 (_tmp11_);
#line 1824 "/home/jens/Source/shotwell/src/Photo.vala"
if (G_UNLIKELY (_inner_error_ != NULL)) {
#line 14241 "Photo.c"
goto __finally313;
}
#line 1826 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp14_ = self->row;
#line 1826 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp15_ = _tmp14_->master;
#line 1826 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp16_ = filepath;
#line 1826 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp17_ = g_strdup (_tmp16_);
#line 1826 "/home/jens/Source/shotwell/src/Photo.vala"
_g_free0 (_tmp15_->filepath);
#line 1826 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp15_->filepath = _tmp17_;
#line 1827 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp18_ = file;
#line 1827 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp19_ = g_file_get_basename (_tmp18_);
#line 1827 "/home/jens/Source/shotwell/src/Photo.vala"
_g_free0 (self->priv->file_title);
#line 1827 "/home/jens/Source/shotwell/src/Photo.vala"
self->priv->file_title = _tmp19_;
#line 1828 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp20_ = self->priv->readers;
#line 1828 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp21_ = self->row;
#line 1828 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp22_ = _tmp21_->master;
#line 1828 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp23_ = _tmp22_->file_format;
#line 1828 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp24_ = filepath;
#line 1828 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp25_ = photo_file_format_create_reader (_tmp23_, _tmp24_);
#line 1828 "/home/jens/Source/shotwell/src/Photo.vala"
_photo_file_adapter_unref0 (_tmp20_->master);
#line 1828 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp20_->master = _tmp25_;
#line 1830 "/home/jens/Source/shotwell/src/Photo.vala"
altered = TRUE;
#line 1831 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp26_ = photo_is_master_baseline (self);
#line 1831 "/home/jens/Source/shotwell/src/Photo.vala"
is_baseline = _tmp26_;
#line 1832 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp27_ = photo_is_master_source (self);
#line 1832 "/home/jens/Source/shotwell/src/Photo.vala"
is_source = _tmp27_;
#line 1833 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp29_ = self->row;
#line 1833 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp30_ = _tmp29_->title;
#line 1833 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp31_ = is_string_empty (_tmp30_);
#line 1833 "/home/jens/Source/shotwell/src/Photo.vala"
if (_tmp31_) {
#line 14298 "Photo.c"
GFile* _tmp32_ = NULL;
gchar* _tmp33_ = NULL;
gchar* _tmp34_ = NULL;
GFile* _tmp35_ = NULL;
gchar* _tmp36_ = NULL;
gchar* _tmp37_ = NULL;
#line 1834 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp32_ = old_file;
#line 1834 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp33_ = g_file_get_basename (_tmp32_);
#line 1834 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp34_ = _tmp33_;
#line 1834 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp35_ = file;
#line 1834 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp36_ = g_file_get_basename (_tmp35_);
#line 1834 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp37_ = _tmp36_;
#line 1834 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp28_ = g_strcmp0 (_tmp34_, _tmp37_) != 0;
#line 1834 "/home/jens/Source/shotwell/src/Photo.vala"
_g_free0 (_tmp37_);
#line 1834 "/home/jens/Source/shotwell/src/Photo.vala"
_g_free0 (_tmp34_);
#line 14323 "Photo.c"
} else {
#line 1833 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp28_ = FALSE;
#line 14327 "Photo.c"
}
#line 1833 "/home/jens/Source/shotwell/src/Photo.vala"
name_changed = _tmp28_;
#line 14331 "Photo.c"
}
}
__finally313:
{
PhotoBackingReaders* _tmp38_ = NULL;
#line 1821 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp38_ = self->priv->readers;
#line 1821 "/home/jens/Source/shotwell/src/Photo.vala"
g_rec_mutex_unlock (&self->priv->__lock_readers);
#line 14341 "Photo.c"
}
#line 1821 "/home/jens/Source/shotwell/src/Photo.vala"
if (G_UNLIKELY (_inner_error_ != NULL)) {
#line 14345 "Photo.c"
goto __finally312;
}
}
}
__finally312:
{
PhotoRow* _tmp39_ = NULL;
#line 1820 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp39_ = self->row;
#line 1820 "/home/jens/Source/shotwell/src/Photo.vala"
g_rec_mutex_unlock (&self->priv->__lock_row);
#line 14357 "Photo.c"
}
#line 1820 "/home/jens/Source/shotwell/src/Photo.vala"
if (G_UNLIKELY (_inner_error_ != NULL)) {
#line 1820 "/home/jens/Source/shotwell/src/Photo.vala"
if (_inner_error_->domain == DATABASE_ERROR) {
#line 14363 "Photo.c"
goto __catch311_database_error;
}
#line 1820 "/home/jens/Source/shotwell/src/Photo.vala"
_g_object_unref0 (old_file);
#line 1820 "/home/jens/Source/shotwell/src/Photo.vala"
_g_free0 (filepath);
#line 1820 "/home/jens/Source/shotwell/src/Photo.vala"
g_critical ("file %s: line %d: unexpected error: %s (%s, %d)", __FILE__, __LINE__, _inner_error_->message, g_quark_to_string (_inner_error_->domain), _inner_error_->code);
#line 1820 "/home/jens/Source/shotwell/src/Photo.vala"
g_clear_error (&_inner_error_);
#line 1820 "/home/jens/Source/shotwell/src/Photo.vala"
return;
#line 14376 "Photo.c"
}
}
}
goto __finally311;
__catch311_database_error:
{
GError* err = NULL;
GError* _tmp40_ = NULL;
#line 1819 "/home/jens/Source/shotwell/src/Photo.vala"
err = _inner_error_;
#line 1819 "/home/jens/Source/shotwell/src/Photo.vala"
_inner_error_ = NULL;
#line 1839 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp40_ = err;
#line 1839 "/home/jens/Source/shotwell/src/Photo.vala"
app_window_database_error (_tmp40_);
#line 1819 "/home/jens/Source/shotwell/src/Photo.vala"
_g_error_free0 (err);
#line 14395 "Photo.c"
}
__finally311:
#line 1819 "/home/jens/Source/shotwell/src/Photo.vala"
if (G_UNLIKELY (_inner_error_ != NULL)) {
#line 1819 "/home/jens/Source/shotwell/src/Photo.vala"
_g_object_unref0 (old_file);
#line 1819 "/home/jens/Source/shotwell/src/Photo.vala"
_g_free0 (filepath);
#line 1819 "/home/jens/Source/shotwell/src/Photo.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 1819 "/home/jens/Source/shotwell/src/Photo.vala"
g_clear_error (&_inner_error_);
#line 1819 "/home/jens/Source/shotwell/src/Photo.vala"
return;
#line 14410 "Photo.c"
}
#line 1842 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp41_ = altered;
#line 1842 "/home/jens/Source/shotwell/src/Photo.vala"
if (_tmp41_) {
#line 14416 "Photo.c"
GFile* _tmp42_ = NULL;
GFile* _tmp43_ = NULL;
gboolean _tmp44_ = FALSE;
gchar** alteration_list = NULL;
gchar** _tmp45_ = NULL;
gint alteration_list_length1 = 0;
gint _alteration_list_size_ = 0;
gchar** _tmp46_ = NULL;
gint _tmp46__length1 = 0;
gchar* _tmp47_ = NULL;
gboolean _tmp48_ = FALSE;
gboolean _tmp51_ = FALSE;
gboolean _tmp54_ = FALSE;
gchar** _tmp57_ = NULL;
gint _tmp57__length1 = 0;
Alteration* _tmp58_ = NULL;
Alteration* _tmp59_ = NULL;
#line 1843 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp42_ = old_file;
#line 1843 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp43_ = file;
#line 1843 "/home/jens/Source/shotwell/src/Photo.vala"
media_source_notify_master_replaced (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_MEDIA_SOURCE, MediaSource), _tmp42_, _tmp43_);
#line 1845 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp44_ = is_baseline;
#line 1845 "/home/jens/Source/shotwell/src/Photo.vala"
if (_tmp44_) {
#line 1846 "/home/jens/Source/shotwell/src/Photo.vala"
photo_notify_baseline_replaced (self);
#line 14446 "Photo.c"
}
#line 1848 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp45_ = g_new0 (gchar*, 0 + 1);
#line 1848 "/home/jens/Source/shotwell/src/Photo.vala"
alteration_list = _tmp45_;
#line 1848 "/home/jens/Source/shotwell/src/Photo.vala"
alteration_list_length1 = 0;
#line 1848 "/home/jens/Source/shotwell/src/Photo.vala"
_alteration_list_size_ = alteration_list_length1;
#line 1849 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp46_ = alteration_list;
#line 1849 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp46__length1 = alteration_list_length1;
#line 1849 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp47_ = g_strdup ("backing:master");
#line 1849 "/home/jens/Source/shotwell/src/Photo.vala"
_vala_array_add262 (&alteration_list, &alteration_list_length1, &_alteration_list_size_, _tmp47_);
#line 1853 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp48_ = name_changed;
#line 1853 "/home/jens/Source/shotwell/src/Photo.vala"
if (_tmp48_) {
#line 14468 "Photo.c"
gchar** _tmp49_ = NULL;
gint _tmp49__length1 = 0;
gchar* _tmp50_ = NULL;
#line 1854 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp49_ = alteration_list;
#line 1854 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp49__length1 = alteration_list_length1;
#line 1854 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp50_ = g_strdup ("metadata:name");
#line 1854 "/home/jens/Source/shotwell/src/Photo.vala"
_vala_array_add263 (&alteration_list, &alteration_list_length1, &_alteration_list_size_, _tmp50_);
#line 14480 "Photo.c"
}
#line 1856 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp51_ = is_source;
#line 1856 "/home/jens/Source/shotwell/src/Photo.vala"
if (_tmp51_) {
#line 14486 "Photo.c"
gchar** _tmp52_ = NULL;
gint _tmp52__length1 = 0;
gchar* _tmp53_ = NULL;
#line 1857 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp52_ = alteration_list;
#line 1857 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp52__length1 = alteration_list_length1;
#line 1857 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp53_ = g_strdup ("backing:source");
#line 1857 "/home/jens/Source/shotwell/src/Photo.vala"
_vala_array_add264 (&alteration_list, &alteration_list_length1, &_alteration_list_size_, _tmp53_);
#line 14498 "Photo.c"
}
#line 1859 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp54_ = is_baseline;
#line 1859 "/home/jens/Source/shotwell/src/Photo.vala"
if (_tmp54_) {
#line 14504 "Photo.c"
gchar** _tmp55_ = NULL;
gint _tmp55__length1 = 0;
gchar* _tmp56_ = NULL;
#line 1860 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp55_ = alteration_list;
#line 1860 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp55__length1 = alteration_list_length1;
#line 1860 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp56_ = g_strdup ("backing:baseline");
#line 1860 "/home/jens/Source/shotwell/src/Photo.vala"
_vala_array_add265 (&alteration_list, &alteration_list_length1, &_alteration_list_size_, _tmp56_);
#line 14516 "Photo.c"
}
#line 1862 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp57_ = alteration_list;
#line 1862 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp57__length1 = alteration_list_length1;
#line 1862 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp58_ = alteration_new_from_array (_tmp57_, _tmp57__length1);
#line 1862 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp59_ = _tmp58_;
#line 1862 "/home/jens/Source/shotwell/src/Photo.vala"
data_object_notify_altered (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_DATA_OBJECT, DataObject), _tmp59_);
#line 1862 "/home/jens/Source/shotwell/src/Photo.vala"
_alteration_unref0 (_tmp59_);
#line 1842 "/home/jens/Source/shotwell/src/Photo.vala"
alteration_list = (_vala_array_free (alteration_list, alteration_list_length1, (GDestroyNotify) g_free), NULL);
#line 14532 "Photo.c"
}
#line 1811 "/home/jens/Source/shotwell/src/Photo.vala"
_g_object_unref0 (old_file);
#line 1811 "/home/jens/Source/shotwell/src/Photo.vala"
_g_free0 (filepath);
#line 14538 "Photo.c"
}
static void _vala_array_add266 (gchar*** array, int* length, int* size, gchar* value) {
#line 1902 "/home/jens/Source/shotwell/src/Photo.vala"
if ((*length) == (*size)) {
#line 1902 "/home/jens/Source/shotwell/src/Photo.vala"
*size = (*size) ? (2 * (*size)) : 4;
#line 1902 "/home/jens/Source/shotwell/src/Photo.vala"
*array = g_renew (gchar*, *array, (*size) + 1);
#line 14549 "Photo.c"
}
#line 1902 "/home/jens/Source/shotwell/src/Photo.vala"
(*array)[(*length)++] = value;
#line 1902 "/home/jens/Source/shotwell/src/Photo.vala"
(*array)[*length] = NULL;
#line 14555 "Photo.c"
}
static void _vala_array_add267 (gchar*** array, int* length, int* size, gchar* value) {
#line 1905 "/home/jens/Source/shotwell/src/Photo.vala"
if ((*length) == (*size)) {
#line 1905 "/home/jens/Source/shotwell/src/Photo.vala"
*size = (*size) ? (2 * (*size)) : 4;
#line 1905 "/home/jens/Source/shotwell/src/Photo.vala"
*array = g_renew (gchar*, *array, (*size) + 1);
#line 14566 "Photo.c"
}
#line 1905 "/home/jens/Source/shotwell/src/Photo.vala"
(*array)[(*length)++] = value;
#line 1905 "/home/jens/Source/shotwell/src/Photo.vala"
(*array)[*length] = NULL;
#line 14572 "Photo.c"
}
static void _vala_array_add268 (gchar*** array, int* length, int* size, gchar* value) {
#line 1908 "/home/jens/Source/shotwell/src/Photo.vala"
if ((*length) == (*size)) {
#line 1908 "/home/jens/Source/shotwell/src/Photo.vala"
*size = (*size) ? (2 * (*size)) : 4;
#line 1908 "/home/jens/Source/shotwell/src/Photo.vala"
*array = g_renew (gchar*, *array, (*size) + 1);
#line 14583 "Photo.c"
}
#line 1908 "/home/jens/Source/shotwell/src/Photo.vala"
(*array)[(*length)++] = value;
#line 1908 "/home/jens/Source/shotwell/src/Photo.vala"
(*array)[*length] = NULL;
#line 14589 "Photo.c"
}
void photo_set_editable_file (Photo* self, GFile* file) {
gchar* filepath = NULL;
GFile* _tmp0_ = NULL;
gchar* _tmp1_ = NULL;
gboolean altered = FALSE;
gboolean is_baseline = FALSE;
gboolean is_source = FALSE;
GFile* old_file = NULL;
gboolean _tmp34_ = FALSE;
GError * _inner_error_ = NULL;
#line 1868 "/home/jens/Source/shotwell/src/Photo.vala"
g_return_if_fail (IS_PHOTO (self));
#line 1868 "/home/jens/Source/shotwell/src/Photo.vala"
g_return_if_fail (G_IS_FILE (file));
#line 1869 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp0_ = file;
#line 1869 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp1_ = g_file_get_path (_tmp0_);
#line 1869 "/home/jens/Source/shotwell/src/Photo.vala"
filepath = _tmp1_;
#line 1871 "/home/jens/Source/shotwell/src/Photo.vala"
altered = FALSE;
#line 1872 "/home/jens/Source/shotwell/src/Photo.vala"
is_baseline = FALSE;
#line 1873 "/home/jens/Source/shotwell/src/Photo.vala"
is_source = FALSE;
#line 1874 "/home/jens/Source/shotwell/src/Photo.vala"
old_file = NULL;
#line 14621 "Photo.c"
{
{
PhotoRow* _tmp2_ = NULL;
#line 1876 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp2_ = self->row;
#line 1876 "/home/jens/Source/shotwell/src/Photo.vala"
g_rec_mutex_lock (&self->priv->__lock_row);
#line 14629 "Photo.c"
{
{
PhotoBackingReaders* _tmp3_ = NULL;
#line 1877 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp3_ = self->priv->readers;
#line 1877 "/home/jens/Source/shotwell/src/Photo.vala"
g_rec_mutex_lock (&self->priv->__lock_readers);
#line 14637 "Photo.c"
{
GFile* _tmp4_ = NULL;
PhotoBackingReaders* _tmp5_ = NULL;
PhotoFileReader* _tmp6_ = NULL;
GFile* _tmp10_ = NULL;
gboolean _tmp11_ = FALSE;
GFile* _tmp12_ = NULL;
#line 1878 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp5_ = self->priv->readers;
#line 1878 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp6_ = _tmp5_->editable;
#line 1878 "/home/jens/Source/shotwell/src/Photo.vala"
if (_tmp6_ != NULL) {
#line 14651 "Photo.c"
PhotoBackingReaders* _tmp7_ = NULL;
PhotoFileReader* _tmp8_ = NULL;
GFile* _tmp9_ = NULL;
#line 1878 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp7_ = self->priv->readers;
#line 1878 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp8_ = _tmp7_->editable;
#line 1878 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp9_ = photo_file_adapter_get_file (G_TYPE_CHECK_INSTANCE_CAST (_tmp8_, TYPE_PHOTO_FILE_ADAPTER, PhotoFileAdapter));
#line 1878 "/home/jens/Source/shotwell/src/Photo.vala"
_g_object_unref0 (_tmp4_);
#line 1878 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp4_ = _tmp9_;
#line 14665 "Photo.c"
} else {
#line 1878 "/home/jens/Source/shotwell/src/Photo.vala"
_g_object_unref0 (_tmp4_);
#line 1878 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp4_ = NULL;
#line 14671 "Photo.c"
}
#line 1878 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp10_ = _g_object_ref0 (_tmp4_);
#line 1878 "/home/jens/Source/shotwell/src/Photo.vala"
_g_object_unref0 (old_file);
#line 1878 "/home/jens/Source/shotwell/src/Photo.vala"
old_file = _tmp10_;
#line 1879 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp12_ = old_file;
#line 1879 "/home/jens/Source/shotwell/src/Photo.vala"
if (_tmp12_ != NULL) {
#line 14683 "Photo.c"
GFile* _tmp13_ = NULL;
GFile* _tmp14_ = NULL;
gboolean _tmp15_ = FALSE;
#line 1879 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp13_ = old_file;
#line 1879 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp14_ = file;
#line 1879 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp15_ = g_file_equal (_tmp13_, _tmp14_);
#line 1879 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp11_ = !_tmp15_;
#line 14695 "Photo.c"
} else {
#line 1879 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp11_ = FALSE;
#line 14699 "Photo.c"
}
#line 1879 "/home/jens/Source/shotwell/src/Photo.vala"
if (_tmp11_) {
#line 14703 "Photo.c"
BackingPhotoTable* _tmp16_ = NULL;
BackingPhotoTable* _tmp17_ = NULL;
PhotoRow* _tmp18_ = NULL;
BackingPhotoID _tmp19_ = {0};
const gchar* _tmp20_ = NULL;
BackingPhotoRow* _tmp21_ = NULL;
const gchar* _tmp22_ = NULL;
gchar* _tmp23_ = NULL;
PhotoBackingReaders* _tmp24_ = NULL;
BackingPhotoRow* _tmp25_ = NULL;
PhotoFileFormat _tmp26_ = 0;
const gchar* _tmp27_ = NULL;
PhotoFileReader* _tmp28_ = NULL;
gboolean _tmp29_ = FALSE;
gboolean _tmp30_ = FALSE;
#line 1880 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp16_ = backing_photo_table_get_instance ();
#line 1880 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp17_ = _tmp16_;
#line 1880 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp18_ = self->row;
#line 1880 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp19_ = _tmp18_->editable_id;
#line 1880 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp20_ = filepath;
#line 1880 "/home/jens/Source/shotwell/src/Photo.vala"
backing_photo_table_set_filepath (_tmp17_, &_tmp19_, _tmp20_, &_inner_error_);
#line 1880 "/home/jens/Source/shotwell/src/Photo.vala"
_database_table_unref0 (_tmp17_);
#line 1880 "/home/jens/Source/shotwell/src/Photo.vala"
if (G_UNLIKELY (_inner_error_ != NULL)) {
#line 1880 "/home/jens/Source/shotwell/src/Photo.vala"
_g_object_unref0 (_tmp4_);
#line 14737 "Photo.c"
goto __finally316;
}
#line 1882 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp21_ = self->priv->editable;
#line 1882 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp22_ = filepath;
#line 1882 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp23_ = g_strdup (_tmp22_);
#line 1882 "/home/jens/Source/shotwell/src/Photo.vala"
_g_free0 (_tmp21_->filepath);
#line 1882 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp21_->filepath = _tmp23_;
#line 1883 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp24_ = self->priv->readers;
#line 1883 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp25_ = self->priv->editable;
#line 1883 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp26_ = _tmp25_->file_format;
#line 1883 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp27_ = filepath;
#line 1883 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp28_ = photo_file_format_create_reader (_tmp26_, _tmp27_);
#line 1883 "/home/jens/Source/shotwell/src/Photo.vala"
_photo_file_adapter_unref0 (_tmp24_->editable);
#line 1883 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp24_->editable = _tmp28_;
#line 1885 "/home/jens/Source/shotwell/src/Photo.vala"
altered = TRUE;
#line 1886 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp29_ = photo_is_editable_baseline (self);
#line 1886 "/home/jens/Source/shotwell/src/Photo.vala"
is_baseline = _tmp29_;
#line 1887 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp30_ = photo_is_editable_source (self);
#line 1887 "/home/jens/Source/shotwell/src/Photo.vala"
is_source = _tmp30_;
#line 14774 "Photo.c"
}
#line 1877 "/home/jens/Source/shotwell/src/Photo.vala"
_g_object_unref0 (_tmp4_);
#line 14778 "Photo.c"
}
__finally316:
{
PhotoBackingReaders* _tmp31_ = NULL;
#line 1877 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp31_ = self->priv->readers;
#line 1877 "/home/jens/Source/shotwell/src/Photo.vala"
g_rec_mutex_unlock (&self->priv->__lock_readers);
#line 14787 "Photo.c"
}
#line 1877 "/home/jens/Source/shotwell/src/Photo.vala"
if (G_UNLIKELY (_inner_error_ != NULL)) {
#line 14791 "Photo.c"
goto __finally315;
}
}
}
__finally315:
{
PhotoRow* _tmp32_ = NULL;
#line 1876 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp32_ = self->row;
#line 1876 "/home/jens/Source/shotwell/src/Photo.vala"
g_rec_mutex_unlock (&self->priv->__lock_row);
#line 14803 "Photo.c"
}
#line 1876 "/home/jens/Source/shotwell/src/Photo.vala"
if (G_UNLIKELY (_inner_error_ != NULL)) {
#line 1876 "/home/jens/Source/shotwell/src/Photo.vala"
if (_inner_error_->domain == DATABASE_ERROR) {
#line 14809 "Photo.c"
goto __catch314_database_error;
}
#line 1876 "/home/jens/Source/shotwell/src/Photo.vala"
_g_object_unref0 (old_file);
#line 1876 "/home/jens/Source/shotwell/src/Photo.vala"
_g_free0 (filepath);
#line 1876 "/home/jens/Source/shotwell/src/Photo.vala"
g_critical ("file %s: line %d: unexpected error: %s (%s, %d)", __FILE__, __LINE__, _inner_error_->message, g_quark_to_string (_inner_error_->domain), _inner_error_->code);
#line 1876 "/home/jens/Source/shotwell/src/Photo.vala"
g_clear_error (&_inner_error_);
#line 1876 "/home/jens/Source/shotwell/src/Photo.vala"
return;
#line 14822 "Photo.c"
}
}
}
goto __finally314;
__catch314_database_error:
{
GError* err = NULL;
GError* _tmp33_ = NULL;
#line 1875 "/home/jens/Source/shotwell/src/Photo.vala"
err = _inner_error_;
#line 1875 "/home/jens/Source/shotwell/src/Photo.vala"
_inner_error_ = NULL;
#line 1892 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp33_ = err;
#line 1892 "/home/jens/Source/shotwell/src/Photo.vala"
app_window_database_error (_tmp33_);
#line 1875 "/home/jens/Source/shotwell/src/Photo.vala"
_g_error_free0 (err);
#line 14841 "Photo.c"
}
__finally314:
#line 1875 "/home/jens/Source/shotwell/src/Photo.vala"
if (G_UNLIKELY (_inner_error_ != NULL)) {
#line 1875 "/home/jens/Source/shotwell/src/Photo.vala"
_g_object_unref0 (old_file);
#line 1875 "/home/jens/Source/shotwell/src/Photo.vala"
_g_free0 (filepath);
#line 1875 "/home/jens/Source/shotwell/src/Photo.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 1875 "/home/jens/Source/shotwell/src/Photo.vala"
g_clear_error (&_inner_error_);
#line 1875 "/home/jens/Source/shotwell/src/Photo.vala"
return;
#line 14856 "Photo.c"
}
#line 1895 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp34_ = altered;
#line 1895 "/home/jens/Source/shotwell/src/Photo.vala"
if (_tmp34_) {
#line 14862 "Photo.c"
GFile* _tmp35_ = NULL;
GFile* _tmp36_ = NULL;
gboolean _tmp37_ = FALSE;
gchar** alteration_list = NULL;
gchar** _tmp38_ = NULL;
gint alteration_list_length1 = 0;
gint _alteration_list_size_ = 0;
gchar** _tmp39_ = NULL;
gint _tmp39__length1 = 0;
gchar* _tmp40_ = NULL;
gboolean _tmp41_ = FALSE;
gboolean _tmp44_ = FALSE;
gchar** _tmp47_ = NULL;
gint _tmp47__length1 = 0;
Alteration* _tmp48_ = NULL;
Alteration* _tmp49_ = NULL;
#line 1896 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp35_ = old_file;
#line 1896 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp36_ = file;
#line 1896 "/home/jens/Source/shotwell/src/Photo.vala"
photo_notify_editable_replaced (self, _tmp35_, _tmp36_);
#line 1898 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp37_ = is_baseline;
#line 1898 "/home/jens/Source/shotwell/src/Photo.vala"
if (_tmp37_) {
#line 1899 "/home/jens/Source/shotwell/src/Photo.vala"
photo_notify_baseline_replaced (self);
#line 14891 "Photo.c"
}
#line 1901 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp38_ = g_new0 (gchar*, 0 + 1);
#line 1901 "/home/jens/Source/shotwell/src/Photo.vala"
alteration_list = _tmp38_;
#line 1901 "/home/jens/Source/shotwell/src/Photo.vala"
alteration_list_length1 = 0;
#line 1901 "/home/jens/Source/shotwell/src/Photo.vala"
_alteration_list_size_ = alteration_list_length1;
#line 1902 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp39_ = alteration_list;
#line 1902 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp39__length1 = alteration_list_length1;
#line 1902 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp40_ = g_strdup ("backing:editable");
#line 1902 "/home/jens/Source/shotwell/src/Photo.vala"
_vala_array_add266 (&alteration_list, &alteration_list_length1, &_alteration_list_size_, _tmp40_);
#line 1904 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp41_ = is_baseline;
#line 1904 "/home/jens/Source/shotwell/src/Photo.vala"
if (_tmp41_) {
#line 14913 "Photo.c"
gchar** _tmp42_ = NULL;
gint _tmp42__length1 = 0;
gchar* _tmp43_ = NULL;
#line 1905 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp42_ = alteration_list;
#line 1905 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp42__length1 = alteration_list_length1;
#line 1905 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp43_ = g_strdup ("backing:baseline");
#line 1905 "/home/jens/Source/shotwell/src/Photo.vala"
_vala_array_add267 (&alteration_list, &alteration_list_length1, &_alteration_list_size_, _tmp43_);
#line 14925 "Photo.c"
}
#line 1907 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp44_ = is_source;
#line 1907 "/home/jens/Source/shotwell/src/Photo.vala"
if (_tmp44_) {
#line 14931 "Photo.c"
gchar** _tmp45_ = NULL;
gint _tmp45__length1 = 0;
gchar* _tmp46_ = NULL;
#line 1908 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp45_ = alteration_list;
#line 1908 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp45__length1 = alteration_list_length1;
#line 1908 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp46_ = g_strdup ("backing:source");
#line 1908 "/home/jens/Source/shotwell/src/Photo.vala"
_vala_array_add268 (&alteration_list, &alteration_list_length1, &_alteration_list_size_, _tmp46_);
#line 14943 "Photo.c"
}
#line 1910 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp47_ = alteration_list;
#line 1910 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp47__length1 = alteration_list_length1;
#line 1910 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp48_ = alteration_new_from_array (_tmp47_, _tmp47__length1);
#line 1910 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp49_ = _tmp48_;
#line 1910 "/home/jens/Source/shotwell/src/Photo.vala"
data_object_notify_altered (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_DATA_OBJECT, DataObject), _tmp49_);
#line 1910 "/home/jens/Source/shotwell/src/Photo.vala"
_alteration_unref0 (_tmp49_);
#line 1895 "/home/jens/Source/shotwell/src/Photo.vala"
alteration_list = (_vala_array_free (alteration_list, alteration_list_length1, (GDestroyNotify) g_free), NULL);
#line 14959 "Photo.c"
}
#line 1868 "/home/jens/Source/shotwell/src/Photo.vala"
_g_object_unref0 (old_file);
#line 1868 "/home/jens/Source/shotwell/src/Photo.vala"
_g_free0 (filepath);
#line 14965 "Photo.c"
}
void photo_set_many_editable_file (GeeMap* map, GError** error) {
GeeMapIterator* map_iter = NULL;
GeeMap* _tmp0_ = NULL;
GeeMapIterator* _tmp1_ = NULL;
GError * _inner_error_ = NULL;
#line 1915 "/home/jens/Source/shotwell/src/Photo.vala"
g_return_if_fail (GEE_IS_MAP (map));
#line 1916 "/home/jens/Source/shotwell/src/Photo.vala"
database_table_begin_transaction ();
#line 1918 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp0_ = map;
#line 1918 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp1_ = gee_map_map_iterator (_tmp0_);
#line 1918 "/home/jens/Source/shotwell/src/Photo.vala"
map_iter = _tmp1_;
#line 1919 "/home/jens/Source/shotwell/src/Photo.vala"
while (TRUE) {
#line 14986 "Photo.c"
GeeMapIterator* _tmp2_ = NULL;
gboolean _tmp3_ = FALSE;
GeeMapIterator* _tmp4_ = NULL;
gpointer _tmp5_ = NULL;
Photo* _tmp6_ = NULL;
GeeMapIterator* _tmp7_ = NULL;
gpointer _tmp8_ = NULL;
GFile* _tmp9_ = NULL;
#line 1919 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp2_ = map_iter;
#line 1919 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp3_ = gee_map_iterator_next (_tmp2_);
#line 1919 "/home/jens/Source/shotwell/src/Photo.vala"
if (!_tmp3_) {
#line 1919 "/home/jens/Source/shotwell/src/Photo.vala"
break;
#line 15003 "Photo.c"
}
#line 1920 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp4_ = map_iter;
#line 1920 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp5_ = gee_map_iterator_get_key (_tmp4_);
#line 1920 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp6_ = (Photo*) _tmp5_;
#line 1920 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp7_ = map_iter;
#line 1920 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp8_ = gee_map_iterator_get_value (_tmp7_);
#line 1920 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp9_ = (GFile*) _tmp8_;
#line 1920 "/home/jens/Source/shotwell/src/Photo.vala"
photo_set_editable_file (_tmp6_, _tmp9_);
#line 1920 "/home/jens/Source/shotwell/src/Photo.vala"
_g_object_unref0 (_tmp9_);
#line 1920 "/home/jens/Source/shotwell/src/Photo.vala"
_g_object_unref0 (_tmp6_);
#line 15023 "Photo.c"
}
#line 1922 "/home/jens/Source/shotwell/src/Photo.vala"
database_table_commit_transaction (&_inner_error_);
#line 1922 "/home/jens/Source/shotwell/src/Photo.vala"
if (G_UNLIKELY (_inner_error_ != NULL)) {
#line 1922 "/home/jens/Source/shotwell/src/Photo.vala"
if (_inner_error_->domain == DATABASE_ERROR) {
#line 1922 "/home/jens/Source/shotwell/src/Photo.vala"
g_propagate_error (error, _inner_error_);
#line 1922 "/home/jens/Source/shotwell/src/Photo.vala"
_g_object_unref0 (map_iter);
#line 1922 "/home/jens/Source/shotwell/src/Photo.vala"
return;
#line 15037 "Photo.c"
} else {
#line 1922 "/home/jens/Source/shotwell/src/Photo.vala"
_g_object_unref0 (map_iter);
#line 1922 "/home/jens/Source/shotwell/src/Photo.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 1922 "/home/jens/Source/shotwell/src/Photo.vala"
g_clear_error (&_inner_error_);
#line 1922 "/home/jens/Source/shotwell/src/Photo.vala"
return;
#line 15047 "Photo.c"
}
}
#line 1915 "/home/jens/Source/shotwell/src/Photo.vala"
_g_object_unref0 (map_iter);
#line 15052 "Photo.c"
}
GFile* photo_get_actual_file (Photo* self) {
GFile* result = NULL;
PhotoFileReader* _tmp0_ = NULL;
PhotoFileReader* _tmp1_ = NULL;
GFile* _tmp2_ = NULL;
GFile* _tmp3_ = NULL;
#line 1927 "/home/jens/Source/shotwell/src/Photo.vala"
g_return_val_if_fail (IS_PHOTO (self), NULL);
#line 1928 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp0_ = photo_get_baseline_reader (self);
#line 1928 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp1_ = _tmp0_;
#line 1928 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp2_ = photo_file_adapter_get_file (G_TYPE_CHECK_INSTANCE_CAST (_tmp1_, TYPE_PHOTO_FILE_ADAPTER, PhotoFileAdapter));
#line 1928 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp3_ = _tmp2_;
#line 1928 "/home/jens/Source/shotwell/src/Photo.vala"
_photo_file_adapter_unref0 (_tmp1_);
#line 1928 "/home/jens/Source/shotwell/src/Photo.vala"
result = _tmp3_;
#line 1928 "/home/jens/Source/shotwell/src/Photo.vala"
return result;
#line 15078 "Photo.c"
}
static GFile* photo_real_get_master_file (MediaSource* base) {
Photo * self;
GFile* result = NULL;
PhotoFileReader* _tmp0_ = NULL;
PhotoFileReader* _tmp1_ = NULL;
GFile* _tmp2_ = NULL;
GFile* _tmp3_ = NULL;
#line 1931 "/home/jens/Source/shotwell/src/Photo.vala"
self = G_TYPE_CHECK_INSTANCE_CAST (base, TYPE_PHOTO, Photo);
#line 1932 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp0_ = photo_get_master_reader (self);
#line 1932 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp1_ = _tmp0_;
#line 1932 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp2_ = photo_file_adapter_get_file (G_TYPE_CHECK_INSTANCE_CAST (_tmp1_, TYPE_PHOTO_FILE_ADAPTER, PhotoFileAdapter));
#line 1932 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp3_ = _tmp2_;
#line 1932 "/home/jens/Source/shotwell/src/Photo.vala"
_photo_file_adapter_unref0 (_tmp1_);
#line 1932 "/home/jens/Source/shotwell/src/Photo.vala"
result = _tmp3_;
#line 1932 "/home/jens/Source/shotwell/src/Photo.vala"
return result;
#line 15105 "Photo.c"
}
GFile* photo_get_editable_file (Photo* self) {
GFile* result = NULL;
PhotoFileReader* reader = NULL;
PhotoFileReader* _tmp0_ = NULL;
GFile* _tmp1_ = NULL;
PhotoFileReader* _tmp2_ = NULL;
#line 1935 "/home/jens/Source/shotwell/src/Photo.vala"
g_return_val_if_fail (IS_PHOTO (self), NULL);
#line 1936 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp0_ = photo_get_editable_reader (self);
#line 1936 "/home/jens/Source/shotwell/src/Photo.vala"
reader = _tmp0_;
#line 1938 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp2_ = reader;
#line 1938 "/home/jens/Source/shotwell/src/Photo.vala"
if (_tmp2_ != NULL) {
#line 15125 "Photo.c"
PhotoFileReader* _tmp3_ = NULL;
GFile* _tmp4_ = NULL;
#line 1938 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp3_ = reader;
#line 1938 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp4_ = photo_file_adapter_get_file (G_TYPE_CHECK_INSTANCE_CAST (_tmp3_, TYPE_PHOTO_FILE_ADAPTER, PhotoFileAdapter));
#line 1938 "/home/jens/Source/shotwell/src/Photo.vala"
_g_object_unref0 (_tmp1_);
#line 1938 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp1_ = _tmp4_;
#line 15136 "Photo.c"
} else {
#line 1938 "/home/jens/Source/shotwell/src/Photo.vala"
_g_object_unref0 (_tmp1_);
#line 1938 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp1_ = NULL;
#line 15142 "Photo.c"
}
#line 1938 "/home/jens/Source/shotwell/src/Photo.vala"
result = _tmp1_;
#line 1938 "/home/jens/Source/shotwell/src/Photo.vala"
_photo_file_adapter_unref0 (reader);
#line 1938 "/home/jens/Source/shotwell/src/Photo.vala"
return result;
#line 15150 "Photo.c"
}
GeeCollection* photo_get_raw_developer_files (Photo* self) {
GeeCollection* result = NULL;
PhotoFileFormat _tmp0_ = 0;
GeeArrayList* ret = NULL;
GeeArrayList* _tmp1_ = NULL;
GError * _inner_error_ = NULL;
#line 1941 "/home/jens/Source/shotwell/src/Photo.vala"
g_return_val_if_fail (IS_PHOTO (self), NULL);
#line 1942 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp0_ = photo_get_master_file_format (self);
#line 1942 "/home/jens/Source/shotwell/src/Photo.vala"
if (_tmp0_ != PHOTO_FILE_FORMAT_RAW) {
#line 1943 "/home/jens/Source/shotwell/src/Photo.vala"
result = NULL;
#line 1943 "/home/jens/Source/shotwell/src/Photo.vala"
return result;
#line 15170 "Photo.c"
}
#line 1945 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp1_ = gee_array_list_new (g_file_get_type (), (GBoxedCopyFunc) g_object_ref, g_object_unref, NULL, NULL, NULL);
#line 1945 "/home/jens/Source/shotwell/src/Photo.vala"
ret = _tmp1_;
#line 15176 "Photo.c"
{
PhotoRow* _tmp2_ = NULL;
#line 1946 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp2_ = self->row;
#line 1946 "/home/jens/Source/shotwell/src/Photo.vala"
g_rec_mutex_lock (&self->priv->__lock_row);
#line 15183 "Photo.c"
{
{
GeeIterator* _row_it = NULL;
GeeHashMap* _tmp3_ = NULL;
GeeCollection* _tmp4_ = NULL;
GeeCollection* _tmp5_ = NULL;
GeeCollection* _tmp6_ = NULL;
GeeIterator* _tmp7_ = NULL;
GeeIterator* _tmp8_ = NULL;
#line 1947 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp3_ = self->priv->developments;
#line 1947 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp4_ = gee_abstract_map_get_values (G_TYPE_CHECK_INSTANCE_CAST (_tmp3_, GEE_TYPE_MAP, GeeMap));
#line 1947 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp5_ = _tmp4_;
#line 1947 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp6_ = _tmp5_;
#line 1947 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp7_ = gee_iterable_iterator (G_TYPE_CHECK_INSTANCE_CAST (_tmp6_, GEE_TYPE_ITERABLE, GeeIterable));
#line 1947 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp8_ = _tmp7_;
#line 1947 "/home/jens/Source/shotwell/src/Photo.vala"
_g_object_unref0 (_tmp6_);
#line 1947 "/home/jens/Source/shotwell/src/Photo.vala"
_row_it = _tmp8_;
#line 1947 "/home/jens/Source/shotwell/src/Photo.vala"
while (TRUE) {
#line 15211 "Photo.c"
GeeIterator* _tmp9_ = NULL;
gboolean _tmp10_ = FALSE;
BackingPhotoRow* row = NULL;
GeeIterator* _tmp11_ = NULL;
gpointer _tmp12_ = NULL;
GeeArrayList* _tmp13_ = NULL;
BackingPhotoRow* _tmp14_ = NULL;
const gchar* _tmp15_ = NULL;
GFile* _tmp16_ = NULL;
GFile* _tmp17_ = NULL;
#line 1947 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp9_ = _row_it;
#line 1947 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp10_ = gee_iterator_next (_tmp9_);
#line 1947 "/home/jens/Source/shotwell/src/Photo.vala"
if (!_tmp10_) {
#line 1947 "/home/jens/Source/shotwell/src/Photo.vala"
break;
#line 15230 "Photo.c"
}
#line 1947 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp11_ = _row_it;
#line 1947 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp12_ = gee_iterator_get (_tmp11_);
#line 1947 "/home/jens/Source/shotwell/src/Photo.vala"
row = (BackingPhotoRow*) _tmp12_;
#line 1948 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp13_ = ret;
#line 1948 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp14_ = row;
#line 1948 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp15_ = _tmp14_->filepath;
#line 1948 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp16_ = g_file_new_for_path (_tmp15_);
#line 1948 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp17_ = _tmp16_;
#line 1948 "/home/jens/Source/shotwell/src/Photo.vala"
gee_abstract_collection_add (G_TYPE_CHECK_INSTANCE_CAST (_tmp13_, GEE_TYPE_ABSTRACT_COLLECTION, GeeAbstractCollection), _tmp17_);
#line 1948 "/home/jens/Source/shotwell/src/Photo.vala"
_g_object_unref0 (_tmp17_);
#line 1947 "/home/jens/Source/shotwell/src/Photo.vala"
_backing_photo_row_unref0 (row);
#line 15254 "Photo.c"
}
#line 1947 "/home/jens/Source/shotwell/src/Photo.vala"
_g_object_unref0 (_row_it);
#line 15258 "Photo.c"
}
}
__finally317:
{
PhotoRow* _tmp18_ = NULL;
#line 1946 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp18_ = self->row;
#line 1946 "/home/jens/Source/shotwell/src/Photo.vala"
g_rec_mutex_unlock (&self->priv->__lock_row);
#line 15268 "Photo.c"
}
#line 1946 "/home/jens/Source/shotwell/src/Photo.vala"
if (G_UNLIKELY (_inner_error_ != NULL)) {
#line 1946 "/home/jens/Source/shotwell/src/Photo.vala"
_g_object_unref0 (ret);
#line 1946 "/home/jens/Source/shotwell/src/Photo.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 1946 "/home/jens/Source/shotwell/src/Photo.vala"
g_clear_error (&_inner_error_);
#line 1946 "/home/jens/Source/shotwell/src/Photo.vala"
return NULL;
#line 15280 "Photo.c"
}
}
#line 1951 "/home/jens/Source/shotwell/src/Photo.vala"
result = G_TYPE_CHECK_INSTANCE_CAST (ret, GEE_TYPE_COLLECTION, GeeCollection);
#line 1951 "/home/jens/Source/shotwell/src/Photo.vala"
return result;
#line 15287 "Photo.c"
}
GFile* photo_get_source_file (Photo* self) {
GFile* result = NULL;
PhotoFileReader* _tmp0_ = NULL;
PhotoFileReader* _tmp1_ = NULL;
GFile* _tmp2_ = NULL;
GFile* _tmp3_ = NULL;
#line 1954 "/home/jens/Source/shotwell/src/Photo.vala"
g_return_val_if_fail (IS_PHOTO (self), NULL);
#line 1955 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp0_ = photo_get_source_reader (self);
#line 1955 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp1_ = _tmp0_;
#line 1955 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp2_ = photo_file_adapter_get_file (G_TYPE_CHECK_INSTANCE_CAST (_tmp1_, TYPE_PHOTO_FILE_ADAPTER, PhotoFileAdapter));
#line 1955 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp3_ = _tmp2_;
#line 1955 "/home/jens/Source/shotwell/src/Photo.vala"
_photo_file_adapter_unref0 (_tmp1_);
#line 1955 "/home/jens/Source/shotwell/src/Photo.vala"
result = _tmp3_;
#line 1955 "/home/jens/Source/shotwell/src/Photo.vala"
return result;
#line 15313 "Photo.c"
}
PhotoFileFormat photo_get_file_format (Photo* self) {
PhotoFileFormat result = 0;
GError * _inner_error_ = NULL;
#line 1958 "/home/jens/Source/shotwell/src/Photo.vala"
g_return_val_if_fail (IS_PHOTO (self), 0);
#line 15322 "Photo.c"
{
PhotoRow* _tmp0_ = NULL;
#line 1959 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp0_ = self->row;
#line 1959 "/home/jens/Source/shotwell/src/Photo.vala"
g_rec_mutex_lock (&self->priv->__lock_row);
#line 15329 "Photo.c"
{
BackingPhotoRow* _tmp1_ = NULL;
PhotoFileFormat _tmp2_ = 0;
#line 1960 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp1_ = self->backing_photo_row;
#line 1960 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp2_ = _tmp1_->file_format;
#line 1960 "/home/jens/Source/shotwell/src/Photo.vala"
result = _tmp2_;
#line 15339 "Photo.c"
{
PhotoRow* _tmp3_ = NULL;
#line 1959 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp3_ = self->row;
#line 1959 "/home/jens/Source/shotwell/src/Photo.vala"
g_rec_mutex_unlock (&self->priv->__lock_row);
#line 15346 "Photo.c"
}
#line 1960 "/home/jens/Source/shotwell/src/Photo.vala"
return result;
#line 15350 "Photo.c"
}
__finally318:
{
PhotoRow* _tmp4_ = NULL;
#line 1959 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp4_ = self->row;
#line 1959 "/home/jens/Source/shotwell/src/Photo.vala"
g_rec_mutex_unlock (&self->priv->__lock_row);
#line 15359 "Photo.c"
}
#line 1959 "/home/jens/Source/shotwell/src/Photo.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 1959 "/home/jens/Source/shotwell/src/Photo.vala"
g_clear_error (&_inner_error_);
#line 1959 "/home/jens/Source/shotwell/src/Photo.vala"
return 0;
#line 15367 "Photo.c"
}
}
PhotoFileFormat photo_get_best_export_file_format (Photo* self) {
PhotoFileFormat result = 0;
PhotoFileFormat file_format = 0;
PhotoFileFormat _tmp0_ = 0;
PhotoFileFormat _tmp1_ = 0;
gboolean _tmp2_ = FALSE;
#line 1964 "/home/jens/Source/shotwell/src/Photo.vala"
g_return_val_if_fail (IS_PHOTO (self), 0);
#line 1965 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp0_ = photo_get_file_format (self);
#line 1965 "/home/jens/Source/shotwell/src/Photo.vala"
file_format = _tmp0_;
#line 1966 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp1_ = file_format;
#line 1966 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp2_ = photo_file_format_can_write (_tmp1_);
#line 1966 "/home/jens/Source/shotwell/src/Photo.vala"
if (!_tmp2_) {
#line 15390 "Photo.c"
PhotoFileFormat _tmp3_ = 0;
#line 1967 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp3_ = photo_file_format_get_system_default_format ();
#line 1967 "/home/jens/Source/shotwell/src/Photo.vala"
file_format = _tmp3_;
#line 15396 "Photo.c"
}
#line 1969 "/home/jens/Source/shotwell/src/Photo.vala"
result = file_format;
#line 1969 "/home/jens/Source/shotwell/src/Photo.vala"
return result;
#line 15402 "Photo.c"
}
PhotoFileFormat photo_get_master_file_format (Photo* self) {
PhotoFileFormat result = 0;
GError * _inner_error_ = NULL;
#line 1972 "/home/jens/Source/shotwell/src/Photo.vala"
g_return_val_if_fail (IS_PHOTO (self), 0);
#line 15411 "Photo.c"
{
PhotoRow* _tmp0_ = NULL;
#line 1973 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp0_ = self->row;
#line 1973 "/home/jens/Source/shotwell/src/Photo.vala"
g_rec_mutex_lock (&self->priv->__lock_row);
#line 15418 "Photo.c"
{
PhotoBackingReaders* _tmp1_ = NULL;
PhotoFileReader* _tmp2_ = NULL;
PhotoFileFormat _tmp3_ = 0;
#line 1974 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp1_ = self->priv->readers;
#line 1974 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp2_ = _tmp1_->master;
#line 1974 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp3_ = photo_file_adapter_get_file_format (G_TYPE_CHECK_INSTANCE_CAST (_tmp2_, TYPE_PHOTO_FILE_ADAPTER, PhotoFileAdapter));
#line 1974 "/home/jens/Source/shotwell/src/Photo.vala"
result = _tmp3_;
#line 15431 "Photo.c"
{
PhotoRow* _tmp4_ = NULL;
#line 1973 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp4_ = self->row;
#line 1973 "/home/jens/Source/shotwell/src/Photo.vala"
g_rec_mutex_unlock (&self->priv->__lock_row);
#line 15438 "Photo.c"
}
#line 1974 "/home/jens/Source/shotwell/src/Photo.vala"
return result;
#line 15442 "Photo.c"
}
__finally319:
{
PhotoRow* _tmp5_ = NULL;
#line 1973 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp5_ = self->row;
#line 1973 "/home/jens/Source/shotwell/src/Photo.vala"
g_rec_mutex_unlock (&self->priv->__lock_row);
#line 15451 "Photo.c"
}
#line 1973 "/home/jens/Source/shotwell/src/Photo.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 1973 "/home/jens/Source/shotwell/src/Photo.vala"
g_clear_error (&_inner_error_);
#line 1973 "/home/jens/Source/shotwell/src/Photo.vala"
return 0;
#line 15459 "Photo.c"
}
}
static time_t photo_real_get_timestamp (MediaSource* base) {
Photo * self;
time_t result = 0;
GError * _inner_error_ = NULL;
#line 1978 "/home/jens/Source/shotwell/src/Photo.vala"
self = G_TYPE_CHECK_INSTANCE_CAST (base, TYPE_PHOTO, Photo);
#line 15470 "Photo.c"
{
PhotoRow* _tmp0_ = NULL;
#line 1979 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp0_ = self->row;
#line 1979 "/home/jens/Source/shotwell/src/Photo.vala"
g_rec_mutex_lock (&self->priv->__lock_row);
#line 15477 "Photo.c"
{
BackingPhotoRow* _tmp1_ = NULL;
time_t _tmp2_ = 0;
#line 1980 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp1_ = self->backing_photo_row;
#line 1980 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp2_ = _tmp1_->timestamp;
#line 1980 "/home/jens/Source/shotwell/src/Photo.vala"
result = _tmp2_;
#line 15487 "Photo.c"
{
PhotoRow* _tmp3_ = NULL;
#line 1979 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp3_ = self->row;
#line 1979 "/home/jens/Source/shotwell/src/Photo.vala"
g_rec_mutex_unlock (&self->priv->__lock_row);
#line 15494 "Photo.c"
}
#line 1980 "/home/jens/Source/shotwell/src/Photo.vala"
return result;
#line 15498 "Photo.c"
}
__finally320:
{
PhotoRow* _tmp4_ = NULL;
#line 1979 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp4_ = self->row;
#line 1979 "/home/jens/Source/shotwell/src/Photo.vala"
g_rec_mutex_unlock (&self->priv->__lock_row);
#line 15507 "Photo.c"
}
#line 1979 "/home/jens/Source/shotwell/src/Photo.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 1979 "/home/jens/Source/shotwell/src/Photo.vala"
g_clear_error (&_inner_error_);
#line 1979 "/home/jens/Source/shotwell/src/Photo.vala"
return 0;
#line 15515 "Photo.c"
}
}
void photo_get_photo_id (Photo* self, PhotoID* result) {
GError * _inner_error_ = NULL;
#line 1984 "/home/jens/Source/shotwell/src/Photo.vala"
g_return_if_fail (IS_PHOTO (self));
#line 15524 "Photo.c"
{
PhotoRow* _tmp0_ = NULL;
#line 1985 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp0_ = self->row;
#line 1985 "/home/jens/Source/shotwell/src/Photo.vala"
g_rec_mutex_lock (&self->priv->__lock_row);
#line 15531 "Photo.c"
{
PhotoRow* _tmp1_ = NULL;
PhotoID _tmp2_ = {0};
#line 1986 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp1_ = self->row;
#line 1986 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp2_ = _tmp1_->photo_id;
#line 1986 "/home/jens/Source/shotwell/src/Photo.vala"
*result = _tmp2_;
#line 15541 "Photo.c"
{
PhotoRow* _tmp3_ = NULL;
#line 1985 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp3_ = self->row;
#line 1985 "/home/jens/Source/shotwell/src/Photo.vala"
g_rec_mutex_unlock (&self->priv->__lock_row);
#line 15548 "Photo.c"
}
#line 1986 "/home/jens/Source/shotwell/src/Photo.vala"
return;
#line 15552 "Photo.c"
}
__finally321:
{
PhotoRow* _tmp4_ = NULL;
#line 1985 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp4_ = self->row;
#line 1985 "/home/jens/Source/shotwell/src/Photo.vala"
g_rec_mutex_unlock (&self->priv->__lock_row);
#line 15561 "Photo.c"
}
#line 1985 "/home/jens/Source/shotwell/src/Photo.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 1985 "/home/jens/Source/shotwell/src/Photo.vala"
g_clear_error (&_inner_error_);
#line 1985 "/home/jens/Source/shotwell/src/Photo.vala"
return;
#line 15569 "Photo.c"
}
}
static inline void photo_real_get_event_id (MediaSource* base, EventID* result) {
Photo * self;
PhotoRow* _tmp0_ = NULL;
EventID _tmp1_ = {0};
#line 1991 "/home/jens/Source/shotwell/src/Photo.vala"
self = G_TYPE_CHECK_INSTANCE_CAST (base, TYPE_PHOTO, Photo);
#line 1992 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp0_ = self->row;
#line 1992 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp1_ = _tmp0_->event_id;
#line 1992 "/home/jens/Source/shotwell/src/Photo.vala"
*result = _tmp1_;
#line 1992 "/home/jens/Source/shotwell/src/Photo.vala"
return;
#line 15588 "Photo.c"
}
inline gint64 photo_get_raw_event_id (Photo* self) {
gint64 result = 0LL;
PhotoRow* _tmp0_ = NULL;
EventID _tmp1_ = {0};
gint64 _tmp2_ = 0LL;
#line 1996 "/home/jens/Source/shotwell/src/Photo.vala"
g_return_val_if_fail (IS_PHOTO (self), 0LL);
#line 1997 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp0_ = self->row;
#line 1997 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp1_ = _tmp0_->event_id;
#line 1997 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp2_ = _tmp1_.id;
#line 1997 "/home/jens/Source/shotwell/src/Photo.vala"
result = _tmp2_;
#line 1997 "/home/jens/Source/shotwell/src/Photo.vala"
return result;
#line 15609 "Photo.c"
}
static void photo_real_get_import_id (MediaSource* base, ImportID* result) {
Photo * self;
GError * _inner_error_ = NULL;
#line 2000 "/home/jens/Source/shotwell/src/Photo.vala"
self = G_TYPE_CHECK_INSTANCE_CAST (base, TYPE_PHOTO, Photo);
#line 15618 "Photo.c"
{
PhotoRow* _tmp0_ = NULL;
#line 2001 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp0_ = self->row;
#line 2001 "/home/jens/Source/shotwell/src/Photo.vala"
g_rec_mutex_lock (&self->priv->__lock_row);
#line 15625 "Photo.c"
{
PhotoRow* _tmp1_ = NULL;
ImportID _tmp2_ = {0};
#line 2002 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp1_ = self->row;
#line 2002 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp2_ = _tmp1_->import_id;
#line 2002 "/home/jens/Source/shotwell/src/Photo.vala"
*result = _tmp2_;
#line 15635 "Photo.c"
{
PhotoRow* _tmp3_ = NULL;
#line 2001 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp3_ = self->row;
#line 2001 "/home/jens/Source/shotwell/src/Photo.vala"
g_rec_mutex_unlock (&self->priv->__lock_row);
#line 15642 "Photo.c"
}
#line 2002 "/home/jens/Source/shotwell/src/Photo.vala"
return;
#line 15646 "Photo.c"
}
__finally322:
{
PhotoRow* _tmp4_ = NULL;
#line 2001 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp4_ = self->row;
#line 2001 "/home/jens/Source/shotwell/src/Photo.vala"
g_rec_mutex_unlock (&self->priv->__lock_row);
#line 15655 "Photo.c"
}
#line 2001 "/home/jens/Source/shotwell/src/Photo.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 2001 "/home/jens/Source/shotwell/src/Photo.vala"
g_clear_error (&_inner_error_);
#line 2001 "/home/jens/Source/shotwell/src/Photo.vala"
return;
#line 15663 "Photo.c"
}
}
void photo_get_editable_id (Photo* self, BackingPhotoID* result) {
GError * _inner_error_ = NULL;
#line 2006 "/home/jens/Source/shotwell/src/Photo.vala"
g_return_if_fail (IS_PHOTO (self));
#line 15672 "Photo.c"
{
PhotoRow* _tmp0_ = NULL;
#line 2007 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp0_ = self->row;
#line 2007 "/home/jens/Source/shotwell/src/Photo.vala"
g_rec_mutex_lock (&self->priv->__lock_row);
#line 15679 "Photo.c"
{
PhotoRow* _tmp1_ = NULL;
BackingPhotoID _tmp2_ = {0};
#line 2008 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp1_ = self->row;
#line 2008 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp2_ = _tmp1_->editable_id;
#line 2008 "/home/jens/Source/shotwell/src/Photo.vala"
*result = _tmp2_;
#line 15689 "Photo.c"
{
PhotoRow* _tmp3_ = NULL;
#line 2007 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp3_ = self->row;
#line 2007 "/home/jens/Source/shotwell/src/Photo.vala"
g_rec_mutex_unlock (&self->priv->__lock_row);
#line 15696 "Photo.c"
}
#line 2008 "/home/jens/Source/shotwell/src/Photo.vala"
return;
#line 15700 "Photo.c"
}
__finally323:
{
PhotoRow* _tmp4_ = NULL;
#line 2007 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp4_ = self->row;
#line 2007 "/home/jens/Source/shotwell/src/Photo.vala"
g_rec_mutex_unlock (&self->priv->__lock_row);
#line 15709 "Photo.c"
}
#line 2007 "/home/jens/Source/shotwell/src/Photo.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 2007 "/home/jens/Source/shotwell/src/Photo.vala"
g_clear_error (&_inner_error_);
#line 2007 "/home/jens/Source/shotwell/src/Photo.vala"
return;
#line 15717 "Photo.c"
}
}
static gchar* photo_real_get_master_md5 (MediaSource* base) {
Photo * self;
gchar* result = NULL;
GError * _inner_error_ = NULL;
#line 2012 "/home/jens/Source/shotwell/src/Photo.vala"
self = G_TYPE_CHECK_INSTANCE_CAST (base, TYPE_PHOTO, Photo);
#line 15728 "Photo.c"
{
PhotoRow* _tmp0_ = NULL;
#line 2013 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp0_ = self->row;
#line 2013 "/home/jens/Source/shotwell/src/Photo.vala"
g_rec_mutex_lock (&self->priv->__lock_row);
#line 15735 "Photo.c"
{
PhotoRow* _tmp1_ = NULL;
const gchar* _tmp2_ = NULL;
gchar* _tmp3_ = NULL;
#line 2014 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp1_ = self->row;
#line 2014 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp2_ = _tmp1_->md5;
#line 2014 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp3_ = g_strdup (_tmp2_);
#line 2014 "/home/jens/Source/shotwell/src/Photo.vala"
result = _tmp3_;
#line 15748 "Photo.c"
{
PhotoRow* _tmp4_ = NULL;
#line 2013 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp4_ = self->row;
#line 2013 "/home/jens/Source/shotwell/src/Photo.vala"
g_rec_mutex_unlock (&self->priv->__lock_row);
#line 15755 "Photo.c"
}
#line 2014 "/home/jens/Source/shotwell/src/Photo.vala"
return result;
#line 15759 "Photo.c"
}
__finally324:
{
PhotoRow* _tmp5_ = NULL;
#line 2013 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp5_ = self->row;
#line 2013 "/home/jens/Source/shotwell/src/Photo.vala"
g_rec_mutex_unlock (&self->priv->__lock_row);
#line 15768 "Photo.c"
}
#line 2013 "/home/jens/Source/shotwell/src/Photo.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 2013 "/home/jens/Source/shotwell/src/Photo.vala"
g_clear_error (&_inner_error_);
#line 2013 "/home/jens/Source/shotwell/src/Photo.vala"
return NULL;
#line 15776 "Photo.c"
}
}
guint64 photo_get_flags (Photo* self) {
guint64 result = 0ULL;
GError * _inner_error_ = NULL;
#line 2020 "/home/jens/Source/shotwell/src/Photo.vala"
g_return_val_if_fail (IS_PHOTO (self), 0ULL);
#line 15786 "Photo.c"
{
PhotoRow* _tmp0_ = NULL;
#line 2021 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp0_ = self->row;
#line 2021 "/home/jens/Source/shotwell/src/Photo.vala"
g_rec_mutex_lock (&self->priv->__lock_row);
#line 15793 "Photo.c"
{
PhotoRow* _tmp1_ = NULL;
guint64 _tmp2_ = 0ULL;
#line 2022 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp1_ = self->row;
#line 2022 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp2_ = _tmp1_->flags;
#line 2022 "/home/jens/Source/shotwell/src/Photo.vala"
result = _tmp2_;
#line 15803 "Photo.c"
{
PhotoRow* _tmp3_ = NULL;
#line 2021 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp3_ = self->row;
#line 2021 "/home/jens/Source/shotwell/src/Photo.vala"
g_rec_mutex_unlock (&self->priv->__lock_row);
#line 15810 "Photo.c"
}
#line 2022 "/home/jens/Source/shotwell/src/Photo.vala"
return result;
#line 15814 "Photo.c"
}
__finally325:
{
PhotoRow* _tmp4_ = NULL;
#line 2021 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp4_ = self->row;
#line 2021 "/home/jens/Source/shotwell/src/Photo.vala"
g_rec_mutex_unlock (&self->priv->__lock_row);
#line 15823 "Photo.c"
}
#line 2021 "/home/jens/Source/shotwell/src/Photo.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 2021 "/home/jens/Source/shotwell/src/Photo.vala"
g_clear_error (&_inner_error_);
#line 2021 "/home/jens/Source/shotwell/src/Photo.vala"
return 0ULL;
#line 15831 "Photo.c"
}
}
static void photo_notify_flags_altered (Photo* self, Alteration* additional_alteration) {
Alteration* alteration = NULL;
Alteration* _tmp0_ = NULL;
Alteration* _tmp1_ = NULL;
Alteration* _tmp5_ = NULL;
#line 2026 "/home/jens/Source/shotwell/src/Photo.vala"
g_return_if_fail (IS_PHOTO (self));
#line 2026 "/home/jens/Source/shotwell/src/Photo.vala"
g_return_if_fail ((additional_alteration == NULL) || IS_ALTERATION (additional_alteration));
#line 2027 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp0_ = alteration_new ("metadata", "flags");
#line 2027 "/home/jens/Source/shotwell/src/Photo.vala"
alteration = _tmp0_;
#line 2028 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp1_ = additional_alteration;
#line 2028 "/home/jens/Source/shotwell/src/Photo.vala"
if (_tmp1_ != NULL) {
#line 15853 "Photo.c"
Alteration* _tmp2_ = NULL;
Alteration* _tmp3_ = NULL;
Alteration* _tmp4_ = NULL;
#line 2029 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp2_ = alteration;
#line 2029 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp3_ = additional_alteration;
#line 2029 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp4_ = alteration_compress (_tmp2_, _tmp3_);
#line 2029 "/home/jens/Source/shotwell/src/Photo.vala"
_alteration_unref0 (alteration);
#line 2029 "/home/jens/Source/shotwell/src/Photo.vala"
alteration = _tmp4_;
#line 15867 "Photo.c"
}
#line 2031 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp5_ = alteration;
#line 2031 "/home/jens/Source/shotwell/src/Photo.vala"
data_object_notify_altered (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_DATA_OBJECT, DataObject), _tmp5_);
#line 2026 "/home/jens/Source/shotwell/src/Photo.vala"
_alteration_unref0 (alteration);
#line 15875 "Photo.c"
}
guint64 photo_replace_flags (Photo* self, guint64 flags, Alteration* additional_alteration) {
guint64 result = 0ULL;
gboolean committed = FALSE;
gboolean _tmp10_ = FALSE;
guint64 _tmp12_ = 0ULL;
GError * _inner_error_ = NULL;
#line 2034 "/home/jens/Source/shotwell/src/Photo.vala"
g_return_val_if_fail (IS_PHOTO (self), 0ULL);
#line 2034 "/home/jens/Source/shotwell/src/Photo.vala"
g_return_val_if_fail ((additional_alteration == NULL) || IS_ALTERATION (additional_alteration), 0ULL);
#line 15889 "Photo.c"
{
PhotoRow* _tmp0_ = NULL;
#line 2036 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp0_ = self->row;
#line 2036 "/home/jens/Source/shotwell/src/Photo.vala"
g_rec_mutex_lock (&self->priv->__lock_row);
#line 15896 "Photo.c"
{
PhotoTable* _tmp1_ = NULL;
PhotoTable* _tmp2_ = NULL;
PhotoID _tmp3_ = {0};
guint64 _tmp4_ = 0ULL;
gboolean _tmp5_ = FALSE;
gboolean _tmp6_ = FALSE;
#line 2037 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp1_ = photo_table_get_instance ();
#line 2037 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp2_ = _tmp1_;
#line 2037 "/home/jens/Source/shotwell/src/Photo.vala"
photo_get_photo_id (self, &_tmp3_);
#line 2037 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp4_ = flags;
#line 2037 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp5_ = photo_table_replace_flags (_tmp2_, &_tmp3_, _tmp4_);
#line 2037 "/home/jens/Source/shotwell/src/Photo.vala"
committed = _tmp5_;
#line 2037 "/home/jens/Source/shotwell/src/Photo.vala"
_database_table_unref0 (_tmp2_);
#line 2038 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp6_ = committed;
#line 2038 "/home/jens/Source/shotwell/src/Photo.vala"
if (_tmp6_) {
#line 15922 "Photo.c"
PhotoRow* _tmp7_ = NULL;
guint64 _tmp8_ = 0ULL;
#line 2039 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp7_ = self->row;
#line 2039 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp8_ = flags;
#line 2039 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp7_->flags = _tmp8_;
#line 15931 "Photo.c"
}
}
__finally326:
{
PhotoRow* _tmp9_ = NULL;
#line 2036 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp9_ = self->row;
#line 2036 "/home/jens/Source/shotwell/src/Photo.vala"
g_rec_mutex_unlock (&self->priv->__lock_row);
#line 15941 "Photo.c"
}
#line 2036 "/home/jens/Source/shotwell/src/Photo.vala"
if (G_UNLIKELY (_inner_error_ != NULL)) {
#line 2036 "/home/jens/Source/shotwell/src/Photo.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 2036 "/home/jens/Source/shotwell/src/Photo.vala"
g_clear_error (&_inner_error_);
#line 2036 "/home/jens/Source/shotwell/src/Photo.vala"
return 0ULL;
#line 15951 "Photo.c"
}
}
#line 2042 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp10_ = committed;
#line 2042 "/home/jens/Source/shotwell/src/Photo.vala"
if (_tmp10_) {
#line 15958 "Photo.c"
Alteration* _tmp11_ = NULL;
#line 2043 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp11_ = additional_alteration;
#line 2043 "/home/jens/Source/shotwell/src/Photo.vala"
photo_notify_flags_altered (self, _tmp11_);
#line 15964 "Photo.c"
}
#line 2045 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp12_ = flags;
#line 2045 "/home/jens/Source/shotwell/src/Photo.vala"
result = _tmp12_;
#line 2045 "/home/jens/Source/shotwell/src/Photo.vala"
return result;
#line 15972 "Photo.c"
}
gboolean photo_is_flag_set (Photo* self, guint64 mask) {
gboolean result = FALSE;
GError * _inner_error_ = NULL;
#line 2048 "/home/jens/Source/shotwell/src/Photo.vala"
g_return_val_if_fail (IS_PHOTO (self), FALSE);
#line 15981 "Photo.c"
{
PhotoRow* _tmp0_ = NULL;
#line 2049 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp0_ = self->row;
#line 2049 "/home/jens/Source/shotwell/src/Photo.vala"
g_rec_mutex_lock (&self->priv->__lock_row);
#line 15988 "Photo.c"
{
PhotoRow* _tmp1_ = NULL;
guint64 _tmp2_ = 0ULL;
guint64 _tmp3_ = 0ULL;
gboolean _tmp4_ = FALSE;
#line 2050 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp1_ = self->row;
#line 2050 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp2_ = _tmp1_->flags;
#line 2050 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp3_ = mask;
#line 2050 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp4_ = media_source_internal_is_flag_set (_tmp2_, _tmp3_);
#line 2050 "/home/jens/Source/shotwell/src/Photo.vala"
result = _tmp4_;
#line 16004 "Photo.c"
{
PhotoRow* _tmp5_ = NULL;
#line 2049 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp5_ = self->row;
#line 2049 "/home/jens/Source/shotwell/src/Photo.vala"
g_rec_mutex_unlock (&self->priv->__lock_row);
#line 16011 "Photo.c"
}
#line 2050 "/home/jens/Source/shotwell/src/Photo.vala"
return result;
#line 16015 "Photo.c"
}
__finally327:
{
PhotoRow* _tmp6_ = NULL;
#line 2049 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp6_ = self->row;
#line 2049 "/home/jens/Source/shotwell/src/Photo.vala"
g_rec_mutex_unlock (&self->priv->__lock_row);
#line 16024 "Photo.c"
}
#line 2049 "/home/jens/Source/shotwell/src/Photo.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 2049 "/home/jens/Source/shotwell/src/Photo.vala"
g_clear_error (&_inner_error_);
#line 2049 "/home/jens/Source/shotwell/src/Photo.vala"
return FALSE;
#line 16032 "Photo.c"
}
}
guint64 photo_add_flags (Photo* self, guint64 mask, Alteration* additional_alteration) {
guint64 result = 0ULL;
guint64 flags = 0ULL;
gboolean committed = FALSE;
gboolean _tmp17_ = FALSE;
GError * _inner_error_ = NULL;
#line 2054 "/home/jens/Source/shotwell/src/Photo.vala"
g_return_val_if_fail (IS_PHOTO (self), 0ULL);
#line 2054 "/home/jens/Source/shotwell/src/Photo.vala"
g_return_val_if_fail ((additional_alteration == NULL) || IS_ALTERATION (additional_alteration), 0ULL);
#line 2055 "/home/jens/Source/shotwell/src/Photo.vala"
flags = (guint64) 0;
#line 2057 "/home/jens/Source/shotwell/src/Photo.vala"
committed = FALSE;
#line 16051 "Photo.c"
{
PhotoRow* _tmp0_ = NULL;
#line 2058 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp0_ = self->row;
#line 2058 "/home/jens/Source/shotwell/src/Photo.vala"
g_rec_mutex_lock (&self->priv->__lock_row);
#line 16058 "Photo.c"
{
PhotoRow* _tmp1_ = NULL;
guint64 _tmp2_ = 0ULL;
guint64 _tmp3_ = 0ULL;
guint64 _tmp4_ = 0ULL;
PhotoRow* _tmp5_ = NULL;
guint64 _tmp6_ = 0ULL;
guint64 _tmp7_ = 0ULL;
#line 2059 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp1_ = self->row;
#line 2059 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp2_ = _tmp1_->flags;
#line 2059 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp3_ = mask;
#line 2059 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp4_ = media_source_internal_add_flags (_tmp2_, _tmp3_);
#line 2059 "/home/jens/Source/shotwell/src/Photo.vala"
flags = _tmp4_;
#line 2060 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp5_ = self->row;
#line 2060 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp6_ = _tmp5_->flags;
#line 2060 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp7_ = flags;
#line 2060 "/home/jens/Source/shotwell/src/Photo.vala"
if (_tmp6_ != _tmp7_) {
#line 16085 "Photo.c"
PhotoTable* _tmp8_ = NULL;
PhotoTable* _tmp9_ = NULL;
PhotoID _tmp10_ = {0};
guint64 _tmp11_ = 0ULL;
gboolean _tmp12_ = FALSE;
gboolean _tmp13_ = FALSE;
#line 2061 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp8_ = photo_table_get_instance ();
#line 2061 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp9_ = _tmp8_;
#line 2061 "/home/jens/Source/shotwell/src/Photo.vala"
photo_get_photo_id (self, &_tmp10_);
#line 2061 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp11_ = flags;
#line 2061 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp12_ = photo_table_replace_flags (_tmp9_, &_tmp10_, _tmp11_);
#line 2061 "/home/jens/Source/shotwell/src/Photo.vala"
committed = _tmp12_;
#line 2061 "/home/jens/Source/shotwell/src/Photo.vala"
_database_table_unref0 (_tmp9_);
#line 2062 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp13_ = committed;
#line 2062 "/home/jens/Source/shotwell/src/Photo.vala"
if (_tmp13_) {
#line 16110 "Photo.c"
PhotoRow* _tmp14_ = NULL;
guint64 _tmp15_ = 0ULL;
#line 2063 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp14_ = self->row;
#line 2063 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp15_ = flags;
#line 2063 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp14_->flags = _tmp15_;
#line 16119 "Photo.c"
}
}
}
__finally328:
{
PhotoRow* _tmp16_ = NULL;
#line 2058 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp16_ = self->row;
#line 2058 "/home/jens/Source/shotwell/src/Photo.vala"
g_rec_mutex_unlock (&self->priv->__lock_row);
#line 16130 "Photo.c"
}
#line 2058 "/home/jens/Source/shotwell/src/Photo.vala"
if (G_UNLIKELY (_inner_error_ != NULL)) {
#line 2058 "/home/jens/Source/shotwell/src/Photo.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 2058 "/home/jens/Source/shotwell/src/Photo.vala"
g_clear_error (&_inner_error_);
#line 2058 "/home/jens/Source/shotwell/src/Photo.vala"
return 0ULL;
#line 16140 "Photo.c"
}
}
#line 2067 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp17_ = committed;
#line 2067 "/home/jens/Source/shotwell/src/Photo.vala"
if (_tmp17_) {
#line 16147 "Photo.c"
Alteration* _tmp18_ = NULL;
#line 2068 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp18_ = additional_alteration;
#line 2068 "/home/jens/Source/shotwell/src/Photo.vala"
photo_notify_flags_altered (self, _tmp18_);
#line 16153 "Photo.c"
}
#line 2070 "/home/jens/Source/shotwell/src/Photo.vala"
result = flags;
#line 2070 "/home/jens/Source/shotwell/src/Photo.vala"
return result;
#line 16159 "Photo.c"
}
guint64 photo_remove_flags (Photo* self, guint64 mask, Alteration* additional_alteration) {
guint64 result = 0ULL;
guint64 flags = 0ULL;
gboolean committed = FALSE;
gboolean _tmp17_ = FALSE;
GError * _inner_error_ = NULL;
#line 2073 "/home/jens/Source/shotwell/src/Photo.vala"
g_return_val_if_fail (IS_PHOTO (self), 0ULL);
#line 2073 "/home/jens/Source/shotwell/src/Photo.vala"
g_return_val_if_fail ((additional_alteration == NULL) || IS_ALTERATION (additional_alteration), 0ULL);
#line 2074 "/home/jens/Source/shotwell/src/Photo.vala"
flags = (guint64) 0;
#line 2076 "/home/jens/Source/shotwell/src/Photo.vala"
committed = FALSE;
#line 16177 "Photo.c"
{
PhotoRow* _tmp0_ = NULL;
#line 2077 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp0_ = self->row;
#line 2077 "/home/jens/Source/shotwell/src/Photo.vala"
g_rec_mutex_lock (&self->priv->__lock_row);
#line 16184 "Photo.c"
{
PhotoRow* _tmp1_ = NULL;
guint64 _tmp2_ = 0ULL;
guint64 _tmp3_ = 0ULL;
guint64 _tmp4_ = 0ULL;
PhotoRow* _tmp5_ = NULL;
guint64 _tmp6_ = 0ULL;
guint64 _tmp7_ = 0ULL;
#line 2078 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp1_ = self->row;
#line 2078 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp2_ = _tmp1_->flags;
#line 2078 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp3_ = mask;
#line 2078 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp4_ = media_source_internal_remove_flags (_tmp2_, _tmp3_);
#line 2078 "/home/jens/Source/shotwell/src/Photo.vala"
flags = _tmp4_;
#line 2079 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp5_ = self->row;
#line 2079 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp6_ = _tmp5_->flags;
#line 2079 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp7_ = flags;
#line 2079 "/home/jens/Source/shotwell/src/Photo.vala"
if (_tmp6_ != _tmp7_) {
#line 16211 "Photo.c"
PhotoTable* _tmp8_ = NULL;
PhotoTable* _tmp9_ = NULL;
PhotoID _tmp10_ = {0};
guint64 _tmp11_ = 0ULL;
gboolean _tmp12_ = FALSE;
gboolean _tmp13_ = FALSE;
#line 2080 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp8_ = photo_table_get_instance ();
#line 2080 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp9_ = _tmp8_;
#line 2080 "/home/jens/Source/shotwell/src/Photo.vala"
photo_get_photo_id (self, &_tmp10_);
#line 2080 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp11_ = flags;
#line 2080 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp12_ = photo_table_replace_flags (_tmp9_, &_tmp10_, _tmp11_);
#line 2080 "/home/jens/Source/shotwell/src/Photo.vala"
committed = _tmp12_;
#line 2080 "/home/jens/Source/shotwell/src/Photo.vala"
_database_table_unref0 (_tmp9_);
#line 2081 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp13_ = committed;
#line 2081 "/home/jens/Source/shotwell/src/Photo.vala"
if (_tmp13_) {
#line 16236 "Photo.c"
PhotoRow* _tmp14_ = NULL;
guint64 _tmp15_ = 0ULL;
#line 2082 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp14_ = self->row;
#line 2082 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp15_ = flags;
#line 2082 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp14_->flags = _tmp15_;
#line 16245 "Photo.c"
}
}
}
__finally329:
{
PhotoRow* _tmp16_ = NULL;
#line 2077 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp16_ = self->row;
#line 2077 "/home/jens/Source/shotwell/src/Photo.vala"
g_rec_mutex_unlock (&self->priv->__lock_row);
#line 16256 "Photo.c"
}
#line 2077 "/home/jens/Source/shotwell/src/Photo.vala"
if (G_UNLIKELY (_inner_error_ != NULL)) {
#line 2077 "/home/jens/Source/shotwell/src/Photo.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 2077 "/home/jens/Source/shotwell/src/Photo.vala"
g_clear_error (&_inner_error_);
#line 2077 "/home/jens/Source/shotwell/src/Photo.vala"
return 0ULL;
#line 16266 "Photo.c"
}
}
#line 2086 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp17_ = committed;
#line 2086 "/home/jens/Source/shotwell/src/Photo.vala"
if (_tmp17_) {
#line 16273 "Photo.c"
Alteration* _tmp18_ = NULL;
#line 2087 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp18_ = additional_alteration;
#line 2087 "/home/jens/Source/shotwell/src/Photo.vala"
photo_notify_flags_altered (self, _tmp18_);
#line 16279 "Photo.c"
}
#line 2089 "/home/jens/Source/shotwell/src/Photo.vala"
result = flags;
#line 2089 "/home/jens/Source/shotwell/src/Photo.vala"
return result;
#line 16285 "Photo.c"
}
guint64 photo_add_remove_flags (Photo* self, guint64 add, guint64 remove, Alteration* additional_alteration) {
guint64 result = 0ULL;
guint64 flags = 0ULL;
gboolean committed = FALSE;
gboolean _tmp17_ = FALSE;
GError * _inner_error_ = NULL;
#line 2092 "/home/jens/Source/shotwell/src/Photo.vala"
g_return_val_if_fail (IS_PHOTO (self), 0ULL);
#line 2092 "/home/jens/Source/shotwell/src/Photo.vala"
g_return_val_if_fail ((additional_alteration == NULL) || IS_ALTERATION (additional_alteration), 0ULL);
#line 2093 "/home/jens/Source/shotwell/src/Photo.vala"
flags = (guint64) 0;
#line 2095 "/home/jens/Source/shotwell/src/Photo.vala"
committed = FALSE;
#line 16303 "Photo.c"
{
PhotoRow* _tmp0_ = NULL;
#line 2096 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp0_ = self->row;
#line 2096 "/home/jens/Source/shotwell/src/Photo.vala"
g_rec_mutex_lock (&self->priv->__lock_row);
#line 16310 "Photo.c"
{
PhotoRow* _tmp1_ = NULL;
guint64 _tmp2_ = 0ULL;
guint64 _tmp3_ = 0ULL;
guint64 _tmp4_ = 0ULL;
PhotoRow* _tmp5_ = NULL;
guint64 _tmp6_ = 0ULL;
guint64 _tmp7_ = 0ULL;
#line 2097 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp1_ = self->row;
#line 2097 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp2_ = _tmp1_->flags;
#line 2097 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp3_ = add;
#line 2097 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp4_ = remove;
#line 2097 "/home/jens/Source/shotwell/src/Photo.vala"
flags = (_tmp2_ | _tmp3_) & (~_tmp4_);
#line 2098 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp5_ = self->row;
#line 2098 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp6_ = _tmp5_->flags;
#line 2098 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp7_ = flags;
#line 2098 "/home/jens/Source/shotwell/src/Photo.vala"
if (_tmp6_ != _tmp7_) {
#line 16337 "Photo.c"
PhotoTable* _tmp8_ = NULL;
PhotoTable* _tmp9_ = NULL;
PhotoID _tmp10_ = {0};
guint64 _tmp11_ = 0ULL;
gboolean _tmp12_ = FALSE;
gboolean _tmp13_ = FALSE;
#line 2099 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp8_ = photo_table_get_instance ();
#line 2099 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp9_ = _tmp8_;
#line 2099 "/home/jens/Source/shotwell/src/Photo.vala"
photo_get_photo_id (self, &_tmp10_);
#line 2099 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp11_ = flags;
#line 2099 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp12_ = photo_table_replace_flags (_tmp9_, &_tmp10_, _tmp11_);
#line 2099 "/home/jens/Source/shotwell/src/Photo.vala"
committed = _tmp12_;
#line 2099 "/home/jens/Source/shotwell/src/Photo.vala"
_database_table_unref0 (_tmp9_);
#line 2100 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp13_ = committed;
#line 2100 "/home/jens/Source/shotwell/src/Photo.vala"
if (_tmp13_) {
#line 16362 "Photo.c"
PhotoRow* _tmp14_ = NULL;
guint64 _tmp15_ = 0ULL;
#line 2101 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp14_ = self->row;
#line 2101 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp15_ = flags;
#line 2101 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp14_->flags = _tmp15_;
#line 16371 "Photo.c"
}
}
}
__finally330:
{
PhotoRow* _tmp16_ = NULL;
#line 2096 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp16_ = self->row;
#line 2096 "/home/jens/Source/shotwell/src/Photo.vala"
g_rec_mutex_unlock (&self->priv->__lock_row);
#line 16382 "Photo.c"
}
#line 2096 "/home/jens/Source/shotwell/src/Photo.vala"
if (G_UNLIKELY (_inner_error_ != NULL)) {
#line 2096 "/home/jens/Source/shotwell/src/Photo.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 2096 "/home/jens/Source/shotwell/src/Photo.vala"
g_clear_error (&_inner_error_);
#line 2096 "/home/jens/Source/shotwell/src/Photo.vala"
return 0ULL;
#line 16392 "Photo.c"
}
}
#line 2105 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp17_ = committed;
#line 2105 "/home/jens/Source/shotwell/src/Photo.vala"
if (_tmp17_) {
#line 16399 "Photo.c"
Alteration* _tmp18_ = NULL;
#line 2106 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp18_ = additional_alteration;
#line 2106 "/home/jens/Source/shotwell/src/Photo.vala"
photo_notify_flags_altered (self, _tmp18_);
#line 16405 "Photo.c"
}
#line 2108 "/home/jens/Source/shotwell/src/Photo.vala"
result = flags;
#line 2108 "/home/jens/Source/shotwell/src/Photo.vala"
return result;
#line 16411 "Photo.c"
}
void photo_add_remove_many_flags (GeeCollection* add, guint64 add_mask, Alteration* additional_add_alteration, GeeCollection* remove, guint64 remove_mask, Alteration* additional_remove_alteration, GError** error) {
GeeCollection* _tmp0_ = NULL;
GeeCollection* _tmp10_ = NULL;
GError * _inner_error_ = NULL;
#line 2111 "/home/jens/Source/shotwell/src/Photo.vala"
g_return_if_fail ((add == NULL) || GEE_IS_COLLECTION (add));
#line 2111 "/home/jens/Source/shotwell/src/Photo.vala"
g_return_if_fail ((additional_add_alteration == NULL) || IS_ALTERATION (additional_add_alteration));
#line 2111 "/home/jens/Source/shotwell/src/Photo.vala"
g_return_if_fail ((remove == NULL) || GEE_IS_COLLECTION (remove));
#line 2111 "/home/jens/Source/shotwell/src/Photo.vala"
g_return_if_fail ((additional_remove_alteration == NULL) || IS_ALTERATION (additional_remove_alteration));
#line 2114 "/home/jens/Source/shotwell/src/Photo.vala"
database_table_begin_transaction ();
#line 2116 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp0_ = add;
#line 2116 "/home/jens/Source/shotwell/src/Photo.vala"
if (_tmp0_ != NULL) {
#line 16433 "Photo.c"
{
GeeIterator* _photo_it = NULL;
GeeCollection* _tmp1_ = NULL;
GeeIterator* _tmp2_ = NULL;
#line 2117 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp1_ = add;
#line 2117 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp2_ = gee_iterable_iterator (G_TYPE_CHECK_INSTANCE_CAST (_tmp1_, GEE_TYPE_ITERABLE, GeeIterable));
#line 2117 "/home/jens/Source/shotwell/src/Photo.vala"
_photo_it = _tmp2_;
#line 2117 "/home/jens/Source/shotwell/src/Photo.vala"
while (TRUE) {
#line 16446 "Photo.c"
GeeIterator* _tmp3_ = NULL;
gboolean _tmp4_ = FALSE;
Photo* photo = NULL;
GeeIterator* _tmp5_ = NULL;
gpointer _tmp6_ = NULL;
Photo* _tmp7_ = NULL;
guint64 _tmp8_ = 0ULL;
Alteration* _tmp9_ = NULL;
#line 2117 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp3_ = _photo_it;
#line 2117 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp4_ = gee_iterator_next (_tmp3_);
#line 2117 "/home/jens/Source/shotwell/src/Photo.vala"
if (!_tmp4_) {
#line 2117 "/home/jens/Source/shotwell/src/Photo.vala"
break;
#line 16463 "Photo.c"
}
#line 2117 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp5_ = _photo_it;
#line 2117 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp6_ = gee_iterator_get (_tmp5_);
#line 2117 "/home/jens/Source/shotwell/src/Photo.vala"
photo = (Photo*) _tmp6_;
#line 2118 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp7_ = photo;
#line 2118 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp8_ = add_mask;
#line 2118 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp9_ = additional_add_alteration;
#line 2118 "/home/jens/Source/shotwell/src/Photo.vala"
photo_add_flags (_tmp7_, _tmp8_, _tmp9_);
#line 2117 "/home/jens/Source/shotwell/src/Photo.vala"
_g_object_unref0 (photo);
#line 16481 "Photo.c"
}
#line 2117 "/home/jens/Source/shotwell/src/Photo.vala"
_g_object_unref0 (_photo_it);
#line 16485 "Photo.c"
}
}
#line 2121 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp10_ = remove;
#line 2121 "/home/jens/Source/shotwell/src/Photo.vala"
if (_tmp10_ != NULL) {
#line 16492 "Photo.c"
{
GeeIterator* _photo_it = NULL;
GeeCollection* _tmp11_ = NULL;
GeeIterator* _tmp12_ = NULL;
#line 2122 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp11_ = remove;
#line 2122 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp12_ = gee_iterable_iterator (G_TYPE_CHECK_INSTANCE_CAST (_tmp11_, GEE_TYPE_ITERABLE, GeeIterable));
#line 2122 "/home/jens/Source/shotwell/src/Photo.vala"
_photo_it = _tmp12_;
#line 2122 "/home/jens/Source/shotwell/src/Photo.vala"
while (TRUE) {
#line 16505 "Photo.c"
GeeIterator* _tmp13_ = NULL;
gboolean _tmp14_ = FALSE;
Photo* photo = NULL;
GeeIterator* _tmp15_ = NULL;
gpointer _tmp16_ = NULL;
Photo* _tmp17_ = NULL;
guint64 _tmp18_ = 0ULL;
Alteration* _tmp19_ = NULL;
#line 2122 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp13_ = _photo_it;
#line 2122 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp14_ = gee_iterator_next (_tmp13_);
#line 2122 "/home/jens/Source/shotwell/src/Photo.vala"
if (!_tmp14_) {
#line 2122 "/home/jens/Source/shotwell/src/Photo.vala"
break;
#line 16522 "Photo.c"
}
#line 2122 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp15_ = _photo_it;
#line 2122 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp16_ = gee_iterator_get (_tmp15_);
#line 2122 "/home/jens/Source/shotwell/src/Photo.vala"
photo = (Photo*) _tmp16_;
#line 2123 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp17_ = photo;
#line 2123 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp18_ = remove_mask;
#line 2123 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp19_ = additional_remove_alteration;
#line 2123 "/home/jens/Source/shotwell/src/Photo.vala"
photo_remove_flags (_tmp17_, _tmp18_, _tmp19_);
#line 2122 "/home/jens/Source/shotwell/src/Photo.vala"
_g_object_unref0 (photo);
#line 16540 "Photo.c"
}
#line 2122 "/home/jens/Source/shotwell/src/Photo.vala"
_g_object_unref0 (_photo_it);
#line 16544 "Photo.c"
}
}
#line 2126 "/home/jens/Source/shotwell/src/Photo.vala"
database_table_commit_transaction (&_inner_error_);
#line 2126 "/home/jens/Source/shotwell/src/Photo.vala"
if (G_UNLIKELY (_inner_error_ != NULL)) {
#line 2126 "/home/jens/Source/shotwell/src/Photo.vala"
if (_inner_error_->domain == DATABASE_ERROR) {
#line 2126 "/home/jens/Source/shotwell/src/Photo.vala"
g_propagate_error (error, _inner_error_);
#line 2126 "/home/jens/Source/shotwell/src/Photo.vala"
return;
#line 16557 "Photo.c"
} else {
#line 2126 "/home/jens/Source/shotwell/src/Photo.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 2126 "/home/jens/Source/shotwell/src/Photo.vala"
g_clear_error (&_inner_error_);
#line 2126 "/home/jens/Source/shotwell/src/Photo.vala"
return;
#line 16565 "Photo.c"
}
}
}
guint64 photo_toggle_flags (Photo* self, guint64 mask, Alteration* additional_alteration) {
guint64 result = 0ULL;
guint64 flags = 0ULL;
gboolean committed = FALSE;
gboolean _tmp16_ = FALSE;
GError * _inner_error_ = NULL;
#line 2129 "/home/jens/Source/shotwell/src/Photo.vala"
g_return_val_if_fail (IS_PHOTO (self), 0ULL);
#line 2129 "/home/jens/Source/shotwell/src/Photo.vala"
g_return_val_if_fail ((additional_alteration == NULL) || IS_ALTERATION (additional_alteration), 0ULL);
#line 2130 "/home/jens/Source/shotwell/src/Photo.vala"
flags = (guint64) 0;
#line 2132 "/home/jens/Source/shotwell/src/Photo.vala"
committed = FALSE;
#line 16585 "Photo.c"
{
PhotoRow* _tmp0_ = NULL;
#line 2133 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp0_ = self->row;
#line 2133 "/home/jens/Source/shotwell/src/Photo.vala"
g_rec_mutex_lock (&self->priv->__lock_row);
#line 16592 "Photo.c"
{
PhotoRow* _tmp1_ = NULL;
guint64 _tmp2_ = 0ULL;
guint64 _tmp3_ = 0ULL;
PhotoRow* _tmp4_ = NULL;
guint64 _tmp5_ = 0ULL;
guint64 _tmp6_ = 0ULL;
#line 2134 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp1_ = self->row;
#line 2134 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp2_ = _tmp1_->flags;
#line 2134 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp3_ = mask;
#line 2134 "/home/jens/Source/shotwell/src/Photo.vala"
flags = _tmp2_ ^ _tmp3_;
#line 2135 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp4_ = self->row;
#line 2135 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp5_ = _tmp4_->flags;
#line 2135 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp6_ = flags;
#line 2135 "/home/jens/Source/shotwell/src/Photo.vala"
if (_tmp5_ != _tmp6_) {
#line 16616 "Photo.c"
PhotoTable* _tmp7_ = NULL;
PhotoTable* _tmp8_ = NULL;
PhotoID _tmp9_ = {0};
guint64 _tmp10_ = 0ULL;
gboolean _tmp11_ = FALSE;
gboolean _tmp12_ = FALSE;
#line 2136 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp7_ = photo_table_get_instance ();
#line 2136 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp8_ = _tmp7_;
#line 2136 "/home/jens/Source/shotwell/src/Photo.vala"
photo_get_photo_id (self, &_tmp9_);
#line 2136 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp10_ = flags;
#line 2136 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp11_ = photo_table_replace_flags (_tmp8_, &_tmp9_, _tmp10_);
#line 2136 "/home/jens/Source/shotwell/src/Photo.vala"
committed = _tmp11_;
#line 2136 "/home/jens/Source/shotwell/src/Photo.vala"
_database_table_unref0 (_tmp8_);
#line 2137 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp12_ = committed;
#line 2137 "/home/jens/Source/shotwell/src/Photo.vala"
if (_tmp12_) {
#line 16641 "Photo.c"
PhotoRow* _tmp13_ = NULL;
guint64 _tmp14_ = 0ULL;
#line 2138 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp13_ = self->row;
#line 2138 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp14_ = flags;
#line 2138 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp13_->flags = _tmp14_;
#line 16650 "Photo.c"
}
}
}
__finally331:
{
PhotoRow* _tmp15_ = NULL;
#line 2133 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp15_ = self->row;
#line 2133 "/home/jens/Source/shotwell/src/Photo.vala"
g_rec_mutex_unlock (&self->priv->__lock_row);
#line 16661 "Photo.c"
}
#line 2133 "/home/jens/Source/shotwell/src/Photo.vala"
if (G_UNLIKELY (_inner_error_ != NULL)) {
#line 2133 "/home/jens/Source/shotwell/src/Photo.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 2133 "/home/jens/Source/shotwell/src/Photo.vala"
g_clear_error (&_inner_error_);
#line 2133 "/home/jens/Source/shotwell/src/Photo.vala"
return 0ULL;
#line 16671 "Photo.c"
}
}
#line 2142 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp16_ = committed;
#line 2142 "/home/jens/Source/shotwell/src/Photo.vala"
if (_tmp16_) {
#line 16678 "Photo.c"
Alteration* _tmp17_ = NULL;
#line 2143 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp17_ = additional_alteration;
#line 2143 "/home/jens/Source/shotwell/src/Photo.vala"
photo_notify_flags_altered (self, _tmp17_);
#line 16684 "Photo.c"
}
#line 2145 "/home/jens/Source/shotwell/src/Photo.vala"
result = flags;
#line 2145 "/home/jens/Source/shotwell/src/Photo.vala"
return result;
#line 16690 "Photo.c"
}
gboolean photo_is_master_metadata_dirty (Photo* self) {
gboolean result = FALSE;
GError * _inner_error_ = NULL;
#line 2148 "/home/jens/Source/shotwell/src/Photo.vala"
g_return_val_if_fail (IS_PHOTO (self), FALSE);
#line 16699 "Photo.c"
{
PhotoRow* _tmp0_ = NULL;
#line 2149 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp0_ = self->row;
#line 2149 "/home/jens/Source/shotwell/src/Photo.vala"
g_rec_mutex_lock (&self->priv->__lock_row);
#line 16706 "Photo.c"
{
PhotoRow* _tmp1_ = NULL;
gboolean _tmp2_ = FALSE;
#line 2150 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp1_ = self->row;
#line 2150 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp2_ = _tmp1_->metadata_dirty;
#line 2150 "/home/jens/Source/shotwell/src/Photo.vala"
result = _tmp2_;
#line 16716 "Photo.c"
{
PhotoRow* _tmp3_ = NULL;
#line 2149 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp3_ = self->row;
#line 2149 "/home/jens/Source/shotwell/src/Photo.vala"
g_rec_mutex_unlock (&self->priv->__lock_row);
#line 16723 "Photo.c"
}
#line 2150 "/home/jens/Source/shotwell/src/Photo.vala"
return result;
#line 16727 "Photo.c"
}
__finally332:
{
PhotoRow* _tmp4_ = NULL;
#line 2149 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp4_ = self->row;
#line 2149 "/home/jens/Source/shotwell/src/Photo.vala"
g_rec_mutex_unlock (&self->priv->__lock_row);
#line 16736 "Photo.c"
}
#line 2149 "/home/jens/Source/shotwell/src/Photo.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 2149 "/home/jens/Source/shotwell/src/Photo.vala"
g_clear_error (&_inner_error_);
#line 2149 "/home/jens/Source/shotwell/src/Photo.vala"
return FALSE;
#line 16744 "Photo.c"
}
}
void photo_set_master_metadata_dirty (Photo* self, gboolean dirty, GError** error) {
gboolean committed = FALSE;
gboolean _tmp11_ = FALSE;
GError * _inner_error_ = NULL;
#line 2154 "/home/jens/Source/shotwell/src/Photo.vala"
g_return_if_fail (IS_PHOTO (self));
#line 2155 "/home/jens/Source/shotwell/src/Photo.vala"
committed = FALSE;
#line 16757 "Photo.c"
{
PhotoRow* _tmp0_ = NULL;
#line 2156 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp0_ = self->row;
#line 2156 "/home/jens/Source/shotwell/src/Photo.vala"
g_rec_mutex_lock (&self->priv->__lock_row);
#line 16764 "Photo.c"
{
PhotoRow* _tmp1_ = NULL;
gboolean _tmp2_ = FALSE;
gboolean _tmp3_ = FALSE;
#line 2157 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp1_ = self->row;
#line 2157 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp2_ = _tmp1_->metadata_dirty;
#line 2157 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp3_ = dirty;
#line 2157 "/home/jens/Source/shotwell/src/Photo.vala"
if (_tmp2_ != _tmp3_) {
#line 16777 "Photo.c"
PhotoTable* _tmp4_ = NULL;
PhotoTable* _tmp5_ = NULL;
PhotoID _tmp6_ = {0};
gboolean _tmp7_ = FALSE;
PhotoRow* _tmp8_ = NULL;
gboolean _tmp9_ = FALSE;
#line 2158 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp4_ = photo_table_get_instance ();
#line 2158 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp5_ = _tmp4_;
#line 2158 "/home/jens/Source/shotwell/src/Photo.vala"
photo_get_photo_id (self, &_tmp6_);
#line 2158 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp7_ = dirty;
#line 2158 "/home/jens/Source/shotwell/src/Photo.vala"
photo_table_set_metadata_dirty (_tmp5_, &_tmp6_, _tmp7_, &_inner_error_);
#line 2158 "/home/jens/Source/shotwell/src/Photo.vala"
_database_table_unref0 (_tmp5_);
#line 2158 "/home/jens/Source/shotwell/src/Photo.vala"
if (G_UNLIKELY (_inner_error_ != NULL)) {
#line 16798 "Photo.c"
goto __finally333;
}
#line 2159 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp8_ = self->row;
#line 2159 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp9_ = dirty;
#line 2159 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp8_->metadata_dirty = _tmp9_;
#line 2160 "/home/jens/Source/shotwell/src/Photo.vala"
committed = TRUE;
#line 16809 "Photo.c"
}
}
__finally333:
{
PhotoRow* _tmp10_ = NULL;
#line 2156 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp10_ = self->row;
#line 2156 "/home/jens/Source/shotwell/src/Photo.vala"
g_rec_mutex_unlock (&self->priv->__lock_row);
#line 16819 "Photo.c"
}
#line 2156 "/home/jens/Source/shotwell/src/Photo.vala"
if (G_UNLIKELY (_inner_error_ != NULL)) {
#line 2156 "/home/jens/Source/shotwell/src/Photo.vala"
if (_inner_error_->domain == DATABASE_ERROR) {
#line 2156 "/home/jens/Source/shotwell/src/Photo.vala"
g_propagate_error (error, _inner_error_);
#line 2156 "/home/jens/Source/shotwell/src/Photo.vala"
return;
#line 16829 "Photo.c"
} else {
#line 2156 "/home/jens/Source/shotwell/src/Photo.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 2156 "/home/jens/Source/shotwell/src/Photo.vala"
g_clear_error (&_inner_error_);
#line 2156 "/home/jens/Source/shotwell/src/Photo.vala"
return;
#line 16837 "Photo.c"
}
}
}
#line 2164 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp11_ = committed;
#line 2164 "/home/jens/Source/shotwell/src/Photo.vala"
if (_tmp11_) {
#line 16845 "Photo.c"
Alteration* _tmp12_ = NULL;
Alteration* _tmp13_ = NULL;
#line 2165 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp12_ = alteration_new ("metadata", "master-dirty");
#line 2165 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp13_ = _tmp12_;
#line 2165 "/home/jens/Source/shotwell/src/Photo.vala"
data_object_notify_altered (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_DATA_OBJECT, DataObject), _tmp13_);
#line 2165 "/home/jens/Source/shotwell/src/Photo.vala"
_alteration_unref0 (_tmp13_);
#line 16856 "Photo.c"
}
}
static Rating photo_real_get_rating (MediaSource* base) {
Photo * self;
Rating result = 0;
GError * _inner_error_ = NULL;
#line 2168 "/home/jens/Source/shotwell/src/Photo.vala"
self = G_TYPE_CHECK_INSTANCE_CAST (base, TYPE_PHOTO, Photo);
#line 16867 "Photo.c"
{
PhotoRow* _tmp0_ = NULL;
#line 2169 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp0_ = self->row;
#line 2169 "/home/jens/Source/shotwell/src/Photo.vala"
g_rec_mutex_lock (&self->priv->__lock_row);
#line 16874 "Photo.c"
{
PhotoRow* _tmp1_ = NULL;
Rating _tmp2_ = 0;
#line 2170 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp1_ = self->row;
#line 2170 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp2_ = _tmp1_->rating;
#line 2170 "/home/jens/Source/shotwell/src/Photo.vala"
result = _tmp2_;
#line 16884 "Photo.c"
{
PhotoRow* _tmp3_ = NULL;
#line 2169 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp3_ = self->row;
#line 2169 "/home/jens/Source/shotwell/src/Photo.vala"
g_rec_mutex_unlock (&self->priv->__lock_row);
#line 16891 "Photo.c"
}
#line 2170 "/home/jens/Source/shotwell/src/Photo.vala"
return result;
#line 16895 "Photo.c"
}
__finally334:
{
PhotoRow* _tmp4_ = NULL;
#line 2169 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp4_ = self->row;
#line 2169 "/home/jens/Source/shotwell/src/Photo.vala"
g_rec_mutex_unlock (&self->priv->__lock_row);
#line 16904 "Photo.c"
}
#line 2169 "/home/jens/Source/shotwell/src/Photo.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 2169 "/home/jens/Source/shotwell/src/Photo.vala"
g_clear_error (&_inner_error_);
#line 2169 "/home/jens/Source/shotwell/src/Photo.vala"
return 0;
#line 16912 "Photo.c"
}
}
static void photo_real_set_rating (MediaSource* base, Rating rating) {
Photo * self;
gboolean committed = FALSE;
gboolean _tmp16_ = FALSE;
GError * _inner_error_ = NULL;
#line 2174 "/home/jens/Source/shotwell/src/Photo.vala"
self = G_TYPE_CHECK_INSTANCE_CAST (base, TYPE_PHOTO, Photo);
#line 2175 "/home/jens/Source/shotwell/src/Photo.vala"
committed = FALSE;
#line 16926 "Photo.c"
{
PhotoRow* _tmp0_ = NULL;
#line 2177 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp0_ = self->row;
#line 2177 "/home/jens/Source/shotwell/src/Photo.vala"
g_rec_mutex_lock (&self->priv->__lock_row);
#line 16933 "Photo.c"
{
gboolean _tmp1_ = FALSE;
Rating _tmp2_ = 0;
PhotoRow* _tmp3_ = NULL;
Rating _tmp4_ = 0;
#line 2178 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp2_ = rating;
#line 2178 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp3_ = self->row;
#line 2178 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp4_ = _tmp3_->rating;
#line 2178 "/home/jens/Source/shotwell/src/Photo.vala"
if (_tmp2_ != _tmp4_) {
#line 16947 "Photo.c"
Rating _tmp5_ = 0;
gboolean _tmp6_ = FALSE;
#line 2178 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp5_ = rating;
#line 2178 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp6_ = rating_is_valid (_tmp5_);
#line 2178 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp1_ = _tmp6_;
#line 16956 "Photo.c"
} else {
#line 2178 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp1_ = FALSE;
#line 16960 "Photo.c"
}
#line 2178 "/home/jens/Source/shotwell/src/Photo.vala"
if (_tmp1_) {
#line 16964 "Photo.c"
PhotoTable* _tmp7_ = NULL;
PhotoTable* _tmp8_ = NULL;
PhotoID _tmp9_ = {0};
Rating _tmp10_ = 0;
gboolean _tmp11_ = FALSE;
gboolean _tmp12_ = FALSE;
#line 2179 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp7_ = photo_table_get_instance ();
#line 2179 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp8_ = _tmp7_;
#line 2179 "/home/jens/Source/shotwell/src/Photo.vala"
photo_get_photo_id (self, &_tmp9_);
#line 2179 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp10_ = rating;
#line 2179 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp11_ = photo_table_set_rating (_tmp8_, &_tmp9_, _tmp10_);
#line 2179 "/home/jens/Source/shotwell/src/Photo.vala"
committed = _tmp11_;
#line 2179 "/home/jens/Source/shotwell/src/Photo.vala"
_database_table_unref0 (_tmp8_);
#line 2180 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp12_ = committed;
#line 2180 "/home/jens/Source/shotwell/src/Photo.vala"
if (_tmp12_) {
#line 16989 "Photo.c"
PhotoRow* _tmp13_ = NULL;
Rating _tmp14_ = 0;
#line 2181 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp13_ = self->row;
#line 2181 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp14_ = rating;
#line 2181 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp13_->rating = _tmp14_;
#line 16998 "Photo.c"
}
}
}
__finally335:
{
PhotoRow* _tmp15_ = NULL;
#line 2177 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp15_ = self->row;
#line 2177 "/home/jens/Source/shotwell/src/Photo.vala"
g_rec_mutex_unlock (&self->priv->__lock_row);
#line 17009 "Photo.c"
}
#line 2177 "/home/jens/Source/shotwell/src/Photo.vala"
if (G_UNLIKELY (_inner_error_ != NULL)) {
#line 2177 "/home/jens/Source/shotwell/src/Photo.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 2177 "/home/jens/Source/shotwell/src/Photo.vala"
g_clear_error (&_inner_error_);
#line 2177 "/home/jens/Source/shotwell/src/Photo.vala"
return;
#line 17019 "Photo.c"
}
}
#line 2185 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp16_ = committed;
#line 2185 "/home/jens/Source/shotwell/src/Photo.vala"
if (_tmp16_) {
#line 17026 "Photo.c"
Alteration* _tmp17_ = NULL;
Alteration* _tmp18_ = NULL;
#line 2186 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp17_ = alteration_new ("metadata", "rating");
#line 2186 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp18_ = _tmp17_;
#line 2186 "/home/jens/Source/shotwell/src/Photo.vala"
data_object_notify_altered (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_DATA_OBJECT, DataObject), _tmp18_);
#line 2186 "/home/jens/Source/shotwell/src/Photo.vala"
_alteration_unref0 (_tmp18_);
#line 17037 "Photo.c"
}
}
static void photo_real_increase_rating (MediaSource* base) {
Photo * self;
GError * _inner_error_ = NULL;
#line 2189 "/home/jens/Source/shotwell/src/Photo.vala"
self = G_TYPE_CHECK_INSTANCE_CAST (base, TYPE_PHOTO, Photo);
#line 17047 "Photo.c"
{
PhotoRow* _tmp0_ = NULL;
#line 2190 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp0_ = self->row;
#line 2190 "/home/jens/Source/shotwell/src/Photo.vala"
g_rec_mutex_lock (&self->priv->__lock_row);
#line 17054 "Photo.c"
{
PhotoRow* _tmp1_ = NULL;
Rating _tmp2_ = 0;
Rating _tmp3_ = 0;
#line 2191 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp1_ = self->row;
#line 2191 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp2_ = _tmp1_->rating;
#line 2191 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp3_ = rating_increase (_tmp2_);
#line 2191 "/home/jens/Source/shotwell/src/Photo.vala"
media_source_set_rating (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_MEDIA_SOURCE, MediaSource), _tmp3_);
#line 17067 "Photo.c"
}
__finally336:
{
PhotoRow* _tmp4_ = NULL;
#line 2190 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp4_ = self->row;
#line 2190 "/home/jens/Source/shotwell/src/Photo.vala"
g_rec_mutex_unlock (&self->priv->__lock_row);
#line 17076 "Photo.c"
}
#line 2190 "/home/jens/Source/shotwell/src/Photo.vala"
if (G_UNLIKELY (_inner_error_ != NULL)) {
#line 2190 "/home/jens/Source/shotwell/src/Photo.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 2190 "/home/jens/Source/shotwell/src/Photo.vala"
g_clear_error (&_inner_error_);
#line 2190 "/home/jens/Source/shotwell/src/Photo.vala"
return;
#line 17086 "Photo.c"
}
}
}
static void photo_real_decrease_rating (MediaSource* base) {
Photo * self;
GError * _inner_error_ = NULL;
#line 2195 "/home/jens/Source/shotwell/src/Photo.vala"
self = G_TYPE_CHECK_INSTANCE_CAST (base, TYPE_PHOTO, Photo);
#line 17097 "Photo.c"
{
PhotoRow* _tmp0_ = NULL;
#line 2196 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp0_ = self->row;
#line 2196 "/home/jens/Source/shotwell/src/Photo.vala"
g_rec_mutex_lock (&self->priv->__lock_row);
#line 17104 "Photo.c"
{
PhotoRow* _tmp1_ = NULL;
Rating _tmp2_ = 0;
Rating _tmp3_ = 0;
#line 2197 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp1_ = self->row;
#line 2197 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp2_ = _tmp1_->rating;
#line 2197 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp3_ = rating_decrease (_tmp2_);
#line 2197 "/home/jens/Source/shotwell/src/Photo.vala"
media_source_set_rating (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_MEDIA_SOURCE, MediaSource), _tmp3_);
#line 17117 "Photo.c"
}
__finally337:
{
PhotoRow* _tmp4_ = NULL;
#line 2196 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp4_ = self->row;
#line 2196 "/home/jens/Source/shotwell/src/Photo.vala"
g_rec_mutex_unlock (&self->priv->__lock_row);
#line 17126 "Photo.c"
}
#line 2196 "/home/jens/Source/shotwell/src/Photo.vala"
if (G_UNLIKELY (_inner_error_ != NULL)) {
#line 2196 "/home/jens/Source/shotwell/src/Photo.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 2196 "/home/jens/Source/shotwell/src/Photo.vala"
g_clear_error (&_inner_error_);
#line 2196 "/home/jens/Source/shotwell/src/Photo.vala"
return;
#line 17136 "Photo.c"
}
}
}
static void photo_real_commit_backlinks (DataSource* base, SourceCollection* sources, const gchar* backlinks) {
Photo * self;
GError * _inner_error_ = NULL;
#line 2201 "/home/jens/Source/shotwell/src/Photo.vala"
self = G_TYPE_CHECK_INSTANCE_CAST (base, TYPE_PHOTO, Photo);
#line 2201 "/home/jens/Source/shotwell/src/Photo.vala"
g_return_if_fail ((sources == NULL) || IS_SOURCE_COLLECTION (sources));
#line 17149 "Photo.c"
{
PhotoTable* _tmp0_ = NULL;
PhotoTable* _tmp1_ = NULL;
PhotoID _tmp2_ = {0};
const gchar* _tmp3_ = NULL;
#line 2206 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp0_ = photo_table_get_instance ();
#line 2206 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp1_ = _tmp0_;
#line 2206 "/home/jens/Source/shotwell/src/Photo.vala"
photo_get_photo_id (self, &_tmp2_);
#line 2206 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp3_ = backlinks;
#line 2206 "/home/jens/Source/shotwell/src/Photo.vala"
photo_table_update_backlinks (_tmp1_, &_tmp2_, _tmp3_, &_inner_error_);
#line 2206 "/home/jens/Source/shotwell/src/Photo.vala"
_database_table_unref0 (_tmp1_);
#line 2206 "/home/jens/Source/shotwell/src/Photo.vala"
if (G_UNLIKELY (_inner_error_ != NULL)) {
#line 2206 "/home/jens/Source/shotwell/src/Photo.vala"
if (_inner_error_->domain == DATABASE_ERROR) {
#line 17171 "Photo.c"
goto __catch338_database_error;
}
#line 2206 "/home/jens/Source/shotwell/src/Photo.vala"
g_critical ("file %s: line %d: unexpected error: %s (%s, %d)", __FILE__, __LINE__, _inner_error_->message, g_quark_to_string (_inner_error_->domain), _inner_error_->code);
#line 2206 "/home/jens/Source/shotwell/src/Photo.vala"
g_clear_error (&_inner_error_);
#line 2206 "/home/jens/Source/shotwell/src/Photo.vala"
return;
#line 17180 "Photo.c"
}
{
PhotoRow* _tmp4_ = NULL;
#line 2207 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp4_ = self->row;
#line 2207 "/home/jens/Source/shotwell/src/Photo.vala"
g_rec_mutex_lock (&self->priv->__lock_row);
#line 17188 "Photo.c"
{
PhotoRow* _tmp5_ = NULL;
const gchar* _tmp6_ = NULL;
gchar* _tmp7_ = NULL;
#line 2208 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp5_ = self->row;
#line 2208 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp6_ = backlinks;
#line 2208 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp7_ = g_strdup (_tmp6_);
#line 2208 "/home/jens/Source/shotwell/src/Photo.vala"
_g_free0 (_tmp5_->backlinks);
#line 2208 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp5_->backlinks = _tmp7_;
#line 17203 "Photo.c"
}
__finally339:
{
PhotoRow* _tmp8_ = NULL;
#line 2207 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp8_ = self->row;
#line 2207 "/home/jens/Source/shotwell/src/Photo.vala"
g_rec_mutex_unlock (&self->priv->__lock_row);
#line 17212 "Photo.c"
}
#line 2207 "/home/jens/Source/shotwell/src/Photo.vala"
if (G_UNLIKELY (_inner_error_ != NULL)) {
#line 2207 "/home/jens/Source/shotwell/src/Photo.vala"
if (_inner_error_->domain == DATABASE_ERROR) {
#line 17218 "Photo.c"
goto __catch338_database_error;
}
#line 2207 "/home/jens/Source/shotwell/src/Photo.vala"
g_critical ("file %s: line %d: unexpected error: %s (%s, %d)", __FILE__, __LINE__, _inner_error_->message, g_quark_to_string (_inner_error_->domain), _inner_error_->code);
#line 2207 "/home/jens/Source/shotwell/src/Photo.vala"
g_clear_error (&_inner_error_);
#line 2207 "/home/jens/Source/shotwell/src/Photo.vala"
return;
#line 17227 "Photo.c"
}
}
}
goto __finally338;
__catch338_database_error:
{
GError* err = NULL;
gchar* _tmp9_ = NULL;
gchar* _tmp10_ = NULL;
GError* _tmp11_ = NULL;
const gchar* _tmp12_ = NULL;
#line 2205 "/home/jens/Source/shotwell/src/Photo.vala"
err = _inner_error_;
#line 2205 "/home/jens/Source/shotwell/src/Photo.vala"
_inner_error_ = NULL;
#line 2211 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp9_ = data_object_to_string (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_DATA_OBJECT, DataObject));
#line 2211 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp10_ = _tmp9_;
#line 2211 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp11_ = err;
#line 2211 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp12_ = _tmp11_->message;
#line 2211 "/home/jens/Source/shotwell/src/Photo.vala"
g_warning ("Photo.vala:2211: Unable to update link state for %s: %s", _tmp10_, _tmp12_);
#line 2211 "/home/jens/Source/shotwell/src/Photo.vala"
_g_free0 (_tmp10_);
#line 2205 "/home/jens/Source/shotwell/src/Photo.vala"
_g_error_free0 (err);
#line 17257 "Photo.c"
}
__finally338:
#line 2205 "/home/jens/Source/shotwell/src/Photo.vala"
if (G_UNLIKELY (_inner_error_ != NULL)) {
#line 2205 "/home/jens/Source/shotwell/src/Photo.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 2205 "/home/jens/Source/shotwell/src/Photo.vala"
g_clear_error (&_inner_error_);
#line 2205 "/home/jens/Source/shotwell/src/Photo.vala"
return;
#line 17268 "Photo.c"
}
}
static gboolean photo_real_set_event_id (MediaSource* base, EventID* event_id) {
Photo * self;
gboolean result = FALSE;
GError * _inner_error_ = NULL;
#line 2219 "/home/jens/Source/shotwell/src/Photo.vala"
self = G_TYPE_CHECK_INSTANCE_CAST (base, TYPE_PHOTO, Photo);
#line 2219 "/home/jens/Source/shotwell/src/Photo.vala"
g_return_val_if_fail (event_id != NULL, FALSE);
#line 17281 "Photo.c"
{
PhotoRow* _tmp0_ = NULL;
#line 2220 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp0_ = self->row;
#line 2220 "/home/jens/Source/shotwell/src/Photo.vala"
g_rec_mutex_lock (&self->priv->__lock_row);
#line 17288 "Photo.c"
{
gboolean committed = FALSE;
PhotoTable* _tmp1_ = NULL;
PhotoTable* _tmp2_ = NULL;
PhotoRow* _tmp3_ = NULL;
PhotoID _tmp4_ = {0};
EventID _tmp5_ = {0};
gboolean _tmp6_ = FALSE;
gboolean _tmp7_ = FALSE;
gboolean _tmp8_ = FALSE;
#line 2221 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp1_ = photo_table_get_instance ();
#line 2221 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp2_ = _tmp1_;
#line 2221 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp3_ = self->row;
#line 2221 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp4_ = _tmp3_->photo_id;
#line 2221 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp5_ = *event_id;
#line 2221 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp6_ = photo_table_set_event (_tmp2_, &_tmp4_, &_tmp5_);
#line 2221 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp7_ = _tmp6_;
#line 2221 "/home/jens/Source/shotwell/src/Photo.vala"
_database_table_unref0 (_tmp2_);
#line 2221 "/home/jens/Source/shotwell/src/Photo.vala"
committed = _tmp7_;
#line 2223 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp8_ = committed;
#line 2223 "/home/jens/Source/shotwell/src/Photo.vala"
if (_tmp8_) {
#line 17321 "Photo.c"
PhotoRow* _tmp9_ = NULL;
EventID _tmp10_ = {0};
#line 2224 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp9_ = self->row;
#line 2224 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp10_ = *event_id;
#line 2224 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp9_->event_id = _tmp10_;
#line 17330 "Photo.c"
}
#line 2226 "/home/jens/Source/shotwell/src/Photo.vala"
result = committed;
#line 17334 "Photo.c"
{
PhotoRow* _tmp11_ = NULL;
#line 2220 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp11_ = self->row;
#line 2220 "/home/jens/Source/shotwell/src/Photo.vala"
g_rec_mutex_unlock (&self->priv->__lock_row);
#line 17341 "Photo.c"
}
#line 2226 "/home/jens/Source/shotwell/src/Photo.vala"
return result;
#line 17345 "Photo.c"
}
__finally340:
{
PhotoRow* _tmp12_ = NULL;
#line 2220 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp12_ = self->row;
#line 2220 "/home/jens/Source/shotwell/src/Photo.vala"
g_rec_mutex_unlock (&self->priv->__lock_row);
#line 17354 "Photo.c"
}
#line 2220 "/home/jens/Source/shotwell/src/Photo.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 2220 "/home/jens/Source/shotwell/src/Photo.vala"
g_clear_error (&_inner_error_);
#line 2220 "/home/jens/Source/shotwell/src/Photo.vala"
return FALSE;
#line 17362 "Photo.c"
}
}
static gchar* photo_real_to_string (DataObject* base) {
Photo * self;
gchar* result = NULL;
gchar* _tmp0_ = NULL;
gboolean _tmp1_ = FALSE;
PhotoID _tmp10_ = {0};
gint64 _tmp11_ = 0LL;
gchar* _tmp12_ = NULL;
gchar* _tmp13_ = NULL;
PhotoFileReader* _tmp14_ = NULL;
PhotoFileReader* _tmp15_ = NULL;
gchar* _tmp16_ = NULL;
gchar* _tmp17_ = NULL;
gchar* _tmp18_ = NULL;
gchar* _tmp19_ = NULL;
#line 2230 "/home/jens/Source/shotwell/src/Photo.vala"
self = G_TYPE_CHECK_INSTANCE_CAST (base, TYPE_PHOTO, Photo);
#line 2232 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp1_ = photo_is_master_baseline (self);
#line 2232 "/home/jens/Source/shotwell/src/Photo.vala"
if (!_tmp1_) {
#line 17388 "Photo.c"
GFile* _tmp2_ = NULL;
GFile* _tmp3_ = NULL;
gchar* _tmp4_ = NULL;
gchar* _tmp5_ = NULL;
gchar* _tmp6_ = NULL;
gchar* _tmp7_ = NULL;
gchar* _tmp8_ = NULL;
#line 2232 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp2_ = photo_get_actual_file (self);
#line 2232 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp3_ = _tmp2_;
#line 2232 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp4_ = g_file_get_path (_tmp3_);
#line 2232 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp5_ = _tmp4_;
#line 2232 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp6_ = g_strconcat (" (", _tmp5_, NULL);
#line 2232 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp7_ = _tmp6_;
#line 2232 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp8_ = g_strconcat (_tmp7_, ")", NULL);
#line 2232 "/home/jens/Source/shotwell/src/Photo.vala"
_g_free0 (_tmp0_);
#line 2232 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp0_ = _tmp8_;
#line 2232 "/home/jens/Source/shotwell/src/Photo.vala"
_g_free0 (_tmp7_);
#line 2232 "/home/jens/Source/shotwell/src/Photo.vala"
_g_free0 (_tmp5_);
#line 2232 "/home/jens/Source/shotwell/src/Photo.vala"
_g_object_unref0 (_tmp3_);
#line 17420 "Photo.c"
} else {
gchar* _tmp9_ = NULL;
#line 2232 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp9_ = g_strdup ("");
#line 2232 "/home/jens/Source/shotwell/src/Photo.vala"
_g_free0 (_tmp0_);
#line 2232 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp0_ = _tmp9_;
#line 17429 "Photo.c"
}
#line 2231 "/home/jens/Source/shotwell/src/Photo.vala"
photo_get_photo_id (self, &_tmp10_);
#line 2231 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp11_ = _tmp10_.id;
#line 2231 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp12_ = g_strdup_printf ("%" G_GINT64_FORMAT, _tmp11_);
#line 2231 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp13_ = _tmp12_;
#line 2231 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp14_ = photo_get_master_reader (self);
#line 2231 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp15_ = _tmp14_;
#line 2231 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp16_ = photo_file_adapter_get_filepath (G_TYPE_CHECK_INSTANCE_CAST (_tmp15_, TYPE_PHOTO_FILE_ADAPTER, PhotoFileAdapter));
#line 2231 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp17_ = _tmp16_;
#line 2231 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp18_ = g_strdup_printf ("[%s] %s%s", _tmp13_, _tmp17_, _tmp0_);
#line 2231 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp19_ = _tmp18_;
#line 2231 "/home/jens/Source/shotwell/src/Photo.vala"
_g_free0 (_tmp17_);
#line 2231 "/home/jens/Source/shotwell/src/Photo.vala"
_photo_file_adapter_unref0 (_tmp15_);
#line 2231 "/home/jens/Source/shotwell/src/Photo.vala"
_g_free0 (_tmp13_);
#line 2231 "/home/jens/Source/shotwell/src/Photo.vala"
result = _tmp19_;
#line 2231 "/home/jens/Source/shotwell/src/Photo.vala"
_g_free0 (_tmp0_);
#line 2231 "/home/jens/Source/shotwell/src/Photo.vala"
return result;
#line 17463 "Photo.c"
}
static gboolean photo_real_equals (DataSource* base, DataSource* source) {
Photo * self;
gboolean result = FALSE;
Photo* photo = NULL;
DataSource* _tmp0_ = NULL;
Photo* _tmp1_ = NULL;
Photo* _tmp2_ = NULL;
DataSource* _tmp14_ = NULL;
gboolean _tmp15_ = FALSE;
#line 2235 "/home/jens/Source/shotwell/src/Photo.vala"
self = G_TYPE_CHECK_INSTANCE_CAST (base, TYPE_PHOTO, Photo);
#line 2235 "/home/jens/Source/shotwell/src/Photo.vala"
g_return_val_if_fail ((source == NULL) || IS_DATA_SOURCE (source), FALSE);
#line 2237 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp0_ = source;
#line 2237 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp1_ = _g_object_ref0 (G_TYPE_CHECK_INSTANCE_TYPE (_tmp0_, TYPE_PHOTO) ? ((Photo*) _tmp0_) : NULL);
#line 2237 "/home/jens/Source/shotwell/src/Photo.vala"
photo = _tmp1_;
#line 2238 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp2_ = photo;
#line 2238 "/home/jens/Source/shotwell/src/Photo.vala"
if (_tmp2_ != NULL) {
#line 17490 "Photo.c"
PhotoID photo_id = {0};
PhotoID _tmp3_ = {0};
PhotoID other_photo_id = {0};
Photo* _tmp4_ = NULL;
PhotoID _tmp5_ = {0};
gboolean _tmp6_ = FALSE;
Photo* _tmp7_ = NULL;
#line 2239 "/home/jens/Source/shotwell/src/Photo.vala"
photo_get_photo_id (self, &_tmp3_);
#line 2239 "/home/jens/Source/shotwell/src/Photo.vala"
photo_id = _tmp3_;
#line 2240 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp4_ = photo;
#line 2240 "/home/jens/Source/shotwell/src/Photo.vala"
photo_get_photo_id (_tmp4_, &_tmp5_);
#line 2240 "/home/jens/Source/shotwell/src/Photo.vala"
other_photo_id = _tmp5_;
#line 2242 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp7_ = photo;
#line 2242 "/home/jens/Source/shotwell/src/Photo.vala"
if (self != _tmp7_) {
#line 17512 "Photo.c"
PhotoID _tmp8_ = {0};
gint64 _tmp9_ = 0LL;
#line 2242 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp8_ = photo_id;
#line 2242 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp9_ = _tmp8_.id;
#line 2242 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp6_ = _tmp9_ != PHOTO_ID_INVALID;
#line 17521 "Photo.c"
} else {
#line 2242 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp6_ = FALSE;
#line 17525 "Photo.c"
}
#line 2242 "/home/jens/Source/shotwell/src/Photo.vala"
if (_tmp6_) {
#line 17529 "Photo.c"
PhotoID _tmp10_ = {0};
gint64 _tmp11_ = 0LL;
PhotoID _tmp12_ = {0};
gint64 _tmp13_ = 0LL;
#line 2243 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp10_ = photo_id;
#line 2243 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp11_ = _tmp10_.id;
#line 2243 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp12_ = other_photo_id;
#line 2243 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp13_ = _tmp12_.id;
#line 2243 "/home/jens/Source/shotwell/src/Photo.vala"
_vala_assert (_tmp11_ != _tmp13_, "photo_id.id != other_photo_id.id");
#line 17544 "Photo.c"
}
}
#line 2247 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp14_ = source;
#line 2247 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp15_ = DATA_SOURCE_CLASS (photo_parent_class)->equals (G_TYPE_CHECK_INSTANCE_CAST (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_PHOTO_SOURCE, PhotoSource), TYPE_DATA_SOURCE, DataSource), _tmp14_);
#line 2247 "/home/jens/Source/shotwell/src/Photo.vala"
result = _tmp15_;
#line 2247 "/home/jens/Source/shotwell/src/Photo.vala"
_g_object_unref0 (photo);
#line 2247 "/home/jens/Source/shotwell/src/Photo.vala"
return result;
#line 17557 "Photo.c"
}
static void photo_file_exif_updated (Photo* self) {
GFile* file = NULL;
GFile* _tmp0_ = NULL;
GFileInfo* info = NULL;
GTimeVal timestamp = {0};
GFileInfo* _tmp7_ = NULL;
GTimeVal _tmp8_ = {0};
PhotoFileInterrogator* interrogator = NULL;
PhotoFileInterrogator* _tmp9_ = NULL;
DetectedPhotoInformation* detected = NULL;
DetectedPhotoInformation* _tmp14_ = NULL;
gboolean _tmp15_ = FALSE;
DetectedPhotoInformation* _tmp16_ = NULL;
gboolean success = FALSE;
gboolean _tmp37_ = FALSE;
GError * _inner_error_ = NULL;
#line 2251 "/home/jens/Source/shotwell/src/Photo.vala"
g_return_if_fail (IS_PHOTO (self));
#line 2252 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp0_ = media_source_get_file (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_MEDIA_SOURCE, MediaSource));
#line 2252 "/home/jens/Source/shotwell/src/Photo.vala"
file = _tmp0_;
#line 2254 "/home/jens/Source/shotwell/src/Photo.vala"
info = NULL;
#line 17585 "Photo.c"
{
GFileInfo* _tmp1_ = NULL;
GFileInfo* _tmp2_ = NULL;
GFileInfo* _tmp3_ = NULL;
#line 2256 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp2_ = g_file_query_info (file, DIRECTORY_MONITOR_SUPPLIED_ATTRIBUTES, G_FILE_QUERY_INFO_NOFOLLOW_SYMLINKS, NULL, &_inner_error_);
#line 2256 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp1_ = _tmp2_;
#line 2256 "/home/jens/Source/shotwell/src/Photo.vala"
if (G_UNLIKELY (_inner_error_ != NULL)) {
#line 17596 "Photo.c"
goto __catch341_g_error;
}
#line 2256 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp3_ = _tmp1_;
#line 2256 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp1_ = NULL;
#line 2256 "/home/jens/Source/shotwell/src/Photo.vala"
_g_object_unref0 (info);
#line 2256 "/home/jens/Source/shotwell/src/Photo.vala"
info = _tmp3_;
#line 2255 "/home/jens/Source/shotwell/src/Photo.vala"
_g_object_unref0 (_tmp1_);
#line 17609 "Photo.c"
}
goto __finally341;
__catch341_g_error:
{
GError* err = NULL;
gchar* _tmp4_ = NULL;
gchar* _tmp5_ = NULL;
const gchar* _tmp6_ = NULL;
#line 2255 "/home/jens/Source/shotwell/src/Photo.vala"
err = _inner_error_;
#line 2255 "/home/jens/Source/shotwell/src/Photo.vala"
_inner_error_ = NULL;
#line 2259 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp4_ = data_object_to_string (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_DATA_OBJECT, DataObject));
#line 2259 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp5_ = _tmp4_;
#line 2259 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp6_ = err->message;
#line 2259 "/home/jens/Source/shotwell/src/Photo.vala"
g_error ("Photo.vala:2259: Unable to read file information for %s: %s", _tmp5_, _tmp6_);
#line 2259 "/home/jens/Source/shotwell/src/Photo.vala"
_g_free0 (_tmp5_);
#line 2255 "/home/jens/Source/shotwell/src/Photo.vala"
_g_error_free0 (err);
#line 17634 "Photo.c"
}
__finally341:
#line 2255 "/home/jens/Source/shotwell/src/Photo.vala"
if (G_UNLIKELY (_inner_error_ != NULL)) {
#line 2255 "/home/jens/Source/shotwell/src/Photo.vala"
_g_object_unref0 (info);
#line 2255 "/home/jens/Source/shotwell/src/Photo.vala"
_g_object_unref0 (file);
#line 2255 "/home/jens/Source/shotwell/src/Photo.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 2255 "/home/jens/Source/shotwell/src/Photo.vala"
g_clear_error (&_inner_error_);
#line 2255 "/home/jens/Source/shotwell/src/Photo.vala"
return;
#line 17649 "Photo.c"
}
#line 2262 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp7_ = info;
#line 2262 "/home/jens/Source/shotwell/src/Photo.vala"
g_file_info_get_modification_time (_tmp7_, &_tmp8_);
#line 2262 "/home/jens/Source/shotwell/src/Photo.vala"
timestamp = _tmp8_;
#line 2265 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp9_ = photo_file_interrogator_new (file, PHOTO_FILE_SNIFFER_OPTIONS_GET_ALL);
#line 2265 "/home/jens/Source/shotwell/src/Photo.vala"
interrogator = _tmp9_;
#line 17661 "Photo.c"
{
#line 2267 "/home/jens/Source/shotwell/src/Photo.vala"
photo_file_interrogator_interrogate (interrogator, &_inner_error_);
#line 2267 "/home/jens/Source/shotwell/src/Photo.vala"
if (G_UNLIKELY (_inner_error_ != NULL)) {
#line 17667 "Photo.c"
goto __catch342_g_error;
}
}
goto __finally342;
__catch342_g_error:
{
GError* err = NULL;
gchar* _tmp10_ = NULL;
gchar* _tmp11_ = NULL;
GError* _tmp12_ = NULL;
const gchar* _tmp13_ = NULL;
#line 2266 "/home/jens/Source/shotwell/src/Photo.vala"
err = _inner_error_;
#line 2266 "/home/jens/Source/shotwell/src/Photo.vala"
_inner_error_ = NULL;
#line 2269 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp10_ = g_file_get_path (file);
#line 2269 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp11_ = _tmp10_;
#line 2269 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp12_ = err;
#line 2269 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp13_ = _tmp12_->message;
#line 2269 "/home/jens/Source/shotwell/src/Photo.vala"
g_warning ("Photo.vala:2269: Unable to interrogate photo file %s: %s", _tmp11_, _tmp13_);
#line 2269 "/home/jens/Source/shotwell/src/Photo.vala"
_g_free0 (_tmp11_);
#line 2266 "/home/jens/Source/shotwell/src/Photo.vala"
_g_error_free0 (err);
#line 17697 "Photo.c"
}
__finally342:
#line 2266 "/home/jens/Source/shotwell/src/Photo.vala"
if (G_UNLIKELY (_inner_error_ != NULL)) {
#line 2266 "/home/jens/Source/shotwell/src/Photo.vala"
_photo_file_interrogator_unref0 (interrogator);
#line 2266 "/home/jens/Source/shotwell/src/Photo.vala"
_g_object_unref0 (info);
#line 2266 "/home/jens/Source/shotwell/src/Photo.vala"
_g_object_unref0 (file);
#line 2266 "/home/jens/Source/shotwell/src/Photo.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 2266 "/home/jens/Source/shotwell/src/Photo.vala"
g_clear_error (&_inner_error_);
#line 2266 "/home/jens/Source/shotwell/src/Photo.vala"
return;
#line 17714 "Photo.c"
}
#line 2272 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp14_ = photo_file_interrogator_get_detected_photo_information (interrogator);
#line 2272 "/home/jens/Source/shotwell/src/Photo.vala"
detected = _tmp14_;
#line 2273 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp16_ = detected;
#line 2273 "/home/jens/Source/shotwell/src/Photo.vala"
if (_tmp16_ == NULL) {
#line 2273 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp15_ = TRUE;
#line 17726 "Photo.c"
} else {
gboolean _tmp17_ = FALSE;
#line 2273 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp17_ = photo_file_interrogator_get_is_photo_corrupted (interrogator);
#line 2273 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp15_ = _tmp17_;
#line 17733 "Photo.c"
}
#line 2273 "/home/jens/Source/shotwell/src/Photo.vala"
if (_tmp15_) {
#line 17737 "Photo.c"
gchar* _tmp18_ = NULL;
gchar* _tmp19_ = NULL;
#line 2274 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp18_ = data_object_to_string (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_DATA_OBJECT, DataObject));
#line 2274 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp19_ = _tmp18_;
#line 2274 "/home/jens/Source/shotwell/src/Photo.vala"
g_critical ("Photo.vala:2274: file_exif_updated: %s no longer an image", _tmp19_);
#line 2274 "/home/jens/Source/shotwell/src/Photo.vala"
_g_free0 (_tmp19_);
#line 2276 "/home/jens/Source/shotwell/src/Photo.vala"
_detected_photo_information_unref0 (detected);
#line 2276 "/home/jens/Source/shotwell/src/Photo.vala"
_photo_file_interrogator_unref0 (interrogator);
#line 2276 "/home/jens/Source/shotwell/src/Photo.vala"
_g_object_unref0 (info);
#line 2276 "/home/jens/Source/shotwell/src/Photo.vala"
_g_object_unref0 (file);
#line 2276 "/home/jens/Source/shotwell/src/Photo.vala"
return;
#line 17758 "Photo.c"
}
{
PhotoRow* _tmp20_ = NULL;
#line 2280 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp20_ = self->row;
#line 2280 "/home/jens/Source/shotwell/src/Photo.vala"
g_rec_mutex_lock (&self->priv->__lock_row);
#line 17766 "Photo.c"
{
PhotoTable* _tmp21_ = NULL;
PhotoTable* _tmp22_ = NULL;
PhotoID _tmp23_ = {0};
GFileInfo* _tmp24_ = NULL;
gint64 _tmp25_ = 0LL;
GTimeVal _tmp26_ = {0};
glong _tmp27_ = 0L;
DetectedPhotoInformation* _tmp28_ = NULL;
const gchar* _tmp29_ = NULL;
DetectedPhotoInformation* _tmp30_ = NULL;
const gchar* _tmp31_ = NULL;
DetectedPhotoInformation* _tmp32_ = NULL;
const gchar* _tmp33_ = NULL;
PhotoRow* _tmp34_ = NULL;
gboolean _tmp35_ = FALSE;
#line 2281 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp21_ = photo_table_get_instance ();
#line 2281 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp22_ = _tmp21_;
#line 2281 "/home/jens/Source/shotwell/src/Photo.vala"
photo_get_photo_id (self, &_tmp23_);
#line 2281 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp24_ = info;
#line 2281 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp25_ = g_file_info_get_size (_tmp24_);
#line 2281 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp26_ = timestamp;
#line 2281 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp27_ = _tmp26_.tv_sec;
#line 2281 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp28_ = detected;
#line 2281 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp29_ = _tmp28_->md5;
#line 2281 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp30_ = detected;
#line 2281 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp31_ = _tmp30_->exif_md5;
#line 2281 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp32_ = detected;
#line 2281 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp33_ = _tmp32_->thumbnail_md5;
#line 2281 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp34_ = self->row;
#line 2281 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp35_ = photo_table_master_exif_updated (_tmp22_, &_tmp23_, _tmp25_, _tmp27_, _tmp29_, _tmp31_, _tmp33_, _tmp34_);
#line 2281 "/home/jens/Source/shotwell/src/Photo.vala"
success = _tmp35_;
#line 2281 "/home/jens/Source/shotwell/src/Photo.vala"
_database_table_unref0 (_tmp22_);
#line 17817 "Photo.c"
}
__finally343:
{
PhotoRow* _tmp36_ = NULL;
#line 2280 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp36_ = self->row;
#line 2280 "/home/jens/Source/shotwell/src/Photo.vala"
g_rec_mutex_unlock (&self->priv->__lock_row);
#line 17826 "Photo.c"
}
#line 2280 "/home/jens/Source/shotwell/src/Photo.vala"
if (G_UNLIKELY (_inner_error_ != NULL)) {
#line 2280 "/home/jens/Source/shotwell/src/Photo.vala"
_detected_photo_information_unref0 (detected);
#line 2280 "/home/jens/Source/shotwell/src/Photo.vala"
_photo_file_interrogator_unref0 (interrogator);
#line 2280 "/home/jens/Source/shotwell/src/Photo.vala"
_g_object_unref0 (info);
#line 2280 "/home/jens/Source/shotwell/src/Photo.vala"
_g_object_unref0 (file);
#line 2280 "/home/jens/Source/shotwell/src/Photo.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 2280 "/home/jens/Source/shotwell/src/Photo.vala"
g_clear_error (&_inner_error_);
#line 2280 "/home/jens/Source/shotwell/src/Photo.vala"
return;
#line 17844 "Photo.c"
}
}
#line 2285 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp37_ = success;
#line 2285 "/home/jens/Source/shotwell/src/Photo.vala"
if (_tmp37_) {
#line 17851 "Photo.c"
Alteration* _tmp38_ = NULL;
Alteration* _tmp39_ = NULL;
#line 2286 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp38_ = alteration_new_from_list ("metadata:exif,metadata:md5");
#line 2286 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp39_ = _tmp38_;
#line 2286 "/home/jens/Source/shotwell/src/Photo.vala"
data_object_notify_altered (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_DATA_OBJECT, DataObject), _tmp39_);
#line 2286 "/home/jens/Source/shotwell/src/Photo.vala"
_alteration_unref0 (_tmp39_);
#line 17862 "Photo.c"
}
#line 2251 "/home/jens/Source/shotwell/src/Photo.vala"
_detected_photo_information_unref0 (detected);
#line 2251 "/home/jens/Source/shotwell/src/Photo.vala"
_photo_file_interrogator_unref0 (interrogator);
#line 2251 "/home/jens/Source/shotwell/src/Photo.vala"
_g_object_unref0 (info);
#line 2251 "/home/jens/Source/shotwell/src/Photo.vala"
_g_object_unref0 (file);
#line 17872 "Photo.c"
}
static guint64 photo_real_get_filesize (MediaSource* base) {
Photo * self;
guint64 result = 0ULL;
GError * _inner_error_ = NULL;
#line 2291 "/home/jens/Source/shotwell/src/Photo.vala"
self = G_TYPE_CHECK_INSTANCE_CAST (base, TYPE_PHOTO, Photo);
#line 17882 "Photo.c"
{
PhotoRow* _tmp0_ = NULL;
#line 2292 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp0_ = self->row;
#line 2292 "/home/jens/Source/shotwell/src/Photo.vala"
g_rec_mutex_lock (&self->priv->__lock_row);
#line 17889 "Photo.c"
{
BackingPhotoRow* _tmp1_ = NULL;
gint64 _tmp2_ = 0LL;
#line 2293 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp1_ = self->backing_photo_row;
#line 2293 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp2_ = _tmp1_->filesize;
#line 2293 "/home/jens/Source/shotwell/src/Photo.vala"
result = (guint64) _tmp2_;
#line 17899 "Photo.c"
{
PhotoRow* _tmp3_ = NULL;
#line 2292 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp3_ = self->row;
#line 2292 "/home/jens/Source/shotwell/src/Photo.vala"
g_rec_mutex_unlock (&self->priv->__lock_row);
#line 17906 "Photo.c"
}
#line 2293 "/home/jens/Source/shotwell/src/Photo.vala"
return result;
#line 17910 "Photo.c"
}
__finally344:
{
PhotoRow* _tmp4_ = NULL;
#line 2292 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp4_ = self->row;
#line 2292 "/home/jens/Source/shotwell/src/Photo.vala"
g_rec_mutex_unlock (&self->priv->__lock_row);
#line 17919 "Photo.c"
}
#line 2292 "/home/jens/Source/shotwell/src/Photo.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 2292 "/home/jens/Source/shotwell/src/Photo.vala"
g_clear_error (&_inner_error_);
#line 2292 "/home/jens/Source/shotwell/src/Photo.vala"
return 0ULL;
#line 17927 "Photo.c"
}
}
static guint64 photo_real_get_master_filesize (MediaSource* base) {
Photo * self;
guint64 result = 0ULL;
GError * _inner_error_ = NULL;
#line 2297 "/home/jens/Source/shotwell/src/Photo.vala"
self = G_TYPE_CHECK_INSTANCE_CAST (base, TYPE_PHOTO, Photo);
#line 17938 "Photo.c"
{
PhotoRow* _tmp0_ = NULL;
#line 2298 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp0_ = self->row;
#line 2298 "/home/jens/Source/shotwell/src/Photo.vala"
g_rec_mutex_lock (&self->priv->__lock_row);
#line 17945 "Photo.c"
{
PhotoRow* _tmp1_ = NULL;
BackingPhotoRow* _tmp2_ = NULL;
gint64 _tmp3_ = 0LL;
#line 2299 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp1_ = self->row;
#line 2299 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp2_ = _tmp1_->master;
#line 2299 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp3_ = _tmp2_->filesize;
#line 2299 "/home/jens/Source/shotwell/src/Photo.vala"
result = (guint64) _tmp3_;
#line 17958 "Photo.c"
{
PhotoRow* _tmp4_ = NULL;
#line 2298 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp4_ = self->row;
#line 2298 "/home/jens/Source/shotwell/src/Photo.vala"
g_rec_mutex_unlock (&self->priv->__lock_row);
#line 17965 "Photo.c"
}
#line 2299 "/home/jens/Source/shotwell/src/Photo.vala"
return result;
#line 17969 "Photo.c"
}
__finally345:
{
PhotoRow* _tmp5_ = NULL;
#line 2298 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp5_ = self->row;
#line 2298 "/home/jens/Source/shotwell/src/Photo.vala"
g_rec_mutex_unlock (&self->priv->__lock_row);
#line 17978 "Photo.c"
}
#line 2298 "/home/jens/Source/shotwell/src/Photo.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 2298 "/home/jens/Source/shotwell/src/Photo.vala"
g_clear_error (&_inner_error_);
#line 2298 "/home/jens/Source/shotwell/src/Photo.vala"
return 0ULL;
#line 17986 "Photo.c"
}
}
guint64 photo_get_editable_filesize (Photo* self) {
guint64 result = 0ULL;
GError * _inner_error_ = NULL;
#line 2303 "/home/jens/Source/shotwell/src/Photo.vala"
g_return_val_if_fail (IS_PHOTO (self), 0ULL);
#line 17996 "Photo.c"
{
PhotoRow* _tmp0_ = NULL;
#line 2304 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp0_ = self->row;
#line 2304 "/home/jens/Source/shotwell/src/Photo.vala"
g_rec_mutex_lock (&self->priv->__lock_row);
#line 18003 "Photo.c"
{
BackingPhotoRow* _tmp1_ = NULL;
gint64 _tmp2_ = 0LL;
#line 2305 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp1_ = self->priv->editable;
#line 2305 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp2_ = _tmp1_->filesize;
#line 2305 "/home/jens/Source/shotwell/src/Photo.vala"
result = (guint64) _tmp2_;
#line 18013 "Photo.c"
{
PhotoRow* _tmp3_ = NULL;
#line 2304 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp3_ = self->row;
#line 2304 "/home/jens/Source/shotwell/src/Photo.vala"
g_rec_mutex_unlock (&self->priv->__lock_row);
#line 18020 "Photo.c"
}
#line 2305 "/home/jens/Source/shotwell/src/Photo.vala"
return result;
#line 18024 "Photo.c"
}
__finally346:
{
PhotoRow* _tmp4_ = NULL;
#line 2304 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp4_ = self->row;
#line 2304 "/home/jens/Source/shotwell/src/Photo.vala"
g_rec_mutex_unlock (&self->priv->__lock_row);
#line 18033 "Photo.c"
}
#line 2304 "/home/jens/Source/shotwell/src/Photo.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 2304 "/home/jens/Source/shotwell/src/Photo.vala"
g_clear_error (&_inner_error_);
#line 2304 "/home/jens/Source/shotwell/src/Photo.vala"
return 0ULL;
#line 18041 "Photo.c"
}
}
static time_t photo_real_get_exposure_time (Dateable* base) {
Photo * self;
time_t result = 0;
time_t _tmp0_ = 0;
#line 2309 "/home/jens/Source/shotwell/src/Photo.vala"
self = G_TYPE_CHECK_INSTANCE_CAST (base, TYPE_PHOTO, Photo);
#line 2310 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp0_ = self->priv->cached_exposure_time;
#line 2310 "/home/jens/Source/shotwell/src/Photo.vala"
result = _tmp0_;
#line 2310 "/home/jens/Source/shotwell/src/Photo.vala"
return result;
#line 18058 "Photo.c"
}
static gchar* photo_real_get_basename (MediaSource* base) {
Photo * self;
gchar* result = NULL;
GError * _inner_error_ = NULL;
#line 2313 "/home/jens/Source/shotwell/src/Photo.vala"
self = G_TYPE_CHECK_INSTANCE_CAST (base, TYPE_PHOTO, Photo);
#line 18068 "Photo.c"
{
PhotoRow* _tmp0_ = NULL;
#line 2314 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp0_ = self->row;
#line 2314 "/home/jens/Source/shotwell/src/Photo.vala"
g_rec_mutex_lock (&self->priv->__lock_row);
#line 18075 "Photo.c"
{
const gchar* _tmp1_ = NULL;
gchar* _tmp2_ = NULL;
#line 2315 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp1_ = self->priv->file_title;
#line 2315 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp2_ = g_strdup (_tmp1_);
#line 2315 "/home/jens/Source/shotwell/src/Photo.vala"
result = _tmp2_;
#line 18085 "Photo.c"
{
PhotoRow* _tmp3_ = NULL;
#line 2314 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp3_ = self->row;
#line 2314 "/home/jens/Source/shotwell/src/Photo.vala"
g_rec_mutex_unlock (&self->priv->__lock_row);
#line 18092 "Photo.c"
}
#line 2315 "/home/jens/Source/shotwell/src/Photo.vala"
return result;
#line 18096 "Photo.c"
}
__finally347:
{
PhotoRow* _tmp4_ = NULL;
#line 2314 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp4_ = self->row;
#line 2314 "/home/jens/Source/shotwell/src/Photo.vala"
g_rec_mutex_unlock (&self->priv->__lock_row);
#line 18105 "Photo.c"
}
#line 2314 "/home/jens/Source/shotwell/src/Photo.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 2314 "/home/jens/Source/shotwell/src/Photo.vala"
g_clear_error (&_inner_error_);
#line 2314 "/home/jens/Source/shotwell/src/Photo.vala"
return NULL;
#line 18113 "Photo.c"
}
}
static gchar* photo_real_get_title (MediaSource* base) {
Photo * self;
gchar* result = NULL;
GError * _inner_error_ = NULL;
#line 2319 "/home/jens/Source/shotwell/src/Photo.vala"
self = G_TYPE_CHECK_INSTANCE_CAST (base, TYPE_PHOTO, Photo);
#line 18124 "Photo.c"
{
PhotoRow* _tmp0_ = NULL;
#line 2320 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp0_ = self->row;
#line 2320 "/home/jens/Source/shotwell/src/Photo.vala"
g_rec_mutex_lock (&self->priv->__lock_row);
#line 18131 "Photo.c"
{
PhotoRow* _tmp1_ = NULL;
const gchar* _tmp2_ = NULL;
gchar* _tmp3_ = NULL;
#line 2321 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp1_ = self->row;
#line 2321 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp2_ = _tmp1_->title;
#line 2321 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp3_ = g_strdup (_tmp2_);
#line 2321 "/home/jens/Source/shotwell/src/Photo.vala"
result = _tmp3_;
#line 18144 "Photo.c"
{
PhotoRow* _tmp4_ = NULL;
#line 2320 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp4_ = self->row;
#line 2320 "/home/jens/Source/shotwell/src/Photo.vala"
g_rec_mutex_unlock (&self->priv->__lock_row);
#line 18151 "Photo.c"
}
#line 2321 "/home/jens/Source/shotwell/src/Photo.vala"
return result;
#line 18155 "Photo.c"
}
__finally348:
{
PhotoRow* _tmp5_ = NULL;
#line 2320 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp5_ = self->row;
#line 2320 "/home/jens/Source/shotwell/src/Photo.vala"
g_rec_mutex_unlock (&self->priv->__lock_row);
#line 18164 "Photo.c"
}
#line 2320 "/home/jens/Source/shotwell/src/Photo.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 2320 "/home/jens/Source/shotwell/src/Photo.vala"
g_clear_error (&_inner_error_);
#line 2320 "/home/jens/Source/shotwell/src/Photo.vala"
return NULL;
#line 18172 "Photo.c"
}
}
static gchar* photo_real_get_comment (MediaSource* base) {
Photo * self;
gchar* result = NULL;
GError * _inner_error_ = NULL;
#line 2325 "/home/jens/Source/shotwell/src/Photo.vala"
self = G_TYPE_CHECK_INSTANCE_CAST (base, TYPE_PHOTO, Photo);
#line 18183 "Photo.c"
{
PhotoRow* _tmp0_ = NULL;
#line 2326 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp0_ = self->row;
#line 2326 "/home/jens/Source/shotwell/src/Photo.vala"
g_rec_mutex_lock (&self->priv->__lock_row);
#line 18190 "Photo.c"
{
PhotoRow* _tmp1_ = NULL;
const gchar* _tmp2_ = NULL;
gchar* _tmp3_ = NULL;
#line 2327 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp1_ = self->row;
#line 2327 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp2_ = _tmp1_->comment;
#line 2327 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp3_ = g_strdup (_tmp2_);
#line 2327 "/home/jens/Source/shotwell/src/Photo.vala"
result = _tmp3_;
#line 18203 "Photo.c"
{
PhotoRow* _tmp4_ = NULL;
#line 2326 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp4_ = self->row;
#line 2326 "/home/jens/Source/shotwell/src/Photo.vala"
g_rec_mutex_unlock (&self->priv->__lock_row);
#line 18210 "Photo.c"
}
#line 2327 "/home/jens/Source/shotwell/src/Photo.vala"
return result;
#line 18214 "Photo.c"
}
__finally349:
{
PhotoRow* _tmp5_ = NULL;
#line 2326 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp5_ = self->row;
#line 2326 "/home/jens/Source/shotwell/src/Photo.vala"
g_rec_mutex_unlock (&self->priv->__lock_row);
#line 18223 "Photo.c"
}
#line 2326 "/home/jens/Source/shotwell/src/Photo.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 2326 "/home/jens/Source/shotwell/src/Photo.vala"
g_clear_error (&_inner_error_);
#line 2326 "/home/jens/Source/shotwell/src/Photo.vala"
return NULL;
#line 18231 "Photo.c"
}
}
static void photo_real_set_title (MediaSource* base, const gchar* title) {
Photo * self;
gchar* new_title = NULL;
const gchar* _tmp0_ = NULL;
gchar* _tmp1_ = NULL;
gboolean committed = FALSE;
gboolean _tmp18_ = FALSE;
GError * _inner_error_ = NULL;
#line 2331 "/home/jens/Source/shotwell/src/Photo.vala"
self = G_TYPE_CHECK_INSTANCE_CAST (base, TYPE_PHOTO, Photo);
#line 2332 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp0_ = title;
#line 2332 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp1_ = media_source_prep_title (_tmp0_);
#line 2332 "/home/jens/Source/shotwell/src/Photo.vala"
new_title = _tmp1_;
#line 2334 "/home/jens/Source/shotwell/src/Photo.vala"
committed = FALSE;
#line 18254 "Photo.c"
{
PhotoRow* _tmp2_ = NULL;
#line 2335 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp2_ = self->row;
#line 2335 "/home/jens/Source/shotwell/src/Photo.vala"
g_rec_mutex_lock (&self->priv->__lock_row);
#line 18261 "Photo.c"
{
const gchar* _tmp3_ = NULL;
PhotoRow* _tmp4_ = NULL;
const gchar* _tmp5_ = NULL;
PhotoTable* _tmp7_ = NULL;
PhotoTable* _tmp8_ = NULL;
PhotoRow* _tmp9_ = NULL;
PhotoID _tmp10_ = {0};
const gchar* _tmp11_ = NULL;
gboolean _tmp12_ = FALSE;
gboolean _tmp13_ = FALSE;
#line 2336 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp3_ = new_title;
#line 2336 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp4_ = self->row;
#line 2336 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp5_ = _tmp4_->title;
#line 2336 "/home/jens/Source/shotwell/src/Photo.vala"
if (g_strcmp0 (_tmp3_, _tmp5_) == 0) {
#line 18281 "Photo.c"
{
PhotoRow* _tmp6_ = NULL;
#line 2335 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp6_ = self->row;
#line 2335 "/home/jens/Source/shotwell/src/Photo.vala"
g_rec_mutex_unlock (&self->priv->__lock_row);
#line 18288 "Photo.c"
}
#line 2337 "/home/jens/Source/shotwell/src/Photo.vala"
_g_free0 (new_title);
#line 2337 "/home/jens/Source/shotwell/src/Photo.vala"
return;
#line 18294 "Photo.c"
}
#line 2339 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp7_ = photo_table_get_instance ();
#line 2339 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp8_ = _tmp7_;
#line 2339 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp9_ = self->row;
#line 2339 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp10_ = _tmp9_->photo_id;
#line 2339 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp11_ = new_title;
#line 2339 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp12_ = photo_table_set_title (_tmp8_, &_tmp10_, _tmp11_);
#line 2339 "/home/jens/Source/shotwell/src/Photo.vala"
committed = _tmp12_;
#line 2339 "/home/jens/Source/shotwell/src/Photo.vala"
_database_table_unref0 (_tmp8_);
#line 2340 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp13_ = committed;
#line 2340 "/home/jens/Source/shotwell/src/Photo.vala"
if (_tmp13_) {
#line 18316 "Photo.c"
PhotoRow* _tmp14_ = NULL;
const gchar* _tmp15_ = NULL;
gchar* _tmp16_ = NULL;
#line 2341 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp14_ = self->row;
#line 2341 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp15_ = new_title;
#line 2341 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp16_ = g_strdup (_tmp15_);
#line 2341 "/home/jens/Source/shotwell/src/Photo.vala"
_g_free0 (_tmp14_->title);
#line 2341 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp14_->title = _tmp16_;
#line 18330 "Photo.c"
}
}
__finally350:
{
PhotoRow* _tmp17_ = NULL;
#line 2335 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp17_ = self->row;
#line 2335 "/home/jens/Source/shotwell/src/Photo.vala"
g_rec_mutex_unlock (&self->priv->__lock_row);
#line 18340 "Photo.c"
}
#line 2335 "/home/jens/Source/shotwell/src/Photo.vala"
if (G_UNLIKELY (_inner_error_ != NULL)) {
#line 2335 "/home/jens/Source/shotwell/src/Photo.vala"
_g_free0 (new_title);
#line 2335 "/home/jens/Source/shotwell/src/Photo.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 2335 "/home/jens/Source/shotwell/src/Photo.vala"
g_clear_error (&_inner_error_);
#line 2335 "/home/jens/Source/shotwell/src/Photo.vala"
return;
#line 18352 "Photo.c"
}
}
#line 2344 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp18_ = committed;
#line 2344 "/home/jens/Source/shotwell/src/Photo.vala"
if (_tmp18_) {
#line 18359 "Photo.c"
Alteration* _tmp19_ = NULL;
Alteration* _tmp20_ = NULL;
#line 2345 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp19_ = alteration_new ("metadata", "name");
#line 2345 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp20_ = _tmp19_;
#line 2345 "/home/jens/Source/shotwell/src/Photo.vala"
data_object_notify_altered (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_DATA_OBJECT, DataObject), _tmp20_);
#line 2345 "/home/jens/Source/shotwell/src/Photo.vala"
_alteration_unref0 (_tmp20_);
#line 18370 "Photo.c"
}
#line 2331 "/home/jens/Source/shotwell/src/Photo.vala"
_g_free0 (new_title);
#line 18374 "Photo.c"
}
static gboolean photo_real_set_comment (MediaSource* base, const gchar* comment) {
Photo * self;
gboolean result = FALSE;
gchar* new_comment = NULL;
const gchar* _tmp0_ = NULL;
gchar* _tmp1_ = NULL;
gboolean committed = FALSE;
gboolean _tmp18_ = FALSE;
GError * _inner_error_ = NULL;
#line 2348 "/home/jens/Source/shotwell/src/Photo.vala"
self = G_TYPE_CHECK_INSTANCE_CAST (base, TYPE_PHOTO, Photo);
#line 2349 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp0_ = comment;
#line 2349 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp1_ = media_source_prep_comment (_tmp0_);
#line 2349 "/home/jens/Source/shotwell/src/Photo.vala"
new_comment = _tmp1_;
#line 2351 "/home/jens/Source/shotwell/src/Photo.vala"
committed = FALSE;
#line 18397 "Photo.c"
{
PhotoRow* _tmp2_ = NULL;
#line 2352 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp2_ = self->row;
#line 2352 "/home/jens/Source/shotwell/src/Photo.vala"
g_rec_mutex_lock (&self->priv->__lock_row);
#line 18404 "Photo.c"
{
const gchar* _tmp3_ = NULL;
PhotoRow* _tmp4_ = NULL;
const gchar* _tmp5_ = NULL;
PhotoTable* _tmp7_ = NULL;
PhotoTable* _tmp8_ = NULL;
PhotoRow* _tmp9_ = NULL;
PhotoID _tmp10_ = {0};
const gchar* _tmp11_ = NULL;
gboolean _tmp12_ = FALSE;
gboolean _tmp13_ = FALSE;
#line 2353 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp3_ = new_comment;
#line 2353 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp4_ = self->row;
#line 2353 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp5_ = _tmp4_->comment;
#line 2353 "/home/jens/Source/shotwell/src/Photo.vala"
if (g_strcmp0 (_tmp3_, _tmp5_) == 0) {
#line 2354 "/home/jens/Source/shotwell/src/Photo.vala"
result = TRUE;
#line 18426 "Photo.c"
{
PhotoRow* _tmp6_ = NULL;
#line 2352 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp6_ = self->row;
#line 2352 "/home/jens/Source/shotwell/src/Photo.vala"
g_rec_mutex_unlock (&self->priv->__lock_row);
#line 18433 "Photo.c"
}
#line 2354 "/home/jens/Source/shotwell/src/Photo.vala"
_g_free0 (new_comment);
#line 2354 "/home/jens/Source/shotwell/src/Photo.vala"
return result;
#line 18439 "Photo.c"
}
#line 2356 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp7_ = photo_table_get_instance ();
#line 2356 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp8_ = _tmp7_;
#line 2356 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp9_ = self->row;
#line 2356 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp10_ = _tmp9_->photo_id;
#line 2356 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp11_ = new_comment;
#line 2356 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp12_ = photo_table_set_comment (_tmp8_, &_tmp10_, _tmp11_);
#line 2356 "/home/jens/Source/shotwell/src/Photo.vala"
committed = _tmp12_;
#line 2356 "/home/jens/Source/shotwell/src/Photo.vala"
_database_table_unref0 (_tmp8_);
#line 2357 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp13_ = committed;
#line 2357 "/home/jens/Source/shotwell/src/Photo.vala"
if (_tmp13_) {
#line 18461 "Photo.c"
PhotoRow* _tmp14_ = NULL;
const gchar* _tmp15_ = NULL;
gchar* _tmp16_ = NULL;
#line 2358 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp14_ = self->row;
#line 2358 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp15_ = new_comment;
#line 2358 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp16_ = g_strdup (_tmp15_);
#line 2358 "/home/jens/Source/shotwell/src/Photo.vala"
_g_free0 (_tmp14_->comment);
#line 2358 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp14_->comment = _tmp16_;
#line 18475 "Photo.c"
}
}
__finally351:
{
PhotoRow* _tmp17_ = NULL;
#line 2352 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp17_ = self->row;
#line 2352 "/home/jens/Source/shotwell/src/Photo.vala"
g_rec_mutex_unlock (&self->priv->__lock_row);
#line 18485 "Photo.c"
}
#line 2352 "/home/jens/Source/shotwell/src/Photo.vala"
if (G_UNLIKELY (_inner_error_ != NULL)) {
#line 2352 "/home/jens/Source/shotwell/src/Photo.vala"
_g_free0 (new_comment);
#line 2352 "/home/jens/Source/shotwell/src/Photo.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 2352 "/home/jens/Source/shotwell/src/Photo.vala"
g_clear_error (&_inner_error_);
#line 2352 "/home/jens/Source/shotwell/src/Photo.vala"
return FALSE;
#line 18497 "Photo.c"
}
}
#line 2361 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp18_ = committed;
#line 2361 "/home/jens/Source/shotwell/src/Photo.vala"
if (_tmp18_) {
#line 18504 "Photo.c"
Alteration* _tmp19_ = NULL;
Alteration* _tmp20_ = NULL;
#line 2362 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp19_ = alteration_new ("metadata", "comment");
#line 2362 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp20_ = _tmp19_;
#line 2362 "/home/jens/Source/shotwell/src/Photo.vala"
data_object_notify_altered (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_DATA_OBJECT, DataObject), _tmp20_);
#line 2362 "/home/jens/Source/shotwell/src/Photo.vala"
_alteration_unref0 (_tmp20_);
#line 18515 "Photo.c"
}
#line 2364 "/home/jens/Source/shotwell/src/Photo.vala"
result = committed;
#line 2364 "/home/jens/Source/shotwell/src/Photo.vala"
_g_free0 (new_comment);
#line 2364 "/home/jens/Source/shotwell/src/Photo.vala"
return result;
#line 18523 "Photo.c"
}
static gpointer _g_error_copy0 (gpointer self) {
#line 2374 "/home/jens/Source/shotwell/src/Photo.vala"
return self ? g_error_copy (self) : NULL;
#line 18530 "Photo.c"
}
void photo_set_import_id (Photo* self, ImportID* import_id) {
GError* dberr = NULL;
GError* _tmp13_ = NULL;
GError * _inner_error_ = NULL;
#line 2367 "/home/jens/Source/shotwell/src/Photo.vala"
g_return_if_fail (IS_PHOTO (self));
#line 2367 "/home/jens/Source/shotwell/src/Photo.vala"
g_return_if_fail (import_id != NULL);
#line 2368 "/home/jens/Source/shotwell/src/Photo.vala"
dberr = NULL;
#line 18544 "Photo.c"
{
PhotoRow* _tmp0_ = NULL;
#line 2369 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp0_ = self->row;
#line 2369 "/home/jens/Source/shotwell/src/Photo.vala"
g_rec_mutex_lock (&self->priv->__lock_row);
#line 18551 "Photo.c"
{
{
PhotoTable* _tmp1_ = NULL;
PhotoTable* _tmp2_ = NULL;
PhotoRow* _tmp3_ = NULL;
PhotoID _tmp4_ = {0};
ImportID _tmp5_ = {0};
PhotoRow* _tmp7_ = NULL;
ImportID _tmp8_ = {0};
#line 2371 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp1_ = photo_table_get_instance ();
#line 2371 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp2_ = _tmp1_;
#line 2371 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp3_ = self->row;
#line 2371 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp4_ = _tmp3_->photo_id;
#line 2371 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp5_ = *import_id;
#line 2371 "/home/jens/Source/shotwell/src/Photo.vala"
photo_table_set_import_id (_tmp2_, &_tmp4_, &_tmp5_, &_inner_error_);
#line 2371 "/home/jens/Source/shotwell/src/Photo.vala"
_database_table_unref0 (_tmp2_);
#line 2371 "/home/jens/Source/shotwell/src/Photo.vala"
if (G_UNLIKELY (_inner_error_ != NULL)) {
#line 2371 "/home/jens/Source/shotwell/src/Photo.vala"
if (_inner_error_->domain == DATABASE_ERROR) {
#line 18579 "Photo.c"
goto __catch353_database_error;
}
{
PhotoRow* _tmp6_ = NULL;
#line 2369 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp6_ = self->row;
#line 2369 "/home/jens/Source/shotwell/src/Photo.vala"
g_rec_mutex_unlock (&self->priv->__lock_row);
#line 18588 "Photo.c"
}
#line 2371 "/home/jens/Source/shotwell/src/Photo.vala"
_g_error_free0 (dberr);
#line 2371 "/home/jens/Source/shotwell/src/Photo.vala"
g_critical ("file %s: line %d: unexpected error: %s (%s, %d)", __FILE__, __LINE__, _inner_error_->message, g_quark_to_string (_inner_error_->domain), _inner_error_->code);
#line 2371 "/home/jens/Source/shotwell/src/Photo.vala"
g_clear_error (&_inner_error_);
#line 2371 "/home/jens/Source/shotwell/src/Photo.vala"
return;
#line 18598 "Photo.c"
}
#line 2372 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp7_ = self->row;
#line 2372 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp8_ = *import_id;
#line 2372 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp7_->import_id = _tmp8_;
#line 18606 "Photo.c"
}
goto __finally353;
__catch353_database_error:
{
GError* err = NULL;
GError* _tmp9_ = NULL;
GError* _tmp10_ = NULL;
#line 2370 "/home/jens/Source/shotwell/src/Photo.vala"
err = _inner_error_;
#line 2370 "/home/jens/Source/shotwell/src/Photo.vala"
_inner_error_ = NULL;
#line 2374 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp9_ = err;
#line 2374 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp10_ = _g_error_copy0 (_tmp9_);
#line 2374 "/home/jens/Source/shotwell/src/Photo.vala"
_g_error_free0 (dberr);
#line 2374 "/home/jens/Source/shotwell/src/Photo.vala"
dberr = _tmp10_;
#line 2370 "/home/jens/Source/shotwell/src/Photo.vala"
_g_error_free0 (err);
#line 18628 "Photo.c"
}
__finally353:
#line 2370 "/home/jens/Source/shotwell/src/Photo.vala"
if (G_UNLIKELY (_inner_error_ != NULL)) {
#line 18633 "Photo.c"
{
PhotoRow* _tmp11_ = NULL;
#line 2369 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp11_ = self->row;
#line 2369 "/home/jens/Source/shotwell/src/Photo.vala"
g_rec_mutex_unlock (&self->priv->__lock_row);
#line 18640 "Photo.c"
}
#line 2370 "/home/jens/Source/shotwell/src/Photo.vala"
_g_error_free0 (dberr);
#line 2370 "/home/jens/Source/shotwell/src/Photo.vala"
g_critical ("file %s: line %d: unexpected error: %s (%s, %d)", __FILE__, __LINE__, _inner_error_->message, g_quark_to_string (_inner_error_->domain), _inner_error_->code);
#line 2370 "/home/jens/Source/shotwell/src/Photo.vala"
g_clear_error (&_inner_error_);
#line 2370 "/home/jens/Source/shotwell/src/Photo.vala"
return;
#line 18650 "Photo.c"
}
}
__finally352:
{
PhotoRow* _tmp12_ = NULL;
#line 2369 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp12_ = self->row;
#line 2369 "/home/jens/Source/shotwell/src/Photo.vala"
g_rec_mutex_unlock (&self->priv->__lock_row);
#line 18660 "Photo.c"
}
#line 2369 "/home/jens/Source/shotwell/src/Photo.vala"
if (G_UNLIKELY (_inner_error_ != NULL)) {
#line 2369 "/home/jens/Source/shotwell/src/Photo.vala"
_g_error_free0 (dberr);
#line 2369 "/home/jens/Source/shotwell/src/Photo.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 2369 "/home/jens/Source/shotwell/src/Photo.vala"
g_clear_error (&_inner_error_);
#line 2369 "/home/jens/Source/shotwell/src/Photo.vala"
return;
#line 18672 "Photo.c"
}
}
#line 2378 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp13_ = dberr;
#line 2378 "/home/jens/Source/shotwell/src/Photo.vala"
if (_tmp13_ == NULL) {
#line 18679 "Photo.c"
Alteration* _tmp14_ = NULL;
Alteration* _tmp15_ = NULL;
#line 2379 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp14_ = alteration_new ("metadata", "import-id");
#line 2379 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp15_ = _tmp14_;
#line 2379 "/home/jens/Source/shotwell/src/Photo.vala"
data_object_notify_altered (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_DATA_OBJECT, DataObject), _tmp15_);
#line 2379 "/home/jens/Source/shotwell/src/Photo.vala"
_alteration_unref0 (_tmp15_);
#line 18690 "Photo.c"
} else {
gchar* _tmp16_ = NULL;
gchar* _tmp17_ = NULL;
GError* _tmp18_ = NULL;
const gchar* _tmp19_ = NULL;
#line 2381 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp16_ = data_object_to_string (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_DATA_OBJECT, DataObject));
#line 2381 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp17_ = _tmp16_;
#line 2381 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp18_ = dberr;
#line 2381 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp19_ = _tmp18_->message;
#line 2381 "/home/jens/Source/shotwell/src/Photo.vala"
g_warning ("Photo.vala:2381: Unable to write import ID for %s: %s", _tmp17_, _tmp19_);
#line 2381 "/home/jens/Source/shotwell/src/Photo.vala"
_g_free0 (_tmp17_);
#line 18708 "Photo.c"
}
#line 2367 "/home/jens/Source/shotwell/src/Photo.vala"
_g_error_free0 (dberr);
#line 18712 "Photo.c"
}
void photo_set_title_persistent (Photo* self, const gchar* title, GError** error) {
PhotoFileReader* source = NULL;
PhotoFileReader* _tmp0_ = NULL;
PhotoFileReader* _tmp1_ = NULL;
PhotoFileFormat _tmp2_ = 0;
gboolean _tmp3_ = FALSE;
PhotoMetadata* metadata = NULL;
PhotoFileReader* _tmp8_ = NULL;
PhotoMetadata* _tmp9_ = NULL;
PhotoMetadata* _tmp10_ = NULL;
const gchar* _tmp11_ = NULL;
PhotoFileMetadataWriter* writer = NULL;
PhotoFileReader* _tmp12_ = NULL;
PhotoFileMetadataWriter* _tmp13_ = NULL;
PhotoFileReader* _tmp14_ = NULL;
GFile* _tmp15_ = NULL;
GFile* _tmp16_ = NULL;
const gchar* _tmp22_ = NULL;
GError * _inner_error_ = NULL;
#line 2384 "/home/jens/Source/shotwell/src/Photo.vala"
g_return_if_fail (IS_PHOTO (self));
#line 2385 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp0_ = photo_get_source_reader (self);
#line 2385 "/home/jens/Source/shotwell/src/Photo.vala"
source = _tmp0_;
#line 2388 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp1_ = source;
#line 2388 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp2_ = photo_file_adapter_get_file_format (G_TYPE_CHECK_INSTANCE_CAST (_tmp1_, TYPE_PHOTO_FILE_ADAPTER, PhotoFileAdapter));
#line 2388 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp3_ = photo_file_format_can_write_metadata (_tmp2_);
#line 2388 "/home/jens/Source/shotwell/src/Photo.vala"
if (!_tmp3_) {
#line 18749 "Photo.c"
PhotoFileReader* _tmp4_ = NULL;
gchar* _tmp5_ = NULL;
gchar* _tmp6_ = NULL;
const gchar* _tmp7_ = NULL;
#line 2389 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp4_ = source;
#line 2389 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp5_ = photo_file_adapter_get_filepath (G_TYPE_CHECK_INSTANCE_CAST (_tmp4_, TYPE_PHOTO_FILE_ADAPTER, PhotoFileAdapter));
#line 2389 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp6_ = _tmp5_;
#line 2389 "/home/jens/Source/shotwell/src/Photo.vala"
g_warning ("Photo.vala:2389: No photo file writer available for %s", _tmp6_);
#line 2389 "/home/jens/Source/shotwell/src/Photo.vala"
_g_free0 (_tmp6_);
#line 2391 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp7_ = title;
#line 2391 "/home/jens/Source/shotwell/src/Photo.vala"
media_source_set_title (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_MEDIA_SOURCE, MediaSource), _tmp7_);
#line 2393 "/home/jens/Source/shotwell/src/Photo.vala"
_photo_file_adapter_unref0 (source);
#line 2393 "/home/jens/Source/shotwell/src/Photo.vala"
return;
#line 18772 "Photo.c"
}
#line 2396 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp8_ = source;
#line 2396 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp9_ = photo_file_reader_read_metadata (_tmp8_, &_inner_error_);
#line 2396 "/home/jens/Source/shotwell/src/Photo.vala"
metadata = _tmp9_;
#line 2396 "/home/jens/Source/shotwell/src/Photo.vala"
if (G_UNLIKELY (_inner_error_ != NULL)) {
#line 2396 "/home/jens/Source/shotwell/src/Photo.vala"
g_propagate_error (error, _inner_error_);
#line 2396 "/home/jens/Source/shotwell/src/Photo.vala"
_photo_file_adapter_unref0 (source);
#line 2396 "/home/jens/Source/shotwell/src/Photo.vala"
return;
#line 18788 "Photo.c"
}
#line 2397 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp10_ = metadata;
#line 2397 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp11_ = title;
#line 2397 "/home/jens/Source/shotwell/src/Photo.vala"
photo_metadata_set_title (_tmp10_, _tmp11_, PHOTO_METADATA_SET_OPTION_ALL_DOMAINS);
#line 2399 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp12_ = source;
#line 2399 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp13_ = photo_file_reader_create_metadata_writer (_tmp12_, &_inner_error_);
#line 2399 "/home/jens/Source/shotwell/src/Photo.vala"
writer = _tmp13_;
#line 2399 "/home/jens/Source/shotwell/src/Photo.vala"
if (G_UNLIKELY (_inner_error_ != NULL)) {
#line 2399 "/home/jens/Source/shotwell/src/Photo.vala"
g_propagate_error (error, _inner_error_);
#line 2399 "/home/jens/Source/shotwell/src/Photo.vala"
_media_metadata_unref0 (metadata);
#line 2399 "/home/jens/Source/shotwell/src/Photo.vala"
_photo_file_adapter_unref0 (source);
#line 2399 "/home/jens/Source/shotwell/src/Photo.vala"
return;
#line 18812 "Photo.c"
}
#line 2400 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp14_ = source;
#line 2400 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp15_ = photo_file_adapter_get_file (G_TYPE_CHECK_INSTANCE_CAST (_tmp14_, TYPE_PHOTO_FILE_ADAPTER, PhotoFileAdapter));
#line 2400 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp16_ = _tmp15_;
#line 2400 "/home/jens/Source/shotwell/src/Photo.vala"
library_monitor_blacklist_file (_tmp16_, "Photo.set_persistent_title");
#line 2400 "/home/jens/Source/shotwell/src/Photo.vala"
_g_object_unref0 (_tmp16_);
#line 18824 "Photo.c"
{
PhotoFileMetadataWriter* _tmp17_ = NULL;
PhotoMetadata* _tmp18_ = NULL;
#line 2402 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp17_ = writer;
#line 2402 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp18_ = metadata;
#line 2402 "/home/jens/Source/shotwell/src/Photo.vala"
photo_file_metadata_writer_write_metadata (_tmp17_, _tmp18_, &_inner_error_);
#line 2402 "/home/jens/Source/shotwell/src/Photo.vala"
if (G_UNLIKELY (_inner_error_ != NULL)) {
#line 18836 "Photo.c"
goto __finally354;
}
}
__finally354:
{
PhotoFileReader* _tmp19_ = NULL;
GFile* _tmp20_ = NULL;
GFile* _tmp21_ = NULL;
#line 2404 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp19_ = source;
#line 2404 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp20_ = photo_file_adapter_get_file (G_TYPE_CHECK_INSTANCE_CAST (_tmp19_, TYPE_PHOTO_FILE_ADAPTER, PhotoFileAdapter));
#line 2404 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp21_ = _tmp20_;
#line 2404 "/home/jens/Source/shotwell/src/Photo.vala"
library_monitor_unblacklist_file (_tmp21_);
#line 2404 "/home/jens/Source/shotwell/src/Photo.vala"
_g_object_unref0 (_tmp21_);
#line 18855 "Photo.c"
}
#line 2401 "/home/jens/Source/shotwell/src/Photo.vala"
if (G_UNLIKELY (_inner_error_ != NULL)) {
#line 2401 "/home/jens/Source/shotwell/src/Photo.vala"
g_propagate_error (error, _inner_error_);
#line 2401 "/home/jens/Source/shotwell/src/Photo.vala"
_photo_file_adapter_unref0 (writer);
#line 2401 "/home/jens/Source/shotwell/src/Photo.vala"
_media_metadata_unref0 (metadata);
#line 2401 "/home/jens/Source/shotwell/src/Photo.vala"
_photo_file_adapter_unref0 (source);
#line 2401 "/home/jens/Source/shotwell/src/Photo.vala"
return;
#line 18869 "Photo.c"
}
#line 2407 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp22_ = title;
#line 2407 "/home/jens/Source/shotwell/src/Photo.vala"
media_source_set_title (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_MEDIA_SOURCE, MediaSource), _tmp22_);
#line 2409 "/home/jens/Source/shotwell/src/Photo.vala"
photo_file_exif_updated (self);
#line 2384 "/home/jens/Source/shotwell/src/Photo.vala"
_photo_file_adapter_unref0 (writer);
#line 2384 "/home/jens/Source/shotwell/src/Photo.vala"
_media_metadata_unref0 (metadata);
#line 2384 "/home/jens/Source/shotwell/src/Photo.vala"
_photo_file_adapter_unref0 (source);
#line 18883 "Photo.c"
}
void photo_set_comment_persistent (Photo* self, const gchar* comment, GError** error) {
PhotoFileReader* source = NULL;
PhotoFileReader* _tmp0_ = NULL;
PhotoFileReader* _tmp1_ = NULL;
PhotoFileFormat _tmp2_ = 0;
gboolean _tmp3_ = FALSE;
PhotoMetadata* metadata = NULL;
PhotoFileReader* _tmp8_ = NULL;
PhotoMetadata* _tmp9_ = NULL;
PhotoMetadata* _tmp10_ = NULL;
const gchar* _tmp11_ = NULL;
PhotoFileMetadataWriter* writer = NULL;
PhotoFileReader* _tmp12_ = NULL;
PhotoFileMetadataWriter* _tmp13_ = NULL;
PhotoFileReader* _tmp14_ = NULL;
GFile* _tmp15_ = NULL;
GFile* _tmp16_ = NULL;
const gchar* _tmp22_ = NULL;
GError * _inner_error_ = NULL;
#line 2412 "/home/jens/Source/shotwell/src/Photo.vala"
g_return_if_fail (IS_PHOTO (self));
#line 2413 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp0_ = photo_get_source_reader (self);
#line 2413 "/home/jens/Source/shotwell/src/Photo.vala"
source = _tmp0_;
#line 2416 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp1_ = source;
#line 2416 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp2_ = photo_file_adapter_get_file_format (G_TYPE_CHECK_INSTANCE_CAST (_tmp1_, TYPE_PHOTO_FILE_ADAPTER, PhotoFileAdapter));
#line 2416 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp3_ = photo_file_format_can_write_metadata (_tmp2_);
#line 2416 "/home/jens/Source/shotwell/src/Photo.vala"
if (!_tmp3_) {
#line 18920 "Photo.c"
PhotoFileReader* _tmp4_ = NULL;
gchar* _tmp5_ = NULL;
gchar* _tmp6_ = NULL;
const gchar* _tmp7_ = NULL;
#line 2417 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp4_ = source;
#line 2417 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp5_ = photo_file_adapter_get_filepath (G_TYPE_CHECK_INSTANCE_CAST (_tmp4_, TYPE_PHOTO_FILE_ADAPTER, PhotoFileAdapter));
#line 2417 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp6_ = _tmp5_;
#line 2417 "/home/jens/Source/shotwell/src/Photo.vala"
g_warning ("Photo.vala:2417: No photo file writer available for %s", _tmp6_);
#line 2417 "/home/jens/Source/shotwell/src/Photo.vala"
_g_free0 (_tmp6_);
#line 2419 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp7_ = comment;
#line 2419 "/home/jens/Source/shotwell/src/Photo.vala"
media_source_set_comment (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_MEDIA_SOURCE, MediaSource), _tmp7_);
#line 2421 "/home/jens/Source/shotwell/src/Photo.vala"
_photo_file_adapter_unref0 (source);
#line 2421 "/home/jens/Source/shotwell/src/Photo.vala"
return;
#line 18943 "Photo.c"
}
#line 2424 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp8_ = source;
#line 2424 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp9_ = photo_file_reader_read_metadata (_tmp8_, &_inner_error_);
#line 2424 "/home/jens/Source/shotwell/src/Photo.vala"
metadata = _tmp9_;
#line 2424 "/home/jens/Source/shotwell/src/Photo.vala"
if (G_UNLIKELY (_inner_error_ != NULL)) {
#line 2424 "/home/jens/Source/shotwell/src/Photo.vala"
g_propagate_error (error, _inner_error_);
#line 2424 "/home/jens/Source/shotwell/src/Photo.vala"
_photo_file_adapter_unref0 (source);
#line 2424 "/home/jens/Source/shotwell/src/Photo.vala"
return;
#line 18959 "Photo.c"
}
#line 2425 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp10_ = metadata;
#line 2425 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp11_ = comment;
#line 2425 "/home/jens/Source/shotwell/src/Photo.vala"
photo_metadata_set_comment (_tmp10_, _tmp11_, PHOTO_METADATA_SET_OPTION_ALL_DOMAINS);
#line 2427 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp12_ = source;
#line 2427 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp13_ = photo_file_reader_create_metadata_writer (_tmp12_, &_inner_error_);
#line 2427 "/home/jens/Source/shotwell/src/Photo.vala"
writer = _tmp13_;
#line 2427 "/home/jens/Source/shotwell/src/Photo.vala"
if (G_UNLIKELY (_inner_error_ != NULL)) {
#line 2427 "/home/jens/Source/shotwell/src/Photo.vala"
g_propagate_error (error, _inner_error_);
#line 2427 "/home/jens/Source/shotwell/src/Photo.vala"
_media_metadata_unref0 (metadata);
#line 2427 "/home/jens/Source/shotwell/src/Photo.vala"
_photo_file_adapter_unref0 (source);
#line 2427 "/home/jens/Source/shotwell/src/Photo.vala"
return;
#line 18983 "Photo.c"
}
#line 2428 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp14_ = source;
#line 2428 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp15_ = photo_file_adapter_get_file (G_TYPE_CHECK_INSTANCE_CAST (_tmp14_, TYPE_PHOTO_FILE_ADAPTER, PhotoFileAdapter));
#line 2428 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp16_ = _tmp15_;
#line 2428 "/home/jens/Source/shotwell/src/Photo.vala"
library_monitor_blacklist_file (_tmp16_, "Photo.set_persistent_comment");
#line 2428 "/home/jens/Source/shotwell/src/Photo.vala"
_g_object_unref0 (_tmp16_);
#line 18995 "Photo.c"
{
PhotoFileMetadataWriter* _tmp17_ = NULL;
PhotoMetadata* _tmp18_ = NULL;
#line 2430 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp17_ = writer;
#line 2430 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp18_ = metadata;
#line 2430 "/home/jens/Source/shotwell/src/Photo.vala"
photo_file_metadata_writer_write_metadata (_tmp17_, _tmp18_, &_inner_error_);
#line 2430 "/home/jens/Source/shotwell/src/Photo.vala"
if (G_UNLIKELY (_inner_error_ != NULL)) {
#line 19007 "Photo.c"
goto __finally355;
}
}
__finally355:
{
PhotoFileReader* _tmp19_ = NULL;
GFile* _tmp20_ = NULL;
GFile* _tmp21_ = NULL;
#line 2432 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp19_ = source;
#line 2432 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp20_ = photo_file_adapter_get_file (G_TYPE_CHECK_INSTANCE_CAST (_tmp19_, TYPE_PHOTO_FILE_ADAPTER, PhotoFileAdapter));
#line 2432 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp21_ = _tmp20_;
#line 2432 "/home/jens/Source/shotwell/src/Photo.vala"
library_monitor_unblacklist_file (_tmp21_);
#line 2432 "/home/jens/Source/shotwell/src/Photo.vala"
_g_object_unref0 (_tmp21_);
#line 19026 "Photo.c"
}
#line 2429 "/home/jens/Source/shotwell/src/Photo.vala"
if (G_UNLIKELY (_inner_error_ != NULL)) {
#line 2429 "/home/jens/Source/shotwell/src/Photo.vala"
g_propagate_error (error, _inner_error_);
#line 2429 "/home/jens/Source/shotwell/src/Photo.vala"
_photo_file_adapter_unref0 (writer);
#line 2429 "/home/jens/Source/shotwell/src/Photo.vala"
_media_metadata_unref0 (metadata);
#line 2429 "/home/jens/Source/shotwell/src/Photo.vala"
_photo_file_adapter_unref0 (source);
#line 2429 "/home/jens/Source/shotwell/src/Photo.vala"
return;
#line 19040 "Photo.c"
}
#line 2435 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp22_ = comment;
#line 2435 "/home/jens/Source/shotwell/src/Photo.vala"
media_source_set_comment (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_MEDIA_SOURCE, MediaSource), _tmp22_);
#line 2437 "/home/jens/Source/shotwell/src/Photo.vala"
photo_file_exif_updated (self);
#line 2412 "/home/jens/Source/shotwell/src/Photo.vala"
_photo_file_adapter_unref0 (writer);
#line 2412 "/home/jens/Source/shotwell/src/Photo.vala"
_media_metadata_unref0 (metadata);
#line 2412 "/home/jens/Source/shotwell/src/Photo.vala"
_photo_file_adapter_unref0 (source);
#line 19054 "Photo.c"
}
static void photo_real_set_exposure_time (Dateable* base, time_t time) {
Photo * self;
gboolean committed = FALSE;
gboolean _tmp12_ = FALSE;
GError * _inner_error_ = NULL;
#line 2440 "/home/jens/Source/shotwell/src/Photo.vala"
self = G_TYPE_CHECK_INSTANCE_CAST (base, TYPE_PHOTO, Photo);
#line 19065 "Photo.c"
{
PhotoRow* _tmp0_ = NULL;
#line 2442 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp0_ = self->row;
#line 2442 "/home/jens/Source/shotwell/src/Photo.vala"
g_rec_mutex_lock (&self->priv->__lock_row);
#line 19072 "Photo.c"
{
PhotoTable* _tmp1_ = NULL;
PhotoTable* _tmp2_ = NULL;
PhotoRow* _tmp3_ = NULL;
PhotoID _tmp4_ = {0};
time_t _tmp5_ = 0;
gboolean _tmp6_ = FALSE;
gboolean _tmp7_ = FALSE;
#line 2443 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp1_ = photo_table_get_instance ();
#line 2443 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp2_ = _tmp1_;
#line 2443 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp3_ = self->row;
#line 2443 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp4_ = _tmp3_->photo_id;
#line 2443 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp5_ = time;
#line 2443 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp6_ = photo_table_set_exposure_time (_tmp2_, &_tmp4_, _tmp5_);
#line 2443 "/home/jens/Source/shotwell/src/Photo.vala"
committed = _tmp6_;
#line 2443 "/home/jens/Source/shotwell/src/Photo.vala"
_database_table_unref0 (_tmp2_);
#line 2444 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp7_ = committed;
#line 2444 "/home/jens/Source/shotwell/src/Photo.vala"
if (_tmp7_) {
#line 19101 "Photo.c"
PhotoRow* _tmp8_ = NULL;
time_t _tmp9_ = 0;
time_t _tmp10_ = 0;
#line 2445 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp8_ = self->row;
#line 2445 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp9_ = time;
#line 2445 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp8_->exposure_time = _tmp9_;
#line 2446 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp10_ = time;
#line 2446 "/home/jens/Source/shotwell/src/Photo.vala"
self->priv->cached_exposure_time = _tmp10_;
#line 19115 "Photo.c"
}
}
__finally356:
{
PhotoRow* _tmp11_ = NULL;
#line 2442 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp11_ = self->row;
#line 2442 "/home/jens/Source/shotwell/src/Photo.vala"
g_rec_mutex_unlock (&self->priv->__lock_row);
#line 19125 "Photo.c"
}
#line 2442 "/home/jens/Source/shotwell/src/Photo.vala"
if (G_UNLIKELY (_inner_error_ != NULL)) {
#line 2442 "/home/jens/Source/shotwell/src/Photo.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 2442 "/home/jens/Source/shotwell/src/Photo.vala"
g_clear_error (&_inner_error_);
#line 2442 "/home/jens/Source/shotwell/src/Photo.vala"
return;
#line 19135 "Photo.c"
}
}
#line 2450 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp12_ = committed;
#line 2450 "/home/jens/Source/shotwell/src/Photo.vala"
if (_tmp12_) {
#line 19142 "Photo.c"
Alteration* _tmp13_ = NULL;
Alteration* _tmp14_ = NULL;
#line 2451 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp13_ = alteration_new ("metadata", "exposure-time");
#line 2451 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp14_ = _tmp13_;
#line 2451 "/home/jens/Source/shotwell/src/Photo.vala"
data_object_notify_altered (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_DATA_OBJECT, DataObject), _tmp14_);
#line 2451 "/home/jens/Source/shotwell/src/Photo.vala"
_alteration_unref0 (_tmp14_);
#line 19153 "Photo.c"
}
}
void photo_set_exposure_time_persistent (Photo* self, time_t time, GError** error) {
PhotoFileReader* source = NULL;
PhotoFileReader* _tmp0_ = NULL;
PhotoFileReader* _tmp1_ = NULL;
PhotoFileFormat _tmp2_ = 0;
gboolean _tmp3_ = FALSE;
PhotoMetadata* metadata = NULL;
PhotoFileReader* _tmp8_ = NULL;
PhotoMetadata* _tmp9_ = NULL;
PhotoMetadata* _tmp10_ = NULL;
time_t _tmp11_ = 0;
MetadataDateTime* _tmp12_ = NULL;
MetadataDateTime* _tmp13_ = NULL;
PhotoFileMetadataWriter* writer = NULL;
PhotoFileReader* _tmp14_ = NULL;
PhotoFileMetadataWriter* _tmp15_ = NULL;
PhotoFileReader* _tmp16_ = NULL;
GFile* _tmp17_ = NULL;
GFile* _tmp18_ = NULL;
time_t _tmp24_ = 0;
GError * _inner_error_ = NULL;
#line 2454 "/home/jens/Source/shotwell/src/Photo.vala"
g_return_if_fail (IS_PHOTO (self));
#line 2455 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp0_ = photo_get_source_reader (self);
#line 2455 "/home/jens/Source/shotwell/src/Photo.vala"
source = _tmp0_;
#line 2458 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp1_ = source;
#line 2458 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp2_ = photo_file_adapter_get_file_format (G_TYPE_CHECK_INSTANCE_CAST (_tmp1_, TYPE_PHOTO_FILE_ADAPTER, PhotoFileAdapter));
#line 2458 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp3_ = photo_file_format_can_write_metadata (_tmp2_);
#line 2458 "/home/jens/Source/shotwell/src/Photo.vala"
if (!_tmp3_) {
#line 19193 "Photo.c"
PhotoFileReader* _tmp4_ = NULL;
gchar* _tmp5_ = NULL;
gchar* _tmp6_ = NULL;
time_t _tmp7_ = 0;
#line 2459 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp4_ = source;
#line 2459 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp5_ = photo_file_adapter_get_filepath (G_TYPE_CHECK_INSTANCE_CAST (_tmp4_, TYPE_PHOTO_FILE_ADAPTER, PhotoFileAdapter));
#line 2459 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp6_ = _tmp5_;
#line 2459 "/home/jens/Source/shotwell/src/Photo.vala"
g_warning ("Photo.vala:2459: No photo file writer available for %s", _tmp6_);
#line 2459 "/home/jens/Source/shotwell/src/Photo.vala"
_g_free0 (_tmp6_);
#line 2461 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp7_ = time;
#line 2461 "/home/jens/Source/shotwell/src/Photo.vala"
dateable_set_exposure_time (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_DATEABLE, Dateable), _tmp7_);
#line 2463 "/home/jens/Source/shotwell/src/Photo.vala"
_photo_file_adapter_unref0 (source);
#line 2463 "/home/jens/Source/shotwell/src/Photo.vala"
return;
#line 19216 "Photo.c"
}
#line 2466 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp8_ = source;
#line 2466 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp9_ = photo_file_reader_read_metadata (_tmp8_, &_inner_error_);
#line 2466 "/home/jens/Source/shotwell/src/Photo.vala"
metadata = _tmp9_;
#line 2466 "/home/jens/Source/shotwell/src/Photo.vala"
if (G_UNLIKELY (_inner_error_ != NULL)) {
#line 2466 "/home/jens/Source/shotwell/src/Photo.vala"
g_propagate_error (error, _inner_error_);
#line 2466 "/home/jens/Source/shotwell/src/Photo.vala"
_photo_file_adapter_unref0 (source);
#line 2466 "/home/jens/Source/shotwell/src/Photo.vala"
return;
#line 19232 "Photo.c"
}
#line 2467 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp10_ = metadata;
#line 2467 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp11_ = time;
#line 2467 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp12_ = metadata_date_time_new (_tmp11_);
#line 2467 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp13_ = _tmp12_;
#line 2467 "/home/jens/Source/shotwell/src/Photo.vala"
photo_metadata_set_exposure_date_time (_tmp10_, _tmp13_, PHOTO_METADATA_SET_OPTION_ALL_DOMAINS);
#line 2467 "/home/jens/Source/shotwell/src/Photo.vala"
_metadata_date_time_unref0 (_tmp13_);
#line 2469 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp14_ = source;
#line 2469 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp15_ = photo_file_reader_create_metadata_writer (_tmp14_, &_inner_error_);
#line 2469 "/home/jens/Source/shotwell/src/Photo.vala"
writer = _tmp15_;
#line 2469 "/home/jens/Source/shotwell/src/Photo.vala"
if (G_UNLIKELY (_inner_error_ != NULL)) {
#line 2469 "/home/jens/Source/shotwell/src/Photo.vala"
g_propagate_error (error, _inner_error_);
#line 2469 "/home/jens/Source/shotwell/src/Photo.vala"
_media_metadata_unref0 (metadata);
#line 2469 "/home/jens/Source/shotwell/src/Photo.vala"
_photo_file_adapter_unref0 (source);
#line 2469 "/home/jens/Source/shotwell/src/Photo.vala"
return;
#line 19262 "Photo.c"
}
#line 2470 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp16_ = source;
#line 2470 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp17_ = photo_file_adapter_get_file (G_TYPE_CHECK_INSTANCE_CAST (_tmp16_, TYPE_PHOTO_FILE_ADAPTER, PhotoFileAdapter));
#line 2470 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp18_ = _tmp17_;
#line 2470 "/home/jens/Source/shotwell/src/Photo.vala"
library_monitor_blacklist_file (_tmp18_, "Photo.set_exposure_time_persistent");
#line 2470 "/home/jens/Source/shotwell/src/Photo.vala"
_g_object_unref0 (_tmp18_);
#line 19274 "Photo.c"
{
PhotoFileMetadataWriter* _tmp19_ = NULL;
PhotoMetadata* _tmp20_ = NULL;
#line 2472 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp19_ = writer;
#line 2472 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp20_ = metadata;
#line 2472 "/home/jens/Source/shotwell/src/Photo.vala"
photo_file_metadata_writer_write_metadata (_tmp19_, _tmp20_, &_inner_error_);
#line 2472 "/home/jens/Source/shotwell/src/Photo.vala"
if (G_UNLIKELY (_inner_error_ != NULL)) {
#line 19286 "Photo.c"
goto __finally357;
}
}
__finally357:
{
PhotoFileReader* _tmp21_ = NULL;
GFile* _tmp22_ = NULL;
GFile* _tmp23_ = NULL;
#line 2474 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp21_ = source;
#line 2474 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp22_ = photo_file_adapter_get_file (G_TYPE_CHECK_INSTANCE_CAST (_tmp21_, TYPE_PHOTO_FILE_ADAPTER, PhotoFileAdapter));
#line 2474 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp23_ = _tmp22_;
#line 2474 "/home/jens/Source/shotwell/src/Photo.vala"
library_monitor_unblacklist_file (_tmp23_);
#line 2474 "/home/jens/Source/shotwell/src/Photo.vala"
_g_object_unref0 (_tmp23_);
#line 19305 "Photo.c"
}
#line 2471 "/home/jens/Source/shotwell/src/Photo.vala"
if (G_UNLIKELY (_inner_error_ != NULL)) {
#line 2471 "/home/jens/Source/shotwell/src/Photo.vala"
g_propagate_error (error, _inner_error_);
#line 2471 "/home/jens/Source/shotwell/src/Photo.vala"
_photo_file_adapter_unref0 (writer);
#line 2471 "/home/jens/Source/shotwell/src/Photo.vala"
_media_metadata_unref0 (metadata);
#line 2471 "/home/jens/Source/shotwell/src/Photo.vala"
_photo_file_adapter_unref0 (source);
#line 2471 "/home/jens/Source/shotwell/src/Photo.vala"
return;
#line 19319 "Photo.c"
}
#line 2477 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp24_ = time;
#line 2477 "/home/jens/Source/shotwell/src/Photo.vala"
dateable_set_exposure_time (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_DATEABLE, Dateable), _tmp24_);
#line 2479 "/home/jens/Source/shotwell/src/Photo.vala"
photo_file_exif_updated (self);
#line 2454 "/home/jens/Source/shotwell/src/Photo.vala"
_photo_file_adapter_unref0 (writer);
#line 2454 "/home/jens/Source/shotwell/src/Photo.vala"
_media_metadata_unref0 (metadata);
#line 2454 "/home/jens/Source/shotwell/src/Photo.vala"
_photo_file_adapter_unref0 (source);
#line 19333 "Photo.c"
}
/**
* @brief Returns the width and height of the Photo after various
* arbitrary stages of the pipeline have been applied in
* the same order they're applied in get_pixbuf_with_options.
* With no argument passed, it works exactly like the
* previous incarnation did.
*
* @param disallowed_steps Which pipeline steps should NOT
* be taken into account when computing image dimensions
* (matching the convention set by get_pixbuf_with_options()).
* Pipeline steps that do not affect the image geometry are
* ignored.
*/
static void photo_real_get_dimensions (MediaSource* base, PhotoException disallowed_steps, Dimensions* result) {
Photo * self;
Dimensions returned_dims = {0};
Dimensions _tmp0_ = {0};
PhotoException _tmp1_ = 0;
gboolean _tmp2_ = FALSE;
PhotoException _tmp10_ = 0;
gboolean _tmp11_ = FALSE;
PhotoException _tmp22_ = 0;
gboolean _tmp23_ = FALSE;
#line 2495 "/home/jens/Source/shotwell/src/Photo.vala"
self = G_TYPE_CHECK_INSTANCE_CAST (base, TYPE_PHOTO, Photo);
#line 2497 "/home/jens/Source/shotwell/src/Photo.vala"
photo_get_raw_dimensions (self, &_tmp0_);
#line 2497 "/home/jens/Source/shotwell/src/Photo.vala"
returned_dims = _tmp0_;
#line 2500 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp1_ = disallowed_steps;
#line 2500 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp2_ = photo_exception_allows (_tmp1_, PHOTO_EXCEPTION_ORIENTATION);
#line 2500 "/home/jens/Source/shotwell/src/Photo.vala"
if (_tmp2_) {
#line 19372 "Photo.c"
Orientation ori_tmp = 0;
Orientation _tmp3_ = 0;
Orientation _tmp4_ = 0;
#line 2501 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp3_ = photo_get_orientation (self);
#line 2501 "/home/jens/Source/shotwell/src/Photo.vala"
ori_tmp = _tmp3_;
#line 2504 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp4_ = ori_tmp;
#line 2504 "/home/jens/Source/shotwell/src/Photo.vala"
switch (_tmp4_) {
#line 2504 "/home/jens/Source/shotwell/src/Photo.vala"
case ORIENTATION_LEFT_TOP:
#line 2504 "/home/jens/Source/shotwell/src/Photo.vala"
case ORIENTATION_RIGHT_TOP:
#line 2504 "/home/jens/Source/shotwell/src/Photo.vala"
case ORIENTATION_LEFT_BOTTOM:
#line 2504 "/home/jens/Source/shotwell/src/Photo.vala"
case ORIENTATION_RIGHT_BOTTOM:
#line 19392 "Photo.c"
{
gint width_tmp = 0;
Dimensions _tmp5_ = {0};
gint _tmp6_ = 0;
Dimensions _tmp7_ = {0};
gint _tmp8_ = 0;
gint _tmp9_ = 0;
#line 2510 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp5_ = returned_dims;
#line 2510 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp6_ = _tmp5_.width;
#line 2510 "/home/jens/Source/shotwell/src/Photo.vala"
width_tmp = _tmp6_;
#line 2512 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp7_ = returned_dims;
#line 2512 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp8_ = _tmp7_.height;
#line 2512 "/home/jens/Source/shotwell/src/Photo.vala"
returned_dims.width = _tmp8_;
#line 2513 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp9_ = width_tmp;
#line 2513 "/home/jens/Source/shotwell/src/Photo.vala"
returned_dims.height = _tmp9_;
#line 2514 "/home/jens/Source/shotwell/src/Photo.vala"
break;
#line 19418 "Photo.c"
}
default:
{
#line 2518 "/home/jens/Source/shotwell/src/Photo.vala"
break;
#line 19424 "Photo.c"
}
}
}
#line 2523 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp10_ = disallowed_steps;
#line 2523 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp11_ = photo_exception_allows (_tmp10_, PHOTO_EXCEPTION_STRAIGHTEN);
#line 2523 "/home/jens/Source/shotwell/src/Photo.vala"
if (_tmp11_) {
#line 19434 "Photo.c"
gdouble x_size = 0.0;
gdouble y_size = 0.0;
gdouble angle = 0.0;
gdouble _tmp12_ = 0.0;
Dimensions _tmp13_ = {0};
gint _tmp14_ = 0;
Dimensions _tmp15_ = {0};
gint _tmp16_ = 0;
gdouble _tmp17_ = 0.0;
gdouble _tmp18_ = 0.0;
gdouble _tmp19_ = 0.0;
gdouble _tmp20_ = 0.0;
gdouble _tmp21_ = 0.0;
#line 2525 "/home/jens/Source/shotwell/src/Photo.vala"
angle = 0.0;
#line 2527 "/home/jens/Source/shotwell/src/Photo.vala"
photo_get_straighten (self, &_tmp12_);
#line 2527 "/home/jens/Source/shotwell/src/Photo.vala"
angle = _tmp12_;
#line 2529 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp13_ = returned_dims;
#line 2529 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp14_ = _tmp13_.width;
#line 2529 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp15_ = returned_dims;
#line 2529 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp16_ = _tmp15_.height;
#line 2529 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp17_ = angle;
#line 2529 "/home/jens/Source/shotwell/src/Photo.vala"
compute_arb_rotated_size ((gdouble) _tmp14_, (gdouble) _tmp16_, _tmp17_, &_tmp18_, &_tmp19_);
#line 2529 "/home/jens/Source/shotwell/src/Photo.vala"
x_size = _tmp18_;
#line 2529 "/home/jens/Source/shotwell/src/Photo.vala"
y_size = _tmp19_;
#line 2531 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp20_ = x_size;
#line 2531 "/home/jens/Source/shotwell/src/Photo.vala"
returned_dims.width = (gint) _tmp20_;
#line 2532 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp21_ = y_size;
#line 2532 "/home/jens/Source/shotwell/src/Photo.vala"
returned_dims.height = (gint) _tmp21_;
#line 19478 "Photo.c"
}
#line 2536 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp22_ = disallowed_steps;
#line 2536 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp23_ = photo_exception_allows (_tmp22_, PHOTO_EXCEPTION_CROP);
#line 2536 "/home/jens/Source/shotwell/src/Photo.vala"
if (_tmp23_) {
#line 19486 "Photo.c"
Box crop = {0};
PhotoException _tmp24_ = 0;
Box _tmp25_ = {0};
gboolean _tmp26_ = FALSE;
#line 2538 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp24_ = disallowed_steps;
#line 2538 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp26_ = photo_get_crop (self, &_tmp25_, _tmp24_);
#line 2538 "/home/jens/Source/shotwell/src/Photo.vala"
crop = _tmp25_;
#line 2538 "/home/jens/Source/shotwell/src/Photo.vala"
if (_tmp26_) {
#line 19499 "Photo.c"
Dimensions _tmp27_ = {0};
#line 2539 "/home/jens/Source/shotwell/src/Photo.vala"
box_get_dimensions (&crop, &_tmp27_);
#line 2539 "/home/jens/Source/shotwell/src/Photo.vala"
returned_dims = _tmp27_;
#line 19505 "Photo.c"
}
}
#line 2542 "/home/jens/Source/shotwell/src/Photo.vala"
*result = returned_dims;
#line 2542 "/home/jens/Source/shotwell/src/Photo.vala"
return;
#line 19512 "Photo.c"
}
static void photo_locked_create_adjustments_from_data (Photo* self) {
PixelTransformationBundle* _tmp0_ = NULL;
KeyValueMap* map = NULL;
KeyValueMap* _tmp1_ = NULL;
KeyValueMap* _tmp2_ = NULL;
PixelTransformationBundle* _tmp6_ = NULL;
PixelTransformer* _tmp7_ = NULL;
#line 2546 "/home/jens/Source/shotwell/src/Photo.vala"
g_return_if_fail (IS_PHOTO (self));
#line 2547 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp0_ = pixel_transformation_bundle_new ();
#line 2547 "/home/jens/Source/shotwell/src/Photo.vala"
_pixel_transformation_bundle_unref0 (self->priv->adjustments);
#line 2547 "/home/jens/Source/shotwell/src/Photo.vala"
self->priv->adjustments = _tmp0_;
#line 2549 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp1_ = photo_get_transformation (self, "adjustments");
#line 2549 "/home/jens/Source/shotwell/src/Photo.vala"
map = _tmp1_;
#line 2550 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp2_ = map;
#line 2550 "/home/jens/Source/shotwell/src/Photo.vala"
if (_tmp2_ == NULL) {
#line 19539 "Photo.c"
PixelTransformationBundle* _tmp3_ = NULL;
#line 2551 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp3_ = self->priv->adjustments;
#line 2551 "/home/jens/Source/shotwell/src/Photo.vala"
pixel_transformation_bundle_set_to_identity (_tmp3_);
#line 19545 "Photo.c"
} else {
PixelTransformationBundle* _tmp4_ = NULL;
KeyValueMap* _tmp5_ = NULL;
#line 2553 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp4_ = self->priv->adjustments;
#line 2553 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp5_ = map;
#line 2553 "/home/jens/Source/shotwell/src/Photo.vala"
pixel_transformation_bundle_load (_tmp4_, _tmp5_);
#line 19555 "Photo.c"
}
#line 2555 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp6_ = self->priv->adjustments;
#line 2555 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp7_ = pixel_transformation_bundle_generate_transformer (_tmp6_);
#line 2555 "/home/jens/Source/shotwell/src/Photo.vala"
_pixel_transformer_unref0 (self->priv->transformer);
#line 2555 "/home/jens/Source/shotwell/src/Photo.vala"
self->priv->transformer = _tmp7_;
#line 2546 "/home/jens/Source/shotwell/src/Photo.vala"
_key_value_map_unref0 (map);
#line 19567 "Photo.c"
}
PixelTransformationBundle* photo_get_color_adjustments (Photo* self) {
PixelTransformationBundle* result = NULL;
GError * _inner_error_ = NULL;
#line 2559 "/home/jens/Source/shotwell/src/Photo.vala"
g_return_val_if_fail (IS_PHOTO (self), NULL);
#line 19576 "Photo.c"
{
PhotoRow* _tmp0_ = NULL;
#line 2560 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp0_ = self->row;
#line 2560 "/home/jens/Source/shotwell/src/Photo.vala"
g_rec_mutex_lock (&self->priv->__lock_row);
#line 19583 "Photo.c"
{
PixelTransformationBundle* _tmp1_ = NULL;
PixelTransformationBundle* _tmp2_ = NULL;
PixelTransformationBundle* _tmp3_ = NULL;
#line 2561 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp1_ = self->priv->adjustments;
#line 2561 "/home/jens/Source/shotwell/src/Photo.vala"
if (_tmp1_ == NULL) {
#line 2562 "/home/jens/Source/shotwell/src/Photo.vala"
photo_locked_create_adjustments_from_data (self);
#line 19594 "Photo.c"
}
#line 2564 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp2_ = self->priv->adjustments;
#line 2564 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp3_ = pixel_transformation_bundle_copy (_tmp2_);
#line 2564 "/home/jens/Source/shotwell/src/Photo.vala"
result = _tmp3_;
#line 19602 "Photo.c"
{
PhotoRow* _tmp4_ = NULL;
#line 2560 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp4_ = self->row;
#line 2560 "/home/jens/Source/shotwell/src/Photo.vala"
g_rec_mutex_unlock (&self->priv->__lock_row);
#line 19609 "Photo.c"
}
#line 2564 "/home/jens/Source/shotwell/src/Photo.vala"
return result;
#line 19613 "Photo.c"
}
__finally358:
{
PhotoRow* _tmp5_ = NULL;
#line 2560 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp5_ = self->row;
#line 2560 "/home/jens/Source/shotwell/src/Photo.vala"
g_rec_mutex_unlock (&self->priv->__lock_row);
#line 19622 "Photo.c"
}
#line 2560 "/home/jens/Source/shotwell/src/Photo.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 2560 "/home/jens/Source/shotwell/src/Photo.vala"
g_clear_error (&_inner_error_);
#line 2560 "/home/jens/Source/shotwell/src/Photo.vala"
return NULL;
#line 19630 "Photo.c"
}
}
PixelTransformer* photo_get_pixel_transformer (Photo* self) {
PixelTransformer* result = NULL;
GError * _inner_error_ = NULL;
#line 2568 "/home/jens/Source/shotwell/src/Photo.vala"
g_return_val_if_fail (IS_PHOTO (self), NULL);
#line 19640 "Photo.c"
{
PhotoRow* _tmp0_ = NULL;
#line 2569 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp0_ = self->row;
#line 2569 "/home/jens/Source/shotwell/src/Photo.vala"
g_rec_mutex_lock (&self->priv->__lock_row);
#line 19647 "Photo.c"
{
PixelTransformer* _tmp1_ = NULL;
PixelTransformer* _tmp2_ = NULL;
PixelTransformer* _tmp3_ = NULL;
#line 2570 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp1_ = self->priv->transformer;
#line 2570 "/home/jens/Source/shotwell/src/Photo.vala"
if (_tmp1_ == NULL) {
#line 2571 "/home/jens/Source/shotwell/src/Photo.vala"
photo_locked_create_adjustments_from_data (self);
#line 19658 "Photo.c"
}
#line 2573 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp2_ = self->priv->transformer;
#line 2573 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp3_ = pixel_transformer_copy (_tmp2_);
#line 2573 "/home/jens/Source/shotwell/src/Photo.vala"
result = _tmp3_;
#line 19666 "Photo.c"
{
PhotoRow* _tmp4_ = NULL;
#line 2569 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp4_ = self->row;
#line 2569 "/home/jens/Source/shotwell/src/Photo.vala"
g_rec_mutex_unlock (&self->priv->__lock_row);
#line 19673 "Photo.c"
}
#line 2573 "/home/jens/Source/shotwell/src/Photo.vala"
return result;
#line 19677 "Photo.c"
}
__finally359:
{
PhotoRow* _tmp5_ = NULL;
#line 2569 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp5_ = self->row;
#line 2569 "/home/jens/Source/shotwell/src/Photo.vala"
g_rec_mutex_unlock (&self->priv->__lock_row);
#line 19686 "Photo.c"
}
#line 2569 "/home/jens/Source/shotwell/src/Photo.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 2569 "/home/jens/Source/shotwell/src/Photo.vala"
g_clear_error (&_inner_error_);
#line 2569 "/home/jens/Source/shotwell/src/Photo.vala"
return NULL;
#line 19694 "Photo.c"
}
}
gboolean photo_has_color_adjustments (Photo* self) {
gboolean result = FALSE;
gboolean _tmp0_ = FALSE;
#line 2577 "/home/jens/Source/shotwell/src/Photo.vala"
g_return_val_if_fail (IS_PHOTO (self), FALSE);
#line 2578 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp0_ = photo_has_transformation (self, "adjustments");
#line 2578 "/home/jens/Source/shotwell/src/Photo.vala"
result = _tmp0_;
#line 2578 "/home/jens/Source/shotwell/src/Photo.vala"
return result;
#line 19710 "Photo.c"
}
PixelTransformation* photo_get_color_adjustment (Photo* self, PixelTransformationType type) {
PixelTransformation* result = NULL;
PixelTransformationBundle* _tmp0_ = NULL;
PixelTransformationBundle* _tmp1_ = NULL;
PixelTransformationType _tmp2_ = 0;
PixelTransformation* _tmp3_ = NULL;
PixelTransformation* _tmp4_ = NULL;
#line 2581 "/home/jens/Source/shotwell/src/Photo.vala"
g_return_val_if_fail (IS_PHOTO (self), NULL);
#line 2582 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp0_ = photo_get_color_adjustments (self);
#line 2582 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp1_ = _tmp0_;
#line 2582 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp2_ = type;
#line 2582 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp3_ = pixel_transformation_bundle_get_transformation (_tmp1_, _tmp2_);
#line 2582 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp4_ = _tmp3_;
#line 2582 "/home/jens/Source/shotwell/src/Photo.vala"
_pixel_transformation_bundle_unref0 (_tmp1_);
#line 2582 "/home/jens/Source/shotwell/src/Photo.vala"
result = _tmp4_;
#line 2582 "/home/jens/Source/shotwell/src/Photo.vala"
return result;
#line 19739 "Photo.c"
}
void photo_set_color_adjustments (Photo* self, PixelTransformationBundle* new_adjustments) {
PixelTransformationBundle* _tmp0_ = NULL;
gboolean _tmp1_ = FALSE;
KeyValueMap* map = NULL;
PixelTransformationBundle* _tmp8_ = NULL;
KeyValueMap* _tmp9_ = NULL;
gboolean committed = FALSE;
gboolean _tmp39_ = FALSE;
GError * _inner_error_ = NULL;
#line 2585 "/home/jens/Source/shotwell/src/Photo.vala"
g_return_if_fail (IS_PHOTO (self));
#line 2585 "/home/jens/Source/shotwell/src/Photo.vala"
g_return_if_fail (IS_PIXEL_TRANSFORMATION_BUNDLE (new_adjustments));
#line 2588 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp0_ = new_adjustments;
#line 2588 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp1_ = pixel_transformation_bundle_is_identity (_tmp0_);
#line 2588 "/home/jens/Source/shotwell/src/Photo.vala"
if (_tmp1_) {
#line 19762 "Photo.c"
gboolean _result_ = FALSE;
gboolean _tmp5_ = FALSE;
{
PhotoRow* _tmp2_ = NULL;
#line 2590 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp2_ = self->row;
#line 2590 "/home/jens/Source/shotwell/src/Photo.vala"
g_rec_mutex_lock (&self->priv->__lock_row);
#line 19771 "Photo.c"
{
gboolean _tmp3_ = FALSE;
#line 2591 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp3_ = photo_remove_transformation (self, "adjustments");
#line 2591 "/home/jens/Source/shotwell/src/Photo.vala"
_result_ = _tmp3_;
#line 2592 "/home/jens/Source/shotwell/src/Photo.vala"
_pixel_transformation_bundle_unref0 (self->priv->adjustments);
#line 2592 "/home/jens/Source/shotwell/src/Photo.vala"
self->priv->adjustments = NULL;
#line 2593 "/home/jens/Source/shotwell/src/Photo.vala"
_pixel_transformer_unref0 (self->priv->transformer);
#line 2593 "/home/jens/Source/shotwell/src/Photo.vala"
self->priv->transformer = NULL;
#line 19786 "Photo.c"
}
__finally360:
{
PhotoRow* _tmp4_ = NULL;
#line 2590 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp4_ = self->row;
#line 2590 "/home/jens/Source/shotwell/src/Photo.vala"
g_rec_mutex_unlock (&self->priv->__lock_row);
#line 19795 "Photo.c"
}
#line 2590 "/home/jens/Source/shotwell/src/Photo.vala"
if (G_UNLIKELY (_inner_error_ != NULL)) {
#line 2590 "/home/jens/Source/shotwell/src/Photo.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 2590 "/home/jens/Source/shotwell/src/Photo.vala"
g_clear_error (&_inner_error_);
#line 2590 "/home/jens/Source/shotwell/src/Photo.vala"
return;
#line 19805 "Photo.c"
}
}
#line 2596 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp5_ = _result_;
#line 2596 "/home/jens/Source/shotwell/src/Photo.vala"
if (_tmp5_) {
#line 19812 "Photo.c"
Alteration* _tmp6_ = NULL;
Alteration* _tmp7_ = NULL;
#line 2597 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp6_ = alteration_new ("image", "color-adjustments");
#line 2597 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp7_ = _tmp6_;
#line 2597 "/home/jens/Source/shotwell/src/Photo.vala"
data_object_notify_altered (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_DATA_OBJECT, DataObject), _tmp7_);
#line 2597 "/home/jens/Source/shotwell/src/Photo.vala"
_alteration_unref0 (_tmp7_);
#line 19823 "Photo.c"
}
#line 2599 "/home/jens/Source/shotwell/src/Photo.vala"
return;
#line 19827 "Photo.c"
}
#line 2603 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp8_ = new_adjustments;
#line 2603 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp9_ = pixel_transformation_bundle_save (_tmp8_, "adjustments");
#line 2603 "/home/jens/Source/shotwell/src/Photo.vala"
map = _tmp9_;
#line 19835 "Photo.c"
{
PhotoRow* _tmp10_ = NULL;
#line 2606 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp10_ = self->row;
#line 2606 "/home/jens/Source/shotwell/src/Photo.vala"
g_rec_mutex_lock (&self->priv->__lock_row);
#line 19842 "Photo.c"
{
gboolean _tmp11_ = FALSE;
PixelTransformer* _tmp12_ = NULL;
KeyValueMap* _tmp36_ = NULL;
gboolean _tmp37_ = FALSE;
#line 2607 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp12_ = self->priv->transformer;
#line 2607 "/home/jens/Source/shotwell/src/Photo.vala"
if (_tmp12_ == NULL) {
#line 2607 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp11_ = TRUE;
#line 19854 "Photo.c"
} else {
PixelTransformationBundle* _tmp13_ = NULL;
#line 2607 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp13_ = self->priv->adjustments;
#line 2607 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp11_ = _tmp13_ == NULL;
#line 19861 "Photo.c"
}
#line 2607 "/home/jens/Source/shotwell/src/Photo.vala"
if (_tmp11_) {
#line 19865 "Photo.c"
PixelTransformationBundle* _tmp14_ = NULL;
PixelTransformationBundle* _tmp15_ = NULL;
PixelTransformationBundle* _tmp16_ = NULL;
PixelTransformer* _tmp17_ = NULL;
#line 2609 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp14_ = new_adjustments;
#line 2609 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp15_ = pixel_transformation_bundle_copy (_tmp14_);
#line 2609 "/home/jens/Source/shotwell/src/Photo.vala"
_pixel_transformation_bundle_unref0 (self->priv->adjustments);
#line 2609 "/home/jens/Source/shotwell/src/Photo.vala"
self->priv->adjustments = _tmp15_;
#line 2610 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp16_ = new_adjustments;
#line 2610 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp17_ = pixel_transformation_bundle_generate_transformer (_tmp16_);
#line 2610 "/home/jens/Source/shotwell/src/Photo.vala"
_pixel_transformer_unref0 (self->priv->transformer);
#line 2610 "/home/jens/Source/shotwell/src/Photo.vala"
self->priv->transformer = _tmp17_;
#line 19886 "Photo.c"
} else {
PixelTransformationBundle* _tmp34_ = NULL;
PixelTransformationBundle* _tmp35_ = NULL;
{
GeeIterator* _transformation_it = NULL;
PixelTransformationBundle* _tmp18_ = NULL;
GeeIterable* _tmp19_ = NULL;
GeeIterable* _tmp20_ = NULL;
GeeIterator* _tmp21_ = NULL;
GeeIterator* _tmp22_ = NULL;
#line 2613 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp18_ = new_adjustments;
#line 2613 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp19_ = pixel_transformation_bundle_get_transformations (_tmp18_);
#line 2613 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp20_ = _tmp19_;
#line 2613 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp21_ = gee_iterable_iterator (_tmp20_);
#line 2613 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp22_ = _tmp21_;
#line 2613 "/home/jens/Source/shotwell/src/Photo.vala"
_g_object_unref0 (_tmp20_);
#line 2613 "/home/jens/Source/shotwell/src/Photo.vala"
_transformation_it = _tmp22_;
#line 2613 "/home/jens/Source/shotwell/src/Photo.vala"
while (TRUE) {
#line 19913 "Photo.c"
GeeIterator* _tmp23_ = NULL;
gboolean _tmp24_ = FALSE;
PixelTransformation* transformation = NULL;
GeeIterator* _tmp25_ = NULL;
gpointer _tmp26_ = NULL;
PixelTransformer* _tmp27_ = NULL;
PixelTransformationBundle* _tmp28_ = NULL;
PixelTransformation* _tmp29_ = NULL;
PixelTransformationType _tmp30_ = 0;
PixelTransformation* _tmp31_ = NULL;
PixelTransformation* _tmp32_ = NULL;
PixelTransformation* _tmp33_ = NULL;
#line 2613 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp23_ = _transformation_it;
#line 2613 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp24_ = gee_iterator_next (_tmp23_);
#line 2613 "/home/jens/Source/shotwell/src/Photo.vala"
if (!_tmp24_) {
#line 2613 "/home/jens/Source/shotwell/src/Photo.vala"
break;
#line 19934 "Photo.c"
}
#line 2613 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp25_ = _transformation_it;
#line 2613 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp26_ = gee_iterator_get (_tmp25_);
#line 2613 "/home/jens/Source/shotwell/src/Photo.vala"
transformation = (PixelTransformation*) _tmp26_;
#line 2614 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp27_ = self->priv->transformer;
#line 2614 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp28_ = self->priv->adjustments;
#line 2614 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp29_ = transformation;
#line 2614 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp30_ = pixel_transformation_get_transformation_type (_tmp29_);
#line 2614 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp31_ = pixel_transformation_bundle_get_transformation (_tmp28_, _tmp30_);
#line 2614 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp32_ = _tmp31_;
#line 2614 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp33_ = transformation;
#line 2614 "/home/jens/Source/shotwell/src/Photo.vala"
pixel_transformer_replace_transformation (_tmp27_, _tmp32_, _tmp33_);
#line 2614 "/home/jens/Source/shotwell/src/Photo.vala"
_pixel_transformation_unref0 (_tmp32_);
#line 2613 "/home/jens/Source/shotwell/src/Photo.vala"
_pixel_transformation_unref0 (transformation);
#line 19962 "Photo.c"
}
#line 2613 "/home/jens/Source/shotwell/src/Photo.vala"
_g_object_unref0 (_transformation_it);
#line 19966 "Photo.c"
}
#line 2619 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp34_ = new_adjustments;
#line 2619 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp35_ = pixel_transformation_bundle_copy (_tmp34_);
#line 2619 "/home/jens/Source/shotwell/src/Photo.vala"
_pixel_transformation_bundle_unref0 (self->priv->adjustments);
#line 2619 "/home/jens/Source/shotwell/src/Photo.vala"
self->priv->adjustments = _tmp35_;
#line 19976 "Photo.c"
}
#line 2622 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp36_ = map;
#line 2622 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp37_ = photo_set_transformation (self, _tmp36_);
#line 2622 "/home/jens/Source/shotwell/src/Photo.vala"
committed = _tmp37_;
#line 19984 "Photo.c"
}
__finally361:
{
PhotoRow* _tmp38_ = NULL;
#line 2606 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp38_ = self->row;
#line 2606 "/home/jens/Source/shotwell/src/Photo.vala"
g_rec_mutex_unlock (&self->priv->__lock_row);
#line 19993 "Photo.c"
}
#line 2606 "/home/jens/Source/shotwell/src/Photo.vala"
if (G_UNLIKELY (_inner_error_ != NULL)) {
#line 2606 "/home/jens/Source/shotwell/src/Photo.vala"
_key_value_map_unref0 (map);
#line 2606 "/home/jens/Source/shotwell/src/Photo.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 2606 "/home/jens/Source/shotwell/src/Photo.vala"
g_clear_error (&_inner_error_);
#line 2606 "/home/jens/Source/shotwell/src/Photo.vala"
return;
#line 20005 "Photo.c"
}
}
#line 2625 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp39_ = committed;
#line 2625 "/home/jens/Source/shotwell/src/Photo.vala"
if (_tmp39_) {
#line 20012 "Photo.c"
Alteration* _tmp40_ = NULL;
Alteration* _tmp41_ = NULL;
#line 2626 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp40_ = alteration_new ("image", "color-adjustments");
#line 2626 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp41_ = _tmp40_;
#line 2626 "/home/jens/Source/shotwell/src/Photo.vala"
data_object_notify_altered (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_DATA_OBJECT, DataObject), _tmp41_);
#line 2626 "/home/jens/Source/shotwell/src/Photo.vala"
_alteration_unref0 (_tmp41_);
#line 20023 "Photo.c"
}
#line 2585 "/home/jens/Source/shotwell/src/Photo.vala"
_key_value_map_unref0 (map);
#line 20027 "Photo.c"
}
static PhotoMetadata* photo_real_get_metadata (PhotoSource* base) {
Photo * self;
PhotoMetadata* result = NULL;
GError * _inner_error_ = NULL;
#line 2630 "/home/jens/Source/shotwell/src/Photo.vala"
self = G_TYPE_CHECK_INSTANCE_CAST (base, TYPE_PHOTO, Photo);
#line 20037 "Photo.c"
{
PhotoMetadata* _tmp0_ = NULL;
PhotoFileReader* _tmp1_ = NULL;
PhotoFileReader* _tmp2_ = NULL;
PhotoMetadata* _tmp3_ = NULL;
PhotoMetadata* _tmp4_ = NULL;
PhotoMetadata* _tmp5_ = NULL;
#line 2632 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp1_ = photo_get_source_reader (self);
#line 2632 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp2_ = _tmp1_;
#line 2632 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp3_ = photo_file_reader_read_metadata (_tmp2_, &_inner_error_);
#line 2632 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp4_ = _tmp3_;
#line 2632 "/home/jens/Source/shotwell/src/Photo.vala"
_photo_file_adapter_unref0 (_tmp2_);
#line 2632 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp0_ = _tmp4_;
#line 2632 "/home/jens/Source/shotwell/src/Photo.vala"
if (G_UNLIKELY (_inner_error_ != NULL)) {
#line 20059 "Photo.c"
goto __catch362_g_error;
}
#line 2632 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp5_ = _tmp0_;
#line 2632 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp0_ = NULL;
#line 2632 "/home/jens/Source/shotwell/src/Photo.vala"
result = _tmp5_;
#line 2632 "/home/jens/Source/shotwell/src/Photo.vala"
_media_metadata_unref0 (_tmp0_);
#line 2632 "/home/jens/Source/shotwell/src/Photo.vala"
return result;
#line 20072 "Photo.c"
}
goto __finally362;
__catch362_g_error:
{
GError* err = NULL;
GError* _tmp6_ = NULL;
const gchar* _tmp7_ = NULL;
#line 2631 "/home/jens/Source/shotwell/src/Photo.vala"
err = _inner_error_;
#line 2631 "/home/jens/Source/shotwell/src/Photo.vala"
_inner_error_ = NULL;
#line 2634 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp6_ = err;
#line 2634 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp7_ = _tmp6_->message;
#line 2634 "/home/jens/Source/shotwell/src/Photo.vala"
g_warning ("Photo.vala:2634: Unable to load metadata: %s", _tmp7_);
#line 2636 "/home/jens/Source/shotwell/src/Photo.vala"
result = NULL;
#line 2636 "/home/jens/Source/shotwell/src/Photo.vala"
_g_error_free0 (err);
#line 2636 "/home/jens/Source/shotwell/src/Photo.vala"
return result;
#line 20096 "Photo.c"
}
__finally362:
#line 2631 "/home/jens/Source/shotwell/src/Photo.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 2631 "/home/jens/Source/shotwell/src/Photo.vala"
g_clear_error (&_inner_error_);
#line 2631 "/home/jens/Source/shotwell/src/Photo.vala"
return NULL;
#line 20105 "Photo.c"
}
PhotoMetadata* photo_get_master_metadata (Photo* self, GError** error) {
PhotoMetadata* result = NULL;
PhotoMetadata* _tmp0_ = NULL;
PhotoFileReader* _tmp1_ = NULL;
PhotoFileReader* _tmp2_ = NULL;
PhotoMetadata* _tmp3_ = NULL;
PhotoMetadata* _tmp4_ = NULL;
PhotoMetadata* _tmp5_ = NULL;
GError * _inner_error_ = NULL;
#line 2640 "/home/jens/Source/shotwell/src/Photo.vala"
g_return_val_if_fail (IS_PHOTO (self), NULL);
#line 2641 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp1_ = photo_get_master_reader (self);
#line 2641 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp2_ = _tmp1_;
#line 2641 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp3_ = photo_file_reader_read_metadata (_tmp2_, &_inner_error_);
#line 2641 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp4_ = _tmp3_;
#line 2641 "/home/jens/Source/shotwell/src/Photo.vala"
_photo_file_adapter_unref0 (_tmp2_);
#line 2641 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp0_ = _tmp4_;
#line 2641 "/home/jens/Source/shotwell/src/Photo.vala"
if (G_UNLIKELY (_inner_error_ != NULL)) {
#line 2641 "/home/jens/Source/shotwell/src/Photo.vala"
g_propagate_error (error, _inner_error_);
#line 2641 "/home/jens/Source/shotwell/src/Photo.vala"
return NULL;
#line 20138 "Photo.c"
}
#line 2641 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp5_ = _tmp0_;
#line 2641 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp0_ = NULL;
#line 2641 "/home/jens/Source/shotwell/src/Photo.vala"
result = _tmp5_;
#line 2641 "/home/jens/Source/shotwell/src/Photo.vala"
_media_metadata_unref0 (_tmp0_);
#line 2641 "/home/jens/Source/shotwell/src/Photo.vala"
return result;
#line 20150 "Photo.c"
}
PhotoMetadata* photo_get_editable_metadata (Photo* self, GError** error) {
PhotoMetadata* result = NULL;
PhotoFileReader* reader = NULL;
PhotoFileReader* _tmp0_ = NULL;
PhotoMetadata* _tmp1_ = NULL;
PhotoFileReader* _tmp2_ = NULL;
GError * _inner_error_ = NULL;
#line 2644 "/home/jens/Source/shotwell/src/Photo.vala"
g_return_val_if_fail (IS_PHOTO (self), NULL);
#line 2645 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp0_ = photo_get_editable_reader (self);
#line 2645 "/home/jens/Source/shotwell/src/Photo.vala"
reader = _tmp0_;
#line 2647 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp2_ = reader;
#line 2647 "/home/jens/Source/shotwell/src/Photo.vala"
if (_tmp2_ != NULL) {
#line 20171 "Photo.c"
PhotoFileReader* _tmp3_ = NULL;
PhotoMetadata* _tmp4_ = NULL;
#line 2647 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp3_ = reader;
#line 2647 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp4_ = photo_file_reader_read_metadata (_tmp3_, &_inner_error_);
#line 2647 "/home/jens/Source/shotwell/src/Photo.vala"
_media_metadata_unref0 (_tmp1_);
#line 2647 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp1_ = _tmp4_;
#line 2647 "/home/jens/Source/shotwell/src/Photo.vala"
if (G_UNLIKELY (_inner_error_ != NULL)) {
#line 2647 "/home/jens/Source/shotwell/src/Photo.vala"
g_propagate_error (error, _inner_error_);
#line 2647 "/home/jens/Source/shotwell/src/Photo.vala"
_media_metadata_unref0 (_tmp1_);
#line 2647 "/home/jens/Source/shotwell/src/Photo.vala"
_photo_file_adapter_unref0 (reader);
#line 2647 "/home/jens/Source/shotwell/src/Photo.vala"
return NULL;
#line 20192 "Photo.c"
}
} else {
#line 2647 "/home/jens/Source/shotwell/src/Photo.vala"
_media_metadata_unref0 (_tmp1_);
#line 2647 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp1_ = NULL;
#line 20199 "Photo.c"
}
#line 2647 "/home/jens/Source/shotwell/src/Photo.vala"
result = _tmp1_;
#line 2647 "/home/jens/Source/shotwell/src/Photo.vala"
_photo_file_adapter_unref0 (reader);
#line 2647 "/home/jens/Source/shotwell/src/Photo.vala"
return result;
#line 20207 "Photo.c"
}
gboolean photo_persist_master_metadata (Photo* self, PhotoMetadata* metadata, PhotoReimportMasterState** state, GError** error) {
PhotoReimportMasterState* _vala_state = NULL;
gboolean result = FALSE;
PhotoFileReader* master_reader = NULL;
PhotoFileReader* _tmp0_ = NULL;
PhotoFileReader* _tmp1_ = NULL;
PhotoFileFormat _tmp2_ = 0;
gboolean _tmp3_ = FALSE;
PhotoFileMetadataWriter* _tmp4_ = NULL;
PhotoFileReader* _tmp5_ = NULL;
PhotoFileMetadataWriter* _tmp6_ = NULL;
PhotoFileMetadataWriter* _tmp7_ = NULL;
PhotoFileMetadataWriter* _tmp8_ = NULL;
PhotoMetadata* _tmp9_ = NULL;
gboolean _tmp10_ = FALSE;
PhotoReimportMasterState* _tmp11_ = NULL;
gboolean _tmp12_ = FALSE;
PhotoReimportMasterState* _tmp13_ = NULL;
GError * _inner_error_ = NULL;
#line 2653 "/home/jens/Source/shotwell/src/Photo.vala"
g_return_val_if_fail (IS_PHOTO (self), FALSE);
#line 2653 "/home/jens/Source/shotwell/src/Photo.vala"
g_return_val_if_fail (IS_PHOTO_METADATA (metadata), FALSE);
#line 2655 "/home/jens/Source/shotwell/src/Photo.vala"
_photo_reimport_master_state_unref0 (_vala_state);
#line 2655 "/home/jens/Source/shotwell/src/Photo.vala"
_vala_state = NULL;
#line 2657 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp0_ = photo_get_master_reader (self);
#line 2657 "/home/jens/Source/shotwell/src/Photo.vala"
master_reader = _tmp0_;
#line 2659 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp1_ = master_reader;
#line 2659 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp2_ = photo_file_adapter_get_file_format (G_TYPE_CHECK_INSTANCE_CAST (_tmp1_, TYPE_PHOTO_FILE_ADAPTER, PhotoFileAdapter));
#line 2659 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp3_ = photo_file_format_can_write_metadata (_tmp2_);
#line 2659 "/home/jens/Source/shotwell/src/Photo.vala"
if (!_tmp3_) {
#line 2660 "/home/jens/Source/shotwell/src/Photo.vala"
result = FALSE;
#line 2660 "/home/jens/Source/shotwell/src/Photo.vala"
_photo_file_adapter_unref0 (master_reader);
#line 2660 "/home/jens/Source/shotwell/src/Photo.vala"
if (state) {
#line 2660 "/home/jens/Source/shotwell/src/Photo.vala"
*state = _vala_state;
#line 20258 "Photo.c"
} else {
#line 2660 "/home/jens/Source/shotwell/src/Photo.vala"
_photo_reimport_master_state_unref0 (_vala_state);
#line 20262 "Photo.c"
}
#line 2660 "/home/jens/Source/shotwell/src/Photo.vala"
return result;
#line 20266 "Photo.c"
}
#line 2662 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp5_ = master_reader;
#line 2662 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp6_ = photo_file_reader_create_metadata_writer (_tmp5_, &_inner_error_);
#line 2662 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp4_ = _tmp6_;
#line 2662 "/home/jens/Source/shotwell/src/Photo.vala"
if (G_UNLIKELY (_inner_error_ != NULL)) {
#line 2662 "/home/jens/Source/shotwell/src/Photo.vala"
g_propagate_error (error, _inner_error_);
#line 2662 "/home/jens/Source/shotwell/src/Photo.vala"
_photo_file_adapter_unref0 (master_reader);
#line 2662 "/home/jens/Source/shotwell/src/Photo.vala"
return FALSE;
#line 20282 "Photo.c"
}
#line 2662 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp7_ = _tmp4_;
#line 2662 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp4_ = NULL;
#line 2662 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp8_ = _tmp7_;
#line 2662 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp9_ = metadata;
#line 2662 "/home/jens/Source/shotwell/src/Photo.vala"
photo_file_metadata_writer_write_metadata (_tmp8_, _tmp9_, &_inner_error_);
#line 2662 "/home/jens/Source/shotwell/src/Photo.vala"
_photo_file_adapter_unref0 (_tmp8_);
#line 2662 "/home/jens/Source/shotwell/src/Photo.vala"
if (G_UNLIKELY (_inner_error_ != NULL)) {
#line 2662 "/home/jens/Source/shotwell/src/Photo.vala"
g_propagate_error (error, _inner_error_);
#line 2662 "/home/jens/Source/shotwell/src/Photo.vala"
_photo_file_adapter_unref0 (_tmp4_);
#line 2662 "/home/jens/Source/shotwell/src/Photo.vala"
_photo_file_adapter_unref0 (master_reader);
#line 2662 "/home/jens/Source/shotwell/src/Photo.vala"
return FALSE;
#line 20306 "Photo.c"
}
#line 2664 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp12_ = photo_prepare_for_reimport_master (self, &_tmp11_, &_inner_error_);
#line 2664 "/home/jens/Source/shotwell/src/Photo.vala"
_photo_reimport_master_state_unref0 (_vala_state);
#line 2664 "/home/jens/Source/shotwell/src/Photo.vala"
_vala_state = _tmp11_;
#line 2664 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp10_ = _tmp12_;
#line 2664 "/home/jens/Source/shotwell/src/Photo.vala"
if (G_UNLIKELY (_inner_error_ != NULL)) {
#line 2664 "/home/jens/Source/shotwell/src/Photo.vala"
g_propagate_error (error, _inner_error_);
#line 2664 "/home/jens/Source/shotwell/src/Photo.vala"
_photo_file_adapter_unref0 (_tmp4_);
#line 2664 "/home/jens/Source/shotwell/src/Photo.vala"
_photo_file_adapter_unref0 (master_reader);
#line 2664 "/home/jens/Source/shotwell/src/Photo.vala"
return FALSE;
#line 20326 "Photo.c"
}
#line 2664 "/home/jens/Source/shotwell/src/Photo.vala"
if (!_tmp10_) {
#line 2665 "/home/jens/Source/shotwell/src/Photo.vala"
result = FALSE;
#line 2665 "/home/jens/Source/shotwell/src/Photo.vala"
_photo_file_adapter_unref0 (_tmp4_);
#line 2665 "/home/jens/Source/shotwell/src/Photo.vala"
_photo_file_adapter_unref0 (master_reader);
#line 2665 "/home/jens/Source/shotwell/src/Photo.vala"
if (state) {
#line 2665 "/home/jens/Source/shotwell/src/Photo.vala"
*state = _vala_state;
#line 20340 "Photo.c"
} else {
#line 2665 "/home/jens/Source/shotwell/src/Photo.vala"
_photo_reimport_master_state_unref0 (_vala_state);
#line 20344 "Photo.c"
}
#line 2665 "/home/jens/Source/shotwell/src/Photo.vala"
return result;
#line 20348 "Photo.c"
}
#line 2667 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp13_ = _vala_state;
#line 2667 "/home/jens/Source/shotwell/src/Photo.vala"
G_TYPE_CHECK_INSTANCE_CAST (_tmp13_, PHOTO_TYPE_REIMPORT_MASTER_STATE_IMPL, PhotoReimportMasterStateImpl)->metadata_only = TRUE;
#line 2669 "/home/jens/Source/shotwell/src/Photo.vala"
result = TRUE;
#line 2669 "/home/jens/Source/shotwell/src/Photo.vala"
_photo_file_adapter_unref0 (_tmp4_);
#line 2669 "/home/jens/Source/shotwell/src/Photo.vala"
_photo_file_adapter_unref0 (master_reader);
#line 2669 "/home/jens/Source/shotwell/src/Photo.vala"
if (state) {
#line 2669 "/home/jens/Source/shotwell/src/Photo.vala"
*state = _vala_state;
#line 20364 "Photo.c"
} else {
#line 2669 "/home/jens/Source/shotwell/src/Photo.vala"
_photo_reimport_master_state_unref0 (_vala_state);
#line 20368 "Photo.c"
}
#line 2669 "/home/jens/Source/shotwell/src/Photo.vala"
return result;
#line 20372 "Photo.c"
}
void photo_finish_update_master_metadata (Photo* self, PhotoReimportMasterState* state, GError** error) {
PhotoReimportMasterState* _tmp0_ = NULL;
GError * _inner_error_ = NULL;
#line 2672 "/home/jens/Source/shotwell/src/Photo.vala"
g_return_if_fail (IS_PHOTO (self));
#line 2672 "/home/jens/Source/shotwell/src/Photo.vala"
g_return_if_fail (PHOTO_IS_REIMPORT_MASTER_STATE (state));
#line 2673 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp0_ = state;
#line 2673 "/home/jens/Source/shotwell/src/Photo.vala"
photo_finish_reimport_master (self, _tmp0_, &_inner_error_);
#line 2673 "/home/jens/Source/shotwell/src/Photo.vala"
if (G_UNLIKELY (_inner_error_ != NULL)) {
#line 2673 "/home/jens/Source/shotwell/src/Photo.vala"
if (_inner_error_->domain == DATABASE_ERROR) {
#line 2673 "/home/jens/Source/shotwell/src/Photo.vala"
g_propagate_error (error, _inner_error_);
#line 2673 "/home/jens/Source/shotwell/src/Photo.vala"
return;
#line 20395 "Photo.c"
} else {
#line 2673 "/home/jens/Source/shotwell/src/Photo.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 2673 "/home/jens/Source/shotwell/src/Photo.vala"
g_clear_error (&_inner_error_);
#line 2673 "/home/jens/Source/shotwell/src/Photo.vala"
return;
#line 20403 "Photo.c"
}
}
}
gboolean photo_persist_editable_metadata (Photo* self, PhotoMetadata* metadata, PhotoReimportEditableState** state, GError** error) {
PhotoReimportEditableState* _vala_state = NULL;
gboolean result = FALSE;
PhotoFileReader* editable_reader = NULL;
PhotoFileReader* _tmp0_ = NULL;
PhotoFileReader* _tmp1_ = NULL;
PhotoFileReader* _tmp2_ = NULL;
PhotoFileFormat _tmp3_ = 0;
gboolean _tmp4_ = FALSE;
PhotoFileMetadataWriter* _tmp5_ = NULL;
PhotoFileReader* _tmp6_ = NULL;
PhotoFileMetadataWriter* _tmp7_ = NULL;
PhotoFileMetadataWriter* _tmp8_ = NULL;
PhotoFileMetadataWriter* _tmp9_ = NULL;
PhotoMetadata* _tmp10_ = NULL;
gboolean _tmp11_ = FALSE;
PhotoReimportEditableState* _tmp12_ = NULL;
gboolean _tmp13_ = FALSE;
PhotoReimportEditableState* _tmp14_ = NULL;
GError * _inner_error_ = NULL;
#line 2676 "/home/jens/Source/shotwell/src/Photo.vala"
g_return_val_if_fail (IS_PHOTO (self), FALSE);
#line 2676 "/home/jens/Source/shotwell/src/Photo.vala"
g_return_val_if_fail (IS_PHOTO_METADATA (metadata), FALSE);
#line 2678 "/home/jens/Source/shotwell/src/Photo.vala"
_photo_reimport_editable_state_unref0 (_vala_state);
#line 2678 "/home/jens/Source/shotwell/src/Photo.vala"
_vala_state = NULL;
#line 2680 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp0_ = photo_get_editable_reader (self);
#line 2680 "/home/jens/Source/shotwell/src/Photo.vala"
editable_reader = _tmp0_;
#line 2681 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp1_ = editable_reader;
#line 2681 "/home/jens/Source/shotwell/src/Photo.vala"
if (_tmp1_ == NULL) {
#line 2682 "/home/jens/Source/shotwell/src/Photo.vala"
result = FALSE;
#line 2682 "/home/jens/Source/shotwell/src/Photo.vala"
_photo_file_adapter_unref0 (editable_reader);
#line 2682 "/home/jens/Source/shotwell/src/Photo.vala"
if (state) {
#line 2682 "/home/jens/Source/shotwell/src/Photo.vala"
*state = _vala_state;
#line 20453 "Photo.c"
} else {
#line 2682 "/home/jens/Source/shotwell/src/Photo.vala"
_photo_reimport_editable_state_unref0 (_vala_state);
#line 20457 "Photo.c"
}
#line 2682 "/home/jens/Source/shotwell/src/Photo.vala"
return result;
#line 20461 "Photo.c"
}
#line 2684 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp2_ = editable_reader;
#line 2684 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp3_ = photo_file_adapter_get_file_format (G_TYPE_CHECK_INSTANCE_CAST (_tmp2_, TYPE_PHOTO_FILE_ADAPTER, PhotoFileAdapter));
#line 2684 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp4_ = photo_file_format_can_write_metadata (_tmp3_);
#line 2684 "/home/jens/Source/shotwell/src/Photo.vala"
if (!_tmp4_) {
#line 2685 "/home/jens/Source/shotwell/src/Photo.vala"
result = FALSE;
#line 2685 "/home/jens/Source/shotwell/src/Photo.vala"
_photo_file_adapter_unref0 (editable_reader);
#line 2685 "/home/jens/Source/shotwell/src/Photo.vala"
if (state) {
#line 2685 "/home/jens/Source/shotwell/src/Photo.vala"
*state = _vala_state;
#line 20479 "Photo.c"
} else {
#line 2685 "/home/jens/Source/shotwell/src/Photo.vala"
_photo_reimport_editable_state_unref0 (_vala_state);
#line 20483 "Photo.c"
}
#line 2685 "/home/jens/Source/shotwell/src/Photo.vala"
return result;
#line 20487 "Photo.c"
}
#line 2687 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp6_ = editable_reader;
#line 2687 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp7_ = photo_file_reader_create_metadata_writer (_tmp6_, &_inner_error_);
#line 2687 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp5_ = _tmp7_;
#line 2687 "/home/jens/Source/shotwell/src/Photo.vala"
if (G_UNLIKELY (_inner_error_ != NULL)) {
#line 2687 "/home/jens/Source/shotwell/src/Photo.vala"
g_propagate_error (error, _inner_error_);
#line 2687 "/home/jens/Source/shotwell/src/Photo.vala"
_photo_file_adapter_unref0 (editable_reader);
#line 2687 "/home/jens/Source/shotwell/src/Photo.vala"
return FALSE;
#line 20503 "Photo.c"
}
#line 2687 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp8_ = _tmp5_;
#line 2687 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp5_ = NULL;
#line 2687 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp9_ = _tmp8_;
#line 2687 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp10_ = metadata;
#line 2687 "/home/jens/Source/shotwell/src/Photo.vala"
photo_file_metadata_writer_write_metadata (_tmp9_, _tmp10_, &_inner_error_);
#line 2687 "/home/jens/Source/shotwell/src/Photo.vala"
_photo_file_adapter_unref0 (_tmp9_);
#line 2687 "/home/jens/Source/shotwell/src/Photo.vala"
if (G_UNLIKELY (_inner_error_ != NULL)) {
#line 2687 "/home/jens/Source/shotwell/src/Photo.vala"
g_propagate_error (error, _inner_error_);
#line 2687 "/home/jens/Source/shotwell/src/Photo.vala"
_photo_file_adapter_unref0 (_tmp5_);
#line 2687 "/home/jens/Source/shotwell/src/Photo.vala"
_photo_file_adapter_unref0 (editable_reader);
#line 2687 "/home/jens/Source/shotwell/src/Photo.vala"
return FALSE;
#line 20527 "Photo.c"
}
#line 2689 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp13_ = photo_prepare_for_reimport_editable (self, &_tmp12_, &_inner_error_);
#line 2689 "/home/jens/Source/shotwell/src/Photo.vala"
_photo_reimport_editable_state_unref0 (_vala_state);
#line 2689 "/home/jens/Source/shotwell/src/Photo.vala"
_vala_state = _tmp12_;
#line 2689 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp11_ = _tmp13_;
#line 2689 "/home/jens/Source/shotwell/src/Photo.vala"
if (G_UNLIKELY (_inner_error_ != NULL)) {
#line 2689 "/home/jens/Source/shotwell/src/Photo.vala"
g_propagate_error (error, _inner_error_);
#line 2689 "/home/jens/Source/shotwell/src/Photo.vala"
_photo_file_adapter_unref0 (_tmp5_);
#line 2689 "/home/jens/Source/shotwell/src/Photo.vala"
_photo_file_adapter_unref0 (editable_reader);
#line 2689 "/home/jens/Source/shotwell/src/Photo.vala"
return FALSE;
#line 20547 "Photo.c"
}
#line 2689 "/home/jens/Source/shotwell/src/Photo.vala"
if (!_tmp11_) {
#line 2690 "/home/jens/Source/shotwell/src/Photo.vala"
result = FALSE;
#line 2690 "/home/jens/Source/shotwell/src/Photo.vala"
_photo_file_adapter_unref0 (_tmp5_);
#line 2690 "/home/jens/Source/shotwell/src/Photo.vala"
_photo_file_adapter_unref0 (editable_reader);
#line 2690 "/home/jens/Source/shotwell/src/Photo.vala"
if (state) {
#line 2690 "/home/jens/Source/shotwell/src/Photo.vala"
*state = _vala_state;
#line 20561 "Photo.c"
} else {
#line 2690 "/home/jens/Source/shotwell/src/Photo.vala"
_photo_reimport_editable_state_unref0 (_vala_state);
#line 20565 "Photo.c"
}
#line 2690 "/home/jens/Source/shotwell/src/Photo.vala"
return result;
#line 20569 "Photo.c"
}
#line 2692 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp14_ = _vala_state;
#line 2692 "/home/jens/Source/shotwell/src/Photo.vala"
G_TYPE_CHECK_INSTANCE_CAST (_tmp14_, PHOTO_TYPE_REIMPORT_EDITABLE_STATE_IMPL, PhotoReimportEditableStateImpl)->metadata_only = TRUE;
#line 2694 "/home/jens/Source/shotwell/src/Photo.vala"
result = TRUE;
#line 2694 "/home/jens/Source/shotwell/src/Photo.vala"
_photo_file_adapter_unref0 (_tmp5_);
#line 2694 "/home/jens/Source/shotwell/src/Photo.vala"
_photo_file_adapter_unref0 (editable_reader);
#line 2694 "/home/jens/Source/shotwell/src/Photo.vala"
if (state) {
#line 2694 "/home/jens/Source/shotwell/src/Photo.vala"
*state = _vala_state;
#line 20585 "Photo.c"
} else {
#line 2694 "/home/jens/Source/shotwell/src/Photo.vala"
_photo_reimport_editable_state_unref0 (_vala_state);
#line 20589 "Photo.c"
}
#line 2694 "/home/jens/Source/shotwell/src/Photo.vala"
return result;
#line 20593 "Photo.c"
}
void photo_finish_update_editable_metadata (Photo* self, PhotoReimportEditableState* state, GError** error) {
PhotoReimportEditableState* _tmp0_ = NULL;
GError * _inner_error_ = NULL;
#line 2697 "/home/jens/Source/shotwell/src/Photo.vala"
g_return_if_fail (IS_PHOTO (self));
#line 2697 "/home/jens/Source/shotwell/src/Photo.vala"
g_return_if_fail (PHOTO_IS_REIMPORT_EDITABLE_STATE (state));
#line 2698 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp0_ = state;
#line 2698 "/home/jens/Source/shotwell/src/Photo.vala"
photo_finish_reimport_editable (self, _tmp0_, &_inner_error_);
#line 2698 "/home/jens/Source/shotwell/src/Photo.vala"
if (G_UNLIKELY (_inner_error_ != NULL)) {
#line 2698 "/home/jens/Source/shotwell/src/Photo.vala"
if (_inner_error_->domain == DATABASE_ERROR) {
#line 2698 "/home/jens/Source/shotwell/src/Photo.vala"
g_propagate_error (error, _inner_error_);
#line 2698 "/home/jens/Source/shotwell/src/Photo.vala"
return;
#line 20616 "Photo.c"
} else {
#line 2698 "/home/jens/Source/shotwell/src/Photo.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 2698 "/home/jens/Source/shotwell/src/Photo.vala"
g_clear_error (&_inner_error_);
#line 2698 "/home/jens/Source/shotwell/src/Photo.vala"
return;
#line 20624 "Photo.c"
}
}
}
void photo_get_raw_dimensions (Photo* self, Dimensions* result) {
GError * _inner_error_ = NULL;
#line 2703 "/home/jens/Source/shotwell/src/Photo.vala"
g_return_if_fail (IS_PHOTO (self));
#line 20634 "Photo.c"
{
PhotoRow* _tmp0_ = NULL;
#line 2704 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp0_ = self->row;
#line 2704 "/home/jens/Source/shotwell/src/Photo.vala"
g_rec_mutex_lock (&self->priv->__lock_row);
#line 20641 "Photo.c"
{
BackingPhotoRow* _tmp1_ = NULL;
Dimensions _tmp2_ = {0};
#line 2705 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp1_ = self->backing_photo_row;
#line 2705 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp2_ = _tmp1_->dim;
#line 2705 "/home/jens/Source/shotwell/src/Photo.vala"
*result = _tmp2_;
#line 20651 "Photo.c"
{
PhotoRow* _tmp3_ = NULL;
#line 2704 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp3_ = self->row;
#line 2704 "/home/jens/Source/shotwell/src/Photo.vala"
g_rec_mutex_unlock (&self->priv->__lock_row);
#line 20658 "Photo.c"
}
#line 2705 "/home/jens/Source/shotwell/src/Photo.vala"
return;
#line 20662 "Photo.c"
}
__finally363:
{
PhotoRow* _tmp4_ = NULL;
#line 2704 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp4_ = self->row;
#line 2704 "/home/jens/Source/shotwell/src/Photo.vala"
g_rec_mutex_unlock (&self->priv->__lock_row);
#line 20671 "Photo.c"
}
#line 2704 "/home/jens/Source/shotwell/src/Photo.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 2704 "/home/jens/Source/shotwell/src/Photo.vala"
g_clear_error (&_inner_error_);
#line 2704 "/home/jens/Source/shotwell/src/Photo.vala"
return;
#line 20679 "Photo.c"
}
}
gboolean photo_has_transformations (Photo* self) {
gboolean result = FALSE;
GError * _inner_error_ = NULL;
#line 2709 "/home/jens/Source/shotwell/src/Photo.vala"
g_return_val_if_fail (IS_PHOTO (self), FALSE);
#line 20689 "Photo.c"
{
PhotoRow* _tmp0_ = NULL;
#line 2710 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp0_ = self->row;
#line 2710 "/home/jens/Source/shotwell/src/Photo.vala"
g_rec_mutex_lock (&self->priv->__lock_row);
#line 20696 "Photo.c"
{
gboolean _tmp1_ = FALSE;
PhotoRow* _tmp2_ = NULL;
Orientation _tmp3_ = 0;
BackingPhotoRow* _tmp4_ = NULL;
Orientation _tmp5_ = 0;
#line 2711 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp2_ = self->row;
#line 2711 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp3_ = _tmp2_->orientation;
#line 2711 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp4_ = self->backing_photo_row;
#line 2711 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp5_ = _tmp4_->original_orientation;
#line 2711 "/home/jens/Source/shotwell/src/Photo.vala"
if (_tmp3_ != _tmp5_) {
#line 2712 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp1_ = TRUE;
#line 20715 "Photo.c"
} else {
PhotoRow* _tmp6_ = NULL;
GeeHashMap* _tmp7_ = NULL;
#line 2713 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp6_ = self->row;
#line 2713 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp7_ = _tmp6_->transformations;
#line 2713 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp1_ = _tmp7_ != NULL;
#line 20725 "Photo.c"
}
#line 2711 "/home/jens/Source/shotwell/src/Photo.vala"
result = _tmp1_;
#line 20729 "Photo.c"
{
PhotoRow* _tmp8_ = NULL;
#line 2710 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp8_ = self->row;
#line 2710 "/home/jens/Source/shotwell/src/Photo.vala"
g_rec_mutex_unlock (&self->priv->__lock_row);
#line 20736 "Photo.c"
}
#line 2711 "/home/jens/Source/shotwell/src/Photo.vala"
return result;
#line 20740 "Photo.c"
}
__finally364:
{
PhotoRow* _tmp9_ = NULL;
#line 2710 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp9_ = self->row;
#line 2710 "/home/jens/Source/shotwell/src/Photo.vala"
g_rec_mutex_unlock (&self->priv->__lock_row);
#line 20749 "Photo.c"
}
#line 2710 "/home/jens/Source/shotwell/src/Photo.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 2710 "/home/jens/Source/shotwell/src/Photo.vala"
g_clear_error (&_inner_error_);
#line 2710 "/home/jens/Source/shotwell/src/Photo.vala"
return FALSE;
#line 20757 "Photo.c"
}
}
gboolean photo_only_metadata_changed (Photo* self) {
gboolean result = FALSE;
MetadataDateTime* date_time = NULL;
PhotoMetadata* metadata = NULL;
PhotoMetadata* _tmp0_ = NULL;
PhotoMetadata* _tmp1_ = NULL;
GError * _inner_error_ = NULL;
#line 2717 "/home/jens/Source/shotwell/src/Photo.vala"
g_return_val_if_fail (IS_PHOTO (self), FALSE);
#line 2718 "/home/jens/Source/shotwell/src/Photo.vala"
date_time = NULL;
#line 2720 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp0_ = photo_source_get_metadata (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_PHOTO_SOURCE, PhotoSource));
#line 2720 "/home/jens/Source/shotwell/src/Photo.vala"
metadata = _tmp0_;
#line 2721 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp1_ = metadata;
#line 2721 "/home/jens/Source/shotwell/src/Photo.vala"
if (_tmp1_ != NULL) {
#line 20781 "Photo.c"
PhotoMetadata* _tmp2_ = NULL;
MetadataDateTime* _tmp3_ = NULL;
#line 2722 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp2_ = metadata;
#line 2722 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp3_ = photo_metadata_get_exposure_date_time (_tmp2_);
#line 2722 "/home/jens/Source/shotwell/src/Photo.vala"
_metadata_date_time_unref0 (date_time);
#line 2722 "/home/jens/Source/shotwell/src/Photo.vala"
date_time = _tmp3_;
#line 20792 "Photo.c"
}
{
PhotoRow* _tmp4_ = NULL;
#line 2724 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp4_ = self->row;
#line 2724 "/home/jens/Source/shotwell/src/Photo.vala"
g_rec_mutex_lock (&self->priv->__lock_row);
#line 20800 "Photo.c"
{
gboolean _tmp5_ = FALSE;
PhotoRow* _tmp6_ = NULL;
GeeHashMap* _tmp7_ = NULL;
#line 2725 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp6_ = self->row;
#line 2725 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp7_ = _tmp6_->transformations;
#line 2725 "/home/jens/Source/shotwell/src/Photo.vala"
if (_tmp7_ == NULL) {
#line 20811 "Photo.c"
gboolean _tmp8_ = FALSE;
PhotoRow* _tmp9_ = NULL;
Orientation _tmp10_ = 0;
BackingPhotoRow* _tmp11_ = NULL;
Orientation _tmp12_ = 0;
#line 2726 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp9_ = self->row;
#line 2726 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp10_ = _tmp9_->orientation;
#line 2726 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp11_ = self->backing_photo_row;
#line 2726 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp12_ = _tmp11_->original_orientation;
#line 2726 "/home/jens/Source/shotwell/src/Photo.vala"
if (_tmp10_ != _tmp12_) {
#line 2726 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp8_ = TRUE;
#line 20829 "Photo.c"
} else {
gboolean _tmp13_ = FALSE;
MetadataDateTime* _tmp14_ = NULL;
#line 2727 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp14_ = date_time;
#line 2727 "/home/jens/Source/shotwell/src/Photo.vala"
if (_tmp14_ != NULL) {
#line 20837 "Photo.c"
PhotoRow* _tmp15_ = NULL;
time_t _tmp16_ = 0;
MetadataDateTime* _tmp17_ = NULL;
time_t _tmp18_ = 0;
#line 2727 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp15_ = self->row;
#line 2727 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp16_ = _tmp15_->exposure_time;
#line 2727 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp17_ = date_time;
#line 2727 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp18_ = metadata_date_time_get_timestamp (_tmp17_);
#line 2727 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp13_ = _tmp16_ != _tmp18_;
#line 20852 "Photo.c"
} else {
#line 2727 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp13_ = FALSE;
#line 20856 "Photo.c"
}
#line 2727 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp8_ = _tmp13_;
#line 20860 "Photo.c"
}
#line 2726 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp5_ = _tmp8_;
#line 20864 "Photo.c"
} else {
#line 2725 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp5_ = FALSE;
#line 20868 "Photo.c"
}
#line 2725 "/home/jens/Source/shotwell/src/Photo.vala"
result = _tmp5_;
#line 20872 "Photo.c"
{
PhotoRow* _tmp19_ = NULL;
#line 2724 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp19_ = self->row;
#line 2724 "/home/jens/Source/shotwell/src/Photo.vala"
g_rec_mutex_unlock (&self->priv->__lock_row);
#line 20879 "Photo.c"
}
#line 2725 "/home/jens/Source/shotwell/src/Photo.vala"
_media_metadata_unref0 (metadata);
#line 2725 "/home/jens/Source/shotwell/src/Photo.vala"
_metadata_date_time_unref0 (date_time);
#line 2725 "/home/jens/Source/shotwell/src/Photo.vala"
return result;
#line 20887 "Photo.c"
}
__finally365:
{
PhotoRow* _tmp20_ = NULL;
#line 2724 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp20_ = self->row;
#line 2724 "/home/jens/Source/shotwell/src/Photo.vala"
g_rec_mutex_unlock (&self->priv->__lock_row);
#line 20896 "Photo.c"
}
#line 2724 "/home/jens/Source/shotwell/src/Photo.vala"
_media_metadata_unref0 (metadata);
#line 2724 "/home/jens/Source/shotwell/src/Photo.vala"
_metadata_date_time_unref0 (date_time);
#line 2724 "/home/jens/Source/shotwell/src/Photo.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 2724 "/home/jens/Source/shotwell/src/Photo.vala"
g_clear_error (&_inner_error_);
#line 2724 "/home/jens/Source/shotwell/src/Photo.vala"
return FALSE;
#line 20908 "Photo.c"
}
#line 2717 "/home/jens/Source/shotwell/src/Photo.vala"
_media_metadata_unref0 (metadata);
#line 2717 "/home/jens/Source/shotwell/src/Photo.vala"
_metadata_date_time_unref0 (date_time);
#line 20914 "Photo.c"
}
gboolean photo_has_alterations (Photo* self) {
gboolean result = FALSE;
MetadataDateTime* date_time = NULL;
gchar* title = NULL;
gchar* comment = NULL;
PhotoMetadata* metadata = NULL;
PhotoMetadata* _tmp0_ = NULL;
PhotoMetadata* _tmp1_ = NULL;
MetadataDateTime* _tmp8_ = NULL;
GError * _inner_error_ = NULL;
#line 2731 "/home/jens/Source/shotwell/src/Photo.vala"
g_return_val_if_fail (IS_PHOTO (self), FALSE);
#line 2732 "/home/jens/Source/shotwell/src/Photo.vala"
date_time = NULL;
#line 2733 "/home/jens/Source/shotwell/src/Photo.vala"
title = NULL;
#line 2734 "/home/jens/Source/shotwell/src/Photo.vala"
comment = NULL;
#line 2736 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp0_ = photo_source_get_metadata (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_PHOTO_SOURCE, PhotoSource));
#line 2736 "/home/jens/Source/shotwell/src/Photo.vala"
metadata = _tmp0_;
#line 2737 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp1_ = metadata;
#line 2737 "/home/jens/Source/shotwell/src/Photo.vala"
if (_tmp1_ != NULL) {
#line 20944 "Photo.c"
PhotoMetadata* _tmp2_ = NULL;
MetadataDateTime* _tmp3_ = NULL;
PhotoMetadata* _tmp4_ = NULL;
gchar* _tmp5_ = NULL;
PhotoMetadata* _tmp6_ = NULL;
gchar* _tmp7_ = NULL;
#line 2738 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp2_ = metadata;
#line 2738 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp3_ = photo_metadata_get_exposure_date_time (_tmp2_);
#line 2738 "/home/jens/Source/shotwell/src/Photo.vala"
_metadata_date_time_unref0 (date_time);
#line 2738 "/home/jens/Source/shotwell/src/Photo.vala"
date_time = _tmp3_;
#line 2739 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp4_ = metadata;
#line 2739 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp5_ = media_metadata_get_title (G_TYPE_CHECK_INSTANCE_CAST (_tmp4_, TYPE_MEDIA_METADATA, MediaMetadata));
#line 2739 "/home/jens/Source/shotwell/src/Photo.vala"
_g_free0 (title);
#line 2739 "/home/jens/Source/shotwell/src/Photo.vala"
title = _tmp5_;
#line 2740 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp6_ = metadata;
#line 2740 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp7_ = media_metadata_get_comment (G_TYPE_CHECK_INSTANCE_CAST (_tmp6_, TYPE_MEDIA_METADATA, MediaMetadata));
#line 2740 "/home/jens/Source/shotwell/src/Photo.vala"
_g_free0 (comment);
#line 2740 "/home/jens/Source/shotwell/src/Photo.vala"
comment = _tmp7_;
#line 20975 "Photo.c"
}
#line 2744 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp8_ = date_time;
#line 2744 "/home/jens/Source/shotwell/src/Photo.vala"
if (_tmp8_ == NULL) {
#line 20981 "Photo.c"
{
PhotoRow* _tmp9_ = NULL;
#line 2746 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp9_ = self->row;
#line 2746 "/home/jens/Source/shotwell/src/Photo.vala"
g_rec_mutex_lock (&self->priv->__lock_row);
#line 20988 "Photo.c"
{
BackingPhotoRow* _tmp10_ = NULL;
time_t _tmp11_ = 0;
PhotoRow* _tmp12_ = NULL;
time_t _tmp13_ = 0;
#line 2748 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp10_ = self->backing_photo_row;
#line 2748 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp11_ = _tmp10_->timestamp;
#line 2748 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp12_ = self->row;
#line 2748 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp13_ = _tmp12_->exposure_time;
#line 2748 "/home/jens/Source/shotwell/src/Photo.vala"
if (_tmp11_ != _tmp13_) {
#line 2750 "/home/jens/Source/shotwell/src/Photo.vala"
result = TRUE;
#line 21006 "Photo.c"
{
PhotoRow* _tmp14_ = NULL;
#line 2746 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp14_ = self->row;
#line 2746 "/home/jens/Source/shotwell/src/Photo.vala"
g_rec_mutex_unlock (&self->priv->__lock_row);
#line 21013 "Photo.c"
}
#line 2750 "/home/jens/Source/shotwell/src/Photo.vala"
_media_metadata_unref0 (metadata);
#line 2750 "/home/jens/Source/shotwell/src/Photo.vala"
_g_free0 (comment);
#line 2750 "/home/jens/Source/shotwell/src/Photo.vala"
_g_free0 (title);
#line 2750 "/home/jens/Source/shotwell/src/Photo.vala"
_metadata_date_time_unref0 (date_time);
#line 2750 "/home/jens/Source/shotwell/src/Photo.vala"
return result;
#line 21025 "Photo.c"
}
}
__finally366:
{
PhotoRow* _tmp15_ = NULL;
#line 2746 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp15_ = self->row;
#line 2746 "/home/jens/Source/shotwell/src/Photo.vala"
g_rec_mutex_unlock (&self->priv->__lock_row);
#line 21035 "Photo.c"
}
#line 2746 "/home/jens/Source/shotwell/src/Photo.vala"
if (G_UNLIKELY (_inner_error_ != NULL)) {
#line 2746 "/home/jens/Source/shotwell/src/Photo.vala"
_media_metadata_unref0 (metadata);
#line 2746 "/home/jens/Source/shotwell/src/Photo.vala"
_g_free0 (comment);
#line 2746 "/home/jens/Source/shotwell/src/Photo.vala"
_g_free0 (title);
#line 2746 "/home/jens/Source/shotwell/src/Photo.vala"
_metadata_date_time_unref0 (date_time);
#line 2746 "/home/jens/Source/shotwell/src/Photo.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 2746 "/home/jens/Source/shotwell/src/Photo.vala"
g_clear_error (&_inner_error_);
#line 2746 "/home/jens/Source/shotwell/src/Photo.vala"
return FALSE;
#line 21053 "Photo.c"
}
}
}
{
PhotoRow* _tmp16_ = NULL;
#line 2755 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp16_ = self->row;
#line 2755 "/home/jens/Source/shotwell/src/Photo.vala"
g_rec_mutex_lock (&self->priv->__lock_row);
#line 21063 "Photo.c"
{
gboolean _tmp17_ = FALSE;
gboolean _tmp18_ = FALSE;
gboolean _tmp19_ = FALSE;
gboolean _tmp20_ = FALSE;
PhotoRow* _tmp21_ = NULL;
GeeHashMap* _tmp22_ = NULL;
#line 2756 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp21_ = self->row;
#line 2756 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp22_ = _tmp21_->transformations;
#line 2756 "/home/jens/Source/shotwell/src/Photo.vala"
if (_tmp22_ != NULL) {
#line 2756 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp20_ = TRUE;
#line 21079 "Photo.c"
} else {
PhotoRow* _tmp23_ = NULL;
Orientation _tmp24_ = 0;
BackingPhotoRow* _tmp25_ = NULL;
Orientation _tmp26_ = 0;
#line 2757 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp23_ = self->row;
#line 2757 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp24_ = _tmp23_->orientation;
#line 2757 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp25_ = self->backing_photo_row;
#line 2757 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp26_ = _tmp25_->original_orientation;
#line 2757 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp20_ = _tmp24_ != _tmp26_;
#line 21095 "Photo.c"
}
#line 2756 "/home/jens/Source/shotwell/src/Photo.vala"
if (_tmp20_) {
#line 2756 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp19_ = TRUE;
#line 21101 "Photo.c"
} else {
gboolean _tmp27_ = FALSE;
MetadataDateTime* _tmp28_ = NULL;
#line 2758 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp28_ = date_time;
#line 2758 "/home/jens/Source/shotwell/src/Photo.vala"
if (_tmp28_ != NULL) {
#line 21109 "Photo.c"
PhotoRow* _tmp29_ = NULL;
time_t _tmp30_ = 0;
MetadataDateTime* _tmp31_ = NULL;
time_t _tmp32_ = 0;
#line 2758 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp29_ = self->row;
#line 2758 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp30_ = _tmp29_->exposure_time;
#line 2758 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp31_ = date_time;
#line 2758 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp32_ = metadata_date_time_get_timestamp (_tmp31_);
#line 2758 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp27_ = _tmp30_ != _tmp32_;
#line 21124 "Photo.c"
} else {
#line 2758 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp27_ = FALSE;
#line 21128 "Photo.c"
}
#line 2758 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp19_ = _tmp27_;
#line 21132 "Photo.c"
}
#line 2756 "/home/jens/Source/shotwell/src/Photo.vala"
if (_tmp19_) {
#line 2756 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp18_ = TRUE;
#line 21138 "Photo.c"
} else {
gchar* _tmp33_ = NULL;
gchar* _tmp34_ = NULL;
const gchar* _tmp35_ = NULL;
#line 2759 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp33_ = media_source_get_comment (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_MEDIA_SOURCE, MediaSource));
#line 2759 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp34_ = _tmp33_;
#line 2759 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp35_ = comment;
#line 2759 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp18_ = g_strcmp0 (_tmp34_, _tmp35_) != 0;
#line 2759 "/home/jens/Source/shotwell/src/Photo.vala"
_g_free0 (_tmp34_);
#line 21153 "Photo.c"
}
#line 2756 "/home/jens/Source/shotwell/src/Photo.vala"
if (_tmp18_) {
#line 2756 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp17_ = TRUE;
#line 21159 "Photo.c"
} else {
gchar* _tmp36_ = NULL;
gchar* _tmp37_ = NULL;
const gchar* _tmp38_ = NULL;
#line 2760 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp36_ = media_source_get_title (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_MEDIA_SOURCE, MediaSource));
#line 2760 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp37_ = _tmp36_;
#line 2760 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp38_ = title;
#line 2760 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp17_ = g_strcmp0 (_tmp37_, _tmp38_) != 0;
#line 2760 "/home/jens/Source/shotwell/src/Photo.vala"
_g_free0 (_tmp37_);
#line 21174 "Photo.c"
}
#line 2756 "/home/jens/Source/shotwell/src/Photo.vala"
result = _tmp17_;
#line 21178 "Photo.c"
{
PhotoRow* _tmp39_ = NULL;
#line 2755 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp39_ = self->row;
#line 2755 "/home/jens/Source/shotwell/src/Photo.vala"
g_rec_mutex_unlock (&self->priv->__lock_row);
#line 21185 "Photo.c"
}
#line 2756 "/home/jens/Source/shotwell/src/Photo.vala"
_media_metadata_unref0 (metadata);
#line 2756 "/home/jens/Source/shotwell/src/Photo.vala"
_g_free0 (comment);
#line 2756 "/home/jens/Source/shotwell/src/Photo.vala"
_g_free0 (title);
#line 2756 "/home/jens/Source/shotwell/src/Photo.vala"
_metadata_date_time_unref0 (date_time);
#line 2756 "/home/jens/Source/shotwell/src/Photo.vala"
return result;
#line 21197 "Photo.c"
}
__finally367:
{
PhotoRow* _tmp40_ = NULL;
#line 2755 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp40_ = self->row;
#line 2755 "/home/jens/Source/shotwell/src/Photo.vala"
g_rec_mutex_unlock (&self->priv->__lock_row);
#line 21206 "Photo.c"
}
#line 2755 "/home/jens/Source/shotwell/src/Photo.vala"
_media_metadata_unref0 (metadata);
#line 2755 "/home/jens/Source/shotwell/src/Photo.vala"
_g_free0 (comment);
#line 2755 "/home/jens/Source/shotwell/src/Photo.vala"
_g_free0 (title);
#line 2755 "/home/jens/Source/shotwell/src/Photo.vala"
_metadata_date_time_unref0 (date_time);
#line 2755 "/home/jens/Source/shotwell/src/Photo.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 2755 "/home/jens/Source/shotwell/src/Photo.vala"
g_clear_error (&_inner_error_);
#line 2755 "/home/jens/Source/shotwell/src/Photo.vala"
return FALSE;
#line 21222 "Photo.c"
}
#line 2731 "/home/jens/Source/shotwell/src/Photo.vala"
_media_metadata_unref0 (metadata);
#line 2731 "/home/jens/Source/shotwell/src/Photo.vala"
_g_free0 (comment);
#line 2731 "/home/jens/Source/shotwell/src/Photo.vala"
_g_free0 (title);
#line 2731 "/home/jens/Source/shotwell/src/Photo.vala"
_metadata_date_time_unref0 (date_time);
#line 21232 "Photo.c"
}
PhotoTransformationState* photo_save_transformation_state (Photo* self) {
PhotoTransformationState* result = NULL;
GError * _inner_error_ = NULL;
#line 2765 "/home/jens/Source/shotwell/src/Photo.vala"
g_return_val_if_fail (IS_PHOTO (self), NULL);
#line 21241 "Photo.c"
{
PhotoRow* _tmp0_ = NULL;
#line 2766 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp0_ = self->row;
#line 2766 "/home/jens/Source/shotwell/src/Photo.vala"
g_rec_mutex_lock (&self->priv->__lock_row);
#line 21248 "Photo.c"
{
PixelTransformer* _tmp1_ = NULL;
PixelTransformer* _tmp2_ = NULL;
PixelTransformationBundle* _tmp5_ = NULL;
PixelTransformationBundle* _tmp6_ = NULL;
PhotoRow* _tmp9_ = NULL;
Orientation _tmp10_ = 0;
PhotoRow* _tmp11_ = NULL;
GeeHashMap* _tmp12_ = NULL;
PhotoPhotoTransformationStateImpl* _tmp13_ = NULL;
#line 2769 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp2_ = self->priv->transformer;
#line 2769 "/home/jens/Source/shotwell/src/Photo.vala"
if (_tmp2_ != NULL) {
#line 21263 "Photo.c"
PixelTransformer* _tmp3_ = NULL;
PixelTransformer* _tmp4_ = NULL;
#line 2769 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp3_ = self->priv->transformer;
#line 2769 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp4_ = pixel_transformer_copy (_tmp3_);
#line 2769 "/home/jens/Source/shotwell/src/Photo.vala"
_pixel_transformer_unref0 (_tmp1_);
#line 2769 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp1_ = _tmp4_;
#line 21274 "Photo.c"
} else {
#line 2769 "/home/jens/Source/shotwell/src/Photo.vala"
_pixel_transformer_unref0 (_tmp1_);
#line 2769 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp1_ = NULL;
#line 21280 "Photo.c"
}
#line 2770 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp6_ = self->priv->adjustments;
#line 2770 "/home/jens/Source/shotwell/src/Photo.vala"
if (_tmp6_ != NULL) {
#line 21286 "Photo.c"
PixelTransformationBundle* _tmp7_ = NULL;
PixelTransformationBundle* _tmp8_ = NULL;
#line 2770 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp7_ = self->priv->adjustments;
#line 2770 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp8_ = pixel_transformation_bundle_copy (_tmp7_);
#line 2770 "/home/jens/Source/shotwell/src/Photo.vala"
_pixel_transformation_bundle_unref0 (_tmp5_);
#line 2770 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp5_ = _tmp8_;
#line 21297 "Photo.c"
} else {
#line 2770 "/home/jens/Source/shotwell/src/Photo.vala"
_pixel_transformation_bundle_unref0 (_tmp5_);
#line 2770 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp5_ = NULL;
#line 21303 "Photo.c"
}
#line 2767 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp9_ = self->row;
#line 2767 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp10_ = _tmp9_->orientation;
#line 2767 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp11_ = self->row;
#line 2767 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp12_ = _tmp11_->transformations;
#line 2767 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp13_ = photo_photo_transformation_state_impl_new (self, _tmp10_, _tmp12_, _tmp1_, _tmp5_);
#line 2767 "/home/jens/Source/shotwell/src/Photo.vala"
result = G_TYPE_CHECK_INSTANCE_CAST (_tmp13_, TYPE_PHOTO_TRANSFORMATION_STATE, PhotoTransformationState);
#line 2767 "/home/jens/Source/shotwell/src/Photo.vala"
_pixel_transformation_bundle_unref0 (_tmp5_);
#line 2767 "/home/jens/Source/shotwell/src/Photo.vala"
_pixel_transformer_unref0 (_tmp1_);
#line 21321 "Photo.c"
{
PhotoRow* _tmp14_ = NULL;
#line 2766 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp14_ = self->row;
#line 2766 "/home/jens/Source/shotwell/src/Photo.vala"
g_rec_mutex_unlock (&self->priv->__lock_row);
#line 21328 "Photo.c"
}
#line 2767 "/home/jens/Source/shotwell/src/Photo.vala"
return result;
#line 21332 "Photo.c"
}
__finally368:
{
PhotoRow* _tmp15_ = NULL;
#line 2766 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp15_ = self->row;
#line 2766 "/home/jens/Source/shotwell/src/Photo.vala"
g_rec_mutex_unlock (&self->priv->__lock_row);
#line 21341 "Photo.c"
}
#line 2766 "/home/jens/Source/shotwell/src/Photo.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 2766 "/home/jens/Source/shotwell/src/Photo.vala"
g_clear_error (&_inner_error_);
#line 2766 "/home/jens/Source/shotwell/src/Photo.vala"
return NULL;
#line 21349 "Photo.c"
}
}
static gpointer _pixel_transformer_ref0 (gpointer self) {
#line 2791 "/home/jens/Source/shotwell/src/Photo.vala"
return self ? pixel_transformer_ref (self) : NULL;
#line 21357 "Photo.c"
}
static gpointer _pixel_transformation_bundle_ref0 (gpointer self) {
#line 2792 "/home/jens/Source/shotwell/src/Photo.vala"
return self ? pixel_transformation_bundle_ref (self) : NULL;
#line 21364 "Photo.c"
}
gboolean photo_load_transformation_state (Photo* self, PhotoTransformationState* state) {
gboolean result = FALSE;
PhotoPhotoTransformationStateImpl* state_impl = NULL;
PhotoTransformationState* _tmp0_ = NULL;
PhotoPhotoTransformationStateImpl* _tmp1_ = NULL;
PhotoPhotoTransformationStateImpl* _tmp2_ = NULL;
Orientation saved_orientation = 0;
PhotoPhotoTransformationStateImpl* _tmp3_ = NULL;
Orientation _tmp4_ = 0;
GeeHashMap* saved_transformations = NULL;
PhotoPhotoTransformationStateImpl* _tmp5_ = NULL;
GeeHashMap* _tmp6_ = NULL;
PixelTransformer* saved_transformer = NULL;
PhotoPhotoTransformationStateImpl* _tmp7_ = NULL;
PixelTransformer* _tmp8_ = NULL;
PixelTransformationBundle* saved_adjustments = NULL;
PhotoPhotoTransformationStateImpl* _tmp9_ = NULL;
PixelTransformationBundle* _tmp10_ = NULL;
gboolean committed = FALSE;
gboolean _tmp30_ = FALSE;
GError * _inner_error_ = NULL;
#line 2774 "/home/jens/Source/shotwell/src/Photo.vala"
g_return_val_if_fail (IS_PHOTO (self), FALSE);
#line 2774 "/home/jens/Source/shotwell/src/Photo.vala"
g_return_val_if_fail (IS_PHOTO_TRANSFORMATION_STATE (state), FALSE);
#line 2775 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp0_ = state;
#line 2775 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp1_ = _g_object_ref0 (G_TYPE_CHECK_INSTANCE_TYPE (_tmp0_, PHOTO_TYPE_PHOTO_TRANSFORMATION_STATE_IMPL) ? ((PhotoPhotoTransformationStateImpl*) _tmp0_) : NULL);
#line 2775 "/home/jens/Source/shotwell/src/Photo.vala"
state_impl = _tmp1_;
#line 2776 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp2_ = state_impl;
#line 2776 "/home/jens/Source/shotwell/src/Photo.vala"
if (_tmp2_ == NULL) {
#line 2777 "/home/jens/Source/shotwell/src/Photo.vala"
result = FALSE;
#line 2777 "/home/jens/Source/shotwell/src/Photo.vala"
_g_object_unref0 (state_impl);
#line 2777 "/home/jens/Source/shotwell/src/Photo.vala"
return result;
#line 21409 "Photo.c"
}
#line 2779 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp3_ = state_impl;
#line 2779 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp4_ = photo_photo_transformation_state_impl_get_orientation (_tmp3_);
#line 2779 "/home/jens/Source/shotwell/src/Photo.vala"
saved_orientation = _tmp4_;
#line 2780 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp5_ = state_impl;
#line 2780 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp6_ = photo_photo_transformation_state_impl_get_transformations (_tmp5_);
#line 2780 "/home/jens/Source/shotwell/src/Photo.vala"
saved_transformations = _tmp6_;
#line 2781 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp7_ = state_impl;
#line 2781 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp8_ = photo_photo_transformation_state_impl_get_transformer (_tmp7_);
#line 2781 "/home/jens/Source/shotwell/src/Photo.vala"
saved_transformer = _tmp8_;
#line 2782 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp9_ = state_impl;
#line 2782 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp10_ = photo_photo_transformation_state_impl_get_color_adjustments (_tmp9_);
#line 2782 "/home/jens/Source/shotwell/src/Photo.vala"
saved_adjustments = _tmp10_;
#line 21435 "Photo.c"
{
PhotoRow* _tmp11_ = NULL;
#line 2785 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp11_ = self->row;
#line 2785 "/home/jens/Source/shotwell/src/Photo.vala"
g_rec_mutex_lock (&self->priv->__lock_row);
#line 21442 "Photo.c"
{
PhotoTable* _tmp12_ = NULL;
PhotoTable* _tmp13_ = NULL;
PhotoRow* _tmp14_ = NULL;
PhotoID _tmp15_ = {0};
Orientation _tmp16_ = 0;
GeeHashMap* _tmp17_ = NULL;
gboolean _tmp18_ = FALSE;
gboolean _tmp19_ = FALSE;
#line 2786 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp12_ = photo_table_get_instance ();
#line 2786 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp13_ = _tmp12_;
#line 2786 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp14_ = self->row;
#line 2786 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp15_ = _tmp14_->photo_id;
#line 2786 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp16_ = saved_orientation;
#line 2786 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp17_ = saved_transformations;
#line 2786 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp18_ = photo_table_set_transformation_state (_tmp13_, &_tmp15_, _tmp16_, _tmp17_);
#line 2786 "/home/jens/Source/shotwell/src/Photo.vala"
committed = _tmp18_;
#line 2786 "/home/jens/Source/shotwell/src/Photo.vala"
_database_table_unref0 (_tmp13_);
#line 2788 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp19_ = committed;
#line 2788 "/home/jens/Source/shotwell/src/Photo.vala"
if (_tmp19_) {
#line 21474 "Photo.c"
PhotoRow* _tmp20_ = NULL;
Orientation _tmp21_ = 0;
PhotoRow* _tmp22_ = NULL;
GeeHashMap* _tmp23_ = NULL;
GeeHashMap* _tmp24_ = NULL;
PixelTransformer* _tmp25_ = NULL;
PixelTransformer* _tmp26_ = NULL;
PixelTransformationBundle* _tmp27_ = NULL;
PixelTransformationBundle* _tmp28_ = NULL;
#line 2789 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp20_ = self->row;
#line 2789 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp21_ = saved_orientation;
#line 2789 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp20_->orientation = _tmp21_;
#line 2790 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp22_ = self->row;
#line 2790 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp23_ = saved_transformations;
#line 2790 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp24_ = _g_object_ref0 (_tmp23_);
#line 2790 "/home/jens/Source/shotwell/src/Photo.vala"
_g_object_unref0 (_tmp22_->transformations);
#line 2790 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp22_->transformations = _tmp24_;
#line 2791 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp25_ = saved_transformer;
#line 2791 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp26_ = _pixel_transformer_ref0 (_tmp25_);
#line 2791 "/home/jens/Source/shotwell/src/Photo.vala"
_pixel_transformer_unref0 (self->priv->transformer);
#line 2791 "/home/jens/Source/shotwell/src/Photo.vala"
self->priv->transformer = _tmp26_;
#line 2792 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp27_ = saved_adjustments;
#line 2792 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp28_ = _pixel_transformation_bundle_ref0 (_tmp27_);
#line 2792 "/home/jens/Source/shotwell/src/Photo.vala"
_pixel_transformation_bundle_unref0 (self->priv->adjustments);
#line 2792 "/home/jens/Source/shotwell/src/Photo.vala"
self->priv->adjustments = _tmp28_;
#line 21516 "Photo.c"
}
}
__finally369:
{
PhotoRow* _tmp29_ = NULL;
#line 2785 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp29_ = self->row;
#line 2785 "/home/jens/Source/shotwell/src/Photo.vala"
g_rec_mutex_unlock (&self->priv->__lock_row);
#line 21526 "Photo.c"
}
#line 2785 "/home/jens/Source/shotwell/src/Photo.vala"
if (G_UNLIKELY (_inner_error_ != NULL)) {
#line 2785 "/home/jens/Source/shotwell/src/Photo.vala"
_pixel_transformation_bundle_unref0 (saved_adjustments);
#line 2785 "/home/jens/Source/shotwell/src/Photo.vala"
_pixel_transformer_unref0 (saved_transformer);
#line 2785 "/home/jens/Source/shotwell/src/Photo.vala"
_g_object_unref0 (saved_transformations);
#line 2785 "/home/jens/Source/shotwell/src/Photo.vala"
_g_object_unref0 (state_impl);
#line 2785 "/home/jens/Source/shotwell/src/Photo.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 2785 "/home/jens/Source/shotwell/src/Photo.vala"
g_clear_error (&_inner_error_);
#line 2785 "/home/jens/Source/shotwell/src/Photo.vala"
return FALSE;
#line 21544 "Photo.c"
}
}
#line 2796 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp30_ = committed;
#line 2796 "/home/jens/Source/shotwell/src/Photo.vala"
if (_tmp30_) {
#line 21551 "Photo.c"
Alteration* _tmp31_ = NULL;
Alteration* _tmp32_ = NULL;
#line 2797 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp31_ = alteration_new ("image", "transformation-state");
#line 2797 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp32_ = _tmp31_;
#line 2797 "/home/jens/Source/shotwell/src/Photo.vala"
data_object_notify_altered (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_DATA_OBJECT, DataObject), _tmp32_);
#line 2797 "/home/jens/Source/shotwell/src/Photo.vala"
_alteration_unref0 (_tmp32_);
#line 21562 "Photo.c"
}
#line 2799 "/home/jens/Source/shotwell/src/Photo.vala"
result = committed;
#line 2799 "/home/jens/Source/shotwell/src/Photo.vala"
_pixel_transformation_bundle_unref0 (saved_adjustments);
#line 2799 "/home/jens/Source/shotwell/src/Photo.vala"
_pixel_transformer_unref0 (saved_transformer);
#line 2799 "/home/jens/Source/shotwell/src/Photo.vala"
_g_object_unref0 (saved_transformations);
#line 2799 "/home/jens/Source/shotwell/src/Photo.vala"
_g_object_unref0 (state_impl);
#line 2799 "/home/jens/Source/shotwell/src/Photo.vala"
return result;
#line 21576 "Photo.c"
}
void photo_remove_all_transformations (Photo* self) {
#line 2802 "/home/jens/Source/shotwell/src/Photo.vala"
g_return_if_fail (IS_PHOTO (self));
#line 2803 "/home/jens/Source/shotwell/src/Photo.vala"
photo_internal_remove_all_transformations (self, TRUE);
#line 21585 "Photo.c"
}
static void photo_internal_remove_all_transformations (Photo* self, gboolean notify) {
gboolean is_altered = FALSE;
gboolean _tmp21_ = FALSE;
gboolean _tmp22_ = FALSE;
GError * _inner_error_ = NULL;
#line 2806 "/home/jens/Source/shotwell/src/Photo.vala"
g_return_if_fail (IS_PHOTO (self));
#line 2807 "/home/jens/Source/shotwell/src/Photo.vala"
is_altered = FALSE;
#line 21598 "Photo.c"
{
PhotoRow* _tmp0_ = NULL;
#line 2808 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp0_ = self->row;
#line 2808 "/home/jens/Source/shotwell/src/Photo.vala"
g_rec_mutex_lock (&self->priv->__lock_row);
#line 21605 "Photo.c"
{
PhotoTable* _tmp1_ = NULL;
PhotoTable* _tmp2_ = NULL;
PhotoRow* _tmp3_ = NULL;
PhotoID _tmp4_ = {0};
gboolean _tmp5_ = FALSE;
PhotoRow* _tmp6_ = NULL;
PhotoRow* _tmp7_ = NULL;
Orientation _tmp8_ = 0;
BackingPhotoRow* _tmp9_ = NULL;
Orientation _tmp10_ = 0;
#line 2809 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp1_ = photo_table_get_instance ();
#line 2809 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp2_ = _tmp1_;
#line 2809 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp3_ = self->row;
#line 2809 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp4_ = _tmp3_->photo_id;
#line 2809 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp5_ = photo_table_remove_all_transformations (_tmp2_, &_tmp4_);
#line 2809 "/home/jens/Source/shotwell/src/Photo.vala"
is_altered = _tmp5_;
#line 2809 "/home/jens/Source/shotwell/src/Photo.vala"
_database_table_unref0 (_tmp2_);
#line 2810 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp6_ = self->row;
#line 2810 "/home/jens/Source/shotwell/src/Photo.vala"
_g_object_unref0 (_tmp6_->transformations);
#line 2810 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp6_->transformations = NULL;
#line 2812 "/home/jens/Source/shotwell/src/Photo.vala"
_pixel_transformer_unref0 (self->priv->transformer);
#line 2812 "/home/jens/Source/shotwell/src/Photo.vala"
self->priv->transformer = NULL;
#line 2813 "/home/jens/Source/shotwell/src/Photo.vala"
_pixel_transformation_bundle_unref0 (self->priv->adjustments);
#line 2813 "/home/jens/Source/shotwell/src/Photo.vala"
self->priv->adjustments = NULL;
#line 2815 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp7_ = self->row;
#line 2815 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp8_ = _tmp7_->orientation;
#line 2815 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp9_ = self->backing_photo_row;
#line 2815 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp10_ = _tmp9_->original_orientation;
#line 2815 "/home/jens/Source/shotwell/src/Photo.vala"
if (_tmp8_ != _tmp10_) {
#line 21655 "Photo.c"
PhotoTable* _tmp11_ = NULL;
PhotoTable* _tmp12_ = NULL;
PhotoRow* _tmp13_ = NULL;
PhotoID _tmp14_ = {0};
BackingPhotoRow* _tmp15_ = NULL;
Orientation _tmp16_ = 0;
PhotoRow* _tmp17_ = NULL;
BackingPhotoRow* _tmp18_ = NULL;
Orientation _tmp19_ = 0;
#line 2816 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp11_ = photo_table_get_instance ();
#line 2816 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp12_ = _tmp11_;
#line 2816 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp13_ = self->row;
#line 2816 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp14_ = _tmp13_->photo_id;
#line 2816 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp15_ = self->backing_photo_row;
#line 2816 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp16_ = _tmp15_->original_orientation;
#line 2816 "/home/jens/Source/shotwell/src/Photo.vala"
photo_table_set_orientation (_tmp12_, &_tmp14_, _tmp16_);
#line 2816 "/home/jens/Source/shotwell/src/Photo.vala"
_database_table_unref0 (_tmp12_);
#line 2818 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp17_ = self->row;
#line 2818 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp18_ = self->backing_photo_row;
#line 2818 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp19_ = _tmp18_->original_orientation;
#line 2818 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp17_->orientation = _tmp19_;
#line 2819 "/home/jens/Source/shotwell/src/Photo.vala"
is_altered = TRUE;
#line 21691 "Photo.c"
}
}
__finally370:
{
PhotoRow* _tmp20_ = NULL;
#line 2808 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp20_ = self->row;
#line 2808 "/home/jens/Source/shotwell/src/Photo.vala"
g_rec_mutex_unlock (&self->priv->__lock_row);
#line 21701 "Photo.c"
}
#line 2808 "/home/jens/Source/shotwell/src/Photo.vala"
if (G_UNLIKELY (_inner_error_ != NULL)) {
#line 2808 "/home/jens/Source/shotwell/src/Photo.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 2808 "/home/jens/Source/shotwell/src/Photo.vala"
g_clear_error (&_inner_error_);
#line 2808 "/home/jens/Source/shotwell/src/Photo.vala"
return;
#line 21711 "Photo.c"
}
}
#line 2823 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp22_ = is_altered;
#line 2823 "/home/jens/Source/shotwell/src/Photo.vala"
if (_tmp22_) {
#line 21718 "Photo.c"
gboolean _tmp23_ = FALSE;
#line 2823 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp23_ = notify;
#line 2823 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp21_ = _tmp23_;
#line 21724 "Photo.c"
} else {
#line 2823 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp21_ = FALSE;
#line 21728 "Photo.c"
}
#line 2823 "/home/jens/Source/shotwell/src/Photo.vala"
if (_tmp21_) {
#line 21732 "Photo.c"
Alteration* _tmp24_ = NULL;
Alteration* _tmp25_ = NULL;
#line 2824 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp24_ = alteration_new ("image", "revert");
#line 2824 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp25_ = _tmp24_;
#line 2824 "/home/jens/Source/shotwell/src/Photo.vala"
data_object_notify_altered (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_DATA_OBJECT, DataObject), _tmp25_);
#line 2824 "/home/jens/Source/shotwell/src/Photo.vala"
_alteration_unref0 (_tmp25_);
#line 21743 "Photo.c"
}
}
Orientation photo_get_original_orientation (Photo* self) {
Orientation result = 0;
GError * _inner_error_ = NULL;
#line 2827 "/home/jens/Source/shotwell/src/Photo.vala"
g_return_val_if_fail (IS_PHOTO (self), 0);
#line 21753 "Photo.c"
{
PhotoRow* _tmp0_ = NULL;
#line 2828 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp0_ = self->row;
#line 2828 "/home/jens/Source/shotwell/src/Photo.vala"
g_rec_mutex_lock (&self->priv->__lock_row);
#line 21760 "Photo.c"
{
BackingPhotoRow* _tmp1_ = NULL;
Orientation _tmp2_ = 0;
#line 2829 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp1_ = self->backing_photo_row;
#line 2829 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp2_ = _tmp1_->original_orientation;
#line 2829 "/home/jens/Source/shotwell/src/Photo.vala"
result = _tmp2_;
#line 21770 "Photo.c"
{
PhotoRow* _tmp3_ = NULL;
#line 2828 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp3_ = self->row;
#line 2828 "/home/jens/Source/shotwell/src/Photo.vala"
g_rec_mutex_unlock (&self->priv->__lock_row);
#line 21777 "Photo.c"
}
#line 2829 "/home/jens/Source/shotwell/src/Photo.vala"
return result;
#line 21781 "Photo.c"
}
__finally371:
{
PhotoRow* _tmp4_ = NULL;
#line 2828 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp4_ = self->row;
#line 2828 "/home/jens/Source/shotwell/src/Photo.vala"
g_rec_mutex_unlock (&self->priv->__lock_row);
#line 21790 "Photo.c"
}
#line 2828 "/home/jens/Source/shotwell/src/Photo.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 2828 "/home/jens/Source/shotwell/src/Photo.vala"
g_clear_error (&_inner_error_);
#line 2828 "/home/jens/Source/shotwell/src/Photo.vala"
return 0;
#line 21798 "Photo.c"
}
}
Orientation photo_get_orientation (Photo* self) {
Orientation result = 0;
GError * _inner_error_ = NULL;
#line 2833 "/home/jens/Source/shotwell/src/Photo.vala"
g_return_val_if_fail (IS_PHOTO (self), 0);
#line 21808 "Photo.c"
{
PhotoRow* _tmp0_ = NULL;
#line 2834 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp0_ = self->row;
#line 2834 "/home/jens/Source/shotwell/src/Photo.vala"
g_rec_mutex_lock (&self->priv->__lock_row);
#line 21815 "Photo.c"
{
PhotoRow* _tmp1_ = NULL;
Orientation _tmp2_ = 0;
#line 2835 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp1_ = self->row;
#line 2835 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp2_ = _tmp1_->orientation;
#line 2835 "/home/jens/Source/shotwell/src/Photo.vala"
result = _tmp2_;
#line 21825 "Photo.c"
{
PhotoRow* _tmp3_ = NULL;
#line 2834 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp3_ = self->row;
#line 2834 "/home/jens/Source/shotwell/src/Photo.vala"
g_rec_mutex_unlock (&self->priv->__lock_row);
#line 21832 "Photo.c"
}
#line 2835 "/home/jens/Source/shotwell/src/Photo.vala"
return result;
#line 21836 "Photo.c"
}
__finally372:
{
PhotoRow* _tmp4_ = NULL;
#line 2834 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp4_ = self->row;
#line 2834 "/home/jens/Source/shotwell/src/Photo.vala"
g_rec_mutex_unlock (&self->priv->__lock_row);
#line 21845 "Photo.c"
}
#line 2834 "/home/jens/Source/shotwell/src/Photo.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 2834 "/home/jens/Source/shotwell/src/Photo.vala"
g_clear_error (&_inner_error_);
#line 2834 "/home/jens/Source/shotwell/src/Photo.vala"
return 0;
#line 21853 "Photo.c"
}
}
gboolean photo_set_orientation (Photo* self, Orientation orientation) {
gboolean result = FALSE;
gboolean committed = FALSE;
gboolean _tmp14_ = FALSE;
GError * _inner_error_ = NULL;
#line 2839 "/home/jens/Source/shotwell/src/Photo.vala"
g_return_val_if_fail (IS_PHOTO (self), FALSE);
#line 2840 "/home/jens/Source/shotwell/src/Photo.vala"
committed = FALSE;
#line 21867 "Photo.c"
{
PhotoRow* _tmp0_ = NULL;
#line 2841 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp0_ = self->row;
#line 2841 "/home/jens/Source/shotwell/src/Photo.vala"
g_rec_mutex_lock (&self->priv->__lock_row);
#line 21874 "Photo.c"
{
PhotoRow* _tmp1_ = NULL;
Orientation _tmp2_ = 0;
Orientation _tmp3_ = 0;
#line 2842 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp1_ = self->row;
#line 2842 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp2_ = _tmp1_->orientation;
#line 2842 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp3_ = orientation;
#line 2842 "/home/jens/Source/shotwell/src/Photo.vala"
if (_tmp2_ != _tmp3_) {
#line 21887 "Photo.c"
PhotoTable* _tmp4_ = NULL;
PhotoTable* _tmp5_ = NULL;
PhotoRow* _tmp6_ = NULL;
PhotoID _tmp7_ = {0};
Orientation _tmp8_ = 0;
gboolean _tmp9_ = FALSE;
gboolean _tmp10_ = FALSE;
#line 2843 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp4_ = photo_table_get_instance ();
#line 2843 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp5_ = _tmp4_;
#line 2843 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp6_ = self->row;
#line 2843 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp7_ = _tmp6_->photo_id;
#line 2843 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp8_ = orientation;
#line 2843 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp9_ = photo_table_set_orientation (_tmp5_, &_tmp7_, _tmp8_);
#line 2843 "/home/jens/Source/shotwell/src/Photo.vala"
committed = _tmp9_;
#line 2843 "/home/jens/Source/shotwell/src/Photo.vala"
_database_table_unref0 (_tmp5_);
#line 2844 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp10_ = committed;
#line 2844 "/home/jens/Source/shotwell/src/Photo.vala"
if (_tmp10_) {
#line 21915 "Photo.c"
PhotoRow* _tmp11_ = NULL;
Orientation _tmp12_ = 0;
#line 2845 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp11_ = self->row;
#line 2845 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp12_ = orientation;
#line 2845 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp11_->orientation = _tmp12_;
#line 21924 "Photo.c"
}
}
}
__finally373:
{
PhotoRow* _tmp13_ = NULL;
#line 2841 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp13_ = self->row;
#line 2841 "/home/jens/Source/shotwell/src/Photo.vala"
g_rec_mutex_unlock (&self->priv->__lock_row);
#line 21935 "Photo.c"
}
#line 2841 "/home/jens/Source/shotwell/src/Photo.vala"
if (G_UNLIKELY (_inner_error_ != NULL)) {
#line 2841 "/home/jens/Source/shotwell/src/Photo.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 2841 "/home/jens/Source/shotwell/src/Photo.vala"
g_clear_error (&_inner_error_);
#line 2841 "/home/jens/Source/shotwell/src/Photo.vala"
return FALSE;
#line 21945 "Photo.c"
}
}
#line 2849 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp14_ = committed;
#line 2849 "/home/jens/Source/shotwell/src/Photo.vala"
if (_tmp14_) {
#line 21952 "Photo.c"
Alteration* _tmp15_ = NULL;
Alteration* _tmp16_ = NULL;
#line 2850 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp15_ = alteration_new ("image", "orientation");
#line 2850 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp16_ = _tmp15_;
#line 2850 "/home/jens/Source/shotwell/src/Photo.vala"
data_object_notify_altered (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_DATA_OBJECT, DataObject), _tmp16_);
#line 2850 "/home/jens/Source/shotwell/src/Photo.vala"
_alteration_unref0 (_tmp16_);
#line 21963 "Photo.c"
}
#line 2852 "/home/jens/Source/shotwell/src/Photo.vala"
result = committed;
#line 2852 "/home/jens/Source/shotwell/src/Photo.vala"
return result;
#line 21969 "Photo.c"
}
gboolean photo_check_can_rotate (Photo* self) {
gboolean result = FALSE;
gboolean _tmp0_ = FALSE;
#line 2855 "/home/jens/Source/shotwell/src/Photo.vala"
g_return_val_if_fail (IS_PHOTO (self), FALSE);
#line 2856 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp0_ = self->can_rotate_now;
#line 2856 "/home/jens/Source/shotwell/src/Photo.vala"
result = _tmp0_;
#line 2856 "/home/jens/Source/shotwell/src/Photo.vala"
return result;
#line 21984 "Photo.c"
}
static void photo_real_rotate (Photo* self, Rotation rotation) {
GError * _inner_error_ = NULL;
{
PhotoRow* _tmp0_ = NULL;
#line 2860 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp0_ = self->row;
#line 2860 "/home/jens/Source/shotwell/src/Photo.vala"
g_rec_mutex_lock (&self->priv->__lock_row);
#line 21996 "Photo.c"
{
Orientation _tmp1_ = 0;
Rotation _tmp2_ = 0;
Orientation _tmp3_ = 0;
#line 2861 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp1_ = photo_get_orientation (self);
#line 2861 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp2_ = rotation;
#line 2861 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp3_ = orientation_perform (_tmp1_, _tmp2_);
#line 2861 "/home/jens/Source/shotwell/src/Photo.vala"
photo_set_orientation (self, _tmp3_);
#line 22009 "Photo.c"
}
__finally374:
{
PhotoRow* _tmp4_ = NULL;
#line 2860 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp4_ = self->row;
#line 2860 "/home/jens/Source/shotwell/src/Photo.vala"
g_rec_mutex_unlock (&self->priv->__lock_row);
#line 22018 "Photo.c"
}
#line 2860 "/home/jens/Source/shotwell/src/Photo.vala"
if (G_UNLIKELY (_inner_error_ != NULL)) {
#line 2860 "/home/jens/Source/shotwell/src/Photo.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 2860 "/home/jens/Source/shotwell/src/Photo.vala"
g_clear_error (&_inner_error_);
#line 2860 "/home/jens/Source/shotwell/src/Photo.vala"
return;
#line 22028 "Photo.c"
}
}
}
void photo_rotate (Photo* self, Rotation rotation) {
#line 2859 "/home/jens/Source/shotwell/src/Photo.vala"
g_return_if_fail (IS_PHOTO (self));
#line 2859 "/home/jens/Source/shotwell/src/Photo.vala"
PHOTO_GET_CLASS (self)->rotate (self, rotation);
#line 22039 "Photo.c"
}
static gboolean photo_has_transformation (Photo* self, const gchar* name) {
gboolean result = FALSE;
GError * _inner_error_ = NULL;
#line 2865 "/home/jens/Source/shotwell/src/Photo.vala"
g_return_val_if_fail (IS_PHOTO (self), FALSE);
#line 2865 "/home/jens/Source/shotwell/src/Photo.vala"
g_return_val_if_fail (name != NULL, FALSE);
#line 22050 "Photo.c"
{
PhotoRow* _tmp0_ = NULL;
#line 2866 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp0_ = self->row;
#line 2866 "/home/jens/Source/shotwell/src/Photo.vala"
g_rec_mutex_lock (&self->priv->__lock_row);
#line 22057 "Photo.c"
{
gboolean _tmp1_ = FALSE;
PhotoRow* _tmp2_ = NULL;
GeeHashMap* _tmp3_ = NULL;
#line 2867 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp2_ = self->row;
#line 2867 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp3_ = _tmp2_->transformations;
#line 2867 "/home/jens/Source/shotwell/src/Photo.vala"
if (_tmp3_ != NULL) {
#line 22068 "Photo.c"
PhotoRow* _tmp4_ = NULL;
GeeHashMap* _tmp5_ = NULL;
const gchar* _tmp6_ = NULL;
gboolean _tmp7_ = FALSE;
#line 2867 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp4_ = self->row;
#line 2867 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp5_ = _tmp4_->transformations;
#line 2867 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp6_ = name;
#line 2867 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp7_ = gee_abstract_map_has_key (G_TYPE_CHECK_INSTANCE_CAST (_tmp5_, GEE_TYPE_ABSTRACT_MAP, GeeAbstractMap), _tmp6_);
#line 2867 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp1_ = _tmp7_;
#line 22083 "Photo.c"
} else {
#line 2867 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp1_ = FALSE;
#line 22087 "Photo.c"
}
#line 2867 "/home/jens/Source/shotwell/src/Photo.vala"
result = _tmp1_;
#line 22091 "Photo.c"
{
PhotoRow* _tmp8_ = NULL;
#line 2866 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp8_ = self->row;
#line 2866 "/home/jens/Source/shotwell/src/Photo.vala"
g_rec_mutex_unlock (&self->priv->__lock_row);
#line 22098 "Photo.c"
}
#line 2867 "/home/jens/Source/shotwell/src/Photo.vala"
return result;
#line 22102 "Photo.c"
}
__finally375:
{
PhotoRow* _tmp9_ = NULL;
#line 2866 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp9_ = self->row;
#line 2866 "/home/jens/Source/shotwell/src/Photo.vala"
g_rec_mutex_unlock (&self->priv->__lock_row);
#line 22111 "Photo.c"
}
#line 2866 "/home/jens/Source/shotwell/src/Photo.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 2866 "/home/jens/Source/shotwell/src/Photo.vala"
g_clear_error (&_inner_error_);
#line 2866 "/home/jens/Source/shotwell/src/Photo.vala"
return FALSE;
#line 22119 "Photo.c"
}
}
static KeyValueMap* photo_get_transformation (Photo* self, const gchar* name) {
KeyValueMap* result = NULL;
KeyValueMap* map = NULL;
GError * _inner_error_ = NULL;
#line 2874 "/home/jens/Source/shotwell/src/Photo.vala"
g_return_val_if_fail (IS_PHOTO (self), NULL);
#line 2874 "/home/jens/Source/shotwell/src/Photo.vala"
g_return_val_if_fail (name != NULL, NULL);
#line 2875 "/home/jens/Source/shotwell/src/Photo.vala"
map = NULL;
#line 22134 "Photo.c"
{
PhotoRow* _tmp0_ = NULL;
#line 2876 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp0_ = self->row;
#line 2876 "/home/jens/Source/shotwell/src/Photo.vala"
g_rec_mutex_lock (&self->priv->__lock_row);
#line 22141 "Photo.c"
{
PhotoRow* _tmp1_ = NULL;
GeeHashMap* _tmp2_ = NULL;
#line 2877 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp1_ = self->row;
#line 2877 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp2_ = _tmp1_->transformations;
#line 2877 "/home/jens/Source/shotwell/src/Photo.vala"
if (_tmp2_ != NULL) {
#line 22151 "Photo.c"
PhotoRow* _tmp3_ = NULL;
GeeHashMap* _tmp4_ = NULL;
const gchar* _tmp5_ = NULL;
gpointer _tmp6_ = NULL;
KeyValueMap* _tmp7_ = NULL;
#line 2878 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp3_ = self->row;
#line 2878 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp4_ = _tmp3_->transformations;
#line 2878 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp5_ = name;
#line 2878 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp6_ = gee_abstract_map_get (G_TYPE_CHECK_INSTANCE_CAST (_tmp4_, GEE_TYPE_ABSTRACT_MAP, GeeAbstractMap), _tmp5_);
#line 2878 "/home/jens/Source/shotwell/src/Photo.vala"
_key_value_map_unref0 (map);
#line 2878 "/home/jens/Source/shotwell/src/Photo.vala"
map = (KeyValueMap*) _tmp6_;
#line 2879 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp7_ = map;
#line 2879 "/home/jens/Source/shotwell/src/Photo.vala"
if (_tmp7_ != NULL) {
#line 22173 "Photo.c"
KeyValueMap* _tmp8_ = NULL;
KeyValueMap* _tmp9_ = NULL;
#line 2880 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp8_ = map;
#line 2880 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp9_ = key_value_map_copy (_tmp8_);
#line 2880 "/home/jens/Source/shotwell/src/Photo.vala"
_key_value_map_unref0 (map);
#line 2880 "/home/jens/Source/shotwell/src/Photo.vala"
map = _tmp9_;
#line 22184 "Photo.c"
}
}
}
__finally376:
{
PhotoRow* _tmp10_ = NULL;
#line 2876 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp10_ = self->row;
#line 2876 "/home/jens/Source/shotwell/src/Photo.vala"
g_rec_mutex_unlock (&self->priv->__lock_row);
#line 22195 "Photo.c"
}
#line 2876 "/home/jens/Source/shotwell/src/Photo.vala"
if (G_UNLIKELY (_inner_error_ != NULL)) {
#line 2876 "/home/jens/Source/shotwell/src/Photo.vala"
_key_value_map_unref0 (map);
#line 2876 "/home/jens/Source/shotwell/src/Photo.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 2876 "/home/jens/Source/shotwell/src/Photo.vala"
g_clear_error (&_inner_error_);
#line 2876 "/home/jens/Source/shotwell/src/Photo.vala"
return NULL;
#line 22207 "Photo.c"
}
}
#line 2884 "/home/jens/Source/shotwell/src/Photo.vala"
result = map;
#line 2884 "/home/jens/Source/shotwell/src/Photo.vala"
return result;
#line 22214 "Photo.c"
}
static gboolean photo_set_transformation (Photo* self, KeyValueMap* trans) {
gboolean result = FALSE;
GError * _inner_error_ = NULL;
#line 2887 "/home/jens/Source/shotwell/src/Photo.vala"
g_return_val_if_fail (IS_PHOTO (self), FALSE);
#line 2887 "/home/jens/Source/shotwell/src/Photo.vala"
g_return_val_if_fail (IS_KEY_VALUE_MAP (trans), FALSE);
#line 22225 "Photo.c"
{
PhotoRow* _tmp0_ = NULL;
#line 2888 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp0_ = self->row;
#line 2888 "/home/jens/Source/shotwell/src/Photo.vala"
g_rec_mutex_lock (&self->priv->__lock_row);
#line 22232 "Photo.c"
{
PhotoRow* _tmp1_ = NULL;
GeeHashMap* _tmp2_ = NULL;
PhotoRow* _tmp5_ = NULL;
GeeHashMap* _tmp6_ = NULL;
KeyValueMap* _tmp7_ = NULL;
gchar* _tmp8_ = NULL;
gchar* _tmp9_ = NULL;
KeyValueMap* _tmp10_ = NULL;
PhotoTable* _tmp11_ = NULL;
PhotoTable* _tmp12_ = NULL;
PhotoRow* _tmp13_ = NULL;
PhotoID _tmp14_ = {0};
KeyValueMap* _tmp15_ = NULL;
gboolean _tmp16_ = FALSE;
gboolean _tmp17_ = FALSE;
#line 2889 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp1_ = self->row;
#line 2889 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp2_ = _tmp1_->transformations;
#line 2889 "/home/jens/Source/shotwell/src/Photo.vala"
if (_tmp2_ == NULL) {
#line 22255 "Photo.c"
PhotoRow* _tmp3_ = NULL;
GeeHashMap* _tmp4_ = NULL;
#line 2890 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp3_ = self->row;
#line 2890 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp4_ = gee_hash_map_new (G_TYPE_STRING, (GBoxedCopyFunc) g_strdup, g_free, TYPE_KEY_VALUE_MAP, (GBoxedCopyFunc) key_value_map_ref, key_value_map_unref, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL);
#line 2890 "/home/jens/Source/shotwell/src/Photo.vala"
_g_object_unref0 (_tmp3_->transformations);
#line 2890 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp3_->transformations = _tmp4_;
#line 22266 "Photo.c"
}
#line 2892 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp5_ = self->row;
#line 2892 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp6_ = _tmp5_->transformations;
#line 2892 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp7_ = trans;
#line 2892 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp8_ = key_value_map_get_group (_tmp7_);
#line 2892 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp9_ = _tmp8_;
#line 2892 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp10_ = trans;
#line 2892 "/home/jens/Source/shotwell/src/Photo.vala"
gee_abstract_map_set (G_TYPE_CHECK_INSTANCE_CAST (_tmp6_, GEE_TYPE_ABSTRACT_MAP, GeeAbstractMap), _tmp9_, _tmp10_);
#line 2892 "/home/jens/Source/shotwell/src/Photo.vala"
_g_free0 (_tmp9_);
#line 2894 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp11_ = photo_table_get_instance ();
#line 2894 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp12_ = _tmp11_;
#line 2894 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp13_ = self->row;
#line 2894 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp14_ = _tmp13_->photo_id;
#line 2894 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp15_ = trans;
#line 2894 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp16_ = photo_table_set_transformation (_tmp12_, &_tmp14_, _tmp15_);
#line 2894 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp17_ = _tmp16_;
#line 2894 "/home/jens/Source/shotwell/src/Photo.vala"
_database_table_unref0 (_tmp12_);
#line 2894 "/home/jens/Source/shotwell/src/Photo.vala"
result = _tmp17_;
#line 22302 "Photo.c"
{
PhotoRow* _tmp18_ = NULL;
#line 2888 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp18_ = self->row;
#line 2888 "/home/jens/Source/shotwell/src/Photo.vala"
g_rec_mutex_unlock (&self->priv->__lock_row);
#line 22309 "Photo.c"
}
#line 2894 "/home/jens/Source/shotwell/src/Photo.vala"
return result;
#line 22313 "Photo.c"
}
__finally377:
{
PhotoRow* _tmp19_ = NULL;
#line 2888 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp19_ = self->row;
#line 2888 "/home/jens/Source/shotwell/src/Photo.vala"
g_rec_mutex_unlock (&self->priv->__lock_row);
#line 22322 "Photo.c"
}
#line 2888 "/home/jens/Source/shotwell/src/Photo.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 2888 "/home/jens/Source/shotwell/src/Photo.vala"
g_clear_error (&_inner_error_);
#line 2888 "/home/jens/Source/shotwell/src/Photo.vala"
return FALSE;
#line 22330 "Photo.c"
}
}
static gboolean photo_remove_transformation (Photo* self, const gchar* name) {
gboolean result = FALSE;
gboolean altered_cache = FALSE;
gboolean altered_persistent = FALSE;
gboolean _tmp19_ = FALSE;
gboolean _tmp20_ = FALSE;
GError * _inner_error_ = NULL;
#line 2898 "/home/jens/Source/shotwell/src/Photo.vala"
g_return_val_if_fail (IS_PHOTO (self), FALSE);
#line 2898 "/home/jens/Source/shotwell/src/Photo.vala"
g_return_val_if_fail (name != NULL, FALSE);
#line 22346 "Photo.c"
{
PhotoRow* _tmp0_ = NULL;
#line 2900 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp0_ = self->row;
#line 2900 "/home/jens/Source/shotwell/src/Photo.vala"
g_rec_mutex_lock (&self->priv->__lock_row);
#line 22353 "Photo.c"
{
PhotoRow* _tmp1_ = NULL;
GeeHashMap* _tmp2_ = NULL;
PhotoTable* _tmp12_ = NULL;
PhotoTable* _tmp13_ = NULL;
PhotoRow* _tmp14_ = NULL;
PhotoID _tmp15_ = {0};
const gchar* _tmp16_ = NULL;
gboolean _tmp17_ = FALSE;
#line 2901 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp1_ = self->row;
#line 2901 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp2_ = _tmp1_->transformations;
#line 2901 "/home/jens/Source/shotwell/src/Photo.vala"
if (_tmp2_ != NULL) {
#line 22369 "Photo.c"
PhotoRow* _tmp3_ = NULL;
GeeHashMap* _tmp4_ = NULL;
const gchar* _tmp5_ = NULL;
gboolean _tmp6_ = FALSE;
PhotoRow* _tmp7_ = NULL;
GeeHashMap* _tmp8_ = NULL;
gint _tmp9_ = 0;
gint _tmp10_ = 0;
#line 2902 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp3_ = self->row;
#line 2902 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp4_ = _tmp3_->transformations;
#line 2902 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp5_ = name;
#line 2902 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp6_ = gee_abstract_map_unset (G_TYPE_CHECK_INSTANCE_CAST (_tmp4_, GEE_TYPE_ABSTRACT_MAP, GeeAbstractMap), _tmp5_, NULL);
#line 2902 "/home/jens/Source/shotwell/src/Photo.vala"
altered_cache = _tmp6_;
#line 2903 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp7_ = self->row;
#line 2903 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp8_ = _tmp7_->transformations;
#line 2903 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp9_ = gee_abstract_map_get_size (G_TYPE_CHECK_INSTANCE_CAST (_tmp8_, GEE_TYPE_MAP, GeeMap));
#line 2903 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp10_ = _tmp9_;
#line 2903 "/home/jens/Source/shotwell/src/Photo.vala"
if (_tmp10_ == 0) {
#line 22398 "Photo.c"
PhotoRow* _tmp11_ = NULL;
#line 2904 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp11_ = self->row;
#line 2904 "/home/jens/Source/shotwell/src/Photo.vala"
_g_object_unref0 (_tmp11_->transformations);
#line 2904 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp11_->transformations = NULL;
#line 22406 "Photo.c"
}
} else {
#line 2906 "/home/jens/Source/shotwell/src/Photo.vala"
altered_cache = FALSE;
#line 22411 "Photo.c"
}
#line 2909 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp12_ = photo_table_get_instance ();
#line 2909 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp13_ = _tmp12_;
#line 2909 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp14_ = self->row;
#line 2909 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp15_ = _tmp14_->photo_id;
#line 2909 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp16_ = name;
#line 2909 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp17_ = photo_table_remove_transformation (_tmp13_, &_tmp15_, _tmp16_);
#line 2909 "/home/jens/Source/shotwell/src/Photo.vala"
altered_persistent = _tmp17_;
#line 2909 "/home/jens/Source/shotwell/src/Photo.vala"
_database_table_unref0 (_tmp13_);
#line 22429 "Photo.c"
}
__finally378:
{
PhotoRow* _tmp18_ = NULL;
#line 2900 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp18_ = self->row;
#line 2900 "/home/jens/Source/shotwell/src/Photo.vala"
g_rec_mutex_unlock (&self->priv->__lock_row);
#line 22438 "Photo.c"
}
#line 2900 "/home/jens/Source/shotwell/src/Photo.vala"
if (G_UNLIKELY (_inner_error_ != NULL)) {
#line 2900 "/home/jens/Source/shotwell/src/Photo.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 2900 "/home/jens/Source/shotwell/src/Photo.vala"
g_clear_error (&_inner_error_);
#line 2900 "/home/jens/Source/shotwell/src/Photo.vala"
return FALSE;
#line 22448 "Photo.c"
}
}
#line 2913 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp20_ = altered_cache;
#line 2913 "/home/jens/Source/shotwell/src/Photo.vala"
if (_tmp20_) {
#line 2913 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp19_ = TRUE;
#line 22457 "Photo.c"
} else {
#line 2913 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp19_ = altered_persistent;
#line 22461 "Photo.c"
}
#line 2913 "/home/jens/Source/shotwell/src/Photo.vala"
result = _tmp19_;
#line 2913 "/home/jens/Source/shotwell/src/Photo.vala"
return result;
#line 22467 "Photo.c"
}
gboolean photo_has_crop (Photo* self) {
gboolean result = FALSE;
gboolean _tmp0_ = FALSE;
#line 2916 "/home/jens/Source/shotwell/src/Photo.vala"
g_return_val_if_fail (IS_PHOTO (self), FALSE);
#line 2917 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp0_ = photo_has_transformation (self, "crop");
#line 2917 "/home/jens/Source/shotwell/src/Photo.vala"
result = _tmp0_;
#line 2917 "/home/jens/Source/shotwell/src/Photo.vala"
return result;
#line 22482 "Photo.c"
}
gboolean photo_get_raw_crop (Photo* self, Box* crop) {
Box _vala_crop = {0};
gboolean result = FALSE;
KeyValueMap* map = NULL;
KeyValueMap* _tmp0_ = NULL;
KeyValueMap* _tmp1_ = NULL;
gint left = 0;
KeyValueMap* _tmp2_ = NULL;
gint _tmp3_ = 0;
gint top = 0;
KeyValueMap* _tmp4_ = NULL;
gint _tmp5_ = 0;
gint right = 0;
KeyValueMap* _tmp6_ = NULL;
gint _tmp7_ = 0;
gint bottom = 0;
KeyValueMap* _tmp8_ = NULL;
gint _tmp9_ = 0;
gboolean _tmp10_ = FALSE;
gboolean _tmp11_ = FALSE;
gboolean _tmp12_ = FALSE;
gint _tmp13_ = 0;
gint _tmp17_ = 0;
gint _tmp18_ = 0;
gint _tmp19_ = 0;
gint _tmp20_ = 0;
#line 2921 "/home/jens/Source/shotwell/src/Photo.vala"
g_return_val_if_fail (IS_PHOTO (self), FALSE);
#line 2922 "/home/jens/Source/shotwell/src/Photo.vala"
box_init (&_vala_crop, 0, 0, 0, 0);
#line 2924 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp0_ = photo_get_transformation (self, "crop");
#line 2924 "/home/jens/Source/shotwell/src/Photo.vala"
map = _tmp0_;
#line 2925 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp1_ = map;
#line 2925 "/home/jens/Source/shotwell/src/Photo.vala"
if (_tmp1_ == NULL) {
#line 2926 "/home/jens/Source/shotwell/src/Photo.vala"
result = FALSE;
#line 2926 "/home/jens/Source/shotwell/src/Photo.vala"
_key_value_map_unref0 (map);
#line 2926 "/home/jens/Source/shotwell/src/Photo.vala"
if (crop) {
#line 2926 "/home/jens/Source/shotwell/src/Photo.vala"
*crop = _vala_crop;
#line 22532 "Photo.c"
}
#line 2926 "/home/jens/Source/shotwell/src/Photo.vala"
return result;
#line 22536 "Photo.c"
}
#line 2928 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp2_ = map;
#line 2928 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp3_ = key_value_map_get_int (_tmp2_, "left", -1);
#line 2928 "/home/jens/Source/shotwell/src/Photo.vala"
left = _tmp3_;
#line 2929 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp4_ = map;
#line 2929 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp5_ = key_value_map_get_int (_tmp4_, "top", -1);
#line 2929 "/home/jens/Source/shotwell/src/Photo.vala"
top = _tmp5_;
#line 2930 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp6_ = map;
#line 2930 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp7_ = key_value_map_get_int (_tmp6_, "right", -1);
#line 2930 "/home/jens/Source/shotwell/src/Photo.vala"
right = _tmp7_;
#line 2931 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp8_ = map;
#line 2931 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp9_ = key_value_map_get_int (_tmp8_, "bottom", -1);
#line 2931 "/home/jens/Source/shotwell/src/Photo.vala"
bottom = _tmp9_;
#line 2933 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp13_ = left;
#line 2933 "/home/jens/Source/shotwell/src/Photo.vala"
if (_tmp13_ == -1) {
#line 2933 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp12_ = TRUE;
#line 22568 "Photo.c"
} else {
gint _tmp14_ = 0;
#line 2933 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp14_ = top;
#line 2933 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp12_ = _tmp14_ == -1;
#line 22575 "Photo.c"
}
#line 2933 "/home/jens/Source/shotwell/src/Photo.vala"
if (_tmp12_) {
#line 2933 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp11_ = TRUE;
#line 22581 "Photo.c"
} else {
gint _tmp15_ = 0;
#line 2933 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp15_ = right;
#line 2933 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp11_ = _tmp15_ == -1;
#line 22588 "Photo.c"
}
#line 2933 "/home/jens/Source/shotwell/src/Photo.vala"
if (_tmp11_) {
#line 2933 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp10_ = TRUE;
#line 22594 "Photo.c"
} else {
gint _tmp16_ = 0;
#line 2933 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp16_ = bottom;
#line 2933 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp10_ = _tmp16_ == -1;
#line 22601 "Photo.c"
}
#line 2933 "/home/jens/Source/shotwell/src/Photo.vala"
if (_tmp10_) {
#line 2934 "/home/jens/Source/shotwell/src/Photo.vala"
result = FALSE;
#line 2934 "/home/jens/Source/shotwell/src/Photo.vala"
_key_value_map_unref0 (map);
#line 2934 "/home/jens/Source/shotwell/src/Photo.vala"
if (crop) {
#line 2934 "/home/jens/Source/shotwell/src/Photo.vala"
*crop = _vala_crop;
#line 22613 "Photo.c"
}
#line 2934 "/home/jens/Source/shotwell/src/Photo.vala"
return result;
#line 22617 "Photo.c"
}
#line 2936 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp17_ = left;
#line 2936 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp18_ = top;
#line 2936 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp19_ = right;
#line 2936 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp20_ = bottom;
#line 2936 "/home/jens/Source/shotwell/src/Photo.vala"
box_init (&_vala_crop, _tmp17_, _tmp18_, _tmp19_, _tmp20_);
#line 2938 "/home/jens/Source/shotwell/src/Photo.vala"
result = TRUE;
#line 2938 "/home/jens/Source/shotwell/src/Photo.vala"
_key_value_map_unref0 (map);
#line 2938 "/home/jens/Source/shotwell/src/Photo.vala"
if (crop) {
#line 2938 "/home/jens/Source/shotwell/src/Photo.vala"
*crop = _vala_crop;
#line 22637 "Photo.c"
}
#line 2938 "/home/jens/Source/shotwell/src/Photo.vala"
return result;
#line 22641 "Photo.c"
}
static void photo_set_raw_crop (Photo* self, Box* crop) {
KeyValueMap* map = NULL;
KeyValueMap* _tmp0_ = NULL;
KeyValueMap* _tmp1_ = NULL;
Box _tmp2_ = {0};
gint _tmp3_ = 0;
KeyValueMap* _tmp4_ = NULL;
Box _tmp5_ = {0};
gint _tmp6_ = 0;
KeyValueMap* _tmp7_ = NULL;
Box _tmp8_ = {0};
gint _tmp9_ = 0;
KeyValueMap* _tmp10_ = NULL;
Box _tmp11_ = {0};
gint _tmp12_ = 0;
KeyValueMap* _tmp13_ = NULL;
gboolean _tmp14_ = FALSE;
#line 2942 "/home/jens/Source/shotwell/src/Photo.vala"
g_return_if_fail (IS_PHOTO (self));
#line 2942 "/home/jens/Source/shotwell/src/Photo.vala"
g_return_if_fail (crop != NULL);
#line 2943 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp0_ = key_value_map_new ("crop");
#line 2943 "/home/jens/Source/shotwell/src/Photo.vala"
map = _tmp0_;
#line 2944 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp1_ = map;
#line 2944 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp2_ = *crop;
#line 2944 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp3_ = _tmp2_.left;
#line 2944 "/home/jens/Source/shotwell/src/Photo.vala"
key_value_map_set_int (_tmp1_, "left", _tmp3_);
#line 2945 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp4_ = map;
#line 2945 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp5_ = *crop;
#line 2945 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp6_ = _tmp5_.top;
#line 2945 "/home/jens/Source/shotwell/src/Photo.vala"
key_value_map_set_int (_tmp4_, "top", _tmp6_);
#line 2946 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp7_ = map;
#line 2946 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp8_ = *crop;
#line 2946 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp9_ = _tmp8_.right;
#line 2946 "/home/jens/Source/shotwell/src/Photo.vala"
key_value_map_set_int (_tmp7_, "right", _tmp9_);
#line 2947 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp10_ = map;
#line 2947 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp11_ = *crop;
#line 2947 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp12_ = _tmp11_.bottom;
#line 2947 "/home/jens/Source/shotwell/src/Photo.vala"
key_value_map_set_int (_tmp10_, "bottom", _tmp12_);
#line 2949 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp13_ = map;
#line 2949 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp14_ = photo_set_transformation (self, _tmp13_);
#line 2949 "/home/jens/Source/shotwell/src/Photo.vala"
if (_tmp14_) {
#line 22708 "Photo.c"
Alteration* _tmp15_ = NULL;
Alteration* _tmp16_ = NULL;
#line 2950 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp15_ = alteration_new ("image", "crop");
#line 2950 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp16_ = _tmp15_;
#line 2950 "/home/jens/Source/shotwell/src/Photo.vala"
data_object_notify_altered (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_DATA_OBJECT, DataObject), _tmp16_);
#line 2950 "/home/jens/Source/shotwell/src/Photo.vala"
_alteration_unref0 (_tmp16_);
#line 22719 "Photo.c"
}
#line 2942 "/home/jens/Source/shotwell/src/Photo.vala"
_key_value_map_unref0 (map);
#line 22723 "Photo.c"
}
static gboolean photo_get_raw_straighten (Photo* self, gdouble* angle) {
gdouble _vala_angle = 0.0;
gboolean result = FALSE;
KeyValueMap* map = NULL;
KeyValueMap* _tmp0_ = NULL;
KeyValueMap* _tmp1_ = NULL;
KeyValueMap* _tmp2_ = NULL;
gdouble _tmp3_ = 0.0;
#line 2953 "/home/jens/Source/shotwell/src/Photo.vala"
g_return_val_if_fail (IS_PHOTO (self), FALSE);
#line 2954 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp0_ = photo_get_transformation (self, "straighten");
#line 2954 "/home/jens/Source/shotwell/src/Photo.vala"
map = _tmp0_;
#line 2955 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp1_ = map;
#line 2955 "/home/jens/Source/shotwell/src/Photo.vala"
if (_tmp1_ == NULL) {
#line 2956 "/home/jens/Source/shotwell/src/Photo.vala"
_vala_angle = 0.0;
#line 2958 "/home/jens/Source/shotwell/src/Photo.vala"
result = FALSE;
#line 2958 "/home/jens/Source/shotwell/src/Photo.vala"
_key_value_map_unref0 (map);
#line 2958 "/home/jens/Source/shotwell/src/Photo.vala"
if (angle) {
#line 2958 "/home/jens/Source/shotwell/src/Photo.vala"
*angle = _vala_angle;
#line 22755 "Photo.c"
}
#line 2958 "/home/jens/Source/shotwell/src/Photo.vala"
return result;
#line 22759 "Photo.c"
}
#line 2961 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp2_ = map;
#line 2961 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp3_ = key_value_map_get_double (_tmp2_, "angle", 0.0);
#line 2961 "/home/jens/Source/shotwell/src/Photo.vala"
_vala_angle = _tmp3_;
#line 2963 "/home/jens/Source/shotwell/src/Photo.vala"
result = TRUE;
#line 2963 "/home/jens/Source/shotwell/src/Photo.vala"
_key_value_map_unref0 (map);
#line 2963 "/home/jens/Source/shotwell/src/Photo.vala"
if (angle) {
#line 2963 "/home/jens/Source/shotwell/src/Photo.vala"
*angle = _vala_angle;
#line 22775 "Photo.c"
}
#line 2963 "/home/jens/Source/shotwell/src/Photo.vala"
return result;
#line 22779 "Photo.c"
}
static void photo_set_raw_straighten (Photo* self, gdouble theta) {
KeyValueMap* map = NULL;
KeyValueMap* _tmp0_ = NULL;
KeyValueMap* _tmp1_ = NULL;
gdouble _tmp2_ = 0.0;
KeyValueMap* _tmp3_ = NULL;
gboolean _tmp4_ = FALSE;
#line 2966 "/home/jens/Source/shotwell/src/Photo.vala"
g_return_if_fail (IS_PHOTO (self));
#line 2967 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp0_ = key_value_map_new ("straighten");
#line 2967 "/home/jens/Source/shotwell/src/Photo.vala"
map = _tmp0_;
#line 2968 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp1_ = map;
#line 2968 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp2_ = theta;
#line 2968 "/home/jens/Source/shotwell/src/Photo.vala"
key_value_map_set_double (_tmp1_, "angle", _tmp2_);
#line 2970 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp3_ = map;
#line 2970 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp4_ = photo_set_transformation (self, _tmp3_);
#line 2970 "/home/jens/Source/shotwell/src/Photo.vala"
if (_tmp4_) {
#line 22808 "Photo.c"
Alteration* _tmp5_ = NULL;
Alteration* _tmp6_ = NULL;
#line 2971 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp5_ = alteration_new ("image", "straighten");
#line 2971 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp6_ = _tmp5_;
#line 2971 "/home/jens/Source/shotwell/src/Photo.vala"
data_object_notify_altered (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_DATA_OBJECT, DataObject), _tmp6_);
#line 2971 "/home/jens/Source/shotwell/src/Photo.vala"
_alteration_unref0 (_tmp6_);
#line 22819 "Photo.c"
}
#line 2966 "/home/jens/Source/shotwell/src/Photo.vala"
_key_value_map_unref0 (map);
#line 22823 "Photo.c"
}
static EditingToolsRedeyeInstance* photo_get_raw_redeye_instances (Photo* self, int* result_length1) {
EditingToolsRedeyeInstance* result = NULL;
KeyValueMap* map = NULL;
KeyValueMap* _tmp0_ = NULL;
KeyValueMap* _tmp1_ = NULL;
gint num_points = 0;
KeyValueMap* _tmp4_ = NULL;
gint _tmp5_ = 0;
gint _tmp6_ = 0;
EditingToolsRedeyeInstance* res = NULL;
gint _tmp7_ = 0;
EditingToolsRedeyeInstance* _tmp8_ = NULL;
gint res_length1 = 0;
gint _res_size_ = 0;
GdkPoint default_point = {0};
GdkPoint _tmp9_ = {0};
EditingToolsRedeyeInstance* _tmp47_ = NULL;
gint _tmp47__length1 = 0;
#line 2976 "/home/jens/Source/shotwell/src/Photo.vala"
g_return_val_if_fail (IS_PHOTO (self), NULL);
#line 2977 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp0_ = photo_get_transformation (self, "redeye");
#line 2977 "/home/jens/Source/shotwell/src/Photo.vala"
map = _tmp0_;
#line 2978 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp1_ = map;
#line 2978 "/home/jens/Source/shotwell/src/Photo.vala"
if (_tmp1_ == NULL) {
#line 22855 "Photo.c"
EditingToolsRedeyeInstance* _tmp2_ = NULL;
EditingToolsRedeyeInstance* _tmp3_ = NULL;
gint _tmp3__length1 = 0;
#line 2979 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp2_ = g_new0 (EditingToolsRedeyeInstance, 0);
#line 2979 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp3_ = _tmp2_;
#line 2979 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp3__length1 = 0;
#line 2979 "/home/jens/Source/shotwell/src/Photo.vala"
if (result_length1) {
#line 2979 "/home/jens/Source/shotwell/src/Photo.vala"
*result_length1 = _tmp3__length1;
#line 22869 "Photo.c"
}
#line 2979 "/home/jens/Source/shotwell/src/Photo.vala"
result = _tmp3_;
#line 2979 "/home/jens/Source/shotwell/src/Photo.vala"
_key_value_map_unref0 (map);
#line 2979 "/home/jens/Source/shotwell/src/Photo.vala"
return result;
#line 22877 "Photo.c"
}
#line 2981 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp4_ = map;
#line 2981 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp5_ = key_value_map_get_int (_tmp4_, "num_points", -1);
#line 2981 "/home/jens/Source/shotwell/src/Photo.vala"
num_points = _tmp5_;
#line 2982 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp6_ = num_points;
#line 2982 "/home/jens/Source/shotwell/src/Photo.vala"
_vala_assert (_tmp6_ > 0, "num_points > 0");
#line 2984 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp7_ = num_points;
#line 2984 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp8_ = g_new0 (EditingToolsRedeyeInstance, _tmp7_);
#line 2984 "/home/jens/Source/shotwell/src/Photo.vala"
res = _tmp8_;
#line 2984 "/home/jens/Source/shotwell/src/Photo.vala"
res_length1 = _tmp7_;
#line 2984 "/home/jens/Source/shotwell/src/Photo.vala"
_res_size_ = res_length1;
#line 2986 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp9_.x = 0;
#line 2986 "/home/jens/Source/shotwell/src/Photo.vala"
default_point = _tmp9_;
#line 2987 "/home/jens/Source/shotwell/src/Photo.vala"
default_point.x = -1;
#line 2988 "/home/jens/Source/shotwell/src/Photo.vala"
default_point.y = -1;
#line 22907 "Photo.c"
{
gint i = 0;
#line 2990 "/home/jens/Source/shotwell/src/Photo.vala"
i = 0;
#line 22912 "Photo.c"
{
gboolean _tmp10_ = FALSE;
#line 2990 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp10_ = TRUE;
#line 2990 "/home/jens/Source/shotwell/src/Photo.vala"
while (TRUE) {
#line 22919 "Photo.c"
gint _tmp12_ = 0;
gint _tmp13_ = 0;
gchar* center_key = NULL;
gint _tmp14_ = 0;
gchar* _tmp15_ = NULL;
gchar* radius_key = NULL;
gint _tmp16_ = 0;
gchar* _tmp17_ = NULL;
EditingToolsRedeyeInstance* _tmp18_ = NULL;
gint _tmp18__length1 = 0;
gint _tmp19_ = 0;
KeyValueMap* _tmp20_ = NULL;
const gchar* _tmp21_ = NULL;
GdkPoint _tmp22_ = {0};
GdkPoint _tmp23_ = {0};
EditingToolsRedeyeInstance* _tmp24_ = NULL;
gint _tmp24__length1 = 0;
gint _tmp25_ = 0;
EditingToolsRedeyeInstance _tmp26_ = {0};
GdkPoint _tmp27_ = {0};
gint _tmp28_ = 0;
GdkPoint _tmp29_ = {0};
gint _tmp30_ = 0;
EditingToolsRedeyeInstance* _tmp31_ = NULL;
gint _tmp31__length1 = 0;
gint _tmp32_ = 0;
EditingToolsRedeyeInstance _tmp33_ = {0};
GdkPoint _tmp34_ = {0};
gint _tmp35_ = 0;
GdkPoint _tmp36_ = {0};
gint _tmp37_ = 0;
EditingToolsRedeyeInstance* _tmp38_ = NULL;
gint _tmp38__length1 = 0;
gint _tmp39_ = 0;
KeyValueMap* _tmp40_ = NULL;
const gchar* _tmp41_ = NULL;
gint _tmp42_ = 0;
EditingToolsRedeyeInstance* _tmp43_ = NULL;
gint _tmp43__length1 = 0;
gint _tmp44_ = 0;
EditingToolsRedeyeInstance _tmp45_ = {0};
gint _tmp46_ = 0;
#line 2990 "/home/jens/Source/shotwell/src/Photo.vala"
if (!_tmp10_) {
#line 22964 "Photo.c"
gint _tmp11_ = 0;
#line 2990 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp11_ = i;
#line 2990 "/home/jens/Source/shotwell/src/Photo.vala"
i = _tmp11_ + 1;
#line 22970 "Photo.c"
}
#line 2990 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp10_ = FALSE;
#line 2990 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp12_ = i;
#line 2990 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp13_ = num_points;
#line 2990 "/home/jens/Source/shotwell/src/Photo.vala"
if (!(_tmp12_ < _tmp13_)) {
#line 2990 "/home/jens/Source/shotwell/src/Photo.vala"
break;
#line 22982 "Photo.c"
}
#line 2991 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp14_ = i;
#line 2991 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp15_ = g_strdup_printf ("center%d", _tmp14_);
#line 2991 "/home/jens/Source/shotwell/src/Photo.vala"
center_key = _tmp15_;
#line 2992 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp16_ = i;
#line 2992 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp17_ = g_strdup_printf ("radius%d", _tmp16_);
#line 2992 "/home/jens/Source/shotwell/src/Photo.vala"
radius_key = _tmp17_;
#line 2994 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp18_ = res;
#line 2994 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp18__length1 = res_length1;
#line 2994 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp19_ = i;
#line 2994 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp20_ = map;
#line 2994 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp21_ = center_key;
#line 2994 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp22_ = default_point;
#line 2994 "/home/jens/Source/shotwell/src/Photo.vala"
key_value_map_get_point (_tmp20_, _tmp21_, &_tmp22_, &_tmp23_);
#line 2994 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp18_[_tmp19_].center = _tmp23_;
#line 2995 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp24_ = res;
#line 2995 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp24__length1 = res_length1;
#line 2995 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp25_ = i;
#line 2995 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp26_ = _tmp24_[_tmp25_];
#line 2995 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp27_ = _tmp26_.center;
#line 2995 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp28_ = _tmp27_.x;
#line 2995 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp29_ = default_point;
#line 2995 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp30_ = _tmp29_.x;
#line 2995 "/home/jens/Source/shotwell/src/Photo.vala"
_vala_assert (_tmp28_ != _tmp30_, "res[i].center.x != default_point.x");
#line 2996 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp31_ = res;
#line 2996 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp31__length1 = res_length1;
#line 2996 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp32_ = i;
#line 2996 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp33_ = _tmp31_[_tmp32_];
#line 2996 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp34_ = _tmp33_.center;
#line 2996 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp35_ = _tmp34_.y;
#line 2996 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp36_ = default_point;
#line 2996 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp37_ = _tmp36_.y;
#line 2996 "/home/jens/Source/shotwell/src/Photo.vala"
_vala_assert (_tmp35_ != _tmp37_, "res[i].center.y != default_point.y");
#line 2998 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp38_ = res;
#line 2998 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp38__length1 = res_length1;
#line 2998 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp39_ = i;
#line 2998 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp40_ = map;
#line 2998 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp41_ = radius_key;
#line 2998 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp42_ = key_value_map_get_int (_tmp40_, _tmp41_, -1);
#line 2998 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp38_[_tmp39_].radius = _tmp42_;
#line 2999 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp43_ = res;
#line 2999 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp43__length1 = res_length1;
#line 2999 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp44_ = i;
#line 2999 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp45_ = _tmp43_[_tmp44_];
#line 2999 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp46_ = _tmp45_.radius;
#line 2999 "/home/jens/Source/shotwell/src/Photo.vala"
_vala_assert (_tmp46_ != -1, "res[i].radius != -1");
#line 2990 "/home/jens/Source/shotwell/src/Photo.vala"
_g_free0 (radius_key);
#line 2990 "/home/jens/Source/shotwell/src/Photo.vala"
_g_free0 (center_key);
#line 23078 "Photo.c"
}
}
}
#line 3002 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp47_ = res;
#line 3002 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp47__length1 = res_length1;
#line 3002 "/home/jens/Source/shotwell/src/Photo.vala"
if (result_length1) {
#line 3002 "/home/jens/Source/shotwell/src/Photo.vala"
*result_length1 = _tmp47__length1;
#line 23090 "Photo.c"
}
#line 3002 "/home/jens/Source/shotwell/src/Photo.vala"
result = _tmp47_;
#line 3002 "/home/jens/Source/shotwell/src/Photo.vala"
_key_value_map_unref0 (map);
#line 3002 "/home/jens/Source/shotwell/src/Photo.vala"
return result;
#line 23098 "Photo.c"
}
gboolean photo_has_redeye_transformations (Photo* self) {
gboolean result = FALSE;
gboolean _tmp0_ = FALSE;
#line 3005 "/home/jens/Source/shotwell/src/Photo.vala"
g_return_val_if_fail (IS_PHOTO (self), FALSE);
#line 3006 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp0_ = photo_has_transformation (self, "redeye");
#line 3006 "/home/jens/Source/shotwell/src/Photo.vala"
result = _tmp0_;
#line 3006 "/home/jens/Source/shotwell/src/Photo.vala"
return result;
#line 23113 "Photo.c"
}
void photo_add_redeye_instance (Photo* self, EditingToolsRedeyeInstance* redeye) {
KeyValueMap* map = NULL;
KeyValueMap* _tmp0_ = NULL;
KeyValueMap* _tmp1_ = NULL;
gint num_points = 0;
KeyValueMap* _tmp4_ = NULL;
gint _tmp5_ = 0;
gint _tmp6_ = 0;
gint _tmp7_ = 0;
gchar* radius_key = NULL;
gint _tmp8_ = 0;
gchar* _tmp9_ = NULL;
gchar* center_key = NULL;
gint _tmp10_ = 0;
gchar* _tmp11_ = NULL;
KeyValueMap* _tmp12_ = NULL;
const gchar* _tmp13_ = NULL;
EditingToolsRedeyeInstance _tmp14_ = {0};
gint _tmp15_ = 0;
KeyValueMap* _tmp16_ = NULL;
const gchar* _tmp17_ = NULL;
EditingToolsRedeyeInstance _tmp18_ = {0};
GdkPoint _tmp19_ = {0};
KeyValueMap* _tmp20_ = NULL;
gint _tmp21_ = 0;
KeyValueMap* _tmp22_ = NULL;
gboolean _tmp23_ = FALSE;
#line 3010 "/home/jens/Source/shotwell/src/Photo.vala"
g_return_if_fail (IS_PHOTO (self));
#line 3010 "/home/jens/Source/shotwell/src/Photo.vala"
g_return_if_fail (redeye != NULL);
#line 3011 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp0_ = photo_get_transformation (self, "redeye");
#line 3011 "/home/jens/Source/shotwell/src/Photo.vala"
map = _tmp0_;
#line 3012 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp1_ = map;
#line 3012 "/home/jens/Source/shotwell/src/Photo.vala"
if (_tmp1_ == NULL) {
#line 23156 "Photo.c"
KeyValueMap* _tmp2_ = NULL;
KeyValueMap* _tmp3_ = NULL;
#line 3013 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp2_ = key_value_map_new ("redeye");
#line 3013 "/home/jens/Source/shotwell/src/Photo.vala"
_key_value_map_unref0 (map);
#line 3013 "/home/jens/Source/shotwell/src/Photo.vala"
map = _tmp2_;
#line 3014 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp3_ = map;
#line 3014 "/home/jens/Source/shotwell/src/Photo.vala"
key_value_map_set_int (_tmp3_, "num_points", 0);
#line 23169 "Photo.c"
}
#line 3017 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp4_ = map;
#line 3017 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp5_ = key_value_map_get_int (_tmp4_, "num_points", -1);
#line 3017 "/home/jens/Source/shotwell/src/Photo.vala"
num_points = _tmp5_;
#line 3018 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp6_ = num_points;
#line 3018 "/home/jens/Source/shotwell/src/Photo.vala"
_vala_assert (_tmp6_ >= 0, "num_points >= 0");
#line 3020 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp7_ = num_points;
#line 3020 "/home/jens/Source/shotwell/src/Photo.vala"
num_points = _tmp7_ + 1;
#line 3022 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp8_ = num_points;
#line 3022 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp9_ = g_strdup_printf ("radius%d", _tmp8_ - 1);
#line 3022 "/home/jens/Source/shotwell/src/Photo.vala"
radius_key = _tmp9_;
#line 3023 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp10_ = num_points;
#line 3023 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp11_ = g_strdup_printf ("center%d", _tmp10_ - 1);
#line 3023 "/home/jens/Source/shotwell/src/Photo.vala"
center_key = _tmp11_;
#line 3025 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp12_ = map;
#line 3025 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp13_ = radius_key;
#line 3025 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp14_ = *redeye;
#line 3025 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp15_ = _tmp14_.radius;
#line 3025 "/home/jens/Source/shotwell/src/Photo.vala"
key_value_map_set_int (_tmp12_, _tmp13_, _tmp15_);
#line 3026 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp16_ = map;
#line 3026 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp17_ = center_key;
#line 3026 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp18_ = *redeye;
#line 3026 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp19_ = _tmp18_.center;
#line 3026 "/home/jens/Source/shotwell/src/Photo.vala"
key_value_map_set_point (_tmp16_, _tmp17_, &_tmp19_);
#line 3028 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp20_ = map;
#line 3028 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp21_ = num_points;
#line 3028 "/home/jens/Source/shotwell/src/Photo.vala"
key_value_map_set_int (_tmp20_, "num_points", _tmp21_);
#line 3030 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp22_ = map;
#line 3030 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp23_ = photo_set_transformation (self, _tmp22_);
#line 3030 "/home/jens/Source/shotwell/src/Photo.vala"
if (_tmp23_) {
#line 23229 "Photo.c"
Alteration* _tmp24_ = NULL;
Alteration* _tmp25_ = NULL;
#line 3031 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp24_ = alteration_new ("image", "redeye");
#line 3031 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp25_ = _tmp24_;
#line 3031 "/home/jens/Source/shotwell/src/Photo.vala"
data_object_notify_altered (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_DATA_OBJECT, DataObject), _tmp25_);
#line 3031 "/home/jens/Source/shotwell/src/Photo.vala"
_alteration_unref0 (_tmp25_);
#line 23240 "Photo.c"
}
#line 3010 "/home/jens/Source/shotwell/src/Photo.vala"
_g_free0 (center_key);
#line 3010 "/home/jens/Source/shotwell/src/Photo.vala"
_g_free0 (radius_key);
#line 3010 "/home/jens/Source/shotwell/src/Photo.vala"
_key_value_map_unref0 (map);
#line 23248 "Photo.c"
}
static gboolean photo_calculate_pixbuf_dimensions (Photo* self, Scaling* scaling, PhotoException exceptions, Dimensions* scaled_image, Dimensions* scaled_to_viewport) {
Dimensions _vala_scaled_image = {0};
Dimensions _vala_scaled_to_viewport = {0};
gboolean result = FALSE;
GError * _inner_error_ = NULL;
#line 3045 "/home/jens/Source/shotwell/src/Photo.vala"
g_return_val_if_fail (IS_PHOTO (self), FALSE);
#line 3045 "/home/jens/Source/shotwell/src/Photo.vala"
g_return_val_if_fail (scaling != NULL, FALSE);
#line 23261 "Photo.c"
{
PhotoRow* _tmp0_ = NULL;
#line 3047 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp0_ = self->row;
#line 3047 "/home/jens/Source/shotwell/src/Photo.vala"
g_rec_mutex_lock (&self->priv->__lock_row);
#line 23268 "Photo.c"
{
Scaling _tmp1_ = {0};
PhotoException _tmp2_ = 0;
Dimensions _tmp3_ = {0};
Dimensions _tmp4_ = {0};
gboolean _tmp5_ = FALSE;
#line 3049 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp1_ = *scaling;
#line 3049 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp2_ = exceptions;
#line 3049 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp5_ = photo_locked_calculate_pixbuf_dimensions (self, &_tmp1_, _tmp2_, &_tmp3_, &_tmp4_);
#line 3049 "/home/jens/Source/shotwell/src/Photo.vala"
_vala_scaled_image = _tmp3_;
#line 3049 "/home/jens/Source/shotwell/src/Photo.vala"
_vala_scaled_to_viewport = _tmp4_;
#line 3049 "/home/jens/Source/shotwell/src/Photo.vala"
result = _tmp5_;
#line 23287 "Photo.c"
{
PhotoRow* _tmp6_ = NULL;
#line 3047 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp6_ = self->row;
#line 3047 "/home/jens/Source/shotwell/src/Photo.vala"
g_rec_mutex_unlock (&self->priv->__lock_row);
#line 23294 "Photo.c"
}
#line 3049 "/home/jens/Source/shotwell/src/Photo.vala"
if (scaled_image) {
#line 3049 "/home/jens/Source/shotwell/src/Photo.vala"
*scaled_image = _vala_scaled_image;
#line 23300 "Photo.c"
}
#line 3049 "/home/jens/Source/shotwell/src/Photo.vala"
if (scaled_to_viewport) {
#line 3049 "/home/jens/Source/shotwell/src/Photo.vala"
*scaled_to_viewport = _vala_scaled_to_viewport;
#line 23306 "Photo.c"
}
#line 3049 "/home/jens/Source/shotwell/src/Photo.vala"
return result;
#line 23310 "Photo.c"
}
__finally379:
{
PhotoRow* _tmp7_ = NULL;
#line 3047 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp7_ = self->row;
#line 3047 "/home/jens/Source/shotwell/src/Photo.vala"
g_rec_mutex_unlock (&self->priv->__lock_row);
#line 23319 "Photo.c"
}
#line 3047 "/home/jens/Source/shotwell/src/Photo.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 3047 "/home/jens/Source/shotwell/src/Photo.vala"
g_clear_error (&_inner_error_);
#line 3047 "/home/jens/Source/shotwell/src/Photo.vala"
return FALSE;
#line 23327 "Photo.c"
}
#line 3045 "/home/jens/Source/shotwell/src/Photo.vala"
if (scaled_image) {
#line 3045 "/home/jens/Source/shotwell/src/Photo.vala"
*scaled_image = _vala_scaled_image;
#line 23333 "Photo.c"
}
#line 3045 "/home/jens/Source/shotwell/src/Photo.vala"
if (scaled_to_viewport) {
#line 3045 "/home/jens/Source/shotwell/src/Photo.vala"
*scaled_to_viewport = _vala_scaled_to_viewport;
#line 23339 "Photo.c"
}
}
static gboolean photo_locked_calculate_pixbuf_dimensions (Photo* self, Scaling* scaling, PhotoException exceptions, Dimensions* scaled_image, Dimensions* scaled_to_viewport) {
Dimensions _vala_scaled_image = {0};
Dimensions _vala_scaled_to_viewport = {0};
gboolean result = FALSE;
Dimensions raw = {0};
Dimensions _tmp0_ = {0};
gboolean _tmp1_ = FALSE;
Orientation orientation = 0;
Orientation _tmp4_ = 0;
PhotoException _tmp5_ = 0;
gboolean _tmp6_ = FALSE;
gboolean _tmp38_ = FALSE;
gboolean _tmp53_ = FALSE;
Dimensions _tmp54_ = {0};
gint _tmp55_ = 0;
Dimensions _tmp56_ = {0};
gint _tmp57_ = 0;
gboolean _tmp63_ = FALSE;
gboolean _tmp64_ = FALSE;
#line 3055 "/home/jens/Source/shotwell/src/Photo.vala"
g_return_val_if_fail (IS_PHOTO (self), FALSE);
#line 3055 "/home/jens/Source/shotwell/src/Photo.vala"
g_return_val_if_fail (scaling != NULL, FALSE);
#line 3057 "/home/jens/Source/shotwell/src/Photo.vala"
photo_get_raw_dimensions (self, &_tmp0_);
#line 3057 "/home/jens/Source/shotwell/src/Photo.vala"
raw = _tmp0_;
#line 3059 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp1_ = scaling_is_unscaled (scaling);
#line 3059 "/home/jens/Source/shotwell/src/Photo.vala"
if (_tmp1_) {
#line 23375 "Photo.c"
Dimensions _tmp2_ = {0};
Dimensions _tmp3_ = {0};
#line 3060 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp2_ = raw;
#line 3060 "/home/jens/Source/shotwell/src/Photo.vala"
_vala_scaled_image = _tmp2_;
#line 3061 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp3_ = raw;
#line 3061 "/home/jens/Source/shotwell/src/Photo.vala"
_vala_scaled_to_viewport = _tmp3_;
#line 3063 "/home/jens/Source/shotwell/src/Photo.vala"
result = FALSE;
#line 3063 "/home/jens/Source/shotwell/src/Photo.vala"
if (scaled_image) {
#line 3063 "/home/jens/Source/shotwell/src/Photo.vala"
*scaled_image = _vala_scaled_image;
#line 23392 "Photo.c"
}
#line 3063 "/home/jens/Source/shotwell/src/Photo.vala"
if (scaled_to_viewport) {
#line 3063 "/home/jens/Source/shotwell/src/Photo.vala"
*scaled_to_viewport = _vala_scaled_to_viewport;
#line 23398 "Photo.c"
}
#line 3063 "/home/jens/Source/shotwell/src/Photo.vala"
return result;
#line 23402 "Photo.c"
}
#line 3066 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp4_ = photo_get_orientation (self);
#line 3066 "/home/jens/Source/shotwell/src/Photo.vala"
orientation = _tmp4_;
#line 3071 "/home/jens/Source/shotwell/src/Photo.vala"
dimensions_init (&_vala_scaled_image, 0, 0);
#line 3072 "/home/jens/Source/shotwell/src/Photo.vala"
dimensions_init (&_vala_scaled_to_viewport, 0, 0);
#line 3074 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp5_ = exceptions;
#line 3074 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp6_ = photo_exception_allows (_tmp5_, PHOTO_EXCEPTION_CROP);
#line 3074 "/home/jens/Source/shotwell/src/Photo.vala"
if (_tmp6_) {
#line 23418 "Photo.c"
Box crop = {0};
Box _tmp7_ = {0};
gboolean _tmp8_ = FALSE;
#line 3076 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp8_ = photo_get_raw_crop (self, &_tmp7_);
#line 3076 "/home/jens/Source/shotwell/src/Photo.vala"
crop = _tmp7_;
#line 3076 "/home/jens/Source/shotwell/src/Photo.vala"
if (_tmp8_) {
#line 23428 "Photo.c"
Dimensions rotated_raw = {0};
Dimensions _tmp9_ = {0};
PhotoException _tmp10_ = 0;
gboolean _tmp11_ = FALSE;
Box scaled_crop = {0};
Dimensions _tmp19_ = {0};
Dimensions _tmp20_ = {0};
Box _tmp21_ = {0};
Dimensions _tmp22_ = {0};
gboolean _tmp23_ = FALSE;
gint _tmp24_ = 0;
gint _tmp25_ = 0;
Dimensions _tmp30_ = {0};
Dimensions _tmp31_ = {0};
Dimensions _tmp32_ = {0};
PhotoException _tmp33_ = 0;
gboolean _tmp34_ = FALSE;
#line 3079 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp9_ = raw;
#line 3079 "/home/jens/Source/shotwell/src/Photo.vala"
rotated_raw = _tmp9_;
#line 3080 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp10_ = exceptions;
#line 3080 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp11_ = photo_exception_allows (_tmp10_, PHOTO_EXCEPTION_ORIENTATION);
#line 3080 "/home/jens/Source/shotwell/src/Photo.vala"
if (_tmp11_) {
#line 23456 "Photo.c"
Orientation _tmp12_ = 0;
Dimensions _tmp13_ = {0};
Box _tmp14_ = {0};
Box _tmp15_ = {0};
Orientation _tmp16_ = 0;
Dimensions _tmp17_ = {0};
Dimensions _tmp18_ = {0};
#line 3081 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp12_ = orientation;
#line 3081 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp13_ = raw;
#line 3081 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp14_ = crop;
#line 3081 "/home/jens/Source/shotwell/src/Photo.vala"
orientation_rotate_box (_tmp12_, &_tmp13_, &_tmp14_, &_tmp15_);
#line 3081 "/home/jens/Source/shotwell/src/Photo.vala"
crop = _tmp15_;
#line 3082 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp16_ = orientation;
#line 3082 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp17_ = raw;
#line 3082 "/home/jens/Source/shotwell/src/Photo.vala"
orientation_rotate_dimensions (_tmp16_, &_tmp17_, &_tmp18_);
#line 3082 "/home/jens/Source/shotwell/src/Photo.vala"
rotated_raw = _tmp18_;
#line 23482 "Photo.c"
}
#line 3086 "/home/jens/Source/shotwell/src/Photo.vala"
box_get_dimensions (&crop, &_tmp19_);
#line 3086 "/home/jens/Source/shotwell/src/Photo.vala"
scaling_get_scaled_dimensions (scaling, &_tmp19_, &_tmp20_);
#line 3086 "/home/jens/Source/shotwell/src/Photo.vala"
box_get_scaled (&crop, &_tmp20_, &_tmp21_);
#line 3086 "/home/jens/Source/shotwell/src/Photo.vala"
scaled_crop = _tmp21_;
#line 3089 "/home/jens/Source/shotwell/src/Photo.vala"
box_get_dimensions (&scaled_crop, &_tmp22_);
#line 3089 "/home/jens/Source/shotwell/src/Photo.vala"
_vala_scaled_to_viewport = _tmp22_;
#line 3092 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp24_ = box_get_width (&crop);
#line 3092 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp25_ = box_get_width (&scaled_crop);
#line 3092 "/home/jens/Source/shotwell/src/Photo.vala"
if (_tmp24_ <= _tmp25_) {
#line 23502 "Photo.c"
gint _tmp26_ = 0;
gint _tmp27_ = 0;
#line 3093 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp26_ = box_get_height (&crop);
#line 3093 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp27_ = box_get_height (&scaled_crop);
#line 3093 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp23_ = _tmp26_ <= _tmp27_;
#line 23511 "Photo.c"
} else {
#line 3092 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp23_ = FALSE;
#line 23515 "Photo.c"
}
#line 3092 "/home/jens/Source/shotwell/src/Photo.vala"
if (_tmp23_) {
#line 23519 "Photo.c"
Dimensions _tmp28_ = {0};
Dimensions _tmp29_ = {0};
#line 3094 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp28_ = raw;
#line 3094 "/home/jens/Source/shotwell/src/Photo.vala"
_vala_scaled_image = _tmp28_;
#line 3095 "/home/jens/Source/shotwell/src/Photo.vala"
box_get_dimensions (&crop, &_tmp29_);
#line 3095 "/home/jens/Source/shotwell/src/Photo.vala"
_vala_scaled_to_viewport = _tmp29_;
#line 3097 "/home/jens/Source/shotwell/src/Photo.vala"
result = FALSE;
#line 3097 "/home/jens/Source/shotwell/src/Photo.vala"
if (scaled_image) {
#line 3097 "/home/jens/Source/shotwell/src/Photo.vala"
*scaled_image = _vala_scaled_image;
#line 23536 "Photo.c"
}
#line 3097 "/home/jens/Source/shotwell/src/Photo.vala"
if (scaled_to_viewport) {
#line 3097 "/home/jens/Source/shotwell/src/Photo.vala"
*scaled_to_viewport = _vala_scaled_to_viewport;
#line 23542 "Photo.c"
}
#line 3097 "/home/jens/Source/shotwell/src/Photo.vala"
return result;
#line 23546 "Photo.c"
}
#line 3102 "/home/jens/Source/shotwell/src/Photo.vala"
box_get_dimensions (&crop, &_tmp30_);
#line 3102 "/home/jens/Source/shotwell/src/Photo.vala"
box_get_dimensions (&scaled_crop, &_tmp31_);
#line 3102 "/home/jens/Source/shotwell/src/Photo.vala"
dimensions_get_scaled_similar (&rotated_raw, &_tmp30_, &_tmp31_, &_tmp32_);
#line 3102 "/home/jens/Source/shotwell/src/Photo.vala"
_vala_scaled_image = _tmp32_;
#line 3106 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp33_ = exceptions;
#line 3106 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp34_ = photo_exception_allows (_tmp33_, PHOTO_EXCEPTION_ORIENTATION);
#line 3106 "/home/jens/Source/shotwell/src/Photo.vala"
if (_tmp34_) {
#line 23562 "Photo.c"
Orientation _tmp35_ = 0;
Dimensions _tmp36_ = {0};
Dimensions _tmp37_ = {0};
#line 3107 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp35_ = orientation;
#line 3107 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp36_ = _vala_scaled_image;
#line 3107 "/home/jens/Source/shotwell/src/Photo.vala"
orientation_derotate_dimensions (_tmp35_, &_tmp36_, &_tmp37_);
#line 3107 "/home/jens/Source/shotwell/src/Photo.vala"
_vala_scaled_image = _tmp37_;
#line 23574 "Photo.c"
}
}
}
#line 3112 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp38_ = dimensions_has_area (&_vala_scaled_image);
#line 3112 "/home/jens/Source/shotwell/src/Photo.vala"
if (!_tmp38_) {
#line 23582 "Photo.c"
Dimensions rotated_raw = {0};
Dimensions _tmp39_ = {0};
PhotoException _tmp40_ = 0;
gboolean _tmp41_ = FALSE;
Dimensions _tmp45_ = {0};
Dimensions _tmp46_ = {0};
Dimensions _tmp47_ = {0};
PhotoException _tmp48_ = 0;
gboolean _tmp49_ = FALSE;
#line 3114 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp39_ = raw;
#line 3114 "/home/jens/Source/shotwell/src/Photo.vala"
rotated_raw = _tmp39_;
#line 3115 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp40_ = exceptions;
#line 3115 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp41_ = photo_exception_allows (_tmp40_, PHOTO_EXCEPTION_ORIENTATION);
#line 3115 "/home/jens/Source/shotwell/src/Photo.vala"
if (_tmp41_) {
#line 23602 "Photo.c"
Orientation _tmp42_ = 0;
Dimensions _tmp43_ = {0};
Dimensions _tmp44_ = {0};
#line 3116 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp42_ = orientation;
#line 3116 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp43_ = raw;
#line 3116 "/home/jens/Source/shotwell/src/Photo.vala"
orientation_rotate_dimensions (_tmp42_, &_tmp43_, &_tmp44_);
#line 3116 "/home/jens/Source/shotwell/src/Photo.vala"
rotated_raw = _tmp44_;
#line 23614 "Photo.c"
}
#line 3118 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp45_ = rotated_raw;
#line 3118 "/home/jens/Source/shotwell/src/Photo.vala"
scaling_get_scaled_dimensions (scaling, &_tmp45_, &_tmp46_);
#line 3118 "/home/jens/Source/shotwell/src/Photo.vala"
_vala_scaled_image = _tmp46_;
#line 3119 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp47_ = _vala_scaled_image;
#line 3119 "/home/jens/Source/shotwell/src/Photo.vala"
_vala_scaled_to_viewport = _tmp47_;
#line 3122 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp48_ = exceptions;
#line 3122 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp49_ = photo_exception_allows (_tmp48_, PHOTO_EXCEPTION_ORIENTATION);
#line 3122 "/home/jens/Source/shotwell/src/Photo.vala"
if (_tmp49_) {
#line 23632 "Photo.c"
Orientation _tmp50_ = 0;
Dimensions _tmp51_ = {0};
Dimensions _tmp52_ = {0};
#line 3123 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp50_ = orientation;
#line 3123 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp51_ = _vala_scaled_image;
#line 3123 "/home/jens/Source/shotwell/src/Photo.vala"
orientation_derotate_dimensions (_tmp50_, &_tmp51_, &_tmp52_);
#line 3123 "/home/jens/Source/shotwell/src/Photo.vala"
_vala_scaled_image = _tmp52_;
#line 23644 "Photo.c"
}
}
#line 3127 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp54_ = _vala_scaled_image;
#line 3127 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp55_ = _tmp54_.width;
#line 3127 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp56_ = raw;
#line 3127 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp57_ = _tmp56_.width;
#line 3127 "/home/jens/Source/shotwell/src/Photo.vala"
if (_tmp55_ >= _tmp57_) {
#line 23657 "Photo.c"
Dimensions _tmp58_ = {0};
gint _tmp59_ = 0;
Dimensions _tmp60_ = {0};
gint _tmp61_ = 0;
#line 3127 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp58_ = _vala_scaled_image;
#line 3127 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp59_ = _tmp58_.height;
#line 3127 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp60_ = raw;
#line 3127 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp61_ = _tmp60_.height;
#line 3127 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp53_ = _tmp59_ >= _tmp61_;
#line 23672 "Photo.c"
} else {
#line 3127 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp53_ = FALSE;
#line 23676 "Photo.c"
}
#line 3127 "/home/jens/Source/shotwell/src/Photo.vala"
if (_tmp53_) {
#line 23680 "Photo.c"
Dimensions _tmp62_ = {0};
#line 3128 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp62_ = raw;
#line 3128 "/home/jens/Source/shotwell/src/Photo.vala"
_vala_scaled_image = _tmp62_;
#line 3130 "/home/jens/Source/shotwell/src/Photo.vala"
result = FALSE;
#line 3130 "/home/jens/Source/shotwell/src/Photo.vala"
if (scaled_image) {
#line 3130 "/home/jens/Source/shotwell/src/Photo.vala"
*scaled_image = _vala_scaled_image;
#line 23692 "Photo.c"
}
#line 3130 "/home/jens/Source/shotwell/src/Photo.vala"
if (scaled_to_viewport) {
#line 3130 "/home/jens/Source/shotwell/src/Photo.vala"
*scaled_to_viewport = _vala_scaled_to_viewport;
#line 23698 "Photo.c"
}
#line 3130 "/home/jens/Source/shotwell/src/Photo.vala"
return result;
#line 23702 "Photo.c"
}
#line 3133 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp63_ = dimensions_has_area (&_vala_scaled_image);
#line 3133 "/home/jens/Source/shotwell/src/Photo.vala"
_vala_assert (_tmp63_, "scaled_image.has_area()");
#line 3134 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp64_ = dimensions_has_area (&_vala_scaled_to_viewport);
#line 3134 "/home/jens/Source/shotwell/src/Photo.vala"
_vala_assert (_tmp64_, "scaled_to_viewport.has_area()");
#line 3136 "/home/jens/Source/shotwell/src/Photo.vala"
result = TRUE;
#line 3136 "/home/jens/Source/shotwell/src/Photo.vala"
if (scaled_image) {
#line 3136 "/home/jens/Source/shotwell/src/Photo.vala"
*scaled_image = _vala_scaled_image;
#line 23718 "Photo.c"
}
#line 3136 "/home/jens/Source/shotwell/src/Photo.vala"
if (scaled_to_viewport) {
#line 3136 "/home/jens/Source/shotwell/src/Photo.vala"
*scaled_to_viewport = _vala_scaled_to_viewport;
#line 23724 "Photo.c"
}
#line 3136 "/home/jens/Source/shotwell/src/Photo.vala"
return result;
#line 23728 "Photo.c"
}
static GdkPixbuf* photo_load_raw_pixbuf (Photo* self, Scaling* scaling, PhotoException exceptions, BackingFetchMode fetch_mode, GError** error) {
GdkPixbuf* result = NULL;
PhotoFileReader* loader = NULL;
BackingFetchMode _tmp0_ = 0;
PhotoFileReader* _tmp1_ = NULL;
gboolean _tmp2_ = FALSE;
Dimensions scaled_image = {0};
Dimensions scaled_to_viewport = {0};
gboolean is_scaled = FALSE;
Scaling _tmp7_ = {0};
PhotoException _tmp8_ = 0;
Dimensions _tmp9_ = {0};
Dimensions _tmp10_ = {0};
gboolean _tmp11_ = FALSE;
gboolean _tmp12_ = FALSE;
GdkPixbuf* pixbuf = NULL;
PhotoFileReader* _tmp17_ = NULL;
Dimensions _tmp18_ = {0};
Dimensions _tmp19_ = {0};
GdkPixbuf* _tmp20_ = NULL;
GdkPixbuf* _tmp21_ = NULL;
Dimensions _tmp22_ = {0};
gboolean _tmp23_ = FALSE;
GError * _inner_error_ = NULL;
#line 3142 "/home/jens/Source/shotwell/src/Photo.vala"
g_return_val_if_fail (IS_PHOTO (self), NULL);
#line 3142 "/home/jens/Source/shotwell/src/Photo.vala"
g_return_val_if_fail (scaling != NULL, NULL);
#line 3145 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp0_ = fetch_mode;
#line 3145 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp1_ = photo_get_backing_reader (self, _tmp0_);
#line 3145 "/home/jens/Source/shotwell/src/Photo.vala"
loader = _tmp1_;
#line 3148 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp2_ = scaling_is_unscaled (scaling);
#line 3148 "/home/jens/Source/shotwell/src/Photo.vala"
if (_tmp2_) {
#line 23770 "Photo.c"
GdkPixbuf* _tmp3_ = NULL;
PhotoFileReader* _tmp4_ = NULL;
GdkPixbuf* _tmp5_ = NULL;
GdkPixbuf* _tmp6_ = NULL;
#line 3153 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp4_ = loader;
#line 3153 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp5_ = photo_file_reader_unscaled_read (_tmp4_, &_inner_error_);
#line 3153 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp3_ = _tmp5_;
#line 3153 "/home/jens/Source/shotwell/src/Photo.vala"
if (G_UNLIKELY (_inner_error_ != NULL)) {
#line 3153 "/home/jens/Source/shotwell/src/Photo.vala"
g_propagate_error (error, _inner_error_);
#line 3153 "/home/jens/Source/shotwell/src/Photo.vala"
_photo_file_adapter_unref0 (loader);
#line 3153 "/home/jens/Source/shotwell/src/Photo.vala"
return NULL;
#line 23789 "Photo.c"
}
#line 3153 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp6_ = _tmp3_;
#line 3153 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp3_ = NULL;
#line 3153 "/home/jens/Source/shotwell/src/Photo.vala"
result = _tmp6_;
#line 3153 "/home/jens/Source/shotwell/src/Photo.vala"
_g_object_unref0 (_tmp3_);
#line 3153 "/home/jens/Source/shotwell/src/Photo.vala"
_photo_file_adapter_unref0 (loader);
#line 3153 "/home/jens/Source/shotwell/src/Photo.vala"
return result;
#line 23803 "Photo.c"
}
#line 3158 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp7_ = *scaling;
#line 3158 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp8_ = exceptions;
#line 3158 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp11_ = photo_calculate_pixbuf_dimensions (self, &_tmp7_, _tmp8_, &_tmp9_, &_tmp10_);
#line 3158 "/home/jens/Source/shotwell/src/Photo.vala"
scaled_image = _tmp9_;
#line 3158 "/home/jens/Source/shotwell/src/Photo.vala"
scaled_to_viewport = _tmp10_;
#line 3158 "/home/jens/Source/shotwell/src/Photo.vala"
is_scaled = _tmp11_;
#line 3160 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp12_ = is_scaled;
#line 3160 "/home/jens/Source/shotwell/src/Photo.vala"
if (!_tmp12_) {
#line 23821 "Photo.c"
GdkPixbuf* _tmp13_ = NULL;
PhotoFileReader* _tmp14_ = NULL;
GdkPixbuf* _tmp15_ = NULL;
GdkPixbuf* _tmp16_ = NULL;
#line 3165 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp14_ = loader;
#line 3165 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp15_ = photo_file_reader_unscaled_read (_tmp14_, &_inner_error_);
#line 3165 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp13_ = _tmp15_;
#line 3165 "/home/jens/Source/shotwell/src/Photo.vala"
if (G_UNLIKELY (_inner_error_ != NULL)) {
#line 3165 "/home/jens/Source/shotwell/src/Photo.vala"
g_propagate_error (error, _inner_error_);
#line 3165 "/home/jens/Source/shotwell/src/Photo.vala"
_photo_file_adapter_unref0 (loader);
#line 3165 "/home/jens/Source/shotwell/src/Photo.vala"
return NULL;
#line 23840 "Photo.c"
}
#line 3165 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp16_ = _tmp13_;
#line 3165 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp13_ = NULL;
#line 3165 "/home/jens/Source/shotwell/src/Photo.vala"
result = _tmp16_;
#line 3165 "/home/jens/Source/shotwell/src/Photo.vala"
_g_object_unref0 (_tmp13_);
#line 3165 "/home/jens/Source/shotwell/src/Photo.vala"
_photo_file_adapter_unref0 (loader);
#line 3165 "/home/jens/Source/shotwell/src/Photo.vala"
return result;
#line 23854 "Photo.c"
}
#line 3168 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp17_ = loader;
#line 3168 "/home/jens/Source/shotwell/src/Photo.vala"
photo_get_raw_dimensions (self, &_tmp18_);
#line 3168 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp19_ = scaled_image;
#line 3168 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp20_ = photo_file_reader_scaled_read (_tmp17_, &_tmp18_, &_tmp19_, &_inner_error_);
#line 3168 "/home/jens/Source/shotwell/src/Photo.vala"
pixbuf = _tmp20_;
#line 3168 "/home/jens/Source/shotwell/src/Photo.vala"
if (G_UNLIKELY (_inner_error_ != NULL)) {
#line 3168 "/home/jens/Source/shotwell/src/Photo.vala"
g_propagate_error (error, _inner_error_);
#line 3168 "/home/jens/Source/shotwell/src/Photo.vala"
_photo_file_adapter_unref0 (loader);
#line 3168 "/home/jens/Source/shotwell/src/Photo.vala"
return NULL;
#line 23874 "Photo.c"
}
#line 3176 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp21_ = pixbuf;
#line 3176 "/home/jens/Source/shotwell/src/Photo.vala"
dimensions_for_pixbuf (_tmp21_, &_tmp22_);
#line 3176 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp23_ = dimensions_approx_equals (&scaled_image, &_tmp22_, PHOTO_SCALING_FUDGE);
#line 3176 "/home/jens/Source/shotwell/src/Photo.vala"
_vala_assert (_tmp23_, "scaled_image.approx_equals(Dimensions.for_pixbuf(pixbuf), SCALING_FUDGE)");
#line 3178 "/home/jens/Source/shotwell/src/Photo.vala"
result = pixbuf;
#line 3178 "/home/jens/Source/shotwell/src/Photo.vala"
_photo_file_adapter_unref0 (loader);
#line 3178 "/home/jens/Source/shotwell/src/Photo.vala"
return result;
#line 23890 "Photo.c"
}
GdkPixbuf* photo_get_master_pixbuf (Photo* self, Scaling* scaling, gboolean rotate, GError** error) {
GdkPixbuf* result = NULL;
GdkPixbuf* _tmp0_ = NULL;
Scaling _tmp1_ = {0};
gboolean _tmp2_ = FALSE;
GdkPixbuf* _tmp3_ = NULL;
GdkPixbuf* _tmp4_ = NULL;
GError * _inner_error_ = NULL;
#line 3183 "/home/jens/Source/shotwell/src/Photo.vala"
g_return_val_if_fail (IS_PHOTO (self), NULL);
#line 3183 "/home/jens/Source/shotwell/src/Photo.vala"
g_return_val_if_fail (scaling != NULL, NULL);
#line 3184 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp1_ = *scaling;
#line 3184 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp2_ = rotate;
#line 3184 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp3_ = photo_get_untransformed_pixbuf (self, &_tmp1_, _tmp2_, BACKING_FETCH_MODE_MASTER, &_inner_error_);
#line 3184 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp0_ = _tmp3_;
#line 3184 "/home/jens/Source/shotwell/src/Photo.vala"
if (G_UNLIKELY (_inner_error_ != NULL)) {
#line 3184 "/home/jens/Source/shotwell/src/Photo.vala"
g_propagate_error (error, _inner_error_);
#line 3184 "/home/jens/Source/shotwell/src/Photo.vala"
return NULL;
#line 23920 "Photo.c"
}
#line 3184 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp4_ = _tmp0_;
#line 3184 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp0_ = NULL;
#line 3184 "/home/jens/Source/shotwell/src/Photo.vala"
result = _tmp4_;
#line 3184 "/home/jens/Source/shotwell/src/Photo.vala"
_g_object_unref0 (_tmp0_);
#line 3184 "/home/jens/Source/shotwell/src/Photo.vala"
return result;
#line 23932 "Photo.c"
}
GdkPixbuf* photo_get_unmodified_pixbuf (Photo* self, Scaling* scaling, gboolean rotate, GError** error) {
GdkPixbuf* result = NULL;
GdkPixbuf* _tmp0_ = NULL;
Scaling _tmp1_ = {0};
gboolean _tmp2_ = FALSE;
GdkPixbuf* _tmp3_ = NULL;
GdkPixbuf* _tmp4_ = NULL;
GError * _inner_error_ = NULL;
#line 3188 "/home/jens/Source/shotwell/src/Photo.vala"
g_return_val_if_fail (IS_PHOTO (self), NULL);
#line 3188 "/home/jens/Source/shotwell/src/Photo.vala"
g_return_val_if_fail (scaling != NULL, NULL);
#line 3189 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp1_ = *scaling;
#line 3189 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp2_ = rotate;
#line 3189 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp3_ = photo_get_untransformed_pixbuf (self, &_tmp1_, _tmp2_, BACKING_FETCH_MODE_UNMODIFIED, &_inner_error_);
#line 3189 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp0_ = _tmp3_;
#line 3189 "/home/jens/Source/shotwell/src/Photo.vala"
if (G_UNLIKELY (_inner_error_ != NULL)) {
#line 3189 "/home/jens/Source/shotwell/src/Photo.vala"
g_propagate_error (error, _inner_error_);
#line 3189 "/home/jens/Source/shotwell/src/Photo.vala"
return NULL;
#line 23962 "Photo.c"
}
#line 3189 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp4_ = _tmp0_;
#line 3189 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp0_ = NULL;
#line 3189 "/home/jens/Source/shotwell/src/Photo.vala"
result = _tmp4_;
#line 3189 "/home/jens/Source/shotwell/src/Photo.vala"
_g_object_unref0 (_tmp0_);
#line 3189 "/home/jens/Source/shotwell/src/Photo.vala"
return result;
#line 23974 "Photo.c"
}
static GdkPixbuf* photo_get_untransformed_pixbuf (Photo* self, Scaling* scaling, gboolean rotate, BackingFetchMode fetch_mode, GError** error) {
GdkPixbuf* result = NULL;
Dimensions scaled_image = {0};
Dimensions scaled_to_viewport = {0};
Orientation original_orientation = 0;
GdkPixbuf* pixbuf = NULL;
Scaling _tmp6_ = {0};
BackingFetchMode _tmp7_ = 0;
GdkPixbuf* _tmp8_ = NULL;
gboolean _tmp9_ = FALSE;
GError * _inner_error_ = NULL;
#line 3193 "/home/jens/Source/shotwell/src/Photo.vala"
g_return_val_if_fail (IS_PHOTO (self), NULL);
#line 3193 "/home/jens/Source/shotwell/src/Photo.vala"
g_return_val_if_fail (scaling != NULL, NULL);
#line 23993 "Photo.c"
{
PhotoRow* _tmp0_ = NULL;
#line 3207 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp0_ = self->row;
#line 3207 "/home/jens/Source/shotwell/src/Photo.vala"
g_rec_mutex_lock (&self->priv->__lock_row);
#line 24000 "Photo.c"
{
Scaling _tmp1_ = {0};
Dimensions _tmp2_ = {0};
Dimensions _tmp3_ = {0};
Orientation _tmp4_ = 0;
#line 3208 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp1_ = *scaling;
#line 3208 "/home/jens/Source/shotwell/src/Photo.vala"
photo_calculate_pixbuf_dimensions (self, &_tmp1_, PHOTO_EXCEPTION_NONE, &_tmp2_, &_tmp3_);
#line 3208 "/home/jens/Source/shotwell/src/Photo.vala"
scaled_image = _tmp2_;
#line 3208 "/home/jens/Source/shotwell/src/Photo.vala"
scaled_to_viewport = _tmp3_;
#line 3210 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp4_ = photo_get_original_orientation (self);
#line 3210 "/home/jens/Source/shotwell/src/Photo.vala"
original_orientation = _tmp4_;
#line 24018 "Photo.c"
}
__finally380:
{
PhotoRow* _tmp5_ = NULL;
#line 3207 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp5_ = self->row;
#line 3207 "/home/jens/Source/shotwell/src/Photo.vala"
g_rec_mutex_unlock (&self->priv->__lock_row);
#line 24027 "Photo.c"
}
#line 3207 "/home/jens/Source/shotwell/src/Photo.vala"
if (G_UNLIKELY (_inner_error_ != NULL)) {
#line 3207 "/home/jens/Source/shotwell/src/Photo.vala"
g_propagate_error (error, _inner_error_);
#line 3207 "/home/jens/Source/shotwell/src/Photo.vala"
return NULL;
#line 24035 "Photo.c"
}
}
#line 3214 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp6_ = *scaling;
#line 3214 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp7_ = fetch_mode;
#line 3214 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp8_ = photo_load_raw_pixbuf (self, &_tmp6_, PHOTO_EXCEPTION_NONE, _tmp7_, &_inner_error_);
#line 3214 "/home/jens/Source/shotwell/src/Photo.vala"
pixbuf = _tmp8_;
#line 3214 "/home/jens/Source/shotwell/src/Photo.vala"
if (G_UNLIKELY (_inner_error_ != NULL)) {
#line 3214 "/home/jens/Source/shotwell/src/Photo.vala"
g_propagate_error (error, _inner_error_);
#line 3214 "/home/jens/Source/shotwell/src/Photo.vala"
return NULL;
#line 24052 "Photo.c"
}
#line 3220 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp9_ = rotate;
#line 3220 "/home/jens/Source/shotwell/src/Photo.vala"
if (_tmp9_) {
#line 24058 "Photo.c"
GdkPixbuf* _tmp10_ = NULL;
GdkPixbuf* _tmp11_ = NULL;
#line 3221 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp10_ = pixbuf;
#line 3221 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp11_ = orientation_rotate_pixbuf (original_orientation, _tmp10_);
#line 3221 "/home/jens/Source/shotwell/src/Photo.vala"
_g_object_unref0 (pixbuf);
#line 3221 "/home/jens/Source/shotwell/src/Photo.vala"
pixbuf = _tmp11_;
#line 24069 "Photo.c"
}
#line 3230 "/home/jens/Source/shotwell/src/Photo.vala"
result = pixbuf;
#line 3230 "/home/jens/Source/shotwell/src/Photo.vala"
return result;
#line 24075 "Photo.c"
}
static GdkPixbuf* photo_real_get_pixbuf (PhotoSource* base, Scaling* scaling, GError** error) {
Photo * self;
GdkPixbuf* result = NULL;
GdkPixbuf* _tmp0_ = NULL;
Scaling _tmp1_ = {0};
GdkPixbuf* _tmp2_ = NULL;
GdkPixbuf* _tmp3_ = NULL;
GError * _inner_error_ = NULL;
#line 3233 "/home/jens/Source/shotwell/src/Photo.vala"
self = G_TYPE_CHECK_INSTANCE_CAST (base, TYPE_PHOTO, Photo);
#line 3233 "/home/jens/Source/shotwell/src/Photo.vala"
g_return_val_if_fail (scaling != NULL, NULL);
#line 3234 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp1_ = *scaling;
#line 3234 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp2_ = photo_get_pixbuf_with_options (self, &_tmp1_, PHOTO_EXCEPTION_NONE, BACKING_FETCH_MODE_BASELINE, &_inner_error_);
#line 3234 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp0_ = _tmp2_;
#line 3234 "/home/jens/Source/shotwell/src/Photo.vala"
if (G_UNLIKELY (_inner_error_ != NULL)) {
#line 3234 "/home/jens/Source/shotwell/src/Photo.vala"
g_propagate_error (error, _inner_error_);
#line 3234 "/home/jens/Source/shotwell/src/Photo.vala"
return NULL;
#line 24103 "Photo.c"
}
#line 3234 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp3_ = _tmp0_;
#line 3234 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp0_ = NULL;
#line 3234 "/home/jens/Source/shotwell/src/Photo.vala"
result = _tmp3_;
#line 3234 "/home/jens/Source/shotwell/src/Photo.vala"
_g_object_unref0 (_tmp0_);
#line 3234 "/home/jens/Source/shotwell/src/Photo.vala"
return result;
#line 24115 "Photo.c"
}
/**
* One-stop shopping for the source pixbuf cache.
*
* The source pixbuf cache holds untransformed, unscaled (full-sized) pixbufs of Photo objects.
* These can be rather large and shouldn't be held in memory for too long, nor should many be
* allowed to stack up.
*
* If locate is non-null, a source pixbuf is returned for the Photo. If keep is true, the
* pixbuf is stored in the cache. (Thus, passing a Photo w/ keep == false will drop the cached
* pixbuf.) If Photo is non-null but keep is false, null is returned.
*
* Whether locate is null or not, the cache is walked in its entirety, dropping expired pixbufs
* and dropping excessive pixbufs from the LRU. Locating a Photo "touches" the pixbuf, i.e.
* it moves to the head of the LRU.
*/
static gpointer _photo_cached_pixbuf_ref0 (gpointer self) {
#line 3269 "/home/jens/Source/shotwell/src/Photo.vala"
return self ? photo_cached_pixbuf_ref (self) : NULL;
#line 24137 "Photo.c"
}
static gboolean _photo_trim_source_pixbuf_cache_gsource_func (gpointer self) {
gboolean result;
result = photo_trim_source_pixbuf_cache ();
#line 3321 "/home/jens/Source/shotwell/src/Photo.vala"
return result;
#line 24146 "Photo.c"
}
static GdkPixbuf* photo_run_source_pixbuf_cache (Photo* locate, gboolean keep, GError** error) {
GdkPixbuf* result = NULL;
GError * _inner_error_ = NULL;
#line 3252 "/home/jens/Source/shotwell/src/Photo.vala"
g_return_val_if_fail ((locate == NULL) || IS_PHOTO (locate), NULL);
#line 24155 "Photo.c"
{
GeeLinkedList* _tmp0_ = NULL;
#line 3253 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp0_ = photo_source_pixbuf_cache;
#line 3253 "/home/jens/Source/shotwell/src/Photo.vala"
g_rec_mutex_lock (&__lock_photo_source_pixbuf_cache);
#line 24162 "Photo.c"
{
PhotoCachedPixbuf* found = NULL;
gdouble min_elapsed = 0.0;
gint count = 0;
GeeIterator* iter = NULL;
GeeLinkedList* _tmp1_ = NULL;
GeeIterator* _tmp2_ = NULL;
gboolean _tmp29_ = FALSE;
gboolean _tmp30_ = FALSE;
PhotoCachedPixbuf* _tmp31_ = NULL;
gboolean _tmp43_ = FALSE;
PhotoCachedPixbuf* _tmp44_ = NULL;
guint _tmp59_ = 0U;
GeeLinkedList* _tmp61_ = NULL;
gint _tmp62_ = 0;
gint _tmp63_ = 0;
GdkPixbuf* _tmp69_ = NULL;
PhotoCachedPixbuf* _tmp70_ = NULL;
GdkPixbuf* _tmp73_ = NULL;
#line 3254 "/home/jens/Source/shotwell/src/Photo.vala"
found = NULL;
#line 3258 "/home/jens/Source/shotwell/src/Photo.vala"
min_elapsed = DBL_MAX;
#line 3259 "/home/jens/Source/shotwell/src/Photo.vala"
count = 0;
#line 3260 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp1_ = photo_source_pixbuf_cache;
#line 3260 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp2_ = gee_abstract_collection_iterator (G_TYPE_CHECK_INSTANCE_CAST (_tmp1_, GEE_TYPE_ABSTRACT_COLLECTION, GeeAbstractCollection));
#line 3260 "/home/jens/Source/shotwell/src/Photo.vala"
iter = _tmp2_;
#line 3261 "/home/jens/Source/shotwell/src/Photo.vala"
while (TRUE) {
#line 24196 "Photo.c"
GeeIterator* _tmp3_ = NULL;
gboolean _tmp4_ = FALSE;
PhotoCachedPixbuf* cached_pixbuf = NULL;
GeeIterator* _tmp5_ = NULL;
gpointer _tmp6_ = NULL;
gdouble elapsed = 0.0;
PhotoCachedPixbuf* _tmp7_ = NULL;
GTimer* _tmp8_ = NULL;
gdouble _tmp9_ = 0.0;
gdouble _tmp10_ = 0.0;
gboolean _tmp11_ = FALSE;
Photo* _tmp12_ = NULL;
#line 3261 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp3_ = iter;
#line 3261 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp4_ = gee_iterator_next (_tmp3_);
#line 3261 "/home/jens/Source/shotwell/src/Photo.vala"
if (!_tmp4_) {
#line 3261 "/home/jens/Source/shotwell/src/Photo.vala"
break;
#line 24217 "Photo.c"
}
#line 3262 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp5_ = iter;
#line 3262 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp6_ = gee_iterator_get (_tmp5_);
#line 3262 "/home/jens/Source/shotwell/src/Photo.vala"
cached_pixbuf = (PhotoCachedPixbuf*) _tmp6_;
#line 3264 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp7_ = cached_pixbuf;
#line 3264 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp8_ = _tmp7_->last_touched;
#line 3264 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp9_ = g_timer_elapsed (_tmp8_, NULL);
#line 3264 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp10_ = trunc (_tmp9_);
#line 3264 "/home/jens/Source/shotwell/src/Photo.vala"
elapsed = _tmp10_ + 1;
#line 3266 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp12_ = locate;
#line 3266 "/home/jens/Source/shotwell/src/Photo.vala"
if (_tmp12_ != NULL) {
#line 24239 "Photo.c"
PhotoCachedPixbuf* _tmp13_ = NULL;
Photo* _tmp14_ = NULL;
Photo* _tmp15_ = NULL;
gboolean _tmp16_ = FALSE;
#line 3266 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp13_ = cached_pixbuf;
#line 3266 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp14_ = _tmp13_->photo;
#line 3266 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp15_ = locate;
#line 3266 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp16_ = data_source_equals (G_TYPE_CHECK_INSTANCE_CAST (_tmp14_, TYPE_DATA_SOURCE, DataSource), G_TYPE_CHECK_INSTANCE_CAST (_tmp15_, TYPE_DATA_SOURCE, DataSource));
#line 3266 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp11_ = _tmp16_;
#line 24254 "Photo.c"
} else {
#line 3266 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp11_ = FALSE;
#line 24258 "Photo.c"
}
#line 3266 "/home/jens/Source/shotwell/src/Photo.vala"
if (_tmp11_) {
#line 24262 "Photo.c"
GeeIterator* _tmp17_ = NULL;
PhotoCachedPixbuf* _tmp18_ = NULL;
PhotoCachedPixbuf* _tmp19_ = NULL;
gint _tmp20_ = 0;
#line 3268 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp17_ = iter;
#line 3268 "/home/jens/Source/shotwell/src/Photo.vala"
gee_iterator_remove (_tmp17_);
#line 3269 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp18_ = cached_pixbuf;
#line 3269 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp19_ = _photo_cached_pixbuf_ref0 (_tmp18_);
#line 3269 "/home/jens/Source/shotwell/src/Photo.vala"
_photo_cached_pixbuf_unref0 (found);
#line 3269 "/home/jens/Source/shotwell/src/Photo.vala"
found = _tmp19_;
#line 3272 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp20_ = count;
#line 3272 "/home/jens/Source/shotwell/src/Photo.vala"
count = _tmp20_ + 1;
#line 24283 "Photo.c"
} else {
gdouble _tmp21_ = 0.0;
#line 3273 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp21_ = elapsed;
#line 3273 "/home/jens/Source/shotwell/src/Photo.vala"
if (_tmp21_ >= ((gdouble) PHOTO_SOURCE_PIXBUF_TIME_TO_LIVE_SEC)) {
#line 24290 "Photo.c"
GeeIterator* _tmp22_ = NULL;
#line 3274 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp22_ = iter;
#line 3274 "/home/jens/Source/shotwell/src/Photo.vala"
gee_iterator_remove (_tmp22_);
#line 24296 "Photo.c"
} else {
gint _tmp23_ = 0;
#line 3275 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp23_ = count;
#line 3275 "/home/jens/Source/shotwell/src/Photo.vala"
if (_tmp23_ >= PHOTO_SOURCE_PIXBUF_MAX_LRU_COUNT) {
#line 24303 "Photo.c"
GeeIterator* _tmp24_ = NULL;
#line 3276 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp24_ = iter;
#line 3276 "/home/jens/Source/shotwell/src/Photo.vala"
gee_iterator_remove (_tmp24_);
#line 24309 "Photo.c"
} else {
gdouble _tmp25_ = 0.0;
gdouble _tmp26_ = 0.0;
gdouble _tmp27_ = 0.0;
gint _tmp28_ = 0;
#line 3280 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp25_ = elapsed;
#line 3280 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp26_ = min_elapsed;
#line 3280 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp27_ = MIN (_tmp25_, _tmp26_);
#line 3280 "/home/jens/Source/shotwell/src/Photo.vala"
min_elapsed = _tmp27_;
#line 3281 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp28_ = count;
#line 3281 "/home/jens/Source/shotwell/src/Photo.vala"
count = _tmp28_ + 1;
#line 24327 "Photo.c"
}
}
}
#line 3261 "/home/jens/Source/shotwell/src/Photo.vala"
_photo_cached_pixbuf_unref0 (cached_pixbuf);
#line 24333 "Photo.c"
}
#line 3286 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp31_ = found;
#line 3286 "/home/jens/Source/shotwell/src/Photo.vala"
if (_tmp31_ == NULL) {
#line 24339 "Photo.c"
Photo* _tmp32_ = NULL;
#line 3286 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp32_ = locate;
#line 3286 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp30_ = _tmp32_ != NULL;
#line 24345 "Photo.c"
} else {
#line 3286 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp30_ = FALSE;
#line 24349 "Photo.c"
}
#line 3286 "/home/jens/Source/shotwell/src/Photo.vala"
if (_tmp30_) {
#line 24353 "Photo.c"
gboolean _tmp33_ = FALSE;
#line 3286 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp33_ = keep;
#line 3286 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp29_ = _tmp33_;
#line 24359 "Photo.c"
} else {
#line 3286 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp29_ = FALSE;
#line 24363 "Photo.c"
}
#line 3286 "/home/jens/Source/shotwell/src/Photo.vala"
if (_tmp29_) {
#line 24367 "Photo.c"
GdkPixbuf* _tmp34_ = NULL;
Photo* _tmp35_ = NULL;
Scaling _tmp36_ = {0};
GdkPixbuf* _tmp37_ = NULL;
Photo* _tmp38_ = NULL;
PhotoCachedPixbuf* _tmp39_ = NULL;
#line 3288 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp35_ = locate;
#line 3288 "/home/jens/Source/shotwell/src/Photo.vala"
scaling_for_original (&_tmp36_);
#line 3288 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp37_ = photo_load_raw_pixbuf (_tmp35_, &_tmp36_, PHOTO_EXCEPTION_ALL, BACKING_FETCH_MODE_SOURCE, &_inner_error_);
#line 3288 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp34_ = _tmp37_;
#line 3288 "/home/jens/Source/shotwell/src/Photo.vala"
if (G_UNLIKELY (_inner_error_ != NULL)) {
#line 3288 "/home/jens/Source/shotwell/src/Photo.vala"
_g_object_unref0 (iter);
#line 3288 "/home/jens/Source/shotwell/src/Photo.vala"
_photo_cached_pixbuf_unref0 (found);
#line 24388 "Photo.c"
goto __finally381;
}
#line 3287 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp38_ = locate;
#line 3287 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp39_ = photo_cached_pixbuf_new (_tmp38_, _tmp34_);
#line 3287 "/home/jens/Source/shotwell/src/Photo.vala"
_photo_cached_pixbuf_unref0 (found);
#line 3287 "/home/jens/Source/shotwell/src/Photo.vala"
found = _tmp39_;
#line 3286 "/home/jens/Source/shotwell/src/Photo.vala"
_g_object_unref0 (_tmp34_);
#line 24401 "Photo.c"
} else {
PhotoCachedPixbuf* _tmp40_ = NULL;
#line 3289 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp40_ = found;
#line 3289 "/home/jens/Source/shotwell/src/Photo.vala"
if (_tmp40_ != NULL) {
#line 24408 "Photo.c"
PhotoCachedPixbuf* _tmp41_ = NULL;
GTimer* _tmp42_ = NULL;
#line 3291 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp41_ = found;
#line 3291 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp42_ = _tmp41_->last_touched;
#line 3291 "/home/jens/Source/shotwell/src/Photo.vala"
g_timer_start (_tmp42_);
#line 24417 "Photo.c"
}
}
#line 3295 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp44_ = found;
#line 3295 "/home/jens/Source/shotwell/src/Photo.vala"
if (_tmp44_ != NULL) {
#line 24424 "Photo.c"
gboolean _tmp45_ = FALSE;
#line 3295 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp45_ = keep;
#line 3295 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp43_ = _tmp45_;
#line 24430 "Photo.c"
} else {
#line 3295 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp43_ = FALSE;
#line 24434 "Photo.c"
}
#line 3295 "/home/jens/Source/shotwell/src/Photo.vala"
if (_tmp43_) {
#line 24438 "Photo.c"
GeeLinkedList* _tmp46_ = NULL;
PhotoCachedPixbuf* _tmp47_ = NULL;
PhotoCachedPixbuf* _tmp48_ = NULL;
GTimer* _tmp49_ = NULL;
gdouble _tmp50_ = 0.0;
gdouble _tmp51_ = 0.0;
gdouble _tmp52_ = 0.0;
#line 3296 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp46_ = photo_source_pixbuf_cache;
#line 3296 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp47_ = found;
#line 3296 "/home/jens/Source/shotwell/src/Photo.vala"
gee_abstract_list_insert (G_TYPE_CHECK_INSTANCE_CAST (_tmp46_, GEE_TYPE_ABSTRACT_LIST, GeeAbstractList), 0, _tmp47_);
#line 3301 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp48_ = found;
#line 3301 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp49_ = _tmp48_->last_touched;
#line 3301 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp50_ = g_timer_elapsed (_tmp49_, NULL);
#line 3301 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp51_ = min_elapsed;
#line 3301 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp52_ = MIN (_tmp50_, _tmp51_);
#line 3301 "/home/jens/Source/shotwell/src/Photo.vala"
min_elapsed = _tmp52_;
#line 3305 "/home/jens/Source/shotwell/src/Photo.vala"
while (TRUE) {
#line 24466 "Photo.c"
GeeLinkedList* _tmp53_ = NULL;
gint _tmp54_ = 0;
gint _tmp55_ = 0;
GeeLinkedList* _tmp56_ = NULL;
gpointer _tmp57_ = NULL;
PhotoCachedPixbuf* _tmp58_ = NULL;
#line 3305 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp53_ = photo_source_pixbuf_cache;
#line 3305 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp54_ = gee_abstract_collection_get_size (G_TYPE_CHECK_INSTANCE_CAST (_tmp53_, GEE_TYPE_COLLECTION, GeeCollection));
#line 3305 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp55_ = _tmp54_;
#line 3305 "/home/jens/Source/shotwell/src/Photo.vala"
if (!(_tmp55_ > PHOTO_SOURCE_PIXBUF_MAX_LRU_COUNT)) {
#line 3305 "/home/jens/Source/shotwell/src/Photo.vala"
break;
#line 24483 "Photo.c"
}
#line 3306 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp56_ = photo_source_pixbuf_cache;
#line 3306 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp57_ = gee_deque_poll_tail (G_TYPE_CHECK_INSTANCE_CAST (_tmp56_, GEE_TYPE_DEQUE, GeeDeque));
#line 3306 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp58_ = (PhotoCachedPixbuf*) _tmp57_;
#line 3306 "/home/jens/Source/shotwell/src/Photo.vala"
_photo_cached_pixbuf_unref0 (_tmp58_);
#line 24493 "Photo.c"
}
}
#line 3310 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp59_ = photo_discard_source_id;
#line 3310 "/home/jens/Source/shotwell/src/Photo.vala"
if (_tmp59_ != ((guint) 0)) {
#line 24500 "Photo.c"
guint _tmp60_ = 0U;
#line 3311 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp60_ = photo_discard_source_id;
#line 3311 "/home/jens/Source/shotwell/src/Photo.vala"
g_source_remove (_tmp60_);
#line 3312 "/home/jens/Source/shotwell/src/Photo.vala"
photo_discard_source_id = (guint) 0;
#line 24508 "Photo.c"
}
#line 3316 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp61_ = photo_source_pixbuf_cache;
#line 3316 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp62_ = gee_abstract_collection_get_size (G_TYPE_CHECK_INSTANCE_CAST (_tmp61_, GEE_TYPE_COLLECTION, GeeCollection));
#line 3316 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp63_ = _tmp62_;
#line 3316 "/home/jens/Source/shotwell/src/Photo.vala"
if (_tmp63_ > PHOTO_SOURCE_PIXBUF_MIN_LRU_COUNT) {
#line 24518 "Photo.c"
gdouble _tmp64_ = 0.0;
guint retry_sec = 0U;
gdouble _tmp65_ = 0.0;
gdouble _tmp66_ = 0.0;
guint _tmp67_ = 0U;
guint _tmp68_ = 0U;
#line 3317 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp64_ = min_elapsed;
#line 3317 "/home/jens/Source/shotwell/src/Photo.vala"
_vala_assert (_tmp64_ >= 0.0, "min_elapsed >= 0.0");
#line 3320 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp65_ = min_elapsed;
#line 3320 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp66_ = trunc (_tmp65_);
#line 3320 "/home/jens/Source/shotwell/src/Photo.vala"
retry_sec = PHOTO_SOURCE_PIXBUF_TIME_TO_LIVE_SEC - ((guint) _tmp66_);
#line 3321 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp67_ = retry_sec;
#line 3321 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp68_ = g_timeout_add_seconds_full (G_PRIORITY_LOW, _tmp67_, _photo_trim_source_pixbuf_cache_gsource_func, NULL, NULL);
#line 3321 "/home/jens/Source/shotwell/src/Photo.vala"
photo_discard_source_id = _tmp68_;
#line 24541 "Photo.c"
}
#line 3324 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp70_ = found;
#line 3324 "/home/jens/Source/shotwell/src/Photo.vala"
if (_tmp70_ != NULL) {
#line 24547 "Photo.c"
PhotoCachedPixbuf* _tmp71_ = NULL;
GdkPixbuf* _tmp72_ = NULL;
#line 3324 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp71_ = found;
#line 3324 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp72_ = _tmp71_->pixbuf;
#line 3324 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp69_ = _tmp72_;
#line 24556 "Photo.c"
} else {
#line 3324 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp69_ = NULL;
#line 24560 "Photo.c"
}
#line 3324 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp73_ = _g_object_ref0 (_tmp69_);
#line 3324 "/home/jens/Source/shotwell/src/Photo.vala"
result = _tmp73_;
#line 3324 "/home/jens/Source/shotwell/src/Photo.vala"
_g_object_unref0 (iter);
#line 3324 "/home/jens/Source/shotwell/src/Photo.vala"
_photo_cached_pixbuf_unref0 (found);
#line 24570 "Photo.c"
{
GeeLinkedList* _tmp74_ = NULL;
#line 3253 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp74_ = photo_source_pixbuf_cache;
#line 3253 "/home/jens/Source/shotwell/src/Photo.vala"
g_rec_mutex_unlock (&__lock_photo_source_pixbuf_cache);
#line 24577 "Photo.c"
}
#line 3324 "/home/jens/Source/shotwell/src/Photo.vala"
return result;
#line 24581 "Photo.c"
}
__finally381:
{
GeeLinkedList* _tmp75_ = NULL;
#line 3253 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp75_ = photo_source_pixbuf_cache;
#line 3253 "/home/jens/Source/shotwell/src/Photo.vala"
g_rec_mutex_unlock (&__lock_photo_source_pixbuf_cache);
#line 24590 "Photo.c"
}
#line 3253 "/home/jens/Source/shotwell/src/Photo.vala"
g_propagate_error (error, _inner_error_);
#line 3253 "/home/jens/Source/shotwell/src/Photo.vala"
return NULL;
#line 24596 "Photo.c"
}
}
static gboolean photo_trim_source_pixbuf_cache (void) {
gboolean result = FALSE;
GError * _inner_error_ = NULL;
{
GdkPixbuf* _tmp0_ = NULL;
GdkPixbuf* _tmp1_ = NULL;
#line 3330 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp0_ = photo_run_source_pixbuf_cache (NULL, FALSE, &_inner_error_);
#line 3330 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp1_ = _tmp0_;
#line 3330 "/home/jens/Source/shotwell/src/Photo.vala"
_g_object_unref0 (_tmp1_);
#line 3330 "/home/jens/Source/shotwell/src/Photo.vala"
if (G_UNLIKELY (_inner_error_ != NULL)) {
#line 24615 "Photo.c"
goto __catch382_g_error;
}
}
goto __finally382;
__catch382_g_error:
{
GError* err = NULL;
#line 3329 "/home/jens/Source/shotwell/src/Photo.vala"
err = _inner_error_;
#line 3329 "/home/jens/Source/shotwell/src/Photo.vala"
_inner_error_ = NULL;
#line 3329 "/home/jens/Source/shotwell/src/Photo.vala"
_g_error_free0 (err);
#line 24629 "Photo.c"
}
__finally382:
#line 3329 "/home/jens/Source/shotwell/src/Photo.vala"
if (G_UNLIKELY (_inner_error_ != NULL)) {
#line 3329 "/home/jens/Source/shotwell/src/Photo.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 3329 "/home/jens/Source/shotwell/src/Photo.vala"
g_clear_error (&_inner_error_);
#line 3329 "/home/jens/Source/shotwell/src/Photo.vala"
return FALSE;
#line 24640 "Photo.c"
}
#line 3334 "/home/jens/Source/shotwell/src/Photo.vala"
result = FALSE;
#line 3334 "/home/jens/Source/shotwell/src/Photo.vala"
return result;
#line 24646 "Photo.c"
}
/**
* @brief Get a copy of what's in the cache.
*
* @return A copy of the Pixbuf with the image data from unmodified_precached.
*/
GdkPixbuf* photo_get_prefetched_copy (Photo* self, GError** error) {
GdkPixbuf* result = NULL;
GdkPixbuf* _tmp0_ = NULL;
GdkPixbuf* _tmp1_ = NULL;
GdkPixbuf* _tmp2_ = NULL;
GdkPixbuf* _tmp3_ = NULL;
GdkPixbuf* _tmp4_ = NULL;
GdkPixbuf* _tmp5_ = NULL;
GError * _inner_error_ = NULL;
#line 3342 "/home/jens/Source/shotwell/src/Photo.vala"
g_return_val_if_fail (IS_PHOTO (self), NULL);
#line 3343 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp1_ = photo_run_source_pixbuf_cache (self, TRUE, &_inner_error_);
#line 3343 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp0_ = _tmp1_;
#line 3343 "/home/jens/Source/shotwell/src/Photo.vala"
if (G_UNLIKELY (_inner_error_ != NULL)) {
#line 3343 "/home/jens/Source/shotwell/src/Photo.vala"
g_propagate_error (error, _inner_error_);
#line 3343 "/home/jens/Source/shotwell/src/Photo.vala"
return NULL;
#line 24676 "Photo.c"
}
#line 3343 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp2_ = _tmp0_;
#line 3343 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp0_ = NULL;
#line 3343 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp3_ = _tmp2_;
#line 3343 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp4_ = gdk_pixbuf_copy (_tmp3_);
#line 3343 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp5_ = _tmp4_;
#line 3343 "/home/jens/Source/shotwell/src/Photo.vala"
_g_object_unref0 (_tmp3_);
#line 3343 "/home/jens/Source/shotwell/src/Photo.vala"
result = _tmp5_;
#line 3343 "/home/jens/Source/shotwell/src/Photo.vala"
_g_object_unref0 (_tmp0_);
#line 3343 "/home/jens/Source/shotwell/src/Photo.vala"
return result;
#line 24696 "Photo.c"
}
/**
* @brief Discards the cached version of the unmodified image.
*/
void photo_discard_prefetched (Photo* self) {
GError * _inner_error_ = NULL;
#line 3349 "/home/jens/Source/shotwell/src/Photo.vala"
g_return_if_fail (IS_PHOTO (self));
#line 24707 "Photo.c"
{
GdkPixbuf* _tmp0_ = NULL;
GdkPixbuf* _tmp1_ = NULL;
#line 3351 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp0_ = photo_run_source_pixbuf_cache (self, FALSE, &_inner_error_);
#line 3351 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp1_ = _tmp0_;
#line 3351 "/home/jens/Source/shotwell/src/Photo.vala"
_g_object_unref0 (_tmp1_);
#line 3351 "/home/jens/Source/shotwell/src/Photo.vala"
if (G_UNLIKELY (_inner_error_ != NULL)) {
#line 24719 "Photo.c"
goto __catch383_g_error;
}
}
goto __finally383;
__catch383_g_error:
{
GError* err = NULL;
#line 3350 "/home/jens/Source/shotwell/src/Photo.vala"
err = _inner_error_;
#line 3350 "/home/jens/Source/shotwell/src/Photo.vala"
_inner_error_ = NULL;
#line 3350 "/home/jens/Source/shotwell/src/Photo.vala"
_g_error_free0 (err);
#line 24733 "Photo.c"
}
__finally383:
#line 3350 "/home/jens/Source/shotwell/src/Photo.vala"
if (G_UNLIKELY (_inner_error_ != NULL)) {
#line 3350 "/home/jens/Source/shotwell/src/Photo.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 3350 "/home/jens/Source/shotwell/src/Photo.vala"
g_clear_error (&_inner_error_);
#line 3350 "/home/jens/Source/shotwell/src/Photo.vala"
return;
#line 24744 "Photo.c"
}
}
/**
* @brief Returns a fully transformed and scaled pixbuf. Transformations may be excluded via
* the mask. If the image is smaller than the scaling, it will be returned in its actual size.
* The caller is responsible for scaling thereafter.
*
* @param scaling A scaling object that describes the size the output pixbuf should be.
* @param exceptions The parts of the pipeline that should be skipped; defaults to NONE if
* left unset.
* @param fetch_mode The fetch mode; if left unset, defaults to BASELINE so that
* we get the image exactly as it is in the file.
*/
GdkPixbuf* photo_get_pixbuf_with_options (Photo* self, Scaling* scaling, PhotoException exceptions, BackingFetchMode fetch_mode, GError** error) {
GdkPixbuf* result = NULL;
gboolean _tmp0_ = FALSE;
gboolean _tmp1_ = FALSE;
gboolean _tmp2_ = FALSE;
gboolean _tmp3_ = FALSE;
gboolean _tmp4_ = FALSE;
gboolean is_scaled = FALSE;
gboolean is_cropped = FALSE;
gboolean is_straightened = FALSE;
Dimensions scaled_to_viewport = {0};
Dimensions original = {0};
Dimensions scaled = {0};
EditingToolsRedeyeInstance* redeye_instances = NULL;
gint redeye_instances_length1 = 0;
gint _redeye_instances_size_ = 0;
Box crop = {0};
gdouble straightening_angle = 0.0;
PixelTransformer* transformer = NULL;
Orientation orientation = 0;
GdkPixbuf* pixbuf = NULL;
GdkPixbuf* _tmp33_ = NULL;
PhotoException _tmp34_ = 0;
gboolean _tmp35_ = FALSE;
PhotoException _tmp40_ = 0;
gboolean _tmp41_ = FALSE;
PhotoException _tmp46_ = 0;
gboolean _tmp47_ = FALSE;
PhotoException _tmp85_ = 0;
gboolean _tmp86_ = FALSE;
gboolean _tmp89_ = FALSE;
PhotoException _tmp96_ = 0;
gboolean _tmp97_ = FALSE;
gboolean _tmp101_ = FALSE;
gboolean _tmp102_ = FALSE;
GError * _inner_error_ = NULL;
#line 3367 "/home/jens/Source/shotwell/src/Photo.vala"
g_return_val_if_fail (IS_PHOTO (self), NULL);
#line 3367 "/home/jens/Source/shotwell/src/Photo.vala"
g_return_val_if_fail (scaling != NULL, NULL);
#line 3380 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp3_ = photo_get_develop_raw_photos_to_files ();
#line 3380 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp4_ = _tmp3_;
#line 3380 "/home/jens/Source/shotwell/src/Photo.vala"
if (_tmp4_) {
#line 24806 "Photo.c"
PhotoFileFormat _tmp5_ = 0;
#line 3381 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp5_ = photo_get_master_file_format (self);
#line 3381 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp2_ = _tmp5_ == PHOTO_FILE_FORMAT_RAW;
#line 24812 "Photo.c"
} else {
#line 3380 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp2_ = FALSE;
#line 24816 "Photo.c"
}
#line 3380 "/home/jens/Source/shotwell/src/Photo.vala"
if (_tmp2_) {
#line 24820 "Photo.c"
gboolean _tmp6_ = FALSE;
gboolean _tmp7_ = FALSE;
BackingFetchMode _tmp8_ = 0;
#line 3382 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp8_ = fetch_mode;
#line 3382 "/home/jens/Source/shotwell/src/Photo.vala"
if (_tmp8_ == BACKING_FETCH_MODE_BASELINE) {
#line 3382 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp7_ = TRUE;
#line 24830 "Photo.c"
} else {
BackingFetchMode _tmp9_ = 0;
#line 3382 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp9_ = fetch_mode;
#line 3382 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp7_ = _tmp9_ == BACKING_FETCH_MODE_UNMODIFIED;
#line 24837 "Photo.c"
}
#line 3382 "/home/jens/Source/shotwell/src/Photo.vala"
if (_tmp7_) {
#line 3382 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp6_ = TRUE;
#line 24843 "Photo.c"
} else {
BackingFetchMode _tmp10_ = 0;
#line 3383 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp10_ = fetch_mode;
#line 3383 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp6_ = _tmp10_ == BACKING_FETCH_MODE_SOURCE;
#line 24850 "Photo.c"
}
#line 3382 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp1_ = _tmp6_;
#line 24854 "Photo.c"
} else {
#line 3380 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp1_ = FALSE;
#line 24858 "Photo.c"
}
#line 3380 "/home/jens/Source/shotwell/src/Photo.vala"
if (_tmp1_) {
#line 24862 "Photo.c"
RawDeveloper _tmp11_ = 0;
gboolean _tmp12_ = FALSE;
#line 3384 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp11_ = photo_get_raw_developer (self);
#line 3384 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp12_ = photo_is_raw_developer_complete (self, _tmp11_);
#line 3384 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp0_ = !_tmp12_;
#line 24871 "Photo.c"
} else {
#line 3380 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp0_ = FALSE;
#line 24875 "Photo.c"
}
#line 3380 "/home/jens/Source/shotwell/src/Photo.vala"
if (_tmp0_) {
#line 24879 "Photo.c"
RawDeveloper _tmp13_ = 0;
#line 3385 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp13_ = photo_get_raw_developer (self);
#line 3385 "/home/jens/Source/shotwell/src/Photo.vala"
photo_set_raw_developer (self, _tmp13_);
#line 24885 "Photo.c"
}
#line 3390 "/home/jens/Source/shotwell/src/Photo.vala"
dimensions_init (&original, 0, 0);
#line 3391 "/home/jens/Source/shotwell/src/Photo.vala"
dimensions_init (&scaled, 0, 0);
#line 3392 "/home/jens/Source/shotwell/src/Photo.vala"
redeye_instances = NULL;
#line 3392 "/home/jens/Source/shotwell/src/Photo.vala"
redeye_instances_length1 = 0;
#line 3392 "/home/jens/Source/shotwell/src/Photo.vala"
_redeye_instances_size_ = redeye_instances_length1;
#line 3395 "/home/jens/Source/shotwell/src/Photo.vala"
transformer = NULL;
#line 24899 "Photo.c"
{
PhotoRow* _tmp14_ = NULL;
#line 3398 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp14_ = self->row;
#line 3398 "/home/jens/Source/shotwell/src/Photo.vala"
g_rec_mutex_lock (&self->priv->__lock_row);
#line 24906 "Photo.c"
{
Dimensions _tmp15_ = {0};
PhotoException _tmp16_ = 0;
Dimensions _tmp17_ = {0};
Dimensions _tmp18_ = {0};
Dimensions _tmp19_ = {0};
Dimensions _tmp20_ = {0};
Dimensions _tmp21_ = {0};
gboolean _tmp22_ = FALSE;
gint _tmp23_ = 0;
EditingToolsRedeyeInstance* _tmp24_ = NULL;
Box _tmp25_ = {0};
gboolean _tmp26_ = FALSE;
gdouble _tmp27_ = 0.0;
gboolean _tmp28_ = FALSE;
gboolean _tmp29_ = FALSE;
Orientation _tmp31_ = 0;
#line 3399 "/home/jens/Source/shotwell/src/Photo.vala"
media_source_get_dimensions (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_MEDIA_SOURCE, MediaSource), PHOTO_EXCEPTION_ALL, &_tmp15_);
#line 3399 "/home/jens/Source/shotwell/src/Photo.vala"
original = _tmp15_;
#line 3400 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp16_ = exceptions;
#line 3400 "/home/jens/Source/shotwell/src/Photo.vala"
media_source_get_dimensions (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_MEDIA_SOURCE, MediaSource), _tmp16_, &_tmp17_);
#line 3400 "/home/jens/Source/shotwell/src/Photo.vala"
scaling_get_scaled_dimensions (scaling, &_tmp17_, &_tmp18_);
#line 3400 "/home/jens/Source/shotwell/src/Photo.vala"
scaled = _tmp18_;
#line 3401 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp19_ = scaled;
#line 3401 "/home/jens/Source/shotwell/src/Photo.vala"
scaled_to_viewport = _tmp19_;
#line 3403 "/home/jens/Source/shotwell/src/Photo.vala"
media_source_get_dimensions (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_MEDIA_SOURCE, MediaSource), PHOTO_EXCEPTION_NONE, &_tmp20_);
#line 3403 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp21_ = scaled;
#line 3403 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp22_ = dimensions_equals (&_tmp20_, &_tmp21_);
#line 3403 "/home/jens/Source/shotwell/src/Photo.vala"
is_scaled = !_tmp22_;
#line 3405 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp24_ = photo_get_raw_redeye_instances (self, &_tmp23_);
#line 3405 "/home/jens/Source/shotwell/src/Photo.vala"
redeye_instances = (g_free (redeye_instances), NULL);
#line 3405 "/home/jens/Source/shotwell/src/Photo.vala"
redeye_instances = _tmp24_;
#line 3405 "/home/jens/Source/shotwell/src/Photo.vala"
redeye_instances_length1 = _tmp23_;
#line 3405 "/home/jens/Source/shotwell/src/Photo.vala"
_redeye_instances_size_ = redeye_instances_length1;
#line 3407 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp26_ = photo_get_raw_crop (self, &_tmp25_);
#line 3407 "/home/jens/Source/shotwell/src/Photo.vala"
crop = _tmp25_;
#line 3407 "/home/jens/Source/shotwell/src/Photo.vala"
is_cropped = _tmp26_;
#line 3409 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp28_ = photo_get_raw_straighten (self, &_tmp27_);
#line 3409 "/home/jens/Source/shotwell/src/Photo.vala"
straightening_angle = _tmp27_;
#line 3409 "/home/jens/Source/shotwell/src/Photo.vala"
is_straightened = _tmp28_;
#line 3411 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp29_ = photo_has_color_adjustments (self);
#line 3411 "/home/jens/Source/shotwell/src/Photo.vala"
if (_tmp29_) {
#line 24974 "Photo.c"
PixelTransformer* _tmp30_ = NULL;
#line 3412 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp30_ = photo_get_pixel_transformer (self);
#line 3412 "/home/jens/Source/shotwell/src/Photo.vala"
_pixel_transformer_unref0 (transformer);
#line 3412 "/home/jens/Source/shotwell/src/Photo.vala"
transformer = _tmp30_;
#line 24982 "Photo.c"
}
#line 3414 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp31_ = photo_get_orientation (self);
#line 3414 "/home/jens/Source/shotwell/src/Photo.vala"
orientation = _tmp31_;
#line 24988 "Photo.c"
}
__finally384:
{
PhotoRow* _tmp32_ = NULL;
#line 3398 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp32_ = self->row;
#line 3398 "/home/jens/Source/shotwell/src/Photo.vala"
g_rec_mutex_unlock (&self->priv->__lock_row);
#line 24997 "Photo.c"
}
#line 3398 "/home/jens/Source/shotwell/src/Photo.vala"
if (G_UNLIKELY (_inner_error_ != NULL)) {
#line 3398 "/home/jens/Source/shotwell/src/Photo.vala"
g_propagate_error (error, _inner_error_);
#line 3398 "/home/jens/Source/shotwell/src/Photo.vala"
_pixel_transformer_unref0 (transformer);
#line 3398 "/home/jens/Source/shotwell/src/Photo.vala"
redeye_instances = (g_free (redeye_instances), NULL);
#line 3398 "/home/jens/Source/shotwell/src/Photo.vala"
return NULL;
#line 25009 "Photo.c"
}
}
#line 3421 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp33_ = photo_get_prefetched_copy (self, &_inner_error_);
#line 3421 "/home/jens/Source/shotwell/src/Photo.vala"
pixbuf = _tmp33_;
#line 3421 "/home/jens/Source/shotwell/src/Photo.vala"
if (G_UNLIKELY (_inner_error_ != NULL)) {
#line 3421 "/home/jens/Source/shotwell/src/Photo.vala"
g_propagate_error (error, _inner_error_);
#line 3421 "/home/jens/Source/shotwell/src/Photo.vala"
_pixel_transformer_unref0 (transformer);
#line 3421 "/home/jens/Source/shotwell/src/Photo.vala"
redeye_instances = (g_free (redeye_instances), NULL);
#line 3421 "/home/jens/Source/shotwell/src/Photo.vala"
return NULL;
#line 25026 "Photo.c"
}
#line 3428 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp34_ = exceptions;
#line 3428 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp35_ = photo_exception_allows (_tmp34_, PHOTO_EXCEPTION_REDEYE);
#line 3428 "/home/jens/Source/shotwell/src/Photo.vala"
if (_tmp35_) {
#line 25034 "Photo.c"
EditingToolsRedeyeInstance* _tmp36_ = NULL;
gint _tmp36__length1 = 0;
#line 3433 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp36_ = redeye_instances;
#line 3433 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp36__length1 = redeye_instances_length1;
#line 25041 "Photo.c"
{
EditingToolsRedeyeInstance* instance_collection = NULL;
gint instance_collection_length1 = 0;
gint _instance_collection_size_ = 0;
gint instance_it = 0;
#line 3433 "/home/jens/Source/shotwell/src/Photo.vala"
instance_collection = _tmp36_;
#line 3433 "/home/jens/Source/shotwell/src/Photo.vala"
instance_collection_length1 = _tmp36__length1;
#line 3433 "/home/jens/Source/shotwell/src/Photo.vala"
for (instance_it = 0; instance_it < _tmp36__length1; instance_it = instance_it + 1) {
#line 25053 "Photo.c"
EditingToolsRedeyeInstance instance = {0};
#line 3433 "/home/jens/Source/shotwell/src/Photo.vala"
instance = instance_collection[instance_it];
#line 25057 "Photo.c"
{
GdkPixbuf* _tmp37_ = NULL;
EditingToolsRedeyeInstance _tmp38_ = {0};
GdkPixbuf* _tmp39_ = NULL;
#line 3434 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp37_ = pixbuf;
#line 3434 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp38_ = instance;
#line 3434 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp39_ = photo_do_redeye (self, _tmp37_, &_tmp38_);
#line 3434 "/home/jens/Source/shotwell/src/Photo.vala"
_g_object_unref0 (pixbuf);
#line 3434 "/home/jens/Source/shotwell/src/Photo.vala"
pixbuf = _tmp39_;
#line 25072 "Photo.c"
}
}
}
}
#line 3442 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp40_ = exceptions;
#line 3442 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp41_ = photo_exception_allows (_tmp40_, PHOTO_EXCEPTION_STRAIGHTEN);
#line 3442 "/home/jens/Source/shotwell/src/Photo.vala"
if (_tmp41_) {
#line 25083 "Photo.c"
gboolean _tmp42_ = FALSE;
#line 3446 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp42_ = is_straightened;
#line 3446 "/home/jens/Source/shotwell/src/Photo.vala"
if (_tmp42_) {
#line 25089 "Photo.c"
GdkPixbuf* _tmp43_ = NULL;
gdouble _tmp44_ = 0.0;
GdkPixbuf* _tmp45_ = NULL;
#line 3447 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp43_ = pixbuf;
#line 3447 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp44_ = straightening_angle;
#line 3447 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp45_ = rotate_arb (_tmp43_, _tmp44_);
#line 3447 "/home/jens/Source/shotwell/src/Photo.vala"
_g_object_unref0 (pixbuf);
#line 3447 "/home/jens/Source/shotwell/src/Photo.vala"
pixbuf = _tmp45_;
#line 25103 "Photo.c"
}
}
#line 3456 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp46_ = exceptions;
#line 3456 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp47_ = photo_exception_allows (_tmp46_, PHOTO_EXCEPTION_CROP);
#line 3456 "/home/jens/Source/shotwell/src/Photo.vala"
if (_tmp47_) {
#line 25112 "Photo.c"
gboolean _tmp48_ = FALSE;
#line 3460 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp48_ = is_cropped;
#line 3460 "/home/jens/Source/shotwell/src/Photo.vala"
if (_tmp48_) {
#line 25118 "Photo.c"
Box _tmp49_ = {0};
gint _tmp50_ = 0;
GdkPixbuf* _tmp51_ = NULL;
gint _tmp52_ = 0;
gint _tmp53_ = 0;
gint _tmp54_ = 0;
Box _tmp55_ = {0};
gint _tmp56_ = 0;
GdkPixbuf* _tmp57_ = NULL;
gint _tmp58_ = 0;
gint _tmp59_ = 0;
gint _tmp60_ = 0;
Box _tmp61_ = {0};
gint _tmp62_ = 0;
Box _tmp63_ = {0};
gint _tmp64_ = 0;
GdkPixbuf* _tmp65_ = NULL;
gint _tmp66_ = 0;
gint _tmp67_ = 0;
gint _tmp68_ = 0;
Box _tmp69_ = {0};
gint _tmp70_ = 0;
Box _tmp71_ = {0};
gint _tmp72_ = 0;
GdkPixbuf* _tmp73_ = NULL;
gint _tmp74_ = 0;
gint _tmp75_ = 0;
gint _tmp76_ = 0;
GdkPixbuf* _tmp77_ = NULL;
Box _tmp78_ = {0};
gint _tmp79_ = 0;
Box _tmp80_ = {0};
gint _tmp81_ = 0;
gint _tmp82_ = 0;
gint _tmp83_ = 0;
GdkPixbuf* _tmp84_ = NULL;
#line 3465 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp49_ = crop;
#line 3465 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp50_ = _tmp49_.left;
#line 3465 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp51_ = pixbuf;
#line 3465 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp52_ = gdk_pixbuf_get_width (_tmp51_);
#line 3465 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp53_ = _tmp52_;
#line 3465 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp54_ = CLAMP (_tmp50_, 0, _tmp53_ - 2);
#line 3465 "/home/jens/Source/shotwell/src/Photo.vala"
crop.left = _tmp54_;
#line 3466 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp55_ = crop;
#line 3466 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp56_ = _tmp55_.top;
#line 3466 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp57_ = pixbuf;
#line 3466 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp58_ = gdk_pixbuf_get_height (_tmp57_);
#line 3466 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp59_ = _tmp58_;
#line 3466 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp60_ = CLAMP (_tmp56_, 0, _tmp59_ - 2);
#line 3466 "/home/jens/Source/shotwell/src/Photo.vala"
crop.top = _tmp60_;
#line 3468 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp61_ = crop;
#line 3468 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp62_ = _tmp61_.right;
#line 3468 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp63_ = crop;
#line 3468 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp64_ = _tmp63_.left;
#line 3468 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp65_ = pixbuf;
#line 3468 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp66_ = gdk_pixbuf_get_width (_tmp65_);
#line 3468 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp67_ = _tmp66_;
#line 3468 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp68_ = CLAMP (_tmp62_, _tmp64_ + 1, _tmp67_ - 1);
#line 3468 "/home/jens/Source/shotwell/src/Photo.vala"
crop.right = _tmp68_;
#line 3469 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp69_ = crop;
#line 3469 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp70_ = _tmp69_.bottom;
#line 3469 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp71_ = crop;
#line 3469 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp72_ = _tmp71_.top;
#line 3469 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp73_ = pixbuf;
#line 3469 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp74_ = gdk_pixbuf_get_height (_tmp73_);
#line 3469 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp75_ = _tmp74_;
#line 3469 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp76_ = CLAMP (_tmp70_, _tmp72_ + 1, _tmp75_ - 1);
#line 3469 "/home/jens/Source/shotwell/src/Photo.vala"
crop.bottom = _tmp76_;
#line 3471 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp77_ = pixbuf;
#line 3471 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp78_ = crop;
#line 3471 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp79_ = _tmp78_.left;
#line 3471 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp80_ = crop;
#line 3471 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp81_ = _tmp80_.top;
#line 3471 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp82_ = box_get_width (&crop);
#line 3471 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp83_ = box_get_height (&crop);
#line 3471 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp84_ = gdk_pixbuf_new_subpixbuf (_tmp77_, _tmp79_, _tmp81_, _tmp82_, _tmp83_);
#line 3471 "/home/jens/Source/shotwell/src/Photo.vala"
_g_object_unref0 (pixbuf);
#line 3471 "/home/jens/Source/shotwell/src/Photo.vala"
pixbuf = _tmp84_;
#line 25239 "Photo.c"
}
}
#line 3481 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp85_ = exceptions;
#line 3481 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp86_ = photo_exception_allows (_tmp85_, PHOTO_EXCEPTION_ORIENTATION);
#line 3481 "/home/jens/Source/shotwell/src/Photo.vala"
if (_tmp86_) {
#line 25248 "Photo.c"
GdkPixbuf* _tmp87_ = NULL;
GdkPixbuf* _tmp88_ = NULL;
#line 3485 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp87_ = pixbuf;
#line 3485 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp88_ = orientation_rotate_pixbuf (orientation, _tmp87_);
#line 3485 "/home/jens/Source/shotwell/src/Photo.vala"
_g_object_unref0 (pixbuf);
#line 3485 "/home/jens/Source/shotwell/src/Photo.vala"
pixbuf = _tmp88_;
#line 25259 "Photo.c"
}
#line 3492 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp89_ = is_scaled;
#line 3492 "/home/jens/Source/shotwell/src/Photo.vala"
if (_tmp89_) {
#line 25265 "Photo.c"
GdkPixbuf* _tmp90_ = NULL;
Dimensions _tmp91_ = {0};
gint _tmp92_ = 0;
Dimensions _tmp93_ = {0};
gint _tmp94_ = 0;
GdkPixbuf* _tmp95_ = NULL;
#line 3496 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp90_ = pixbuf;
#line 3496 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp91_ = scaled_to_viewport;
#line 3496 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp92_ = _tmp91_.width;
#line 3496 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp93_ = scaled_to_viewport;
#line 3496 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp94_ = _tmp93_.height;
#line 3496 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp95_ = gdk_pixbuf_scale_simple (_tmp90_, _tmp92_, _tmp94_, GDK_INTERP_BILINEAR);
#line 3496 "/home/jens/Source/shotwell/src/Photo.vala"
_g_object_unref0 (pixbuf);
#line 3496 "/home/jens/Source/shotwell/src/Photo.vala"
pixbuf = _tmp95_;
#line 25288 "Photo.c"
}
#line 3504 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp96_ = exceptions;
#line 3504 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp97_ = photo_exception_allows (_tmp96_, PHOTO_EXCEPTION_ADJUST);
#line 3504 "/home/jens/Source/shotwell/src/Photo.vala"
if (_tmp97_) {
#line 25296 "Photo.c"
PixelTransformer* _tmp98_ = NULL;
#line 3508 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp98_ = transformer;
#line 3508 "/home/jens/Source/shotwell/src/Photo.vala"
if (_tmp98_ != NULL) {
#line 25302 "Photo.c"
PixelTransformer* _tmp99_ = NULL;
GdkPixbuf* _tmp100_ = NULL;
#line 3509 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp99_ = transformer;
#line 3509 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp100_ = pixbuf;
#line 3509 "/home/jens/Source/shotwell/src/Photo.vala"
pixel_transformer_transform_pixbuf (_tmp99_, _tmp100_, NULL);
#line 25311 "Photo.c"
}
}
#line 3518 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp102_ = is_scaled;
#line 3518 "/home/jens/Source/shotwell/src/Photo.vala"
if (_tmp102_) {
#line 25318 "Photo.c"
gboolean _tmp103_ = FALSE;
#line 3518 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp103_ = is_straightened;
#line 3518 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp101_ = !_tmp103_;
#line 25324 "Photo.c"
} else {
#line 3518 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp101_ = FALSE;
#line 25328 "Photo.c"
}
#line 3518 "/home/jens/Source/shotwell/src/Photo.vala"
if (_tmp101_) {
#line 25332 "Photo.c"
GdkPixbuf* _tmp104_ = NULL;
Dimensions _tmp105_ = {0};
gboolean _tmp106_ = FALSE;
#line 3519 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp104_ = pixbuf;
#line 3519 "/home/jens/Source/shotwell/src/Photo.vala"
dimensions_for_pixbuf (_tmp104_, &_tmp105_);
#line 3519 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp106_ = dimensions_approx_equals (&scaled_to_viewport, &_tmp105_, PHOTO_SCALING_FUDGE);
#line 3519 "/home/jens/Source/shotwell/src/Photo.vala"
_vala_assert (_tmp106_, "scaled_to_viewport.approx_equals(Dimensions.for_pixbuf(pixbuf), SCALING_FUDGE)");
#line 25344 "Photo.c"
}
#line 3527 "/home/jens/Source/shotwell/src/Photo.vala"
result = pixbuf;
#line 3527 "/home/jens/Source/shotwell/src/Photo.vala"
_pixel_transformer_unref0 (transformer);
#line 3527 "/home/jens/Source/shotwell/src/Photo.vala"
redeye_instances = (g_free (redeye_instances), NULL);
#line 3527 "/home/jens/Source/shotwell/src/Photo.vala"
return result;
#line 25354 "Photo.c"
}
static gboolean photo_real_has_user_generated_metadata (Photo* self) {
#line 3535 "/home/jens/Source/shotwell/src/Photo.vala"
g_critical ("Type `%s' does not implement abstract method `photo_has_user_generated_metadata'", g_type_name (G_TYPE_FROM_INSTANCE (self)));
#line 3535 "/home/jens/Source/shotwell/src/Photo.vala"
return FALSE;
#line 25363 "Photo.c"
}
gboolean photo_has_user_generated_metadata (Photo* self) {
#line 3535 "/home/jens/Source/shotwell/src/Photo.vala"
g_return_val_if_fail (IS_PHOTO (self), FALSE);
#line 3535 "/home/jens/Source/shotwell/src/Photo.vala"
return PHOTO_GET_CLASS (self)->has_user_generated_metadata (self);
#line 25372 "Photo.c"
}
static void photo_real_set_user_metadata_for_export (Photo* self, PhotoMetadata* metadata) {
#line 3539 "/home/jens/Source/shotwell/src/Photo.vala"
g_critical ("Type `%s' does not implement abstract method `photo_set_user_metadata_for_export'", g_type_name (G_TYPE_FROM_INSTANCE (self)));
#line 3539 "/home/jens/Source/shotwell/src/Photo.vala"
return;
#line 25381 "Photo.c"
}
void photo_set_user_metadata_for_export (Photo* self, PhotoMetadata* metadata) {
#line 3539 "/home/jens/Source/shotwell/src/Photo.vala"
g_return_if_fail (IS_PHOTO (self));
#line 3539 "/home/jens/Source/shotwell/src/Photo.vala"
PHOTO_GET_CLASS (self)->set_user_metadata_for_export (self, metadata);
#line 25390 "Photo.c"
}
gchar* photo_get_export_basename (Photo* self, PhotoFileFormat* file_format) {
gchar* result = NULL;
PhotoFileFormat* _tmp0_ = NULL;
#line 3546 "/home/jens/Source/shotwell/src/Photo.vala"
g_return_val_if_fail (IS_PHOTO (self), NULL);
#line 3547 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp0_ = file_format;
#line 3547 "/home/jens/Source/shotwell/src/Photo.vala"
if (_tmp0_ != NULL) {
#line 25403 "Photo.c"
PhotoFileFormat* _tmp1_ = NULL;
PhotoFileFormatProperties* _tmp2_ = NULL;
PhotoFileFormatProperties* _tmp3_ = NULL;
GFile* _tmp4_ = NULL;
GFile* _tmp5_ = NULL;
GFile* _tmp6_ = NULL;
GFile* _tmp7_ = NULL;
gchar* _tmp8_ = NULL;
gchar* _tmp9_ = NULL;
#line 3548 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp1_ = file_format;
#line 3548 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp2_ = photo_file_format_get_properties (*_tmp1_);
#line 3548 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp3_ = _tmp2_;
#line 3548 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp4_ = media_source_get_master_file (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_MEDIA_SOURCE, MediaSource));
#line 3548 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp5_ = _tmp4_;
#line 3548 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp6_ = photo_file_format_properties_convert_file_extension (_tmp3_, _tmp5_);
#line 3548 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp7_ = _tmp6_;
#line 3548 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp8_ = g_file_get_basename (_tmp7_);
#line 3548 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp9_ = _tmp8_;
#line 3548 "/home/jens/Source/shotwell/src/Photo.vala"
_g_object_unref0 (_tmp7_);
#line 3548 "/home/jens/Source/shotwell/src/Photo.vala"
_g_object_unref0 (_tmp5_);
#line 3548 "/home/jens/Source/shotwell/src/Photo.vala"
_photo_file_format_properties_unref0 (_tmp3_);
#line 3548 "/home/jens/Source/shotwell/src/Photo.vala"
result = _tmp9_;
#line 3548 "/home/jens/Source/shotwell/src/Photo.vala"
return result;
#line 25441 "Photo.c"
} else {
PhotoFileFormat _tmp10_ = 0;
gboolean _tmp11_ = FALSE;
#line 3550 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp10_ = photo_get_file_format (self);
#line 3550 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp11_ = photo_file_format_can_write (_tmp10_);
#line 3550 "/home/jens/Source/shotwell/src/Photo.vala"
if (_tmp11_) {
#line 25451 "Photo.c"
PhotoFileFormat _tmp12_ = 0;
PhotoFileFormatProperties* _tmp13_ = NULL;
PhotoFileFormatProperties* _tmp14_ = NULL;
GFile* _tmp15_ = NULL;
GFile* _tmp16_ = NULL;
GFile* _tmp17_ = NULL;
GFile* _tmp18_ = NULL;
gchar* _tmp19_ = NULL;
gchar* _tmp20_ = NULL;
#line 3551 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp12_ = photo_get_file_format (self);
#line 3551 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp13_ = photo_file_format_get_properties (_tmp12_);
#line 3551 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp14_ = _tmp13_;
#line 3551 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp15_ = media_source_get_master_file (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_MEDIA_SOURCE, MediaSource));
#line 3551 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp16_ = _tmp15_;
#line 3551 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp17_ = photo_file_format_properties_convert_file_extension (_tmp14_, _tmp16_);
#line 3551 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp18_ = _tmp17_;
#line 3551 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp19_ = g_file_get_basename (_tmp18_);
#line 3551 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp20_ = _tmp19_;
#line 3551 "/home/jens/Source/shotwell/src/Photo.vala"
_g_object_unref0 (_tmp18_);
#line 3551 "/home/jens/Source/shotwell/src/Photo.vala"
_g_object_unref0 (_tmp16_);
#line 3551 "/home/jens/Source/shotwell/src/Photo.vala"
_photo_file_format_properties_unref0 (_tmp14_);
#line 3551 "/home/jens/Source/shotwell/src/Photo.vala"
result = _tmp20_;
#line 3551 "/home/jens/Source/shotwell/src/Photo.vala"
return result;
#line 25489 "Photo.c"
} else {
PhotoFileFormat _tmp21_ = 0;
PhotoFileFormatProperties* _tmp22_ = NULL;
PhotoFileFormatProperties* _tmp23_ = NULL;
GFile* _tmp24_ = NULL;
GFile* _tmp25_ = NULL;
GFile* _tmp26_ = NULL;
GFile* _tmp27_ = NULL;
gchar* _tmp28_ = NULL;
gchar* _tmp29_ = NULL;
#line 3554 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp21_ = photo_file_format_get_system_default_format ();
#line 3554 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp22_ = photo_file_format_get_properties (_tmp21_);
#line 3554 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp23_ = _tmp22_;
#line 3554 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp24_ = media_source_get_master_file (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_MEDIA_SOURCE, MediaSource));
#line 3554 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp25_ = _tmp24_;
#line 3554 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp26_ = photo_file_format_properties_convert_file_extension (_tmp23_, _tmp25_);
#line 3554 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp27_ = _tmp26_;
#line 3554 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp28_ = g_file_get_basename (_tmp27_);
#line 3554 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp29_ = _tmp28_;
#line 3554 "/home/jens/Source/shotwell/src/Photo.vala"
_g_object_unref0 (_tmp27_);
#line 3554 "/home/jens/Source/shotwell/src/Photo.vala"
_g_object_unref0 (_tmp25_);
#line 3554 "/home/jens/Source/shotwell/src/Photo.vala"
_photo_file_format_properties_unref0 (_tmp23_);
#line 3554 "/home/jens/Source/shotwell/src/Photo.vala"
result = _tmp29_;
#line 3554 "/home/jens/Source/shotwell/src/Photo.vala"
return result;
#line 25528 "Photo.c"
}
}
}
static gboolean photo_export_fullsized_backing (Photo* self, GFile* file, gboolean export_metadata, GError** error) {
gboolean result = FALSE;
PhotoFileReader* export_reader = NULL;
gboolean is_master = FALSE;
PhotoFileReader* _tmp29_ = NULL;
PhotoFileFormatProperties* format_properties = NULL;
PhotoFileReader* _tmp30_ = NULL;
PhotoFileFormat _tmp31_ = 0;
PhotoFileFormatProperties* _tmp32_ = NULL;
GFile* dest_file = NULL;
PhotoFileFormatProperties* _tmp33_ = NULL;
GFile* _tmp34_ = NULL;
GFile* _tmp35_ = NULL;
PhotoFileMetadataWriter* writer = NULL;
PhotoFileReader* _tmp36_ = NULL;
PhotoFileFormat _tmp37_ = 0;
GFile* _tmp38_ = NULL;
gchar* _tmp39_ = NULL;
gchar* _tmp40_ = NULL;
PhotoFileMetadataWriter* _tmp41_ = NULL;
PhotoFileMetadataWriter* _tmp42_ = NULL;
gchar* _tmp43_ = NULL;
gchar* _tmp44_ = NULL;
PhotoFileMetadataWriter* _tmp45_ = NULL;
gchar* _tmp46_ = NULL;
gchar* _tmp47_ = NULL;
PhotoFileReader* _tmp48_ = NULL;
GFile* _tmp49_ = NULL;
GFile* _tmp50_ = NULL;
GFile* _tmp51_ = NULL;
gboolean _tmp52_ = FALSE;
gboolean _tmp53_ = FALSE;
gboolean _tmp54_ = FALSE;
gboolean _tmp55_ = FALSE;
gboolean _tmp56_ = FALSE;
gboolean _tmp57_ = FALSE;
PhotoMetadata* metadata = NULL;
PhotoFileReader* _tmp65_ = NULL;
PhotoMetadata* _tmp66_ = NULL;
PhotoMetadata* _tmp67_ = NULL;
PhotoFileMetadataWriter* _tmp71_ = NULL;
gchar* _tmp72_ = NULL;
gchar* _tmp73_ = NULL;
time_t _tmp74_ = 0;
gboolean _tmp80_ = FALSE;
PhotoFileMetadataWriter* _tmp97_ = NULL;
PhotoMetadata* _tmp98_ = NULL;
GError * _inner_error_ = NULL;
#line 3560 "/home/jens/Source/shotwell/src/Photo.vala"
g_return_val_if_fail (IS_PHOTO (self), FALSE);
#line 3560 "/home/jens/Source/shotwell/src/Photo.vala"
g_return_val_if_fail (G_IS_FILE (file), FALSE);
#line 3563 "/home/jens/Source/shotwell/src/Photo.vala"
export_reader = NULL;
#line 3564 "/home/jens/Source/shotwell/src/Photo.vala"
is_master = TRUE;
#line 25590 "Photo.c"
{
PhotoBackingReaders* _tmp0_ = NULL;
#line 3565 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp0_ = self->priv->readers;
#line 3565 "/home/jens/Source/shotwell/src/Photo.vala"
g_rec_mutex_lock (&self->priv->__lock_readers);
#line 25597 "Photo.c"
{
gboolean _tmp1_ = FALSE;
PhotoBackingReaders* _tmp2_ = NULL;
PhotoFileReader* _tmp3_ = NULL;
#line 3566 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp2_ = self->priv->readers;
#line 3566 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp3_ = _tmp2_->editable;
#line 3566 "/home/jens/Source/shotwell/src/Photo.vala"
if (_tmp3_ != NULL) {
#line 25608 "Photo.c"
PhotoBackingReaders* _tmp4_ = NULL;
PhotoFileReader* _tmp5_ = NULL;
PhotoFileFormat _tmp6_ = 0;
gboolean _tmp7_ = FALSE;
#line 3566 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp4_ = self->priv->readers;
#line 3566 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp5_ = _tmp4_->editable;
#line 3566 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp6_ = photo_file_adapter_get_file_format (G_TYPE_CHECK_INSTANCE_CAST (_tmp5_, TYPE_PHOTO_FILE_ADAPTER, PhotoFileAdapter));
#line 3566 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp7_ = photo_file_format_can_write_metadata (_tmp6_);
#line 3566 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp1_ = _tmp7_;
#line 25623 "Photo.c"
} else {
#line 3566 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp1_ = FALSE;
#line 25627 "Photo.c"
}
#line 3566 "/home/jens/Source/shotwell/src/Photo.vala"
if (_tmp1_) {
#line 25631 "Photo.c"
PhotoBackingReaders* _tmp8_ = NULL;
PhotoFileReader* _tmp9_ = NULL;
PhotoFileReader* _tmp10_ = NULL;
#line 3567 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp8_ = self->priv->readers;
#line 3567 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp9_ = _tmp8_->editable;
#line 3567 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp10_ = _photo_file_adapter_ref0 (_tmp9_);
#line 3567 "/home/jens/Source/shotwell/src/Photo.vala"
_photo_file_adapter_unref0 (export_reader);
#line 3567 "/home/jens/Source/shotwell/src/Photo.vala"
export_reader = _tmp10_;
#line 3568 "/home/jens/Source/shotwell/src/Photo.vala"
is_master = FALSE;
#line 25647 "Photo.c"
} else {
gboolean _tmp11_ = FALSE;
PhotoBackingReaders* _tmp12_ = NULL;
PhotoFileReader* _tmp13_ = NULL;
#line 3569 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp12_ = self->priv->readers;
#line 3569 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp13_ = _tmp12_->developer;
#line 3569 "/home/jens/Source/shotwell/src/Photo.vala"
if (_tmp13_ != NULL) {
#line 25658 "Photo.c"
PhotoBackingReaders* _tmp14_ = NULL;
PhotoFileReader* _tmp15_ = NULL;
PhotoFileFormat _tmp16_ = 0;
gboolean _tmp17_ = FALSE;
#line 3569 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp14_ = self->priv->readers;
#line 3569 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp15_ = _tmp14_->developer;
#line 3569 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp16_ = photo_file_adapter_get_file_format (G_TYPE_CHECK_INSTANCE_CAST (_tmp15_, TYPE_PHOTO_FILE_ADAPTER, PhotoFileAdapter));
#line 3569 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp17_ = photo_file_format_can_write_metadata (_tmp16_);
#line 3569 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp11_ = _tmp17_;
#line 25673 "Photo.c"
} else {
#line 3569 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp11_ = FALSE;
#line 25677 "Photo.c"
}
#line 3569 "/home/jens/Source/shotwell/src/Photo.vala"
if (_tmp11_) {
#line 25681 "Photo.c"
PhotoBackingReaders* _tmp18_ = NULL;
PhotoFileReader* _tmp19_ = NULL;
PhotoFileReader* _tmp20_ = NULL;
#line 3570 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp18_ = self->priv->readers;
#line 3570 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp19_ = _tmp18_->developer;
#line 3570 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp20_ = _photo_file_adapter_ref0 (_tmp19_);
#line 3570 "/home/jens/Source/shotwell/src/Photo.vala"
_photo_file_adapter_unref0 (export_reader);
#line 3570 "/home/jens/Source/shotwell/src/Photo.vala"
export_reader = _tmp20_;
#line 3571 "/home/jens/Source/shotwell/src/Photo.vala"
is_master = FALSE;
#line 25697 "Photo.c"
} else {
PhotoBackingReaders* _tmp21_ = NULL;
PhotoFileReader* _tmp22_ = NULL;
PhotoFileFormat _tmp23_ = 0;
gboolean _tmp24_ = FALSE;
#line 3572 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp21_ = self->priv->readers;
#line 3572 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp22_ = _tmp21_->master;
#line 3572 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp23_ = photo_file_adapter_get_file_format (G_TYPE_CHECK_INSTANCE_CAST (_tmp22_, TYPE_PHOTO_FILE_ADAPTER, PhotoFileAdapter));
#line 3572 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp24_ = photo_file_format_can_write_metadata (_tmp23_);
#line 3572 "/home/jens/Source/shotwell/src/Photo.vala"
if (_tmp24_) {
#line 25713 "Photo.c"
PhotoBackingReaders* _tmp25_ = NULL;
PhotoFileReader* _tmp26_ = NULL;
PhotoFileReader* _tmp27_ = NULL;
#line 3573 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp25_ = self->priv->readers;
#line 3573 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp26_ = _tmp25_->master;
#line 3573 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp27_ = _photo_file_adapter_ref0 (_tmp26_);
#line 3573 "/home/jens/Source/shotwell/src/Photo.vala"
_photo_file_adapter_unref0 (export_reader);
#line 3573 "/home/jens/Source/shotwell/src/Photo.vala"
export_reader = _tmp27_;
#line 25727 "Photo.c"
}
}
}
}
__finally385:
{
PhotoBackingReaders* _tmp28_ = NULL;
#line 3565 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp28_ = self->priv->readers;
#line 3565 "/home/jens/Source/shotwell/src/Photo.vala"
g_rec_mutex_unlock (&self->priv->__lock_readers);
#line 25739 "Photo.c"
}
#line 3565 "/home/jens/Source/shotwell/src/Photo.vala"
if (G_UNLIKELY (_inner_error_ != NULL)) {
#line 3565 "/home/jens/Source/shotwell/src/Photo.vala"
g_propagate_error (error, _inner_error_);
#line 3565 "/home/jens/Source/shotwell/src/Photo.vala"
_photo_file_adapter_unref0 (export_reader);
#line 3565 "/home/jens/Source/shotwell/src/Photo.vala"
return FALSE;
#line 25749 "Photo.c"
}
}
#line 3577 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp29_ = export_reader;
#line 3577 "/home/jens/Source/shotwell/src/Photo.vala"
if (_tmp29_ == NULL) {
#line 3578 "/home/jens/Source/shotwell/src/Photo.vala"
result = FALSE;
#line 3578 "/home/jens/Source/shotwell/src/Photo.vala"
_photo_file_adapter_unref0 (export_reader);
#line 3578 "/home/jens/Source/shotwell/src/Photo.vala"
return result;
#line 25762 "Photo.c"
}
#line 3580 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp30_ = export_reader;
#line 3580 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp31_ = photo_file_adapter_get_file_format (G_TYPE_CHECK_INSTANCE_CAST (_tmp30_, TYPE_PHOTO_FILE_ADAPTER, PhotoFileAdapter));
#line 3580 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp32_ = photo_file_format_get_properties (_tmp31_);
#line 3580 "/home/jens/Source/shotwell/src/Photo.vala"
format_properties = _tmp32_;
#line 3583 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp33_ = format_properties;
#line 3583 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp34_ = file;
#line 3583 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp35_ = photo_file_format_properties_convert_file_extension (_tmp33_, _tmp34_);
#line 3583 "/home/jens/Source/shotwell/src/Photo.vala"
dest_file = _tmp35_;
#line 3586 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp36_ = export_reader;
#line 3586 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp37_ = photo_file_adapter_get_file_format (G_TYPE_CHECK_INSTANCE_CAST (_tmp36_, TYPE_PHOTO_FILE_ADAPTER, PhotoFileAdapter));
#line 3586 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp38_ = dest_file;
#line 3586 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp39_ = g_file_get_path (_tmp38_);
#line 3586 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp40_ = _tmp39_;
#line 3586 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp41_ = photo_file_format_create_metadata_writer (_tmp37_, _tmp40_, &_inner_error_);
#line 3586 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp42_ = _tmp41_;
#line 3586 "/home/jens/Source/shotwell/src/Photo.vala"
_g_free0 (_tmp40_);
#line 3586 "/home/jens/Source/shotwell/src/Photo.vala"
writer = _tmp42_;
#line 3586 "/home/jens/Source/shotwell/src/Photo.vala"
if (G_UNLIKELY (_inner_error_ != NULL)) {
#line 3586 "/home/jens/Source/shotwell/src/Photo.vala"
g_propagate_error (error, _inner_error_);
#line 3586 "/home/jens/Source/shotwell/src/Photo.vala"
_g_object_unref0 (dest_file);
#line 3586 "/home/jens/Source/shotwell/src/Photo.vala"
_photo_file_format_properties_unref0 (format_properties);
#line 3586 "/home/jens/Source/shotwell/src/Photo.vala"
_photo_file_adapter_unref0 (export_reader);
#line 3586 "/home/jens/Source/shotwell/src/Photo.vala"
return FALSE;
#line 25810 "Photo.c"
}
#line 3589 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp43_ = data_object_to_string (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_DATA_OBJECT, DataObject));
#line 3589 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp44_ = _tmp43_;
#line 3589 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp45_ = writer;
#line 3589 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp46_ = photo_file_adapter_get_filepath (G_TYPE_CHECK_INSTANCE_CAST (_tmp45_, TYPE_PHOTO_FILE_ADAPTER, PhotoFileAdapter));
#line 3589 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp47_ = _tmp46_;
#line 3589 "/home/jens/Source/shotwell/src/Photo.vala"
g_debug ("Photo.vala:3589: Exporting full-sized copy of %s to %s", _tmp44_, _tmp47_);
#line 3589 "/home/jens/Source/shotwell/src/Photo.vala"
_g_free0 (_tmp47_);
#line 3589 "/home/jens/Source/shotwell/src/Photo.vala"
_g_free0 (_tmp44_);
#line 3591 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp48_ = export_reader;
#line 3591 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp49_ = photo_file_adapter_get_file (G_TYPE_CHECK_INSTANCE_CAST (_tmp48_, TYPE_PHOTO_FILE_ADAPTER, PhotoFileAdapter));
#line 3591 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp50_ = _tmp49_;
#line 3591 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp51_ = dest_file;
#line 3591 "/home/jens/Source/shotwell/src/Photo.vala"
g_file_copy (_tmp50_, _tmp51_, G_FILE_COPY_OVERWRITE | G_FILE_COPY_TARGET_DEFAULT_PERMS, NULL, NULL, NULL, &_inner_error_);
#line 3591 "/home/jens/Source/shotwell/src/Photo.vala"
_g_object_unref0 (_tmp50_);
#line 3591 "/home/jens/Source/shotwell/src/Photo.vala"
if (G_UNLIKELY (_inner_error_ != NULL)) {
#line 3591 "/home/jens/Source/shotwell/src/Photo.vala"
g_propagate_error (error, _inner_error_);
#line 3591 "/home/jens/Source/shotwell/src/Photo.vala"
_photo_file_adapter_unref0 (writer);
#line 3591 "/home/jens/Source/shotwell/src/Photo.vala"
_g_object_unref0 (dest_file);
#line 3591 "/home/jens/Source/shotwell/src/Photo.vala"
_photo_file_format_properties_unref0 (format_properties);
#line 3591 "/home/jens/Source/shotwell/src/Photo.vala"
_photo_file_adapter_unref0 (export_reader);
#line 3591 "/home/jens/Source/shotwell/src/Photo.vala"
return FALSE;
#line 25854 "Photo.c"
}
#line 3596 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp57_ = photo_has_alterations (self);
#line 3596 "/home/jens/Source/shotwell/src/Photo.vala"
if (!_tmp57_) {
#line 25860 "Photo.c"
gboolean _tmp58_ = FALSE;
#line 3596 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp58_ = is_master;
#line 3596 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp56_ = _tmp58_;
#line 25866 "Photo.c"
} else {
#line 3596 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp56_ = FALSE;
#line 25870 "Photo.c"
}
#line 3596 "/home/jens/Source/shotwell/src/Photo.vala"
if (_tmp56_) {
#line 25874 "Photo.c"
gboolean _tmp59_ = FALSE;
#line 3596 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp59_ = photo_has_user_generated_metadata (self);
#line 3596 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp55_ = !_tmp59_;
#line 25880 "Photo.c"
} else {
#line 3596 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp55_ = FALSE;
#line 25884 "Photo.c"
}
#line 3596 "/home/jens/Source/shotwell/src/Photo.vala"
if (_tmp55_) {
#line 25888 "Photo.c"
gchar* _tmp60_ = NULL;
gchar* _tmp61_ = NULL;
#line 3597 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp60_ = media_source_get_title (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_MEDIA_SOURCE, MediaSource));
#line 3597 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp61_ = _tmp60_;
#line 3597 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp54_ = _tmp61_ == NULL;
#line 3597 "/home/jens/Source/shotwell/src/Photo.vala"
_g_free0 (_tmp61_);
#line 25899 "Photo.c"
} else {
#line 3596 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp54_ = FALSE;
#line 25903 "Photo.c"
}
#line 3596 "/home/jens/Source/shotwell/src/Photo.vala"
if (_tmp54_) {
#line 25907 "Photo.c"
gchar* _tmp62_ = NULL;
gchar* _tmp63_ = NULL;
#line 3597 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp62_ = media_source_get_comment (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_MEDIA_SOURCE, MediaSource));
#line 3597 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp63_ = _tmp62_;
#line 3597 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp53_ = _tmp63_ == NULL;
#line 3597 "/home/jens/Source/shotwell/src/Photo.vala"
_g_free0 (_tmp63_);
#line 25918 "Photo.c"
} else {
#line 3596 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp53_ = FALSE;
#line 25922 "Photo.c"
}
#line 3596 "/home/jens/Source/shotwell/src/Photo.vala"
if (_tmp53_) {
#line 25926 "Photo.c"
gboolean _tmp64_ = FALSE;
#line 3597 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp64_ = export_metadata;
#line 3597 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp52_ = _tmp64_;
#line 25932 "Photo.c"
} else {
#line 3596 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp52_ = FALSE;
#line 25936 "Photo.c"
}
#line 3596 "/home/jens/Source/shotwell/src/Photo.vala"
if (_tmp52_) {
#line 3598 "/home/jens/Source/shotwell/src/Photo.vala"
result = TRUE;
#line 3598 "/home/jens/Source/shotwell/src/Photo.vala"
_photo_file_adapter_unref0 (writer);
#line 3598 "/home/jens/Source/shotwell/src/Photo.vala"
_g_object_unref0 (dest_file);
#line 3598 "/home/jens/Source/shotwell/src/Photo.vala"
_photo_file_format_properties_unref0 (format_properties);
#line 3598 "/home/jens/Source/shotwell/src/Photo.vala"
_photo_file_adapter_unref0 (export_reader);
#line 3598 "/home/jens/Source/shotwell/src/Photo.vala"
return result;
#line 25952 "Photo.c"
}
#line 3601 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp65_ = export_reader;
#line 3601 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp66_ = photo_file_reader_read_metadata (_tmp65_, &_inner_error_);
#line 3601 "/home/jens/Source/shotwell/src/Photo.vala"
metadata = _tmp66_;
#line 3601 "/home/jens/Source/shotwell/src/Photo.vala"
if (G_UNLIKELY (_inner_error_ != NULL)) {
#line 3601 "/home/jens/Source/shotwell/src/Photo.vala"
g_propagate_error (error, _inner_error_);
#line 3601 "/home/jens/Source/shotwell/src/Photo.vala"
_photo_file_adapter_unref0 (writer);
#line 3601 "/home/jens/Source/shotwell/src/Photo.vala"
_g_object_unref0 (dest_file);
#line 3601 "/home/jens/Source/shotwell/src/Photo.vala"
_photo_file_format_properties_unref0 (format_properties);
#line 3601 "/home/jens/Source/shotwell/src/Photo.vala"
_photo_file_adapter_unref0 (export_reader);
#line 3601 "/home/jens/Source/shotwell/src/Photo.vala"
return FALSE;
#line 25974 "Photo.c"
}
#line 3602 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp67_ = metadata;
#line 3602 "/home/jens/Source/shotwell/src/Photo.vala"
if (_tmp67_ == NULL) {
#line 25980 "Photo.c"
PhotoFileReader* _tmp68_ = NULL;
PhotoFileFormat _tmp69_ = 0;
PhotoMetadata* _tmp70_ = NULL;
#line 3603 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp68_ = export_reader;
#line 3603 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp69_ = photo_file_adapter_get_file_format (G_TYPE_CHECK_INSTANCE_CAST (_tmp68_, TYPE_PHOTO_FILE_ADAPTER, PhotoFileAdapter));
#line 3603 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp70_ = photo_file_format_create_metadata (_tmp69_);
#line 3603 "/home/jens/Source/shotwell/src/Photo.vala"
_media_metadata_unref0 (metadata);
#line 3603 "/home/jens/Source/shotwell/src/Photo.vala"
metadata = _tmp70_;
#line 25994 "Photo.c"
}
#line 3605 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp71_ = writer;
#line 3605 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp72_ = photo_file_adapter_get_filepath (G_TYPE_CHECK_INSTANCE_CAST (_tmp71_, TYPE_PHOTO_FILE_ADAPTER, PhotoFileAdapter));
#line 3605 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp73_ = _tmp72_;
#line 3605 "/home/jens/Source/shotwell/src/Photo.vala"
g_debug ("Photo.vala:3605: Updating metadata of %s", _tmp73_);
#line 3605 "/home/jens/Source/shotwell/src/Photo.vala"
_g_free0 (_tmp73_);
#line 3607 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp74_ = media_source_get_exposure_time (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_MEDIA_SOURCE, MediaSource));
#line 3607 "/home/jens/Source/shotwell/src/Photo.vala"
if (_tmp74_ != ((time_t) 0)) {
#line 26010 "Photo.c"
PhotoMetadata* _tmp75_ = NULL;
time_t _tmp76_ = 0;
MetadataDateTime* _tmp77_ = NULL;
MetadataDateTime* _tmp78_ = NULL;
#line 3608 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp75_ = metadata;
#line 3608 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp76_ = media_source_get_exposure_time (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_MEDIA_SOURCE, MediaSource));
#line 3608 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp77_ = metadata_date_time_new (_tmp76_);
#line 3608 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp78_ = _tmp77_;
#line 3608 "/home/jens/Source/shotwell/src/Photo.vala"
photo_metadata_set_exposure_date_time (_tmp75_, _tmp78_, PHOTO_METADATA_SET_OPTION_ALL_DOMAINS);
#line 3608 "/home/jens/Source/shotwell/src/Photo.vala"
_metadata_date_time_unref0 (_tmp78_);
#line 26027 "Photo.c"
} else {
PhotoMetadata* _tmp79_ = NULL;
#line 3610 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp79_ = metadata;
#line 3610 "/home/jens/Source/shotwell/src/Photo.vala"
photo_metadata_set_exposure_date_time (_tmp79_, NULL, PHOTO_METADATA_SET_OPTION_ALL_DOMAINS);
#line 26034 "Photo.c"
}
#line 3612 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp80_ = export_metadata;
#line 3612 "/home/jens/Source/shotwell/src/Photo.vala"
if (_tmp80_) {
#line 26040 "Photo.c"
PhotoMetadata* _tmp81_ = NULL;
gchar* _tmp82_ = NULL;
gchar* _tmp83_ = NULL;
PhotoMetadata* _tmp84_ = NULL;
gchar* _tmp85_ = NULL;
gchar* _tmp86_ = NULL;
PhotoMetadata* _tmp87_ = NULL;
Dimensions _tmp88_ = {0};
PhotoMetadata* _tmp89_ = NULL;
Orientation _tmp90_ = 0;
PhotoMetadata* _tmp91_ = NULL;
Orientation _tmp92_ = 0;
Orientation _tmp93_ = 0;
PhotoMetadata* _tmp95_ = NULL;
#line 3614 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp81_ = metadata;
#line 3614 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp82_ = media_source_get_title (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_MEDIA_SOURCE, MediaSource));
#line 3614 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp83_ = _tmp82_;
#line 3614 "/home/jens/Source/shotwell/src/Photo.vala"
photo_metadata_set_title (_tmp81_, _tmp83_, PHOTO_METADATA_SET_OPTION_ALL_DOMAINS);
#line 3614 "/home/jens/Source/shotwell/src/Photo.vala"
_g_free0 (_tmp83_);
#line 3615 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp84_ = metadata;
#line 3615 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp85_ = media_source_get_comment (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_MEDIA_SOURCE, MediaSource));
#line 3615 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp86_ = _tmp85_;
#line 3615 "/home/jens/Source/shotwell/src/Photo.vala"
photo_metadata_set_comment (_tmp84_, _tmp86_, PHOTO_METADATA_SET_OPTION_ALL_DOMAINS);
#line 3615 "/home/jens/Source/shotwell/src/Photo.vala"
_g_free0 (_tmp86_);
#line 3616 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp87_ = metadata;
#line 3616 "/home/jens/Source/shotwell/src/Photo.vala"
media_source_get_dimensions (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_MEDIA_SOURCE, MediaSource), PHOTO_EXCEPTION_NONE, &_tmp88_);
#line 3616 "/home/jens/Source/shotwell/src/Photo.vala"
photo_metadata_set_pixel_dimensions (_tmp87_, &_tmp88_, PHOTO_METADATA_SET_OPTION_ALL_DOMAINS);
#line 3617 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp89_ = metadata;
#line 3617 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp90_ = photo_get_orientation (self);
#line 3617 "/home/jens/Source/shotwell/src/Photo.vala"
photo_metadata_set_orientation (_tmp89_, _tmp90_);
#line 3618 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp91_ = metadata;
#line 3618 "/home/jens/Source/shotwell/src/Photo.vala"
photo_metadata_set_software (_tmp91_, RESOURCES_APP_TITLE, RESOURCES_APP_VERSION);
#line 3620 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp92_ = photo_get_orientation (self);
#line 3620 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp93_ = photo_get_original_orientation (self);
#line 3620 "/home/jens/Source/shotwell/src/Photo.vala"
if (_tmp92_ != _tmp93_) {
#line 26097 "Photo.c"
PhotoMetadata* _tmp94_ = NULL;
#line 3621 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp94_ = metadata;
#line 3621 "/home/jens/Source/shotwell/src/Photo.vala"
photo_metadata_remove_exif_thumbnail (_tmp94_);
#line 26103 "Photo.c"
}
#line 3623 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp95_ = metadata;
#line 3623 "/home/jens/Source/shotwell/src/Photo.vala"
photo_set_user_metadata_for_export (self, _tmp95_);
#line 26109 "Photo.c"
} else {
PhotoMetadata* _tmp96_ = NULL;
#line 3627 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp96_ = metadata;
#line 3627 "/home/jens/Source/shotwell/src/Photo.vala"
photo_metadata_clear (_tmp96_);
#line 26116 "Photo.c"
}
#line 3629 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp97_ = writer;
#line 3629 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp98_ = metadata;
#line 3629 "/home/jens/Source/shotwell/src/Photo.vala"
photo_file_metadata_writer_write_metadata (_tmp97_, _tmp98_, &_inner_error_);
#line 3629 "/home/jens/Source/shotwell/src/Photo.vala"
if (G_UNLIKELY (_inner_error_ != NULL)) {
#line 3629 "/home/jens/Source/shotwell/src/Photo.vala"
g_propagate_error (error, _inner_error_);
#line 3629 "/home/jens/Source/shotwell/src/Photo.vala"
_media_metadata_unref0 (metadata);
#line 3629 "/home/jens/Source/shotwell/src/Photo.vala"
_photo_file_adapter_unref0 (writer);
#line 3629 "/home/jens/Source/shotwell/src/Photo.vala"
_g_object_unref0 (dest_file);
#line 3629 "/home/jens/Source/shotwell/src/Photo.vala"
_photo_file_format_properties_unref0 (format_properties);
#line 3629 "/home/jens/Source/shotwell/src/Photo.vala"
_photo_file_adapter_unref0 (export_reader);
#line 3629 "/home/jens/Source/shotwell/src/Photo.vala"
return FALSE;
#line 26140 "Photo.c"
}
#line 3631 "/home/jens/Source/shotwell/src/Photo.vala"
result = TRUE;
#line 3631 "/home/jens/Source/shotwell/src/Photo.vala"
_media_metadata_unref0 (metadata);
#line 3631 "/home/jens/Source/shotwell/src/Photo.vala"
_photo_file_adapter_unref0 (writer);
#line 3631 "/home/jens/Source/shotwell/src/Photo.vala"
_g_object_unref0 (dest_file);
#line 3631 "/home/jens/Source/shotwell/src/Photo.vala"
_photo_file_format_properties_unref0 (format_properties);
#line 3631 "/home/jens/Source/shotwell/src/Photo.vala"
_photo_file_adapter_unref0 (export_reader);
#line 3631 "/home/jens/Source/shotwell/src/Photo.vala"
return result;
#line 26156 "Photo.c"
}
gboolean photo_is_export_required (Photo* self, Scaling* scaling, PhotoFileFormat export_format) {
gboolean result = FALSE;
gboolean _tmp0_ = FALSE;
gboolean _tmp1_ = FALSE;
gboolean _tmp2_ = FALSE;
gboolean _tmp3_ = FALSE;
#line 3637 "/home/jens/Source/shotwell/src/Photo.vala"
g_return_val_if_fail (IS_PHOTO (self), FALSE);
#line 3637 "/home/jens/Source/shotwell/src/Photo.vala"
g_return_val_if_fail (scaling != NULL, FALSE);
#line 3638 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp3_ = scaling_is_unscaled (scaling);
#line 3638 "/home/jens/Source/shotwell/src/Photo.vala"
if (!_tmp3_) {
#line 3638 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp2_ = TRUE;
#line 26176 "Photo.c"
} else {
gboolean _tmp4_ = FALSE;
#line 3638 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp4_ = photo_has_alterations (self);
#line 3638 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp2_ = _tmp4_;
#line 26183 "Photo.c"
}
#line 3638 "/home/jens/Source/shotwell/src/Photo.vala"
if (_tmp2_) {
#line 3638 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp1_ = TRUE;
#line 26189 "Photo.c"
} else {
gboolean _tmp5_ = FALSE;
#line 3638 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp5_ = photo_has_user_generated_metadata (self);
#line 3638 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp1_ = _tmp5_;
#line 26196 "Photo.c"
}
#line 3638 "/home/jens/Source/shotwell/src/Photo.vala"
if (_tmp1_) {
#line 3638 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp0_ = TRUE;
#line 26202 "Photo.c"
} else {
PhotoFileFormat _tmp6_ = 0;
PhotoFileFormat _tmp7_ = 0;
#line 3639 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp6_ = export_format;
#line 3639 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp7_ = photo_get_file_format (self);
#line 3639 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp0_ = _tmp6_ != _tmp7_;
#line 26212 "Photo.c"
}
#line 3638 "/home/jens/Source/shotwell/src/Photo.vala"
result = _tmp0_;
#line 3638 "/home/jens/Source/shotwell/src/Photo.vala"
return result;
#line 26218 "Photo.c"
}
void photo_export (Photo* self, GFile* dest_file, Scaling* scaling, JpegQuality quality, PhotoFileFormat export_format, gboolean direct_copy_unmodified, gboolean export_metadata, GError** error) {
gboolean _tmp0_ = FALSE;
gboolean _tmp4_ = FALSE;
gboolean _tmp5_ = FALSE;
gboolean _tmp6_ = FALSE;
gboolean _tmp7_ = FALSE;
PhotoMetadata* metadata = NULL;
PhotoMetadata* _tmp18_ = NULL;
PhotoMetadata* _tmp19_ = NULL;
PhotoFileFormat _tmp22_ = 0;
gboolean _tmp23_ = FALSE;
PhotoFileWriter* writer = NULL;
PhotoFileFormat _tmp25_ = 0;
GFile* _tmp26_ = NULL;
gchar* _tmp27_ = NULL;
gchar* _tmp28_ = NULL;
PhotoFileWriter* _tmp29_ = NULL;
PhotoFileWriter* _tmp30_ = NULL;
gchar* _tmp31_ = NULL;
gchar* _tmp32_ = NULL;
PhotoFileWriter* _tmp33_ = NULL;
gchar* _tmp34_ = NULL;
gchar* _tmp35_ = NULL;
PhotoFileFormat _tmp36_ = 0;
GEnumValue* _tmp37_;
GdkPixbuf* pixbuf = NULL;
gboolean _tmp38_ = FALSE;
PhotoFileFormat _tmp39_ = 0;
PhotoFileWriter* _tmp49_ = NULL;
GdkPixbuf* _tmp50_ = NULL;
JpegQuality _tmp51_ = 0;
PhotoFileWriter* _tmp52_ = NULL;
gchar* _tmp53_ = NULL;
gchar* _tmp54_ = NULL;
gboolean _tmp55_ = FALSE;
gboolean _tmp75_ = FALSE;
PhotoFileFormat _tmp76_ = 0;
PhotoFileMetadataWriter* _tmp86_ = NULL;
PhotoFileFormat _tmp87_ = 0;
GFile* _tmp88_ = NULL;
gchar* _tmp89_ = NULL;
gchar* _tmp90_ = NULL;
PhotoFileMetadataWriter* _tmp91_ = NULL;
PhotoFileMetadataWriter* _tmp92_ = NULL;
PhotoFileMetadataWriter* _tmp93_ = NULL;
PhotoFileMetadataWriter* _tmp94_ = NULL;
PhotoMetadata* _tmp95_ = NULL;
GError * _inner_error_ = NULL;
#line 3645 "/home/jens/Source/shotwell/src/Photo.vala"
g_return_if_fail (IS_PHOTO (self));
#line 3645 "/home/jens/Source/shotwell/src/Photo.vala"
g_return_if_fail (G_IS_FILE (dest_file));
#line 3645 "/home/jens/Source/shotwell/src/Photo.vala"
g_return_if_fail (scaling != NULL);
#line 3647 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp0_ = direct_copy_unmodified;
#line 3647 "/home/jens/Source/shotwell/src/Photo.vala"
if (_tmp0_) {
#line 26280 "Photo.c"
GFile* _tmp1_ = NULL;
GFile* _tmp2_ = NULL;
GFile* _tmp3_ = NULL;
#line 3648 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp1_ = media_source_get_master_file (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_MEDIA_SOURCE, MediaSource));
#line 3648 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp2_ = _tmp1_;
#line 3648 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp3_ = dest_file;
#line 3648 "/home/jens/Source/shotwell/src/Photo.vala"
g_file_copy (_tmp2_, _tmp3_, G_FILE_COPY_OVERWRITE | G_FILE_COPY_TARGET_DEFAULT_PERMS, NULL, NULL, NULL, &_inner_error_);
#line 3648 "/home/jens/Source/shotwell/src/Photo.vala"
_g_object_unref0 (_tmp2_);
#line 3648 "/home/jens/Source/shotwell/src/Photo.vala"
if (G_UNLIKELY (_inner_error_ != NULL)) {
#line 3648 "/home/jens/Source/shotwell/src/Photo.vala"
g_propagate_error (error, _inner_error_);
#line 3648 "/home/jens/Source/shotwell/src/Photo.vala"
return;
#line 26300 "Photo.c"
}
#line 3650 "/home/jens/Source/shotwell/src/Photo.vala"
return;
#line 26304 "Photo.c"
}
#line 3657 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp7_ = scaling_is_unscaled (scaling);
#line 3657 "/home/jens/Source/shotwell/src/Photo.vala"
if (_tmp7_) {
#line 26310 "Photo.c"
gboolean _tmp8_ = FALSE;
gboolean _tmp9_ = FALSE;
#line 3657 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp9_ = photo_has_alterations (self);
#line 3657 "/home/jens/Source/shotwell/src/Photo.vala"
if (!_tmp9_) {
#line 3657 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp8_ = TRUE;
#line 26319 "Photo.c"
} else {
gboolean _tmp10_ = FALSE;
#line 3657 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp10_ = photo_only_metadata_changed (self);
#line 3657 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp8_ = _tmp10_;
#line 26326 "Photo.c"
}
#line 3657 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp6_ = _tmp8_;
#line 26330 "Photo.c"
} else {
#line 3657 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp6_ = FALSE;
#line 26334 "Photo.c"
}
#line 3657 "/home/jens/Source/shotwell/src/Photo.vala"
if (_tmp6_) {
#line 26338 "Photo.c"
PhotoFileFormat _tmp11_ = 0;
PhotoFileFormat _tmp12_ = 0;
#line 3658 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp11_ = export_format;
#line 3658 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp12_ = photo_get_file_format (self);
#line 3658 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp5_ = _tmp11_ == _tmp12_;
#line 26347 "Photo.c"
} else {
#line 3657 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp5_ = FALSE;
#line 26351 "Photo.c"
}
#line 3657 "/home/jens/Source/shotwell/src/Photo.vala"
if (_tmp5_) {
#line 26355 "Photo.c"
PhotoFileFormat _tmp13_ = 0;
#line 3658 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp13_ = photo_get_file_format (self);
#line 3658 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp4_ = _tmp13_ == PHOTO_FILE_FORMAT_JFIF;
#line 26361 "Photo.c"
} else {
#line 3657 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp4_ = FALSE;
#line 26365 "Photo.c"
}
#line 3657 "/home/jens/Source/shotwell/src/Photo.vala"
if (_tmp4_) {
#line 26369 "Photo.c"
gboolean _tmp14_ = FALSE;
GFile* _tmp15_ = NULL;
gboolean _tmp16_ = FALSE;
gboolean _tmp17_ = FALSE;
#line 3659 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp15_ = dest_file;
#line 3659 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp16_ = export_metadata;
#line 3659 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp17_ = photo_export_fullsized_backing (self, _tmp15_, _tmp16_, &_inner_error_);
#line 3659 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp14_ = _tmp17_;
#line 3659 "/home/jens/Source/shotwell/src/Photo.vala"
if (G_UNLIKELY (_inner_error_ != NULL)) {
#line 3659 "/home/jens/Source/shotwell/src/Photo.vala"
g_propagate_error (error, _inner_error_);
#line 3659 "/home/jens/Source/shotwell/src/Photo.vala"
return;
#line 26388 "Photo.c"
}
#line 3659 "/home/jens/Source/shotwell/src/Photo.vala"
if (_tmp14_) {
#line 3660 "/home/jens/Source/shotwell/src/Photo.vala"
return;
#line 26394 "Photo.c"
}
}
#line 3666 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp18_ = photo_source_get_metadata (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_PHOTO_SOURCE, PhotoSource));
#line 3666 "/home/jens/Source/shotwell/src/Photo.vala"
metadata = _tmp18_;
#line 3667 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp19_ = metadata;
#line 3667 "/home/jens/Source/shotwell/src/Photo.vala"
if (_tmp19_ == NULL) {
#line 26405 "Photo.c"
PhotoFileFormat _tmp20_ = 0;
PhotoMetadata* _tmp21_ = NULL;
#line 3668 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp20_ = export_format;
#line 3668 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp21_ = photo_file_format_create_metadata (_tmp20_);
#line 3668 "/home/jens/Source/shotwell/src/Photo.vala"
_media_metadata_unref0 (metadata);
#line 3668 "/home/jens/Source/shotwell/src/Photo.vala"
metadata = _tmp21_;
#line 26416 "Photo.c"
}
#line 3670 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp22_ = export_format;
#line 3670 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp23_ = photo_file_format_can_write (_tmp22_);
#line 3670 "/home/jens/Source/shotwell/src/Photo.vala"
if (!_tmp23_) {
#line 26424 "Photo.c"
PhotoFileFormat _tmp24_ = 0;
#line 3671 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp24_ = photo_file_format_get_system_default_format ();
#line 3671 "/home/jens/Source/shotwell/src/Photo.vala"
export_format = _tmp24_;
#line 26430 "Photo.c"
}
#line 3673 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp25_ = export_format;
#line 3673 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp26_ = dest_file;
#line 3673 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp27_ = g_file_get_path (_tmp26_);
#line 3673 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp28_ = _tmp27_;
#line 3673 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp29_ = photo_file_format_create_writer (_tmp25_, _tmp28_, &_inner_error_);
#line 3673 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp30_ = _tmp29_;
#line 3673 "/home/jens/Source/shotwell/src/Photo.vala"
_g_free0 (_tmp28_);
#line 3673 "/home/jens/Source/shotwell/src/Photo.vala"
writer = _tmp30_;
#line 3673 "/home/jens/Source/shotwell/src/Photo.vala"
if (G_UNLIKELY (_inner_error_ != NULL)) {
#line 3673 "/home/jens/Source/shotwell/src/Photo.vala"
g_propagate_error (error, _inner_error_);
#line 3673 "/home/jens/Source/shotwell/src/Photo.vala"
_media_metadata_unref0 (metadata);
#line 3673 "/home/jens/Source/shotwell/src/Photo.vala"
return;
#line 26456 "Photo.c"
}
#line 3675 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp31_ = data_object_to_string (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_DATA_OBJECT, DataObject));
#line 3675 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp32_ = _tmp31_;
#line 3675 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp33_ = writer;
#line 3675 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp34_ = photo_file_adapter_get_filepath (G_TYPE_CHECK_INSTANCE_CAST (_tmp33_, TYPE_PHOTO_FILE_ADAPTER, PhotoFileAdapter));
#line 3675 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp35_ = _tmp34_;
#line 3675 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp36_ = export_format;
#line 3676 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp37_ = g_enum_get_value (g_type_class_ref (TYPE_PHOTO_FILE_FORMAT), _tmp36_);
#line 3675 "/home/jens/Source/shotwell/src/Photo.vala"
g_debug ("Photo.vala:3675: Saving transformed version of %s to %s in file format" \
" %s", _tmp32_, _tmp35_, (_tmp37_ != NULL) ? _tmp37_->value_name : NULL);
#line 3675 "/home/jens/Source/shotwell/src/Photo.vala"
_g_free0 (_tmp35_);
#line 3675 "/home/jens/Source/shotwell/src/Photo.vala"
_g_free0 (_tmp32_);
#line 3682 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp39_ = photo_get_file_format (self);
#line 3682 "/home/jens/Source/shotwell/src/Photo.vala"
if (_tmp39_ == PHOTO_FILE_FORMAT_JFIF) {
#line 3682 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp38_ = TRUE;
#line 26484 "Photo.c"
} else {
PhotoFileFormat _tmp40_ = 0;
#line 3683 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp40_ = photo_get_file_format (self);
#line 3683 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp38_ = _tmp40_ == PHOTO_FILE_FORMAT_RAW;
#line 26491 "Photo.c"
}
#line 3682 "/home/jens/Source/shotwell/src/Photo.vala"
if (_tmp38_) {
#line 26495 "Photo.c"
GdkPixbuf* _tmp41_ = NULL;
Scaling _tmp42_ = {0};
GdkPixbuf* _tmp43_ = NULL;
GdkPixbuf* _tmp44_ = NULL;
#line 3684 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp42_ = *scaling;
#line 3684 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp43_ = photo_get_pixbuf_with_options (self, &_tmp42_, PHOTO_EXCEPTION_ORIENTATION, BACKING_FETCH_MODE_SOURCE, &_inner_error_);
#line 3684 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp41_ = _tmp43_;
#line 3684 "/home/jens/Source/shotwell/src/Photo.vala"
if (G_UNLIKELY (_inner_error_ != NULL)) {
#line 3684 "/home/jens/Source/shotwell/src/Photo.vala"
g_propagate_error (error, _inner_error_);
#line 3684 "/home/jens/Source/shotwell/src/Photo.vala"
_g_object_unref0 (pixbuf);
#line 3684 "/home/jens/Source/shotwell/src/Photo.vala"
_photo_file_adapter_unref0 (writer);
#line 3684 "/home/jens/Source/shotwell/src/Photo.vala"
_media_metadata_unref0 (metadata);
#line 3684 "/home/jens/Source/shotwell/src/Photo.vala"
return;
#line 26518 "Photo.c"
}
#line 3684 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp44_ = _tmp41_;
#line 3684 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp41_ = NULL;
#line 3684 "/home/jens/Source/shotwell/src/Photo.vala"
_g_object_unref0 (pixbuf);
#line 3684 "/home/jens/Source/shotwell/src/Photo.vala"
pixbuf = _tmp44_;
#line 3682 "/home/jens/Source/shotwell/src/Photo.vala"
_g_object_unref0 (_tmp41_);
#line 26530 "Photo.c"
} else {
GdkPixbuf* _tmp45_ = NULL;
Scaling _tmp46_ = {0};
GdkPixbuf* _tmp47_ = NULL;
GdkPixbuf* _tmp48_ = NULL;
#line 3688 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp46_ = *scaling;
#line 3688 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp47_ = photo_get_pixbuf_with_options (self, &_tmp46_, PHOTO_EXCEPTION_NONE, BACKING_FETCH_MODE_SOURCE, &_inner_error_);
#line 3688 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp45_ = _tmp47_;
#line 3688 "/home/jens/Source/shotwell/src/Photo.vala"
if (G_UNLIKELY (_inner_error_ != NULL)) {
#line 3688 "/home/jens/Source/shotwell/src/Photo.vala"
g_propagate_error (error, _inner_error_);
#line 3688 "/home/jens/Source/shotwell/src/Photo.vala"
_g_object_unref0 (pixbuf);
#line 3688 "/home/jens/Source/shotwell/src/Photo.vala"
_photo_file_adapter_unref0 (writer);
#line 3688 "/home/jens/Source/shotwell/src/Photo.vala"
_media_metadata_unref0 (metadata);
#line 3688 "/home/jens/Source/shotwell/src/Photo.vala"
return;
#line 26554 "Photo.c"
}
#line 3688 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp48_ = _tmp45_;
#line 3688 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp45_ = NULL;
#line 3688 "/home/jens/Source/shotwell/src/Photo.vala"
_g_object_unref0 (pixbuf);
#line 3688 "/home/jens/Source/shotwell/src/Photo.vala"
pixbuf = _tmp48_;
#line 3682 "/home/jens/Source/shotwell/src/Photo.vala"
_g_object_unref0 (_tmp45_);
#line 26566 "Photo.c"
}
#line 3692 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp49_ = writer;
#line 3692 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp50_ = pixbuf;
#line 3692 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp51_ = quality;
#line 3692 "/home/jens/Source/shotwell/src/Photo.vala"
photo_file_writer_write (_tmp49_, _tmp50_, _tmp51_, &_inner_error_);
#line 3692 "/home/jens/Source/shotwell/src/Photo.vala"
if (G_UNLIKELY (_inner_error_ != NULL)) {
#line 3692 "/home/jens/Source/shotwell/src/Photo.vala"
g_propagate_error (error, _inner_error_);
#line 3692 "/home/jens/Source/shotwell/src/Photo.vala"
_g_object_unref0 (pixbuf);
#line 3692 "/home/jens/Source/shotwell/src/Photo.vala"
_photo_file_adapter_unref0 (writer);
#line 3692 "/home/jens/Source/shotwell/src/Photo.vala"
_media_metadata_unref0 (metadata);
#line 3692 "/home/jens/Source/shotwell/src/Photo.vala"
return;
#line 26588 "Photo.c"
}
#line 3694 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp52_ = writer;
#line 3694 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp53_ = photo_file_adapter_get_filepath (G_TYPE_CHECK_INSTANCE_CAST (_tmp52_, TYPE_PHOTO_FILE_ADAPTER, PhotoFileAdapter));
#line 3694 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp54_ = _tmp53_;
#line 3694 "/home/jens/Source/shotwell/src/Photo.vala"
g_debug ("Photo.vala:3694: Setting EXIF for %s", _tmp54_);
#line 3694 "/home/jens/Source/shotwell/src/Photo.vala"
_g_free0 (_tmp54_);
#line 3697 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp55_ = export_metadata;
#line 3697 "/home/jens/Source/shotwell/src/Photo.vala"
if (_tmp55_) {
#line 26604 "Photo.c"
PhotoMetadata* _tmp56_ = NULL;
gchar* _tmp57_ = NULL;
gchar* _tmp58_ = NULL;
PhotoMetadata* _tmp59_ = NULL;
gchar* _tmp60_ = NULL;
gchar* _tmp61_ = NULL;
PhotoMetadata* _tmp62_ = NULL;
time_t _tmp63_ = 0;
PhotoMetadata* _tmp69_ = NULL;
PhotoMetadata* _tmp70_ = NULL;
PhotoMetadata* _tmp71_ = NULL;
gboolean _tmp72_ = FALSE;
#line 3699 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp56_ = metadata;
#line 3699 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp57_ = media_source_get_title (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_MEDIA_SOURCE, MediaSource));
#line 3699 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp58_ = _tmp57_;
#line 3699 "/home/jens/Source/shotwell/src/Photo.vala"
photo_metadata_set_title (_tmp56_, _tmp58_, PHOTO_METADATA_SET_OPTION_ALL_DOMAINS);
#line 3699 "/home/jens/Source/shotwell/src/Photo.vala"
_g_free0 (_tmp58_);
#line 3700 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp59_ = metadata;
#line 3700 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp60_ = media_source_get_comment (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_MEDIA_SOURCE, MediaSource));
#line 3700 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp61_ = _tmp60_;
#line 3700 "/home/jens/Source/shotwell/src/Photo.vala"
photo_metadata_set_comment (_tmp59_, _tmp61_, PHOTO_METADATA_SET_OPTION_ALL_DOMAINS);
#line 3700 "/home/jens/Source/shotwell/src/Photo.vala"
_g_free0 (_tmp61_);
#line 3701 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp62_ = metadata;
#line 3701 "/home/jens/Source/shotwell/src/Photo.vala"
photo_metadata_set_software (_tmp62_, RESOURCES_APP_TITLE, RESOURCES_APP_VERSION);
#line 3703 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp63_ = media_source_get_exposure_time (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_MEDIA_SOURCE, MediaSource));
#line 3703 "/home/jens/Source/shotwell/src/Photo.vala"
if (_tmp63_ != ((time_t) 0)) {
#line 26645 "Photo.c"
PhotoMetadata* _tmp64_ = NULL;
time_t _tmp65_ = 0;
MetadataDateTime* _tmp66_ = NULL;
MetadataDateTime* _tmp67_ = NULL;
#line 3704 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp64_ = metadata;
#line 3704 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp65_ = media_source_get_exposure_time (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_MEDIA_SOURCE, MediaSource));
#line 3704 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp66_ = metadata_date_time_new (_tmp65_);
#line 3704 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp67_ = _tmp66_;
#line 3704 "/home/jens/Source/shotwell/src/Photo.vala"
photo_metadata_set_exposure_date_time (_tmp64_, _tmp67_, PHOTO_METADATA_SET_OPTION_ALL_DOMAINS);
#line 3704 "/home/jens/Source/shotwell/src/Photo.vala"
_metadata_date_time_unref0 (_tmp67_);
#line 26662 "Photo.c"
} else {
PhotoMetadata* _tmp68_ = NULL;
#line 3706 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp68_ = metadata;
#line 3706 "/home/jens/Source/shotwell/src/Photo.vala"
photo_metadata_set_exposure_date_time (_tmp68_, NULL, PHOTO_METADATA_SET_OPTION_ALL_DOMAINS);
#line 26669 "Photo.c"
}
#line 3708 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp69_ = metadata;
#line 3708 "/home/jens/Source/shotwell/src/Photo.vala"
photo_metadata_remove_tag (_tmp69_, "Exif.Iop.RelatedImageWidth");
#line 3709 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp70_ = metadata;
#line 3709 "/home/jens/Source/shotwell/src/Photo.vala"
photo_metadata_remove_tag (_tmp70_, "Exif.Iop.RelatedImageHeight");
#line 3710 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp71_ = metadata;
#line 3710 "/home/jens/Source/shotwell/src/Photo.vala"
photo_metadata_remove_exif_thumbnail (_tmp71_);
#line 3712 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp72_ = photo_has_user_generated_metadata (self);
#line 3712 "/home/jens/Source/shotwell/src/Photo.vala"
if (_tmp72_) {
#line 26687 "Photo.c"
PhotoMetadata* _tmp73_ = NULL;
#line 3713 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp73_ = metadata;
#line 3713 "/home/jens/Source/shotwell/src/Photo.vala"
photo_set_user_metadata_for_export (self, _tmp73_);
#line 26693 "Photo.c"
}
} else {
PhotoMetadata* _tmp74_ = NULL;
#line 3717 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp74_ = metadata;
#line 3717 "/home/jens/Source/shotwell/src/Photo.vala"
photo_metadata_clear (_tmp74_);
#line 26701 "Photo.c"
}
#line 3724 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp76_ = photo_get_file_format (self);
#line 3724 "/home/jens/Source/shotwell/src/Photo.vala"
if (_tmp76_ == PHOTO_FILE_FORMAT_JFIF) {
#line 3724 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp75_ = TRUE;
#line 26709 "Photo.c"
} else {
PhotoFileFormat _tmp77_ = 0;
#line 3725 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp77_ = photo_get_file_format (self);
#line 3725 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp75_ = _tmp77_ == PHOTO_FILE_FORMAT_RAW;
#line 26716 "Photo.c"
}
#line 3724 "/home/jens/Source/shotwell/src/Photo.vala"
if (_tmp75_) {
#line 26720 "Photo.c"
PhotoMetadata* _tmp78_ = NULL;
Dimensions _tmp79_ = {0};
PhotoMetadata* _tmp80_ = NULL;
Orientation _tmp81_ = 0;
#line 3726 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp78_ = metadata;
#line 3726 "/home/jens/Source/shotwell/src/Photo.vala"
media_source_get_dimensions (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_MEDIA_SOURCE, MediaSource), PHOTO_EXCEPTION_ORIENTATION, &_tmp79_);
#line 3726 "/home/jens/Source/shotwell/src/Photo.vala"
photo_metadata_set_pixel_dimensions (_tmp78_, &_tmp79_, PHOTO_METADATA_SET_OPTION_ALL_DOMAINS);
#line 3727 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp80_ = metadata;
#line 3727 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp81_ = photo_get_orientation (self);
#line 3727 "/home/jens/Source/shotwell/src/Photo.vala"
photo_metadata_set_orientation (_tmp80_, _tmp81_);
#line 26737 "Photo.c"
} else {
PhotoMetadata* _tmp82_ = NULL;
GdkPixbuf* _tmp83_ = NULL;
Dimensions _tmp84_ = {0};
PhotoMetadata* _tmp85_ = NULL;
#line 3730 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp82_ = metadata;
#line 3730 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp83_ = pixbuf;
#line 3730 "/home/jens/Source/shotwell/src/Photo.vala"
dimensions_for_pixbuf (_tmp83_, &_tmp84_);
#line 3730 "/home/jens/Source/shotwell/src/Photo.vala"
photo_metadata_set_pixel_dimensions (_tmp82_, &_tmp84_, PHOTO_METADATA_SET_OPTION_ALL_DOMAINS);
#line 3731 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp85_ = metadata;
#line 3731 "/home/jens/Source/shotwell/src/Photo.vala"
photo_metadata_set_orientation (_tmp85_, ORIENTATION_TOP_LEFT);
#line 26755 "Photo.c"
}
#line 3734 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp87_ = export_format;
#line 3734 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp88_ = dest_file;
#line 3734 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp89_ = g_file_get_path (_tmp88_);
#line 3734 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp90_ = _tmp89_;
#line 3734 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp91_ = photo_file_format_create_metadata_writer (_tmp87_, _tmp90_, &_inner_error_);
#line 3734 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp92_ = _tmp91_;
#line 3734 "/home/jens/Source/shotwell/src/Photo.vala"
_g_free0 (_tmp90_);
#line 3734 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp86_ = _tmp92_;
#line 3734 "/home/jens/Source/shotwell/src/Photo.vala"
if (G_UNLIKELY (_inner_error_ != NULL)) {
#line 3734 "/home/jens/Source/shotwell/src/Photo.vala"
g_propagate_error (error, _inner_error_);
#line 3734 "/home/jens/Source/shotwell/src/Photo.vala"
_g_object_unref0 (pixbuf);
#line 3734 "/home/jens/Source/shotwell/src/Photo.vala"
_photo_file_adapter_unref0 (writer);
#line 3734 "/home/jens/Source/shotwell/src/Photo.vala"
_media_metadata_unref0 (metadata);
#line 3734 "/home/jens/Source/shotwell/src/Photo.vala"
return;
#line 26785 "Photo.c"
}
#line 3734 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp93_ = _tmp86_;
#line 3734 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp86_ = NULL;
#line 3734 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp94_ = _tmp93_;
#line 3734 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp95_ = metadata;
#line 3734 "/home/jens/Source/shotwell/src/Photo.vala"
photo_file_metadata_writer_write_metadata (_tmp94_, _tmp95_, &_inner_error_);
#line 3734 "/home/jens/Source/shotwell/src/Photo.vala"
_photo_file_adapter_unref0 (_tmp94_);
#line 3734 "/home/jens/Source/shotwell/src/Photo.vala"
if (G_UNLIKELY (_inner_error_ != NULL)) {
#line 3734 "/home/jens/Source/shotwell/src/Photo.vala"
g_propagate_error (error, _inner_error_);
#line 3734 "/home/jens/Source/shotwell/src/Photo.vala"
_photo_file_adapter_unref0 (_tmp86_);
#line 3734 "/home/jens/Source/shotwell/src/Photo.vala"
_g_object_unref0 (pixbuf);
#line 3734 "/home/jens/Source/shotwell/src/Photo.vala"
_photo_file_adapter_unref0 (writer);
#line 3734 "/home/jens/Source/shotwell/src/Photo.vala"
_media_metadata_unref0 (metadata);
#line 3734 "/home/jens/Source/shotwell/src/Photo.vala"
return;
#line 26813 "Photo.c"
}
#line 3645 "/home/jens/Source/shotwell/src/Photo.vala"
_photo_file_adapter_unref0 (_tmp86_);
#line 3645 "/home/jens/Source/shotwell/src/Photo.vala"
_g_object_unref0 (pixbuf);
#line 3645 "/home/jens/Source/shotwell/src/Photo.vala"
_photo_file_adapter_unref0 (writer);
#line 3645 "/home/jens/Source/shotwell/src/Photo.vala"
_media_metadata_unref0 (metadata);
#line 26823 "Photo.c"
}
static GFile* photo_generate_new_editable_file (Photo* self, PhotoFileFormat* file_format, GError** error) {
PhotoFileFormat _vala_file_format = 0;
GFile* result = NULL;
GFile* backing = NULL;
PhotoFileFormat _tmp4_ = 0;
gboolean _tmp5_ = FALSE;
gchar* name = NULL;
gchar* ext = NULL;
gchar* _tmp7_ = NULL;
gchar* _tmp8_ = NULL;
gchar* _tmp9_ = NULL;
gchar* _tmp10_ = NULL;
gboolean _tmp11_ = FALSE;
const gchar* _tmp12_ = NULL;
gchar* editable_basename = NULL;
const gchar* _tmp22_ = NULL;
const gchar* _tmp23_ = NULL;
const gchar* _tmp24_ = NULL;
gchar* _tmp25_ = NULL;
gboolean collision = FALSE;
GFile* _tmp26_ = NULL;
GFile* _tmp27_ = NULL;
GFile* _tmp28_ = NULL;
gboolean _tmp29_ = FALSE;
GFile* _tmp30_ = NULL;
GFile* _tmp31_ = NULL;
GFile* _tmp32_ = NULL;
GError * _inner_error_ = NULL;
#line 3737 "/home/jens/Source/shotwell/src/Photo.vala"
g_return_val_if_fail (IS_PHOTO (self), NULL);
#line 26857 "Photo.c"
{
PhotoRow* _tmp0_ = NULL;
#line 3739 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp0_ = self->row;
#line 3739 "/home/jens/Source/shotwell/src/Photo.vala"
g_rec_mutex_lock (&self->priv->__lock_row);
#line 26864 "Photo.c"
{
PhotoFileFormat _tmp1_ = 0;
GFile* _tmp2_ = NULL;
#line 3740 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp1_ = photo_get_file_format (self);
#line 3740 "/home/jens/Source/shotwell/src/Photo.vala"
_vala_file_format = _tmp1_;
#line 3741 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp2_ = media_source_get_file (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_MEDIA_SOURCE, MediaSource));
#line 3741 "/home/jens/Source/shotwell/src/Photo.vala"
_g_object_unref0 (backing);
#line 3741 "/home/jens/Source/shotwell/src/Photo.vala"
backing = _tmp2_;
#line 26878 "Photo.c"
}
__finally386:
{
PhotoRow* _tmp3_ = NULL;
#line 3739 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp3_ = self->row;
#line 3739 "/home/jens/Source/shotwell/src/Photo.vala"
g_rec_mutex_unlock (&self->priv->__lock_row);
#line 26887 "Photo.c"
}
#line 3739 "/home/jens/Source/shotwell/src/Photo.vala"
if (G_UNLIKELY (_inner_error_ != NULL)) {
#line 3739 "/home/jens/Source/shotwell/src/Photo.vala"
g_propagate_error (error, _inner_error_);
#line 3739 "/home/jens/Source/shotwell/src/Photo.vala"
_g_object_unref0 (backing);
#line 3739 "/home/jens/Source/shotwell/src/Photo.vala"
return NULL;
#line 26897 "Photo.c"
}
}
#line 3744 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp4_ = _vala_file_format;
#line 3744 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp5_ = photo_file_format_can_write (_tmp4_);
#line 3744 "/home/jens/Source/shotwell/src/Photo.vala"
if (!_tmp5_) {
#line 26906 "Photo.c"
PhotoFileFormat _tmp6_ = 0;
#line 3745 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp6_ = photo_file_format_get_system_default_format ();
#line 3745 "/home/jens/Source/shotwell/src/Photo.vala"
_vala_file_format = _tmp6_;
#line 26912 "Photo.c"
}
#line 3748 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp7_ = g_file_get_basename (backing);
#line 3748 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp8_ = _tmp7_;
#line 3748 "/home/jens/Source/shotwell/src/Photo.vala"
disassemble_filename (_tmp8_, &_tmp9_, &_tmp10_);
#line 3748 "/home/jens/Source/shotwell/src/Photo.vala"
_g_free0 (name);
#line 3748 "/home/jens/Source/shotwell/src/Photo.vala"
name = _tmp9_;
#line 3748 "/home/jens/Source/shotwell/src/Photo.vala"
_g_free0 (ext);
#line 3748 "/home/jens/Source/shotwell/src/Photo.vala"
ext = _tmp10_;
#line 3748 "/home/jens/Source/shotwell/src/Photo.vala"
_g_free0 (_tmp8_);
#line 3750 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp12_ = ext;
#line 3750 "/home/jens/Source/shotwell/src/Photo.vala"
if (_tmp12_ == NULL) {
#line 3750 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp11_ = TRUE;
#line 26936 "Photo.c"
} else {
PhotoFileFormat _tmp13_ = 0;
PhotoFileFormatProperties* _tmp14_ = NULL;
PhotoFileFormatProperties* _tmp15_ = NULL;
const gchar* _tmp16_ = NULL;
gboolean _tmp17_ = FALSE;
#line 3750 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp13_ = _vala_file_format;
#line 3750 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp14_ = photo_file_format_get_properties (_tmp13_);
#line 3750 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp15_ = _tmp14_;
#line 3750 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp16_ = ext;
#line 3750 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp17_ = photo_file_format_properties_is_recognized_extension (_tmp15_, _tmp16_);
#line 3750 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp11_ = !_tmp17_;
#line 3750 "/home/jens/Source/shotwell/src/Photo.vala"
_photo_file_format_properties_unref0 (_tmp15_);
#line 26957 "Photo.c"
}
#line 3750 "/home/jens/Source/shotwell/src/Photo.vala"
if (_tmp11_) {
#line 26961 "Photo.c"
PhotoFileFormat _tmp18_ = 0;
PhotoFileFormatProperties* _tmp19_ = NULL;
PhotoFileFormatProperties* _tmp20_ = NULL;
gchar* _tmp21_ = NULL;
#line 3751 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp18_ = _vala_file_format;
#line 3751 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp19_ = photo_file_format_get_properties (_tmp18_);
#line 3751 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp20_ = _tmp19_;
#line 3751 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp21_ = photo_file_format_properties_get_default_extension (_tmp20_);
#line 3751 "/home/jens/Source/shotwell/src/Photo.vala"
_g_free0 (ext);
#line 3751 "/home/jens/Source/shotwell/src/Photo.vala"
ext = _tmp21_;
#line 3751 "/home/jens/Source/shotwell/src/Photo.vala"
_photo_file_format_properties_unref0 (_tmp20_);
#line 26980 "Photo.c"
}
#line 3753 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp22_ = name;
#line 3753 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp23_ = _ ("modified");
#line 3753 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp24_ = ext;
#line 3753 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp25_ = g_strdup_printf ("%s_%s.%s", _tmp22_, _tmp23_, _tmp24_);
#line 3753 "/home/jens/Source/shotwell/src/Photo.vala"
editable_basename = _tmp25_;
#line 3756 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp27_ = g_file_get_parent (backing);
#line 3756 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp28_ = _tmp27_;
#line 3756 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp30_ = generate_unique_file (_tmp28_, editable_basename, &_tmp29_, &_inner_error_);
#line 3756 "/home/jens/Source/shotwell/src/Photo.vala"
collision = _tmp29_;
#line 3756 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp31_ = _tmp30_;
#line 3756 "/home/jens/Source/shotwell/src/Photo.vala"
_g_object_unref0 (_tmp28_);
#line 3756 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp26_ = _tmp31_;
#line 3756 "/home/jens/Source/shotwell/src/Photo.vala"
if (G_UNLIKELY (_inner_error_ != NULL)) {
#line 3756 "/home/jens/Source/shotwell/src/Photo.vala"
g_propagate_error (error, _inner_error_);
#line 3756 "/home/jens/Source/shotwell/src/Photo.vala"
_g_free0 (editable_basename);
#line 3756 "/home/jens/Source/shotwell/src/Photo.vala"
_g_free0 (ext);
#line 3756 "/home/jens/Source/shotwell/src/Photo.vala"
_g_free0 (name);
#line 3756 "/home/jens/Source/shotwell/src/Photo.vala"
_g_object_unref0 (backing);
#line 3756 "/home/jens/Source/shotwell/src/Photo.vala"
return NULL;
#line 27020 "Photo.c"
}
#line 3756 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp32_ = _tmp26_;
#line 3756 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp26_ = NULL;
#line 3756 "/home/jens/Source/shotwell/src/Photo.vala"
result = _tmp32_;
#line 3756 "/home/jens/Source/shotwell/src/Photo.vala"
_g_object_unref0 (_tmp26_);
#line 3756 "/home/jens/Source/shotwell/src/Photo.vala"
_g_free0 (editable_basename);
#line 3756 "/home/jens/Source/shotwell/src/Photo.vala"
_g_free0 (ext);
#line 3756 "/home/jens/Source/shotwell/src/Photo.vala"
_g_free0 (name);
#line 3756 "/home/jens/Source/shotwell/src/Photo.vala"
_g_object_unref0 (backing);
#line 3756 "/home/jens/Source/shotwell/src/Photo.vala"
if (file_format) {
#line 3756 "/home/jens/Source/shotwell/src/Photo.vala"
*file_format = _vala_file_format;
#line 27042 "Photo.c"
}
#line 3756 "/home/jens/Source/shotwell/src/Photo.vala"
return result;
#line 27046 "Photo.c"
}
static void _g_object_unref0_ (gpointer var) {
#line 3778 "/home/jens/Source/shotwell/src/Photo.vala"
(var == NULL) ? NULL : (var = (g_object_unref (var), NULL));
#line 27053 "Photo.c"
}
static void _g_list_free__g_object_unref0_ (GList* self) {
#line 3778 "/home/jens/Source/shotwell/src/Photo.vala"
g_list_foreach (self, (GFunc) _g_object_unref0_, NULL);
#line 3778 "/home/jens/Source/shotwell/src/Photo.vala"
g_list_free (self);
#line 27062 "Photo.c"
}
static gboolean photo_launch_editor (GFile* file, PhotoFileFormat file_format, GError** error) {
gboolean result = FALSE;
gchar* _tmp0_ = NULL;
PhotoFileFormat _tmp1_ = 0;
gchar* commandline = NULL;
gchar* _tmp8_ = NULL;
const gchar* _tmp9_ = NULL;
gboolean _tmp10_ = FALSE;
GAppInfo* app = NULL;
GList* files = NULL;
GFile* _tmp15_ = NULL;
GFile* _tmp16_ = NULL;
GAppInfo* _tmp17_ = NULL;
gchar** argv = NULL;
gchar** _tmp22_ = NULL;
gint argv_length1 = 0;
gint _argv_size_ = 0;
gchar** _tmp23_ = NULL;
gint _tmp23__length1 = 0;
const gchar* _tmp24_ = NULL;
gchar* _tmp25_ = NULL;
gchar* _tmp26_ = NULL;
gchar** _tmp27_ = NULL;
gint _tmp27__length1 = 0;
GFile* _tmp28_ = NULL;
gchar* _tmp29_ = NULL;
gchar* _tmp30_ = NULL;
GPid child_pid = 0;
gboolean _tmp31_ = FALSE;
gchar** _tmp32_ = NULL;
gint _tmp32__length1 = 0;
GPid _tmp33_ = 0;
gboolean _tmp34_ = FALSE;
GError * _inner_error_ = NULL;
#line 3759 "/home/jens/Source/shotwell/src/Photo.vala"
g_return_val_if_fail (G_IS_FILE (file), FALSE);
#line 3760 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp1_ = file_format;
#line 3760 "/home/jens/Source/shotwell/src/Photo.vala"
if (_tmp1_ == PHOTO_FILE_FORMAT_RAW) {
#line 27106 "Photo.c"
ConfigFacade* _tmp2_ = NULL;
ConfigFacade* _tmp3_ = NULL;
gchar* _tmp4_ = NULL;
#line 3760 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp2_ = config_facade_get_instance ();
#line 3760 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp3_ = _tmp2_;
#line 3760 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp4_ = configuration_facade_get_external_raw_app (G_TYPE_CHECK_INSTANCE_CAST (_tmp3_, TYPE_CONFIGURATION_FACADE, ConfigurationFacade));
#line 3760 "/home/jens/Source/shotwell/src/Photo.vala"
_g_free0 (_tmp0_);
#line 3760 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp0_ = _tmp4_;
#line 3760 "/home/jens/Source/shotwell/src/Photo.vala"
_g_object_unref0 (_tmp3_);
#line 27122 "Photo.c"
} else {
ConfigFacade* _tmp5_ = NULL;
ConfigFacade* _tmp6_ = NULL;
gchar* _tmp7_ = NULL;
#line 3761 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp5_ = config_facade_get_instance ();
#line 3761 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp6_ = _tmp5_;
#line 3761 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp7_ = configuration_facade_get_external_photo_app (G_TYPE_CHECK_INSTANCE_CAST (_tmp6_, TYPE_CONFIGURATION_FACADE, ConfigurationFacade));
#line 3761 "/home/jens/Source/shotwell/src/Photo.vala"
_g_free0 (_tmp0_);
#line 3761 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp0_ = _tmp7_;
#line 3761 "/home/jens/Source/shotwell/src/Photo.vala"
_g_object_unref0 (_tmp6_);
#line 27139 "Photo.c"
}
#line 3760 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp8_ = g_strdup (_tmp0_);
#line 3760 "/home/jens/Source/shotwell/src/Photo.vala"
commandline = _tmp8_;
#line 3763 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp9_ = commandline;
#line 3763 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp10_ = is_string_empty (_tmp9_);
#line 3763 "/home/jens/Source/shotwell/src/Photo.vala"
if (_tmp10_) {
#line 3764 "/home/jens/Source/shotwell/src/Photo.vala"
result = FALSE;
#line 3764 "/home/jens/Source/shotwell/src/Photo.vala"
_g_free0 (commandline);
#line 3764 "/home/jens/Source/shotwell/src/Photo.vala"
_g_free0 (_tmp0_);
#line 3764 "/home/jens/Source/shotwell/src/Photo.vala"
return result;
#line 27159 "Photo.c"
}
{
GAppInfo* _tmp11_ = NULL;
const gchar* _tmp12_ = NULL;
GAppInfo* _tmp13_ = NULL;
GAppInfo* _tmp14_ = NULL;
#line 3768 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp12_ = commandline;
#line 3768 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp13_ = g_app_info_create_from_commandline (_tmp12_, "", G_APP_INFO_CREATE_NONE, &_inner_error_);
#line 3768 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp11_ = _tmp13_;
#line 3768 "/home/jens/Source/shotwell/src/Photo.vala"
if (G_UNLIKELY (_inner_error_ != NULL)) {
#line 27174 "Photo.c"
goto __catch387_g_error;
}
#line 3768 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp14_ = _tmp11_;
#line 3768 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp11_ = NULL;
#line 3768 "/home/jens/Source/shotwell/src/Photo.vala"
_g_object_unref0 (app);
#line 3768 "/home/jens/Source/shotwell/src/Photo.vala"
app = _tmp14_;
#line 3767 "/home/jens/Source/shotwell/src/Photo.vala"
_g_object_unref0 (_tmp11_);
#line 27187 "Photo.c"
}
goto __finally387;
__catch387_g_error:
{
GError* er = NULL;
#line 3767 "/home/jens/Source/shotwell/src/Photo.vala"
er = _inner_error_;
#line 3767 "/home/jens/Source/shotwell/src/Photo.vala"
_inner_error_ = NULL;
#line 3771 "/home/jens/Source/shotwell/src/Photo.vala"
_g_object_unref0 (app);
#line 3771 "/home/jens/Source/shotwell/src/Photo.vala"
app = NULL;
#line 3767 "/home/jens/Source/shotwell/src/Photo.vala"
_g_error_free0 (er);
#line 27203 "Photo.c"
}
__finally387:
#line 3767 "/home/jens/Source/shotwell/src/Photo.vala"
if (G_UNLIKELY (_inner_error_ != NULL)) {
#line 3767 "/home/jens/Source/shotwell/src/Photo.vala"
g_propagate_error (error, _inner_error_);
#line 3767 "/home/jens/Source/shotwell/src/Photo.vala"
_g_object_unref0 (app);
#line 3767 "/home/jens/Source/shotwell/src/Photo.vala"
_g_free0 (commandline);
#line 3767 "/home/jens/Source/shotwell/src/Photo.vala"
_g_free0 (_tmp0_);
#line 3767 "/home/jens/Source/shotwell/src/Photo.vala"
return FALSE;
#line 27218 "Photo.c"
}
#line 3774 "/home/jens/Source/shotwell/src/Photo.vala"
files = NULL;
#line 3775 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp15_ = file;
#line 3775 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp16_ = _g_object_ref0 (_tmp15_);
#line 3775 "/home/jens/Source/shotwell/src/Photo.vala"
files = g_list_insert (files, _tmp16_, -1);
#line 3777 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp17_ = app;
#line 3777 "/home/jens/Source/shotwell/src/Photo.vala"
if (_tmp17_ != NULL) {
#line 27232 "Photo.c"
gboolean _tmp18_ = FALSE;
GAppInfo* _tmp19_ = NULL;
GList* _tmp20_ = NULL;
gboolean _tmp21_ = FALSE;
#line 3778 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp19_ = app;
#line 3778 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp20_ = files;
#line 3778 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp21_ = g_app_info_launch (_tmp19_, _tmp20_, NULL, &_inner_error_);
#line 3778 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp18_ = _tmp21_;
#line 3778 "/home/jens/Source/shotwell/src/Photo.vala"
if (G_UNLIKELY (_inner_error_ != NULL)) {
#line 3778 "/home/jens/Source/shotwell/src/Photo.vala"
g_propagate_error (error, _inner_error_);
#line 3778 "/home/jens/Source/shotwell/src/Photo.vala"
__g_list_free__g_object_unref0_0 (files);
#line 3778 "/home/jens/Source/shotwell/src/Photo.vala"
_g_object_unref0 (app);
#line 3778 "/home/jens/Source/shotwell/src/Photo.vala"
_g_free0 (commandline);
#line 3778 "/home/jens/Source/shotwell/src/Photo.vala"
_g_free0 (_tmp0_);
#line 3778 "/home/jens/Source/shotwell/src/Photo.vala"
return FALSE;
#line 27259 "Photo.c"
}
#line 3778 "/home/jens/Source/shotwell/src/Photo.vala"
result = _tmp18_;
#line 3778 "/home/jens/Source/shotwell/src/Photo.vala"
__g_list_free__g_object_unref0_0 (files);
#line 3778 "/home/jens/Source/shotwell/src/Photo.vala"
_g_object_unref0 (app);
#line 3778 "/home/jens/Source/shotwell/src/Photo.vala"
_g_free0 (commandline);
#line 3778 "/home/jens/Source/shotwell/src/Photo.vala"
_g_free0 (_tmp0_);
#line 3778 "/home/jens/Source/shotwell/src/Photo.vala"
return result;
#line 27273 "Photo.c"
}
#line 3780 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp22_ = g_new0 (gchar*, 2 + 1);
#line 3780 "/home/jens/Source/shotwell/src/Photo.vala"
argv = _tmp22_;
#line 3780 "/home/jens/Source/shotwell/src/Photo.vala"
argv_length1 = 2;
#line 3780 "/home/jens/Source/shotwell/src/Photo.vala"
_argv_size_ = argv_length1;
#line 3781 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp23_ = argv;
#line 3781 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp23__length1 = argv_length1;
#line 3781 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp24_ = commandline;
#line 3781 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp25_ = g_strdup (_tmp24_);
#line 3781 "/home/jens/Source/shotwell/src/Photo.vala"
_g_free0 (_tmp23_[0]);
#line 3781 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp23_[0] = _tmp25_;
#line 3781 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp26_ = _tmp23_[0];
#line 3782 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp27_ = argv;
#line 3782 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp27__length1 = argv_length1;
#line 3782 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp28_ = file;
#line 3782 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp29_ = g_file_get_path (_tmp28_);
#line 3782 "/home/jens/Source/shotwell/src/Photo.vala"
_g_free0 (_tmp27_[1]);
#line 3782 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp27_[1] = _tmp29_;
#line 3782 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp30_ = _tmp27_[1];
#line 3786 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp32_ = argv;
#line 3786 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp32__length1 = argv_length1;
#line 3786 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp34_ = g_spawn_async ("/", _tmp32_, NULL, G_SPAWN_SEARCH_PATH, NULL, NULL, &_tmp33_, &_inner_error_);
#line 3786 "/home/jens/Source/shotwell/src/Photo.vala"
child_pid = _tmp33_;
#line 3786 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp31_ = _tmp34_;
#line 3786 "/home/jens/Source/shotwell/src/Photo.vala"
if (G_UNLIKELY (_inner_error_ != NULL)) {
#line 3786 "/home/jens/Source/shotwell/src/Photo.vala"
g_propagate_error (error, _inner_error_);
#line 3786 "/home/jens/Source/shotwell/src/Photo.vala"
argv = (_vala_array_free (argv, argv_length1, (GDestroyNotify) g_free), NULL);
#line 3786 "/home/jens/Source/shotwell/src/Photo.vala"
__g_list_free__g_object_unref0_0 (files);
#line 3786 "/home/jens/Source/shotwell/src/Photo.vala"
_g_object_unref0 (app);
#line 3786 "/home/jens/Source/shotwell/src/Photo.vala"
_g_free0 (commandline);
#line 3786 "/home/jens/Source/shotwell/src/Photo.vala"
_g_free0 (_tmp0_);
#line 3786 "/home/jens/Source/shotwell/src/Photo.vala"
return FALSE;
#line 27337 "Photo.c"
}
#line 3786 "/home/jens/Source/shotwell/src/Photo.vala"
result = _tmp31_;
#line 3786 "/home/jens/Source/shotwell/src/Photo.vala"
argv = (_vala_array_free (argv, argv_length1, (GDestroyNotify) g_free), NULL);
#line 3786 "/home/jens/Source/shotwell/src/Photo.vala"
__g_list_free__g_object_unref0_0 (files);
#line 3786 "/home/jens/Source/shotwell/src/Photo.vala"
_g_object_unref0 (app);
#line 3786 "/home/jens/Source/shotwell/src/Photo.vala"
_g_free0 (commandline);
#line 3786 "/home/jens/Source/shotwell/src/Photo.vala"
_g_free0 (_tmp0_);
#line 3786 "/home/jens/Source/shotwell/src/Photo.vala"
return result;
#line 27353 "Photo.c"
}
void photo_open_with_raw_external_editor (Photo* self, GError** error) {
GFile* _tmp0_ = NULL;
GFile* _tmp1_ = NULL;
PhotoFileFormat _tmp2_ = 0;
GError * _inner_error_ = NULL;
#line 3796 "/home/jens/Source/shotwell/src/Photo.vala"
g_return_if_fail (IS_PHOTO (self));
#line 3797 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp0_ = media_source_get_master_file (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_MEDIA_SOURCE, MediaSource));
#line 3797 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp1_ = _tmp0_;
#line 3797 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp2_ = photo_get_master_file_format (self);
#line 3797 "/home/jens/Source/shotwell/src/Photo.vala"
photo_launch_editor (_tmp1_, _tmp2_, &_inner_error_);
#line 3797 "/home/jens/Source/shotwell/src/Photo.vala"
_g_object_unref0 (_tmp1_);
#line 3797 "/home/jens/Source/shotwell/src/Photo.vala"
if (G_UNLIKELY (_inner_error_ != NULL)) {
#line 3797 "/home/jens/Source/shotwell/src/Photo.vala"
g_propagate_error (error, _inner_error_);
#line 3797 "/home/jens/Source/shotwell/src/Photo.vala"
return;
#line 27380 "Photo.c"
}
}
void photo_open_with_external_editor (Photo* self, GError** error) {
GFile* current_editable_file = NULL;
GFile* create_editable_file = NULL;
PhotoFileFormat editable_file_format = 0;
gboolean _tmp15_ = FALSE;
gboolean _tmp16_ = FALSE;
GFile* _tmp17_ = NULL;
gboolean _tmp25_ = FALSE;
GFile* _tmp26_ = NULL;
GFile* _tmp44_ = NULL;
GFileMonitor* _tmp45_ = NULL;
GFile* _tmp47_ = NULL;
PhotoFileFormat _tmp48_ = 0;
GError * _inner_error_ = NULL;
#line 3801 "/home/jens/Source/shotwell/src/Photo.vala"
g_return_if_fail (IS_PHOTO (self));
#line 3802 "/home/jens/Source/shotwell/src/Photo.vala"
current_editable_file = NULL;
#line 3803 "/home/jens/Source/shotwell/src/Photo.vala"
create_editable_file = NULL;
#line 27405 "Photo.c"
{
PhotoBackingReaders* _tmp0_ = NULL;
#line 3805 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp0_ = self->priv->readers;
#line 3805 "/home/jens/Source/shotwell/src/Photo.vala"
g_rec_mutex_lock (&self->priv->__lock_readers);
#line 27412 "Photo.c"
{
PhotoBackingReaders* _tmp1_ = NULL;
PhotoFileReader* _tmp2_ = NULL;
GFile* _tmp6_ = NULL;
#line 3806 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp1_ = self->priv->readers;
#line 3806 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp2_ = _tmp1_->editable;
#line 3806 "/home/jens/Source/shotwell/src/Photo.vala"
if (_tmp2_ != NULL) {
#line 27423 "Photo.c"
PhotoBackingReaders* _tmp3_ = NULL;
PhotoFileReader* _tmp4_ = NULL;
GFile* _tmp5_ = NULL;
#line 3807 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp3_ = self->priv->readers;
#line 3807 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp4_ = _tmp3_->editable;
#line 3807 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp5_ = photo_file_adapter_get_file (G_TYPE_CHECK_INSTANCE_CAST (_tmp4_, TYPE_PHOTO_FILE_ADAPTER, PhotoFileAdapter));
#line 3807 "/home/jens/Source/shotwell/src/Photo.vala"
_g_object_unref0 (current_editable_file);
#line 3807 "/home/jens/Source/shotwell/src/Photo.vala"
current_editable_file = _tmp5_;
#line 27437 "Photo.c"
}
#line 3809 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp6_ = current_editable_file;
#line 3809 "/home/jens/Source/shotwell/src/Photo.vala"
if (_tmp6_ == NULL) {
#line 27443 "Photo.c"
GFile* _tmp7_ = NULL;
PhotoFileFormat _tmp8_ = 0;
GFile* _tmp9_ = NULL;
GFile* _tmp10_ = NULL;
#line 3810 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp9_ = photo_generate_new_editable_file (self, &_tmp8_, &_inner_error_);
#line 3810 "/home/jens/Source/shotwell/src/Photo.vala"
editable_file_format = _tmp8_;
#line 3810 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp7_ = _tmp9_;
#line 3810 "/home/jens/Source/shotwell/src/Photo.vala"
if (G_UNLIKELY (_inner_error_ != NULL)) {
#line 27456 "Photo.c"
goto __finally388;
}
#line 3810 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp10_ = _tmp7_;
#line 3810 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp7_ = NULL;
#line 3810 "/home/jens/Source/shotwell/src/Photo.vala"
_g_object_unref0 (create_editable_file);
#line 3810 "/home/jens/Source/shotwell/src/Photo.vala"
create_editable_file = _tmp10_;
#line 3809 "/home/jens/Source/shotwell/src/Photo.vala"
_g_object_unref0 (_tmp7_);
#line 27469 "Photo.c"
} else {
PhotoBackingReaders* _tmp11_ = NULL;
PhotoFileReader* _tmp12_ = NULL;
PhotoFileFormat _tmp13_ = 0;
#line 3812 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp11_ = self->priv->readers;
#line 3812 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp12_ = _tmp11_->editable;
#line 3812 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp13_ = photo_file_adapter_get_file_format (G_TYPE_CHECK_INSTANCE_CAST (_tmp12_, TYPE_PHOTO_FILE_ADAPTER, PhotoFileAdapter));
#line 3812 "/home/jens/Source/shotwell/src/Photo.vala"
editable_file_format = _tmp13_;
#line 27482 "Photo.c"
}
}
__finally388:
{
PhotoBackingReaders* _tmp14_ = NULL;
#line 3805 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp14_ = self->priv->readers;
#line 3805 "/home/jens/Source/shotwell/src/Photo.vala"
g_rec_mutex_unlock (&self->priv->__lock_readers);
#line 27492 "Photo.c"
}
#line 3805 "/home/jens/Source/shotwell/src/Photo.vala"
if (G_UNLIKELY (_inner_error_ != NULL)) {
#line 3805 "/home/jens/Source/shotwell/src/Photo.vala"
g_propagate_error (error, _inner_error_);
#line 3805 "/home/jens/Source/shotwell/src/Photo.vala"
_g_object_unref0 (create_editable_file);
#line 3805 "/home/jens/Source/shotwell/src/Photo.vala"
_g_object_unref0 (current_editable_file);
#line 3805 "/home/jens/Source/shotwell/src/Photo.vala"
return;
#line 27504 "Photo.c"
}
}
#line 3817 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp17_ = create_editable_file;
#line 3817 "/home/jens/Source/shotwell/src/Photo.vala"
if (_tmp17_ == NULL) {
#line 27511 "Photo.c"
GFile* _tmp18_ = NULL;
#line 3817 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp18_ = current_editable_file;
#line 3817 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp16_ = _tmp18_ != NULL;
#line 27517 "Photo.c"
} else {
#line 3817 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp16_ = FALSE;
#line 27521 "Photo.c"
}
#line 3817 "/home/jens/Source/shotwell/src/Photo.vala"
if (_tmp16_) {
#line 27525 "Photo.c"
gboolean _tmp19_ = FALSE;
GFile* _tmp20_ = NULL;
gboolean _tmp21_ = FALSE;
#line 3818 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp20_ = current_editable_file;
#line 3818 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp21_ = g_file_query_exists (_tmp20_, NULL);
#line 3818 "/home/jens/Source/shotwell/src/Photo.vala"
if (!_tmp21_) {
#line 3818 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp19_ = TRUE;
#line 27537 "Photo.c"
} else {
gboolean _tmp22_ = FALSE;
#line 3818 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp22_ = photo_has_transformations (self);
#line 3818 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp19_ = _tmp22_;
#line 27544 "Photo.c"
}
#line 3818 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp15_ = _tmp19_;
#line 27548 "Photo.c"
} else {
#line 3817 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp15_ = FALSE;
#line 27552 "Photo.c"
}
#line 3817 "/home/jens/Source/shotwell/src/Photo.vala"
if (_tmp15_) {
#line 27556 "Photo.c"
GFile* _tmp23_ = NULL;
GFile* _tmp24_ = NULL;
#line 3819 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp23_ = current_editable_file;
#line 3819 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp24_ = _g_object_ref0 (_tmp23_);
#line 3819 "/home/jens/Source/shotwell/src/Photo.vala"
_g_object_unref0 (create_editable_file);
#line 3819 "/home/jens/Source/shotwell/src/Photo.vala"
create_editable_file = _tmp24_;
#line 27567 "Photo.c"
}
#line 3822 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp26_ = create_editable_file;
#line 3822 "/home/jens/Source/shotwell/src/Photo.vala"
if (_tmp26_ != NULL) {
#line 27573 "Photo.c"
PhotoFileFormat _tmp27_ = 0;
gboolean _tmp28_ = FALSE;
#line 3822 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp27_ = editable_file_format;
#line 3822 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp28_ = photo_file_format_can_write (_tmp27_);
#line 3822 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp25_ = _tmp28_;
#line 27582 "Photo.c"
} else {
#line 3822 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp25_ = FALSE;
#line 27586 "Photo.c"
}
#line 3822 "/home/jens/Source/shotwell/src/Photo.vala"
if (_tmp25_) {
#line 27590 "Photo.c"
PhotoFileFormat _tmp40_ = 0;
GFile* _tmp41_ = NULL;
GFile* _tmp42_ = NULL;
GFile* _tmp43_ = NULL;
#line 3823 "/home/jens/Source/shotwell/src/Photo.vala"
photo_halt_monitoring_editable (self);
#line 27597 "Photo.c"
{
GFile* _tmp29_ = NULL;
Scaling _tmp30_ = {0};
PhotoFileFormat _tmp31_ = 0;
#line 3826 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp29_ = create_editable_file;
#line 3826 "/home/jens/Source/shotwell/src/Photo.vala"
scaling_for_original (&_tmp30_);
#line 3826 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp31_ = editable_file_format;
#line 3826 "/home/jens/Source/shotwell/src/Photo.vala"
photo_export (self, _tmp29_, &_tmp30_, JPEG_QUALITY_MAXIMUM, _tmp31_, FALSE, TRUE, &_inner_error_);
#line 3826 "/home/jens/Source/shotwell/src/Photo.vala"
if (G_UNLIKELY (_inner_error_ != NULL)) {
#line 27612 "Photo.c"
goto __catch389_g_error;
}
}
goto __finally389;
__catch389_g_error:
{
GError* err = NULL;
GError* _tmp38_ = NULL;
GError* _tmp39_ = NULL;
#line 3825 "/home/jens/Source/shotwell/src/Photo.vala"
err = _inner_error_;
#line 3825 "/home/jens/Source/shotwell/src/Photo.vala"
_inner_error_ = NULL;
#line 27626 "Photo.c"
{
GFile* _tmp32_ = NULL;
#line 3831 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp32_ = create_editable_file;
#line 3831 "/home/jens/Source/shotwell/src/Photo.vala"
g_file_delete (_tmp32_, NULL, &_inner_error_);
#line 3831 "/home/jens/Source/shotwell/src/Photo.vala"
if (G_UNLIKELY (_inner_error_ != NULL)) {
#line 27635 "Photo.c"
goto __catch390_g_error;
}
}
goto __finally390;
__catch390_g_error:
{
GError* delete_err = NULL;
GFile* _tmp33_ = NULL;
gchar* _tmp34_ = NULL;
gchar* _tmp35_ = NULL;
GError* _tmp36_ = NULL;
const gchar* _tmp37_ = NULL;
#line 3830 "/home/jens/Source/shotwell/src/Photo.vala"
delete_err = _inner_error_;
#line 3830 "/home/jens/Source/shotwell/src/Photo.vala"
_inner_error_ = NULL;
#line 3834 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp33_ = create_editable_file;
#line 3834 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp34_ = g_file_get_path (_tmp33_);
#line 3834 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp35_ = _tmp34_;
#line 3834 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp36_ = delete_err;
#line 3834 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp37_ = _tmp36_->message;
#line 3834 "/home/jens/Source/shotwell/src/Photo.vala"
g_warning ("Photo.vala:3834: Unable to delete editable file %s after export error:" \
" %s", _tmp35_, _tmp37_);
#line 3834 "/home/jens/Source/shotwell/src/Photo.vala"
_g_free0 (_tmp35_);
#line 3830 "/home/jens/Source/shotwell/src/Photo.vala"
_g_error_free0 (delete_err);
#line 27668 "Photo.c"
}
__finally390:
#line 3830 "/home/jens/Source/shotwell/src/Photo.vala"
if (G_UNLIKELY (_inner_error_ != NULL)) {
#line 3830 "/home/jens/Source/shotwell/src/Photo.vala"
_g_error_free0 (err);
#line 3830 "/home/jens/Source/shotwell/src/Photo.vala"
_g_error_free0 (err);
#line 3830 "/home/jens/Source/shotwell/src/Photo.vala"
_g_object_unref0 (create_editable_file);
#line 3830 "/home/jens/Source/shotwell/src/Photo.vala"
_g_object_unref0 (current_editable_file);
#line 3830 "/home/jens/Source/shotwell/src/Photo.vala"
g_critical ("file %s: line %d: unexpected error: %s (%s, %d)", __FILE__, __LINE__, _inner_error_->message, g_quark_to_string (_inner_error_->domain), _inner_error_->code);
#line 3830 "/home/jens/Source/shotwell/src/Photo.vala"
g_clear_error (&_inner_error_);
#line 3830 "/home/jens/Source/shotwell/src/Photo.vala"
return;
#line 27687 "Photo.c"
}
#line 3838 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp38_ = err;
#line 3838 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp39_ = _g_error_copy0 (_tmp38_);
#line 3838 "/home/jens/Source/shotwell/src/Photo.vala"
_inner_error_ = _tmp39_;
#line 3838 "/home/jens/Source/shotwell/src/Photo.vala"
_g_error_free0 (err);
#line 27697 "Photo.c"
goto __finally389;
}
__finally389:
#line 3825 "/home/jens/Source/shotwell/src/Photo.vala"
if (G_UNLIKELY (_inner_error_ != NULL)) {
#line 3825 "/home/jens/Source/shotwell/src/Photo.vala"
g_propagate_error (error, _inner_error_);
#line 3825 "/home/jens/Source/shotwell/src/Photo.vala"
_g_object_unref0 (create_editable_file);
#line 3825 "/home/jens/Source/shotwell/src/Photo.vala"
_g_object_unref0 (current_editable_file);
#line 3825 "/home/jens/Source/shotwell/src/Photo.vala"
return;
#line 27711 "Photo.c"
}
#line 3842 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp40_ = editable_file_format;
#line 3842 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp41_ = create_editable_file;
#line 3842 "/home/jens/Source/shotwell/src/Photo.vala"
photo_attach_editable (self, _tmp40_, _tmp41_, &_inner_error_);
#line 3842 "/home/jens/Source/shotwell/src/Photo.vala"
if (G_UNLIKELY (_inner_error_ != NULL)) {
#line 3842 "/home/jens/Source/shotwell/src/Photo.vala"
g_propagate_error (error, _inner_error_);
#line 3842 "/home/jens/Source/shotwell/src/Photo.vala"
_g_object_unref0 (create_editable_file);
#line 3842 "/home/jens/Source/shotwell/src/Photo.vala"
_g_object_unref0 (current_editable_file);
#line 3842 "/home/jens/Source/shotwell/src/Photo.vala"
return;
#line 27729 "Photo.c"
}
#line 3844 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp42_ = create_editable_file;
#line 3844 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp43_ = _g_object_ref0 (_tmp42_);
#line 3844 "/home/jens/Source/shotwell/src/Photo.vala"
_g_object_unref0 (current_editable_file);
#line 3844 "/home/jens/Source/shotwell/src/Photo.vala"
current_editable_file = _tmp43_;
#line 27739 "Photo.c"
}
#line 3847 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp44_ = current_editable_file;
#line 3847 "/home/jens/Source/shotwell/src/Photo.vala"
_vala_assert (_tmp44_ != NULL, "current_editable_file != null");
#line 3850 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp45_ = self->priv->editable_monitor;
#line 3850 "/home/jens/Source/shotwell/src/Photo.vala"
if (_tmp45_ == NULL) {
#line 27749 "Photo.c"
GFile* _tmp46_ = NULL;
#line 3851 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp46_ = current_editable_file;
#line 3851 "/home/jens/Source/shotwell/src/Photo.vala"
photo_start_monitoring_editable (self, _tmp46_, &_inner_error_);
#line 3851 "/home/jens/Source/shotwell/src/Photo.vala"
if (G_UNLIKELY (_inner_error_ != NULL)) {
#line 3851 "/home/jens/Source/shotwell/src/Photo.vala"
g_propagate_error (error, _inner_error_);
#line 3851 "/home/jens/Source/shotwell/src/Photo.vala"
_g_object_unref0 (create_editable_file);
#line 3851 "/home/jens/Source/shotwell/src/Photo.vala"
_g_object_unref0 (current_editable_file);
#line 3851 "/home/jens/Source/shotwell/src/Photo.vala"
return;
#line 27765 "Photo.c"
}
}
#line 3853 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp47_ = current_editable_file;
#line 3853 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp48_ = photo_get_file_format (self);
#line 3853 "/home/jens/Source/shotwell/src/Photo.vala"
photo_launch_editor (_tmp47_, _tmp48_, &_inner_error_);
#line 3853 "/home/jens/Source/shotwell/src/Photo.vala"
if (G_UNLIKELY (_inner_error_ != NULL)) {
#line 3853 "/home/jens/Source/shotwell/src/Photo.vala"
g_propagate_error (error, _inner_error_);
#line 3853 "/home/jens/Source/shotwell/src/Photo.vala"
_g_object_unref0 (create_editable_file);
#line 3853 "/home/jens/Source/shotwell/src/Photo.vala"
_g_object_unref0 (current_editable_file);
#line 3853 "/home/jens/Source/shotwell/src/Photo.vala"
return;
#line 27784 "Photo.c"
}
#line 3801 "/home/jens/Source/shotwell/src/Photo.vala"
_g_object_unref0 (create_editable_file);
#line 3801 "/home/jens/Source/shotwell/src/Photo.vala"
_g_object_unref0 (current_editable_file);
#line 27790 "Photo.c"
}
void photo_revert_to_master (Photo* self, gboolean notify) {
gboolean _tmp0_ = FALSE;
#line 3856 "/home/jens/Source/shotwell/src/Photo.vala"
g_return_if_fail (IS_PHOTO (self));
#line 3857 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp0_ = notify;
#line 3857 "/home/jens/Source/shotwell/src/Photo.vala"
photo_detach_editable (self, TRUE, TRUE, _tmp0_);
#line 27802 "Photo.c"
}
static void _photo_on_editable_file_changed_g_file_monitor_changed (GFileMonitor* _sender, GFile* file, GFile* other_file, GFileMonitorEvent event_type, gpointer self) {
#line 3867 "/home/jens/Source/shotwell/src/Photo.vala"
photo_on_editable_file_changed ((Photo*) self, file, other_file, event_type);
#line 27809 "Photo.c"
}
static void photo_start_monitoring_editable (Photo* self, GFile* file, GError** error) {
GFile* _tmp0_ = NULL;
GFileMonitor* _tmp1_ = NULL;
GFile* _tmp2_ = NULL;
GFileMonitor* _tmp3_ = NULL;
GFileMonitor* _tmp4_ = NULL;
GFileMonitor* _tmp5_ = NULL;
GError * _inner_error_ = NULL;
#line 3860 "/home/jens/Source/shotwell/src/Photo.vala"
g_return_if_fail (IS_PHOTO (self));
#line 3860 "/home/jens/Source/shotwell/src/Photo.vala"
g_return_if_fail (G_IS_FILE (file));
#line 3861 "/home/jens/Source/shotwell/src/Photo.vala"
photo_halt_monitoring_editable (self);
#line 3864 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp0_ = file;
#line 3864 "/home/jens/Source/shotwell/src/Photo.vala"
library_monitor_blacklist_file (_tmp0_, "Photo.start_monitoring_editable");
#line 3866 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp2_ = file;
#line 3866 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp3_ = g_file_monitor (_tmp2_, G_FILE_MONITOR_NONE, NULL, &_inner_error_);
#line 3866 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp1_ = _tmp3_;
#line 3866 "/home/jens/Source/shotwell/src/Photo.vala"
if (G_UNLIKELY (_inner_error_ != NULL)) {
#line 3866 "/home/jens/Source/shotwell/src/Photo.vala"
g_propagate_error (error, _inner_error_);
#line 3866 "/home/jens/Source/shotwell/src/Photo.vala"
return;
#line 27843 "Photo.c"
}
#line 3866 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp4_ = _tmp1_;
#line 3866 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp1_ = NULL;
#line 3866 "/home/jens/Source/shotwell/src/Photo.vala"
_g_object_unref0 (self->priv->editable_monitor);
#line 3866 "/home/jens/Source/shotwell/src/Photo.vala"
self->priv->editable_monitor = _tmp4_;
#line 3867 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp5_ = self->priv->editable_monitor;
#line 3867 "/home/jens/Source/shotwell/src/Photo.vala"
g_signal_connect_object (_tmp5_, "changed", (GCallback) _photo_on_editable_file_changed_g_file_monitor_changed, self, 0);
#line 3860 "/home/jens/Source/shotwell/src/Photo.vala"
_g_object_unref0 (_tmp1_);
#line 27859 "Photo.c"
}
static void photo_halt_monitoring_editable (Photo* self) {
GFileMonitor* _tmp0_ = NULL;
GFile* file = NULL;
GFile* _tmp1_ = NULL;
GFile* _tmp2_ = NULL;
GFileMonitor* _tmp4_ = NULL;
guint _tmp5_ = 0U;
GFileMonitor* _tmp6_ = NULL;
#line 3870 "/home/jens/Source/shotwell/src/Photo.vala"
g_return_if_fail (IS_PHOTO (self));
#line 3871 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp0_ = self->priv->editable_monitor;
#line 3871 "/home/jens/Source/shotwell/src/Photo.vala"
if (_tmp0_ == NULL) {
#line 3872 "/home/jens/Source/shotwell/src/Photo.vala"
return;
#line 27879 "Photo.c"
}
#line 3875 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp1_ = photo_get_editable_file (self);
#line 3875 "/home/jens/Source/shotwell/src/Photo.vala"
file = _tmp1_;
#line 3876 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp2_ = file;
#line 3876 "/home/jens/Source/shotwell/src/Photo.vala"
if (_tmp2_ != NULL) {
#line 27889 "Photo.c"
GFile* _tmp3_ = NULL;
#line 3877 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp3_ = file;
#line 3877 "/home/jens/Source/shotwell/src/Photo.vala"
library_monitor_unblacklist_file (_tmp3_);
#line 27895 "Photo.c"
}
#line 3879 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp4_ = self->priv->editable_monitor;
#line 3879 "/home/jens/Source/shotwell/src/Photo.vala"
g_signal_parse_name ("changed", g_file_monitor_get_type (), &_tmp5_, NULL, FALSE);
#line 3879 "/home/jens/Source/shotwell/src/Photo.vala"
g_signal_handlers_disconnect_matched (_tmp4_, G_SIGNAL_MATCH_ID | G_SIGNAL_MATCH_FUNC | G_SIGNAL_MATCH_DATA, _tmp5_, 0, NULL, (GCallback) _photo_on_editable_file_changed_g_file_monitor_changed, self);
#line 3880 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp6_ = self->priv->editable_monitor;
#line 3880 "/home/jens/Source/shotwell/src/Photo.vala"
g_file_monitor_cancel (_tmp6_);
#line 3881 "/home/jens/Source/shotwell/src/Photo.vala"
_g_object_unref0 (self->priv->editable_monitor);
#line 3881 "/home/jens/Source/shotwell/src/Photo.vala"
self->priv->editable_monitor = NULL;
#line 3870 "/home/jens/Source/shotwell/src/Photo.vala"
_g_object_unref0 (file);
#line 27913 "Photo.c"
}
static void photo_attach_editable (Photo* self, PhotoFileFormat file_format, GFile* file, GError** error) {
PhotoFileFormat _tmp0_ = 0;
GFile* _tmp1_ = NULL;
gchar* _tmp2_ = NULL;
gchar* _tmp3_ = NULL;
PhotoFileReader* _tmp4_ = NULL;
PhotoFileReader* _tmp5_ = NULL;
GError * _inner_error_ = NULL;
#line 3884 "/home/jens/Source/shotwell/src/Photo.vala"
g_return_if_fail (IS_PHOTO (self));
#line 3884 "/home/jens/Source/shotwell/src/Photo.vala"
g_return_if_fail (G_IS_FILE (file));
#line 3889 "/home/jens/Source/shotwell/src/Photo.vala"
photo_internal_remove_all_transformations (self, FALSE);
#line 3890 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp0_ = file_format;
#line 3890 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp1_ = file;
#line 3890 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp2_ = g_file_get_path (_tmp1_);
#line 3890 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp3_ = _tmp2_;
#line 3890 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp4_ = photo_file_format_create_reader (_tmp0_, _tmp3_);
#line 3890 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp5_ = _tmp4_;
#line 3890 "/home/jens/Source/shotwell/src/Photo.vala"
photo_update_editable (self, FALSE, _tmp5_, &_inner_error_);
#line 3890 "/home/jens/Source/shotwell/src/Photo.vala"
_photo_file_adapter_unref0 (_tmp5_);
#line 3890 "/home/jens/Source/shotwell/src/Photo.vala"
_g_free0 (_tmp3_);
#line 3890 "/home/jens/Source/shotwell/src/Photo.vala"
if (G_UNLIKELY (_inner_error_ != NULL)) {
#line 3890 "/home/jens/Source/shotwell/src/Photo.vala"
g_propagate_error (error, _inner_error_);
#line 3890 "/home/jens/Source/shotwell/src/Photo.vala"
return;
#line 27955 "Photo.c"
}
}
static void photo_update_editable_attributes (Photo* self, GError** error) {
GError * _inner_error_ = NULL;
#line 3893 "/home/jens/Source/shotwell/src/Photo.vala"
g_return_if_fail (IS_PHOTO (self));
#line 3894 "/home/jens/Source/shotwell/src/Photo.vala"
photo_update_editable (self, TRUE, NULL, &_inner_error_);
#line 3894 "/home/jens/Source/shotwell/src/Photo.vala"
if (G_UNLIKELY (_inner_error_ != NULL)) {
#line 3894 "/home/jens/Source/shotwell/src/Photo.vala"
g_propagate_error (error, _inner_error_);
#line 3894 "/home/jens/Source/shotwell/src/Photo.vala"
return;
#line 27972 "Photo.c"
}
}
void photo_reimport_editable (Photo* self, GError** error) {
GError * _inner_error_ = NULL;
#line 3897 "/home/jens/Source/shotwell/src/Photo.vala"
g_return_if_fail (IS_PHOTO (self));
#line 3898 "/home/jens/Source/shotwell/src/Photo.vala"
photo_update_editable (self, FALSE, NULL, &_inner_error_);
#line 3898 "/home/jens/Source/shotwell/src/Photo.vala"
if (G_UNLIKELY (_inner_error_ != NULL)) {
#line 3898 "/home/jens/Source/shotwell/src/Photo.vala"
g_propagate_error (error, _inner_error_);
#line 3898 "/home/jens/Source/shotwell/src/Photo.vala"
return;
#line 27989 "Photo.c"
}
}
static void _vala_array_add269 (gchar*** array, int* length, int* size, gchar* value) {
#line 4005 "/home/jens/Source/shotwell/src/Photo.vala"
if ((*length) == (*size)) {
#line 4005 "/home/jens/Source/shotwell/src/Photo.vala"
*size = (*size) ? (2 * (*size)) : 4;
#line 4005 "/home/jens/Source/shotwell/src/Photo.vala"
*array = g_renew (gchar*, *array, (*size) + 1);
#line 28001 "Photo.c"
}
#line 4005 "/home/jens/Source/shotwell/src/Photo.vala"
(*array)[(*length)++] = value;
#line 4005 "/home/jens/Source/shotwell/src/Photo.vala"
(*array)[*length] = NULL;
#line 28007 "Photo.c"
}
static void _vala_array_add270 (gchar*** array, int* length, int* size, gchar* value) {
#line 4006 "/home/jens/Source/shotwell/src/Photo.vala"
if ((*length) == (*size)) {
#line 4006 "/home/jens/Source/shotwell/src/Photo.vala"
*size = (*size) ? (2 * (*size)) : 4;
#line 4006 "/home/jens/Source/shotwell/src/Photo.vala"
*array = g_renew (gchar*, *array, (*size) + 1);
#line 28018 "Photo.c"
}
#line 4006 "/home/jens/Source/shotwell/src/Photo.vala"
(*array)[(*length)++] = value;
#line 4006 "/home/jens/Source/shotwell/src/Photo.vala"
(*array)[*length] = NULL;
#line 28024 "Photo.c"
}
static void _vala_array_add271 (gchar*** array, int* length, int* size, gchar* value) {
#line 4009 "/home/jens/Source/shotwell/src/Photo.vala"
if ((*length) == (*size)) {
#line 4009 "/home/jens/Source/shotwell/src/Photo.vala"
*size = (*size) ? (2 * (*size)) : 4;
#line 4009 "/home/jens/Source/shotwell/src/Photo.vala"
*array = g_renew (gchar*, *array, (*size) + 1);
#line 28035 "Photo.c"
}
#line 4009 "/home/jens/Source/shotwell/src/Photo.vala"
(*array)[(*length)++] = value;
#line 4009 "/home/jens/Source/shotwell/src/Photo.vala"
(*array)[*length] = NULL;
#line 28041 "Photo.c"
}
static void _vala_array_add272 (gchar*** array, int* length, int* size, gchar* value) {
#line 4013 "/home/jens/Source/shotwell/src/Photo.vala"
if ((*length) == (*size)) {
#line 4013 "/home/jens/Source/shotwell/src/Photo.vala"
*size = (*size) ? (2 * (*size)) : 4;
#line 4013 "/home/jens/Source/shotwell/src/Photo.vala"
*array = g_renew (gchar*, *array, (*size) + 1);
#line 28052 "Photo.c"
}
#line 4013 "/home/jens/Source/shotwell/src/Photo.vala"
(*array)[(*length)++] = value;
#line 4013 "/home/jens/Source/shotwell/src/Photo.vala"
(*array)[*length] = NULL;
#line 28058 "Photo.c"
}
static void _vala_array_add273 (gchar*** array, int* length, int* size, gchar* value) {
#line 4014 "/home/jens/Source/shotwell/src/Photo.vala"
if ((*length) == (*size)) {
#line 4014 "/home/jens/Source/shotwell/src/Photo.vala"
*size = (*size) ? (2 * (*size)) : 4;
#line 4014 "/home/jens/Source/shotwell/src/Photo.vala"
*array = g_renew (gchar*, *array, (*size) + 1);
#line 28069 "Photo.c"
}
#line 4014 "/home/jens/Source/shotwell/src/Photo.vala"
(*array)[(*length)++] = value;
#line 4014 "/home/jens/Source/shotwell/src/Photo.vala"
(*array)[*length] = NULL;
#line 28075 "Photo.c"
}
static void _vala_array_add274 (gchar*** array, int* length, int* size, gchar* value) {
#line 4017 "/home/jens/Source/shotwell/src/Photo.vala"
if ((*length) == (*size)) {
#line 4017 "/home/jens/Source/shotwell/src/Photo.vala"
*size = (*size) ? (2 * (*size)) : 4;
#line 4017 "/home/jens/Source/shotwell/src/Photo.vala"
*array = g_renew (gchar*, *array, (*size) + 1);
#line 28086 "Photo.c"
}
#line 4017 "/home/jens/Source/shotwell/src/Photo.vala"
(*array)[(*length)++] = value;
#line 4017 "/home/jens/Source/shotwell/src/Photo.vala"
(*array)[*length] = NULL;
#line 28092 "Photo.c"
}
static void photo_update_editable (Photo* self, gboolean only_attributes, PhotoFileReader* new_reader, GError** error) {
gboolean _tmp0_ = FALSE;
gboolean _tmp1_ = FALSE;
gboolean _tmp2_ = FALSE;
PhotoFileReader* old_reader = NULL;
PhotoFileReader* _tmp5_ = NULL;
PhotoFileReader* _tmp6_ = NULL;
PhotoFileReader* _tmp7_ = NULL;
PhotoFileReader* reader = NULL;
PhotoFileReader* _tmp9_ = NULL;
PhotoFileReader* _tmp10_ = NULL;
gboolean timestamp_changed = FALSE;
gboolean filesize_changed = FALSE;
gboolean is_new_editable = FALSE;
BackingPhotoID editable_id = {0};
BackingPhotoID _tmp11_ = {0};
GFile* file = NULL;
PhotoFileReader* _tmp12_ = NULL;
GFile* _tmp13_ = NULL;
DetectedPhotoInformation* detected = NULL;
BackingPhotoRow* backing = NULL;
GFile* _tmp14_ = NULL;
DetectedPhotoInformation* _tmp15_ = NULL;
BackingPhotoRow* _tmp16_ = NULL;
gboolean _tmp17_ = FALSE;
gboolean _tmp35_ = FALSE;
PhotoFileReader* _tmp94_ = NULL;
gboolean _tmp100_ = FALSE;
gboolean _tmp101_ = FALSE;
gchar** alteration_list = NULL;
gchar** _tmp112_ = NULL;
gint alteration_list_length1 = 0;
gint _alteration_list_size_ = 0;
gboolean _tmp113_ = FALSE;
gboolean _tmp121_ = FALSE;
gboolean _tmp122_ = FALSE;
gchar** _tmp131_ = NULL;
gint _tmp131__length1 = 0;
GError * _inner_error_ = NULL;
#line 3903 "/home/jens/Source/shotwell/src/Photo.vala"
g_return_if_fail (IS_PHOTO (self));
#line 3903 "/home/jens/Source/shotwell/src/Photo.vala"
g_return_if_fail ((new_reader == NULL) || IS_PHOTO_FILE_READER (new_reader));
#line 3905 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp2_ = only_attributes;
#line 3905 "/home/jens/Source/shotwell/src/Photo.vala"
if (_tmp2_) {
#line 28143 "Photo.c"
PhotoFileReader* _tmp3_ = NULL;
#line 3905 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp3_ = new_reader;
#line 3905 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp1_ = _tmp3_ == NULL;
#line 28149 "Photo.c"
} else {
#line 3905 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp1_ = FALSE;
#line 28153 "Photo.c"
}
#line 3905 "/home/jens/Source/shotwell/src/Photo.vala"
if (_tmp1_) {
#line 3905 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp0_ = TRUE;
#line 28159 "Photo.c"
} else {
gboolean _tmp4_ = FALSE;
#line 3905 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp4_ = only_attributes;
#line 3905 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp0_ = !_tmp4_;
#line 28166 "Photo.c"
}
#line 3905 "/home/jens/Source/shotwell/src/Photo.vala"
_vala_assert (_tmp0_, "(only_attributes && new_reader == null) || (!only_attributes)");
#line 3907 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp5_ = photo_get_editable_reader (self);
#line 3907 "/home/jens/Source/shotwell/src/Photo.vala"
old_reader = _tmp5_;
#line 3909 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp7_ = new_reader;
#line 3909 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp6_ = _tmp7_;
#line 3909 "/home/jens/Source/shotwell/src/Photo.vala"
if (_tmp6_ == NULL) {
#line 28180 "Photo.c"
PhotoFileReader* _tmp8_ = NULL;
#line 3909 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp8_ = old_reader;
#line 3909 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp6_ = _tmp8_;
#line 28186 "Photo.c"
}
#line 3909 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp9_ = _photo_file_adapter_ref0 (_tmp6_);
#line 3909 "/home/jens/Source/shotwell/src/Photo.vala"
reader = _tmp9_;
#line 3910 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp10_ = reader;
#line 3910 "/home/jens/Source/shotwell/src/Photo.vala"
if (_tmp10_ == NULL) {
#line 3911 "/home/jens/Source/shotwell/src/Photo.vala"
photo_detach_editable (self, FALSE, TRUE, TRUE);
#line 3913 "/home/jens/Source/shotwell/src/Photo.vala"
_photo_file_adapter_unref0 (reader);
#line 3913 "/home/jens/Source/shotwell/src/Photo.vala"
_photo_file_adapter_unref0 (old_reader);
#line 3913 "/home/jens/Source/shotwell/src/Photo.vala"
return;
#line 28204 "Photo.c"
}
#line 3916 "/home/jens/Source/shotwell/src/Photo.vala"
timestamp_changed = FALSE;
#line 3917 "/home/jens/Source/shotwell/src/Photo.vala"
filesize_changed = FALSE;
#line 3918 "/home/jens/Source/shotwell/src/Photo.vala"
is_new_editable = FALSE;
#line 3920 "/home/jens/Source/shotwell/src/Photo.vala"
photo_get_editable_id (self, &_tmp11_);
#line 3920 "/home/jens/Source/shotwell/src/Photo.vala"
editable_id = _tmp11_;
#line 3921 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp12_ = reader;
#line 3921 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp13_ = photo_file_adapter_get_file (G_TYPE_CHECK_INSTANCE_CAST (_tmp12_, TYPE_PHOTO_FILE_ADAPTER, PhotoFileAdapter));
#line 3921 "/home/jens/Source/shotwell/src/Photo.vala"
file = _tmp13_;
#line 3924 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp14_ = file;
#line 3924 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp16_ = photo_query_backing_photo_row (self, _tmp14_, PHOTO_FILE_SNIFFER_OPTIONS_NO_MD5, &_tmp15_, &_inner_error_);
#line 3924 "/home/jens/Source/shotwell/src/Photo.vala"
_detected_photo_information_unref0 (detected);
#line 3924 "/home/jens/Source/shotwell/src/Photo.vala"
detected = _tmp15_;
#line 3924 "/home/jens/Source/shotwell/src/Photo.vala"
backing = _tmp16_;
#line 3924 "/home/jens/Source/shotwell/src/Photo.vala"
if (G_UNLIKELY (_inner_error_ != NULL)) {
#line 3924 "/home/jens/Source/shotwell/src/Photo.vala"
g_propagate_error (error, _inner_error_);
#line 3924 "/home/jens/Source/shotwell/src/Photo.vala"
_detected_photo_information_unref0 (detected);
#line 3924 "/home/jens/Source/shotwell/src/Photo.vala"
_g_object_unref0 (file);
#line 3924 "/home/jens/Source/shotwell/src/Photo.vala"
_photo_file_adapter_unref0 (reader);
#line 3924 "/home/jens/Source/shotwell/src/Photo.vala"
_photo_file_adapter_unref0 (old_reader);
#line 3924 "/home/jens/Source/shotwell/src/Photo.vala"
return;
#line 28246 "Photo.c"
}
#line 3928 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp17_ = backing_photo_id_is_invalid (&editable_id);
#line 3928 "/home/jens/Source/shotwell/src/Photo.vala"
if (_tmp17_) {
#line 28252 "Photo.c"
BackingPhotoRow* _tmp18_ = NULL;
#line 3930 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp18_ = backing;
#line 3930 "/home/jens/Source/shotwell/src/Photo.vala"
if (_tmp18_ != NULL) {
#line 28258 "Photo.c"
BackingPhotoTable* _tmp19_ = NULL;
BackingPhotoTable* _tmp20_ = NULL;
BackingPhotoRow* _tmp21_ = NULL;
#line 3931 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp19_ = backing_photo_table_get_instance ();
#line 3931 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp20_ = _tmp19_;
#line 3931 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp21_ = backing;
#line 3931 "/home/jens/Source/shotwell/src/Photo.vala"
backing_photo_table_add (_tmp20_, _tmp21_, &_inner_error_);
#line 3931 "/home/jens/Source/shotwell/src/Photo.vala"
_database_table_unref0 (_tmp20_);
#line 3931 "/home/jens/Source/shotwell/src/Photo.vala"
if (G_UNLIKELY (_inner_error_ != NULL)) {
#line 3931 "/home/jens/Source/shotwell/src/Photo.vala"
g_propagate_error (error, _inner_error_);
#line 3931 "/home/jens/Source/shotwell/src/Photo.vala"
_backing_photo_row_unref0 (backing);
#line 3931 "/home/jens/Source/shotwell/src/Photo.vala"
_detected_photo_information_unref0 (detected);
#line 3931 "/home/jens/Source/shotwell/src/Photo.vala"
_g_object_unref0 (file);
#line 3931 "/home/jens/Source/shotwell/src/Photo.vala"
_photo_file_adapter_unref0 (reader);
#line 3931 "/home/jens/Source/shotwell/src/Photo.vala"
_photo_file_adapter_unref0 (old_reader);
#line 3931 "/home/jens/Source/shotwell/src/Photo.vala"
return;
#line 28288 "Photo.c"
}
{
PhotoRow* _tmp22_ = NULL;
#line 3932 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp22_ = self->row;
#line 3932 "/home/jens/Source/shotwell/src/Photo.vala"
g_rec_mutex_lock (&self->priv->__lock_row);
#line 28296 "Photo.c"
{
PhotoTable* _tmp23_ = NULL;
PhotoTable* _tmp24_ = NULL;
PhotoRow* _tmp25_ = NULL;
BackingPhotoRow* _tmp26_ = NULL;
BackingPhotoID _tmp27_ = {0};
BackingPhotoRow* _tmp28_ = NULL;
BackingPhotoRow* _tmp29_ = NULL;
BackingPhotoRow* _tmp30_ = NULL;
BackingPhotoRow* _tmp31_ = NULL;
BackingPhotoRow* _tmp32_ = NULL;
Orientation _tmp33_ = 0;
#line 3933 "/home/jens/Source/shotwell/src/Photo.vala"
timestamp_changed = TRUE;
#line 3934 "/home/jens/Source/shotwell/src/Photo.vala"
filesize_changed = TRUE;
#line 3936 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp23_ = photo_table_get_instance ();
#line 3936 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp24_ = _tmp23_;
#line 3936 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp25_ = self->row;
#line 3936 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp26_ = backing;
#line 3936 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp27_ = _tmp26_->id;
#line 3936 "/home/jens/Source/shotwell/src/Photo.vala"
photo_table_attach_editable (_tmp24_, _tmp25_, &_tmp27_, &_inner_error_);
#line 3936 "/home/jens/Source/shotwell/src/Photo.vala"
_database_table_unref0 (_tmp24_);
#line 3936 "/home/jens/Source/shotwell/src/Photo.vala"
if (G_UNLIKELY (_inner_error_ != NULL)) {
#line 28329 "Photo.c"
goto __finally391;
}
#line 3937 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp28_ = backing;
#line 3937 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp29_ = _backing_photo_row_ref0 (_tmp28_);
#line 3937 "/home/jens/Source/shotwell/src/Photo.vala"
_backing_photo_row_unref0 (self->priv->editable);
#line 3937 "/home/jens/Source/shotwell/src/Photo.vala"
self->priv->editable = _tmp29_;
#line 3938 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp30_ = self->priv->editable;
#line 3938 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp31_ = _backing_photo_row_ref0 (_tmp30_);
#line 3938 "/home/jens/Source/shotwell/src/Photo.vala"
_backing_photo_row_unref0 (self->backing_photo_row);
#line 3938 "/home/jens/Source/shotwell/src/Photo.vala"
self->backing_photo_row = _tmp31_;
#line 3939 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp32_ = self->backing_photo_row;
#line 3939 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp33_ = _tmp32_->original_orientation;
#line 3939 "/home/jens/Source/shotwell/src/Photo.vala"
photo_set_orientation (self, _tmp33_);
#line 28354 "Photo.c"
}
__finally391:
{
PhotoRow* _tmp34_ = NULL;
#line 3932 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp34_ = self->row;
#line 3932 "/home/jens/Source/shotwell/src/Photo.vala"
g_rec_mutex_unlock (&self->priv->__lock_row);
#line 28363 "Photo.c"
}
#line 3932 "/home/jens/Source/shotwell/src/Photo.vala"
if (G_UNLIKELY (_inner_error_ != NULL)) {
#line 3932 "/home/jens/Source/shotwell/src/Photo.vala"
g_propagate_error (error, _inner_error_);
#line 3932 "/home/jens/Source/shotwell/src/Photo.vala"
_backing_photo_row_unref0 (backing);
#line 3932 "/home/jens/Source/shotwell/src/Photo.vala"
_detected_photo_information_unref0 (detected);
#line 3932 "/home/jens/Source/shotwell/src/Photo.vala"
_g_object_unref0 (file);
#line 3932 "/home/jens/Source/shotwell/src/Photo.vala"
_photo_file_adapter_unref0 (reader);
#line 3932 "/home/jens/Source/shotwell/src/Photo.vala"
_photo_file_adapter_unref0 (old_reader);
#line 3932 "/home/jens/Source/shotwell/src/Photo.vala"
return;
#line 28381 "Photo.c"
}
}
}
#line 3942 "/home/jens/Source/shotwell/src/Photo.vala"
is_new_editable = TRUE;
#line 28387 "Photo.c"
}
#line 3945 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp35_ = only_attributes;
#line 3945 "/home/jens/Source/shotwell/src/Photo.vala"
if (_tmp35_) {
#line 28393 "Photo.c"
gboolean _tmp36_ = FALSE;
GFileInfo* info = NULL;
GTimeVal timestamp = {0};
GFileInfo* _tmp45_ = NULL;
GTimeVal _tmp46_ = {0};
BackingPhotoTable* _tmp47_ = NULL;
BackingPhotoTable* _tmp48_ = NULL;
BackingPhotoID _tmp49_ = {0};
GTimeVal _tmp50_ = {0};
glong _tmp51_ = 0L;
GFileInfo* _tmp52_ = NULL;
gint64 _tmp53_ = 0LL;
#line 3947 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp36_ = backing_photo_id_is_valid (&editable_id);
#line 3947 "/home/jens/Source/shotwell/src/Photo.vala"
_vala_assert (_tmp36_, "editable_id.is_valid()");
#line 28410 "Photo.c"
{
GFileInfo* _tmp37_ = NULL;
GFile* _tmp38_ = NULL;
GFileInfo* _tmp39_ = NULL;
GFileInfo* _tmp40_ = NULL;
#line 3951 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp38_ = file;
#line 3951 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp39_ = g_file_query_filesystem_info (_tmp38_, DIRECTORY_MONITOR_SUPPLIED_ATTRIBUTES, NULL, &_inner_error_);
#line 3951 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp37_ = _tmp39_;
#line 3951 "/home/jens/Source/shotwell/src/Photo.vala"
if (G_UNLIKELY (_inner_error_ != NULL)) {
#line 28424 "Photo.c"
goto __catch392_g_error;
}
#line 3951 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp40_ = _tmp37_;
#line 3951 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp37_ = NULL;
#line 3951 "/home/jens/Source/shotwell/src/Photo.vala"
_g_object_unref0 (info);
#line 3951 "/home/jens/Source/shotwell/src/Photo.vala"
info = _tmp40_;
#line 3950 "/home/jens/Source/shotwell/src/Photo.vala"
_g_object_unref0 (_tmp37_);
#line 28437 "Photo.c"
}
goto __finally392;
__catch392_g_error:
{
GError* err = NULL;
gchar* _tmp41_ = NULL;
gchar* _tmp42_ = NULL;
GError* _tmp43_ = NULL;
const gchar* _tmp44_ = NULL;
#line 3950 "/home/jens/Source/shotwell/src/Photo.vala"
err = _inner_error_;
#line 3950 "/home/jens/Source/shotwell/src/Photo.vala"
_inner_error_ = NULL;
#line 3953 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp41_ = data_object_to_string (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_DATA_OBJECT, DataObject));
#line 3953 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp42_ = _tmp41_;
#line 3953 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp43_ = err;
#line 3953 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp44_ = _tmp43_->message;
#line 3953 "/home/jens/Source/shotwell/src/Photo.vala"
g_warning ("Photo.vala:3953: Unable to read editable filesystem info for %s: %s", _tmp42_, _tmp44_);
#line 3953 "/home/jens/Source/shotwell/src/Photo.vala"
_g_free0 (_tmp42_);
#line 3954 "/home/jens/Source/shotwell/src/Photo.vala"
photo_detach_editable (self, FALSE, TRUE, TRUE);
#line 3956 "/home/jens/Source/shotwell/src/Photo.vala"
_g_error_free0 (err);
#line 3956 "/home/jens/Source/shotwell/src/Photo.vala"
_g_object_unref0 (info);
#line 3956 "/home/jens/Source/shotwell/src/Photo.vala"
_backing_photo_row_unref0 (backing);
#line 3956 "/home/jens/Source/shotwell/src/Photo.vala"
_detected_photo_information_unref0 (detected);
#line 3956 "/home/jens/Source/shotwell/src/Photo.vala"
_g_object_unref0 (file);
#line 3956 "/home/jens/Source/shotwell/src/Photo.vala"
_photo_file_adapter_unref0 (reader);
#line 3956 "/home/jens/Source/shotwell/src/Photo.vala"
_photo_file_adapter_unref0 (old_reader);
#line 3956 "/home/jens/Source/shotwell/src/Photo.vala"
return;
#line 28481 "Photo.c"
}
__finally392:
#line 3950 "/home/jens/Source/shotwell/src/Photo.vala"
if (G_UNLIKELY (_inner_error_ != NULL)) {
#line 3950 "/home/jens/Source/shotwell/src/Photo.vala"
g_propagate_error (error, _inner_error_);
#line 3950 "/home/jens/Source/shotwell/src/Photo.vala"
_g_object_unref0 (info);
#line 3950 "/home/jens/Source/shotwell/src/Photo.vala"
_backing_photo_row_unref0 (backing);
#line 3950 "/home/jens/Source/shotwell/src/Photo.vala"
_detected_photo_information_unref0 (detected);
#line 3950 "/home/jens/Source/shotwell/src/Photo.vala"
_g_object_unref0 (file);
#line 3950 "/home/jens/Source/shotwell/src/Photo.vala"
_photo_file_adapter_unref0 (reader);
#line 3950 "/home/jens/Source/shotwell/src/Photo.vala"
_photo_file_adapter_unref0 (old_reader);
#line 3950 "/home/jens/Source/shotwell/src/Photo.vala"
return;
#line 28502 "Photo.c"
}
#line 3959 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp45_ = info;
#line 3959 "/home/jens/Source/shotwell/src/Photo.vala"
g_file_info_get_modification_time (_tmp45_, &_tmp46_);
#line 3959 "/home/jens/Source/shotwell/src/Photo.vala"
timestamp = _tmp46_;
#line 3961 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp47_ = backing_photo_table_get_instance ();
#line 3961 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp48_ = _tmp47_;
#line 3961 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp49_ = editable_id;
#line 3961 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp50_ = timestamp;
#line 3961 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp51_ = _tmp50_.tv_sec;
#line 3961 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp52_ = info;
#line 3961 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp53_ = g_file_info_get_size (_tmp52_);
#line 3961 "/home/jens/Source/shotwell/src/Photo.vala"
backing_photo_table_update_attributes (_tmp48_, &_tmp49_, (time_t) _tmp51_, _tmp53_, &_inner_error_);
#line 3961 "/home/jens/Source/shotwell/src/Photo.vala"
_database_table_unref0 (_tmp48_);
#line 3961 "/home/jens/Source/shotwell/src/Photo.vala"
if (G_UNLIKELY (_inner_error_ != NULL)) {
#line 3961 "/home/jens/Source/shotwell/src/Photo.vala"
g_propagate_error (error, _inner_error_);
#line 3961 "/home/jens/Source/shotwell/src/Photo.vala"
_g_object_unref0 (info);
#line 3961 "/home/jens/Source/shotwell/src/Photo.vala"
_backing_photo_row_unref0 (backing);
#line 3961 "/home/jens/Source/shotwell/src/Photo.vala"
_detected_photo_information_unref0 (detected);
#line 3961 "/home/jens/Source/shotwell/src/Photo.vala"
_g_object_unref0 (file);
#line 3961 "/home/jens/Source/shotwell/src/Photo.vala"
_photo_file_adapter_unref0 (reader);
#line 3961 "/home/jens/Source/shotwell/src/Photo.vala"
_photo_file_adapter_unref0 (old_reader);
#line 3961 "/home/jens/Source/shotwell/src/Photo.vala"
return;
#line 28546 "Photo.c"
}
{
PhotoRow* _tmp54_ = NULL;
#line 3963 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp54_ = self->row;
#line 3963 "/home/jens/Source/shotwell/src/Photo.vala"
g_rec_mutex_lock (&self->priv->__lock_row);
#line 28554 "Photo.c"
{
BackingPhotoRow* _tmp55_ = NULL;
time_t _tmp56_ = 0;
GTimeVal _tmp57_ = {0};
glong _tmp58_ = 0L;
BackingPhotoRow* _tmp59_ = NULL;
gint64 _tmp60_ = 0LL;
GFileInfo* _tmp61_ = NULL;
gint64 _tmp62_ = 0LL;
BackingPhotoRow* _tmp63_ = NULL;
GTimeVal _tmp64_ = {0};
glong _tmp65_ = 0L;
BackingPhotoRow* _tmp66_ = NULL;
GFileInfo* _tmp67_ = NULL;
gint64 _tmp68_ = 0LL;
#line 3964 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp55_ = self->priv->editable;
#line 3964 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp56_ = _tmp55_->timestamp;
#line 3964 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp57_ = timestamp;
#line 3964 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp58_ = _tmp57_.tv_sec;
#line 3964 "/home/jens/Source/shotwell/src/Photo.vala"
timestamp_changed = _tmp56_ != ((time_t) _tmp58_);
#line 3965 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp59_ = self->priv->editable;
#line 3965 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp60_ = _tmp59_->filesize;
#line 3965 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp61_ = info;
#line 3965 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp62_ = g_file_info_get_size (_tmp61_);
#line 3965 "/home/jens/Source/shotwell/src/Photo.vala"
filesize_changed = _tmp60_ != _tmp62_;
#line 3967 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp63_ = self->priv->editable;
#line 3967 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp64_ = timestamp;
#line 3967 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp65_ = _tmp64_.tv_sec;
#line 3967 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp63_->timestamp = (time_t) _tmp65_;
#line 3968 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp66_ = self->priv->editable;
#line 3968 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp67_ = info;
#line 3968 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp68_ = g_file_info_get_size (_tmp67_);
#line 3968 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp66_->filesize = _tmp68_;
#line 28606 "Photo.c"
}
__finally393:
{
PhotoRow* _tmp69_ = NULL;
#line 3963 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp69_ = self->row;
#line 3963 "/home/jens/Source/shotwell/src/Photo.vala"
g_rec_mutex_unlock (&self->priv->__lock_row);
#line 28615 "Photo.c"
}
#line 3963 "/home/jens/Source/shotwell/src/Photo.vala"
if (G_UNLIKELY (_inner_error_ != NULL)) {
#line 3963 "/home/jens/Source/shotwell/src/Photo.vala"
g_propagate_error (error, _inner_error_);
#line 3963 "/home/jens/Source/shotwell/src/Photo.vala"
_g_object_unref0 (info);
#line 3963 "/home/jens/Source/shotwell/src/Photo.vala"
_backing_photo_row_unref0 (backing);
#line 3963 "/home/jens/Source/shotwell/src/Photo.vala"
_detected_photo_information_unref0 (detected);
#line 3963 "/home/jens/Source/shotwell/src/Photo.vala"
_g_object_unref0 (file);
#line 3963 "/home/jens/Source/shotwell/src/Photo.vala"
_photo_file_adapter_unref0 (reader);
#line 3963 "/home/jens/Source/shotwell/src/Photo.vala"
_photo_file_adapter_unref0 (old_reader);
#line 3963 "/home/jens/Source/shotwell/src/Photo.vala"
return;
#line 28635 "Photo.c"
}
}
#line 3945 "/home/jens/Source/shotwell/src/Photo.vala"
_g_object_unref0 (info);
#line 28640 "Photo.c"
} else {
gboolean _tmp70_ = FALSE;
gboolean _tmp71_ = FALSE;
#line 3972 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp71_ = backing_photo_id_is_valid (&editable_id);
#line 3972 "/home/jens/Source/shotwell/src/Photo.vala"
if (_tmp71_) {
#line 28648 "Photo.c"
gboolean _tmp72_ = FALSE;
#line 3972 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp72_ = is_new_editable;
#line 3972 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp70_ = !_tmp72_;
#line 28654 "Photo.c"
} else {
#line 3972 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp70_ = FALSE;
#line 28658 "Photo.c"
}
#line 3972 "/home/jens/Source/shotwell/src/Photo.vala"
if (_tmp70_) {
#line 28662 "Photo.c"
BackingPhotoRow* _tmp73_ = NULL;
BackingPhotoID _tmp74_ = {0};
BackingPhotoTable* _tmp75_ = NULL;
BackingPhotoTable* _tmp76_ = NULL;
BackingPhotoRow* _tmp77_ = NULL;
#line 3977 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp73_ = backing;
#line 3977 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp74_ = editable_id;
#line 3977 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp73_->id = _tmp74_;
#line 3978 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp75_ = backing_photo_table_get_instance ();
#line 3978 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp76_ = _tmp75_;
#line 3978 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp77_ = backing;
#line 3978 "/home/jens/Source/shotwell/src/Photo.vala"
backing_photo_table_update (_tmp76_, _tmp77_, &_inner_error_);
#line 3978 "/home/jens/Source/shotwell/src/Photo.vala"
_database_table_unref0 (_tmp76_);
#line 3978 "/home/jens/Source/shotwell/src/Photo.vala"
if (G_UNLIKELY (_inner_error_ != NULL)) {
#line 3978 "/home/jens/Source/shotwell/src/Photo.vala"
g_propagate_error (error, _inner_error_);
#line 3978 "/home/jens/Source/shotwell/src/Photo.vala"
_backing_photo_row_unref0 (backing);
#line 3978 "/home/jens/Source/shotwell/src/Photo.vala"
_detected_photo_information_unref0 (detected);
#line 3978 "/home/jens/Source/shotwell/src/Photo.vala"
_g_object_unref0 (file);
#line 3978 "/home/jens/Source/shotwell/src/Photo.vala"
_photo_file_adapter_unref0 (reader);
#line 3978 "/home/jens/Source/shotwell/src/Photo.vala"
_photo_file_adapter_unref0 (old_reader);
#line 3978 "/home/jens/Source/shotwell/src/Photo.vala"
return;
#line 28700 "Photo.c"
}
{
PhotoRow* _tmp78_ = NULL;
#line 3979 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp78_ = self->row;
#line 3979 "/home/jens/Source/shotwell/src/Photo.vala"
g_rec_mutex_lock (&self->priv->__lock_row);
#line 28708 "Photo.c"
{
BackingPhotoRow* _tmp79_ = NULL;
time_t _tmp80_ = 0;
BackingPhotoRow* _tmp81_ = NULL;
time_t _tmp82_ = 0;
BackingPhotoRow* _tmp83_ = NULL;
gint64 _tmp84_ = 0LL;
BackingPhotoRow* _tmp85_ = NULL;
gint64 _tmp86_ = 0LL;
BackingPhotoRow* _tmp87_ = NULL;
BackingPhotoRow* _tmp88_ = NULL;
BackingPhotoRow* _tmp89_ = NULL;
BackingPhotoRow* _tmp90_ = NULL;
BackingPhotoRow* _tmp91_ = NULL;
Orientation _tmp92_ = 0;
#line 3980 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp79_ = self->priv->editable;
#line 3980 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp80_ = _tmp79_->timestamp;
#line 3980 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp81_ = backing;
#line 3980 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp82_ = _tmp81_->timestamp;
#line 3980 "/home/jens/Source/shotwell/src/Photo.vala"
timestamp_changed = _tmp80_ != _tmp82_;
#line 3981 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp83_ = self->priv->editable;
#line 3981 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp84_ = _tmp83_->filesize;
#line 3981 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp85_ = backing;
#line 3981 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp86_ = _tmp85_->filesize;
#line 3981 "/home/jens/Source/shotwell/src/Photo.vala"
filesize_changed = _tmp84_ != _tmp86_;
#line 3983 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp87_ = backing;
#line 3983 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp88_ = _backing_photo_row_ref0 (_tmp87_);
#line 3983 "/home/jens/Source/shotwell/src/Photo.vala"
_backing_photo_row_unref0 (self->priv->editable);
#line 3983 "/home/jens/Source/shotwell/src/Photo.vala"
self->priv->editable = _tmp88_;
#line 3984 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp89_ = self->priv->editable;
#line 3984 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp90_ = _backing_photo_row_ref0 (_tmp89_);
#line 3984 "/home/jens/Source/shotwell/src/Photo.vala"
_backing_photo_row_unref0 (self->backing_photo_row);
#line 3984 "/home/jens/Source/shotwell/src/Photo.vala"
self->backing_photo_row = _tmp90_;
#line 3985 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp91_ = self->backing_photo_row;
#line 3985 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp92_ = _tmp91_->original_orientation;
#line 3985 "/home/jens/Source/shotwell/src/Photo.vala"
photo_set_orientation (self, _tmp92_);
#line 28766 "Photo.c"
}
__finally394:
{
PhotoRow* _tmp93_ = NULL;
#line 3979 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp93_ = self->row;
#line 3979 "/home/jens/Source/shotwell/src/Photo.vala"
g_rec_mutex_unlock (&self->priv->__lock_row);
#line 28775 "Photo.c"
}
#line 3979 "/home/jens/Source/shotwell/src/Photo.vala"
if (G_UNLIKELY (_inner_error_ != NULL)) {
#line 3979 "/home/jens/Source/shotwell/src/Photo.vala"
g_propagate_error (error, _inner_error_);
#line 3979 "/home/jens/Source/shotwell/src/Photo.vala"
_backing_photo_row_unref0 (backing);
#line 3979 "/home/jens/Source/shotwell/src/Photo.vala"
_detected_photo_information_unref0 (detected);
#line 3979 "/home/jens/Source/shotwell/src/Photo.vala"
_g_object_unref0 (file);
#line 3979 "/home/jens/Source/shotwell/src/Photo.vala"
_photo_file_adapter_unref0 (reader);
#line 3979 "/home/jens/Source/shotwell/src/Photo.vala"
_photo_file_adapter_unref0 (old_reader);
#line 3979 "/home/jens/Source/shotwell/src/Photo.vala"
return;
#line 28793 "Photo.c"
}
}
}
}
#line 3991 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp94_ = new_reader;
#line 3991 "/home/jens/Source/shotwell/src/Photo.vala"
if (_tmp94_ != NULL) {
#line 28802 "Photo.c"
{
PhotoBackingReaders* _tmp95_ = NULL;
#line 3992 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp95_ = self->priv->readers;
#line 3992 "/home/jens/Source/shotwell/src/Photo.vala"
g_rec_mutex_lock (&self->priv->__lock_readers);
#line 28809 "Photo.c"
{
PhotoBackingReaders* _tmp96_ = NULL;
PhotoFileReader* _tmp97_ = NULL;
PhotoFileReader* _tmp98_ = NULL;
#line 3993 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp96_ = self->priv->readers;
#line 3993 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp97_ = new_reader;
#line 3993 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp98_ = _photo_file_adapter_ref0 (_tmp97_);
#line 3993 "/home/jens/Source/shotwell/src/Photo.vala"
_photo_file_adapter_unref0 (_tmp96_->editable);
#line 3993 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp96_->editable = _tmp98_;
#line 28824 "Photo.c"
}
__finally395:
{
PhotoBackingReaders* _tmp99_ = NULL;
#line 3992 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp99_ = self->priv->readers;
#line 3992 "/home/jens/Source/shotwell/src/Photo.vala"
g_rec_mutex_unlock (&self->priv->__lock_readers);
#line 28833 "Photo.c"
}
#line 3992 "/home/jens/Source/shotwell/src/Photo.vala"
if (G_UNLIKELY (_inner_error_ != NULL)) {
#line 3992 "/home/jens/Source/shotwell/src/Photo.vala"
g_propagate_error (error, _inner_error_);
#line 3992 "/home/jens/Source/shotwell/src/Photo.vala"
_backing_photo_row_unref0 (backing);
#line 3992 "/home/jens/Source/shotwell/src/Photo.vala"
_detected_photo_information_unref0 (detected);
#line 3992 "/home/jens/Source/shotwell/src/Photo.vala"
_g_object_unref0 (file);
#line 3992 "/home/jens/Source/shotwell/src/Photo.vala"
_photo_file_adapter_unref0 (reader);
#line 3992 "/home/jens/Source/shotwell/src/Photo.vala"
_photo_file_adapter_unref0 (old_reader);
#line 3992 "/home/jens/Source/shotwell/src/Photo.vala"
return;
#line 28851 "Photo.c"
}
}
}
#line 3997 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp101_ = only_attributes;
#line 3997 "/home/jens/Source/shotwell/src/Photo.vala"
if (!_tmp101_) {
#line 28859 "Photo.c"
PhotoFileReader* _tmp102_ = NULL;
PhotoFileReader* _tmp103_ = NULL;
#line 3997 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp102_ = reader;
#line 3997 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp103_ = old_reader;
#line 3997 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp100_ = _tmp102_ != _tmp103_;
#line 28868 "Photo.c"
} else {
#line 3997 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp100_ = FALSE;
#line 28872 "Photo.c"
}
#line 3997 "/home/jens/Source/shotwell/src/Photo.vala"
if (_tmp100_) {
#line 28876 "Photo.c"
GFile* _tmp104_ = NULL;
PhotoFileReader* _tmp105_ = NULL;
GFile* _tmp108_ = NULL;
PhotoFileReader* _tmp109_ = NULL;
#line 3998 "/home/jens/Source/shotwell/src/Photo.vala"
photo_notify_baseline_replaced (self);
#line 3999 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp105_ = old_reader;
#line 3999 "/home/jens/Source/shotwell/src/Photo.vala"
if (_tmp105_ != NULL) {
#line 28887 "Photo.c"
PhotoFileReader* _tmp106_ = NULL;
GFile* _tmp107_ = NULL;
#line 3999 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp106_ = old_reader;
#line 3999 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp107_ = photo_file_adapter_get_file (G_TYPE_CHECK_INSTANCE_CAST (_tmp106_, TYPE_PHOTO_FILE_ADAPTER, PhotoFileAdapter));
#line 3999 "/home/jens/Source/shotwell/src/Photo.vala"
_g_object_unref0 (_tmp104_);
#line 3999 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp104_ = _tmp107_;
#line 28898 "Photo.c"
} else {
#line 3999 "/home/jens/Source/shotwell/src/Photo.vala"
_g_object_unref0 (_tmp104_);
#line 3999 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp104_ = NULL;
#line 28904 "Photo.c"
}
#line 4000 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp109_ = new_reader;
#line 4000 "/home/jens/Source/shotwell/src/Photo.vala"
if (_tmp109_ != NULL) {
#line 28910 "Photo.c"
PhotoFileReader* _tmp110_ = NULL;
GFile* _tmp111_ = NULL;
#line 4000 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp110_ = new_reader;
#line 4000 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp111_ = photo_file_adapter_get_file (G_TYPE_CHECK_INSTANCE_CAST (_tmp110_, TYPE_PHOTO_FILE_ADAPTER, PhotoFileAdapter));
#line 4000 "/home/jens/Source/shotwell/src/Photo.vala"
_g_object_unref0 (_tmp108_);
#line 4000 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp108_ = _tmp111_;
#line 28921 "Photo.c"
} else {
#line 4000 "/home/jens/Source/shotwell/src/Photo.vala"
_g_object_unref0 (_tmp108_);
#line 4000 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp108_ = NULL;
#line 28927 "Photo.c"
}
#line 3999 "/home/jens/Source/shotwell/src/Photo.vala"
photo_notify_editable_replaced (self, _tmp104_, _tmp108_);
#line 3997 "/home/jens/Source/shotwell/src/Photo.vala"
_g_object_unref0 (_tmp108_);
#line 3997 "/home/jens/Source/shotwell/src/Photo.vala"
_g_object_unref0 (_tmp104_);
#line 28935 "Photo.c"
}
#line 4003 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp112_ = g_new0 (gchar*, 0 + 1);
#line 4003 "/home/jens/Source/shotwell/src/Photo.vala"
alteration_list = _tmp112_;
#line 4003 "/home/jens/Source/shotwell/src/Photo.vala"
alteration_list_length1 = 0;
#line 4003 "/home/jens/Source/shotwell/src/Photo.vala"
_alteration_list_size_ = alteration_list_length1;
#line 4004 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp113_ = timestamp_changed;
#line 4004 "/home/jens/Source/shotwell/src/Photo.vala"
if (_tmp113_) {
#line 28949 "Photo.c"
gchar** _tmp114_ = NULL;
gint _tmp114__length1 = 0;
gchar* _tmp115_ = NULL;
gchar** _tmp116_ = NULL;
gint _tmp116__length1 = 0;
gchar* _tmp117_ = NULL;
gboolean _tmp118_ = FALSE;
#line 4005 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp114_ = alteration_list;
#line 4005 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp114__length1 = alteration_list_length1;
#line 4005 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp115_ = g_strdup ("metadata:editable-timestamp");
#line 4005 "/home/jens/Source/shotwell/src/Photo.vala"
_vala_array_add269 (&alteration_list, &alteration_list_length1, &_alteration_list_size_, _tmp115_);
#line 4006 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp116_ = alteration_list;
#line 4006 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp116__length1 = alteration_list_length1;
#line 4006 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp117_ = g_strdup ("metadata:baseline-timestamp");
#line 4006 "/home/jens/Source/shotwell/src/Photo.vala"
_vala_array_add270 (&alteration_list, &alteration_list_length1, &_alteration_list_size_, _tmp117_);
#line 4008 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp118_ = photo_is_editable_source (self);
#line 4008 "/home/jens/Source/shotwell/src/Photo.vala"
if (_tmp118_) {
#line 28977 "Photo.c"
gchar** _tmp119_ = NULL;
gint _tmp119__length1 = 0;
gchar* _tmp120_ = NULL;
#line 4009 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp119_ = alteration_list;
#line 4009 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp119__length1 = alteration_list_length1;
#line 4009 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp120_ = g_strdup ("metadata:source-timestamp");
#line 4009 "/home/jens/Source/shotwell/src/Photo.vala"
_vala_array_add271 (&alteration_list, &alteration_list_length1, &_alteration_list_size_, _tmp120_);
#line 28989 "Photo.c"
}
}
#line 4012 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp122_ = filesize_changed;
#line 4012 "/home/jens/Source/shotwell/src/Photo.vala"
if (_tmp122_) {
#line 4012 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp121_ = TRUE;
#line 28998 "Photo.c"
} else {
PhotoFileReader* _tmp123_ = NULL;
#line 4012 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp123_ = new_reader;
#line 4012 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp121_ = _tmp123_ != NULL;
#line 29005 "Photo.c"
}
#line 4012 "/home/jens/Source/shotwell/src/Photo.vala"
if (_tmp121_) {
#line 29009 "Photo.c"
gchar** _tmp124_ = NULL;
gint _tmp124__length1 = 0;
gchar* _tmp125_ = NULL;
gchar** _tmp126_ = NULL;
gint _tmp126__length1 = 0;
gchar* _tmp127_ = NULL;
gboolean _tmp128_ = FALSE;
#line 4013 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp124_ = alteration_list;
#line 4013 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp124__length1 = alteration_list_length1;
#line 4013 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp125_ = g_strdup ("image:editable");
#line 4013 "/home/jens/Source/shotwell/src/Photo.vala"
_vala_array_add272 (&alteration_list, &alteration_list_length1, &_alteration_list_size_, _tmp125_);
#line 4014 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp126_ = alteration_list;
#line 4014 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp126__length1 = alteration_list_length1;
#line 4014 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp127_ = g_strdup ("image:baseline");
#line 4014 "/home/jens/Source/shotwell/src/Photo.vala"
_vala_array_add273 (&alteration_list, &alteration_list_length1, &_alteration_list_size_, _tmp127_);
#line 4016 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp128_ = photo_is_editable_source (self);
#line 4016 "/home/jens/Source/shotwell/src/Photo.vala"
if (_tmp128_) {
#line 29037 "Photo.c"
gchar** _tmp129_ = NULL;
gint _tmp129__length1 = 0;
gchar* _tmp130_ = NULL;
#line 4017 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp129_ = alteration_list;
#line 4017 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp129__length1 = alteration_list_length1;
#line 4017 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp130_ = g_strdup ("image:source");
#line 4017 "/home/jens/Source/shotwell/src/Photo.vala"
_vala_array_add274 (&alteration_list, &alteration_list_length1, &_alteration_list_size_, _tmp130_);
#line 29049 "Photo.c"
}
}
#line 4020 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp131_ = alteration_list;
#line 4020 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp131__length1 = alteration_list_length1;
#line 4020 "/home/jens/Source/shotwell/src/Photo.vala"
if (_tmp131__length1 > 0) {
#line 29058 "Photo.c"
gchar** _tmp132_ = NULL;
gint _tmp132__length1 = 0;
Alteration* _tmp133_ = NULL;
Alteration* _tmp134_ = NULL;
#line 4021 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp132_ = alteration_list;
#line 4021 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp132__length1 = alteration_list_length1;
#line 4021 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp133_ = alteration_new_from_array (_tmp132_, _tmp132__length1);
#line 4021 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp134_ = _tmp133_;
#line 4021 "/home/jens/Source/shotwell/src/Photo.vala"
data_object_notify_altered (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_DATA_OBJECT, DataObject), _tmp134_);
#line 4021 "/home/jens/Source/shotwell/src/Photo.vala"
_alteration_unref0 (_tmp134_);
#line 29075 "Photo.c"
}
#line 3903 "/home/jens/Source/shotwell/src/Photo.vala"
alteration_list = (_vala_array_free (alteration_list, alteration_list_length1, (GDestroyNotify) g_free), NULL);
#line 3903 "/home/jens/Source/shotwell/src/Photo.vala"
_backing_photo_row_unref0 (backing);
#line 3903 "/home/jens/Source/shotwell/src/Photo.vala"
_detected_photo_information_unref0 (detected);
#line 3903 "/home/jens/Source/shotwell/src/Photo.vala"
_g_object_unref0 (file);
#line 3903 "/home/jens/Source/shotwell/src/Photo.vala"
_photo_file_adapter_unref0 (reader);
#line 3903 "/home/jens/Source/shotwell/src/Photo.vala"
_photo_file_adapter_unref0 (old_reader);
#line 29089 "Photo.c"
}
static void photo_detach_editable (Photo* self, gboolean delete_editable, gboolean remove_transformations, gboolean notify) {
gboolean has_editable = FALSE;
GFile* editable_file = NULL;
gboolean _tmp8_ = FALSE;
gboolean _tmp28_ = FALSE;
gboolean _tmp29_ = FALSE;
gboolean _tmp31_ = FALSE;
gboolean _tmp32_ = FALSE;
gboolean _tmp42_ = FALSE;
gboolean _tmp43_ = FALSE;
gboolean _tmp44_ = FALSE;
GError * _inner_error_ = NULL;
#line 4024 "/home/jens/Source/shotwell/src/Photo.vala"
g_return_if_fail (IS_PHOTO (self));
#line 4025 "/home/jens/Source/shotwell/src/Photo.vala"
photo_halt_monitoring_editable (self);
#line 4027 "/home/jens/Source/shotwell/src/Photo.vala"
has_editable = FALSE;
#line 4028 "/home/jens/Source/shotwell/src/Photo.vala"
editable_file = NULL;
#line 29113 "Photo.c"
{
PhotoBackingReaders* _tmp0_ = NULL;
#line 4029 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp0_ = self->priv->readers;
#line 4029 "/home/jens/Source/shotwell/src/Photo.vala"
g_rec_mutex_lock (&self->priv->__lock_readers);
#line 29120 "Photo.c"
{
PhotoBackingReaders* _tmp1_ = NULL;
PhotoFileReader* _tmp2_ = NULL;
#line 4030 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp1_ = self->priv->readers;
#line 4030 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp2_ = _tmp1_->editable;
#line 4030 "/home/jens/Source/shotwell/src/Photo.vala"
if (_tmp2_ != NULL) {
#line 29130 "Photo.c"
PhotoBackingReaders* _tmp3_ = NULL;
PhotoFileReader* _tmp4_ = NULL;
GFile* _tmp5_ = NULL;
PhotoBackingReaders* _tmp6_ = NULL;
#line 4031 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp3_ = self->priv->readers;
#line 4031 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp4_ = _tmp3_->editable;
#line 4031 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp5_ = photo_file_adapter_get_file (G_TYPE_CHECK_INSTANCE_CAST (_tmp4_, TYPE_PHOTO_FILE_ADAPTER, PhotoFileAdapter));
#line 4031 "/home/jens/Source/shotwell/src/Photo.vala"
_g_object_unref0 (editable_file);
#line 4031 "/home/jens/Source/shotwell/src/Photo.vala"
editable_file = _tmp5_;
#line 4032 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp6_ = self->priv->readers;
#line 4032 "/home/jens/Source/shotwell/src/Photo.vala"
_photo_file_adapter_unref0 (_tmp6_->editable);
#line 4032 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp6_->editable = NULL;
#line 4033 "/home/jens/Source/shotwell/src/Photo.vala"
has_editable = TRUE;
#line 29153 "Photo.c"
}
}
__finally396:
{
PhotoBackingReaders* _tmp7_ = NULL;
#line 4029 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp7_ = self->priv->readers;
#line 4029 "/home/jens/Source/shotwell/src/Photo.vala"
g_rec_mutex_unlock (&self->priv->__lock_readers);
#line 29163 "Photo.c"
}
#line 4029 "/home/jens/Source/shotwell/src/Photo.vala"
if (G_UNLIKELY (_inner_error_ != NULL)) {
#line 4029 "/home/jens/Source/shotwell/src/Photo.vala"
_g_object_unref0 (editable_file);
#line 4029 "/home/jens/Source/shotwell/src/Photo.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 4029 "/home/jens/Source/shotwell/src/Photo.vala"
g_clear_error (&_inner_error_);
#line 4029 "/home/jens/Source/shotwell/src/Photo.vala"
return;
#line 29175 "Photo.c"
}
}
#line 4037 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp8_ = has_editable;
#line 4037 "/home/jens/Source/shotwell/src/Photo.vala"
if (_tmp8_) {
#line 29182 "Photo.c"
BackingPhotoID editable_id = {0};
#line 4038 "/home/jens/Source/shotwell/src/Photo.vala"
backing_photo_id_init (&editable_id, BACKING_PHOTO_ID_INVALID);
#line 29186 "Photo.c"
{
{
PhotoRow* _tmp9_ = NULL;
#line 4040 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp9_ = self->row;
#line 4040 "/home/jens/Source/shotwell/src/Photo.vala"
g_rec_mutex_lock (&self->priv->__lock_row);
#line 29194 "Photo.c"
{
PhotoRow* _tmp10_ = NULL;
BackingPhotoID _tmp11_ = {0};
gboolean _tmp12_ = FALSE;
PhotoRow* _tmp16_ = NULL;
BackingPhotoRow* _tmp17_ = NULL;
BackingPhotoRow* _tmp18_ = NULL;
#line 4041 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp10_ = self->row;
#line 4041 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp11_ = _tmp10_->editable_id;
#line 4041 "/home/jens/Source/shotwell/src/Photo.vala"
editable_id = _tmp11_;
#line 4042 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp12_ = backing_photo_id_is_valid (&editable_id);
#line 4042 "/home/jens/Source/shotwell/src/Photo.vala"
if (_tmp12_) {
#line 29212 "Photo.c"
PhotoTable* _tmp13_ = NULL;
PhotoTable* _tmp14_ = NULL;
PhotoRow* _tmp15_ = NULL;
#line 4043 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp13_ = photo_table_get_instance ();
#line 4043 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp14_ = _tmp13_;
#line 4043 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp15_ = self->row;
#line 4043 "/home/jens/Source/shotwell/src/Photo.vala"
photo_table_detach_editable (_tmp14_, _tmp15_, &_inner_error_);
#line 4043 "/home/jens/Source/shotwell/src/Photo.vala"
_database_table_unref0 (_tmp14_);
#line 4043 "/home/jens/Source/shotwell/src/Photo.vala"
if (G_UNLIKELY (_inner_error_ != NULL)) {
#line 29228 "Photo.c"
goto __finally398;
}
}
#line 4044 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp16_ = self->row;
#line 4044 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp17_ = _tmp16_->master;
#line 4044 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp18_ = _backing_photo_row_ref0 (_tmp17_);
#line 4044 "/home/jens/Source/shotwell/src/Photo.vala"
_backing_photo_row_unref0 (self->backing_photo_row);
#line 4044 "/home/jens/Source/shotwell/src/Photo.vala"
self->backing_photo_row = _tmp18_;
#line 29242 "Photo.c"
}
__finally398:
{
PhotoRow* _tmp19_ = NULL;
#line 4040 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp19_ = self->row;
#line 4040 "/home/jens/Source/shotwell/src/Photo.vala"
g_rec_mutex_unlock (&self->priv->__lock_row);
#line 29251 "Photo.c"
}
#line 4040 "/home/jens/Source/shotwell/src/Photo.vala"
if (G_UNLIKELY (_inner_error_ != NULL)) {
#line 4040 "/home/jens/Source/shotwell/src/Photo.vala"
if (_inner_error_->domain == DATABASE_ERROR) {
#line 29257 "Photo.c"
goto __catch397_database_error;
}
#line 4040 "/home/jens/Source/shotwell/src/Photo.vala"
_g_object_unref0 (editable_file);
#line 4040 "/home/jens/Source/shotwell/src/Photo.vala"
g_critical ("file %s: line %d: unexpected error: %s (%s, %d)", __FILE__, __LINE__, _inner_error_->message, g_quark_to_string (_inner_error_->domain), _inner_error_->code);
#line 4040 "/home/jens/Source/shotwell/src/Photo.vala"
g_clear_error (&_inner_error_);
#line 4040 "/home/jens/Source/shotwell/src/Photo.vala"
return;
#line 29268 "Photo.c"
}
}
}
goto __finally397;
__catch397_database_error:
{
GError* err = NULL;
GError* _tmp20_ = NULL;
const gchar* _tmp21_ = NULL;
#line 4039 "/home/jens/Source/shotwell/src/Photo.vala"
err = _inner_error_;
#line 4039 "/home/jens/Source/shotwell/src/Photo.vala"
_inner_error_ = NULL;
#line 4047 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp20_ = err;
#line 4047 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp21_ = _tmp20_->message;
#line 4047 "/home/jens/Source/shotwell/src/Photo.vala"
g_warning ("Photo.vala:4047: Unable to remove editable from PhotoTable: %s", _tmp21_);
#line 4039 "/home/jens/Source/shotwell/src/Photo.vala"
_g_error_free0 (err);
#line 29290 "Photo.c"
}
__finally397:
#line 4039 "/home/jens/Source/shotwell/src/Photo.vala"
if (G_UNLIKELY (_inner_error_ != NULL)) {
#line 4039 "/home/jens/Source/shotwell/src/Photo.vala"
_g_object_unref0 (editable_file);
#line 4039 "/home/jens/Source/shotwell/src/Photo.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 4039 "/home/jens/Source/shotwell/src/Photo.vala"
g_clear_error (&_inner_error_);
#line 4039 "/home/jens/Source/shotwell/src/Photo.vala"
return;
#line 29303 "Photo.c"
}
{
gboolean _tmp22_ = FALSE;
#line 4051 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp22_ = backing_photo_id_is_valid (&editable_id);
#line 4051 "/home/jens/Source/shotwell/src/Photo.vala"
if (_tmp22_) {
#line 29311 "Photo.c"
BackingPhotoTable* _tmp23_ = NULL;
BackingPhotoTable* _tmp24_ = NULL;
BackingPhotoID _tmp25_ = {0};
#line 4052 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp23_ = backing_photo_table_get_instance ();
#line 4052 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp24_ = _tmp23_;
#line 4052 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp25_ = editable_id;
#line 4052 "/home/jens/Source/shotwell/src/Photo.vala"
backing_photo_table_remove (_tmp24_, &_tmp25_, &_inner_error_);
#line 4052 "/home/jens/Source/shotwell/src/Photo.vala"
_database_table_unref0 (_tmp24_);
#line 4052 "/home/jens/Source/shotwell/src/Photo.vala"
if (G_UNLIKELY (_inner_error_ != NULL)) {
#line 4052 "/home/jens/Source/shotwell/src/Photo.vala"
if (_inner_error_->domain == DATABASE_ERROR) {
#line 29329 "Photo.c"
goto __catch399_database_error;
}
#line 4052 "/home/jens/Source/shotwell/src/Photo.vala"
_g_object_unref0 (editable_file);
#line 4052 "/home/jens/Source/shotwell/src/Photo.vala"
g_critical ("file %s: line %d: unexpected error: %s (%s, %d)", __FILE__, __LINE__, _inner_error_->message, g_quark_to_string (_inner_error_->domain), _inner_error_->code);
#line 4052 "/home/jens/Source/shotwell/src/Photo.vala"
g_clear_error (&_inner_error_);
#line 4052 "/home/jens/Source/shotwell/src/Photo.vala"
return;
#line 29340 "Photo.c"
}
}
}
goto __finally399;
__catch399_database_error:
{
GError* err = NULL;
GError* _tmp26_ = NULL;
const gchar* _tmp27_ = NULL;
#line 4050 "/home/jens/Source/shotwell/src/Photo.vala"
err = _inner_error_;
#line 4050 "/home/jens/Source/shotwell/src/Photo.vala"
_inner_error_ = NULL;
#line 4054 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp26_ = err;
#line 4054 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp27_ = _tmp26_->message;
#line 4054 "/home/jens/Source/shotwell/src/Photo.vala"
g_warning ("Photo.vala:4054: Unable to remove editable from BackingPhotoTable: %s", _tmp27_);
#line 4050 "/home/jens/Source/shotwell/src/Photo.vala"
_g_error_free0 (err);
#line 29362 "Photo.c"
}
__finally399:
#line 4050 "/home/jens/Source/shotwell/src/Photo.vala"
if (G_UNLIKELY (_inner_error_ != NULL)) {
#line 4050 "/home/jens/Source/shotwell/src/Photo.vala"
_g_object_unref0 (editable_file);
#line 4050 "/home/jens/Source/shotwell/src/Photo.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 4050 "/home/jens/Source/shotwell/src/Photo.vala"
g_clear_error (&_inner_error_);
#line 4050 "/home/jens/Source/shotwell/src/Photo.vala"
return;
#line 29375 "Photo.c"
}
}
#line 4058 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp28_ = remove_transformations;
#line 4058 "/home/jens/Source/shotwell/src/Photo.vala"
if (_tmp28_) {
#line 4059 "/home/jens/Source/shotwell/src/Photo.vala"
photo_internal_remove_all_transformations (self, FALSE);
#line 29384 "Photo.c"
}
#line 4061 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp29_ = has_editable;
#line 4061 "/home/jens/Source/shotwell/src/Photo.vala"
if (_tmp29_) {
#line 29390 "Photo.c"
GFile* _tmp30_ = NULL;
#line 4062 "/home/jens/Source/shotwell/src/Photo.vala"
photo_notify_baseline_replaced (self);
#line 4063 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp30_ = editable_file;
#line 4063 "/home/jens/Source/shotwell/src/Photo.vala"
photo_notify_editable_replaced (self, _tmp30_, NULL);
#line 29398 "Photo.c"
}
#line 4066 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp32_ = delete_editable;
#line 4066 "/home/jens/Source/shotwell/src/Photo.vala"
if (_tmp32_) {
#line 29404 "Photo.c"
GFile* _tmp33_ = NULL;
#line 4066 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp33_ = editable_file;
#line 4066 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp31_ = _tmp33_ != NULL;
#line 29410 "Photo.c"
} else {
#line 4066 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp31_ = FALSE;
#line 29414 "Photo.c"
}
#line 4066 "/home/jens/Source/shotwell/src/Photo.vala"
if (_tmp31_) {
#line 29418 "Photo.c"
{
GFile* _tmp34_ = NULL;
#line 4068 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp34_ = editable_file;
#line 4068 "/home/jens/Source/shotwell/src/Photo.vala"
g_file_trash (_tmp34_, NULL, &_inner_error_);
#line 4068 "/home/jens/Source/shotwell/src/Photo.vala"
if (G_UNLIKELY (_inner_error_ != NULL)) {
#line 29427 "Photo.c"
goto __catch400_g_error;
}
}
goto __finally400;
__catch400_g_error:
{
GError* err = NULL;
GFile* _tmp35_ = NULL;
gchar* _tmp36_ = NULL;
gchar* _tmp37_ = NULL;
gchar* _tmp38_ = NULL;
gchar* _tmp39_ = NULL;
GError* _tmp40_ = NULL;
const gchar* _tmp41_ = NULL;
#line 4067 "/home/jens/Source/shotwell/src/Photo.vala"
err = _inner_error_;
#line 4067 "/home/jens/Source/shotwell/src/Photo.vala"
_inner_error_ = NULL;
#line 4070 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp35_ = editable_file;
#line 4070 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp36_ = g_file_get_path (_tmp35_);
#line 4070 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp37_ = _tmp36_;
#line 4070 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp38_ = data_object_to_string (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_DATA_OBJECT, DataObject));
#line 4070 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp39_ = _tmp38_;
#line 4070 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp40_ = err;
#line 4070 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp41_ = _tmp40_->message;
#line 4070 "/home/jens/Source/shotwell/src/Photo.vala"
g_warning ("Photo.vala:4070: Unable to trash editable %s for %s: %s", _tmp37_, _tmp39_, _tmp41_);
#line 4070 "/home/jens/Source/shotwell/src/Photo.vala"
_g_free0 (_tmp39_);
#line 4070 "/home/jens/Source/shotwell/src/Photo.vala"
_g_free0 (_tmp37_);
#line 4067 "/home/jens/Source/shotwell/src/Photo.vala"
_g_error_free0 (err);
#line 29468 "Photo.c"
}
__finally400:
#line 4067 "/home/jens/Source/shotwell/src/Photo.vala"
if (G_UNLIKELY (_inner_error_ != NULL)) {
#line 4067 "/home/jens/Source/shotwell/src/Photo.vala"
_g_object_unref0 (editable_file);
#line 4067 "/home/jens/Source/shotwell/src/Photo.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 4067 "/home/jens/Source/shotwell/src/Photo.vala"
g_clear_error (&_inner_error_);
#line 4067 "/home/jens/Source/shotwell/src/Photo.vala"
return;
#line 29481 "Photo.c"
}
}
#line 4075 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp44_ = has_editable;
#line 4075 "/home/jens/Source/shotwell/src/Photo.vala"
if (_tmp44_) {
#line 4075 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp43_ = TRUE;
#line 29490 "Photo.c"
} else {
gboolean _tmp45_ = FALSE;
#line 4075 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp45_ = remove_transformations;
#line 4075 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp43_ = _tmp45_;
#line 29497 "Photo.c"
}
#line 4075 "/home/jens/Source/shotwell/src/Photo.vala"
if (_tmp43_) {
#line 29501 "Photo.c"
gboolean _tmp46_ = FALSE;
#line 4075 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp46_ = notify;
#line 4075 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp42_ = _tmp46_;
#line 29507 "Photo.c"
} else {
#line 4075 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp42_ = FALSE;
#line 29511 "Photo.c"
}
#line 4075 "/home/jens/Source/shotwell/src/Photo.vala"
if (_tmp42_) {
#line 29515 "Photo.c"
Alteration* _tmp47_ = NULL;
Alteration* _tmp48_ = NULL;
#line 4076 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp47_ = alteration_new ("image", "revert");
#line 4076 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp48_ = _tmp47_;
#line 4076 "/home/jens/Source/shotwell/src/Photo.vala"
data_object_notify_altered (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_DATA_OBJECT, DataObject), _tmp48_);
#line 4076 "/home/jens/Source/shotwell/src/Photo.vala"
_alteration_unref0 (_tmp48_);
#line 29526 "Photo.c"
}
#line 4024 "/home/jens/Source/shotwell/src/Photo.vala"
_g_object_unref0 (editable_file);
#line 29530 "Photo.c"
}
static void _photo_on_reimport_editable_one_shot_callback (gpointer self) {
#line 4098 "/home/jens/Source/shotwell/src/Photo.vala"
photo_on_reimport_editable ((Photo*) self);
#line 29537 "Photo.c"
}
static void _photo_on_update_editable_attributes_one_shot_callback (gpointer self) {
#line 4107 "/home/jens/Source/shotwell/src/Photo.vala"
photo_on_update_editable_attributes ((Photo*) self);
#line 29544 "Photo.c"
}
static void _photo_on_remove_editable_one_shot_callback (gpointer self) {
#line 4116 "/home/jens/Source/shotwell/src/Photo.vala"
photo_on_remove_editable ((Photo*) self);
#line 29551 "Photo.c"
}
static void photo_on_editable_file_changed (Photo* self, GFile* file, GFile* other_file, GFileMonitorEvent event) {
GFileMonitorEvent _tmp12_ = 0;
GEnumValue* _tmp13_;
GFile* _tmp14_ = NULL;
gchar* _tmp15_ = NULL;
gchar* _tmp16_ = NULL;
GFileMonitorEvent _tmp17_ = 0;
GError * _inner_error_ = NULL;
#line 4079 "/home/jens/Source/shotwell/src/Photo.vala"
g_return_if_fail (IS_PHOTO (self));
#line 4079 "/home/jens/Source/shotwell/src/Photo.vala"
g_return_if_fail (G_IS_FILE (file));
#line 4079 "/home/jens/Source/shotwell/src/Photo.vala"
g_return_if_fail ((other_file == NULL) || G_IS_FILE (other_file));
#line 29569 "Photo.c"
{
PhotoBackingReaders* _tmp0_ = NULL;
#line 4081 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp0_ = self->priv->readers;
#line 4081 "/home/jens/Source/shotwell/src/Photo.vala"
g_rec_mutex_lock (&self->priv->__lock_readers);
#line 29576 "Photo.c"
{
PhotoBackingReaders* _tmp1_ = NULL;
PhotoFileReader* _tmp2_ = NULL;
GFile* _tmp3_ = NULL;
PhotoBackingReaders* _tmp4_ = NULL;
PhotoFileReader* _tmp5_ = NULL;
GFile* _tmp6_ = NULL;
GFile* _tmp7_ = NULL;
gboolean _tmp8_ = FALSE;
gboolean _tmp9_ = FALSE;
#line 4082 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp1_ = self->priv->readers;
#line 4082 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp2_ = _tmp1_->editable;
#line 4082 "/home/jens/Source/shotwell/src/Photo.vala"
_vala_assert (_tmp2_ != NULL, "readers.editable != null");
#line 4084 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp3_ = file;
#line 4084 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp4_ = self->priv->readers;
#line 4084 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp5_ = _tmp4_->editable;
#line 4084 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp6_ = photo_file_adapter_get_file (G_TYPE_CHECK_INSTANCE_CAST (_tmp5_, TYPE_PHOTO_FILE_ADAPTER, PhotoFileAdapter));
#line 4084 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp7_ = _tmp6_;
#line 4084 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp8_ = g_file_equal (_tmp3_, _tmp7_);
#line 4084 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp9_ = !_tmp8_;
#line 4084 "/home/jens/Source/shotwell/src/Photo.vala"
_g_object_unref0 (_tmp7_);
#line 4084 "/home/jens/Source/shotwell/src/Photo.vala"
if (_tmp9_) {
#line 29611 "Photo.c"
{
PhotoBackingReaders* _tmp10_ = NULL;
#line 4081 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp10_ = self->priv->readers;
#line 4081 "/home/jens/Source/shotwell/src/Photo.vala"
g_rec_mutex_unlock (&self->priv->__lock_readers);
#line 29618 "Photo.c"
}
#line 4088 "/home/jens/Source/shotwell/src/Photo.vala"
return;
#line 29622 "Photo.c"
}
}
__finally401:
{
PhotoBackingReaders* _tmp11_ = NULL;
#line 4081 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp11_ = self->priv->readers;
#line 4081 "/home/jens/Source/shotwell/src/Photo.vala"
g_rec_mutex_unlock (&self->priv->__lock_readers);
#line 29632 "Photo.c"
}
#line 4081 "/home/jens/Source/shotwell/src/Photo.vala"
if (G_UNLIKELY (_inner_error_ != NULL)) {
#line 4081 "/home/jens/Source/shotwell/src/Photo.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 4081 "/home/jens/Source/shotwell/src/Photo.vala"
g_clear_error (&_inner_error_);
#line 4081 "/home/jens/Source/shotwell/src/Photo.vala"
return;
#line 29642 "Photo.c"
}
}
#line 4092 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp12_ = event;
#line 4092 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp13_ = g_enum_get_value (g_type_class_ref (g_file_monitor_event_get_type ()), _tmp12_);
#line 4092 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp14_ = file;
#line 4092 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp15_ = g_file_get_path (_tmp14_);
#line 4092 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp16_ = _tmp15_;
#line 4092 "/home/jens/Source/shotwell/src/Photo.vala"
g_debug ("Photo.vala:4092: EDITABLE %s: %s", (_tmp13_ != NULL) ? _tmp13_->value_name : NULL, _tmp16_);
#line 4092 "/home/jens/Source/shotwell/src/Photo.vala"
_g_free0 (_tmp16_);
#line 4094 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp17_ = event;
#line 4094 "/home/jens/Source/shotwell/src/Photo.vala"
switch (_tmp17_) {
#line 4094 "/home/jens/Source/shotwell/src/Photo.vala"
case G_FILE_MONITOR_EVENT_CHANGED:
#line 4094 "/home/jens/Source/shotwell/src/Photo.vala"
case G_FILE_MONITOR_EVENT_CREATED:
#line 29667 "Photo.c"
{
OneShotScheduler* _tmp18_ = NULL;
OneShotScheduler* _tmp20_ = NULL;
#line 4097 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp18_ = self->priv->reimport_editable_scheduler;
#line 4097 "/home/jens/Source/shotwell/src/Photo.vala"
if (_tmp18_ == NULL) {
#line 29675 "Photo.c"
OneShotScheduler* _tmp19_ = NULL;
#line 4098 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp19_ = one_shot_scheduler_new ("Photo.reimport_editable", _photo_on_reimport_editable_one_shot_callback, self);
#line 4098 "/home/jens/Source/shotwell/src/Photo.vala"
_one_shot_scheduler_unref0 (self->priv->reimport_editable_scheduler);
#line 4098 "/home/jens/Source/shotwell/src/Photo.vala"
self->priv->reimport_editable_scheduler = _tmp19_;
#line 29683 "Photo.c"
}
#line 4102 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp20_ = self->priv->reimport_editable_scheduler;
#line 4102 "/home/jens/Source/shotwell/src/Photo.vala"
one_shot_scheduler_after_timeout (_tmp20_, (guint) 1000, TRUE);
#line 4103 "/home/jens/Source/shotwell/src/Photo.vala"
break;
#line 29691 "Photo.c"
}
#line 4094 "/home/jens/Source/shotwell/src/Photo.vala"
case G_FILE_MONITOR_EVENT_ATTRIBUTE_CHANGED:
#line 29695 "Photo.c"
{
OneShotScheduler* _tmp21_ = NULL;
OneShotScheduler* _tmp23_ = NULL;
#line 4106 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp21_ = self->priv->update_editable_attributes_scheduler;
#line 4106 "/home/jens/Source/shotwell/src/Photo.vala"
if (_tmp21_ == NULL) {
#line 29703 "Photo.c"
OneShotScheduler* _tmp22_ = NULL;
#line 4107 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp22_ = one_shot_scheduler_new ("Photo.update_editable_attributes", _photo_on_update_editable_attributes_one_shot_callback, self);
#line 4107 "/home/jens/Source/shotwell/src/Photo.vala"
_one_shot_scheduler_unref0 (self->priv->update_editable_attributes_scheduler);
#line 4107 "/home/jens/Source/shotwell/src/Photo.vala"
self->priv->update_editable_attributes_scheduler = _tmp22_;
#line 29711 "Photo.c"
}
#line 4111 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp23_ = self->priv->update_editable_attributes_scheduler;
#line 4111 "/home/jens/Source/shotwell/src/Photo.vala"
one_shot_scheduler_after_timeout (_tmp23_, (guint) 1000, TRUE);
#line 4112 "/home/jens/Source/shotwell/src/Photo.vala"
break;
#line 29719 "Photo.c"
}
#line 4094 "/home/jens/Source/shotwell/src/Photo.vala"
case G_FILE_MONITOR_EVENT_DELETED:
#line 29723 "Photo.c"
{
OneShotScheduler* _tmp24_ = NULL;
OneShotScheduler* _tmp26_ = NULL;
#line 4115 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp24_ = self->priv->remove_editable_scheduler;
#line 4115 "/home/jens/Source/shotwell/src/Photo.vala"
if (_tmp24_ == NULL) {
#line 29731 "Photo.c"
OneShotScheduler* _tmp25_ = NULL;
#line 4116 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp25_ = one_shot_scheduler_new ("Photo.remove_editable", _photo_on_remove_editable_one_shot_callback, self);
#line 4116 "/home/jens/Source/shotwell/src/Photo.vala"
_one_shot_scheduler_unref0 (self->priv->remove_editable_scheduler);
#line 4116 "/home/jens/Source/shotwell/src/Photo.vala"
self->priv->remove_editable_scheduler = _tmp25_;
#line 29739 "Photo.c"
}
#line 4120 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp26_ = self->priv->remove_editable_scheduler;
#line 4120 "/home/jens/Source/shotwell/src/Photo.vala"
one_shot_scheduler_after_timeout (_tmp26_, (guint) 3000, TRUE);
#line 4121 "/home/jens/Source/shotwell/src/Photo.vala"
break;
#line 29747 "Photo.c"
}
default:
#line 4094 "/home/jens/Source/shotwell/src/Photo.vala"
case G_FILE_MONITOR_EVENT_CHANGES_DONE_HINT:
#line 29752 "Photo.c"
{
#line 4126 "/home/jens/Source/shotwell/src/Photo.vala"
break;
#line 29756 "Photo.c"
}
}
#line 4131 "/home/jens/Source/shotwell/src/Photo.vala"
photo_discard_prefetched (self);
#line 29761 "Photo.c"
}
static void photo_on_reimport_editable (Photo* self) {
gchar* _tmp0_ = NULL;
gchar* _tmp1_ = NULL;
GError * _inner_error_ = NULL;
#line 4134 "/home/jens/Source/shotwell/src/Photo.vala"
g_return_if_fail (IS_PHOTO (self));
#line 4136 "/home/jens/Source/shotwell/src/Photo.vala"
photo_discard_prefetched (self);
#line 4138 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp0_ = data_object_to_string (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_DATA_OBJECT, DataObject));
#line 4138 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp1_ = _tmp0_;
#line 4138 "/home/jens/Source/shotwell/src/Photo.vala"
g_debug ("Photo.vala:4138: Reimporting editable for %s", _tmp1_);
#line 4138 "/home/jens/Source/shotwell/src/Photo.vala"
_g_free0 (_tmp1_);
#line 29781 "Photo.c"
{
#line 4140 "/home/jens/Source/shotwell/src/Photo.vala"
photo_reimport_editable (self, &_inner_error_);
#line 4140 "/home/jens/Source/shotwell/src/Photo.vala"
if (G_UNLIKELY (_inner_error_ != NULL)) {
#line 29787 "Photo.c"
goto __catch402_g_error;
}
}
goto __finally402;
__catch402_g_error:
{
GError* err = NULL;
gchar* _tmp2_ = NULL;
gchar* _tmp3_ = NULL;
GError* _tmp4_ = NULL;
const gchar* _tmp5_ = NULL;
#line 4139 "/home/jens/Source/shotwell/src/Photo.vala"
err = _inner_error_;
#line 4139 "/home/jens/Source/shotwell/src/Photo.vala"
_inner_error_ = NULL;
#line 4142 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp2_ = data_object_to_string (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_DATA_OBJECT, DataObject));
#line 4142 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp3_ = _tmp2_;
#line 4142 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp4_ = err;
#line 4142 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp5_ = _tmp4_->message;
#line 4142 "/home/jens/Source/shotwell/src/Photo.vala"
g_warning ("Photo.vala:4142: Unable to reimport photo %s changed by external edito" \
"r: %s", _tmp3_, _tmp5_);
#line 4142 "/home/jens/Source/shotwell/src/Photo.vala"
_g_free0 (_tmp3_);
#line 4139 "/home/jens/Source/shotwell/src/Photo.vala"
_g_error_free0 (err);
#line 29817 "Photo.c"
}
__finally402:
#line 4139 "/home/jens/Source/shotwell/src/Photo.vala"
if (G_UNLIKELY (_inner_error_ != NULL)) {
#line 4139 "/home/jens/Source/shotwell/src/Photo.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 4139 "/home/jens/Source/shotwell/src/Photo.vala"
g_clear_error (&_inner_error_);
#line 4139 "/home/jens/Source/shotwell/src/Photo.vala"
return;
#line 29828 "Photo.c"
}
}
static void photo_on_update_editable_attributes (Photo* self) {
gchar* _tmp0_ = NULL;
gchar* _tmp1_ = NULL;
GError * _inner_error_ = NULL;
#line 4147 "/home/jens/Source/shotwell/src/Photo.vala"
g_return_if_fail (IS_PHOTO (self));
#line 4148 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp0_ = data_object_to_string (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_DATA_OBJECT, DataObject));
#line 4148 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp1_ = _tmp0_;
#line 4148 "/home/jens/Source/shotwell/src/Photo.vala"
g_debug ("Photo.vala:4148: Updating editable attributes for %s", _tmp1_);
#line 4148 "/home/jens/Source/shotwell/src/Photo.vala"
_g_free0 (_tmp1_);
#line 29847 "Photo.c"
{
#line 4150 "/home/jens/Source/shotwell/src/Photo.vala"
photo_update_editable_attributes (self, &_inner_error_);
#line 4150 "/home/jens/Source/shotwell/src/Photo.vala"
if (G_UNLIKELY (_inner_error_ != NULL)) {
#line 29853 "Photo.c"
goto __catch403_g_error;
}
}
goto __finally403;
__catch403_g_error:
{
GError* err = NULL;
GError* _tmp2_ = NULL;
const gchar* _tmp3_ = NULL;
#line 4149 "/home/jens/Source/shotwell/src/Photo.vala"
err = _inner_error_;
#line 4149 "/home/jens/Source/shotwell/src/Photo.vala"
_inner_error_ = NULL;
#line 4152 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp2_ = err;
#line 4152 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp3_ = _tmp2_->message;
#line 4152 "/home/jens/Source/shotwell/src/Photo.vala"
g_warning ("Photo.vala:4152: Unable to update editable attributes: %s", _tmp3_);
#line 4149 "/home/jens/Source/shotwell/src/Photo.vala"
_g_error_free0 (err);
#line 29875 "Photo.c"
}
__finally403:
#line 4149 "/home/jens/Source/shotwell/src/Photo.vala"
if (G_UNLIKELY (_inner_error_ != NULL)) {
#line 4149 "/home/jens/Source/shotwell/src/Photo.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 4149 "/home/jens/Source/shotwell/src/Photo.vala"
g_clear_error (&_inner_error_);
#line 4149 "/home/jens/Source/shotwell/src/Photo.vala"
return;
#line 29886 "Photo.c"
}
}
static void photo_on_remove_editable (Photo* self) {
PhotoFileReader* reader = NULL;
PhotoFileReader* _tmp0_ = NULL;
PhotoFileReader* _tmp1_ = NULL;
GFile* file = NULL;
PhotoFileReader* _tmp2_ = NULL;
GFile* _tmp3_ = NULL;
GFile* _tmp4_ = NULL;
gboolean _tmp5_ = FALSE;
gchar* _tmp8_ = NULL;
gchar* _tmp9_ = NULL;
#line 4156 "/home/jens/Source/shotwell/src/Photo.vala"
g_return_if_fail (IS_PHOTO (self));
#line 4157 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp0_ = photo_get_editable_reader (self);
#line 4157 "/home/jens/Source/shotwell/src/Photo.vala"
reader = _tmp0_;
#line 4158 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp1_ = reader;
#line 4158 "/home/jens/Source/shotwell/src/Photo.vala"
if (_tmp1_ == NULL) {
#line 4159 "/home/jens/Source/shotwell/src/Photo.vala"
_photo_file_adapter_unref0 (reader);
#line 4159 "/home/jens/Source/shotwell/src/Photo.vala"
return;
#line 29916 "Photo.c"
}
#line 4161 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp2_ = reader;
#line 4161 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp3_ = photo_file_adapter_get_file (G_TYPE_CHECK_INSTANCE_CAST (_tmp2_, TYPE_PHOTO_FILE_ADAPTER, PhotoFileAdapter));
#line 4161 "/home/jens/Source/shotwell/src/Photo.vala"
file = _tmp3_;
#line 4162 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp4_ = file;
#line 4162 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp5_ = g_file_query_exists (_tmp4_, NULL);
#line 4162 "/home/jens/Source/shotwell/src/Photo.vala"
if (_tmp5_) {
#line 29930 "Photo.c"
gchar* _tmp6_ = NULL;
gchar* _tmp7_ = NULL;
#line 4163 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp6_ = data_object_to_string (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_DATA_OBJECT, DataObject));
#line 4163 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp7_ = _tmp6_;
#line 4163 "/home/jens/Source/shotwell/src/Photo.vala"
g_debug ("Photo.vala:4163: Not removing editable for %s: file exists", _tmp7_);
#line 4163 "/home/jens/Source/shotwell/src/Photo.vala"
_g_free0 (_tmp7_);
#line 4165 "/home/jens/Source/shotwell/src/Photo.vala"
_g_object_unref0 (file);
#line 4165 "/home/jens/Source/shotwell/src/Photo.vala"
_photo_file_adapter_unref0 (reader);
#line 4165 "/home/jens/Source/shotwell/src/Photo.vala"
return;
#line 29947 "Photo.c"
}
#line 4168 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp8_ = data_object_to_string (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_DATA_OBJECT, DataObject));
#line 4168 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp9_ = _tmp8_;
#line 4168 "/home/jens/Source/shotwell/src/Photo.vala"
g_debug ("Photo.vala:4168: Removing editable for %s: file no longer exists", _tmp9_);
#line 4168 "/home/jens/Source/shotwell/src/Photo.vala"
_g_free0 (_tmp9_);
#line 4169 "/home/jens/Source/shotwell/src/Photo.vala"
photo_detach_editable (self, FALSE, TRUE, TRUE);
#line 4156 "/home/jens/Source/shotwell/src/Photo.vala"
_g_object_unref0 (file);
#line 4156 "/home/jens/Source/shotwell/src/Photo.vala"
_photo_file_adapter_unref0 (reader);
#line 29963 "Photo.c"
}
void photo_get_original_dimensions (Photo* self, Dimensions* result) {
Dimensions dim = {0};
Dimensions _tmp0_ = {0};
Orientation orientation = 0;
Orientation _tmp1_ = 0;
Dimensions _tmp2_ = {0};
Dimensions _tmp3_ = {0};
#line 4177 "/home/jens/Source/shotwell/src/Photo.vala"
g_return_if_fail (IS_PHOTO (self));
#line 4178 "/home/jens/Source/shotwell/src/Photo.vala"
photo_get_raw_dimensions (self, &_tmp0_);
#line 4178 "/home/jens/Source/shotwell/src/Photo.vala"
dim = _tmp0_;
#line 4179 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp1_ = photo_get_orientation (self);
#line 4179 "/home/jens/Source/shotwell/src/Photo.vala"
orientation = _tmp1_;
#line 4181 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp2_ = dim;
#line 4181 "/home/jens/Source/shotwell/src/Photo.vala"
orientation_rotate_dimensions (orientation, &_tmp2_, &_tmp3_);
#line 4181 "/home/jens/Source/shotwell/src/Photo.vala"
*result = _tmp3_;
#line 4181 "/home/jens/Source/shotwell/src/Photo.vala"
return;
#line 29992 "Photo.c"
}
void photo_get_master_dimensions (Photo* self, Dimensions* result) {
Orientation _tmp0_ = 0;
Dimensions _tmp1_ = {0};
Dimensions _tmp2_ = {0};
#line 4185 "/home/jens/Source/shotwell/src/Photo.vala"
g_return_if_fail (IS_PHOTO (self));
#line 4186 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp0_ = photo_get_original_orientation (self);
#line 4186 "/home/jens/Source/shotwell/src/Photo.vala"
photo_get_raw_dimensions (self, &_tmp1_);
#line 4186 "/home/jens/Source/shotwell/src/Photo.vala"
orientation_rotate_dimensions (_tmp0_, &_tmp1_, &_tmp2_);
#line 4186 "/home/jens/Source/shotwell/src/Photo.vala"
*result = _tmp2_;
#line 4186 "/home/jens/Source/shotwell/src/Photo.vala"
return;
#line 30012 "Photo.c"
}
gboolean photo_get_crop (Photo* self, Box* crop, PhotoException exceptions) {
Box _vala_crop = {0};
gboolean result = FALSE;
Box raw = {0};
Box _tmp0_ = {0};
gboolean _tmp1_ = FALSE;
Dimensions dim = {0};
Dimensions _tmp2_ = {0};
Orientation orientation = 0;
Orientation _tmp3_ = 0;
PhotoException _tmp4_ = 0;
gboolean _tmp5_ = FALSE;
#line 4190 "/home/jens/Source/shotwell/src/Photo.vala"
g_return_val_if_fail (IS_PHOTO (self), FALSE);
#line 4192 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp1_ = photo_get_raw_crop (self, &_tmp0_);
#line 4192 "/home/jens/Source/shotwell/src/Photo.vala"
raw = _tmp0_;
#line 4192 "/home/jens/Source/shotwell/src/Photo.vala"
if (!_tmp1_) {
#line 4193 "/home/jens/Source/shotwell/src/Photo.vala"
box_init (&_vala_crop, 0, 0, 0, 0);
#line 4195 "/home/jens/Source/shotwell/src/Photo.vala"
result = FALSE;
#line 4195 "/home/jens/Source/shotwell/src/Photo.vala"
if (crop) {
#line 4195 "/home/jens/Source/shotwell/src/Photo.vala"
*crop = _vala_crop;
#line 30044 "Photo.c"
}
#line 4195 "/home/jens/Source/shotwell/src/Photo.vala"
return result;
#line 30048 "Photo.c"
}
#line 4198 "/home/jens/Source/shotwell/src/Photo.vala"
media_source_get_dimensions (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_MEDIA_SOURCE, MediaSource), PHOTO_EXCEPTION_CROP | PHOTO_EXCEPTION_ORIENTATION, &_tmp2_);
#line 4198 "/home/jens/Source/shotwell/src/Photo.vala"
dim = _tmp2_;
#line 4199 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp3_ = photo_get_orientation (self);
#line 4199 "/home/jens/Source/shotwell/src/Photo.vala"
orientation = _tmp3_;
#line 4201 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp4_ = exceptions;
#line 4201 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp5_ = photo_exception_allows (_tmp4_, PHOTO_EXCEPTION_ORIENTATION);
#line 4201 "/home/jens/Source/shotwell/src/Photo.vala"
if (_tmp5_) {
#line 30064 "Photo.c"
Orientation _tmp6_ = 0;
Dimensions _tmp7_ = {0};
Box _tmp8_ = {0};
Box _tmp9_ = {0};
#line 4202 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp6_ = orientation;
#line 4202 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp7_ = dim;
#line 4202 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp8_ = raw;
#line 4202 "/home/jens/Source/shotwell/src/Photo.vala"
orientation_rotate_box (_tmp6_, &_tmp7_, &_tmp8_, &_tmp9_);
#line 4202 "/home/jens/Source/shotwell/src/Photo.vala"
_vala_crop = _tmp9_;
#line 30079 "Photo.c"
} else {
Box _tmp10_ = {0};
#line 4204 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp10_ = raw;
#line 4204 "/home/jens/Source/shotwell/src/Photo.vala"
_vala_crop = _tmp10_;
#line 30086 "Photo.c"
}
#line 4206 "/home/jens/Source/shotwell/src/Photo.vala"
result = TRUE;
#line 4206 "/home/jens/Source/shotwell/src/Photo.vala"
if (crop) {
#line 4206 "/home/jens/Source/shotwell/src/Photo.vala"
*crop = _vala_crop;
#line 30094 "Photo.c"
}
#line 4206 "/home/jens/Source/shotwell/src/Photo.vala"
return result;
#line 30098 "Photo.c"
}
void photo_set_crop (Photo* self, Box* crop) {
Dimensions dim = {0};
Dimensions _tmp0_ = {0};
Orientation orientation = 0;
Orientation _tmp1_ = 0;
Box derotated = {0};
Dimensions _tmp2_ = {0};
Box _tmp3_ = {0};
Box _tmp4_ = {0};
Box _tmp5_ = {0};
gint _tmp6_ = 0;
Dimensions _tmp7_ = {0};
gint _tmp8_ = 0;
gint _tmp9_ = 0;
Box _tmp10_ = {0};
gint _tmp11_ = 0;
Box _tmp12_ = {0};
gint _tmp13_ = 0;
Dimensions _tmp14_ = {0};
gint _tmp15_ = 0;
gint _tmp16_ = 0;
Box _tmp17_ = {0};
gint _tmp18_ = 0;
Dimensions _tmp19_ = {0};
gint _tmp20_ = 0;
gint _tmp21_ = 0;
Box _tmp22_ = {0};
gint _tmp23_ = 0;
Box _tmp24_ = {0};
gint _tmp25_ = 0;
Dimensions _tmp26_ = {0};
gint _tmp27_ = 0;
gint _tmp28_ = 0;
Box _tmp29_ = {0};
#line 4210 "/home/jens/Source/shotwell/src/Photo.vala"
g_return_if_fail (IS_PHOTO (self));
#line 4210 "/home/jens/Source/shotwell/src/Photo.vala"
g_return_if_fail (crop != NULL);
#line 4211 "/home/jens/Source/shotwell/src/Photo.vala"
media_source_get_dimensions (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_MEDIA_SOURCE, MediaSource), PHOTO_EXCEPTION_CROP | PHOTO_EXCEPTION_ORIENTATION, &_tmp0_);
#line 4211 "/home/jens/Source/shotwell/src/Photo.vala"
dim = _tmp0_;
#line 4212 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp1_ = photo_get_orientation (self);
#line 4212 "/home/jens/Source/shotwell/src/Photo.vala"
orientation = _tmp1_;
#line 4214 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp2_ = dim;
#line 4214 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp3_ = *crop;
#line 4214 "/home/jens/Source/shotwell/src/Photo.vala"
orientation_derotate_box (orientation, &_tmp2_, &_tmp3_, &_tmp4_);
#line 4214 "/home/jens/Source/shotwell/src/Photo.vala"
derotated = _tmp4_;
#line 4216 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp5_ = derotated;
#line 4216 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp6_ = _tmp5_.left;
#line 4216 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp7_ = dim;
#line 4216 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp8_ = _tmp7_.width;
#line 4216 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp9_ = CLAMP (_tmp6_, 0, _tmp8_ - 2);
#line 4216 "/home/jens/Source/shotwell/src/Photo.vala"
derotated.left = _tmp9_;
#line 4217 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp10_ = derotated;
#line 4217 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp11_ = _tmp10_.right;
#line 4217 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp12_ = derotated;
#line 4217 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp13_ = _tmp12_.left;
#line 4217 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp14_ = dim;
#line 4217 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp15_ = _tmp14_.width;
#line 4217 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp16_ = CLAMP (_tmp11_, _tmp13_, _tmp15_ - 1);
#line 4217 "/home/jens/Source/shotwell/src/Photo.vala"
derotated.right = _tmp16_;
#line 4219 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp17_ = derotated;
#line 4219 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp18_ = _tmp17_.top;
#line 4219 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp19_ = dim;
#line 4219 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp20_ = _tmp19_.height;
#line 4219 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp21_ = CLAMP (_tmp18_, 0, _tmp20_ - 2);
#line 4219 "/home/jens/Source/shotwell/src/Photo.vala"
derotated.top = _tmp21_;
#line 4220 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp22_ = derotated;
#line 4220 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp23_ = _tmp22_.bottom;
#line 4220 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp24_ = derotated;
#line 4220 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp25_ = _tmp24_.top;
#line 4220 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp26_ = dim;
#line 4220 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp27_ = _tmp26_.height;
#line 4220 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp28_ = CLAMP (_tmp23_, _tmp25_, _tmp27_ - 1);
#line 4220 "/home/jens/Source/shotwell/src/Photo.vala"
derotated.bottom = _tmp28_;
#line 4222 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp29_ = derotated;
#line 4222 "/home/jens/Source/shotwell/src/Photo.vala"
photo_set_raw_crop (self, &_tmp29_);
#line 30216 "Photo.c"
}
gboolean photo_get_straighten (Photo* self, gdouble* theta) {
gdouble _vala_theta = 0.0;
gboolean result = FALSE;
gdouble _tmp0_ = 0.0;
gboolean _tmp1_ = FALSE;
#line 4225 "/home/jens/Source/shotwell/src/Photo.vala"
g_return_val_if_fail (IS_PHOTO (self), FALSE);
#line 4226 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp1_ = photo_get_raw_straighten (self, &_tmp0_);
#line 4226 "/home/jens/Source/shotwell/src/Photo.vala"
_vala_theta = _tmp0_;
#line 4226 "/home/jens/Source/shotwell/src/Photo.vala"
if (!_tmp1_) {
#line 4227 "/home/jens/Source/shotwell/src/Photo.vala"
result = FALSE;
#line 4227 "/home/jens/Source/shotwell/src/Photo.vala"
if (theta) {
#line 4227 "/home/jens/Source/shotwell/src/Photo.vala"
*theta = _vala_theta;
#line 30239 "Photo.c"
}
#line 4227 "/home/jens/Source/shotwell/src/Photo.vala"
return result;
#line 30243 "Photo.c"
}
#line 4229 "/home/jens/Source/shotwell/src/Photo.vala"
result = TRUE;
#line 4229 "/home/jens/Source/shotwell/src/Photo.vala"
if (theta) {
#line 4229 "/home/jens/Source/shotwell/src/Photo.vala"
*theta = _vala_theta;
#line 30251 "Photo.c"
}
#line 4229 "/home/jens/Source/shotwell/src/Photo.vala"
return result;
#line 30255 "Photo.c"
}
void photo_set_straighten (Photo* self, gdouble theta) {
gdouble _tmp0_ = 0.0;
#line 4232 "/home/jens/Source/shotwell/src/Photo.vala"
g_return_if_fail (IS_PHOTO (self));
#line 4233 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp0_ = theta;
#line 4233 "/home/jens/Source/shotwell/src/Photo.vala"
photo_set_raw_straighten (self, _tmp0_);
#line 30267 "Photo.c"
}
static GdkPixbuf* photo_do_redeye (Photo* self, GdkPixbuf* pixbuf, EditingToolsRedeyeInstance* inst) {
GdkPixbuf* result = NULL;
gdouble r = 0.0;
EditingToolsRedeyeInstance _tmp0_ = {0};
gint _tmp1_ = 0;
gint* x_insets_first_quadrant = NULL;
EditingToolsRedeyeInstance _tmp2_ = {0};
gint _tmp3_ = 0;
gint* _tmp4_ = NULL;
gint x_insets_first_quadrant_length1 = 0;
gint _x_insets_first_quadrant_size_ = 0;
gint i = 0;
gint x_bounds_min = 0;
EditingToolsRedeyeInstance _tmp22_ = {0};
GdkPoint _tmp23_ = {0};
gint _tmp24_ = 0;
EditingToolsRedeyeInstance _tmp25_ = {0};
gint _tmp26_ = 0;
gint x_bounds_max = 0;
EditingToolsRedeyeInstance _tmp27_ = {0};
GdkPoint _tmp28_ = {0};
gint _tmp29_ = 0;
EditingToolsRedeyeInstance _tmp30_ = {0};
gint _tmp31_ = 0;
gint ymin = 0;
EditingToolsRedeyeInstance _tmp32_ = {0};
GdkPoint _tmp33_ = {0};
gint _tmp34_ = 0;
EditingToolsRedeyeInstance _tmp35_ = {0};
gint _tmp36_ = 0;
gint _tmp37_ = 0;
gint _tmp38_ = 0;
gint ymax = 0;
EditingToolsRedeyeInstance _tmp40_ = {0};
GdkPoint _tmp41_ = {0};
gint _tmp42_ = 0;
gint _tmp43_ = 0;
gint _tmp44_ = 0;
GdkPixbuf* _tmp45_ = NULL;
gint _tmp46_ = 0;
gint _tmp47_ = 0;
gint inset_index = 0;
EditingToolsRedeyeInstance _tmp88_ = {0};
GdkPoint _tmp89_ = {0};
gint _tmp90_ = 0;
EditingToolsRedeyeInstance _tmp91_ = {0};
GdkPoint _tmp92_ = {0};
gint _tmp93_ = 0;
EditingToolsRedeyeInstance _tmp94_ = {0};
gint _tmp95_ = 0;
gint* _tmp96_ = NULL;
gint _tmp96__length1 = 0;
GdkPixbuf* _tmp133_ = NULL;
GdkPixbuf* _tmp134_ = NULL;
#line 4236 "/home/jens/Source/shotwell/src/Photo.vala"
g_return_val_if_fail (IS_PHOTO (self), NULL);
#line 4236 "/home/jens/Source/shotwell/src/Photo.vala"
g_return_val_if_fail (GDK_IS_PIXBUF (pixbuf), NULL);
#line 4236 "/home/jens/Source/shotwell/src/Photo.vala"
g_return_val_if_fail (inst != NULL, NULL);
#line 4246 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp0_ = *inst;
#line 4246 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp1_ = _tmp0_.radius;
#line 4246 "/home/jens/Source/shotwell/src/Photo.vala"
r = (gdouble) _tmp1_;
#line 4247 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp2_ = *inst;
#line 4247 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp3_ = _tmp2_.radius;
#line 4247 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp4_ = g_new0 (gint, _tmp3_ + 1);
#line 4247 "/home/jens/Source/shotwell/src/Photo.vala"
x_insets_first_quadrant = _tmp4_;
#line 4247 "/home/jens/Source/shotwell/src/Photo.vala"
x_insets_first_quadrant_length1 = _tmp3_ + 1;
#line 4247 "/home/jens/Source/shotwell/src/Photo.vala"
_x_insets_first_quadrant_size_ = x_insets_first_quadrant_length1;
#line 4249 "/home/jens/Source/shotwell/src/Photo.vala"
i = 0;
#line 30351 "Photo.c"
{
gdouble y = 0.0;
gdouble _tmp5_ = 0.0;
#line 4250 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp5_ = r;
#line 4250 "/home/jens/Source/shotwell/src/Photo.vala"
y = _tmp5_;
#line 30359 "Photo.c"
{
gboolean _tmp6_ = FALSE;
#line 4250 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp6_ = TRUE;
#line 4250 "/home/jens/Source/shotwell/src/Photo.vala"
while (TRUE) {
#line 30366 "Photo.c"
gdouble _tmp8_ = 0.0;
gdouble theta = 0.0;
gdouble _tmp9_ = 0.0;
gdouble _tmp10_ = 0.0;
gdouble _tmp11_ = 0.0;
gint x = 0;
gdouble _tmp12_ = 0.0;
gdouble _tmp13_ = 0.0;
gdouble _tmp14_ = 0.0;
gint* _tmp15_ = NULL;
gint _tmp15__length1 = 0;
gint _tmp16_ = 0;
EditingToolsRedeyeInstance _tmp17_ = {0};
gint _tmp18_ = 0;
gint _tmp19_ = 0;
gint _tmp20_ = 0;
gint _tmp21_ = 0;
#line 4250 "/home/jens/Source/shotwell/src/Photo.vala"
if (!_tmp6_) {
#line 30386 "Photo.c"
gdouble _tmp7_ = 0.0;
#line 4250 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp7_ = y;
#line 4250 "/home/jens/Source/shotwell/src/Photo.vala"
y = _tmp7_ - 1.0;
#line 30392 "Photo.c"
}
#line 4250 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp6_ = FALSE;
#line 4250 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp8_ = y;
#line 4250 "/home/jens/Source/shotwell/src/Photo.vala"
if (!(_tmp8_ >= 0.0)) {
#line 4250 "/home/jens/Source/shotwell/src/Photo.vala"
break;
#line 30402 "Photo.c"
}
#line 4251 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp9_ = y;
#line 4251 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp10_ = r;
#line 4251 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp11_ = asin (_tmp9_ / _tmp10_);
#line 4251 "/home/jens/Source/shotwell/src/Photo.vala"
theta = _tmp11_;
#line 4252 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp12_ = r;
#line 4252 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp13_ = theta;
#line 4252 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp14_ = cos (_tmp13_);
#line 4252 "/home/jens/Source/shotwell/src/Photo.vala"
x = (gint) ((_tmp12_ * _tmp14_) + 0.5);
#line 4253 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp15_ = x_insets_first_quadrant;
#line 4253 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp15__length1 = x_insets_first_quadrant_length1;
#line 4253 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp16_ = i;
#line 4253 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp17_ = *inst;
#line 4253 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp18_ = _tmp17_.radius;
#line 4253 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp19_ = x;
#line 4253 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp15_[_tmp16_] = _tmp18_ - _tmp19_;
#line 4253 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp20_ = _tmp15_[_tmp16_];
#line 4255 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp21_ = i;
#line 4255 "/home/jens/Source/shotwell/src/Photo.vala"
i = _tmp21_ + 1;
#line 30440 "Photo.c"
}
}
}
#line 4258 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp22_ = *inst;
#line 4258 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp23_ = _tmp22_.center;
#line 4258 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp24_ = _tmp23_.x;
#line 4258 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp25_ = *inst;
#line 4258 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp26_ = _tmp25_.radius;
#line 4258 "/home/jens/Source/shotwell/src/Photo.vala"
x_bounds_min = _tmp24_ - _tmp26_;
#line 4259 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp27_ = *inst;
#line 4259 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp28_ = _tmp27_.center;
#line 4259 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp29_ = _tmp28_.x;
#line 4259 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp30_ = *inst;
#line 4259 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp31_ = _tmp30_.radius;
#line 4259 "/home/jens/Source/shotwell/src/Photo.vala"
x_bounds_max = _tmp29_ + _tmp31_;
#line 4260 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp32_ = *inst;
#line 4260 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp33_ = _tmp32_.center;
#line 4260 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp34_ = _tmp33_.y;
#line 4260 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp35_ = *inst;
#line 4260 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp36_ = _tmp35_.radius;
#line 4260 "/home/jens/Source/shotwell/src/Photo.vala"
ymin = _tmp34_ - _tmp36_;
#line 4261 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp38_ = ymin;
#line 4261 "/home/jens/Source/shotwell/src/Photo.vala"
if (_tmp38_ < 0) {
#line 4261 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp37_ = 0;
#line 30486 "Photo.c"
} else {
gint _tmp39_ = 0;
#line 4261 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp39_ = ymin;
#line 4261 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp37_ = _tmp39_;
#line 30493 "Photo.c"
}
#line 4261 "/home/jens/Source/shotwell/src/Photo.vala"
ymin = _tmp37_;
#line 4262 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp40_ = *inst;
#line 4262 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp41_ = _tmp40_.center;
#line 4262 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp42_ = _tmp41_.y;
#line 4262 "/home/jens/Source/shotwell/src/Photo.vala"
ymax = _tmp42_;
#line 4263 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp44_ = ymax;
#line 4263 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp45_ = pixbuf;
#line 4263 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp46_ = gdk_pixbuf_get_height (_tmp45_);
#line 4263 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp47_ = _tmp46_;
#line 4263 "/home/jens/Source/shotwell/src/Photo.vala"
if (_tmp44_ > (_tmp47_ - 1)) {
#line 30515 "Photo.c"
GdkPixbuf* _tmp48_ = NULL;
gint _tmp49_ = 0;
gint _tmp50_ = 0;
#line 4263 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp48_ = pixbuf;
#line 4263 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp49_ = gdk_pixbuf_get_height (_tmp48_);
#line 4263 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp50_ = _tmp49_;
#line 4263 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp43_ = _tmp50_ - 1;
#line 30527 "Photo.c"
} else {
gint _tmp51_ = 0;
#line 4263 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp51_ = ymax;
#line 4263 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp43_ = _tmp51_;
#line 30534 "Photo.c"
}
#line 4263 "/home/jens/Source/shotwell/src/Photo.vala"
ymax = _tmp43_;
#line 4267 "/home/jens/Source/shotwell/src/Photo.vala"
inset_index = 0;
#line 30540 "Photo.c"
{
gint y_it = 0;
gint _tmp52_ = 0;
#line 4268 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp52_ = ymin;
#line 4268 "/home/jens/Source/shotwell/src/Photo.vala"
y_it = _tmp52_;
#line 30548 "Photo.c"
{
gboolean _tmp53_ = FALSE;
#line 4268 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp53_ = TRUE;
#line 4268 "/home/jens/Source/shotwell/src/Photo.vala"
while (TRUE) {
#line 30555 "Photo.c"
gint _tmp55_ = 0;
gint _tmp56_ = 0;
gint xmin = 0;
gint _tmp57_ = 0;
gint* _tmp58_ = NULL;
gint _tmp58__length1 = 0;
gint _tmp59_ = 0;
gint _tmp60_ = 0;
gint _tmp61_ = 0;
gint _tmp62_ = 0;
gint xmax = 0;
gint _tmp64_ = 0;
gint* _tmp65_ = NULL;
gint _tmp65__length1 = 0;
gint _tmp66_ = 0;
gint _tmp67_ = 0;
gint _tmp68_ = 0;
gint _tmp69_ = 0;
GdkPixbuf* _tmp70_ = NULL;
gint _tmp71_ = 0;
gint _tmp72_ = 0;
gint _tmp87_ = 0;
#line 4268 "/home/jens/Source/shotwell/src/Photo.vala"
if (!_tmp53_) {
#line 30580 "Photo.c"
gint _tmp54_ = 0;
#line 4268 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp54_ = y_it;
#line 4268 "/home/jens/Source/shotwell/src/Photo.vala"
y_it = _tmp54_ + 1;
#line 30586 "Photo.c"
}
#line 4268 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp53_ = FALSE;
#line 4268 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp55_ = y_it;
#line 4268 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp56_ = ymax;
#line 4268 "/home/jens/Source/shotwell/src/Photo.vala"
if (!(_tmp55_ <= _tmp56_)) {
#line 4268 "/home/jens/Source/shotwell/src/Photo.vala"
break;
#line 30598 "Photo.c"
}
#line 4269 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp57_ = x_bounds_min;
#line 4269 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp58_ = x_insets_first_quadrant;
#line 4269 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp58__length1 = x_insets_first_quadrant_length1;
#line 4269 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp59_ = inset_index;
#line 4269 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp60_ = _tmp58_[_tmp59_];
#line 4269 "/home/jens/Source/shotwell/src/Photo.vala"
xmin = _tmp57_ + _tmp60_;
#line 4270 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp62_ = xmin;
#line 4270 "/home/jens/Source/shotwell/src/Photo.vala"
if (_tmp62_ < 0) {
#line 4270 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp61_ = 0;
#line 30618 "Photo.c"
} else {
gint _tmp63_ = 0;
#line 4270 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp63_ = xmin;
#line 4270 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp61_ = _tmp63_;
#line 30625 "Photo.c"
}
#line 4270 "/home/jens/Source/shotwell/src/Photo.vala"
xmin = _tmp61_;
#line 4271 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp64_ = x_bounds_max;
#line 4271 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp65_ = x_insets_first_quadrant;
#line 4271 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp65__length1 = x_insets_first_quadrant_length1;
#line 4271 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp66_ = inset_index;
#line 4271 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp67_ = _tmp65_[_tmp66_];
#line 4271 "/home/jens/Source/shotwell/src/Photo.vala"
xmax = _tmp64_ - _tmp67_;
#line 4272 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp69_ = xmax;
#line 4272 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp70_ = pixbuf;
#line 4272 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp71_ = gdk_pixbuf_get_width (_tmp70_);
#line 4272 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp72_ = _tmp71_;
#line 4272 "/home/jens/Source/shotwell/src/Photo.vala"
if (_tmp69_ > (_tmp72_ - 1)) {
#line 30651 "Photo.c"
GdkPixbuf* _tmp73_ = NULL;
gint _tmp74_ = 0;
gint _tmp75_ = 0;
#line 4272 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp73_ = pixbuf;
#line 4272 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp74_ = gdk_pixbuf_get_width (_tmp73_);
#line 4272 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp75_ = _tmp74_;
#line 4272 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp68_ = _tmp75_ - 1;
#line 30663 "Photo.c"
} else {
gint _tmp76_ = 0;
#line 4272 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp76_ = xmax;
#line 4272 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp68_ = _tmp76_;
#line 30670 "Photo.c"
}
#line 4272 "/home/jens/Source/shotwell/src/Photo.vala"
xmax = _tmp68_;
#line 30674 "Photo.c"
{
gint x_it = 0;
gint _tmp77_ = 0;
#line 4274 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp77_ = xmin;
#line 4274 "/home/jens/Source/shotwell/src/Photo.vala"
x_it = _tmp77_;
#line 30682 "Photo.c"
{
gboolean _tmp78_ = FALSE;
#line 4274 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp78_ = TRUE;
#line 4274 "/home/jens/Source/shotwell/src/Photo.vala"
while (TRUE) {
#line 30689 "Photo.c"
gint _tmp80_ = 0;
gint _tmp81_ = 0;
GdkPixbuf* _tmp82_ = NULL;
gint _tmp83_ = 0;
gint _tmp84_ = 0;
GdkPixbuf* _tmp85_ = NULL;
GdkPixbuf* _tmp86_ = NULL;
#line 4274 "/home/jens/Source/shotwell/src/Photo.vala"
if (!_tmp78_) {
#line 30699 "Photo.c"
gint _tmp79_ = 0;
#line 4274 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp79_ = x_it;
#line 4274 "/home/jens/Source/shotwell/src/Photo.vala"
x_it = _tmp79_ + 1;
#line 30705 "Photo.c"
}
#line 4274 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp78_ = FALSE;
#line 4274 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp80_ = x_it;
#line 4274 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp81_ = xmax;
#line 4274 "/home/jens/Source/shotwell/src/Photo.vala"
if (!(_tmp80_ <= _tmp81_)) {
#line 4274 "/home/jens/Source/shotwell/src/Photo.vala"
break;
#line 30717 "Photo.c"
}
#line 4275 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp82_ = pixbuf;
#line 4275 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp83_ = x_it;
#line 4275 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp84_ = y_it;
#line 4275 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp85_ = photo_red_reduce_pixel (self, _tmp82_, _tmp83_, _tmp84_);
#line 4275 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp86_ = _tmp85_;
#line 4275 "/home/jens/Source/shotwell/src/Photo.vala"
_g_object_unref0 (_tmp86_);
#line 30731 "Photo.c"
}
}
}
#line 4277 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp87_ = inset_index;
#line 4277 "/home/jens/Source/shotwell/src/Photo.vala"
inset_index = _tmp87_ + 1;
#line 30739 "Photo.c"
}
}
}
#line 4282 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp88_ = *inst;
#line 4282 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp89_ = _tmp88_.center;
#line 4282 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp90_ = _tmp89_.y;
#line 4282 "/home/jens/Source/shotwell/src/Photo.vala"
ymin = _tmp90_;
#line 4283 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp91_ = *inst;
#line 4283 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp92_ = _tmp91_.center;
#line 4283 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp93_ = _tmp92_.y;
#line 4283 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp94_ = *inst;
#line 4283 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp95_ = _tmp94_.radius;
#line 4283 "/home/jens/Source/shotwell/src/Photo.vala"
ymax = _tmp93_ + _tmp95_;
#line 4284 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp96_ = x_insets_first_quadrant;
#line 4284 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp96__length1 = x_insets_first_quadrant_length1;
#line 4284 "/home/jens/Source/shotwell/src/Photo.vala"
inset_index = _tmp96__length1 - 1;
#line 30769 "Photo.c"
{
gint y_it = 0;
gint _tmp97_ = 0;
#line 4285 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp97_ = ymin;
#line 4285 "/home/jens/Source/shotwell/src/Photo.vala"
y_it = _tmp97_;
#line 30777 "Photo.c"
{
gboolean _tmp98_ = FALSE;
#line 4285 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp98_ = TRUE;
#line 4285 "/home/jens/Source/shotwell/src/Photo.vala"
while (TRUE) {
#line 30784 "Photo.c"
gint _tmp100_ = 0;
gint _tmp101_ = 0;
gint xmin = 0;
gint _tmp102_ = 0;
gint* _tmp103_ = NULL;
gint _tmp103__length1 = 0;
gint _tmp104_ = 0;
gint _tmp105_ = 0;
gint _tmp106_ = 0;
gint _tmp107_ = 0;
gint xmax = 0;
gint _tmp109_ = 0;
gint* _tmp110_ = NULL;
gint _tmp110__length1 = 0;
gint _tmp111_ = 0;
gint _tmp112_ = 0;
gint _tmp113_ = 0;
gint _tmp114_ = 0;
GdkPixbuf* _tmp115_ = NULL;
gint _tmp116_ = 0;
gint _tmp117_ = 0;
gint _tmp132_ = 0;
#line 4285 "/home/jens/Source/shotwell/src/Photo.vala"
if (!_tmp98_) {
#line 30809 "Photo.c"
gint _tmp99_ = 0;
#line 4285 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp99_ = y_it;
#line 4285 "/home/jens/Source/shotwell/src/Photo.vala"
y_it = _tmp99_ + 1;
#line 30815 "Photo.c"
}
#line 4285 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp98_ = FALSE;
#line 4285 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp100_ = y_it;
#line 4285 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp101_ = ymax;
#line 4285 "/home/jens/Source/shotwell/src/Photo.vala"
if (!(_tmp100_ <= _tmp101_)) {
#line 4285 "/home/jens/Source/shotwell/src/Photo.vala"
break;
#line 30827 "Photo.c"
}
#line 4286 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp102_ = x_bounds_min;
#line 4286 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp103_ = x_insets_first_quadrant;
#line 4286 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp103__length1 = x_insets_first_quadrant_length1;
#line 4286 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp104_ = inset_index;
#line 4286 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp105_ = _tmp103_[_tmp104_];
#line 4286 "/home/jens/Source/shotwell/src/Photo.vala"
xmin = _tmp102_ + _tmp105_;
#line 4287 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp107_ = xmin;
#line 4287 "/home/jens/Source/shotwell/src/Photo.vala"
if (_tmp107_ < 0) {
#line 4287 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp106_ = 0;
#line 30847 "Photo.c"
} else {
gint _tmp108_ = 0;
#line 4287 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp108_ = xmin;
#line 4287 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp106_ = _tmp108_;
#line 30854 "Photo.c"
}
#line 4287 "/home/jens/Source/shotwell/src/Photo.vala"
xmin = _tmp106_;
#line 4288 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp109_ = x_bounds_max;
#line 4288 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp110_ = x_insets_first_quadrant;
#line 4288 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp110__length1 = x_insets_first_quadrant_length1;
#line 4288 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp111_ = inset_index;
#line 4288 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp112_ = _tmp110_[_tmp111_];
#line 4288 "/home/jens/Source/shotwell/src/Photo.vala"
xmax = _tmp109_ - _tmp112_;
#line 4289 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp114_ = xmax;
#line 4289 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp115_ = pixbuf;
#line 4289 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp116_ = gdk_pixbuf_get_width (_tmp115_);
#line 4289 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp117_ = _tmp116_;
#line 4289 "/home/jens/Source/shotwell/src/Photo.vala"
if (_tmp114_ > (_tmp117_ - 1)) {
#line 30880 "Photo.c"
GdkPixbuf* _tmp118_ = NULL;
gint _tmp119_ = 0;
gint _tmp120_ = 0;
#line 4289 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp118_ = pixbuf;
#line 4289 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp119_ = gdk_pixbuf_get_width (_tmp118_);
#line 4289 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp120_ = _tmp119_;
#line 4289 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp113_ = _tmp120_ - 1;
#line 30892 "Photo.c"
} else {
gint _tmp121_ = 0;
#line 4289 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp121_ = xmax;
#line 4289 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp113_ = _tmp121_;
#line 30899 "Photo.c"
}
#line 4289 "/home/jens/Source/shotwell/src/Photo.vala"
xmax = _tmp113_;
#line 30903 "Photo.c"
{
gint x_it = 0;
gint _tmp122_ = 0;
#line 4291 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp122_ = xmin;
#line 4291 "/home/jens/Source/shotwell/src/Photo.vala"
x_it = _tmp122_;
#line 30911 "Photo.c"
{
gboolean _tmp123_ = FALSE;
#line 4291 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp123_ = TRUE;
#line 4291 "/home/jens/Source/shotwell/src/Photo.vala"
while (TRUE) {
#line 30918 "Photo.c"
gint _tmp125_ = 0;
gint _tmp126_ = 0;
GdkPixbuf* _tmp127_ = NULL;
gint _tmp128_ = 0;
gint _tmp129_ = 0;
GdkPixbuf* _tmp130_ = NULL;
GdkPixbuf* _tmp131_ = NULL;
#line 4291 "/home/jens/Source/shotwell/src/Photo.vala"
if (!_tmp123_) {
#line 30928 "Photo.c"
gint _tmp124_ = 0;
#line 4291 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp124_ = x_it;
#line 4291 "/home/jens/Source/shotwell/src/Photo.vala"
x_it = _tmp124_ + 1;
#line 30934 "Photo.c"
}
#line 4291 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp123_ = FALSE;
#line 4291 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp125_ = x_it;
#line 4291 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp126_ = xmax;
#line 4291 "/home/jens/Source/shotwell/src/Photo.vala"
if (!(_tmp125_ <= _tmp126_)) {
#line 4291 "/home/jens/Source/shotwell/src/Photo.vala"
break;
#line 30946 "Photo.c"
}
#line 4292 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp127_ = pixbuf;
#line 4292 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp128_ = x_it;
#line 4292 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp129_ = y_it;
#line 4292 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp130_ = photo_red_reduce_pixel (self, _tmp127_, _tmp128_, _tmp129_);
#line 4292 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp131_ = _tmp130_;
#line 4292 "/home/jens/Source/shotwell/src/Photo.vala"
_g_object_unref0 (_tmp131_);
#line 30960 "Photo.c"
}
}
}
#line 4294 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp132_ = inset_index;
#line 4294 "/home/jens/Source/shotwell/src/Photo.vala"
inset_index = _tmp132_ - 1;
#line 30968 "Photo.c"
}
}
}
#line 4297 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp133_ = pixbuf;
#line 4297 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp134_ = _g_object_ref0 (_tmp133_);
#line 4297 "/home/jens/Source/shotwell/src/Photo.vala"
result = _tmp134_;
#line 4297 "/home/jens/Source/shotwell/src/Photo.vala"
x_insets_first_quadrant = (g_free (x_insets_first_quadrant), NULL);
#line 4297 "/home/jens/Source/shotwell/src/Photo.vala"
return result;
#line 30982 "Photo.c"
}
static GdkPixbuf* photo_red_reduce_pixel (Photo* self, GdkPixbuf* pixbuf, gint x, gint y) {
GdkPixbuf* result = NULL;
gint px_start_byte_offset = 0;
gint _tmp0_ = 0;
GdkPixbuf* _tmp1_ = NULL;
gint _tmp2_ = 0;
gint _tmp3_ = 0;
GdkPixbuf* _tmp4_ = NULL;
gint _tmp5_ = 0;
gboolean _tmp6_ = FALSE;
gboolean _tmp7_ = FALSE;
gboolean _tmp8_ = FALSE;
gint _tmp9_ = 0;
GdkPixbuf* _tmp33_ = NULL;
GdkPixbuf* _tmp34_ = NULL;
#line 4300 "/home/jens/Source/shotwell/src/Photo.vala"
g_return_val_if_fail (IS_PHOTO (self), NULL);
#line 4300 "/home/jens/Source/shotwell/src/Photo.vala"
g_return_val_if_fail (GDK_IS_PIXBUF (pixbuf), NULL);
#line 4301 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp0_ = y;
#line 4301 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp1_ = pixbuf;
#line 4301 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp2_ = gdk_pixbuf_get_rowstride (_tmp1_);
#line 4301 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp3_ = x;
#line 4301 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp4_ = pixbuf;
#line 4301 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp5_ = gdk_pixbuf_get_n_channels (_tmp4_);
#line 4301 "/home/jens/Source/shotwell/src/Photo.vala"
px_start_byte_offset = (_tmp0_ * _tmp2_) + (_tmp3_ * _tmp5_);
#line 4308 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp9_ = x;
#line 4308 "/home/jens/Source/shotwell/src/Photo.vala"
if (_tmp9_ >= 0) {
#line 31023 "Photo.c"
gint _tmp10_ = 0;
#line 4308 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp10_ = y;
#line 4308 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp8_ = _tmp10_ >= 0;
#line 31029 "Photo.c"
} else {
#line 4308 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp8_ = FALSE;
#line 31033 "Photo.c"
}
#line 4308 "/home/jens/Source/shotwell/src/Photo.vala"
if (_tmp8_) {
#line 31037 "Photo.c"
gint _tmp11_ = 0;
GdkPixbuf* _tmp12_ = NULL;
gint _tmp13_ = 0;
gint _tmp14_ = 0;
#line 4308 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp11_ = x;
#line 4308 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp12_ = pixbuf;
#line 4308 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp13_ = gdk_pixbuf_get_width (_tmp12_);
#line 4308 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp14_ = _tmp13_;
#line 4308 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp7_ = _tmp11_ < _tmp14_;
#line 31052 "Photo.c"
} else {
#line 4308 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp7_ = FALSE;
#line 31056 "Photo.c"
}
#line 4308 "/home/jens/Source/shotwell/src/Photo.vala"
if (_tmp7_) {
#line 31060 "Photo.c"
gint _tmp15_ = 0;
GdkPixbuf* _tmp16_ = NULL;
gint _tmp17_ = 0;
gint _tmp18_ = 0;
#line 4308 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp15_ = y;
#line 4308 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp16_ = pixbuf;
#line 4308 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp17_ = gdk_pixbuf_get_height (_tmp16_);
#line 4308 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp18_ = _tmp17_;
#line 4308 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp6_ = _tmp15_ < _tmp18_;
#line 31075 "Photo.c"
} else {
#line 4308 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp6_ = FALSE;
#line 31079 "Photo.c"
}
#line 4308 "/home/jens/Source/shotwell/src/Photo.vala"
if (_tmp6_) {
#line 31083 "Photo.c"
guchar* pixel_data = NULL;
GdkPixbuf* _tmp19_ = NULL;
guint8* _tmp20_ = NULL;
gint pixel_data_length1 = 0;
gint _pixel_data_size_ = 0;
guchar g = '\0';
guchar* _tmp21_ = NULL;
gint _tmp21__length1 = 0;
gint _tmp22_ = 0;
guchar _tmp23_ = '\0';
guchar b = '\0';
guchar* _tmp24_ = NULL;
gint _tmp24__length1 = 0;
gint _tmp25_ = 0;
guchar _tmp26_ = '\0';
guchar r = '\0';
guchar _tmp27_ = '\0';
guchar _tmp28_ = '\0';
guchar* _tmp29_ = NULL;
gint _tmp29__length1 = 0;
gint _tmp30_ = 0;
guchar _tmp31_ = '\0';
guchar _tmp32_ = '\0';
#line 4309 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp19_ = pixbuf;
#line 4309 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp20_ = gdk_pixbuf_get_pixels (_tmp19_);
#line 4309 "/home/jens/Source/shotwell/src/Photo.vala"
pixel_data = _tmp20_;
#line 4309 "/home/jens/Source/shotwell/src/Photo.vala"
pixel_data_length1 = -1;
#line 4309 "/home/jens/Source/shotwell/src/Photo.vala"
_pixel_data_size_ = pixel_data_length1;
#line 4319 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp21_ = pixel_data;
#line 4319 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp21__length1 = pixel_data_length1;
#line 4319 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp22_ = px_start_byte_offset;
#line 4319 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp23_ = _tmp21_[_tmp22_ + 1];
#line 4319 "/home/jens/Source/shotwell/src/Photo.vala"
g = _tmp23_;
#line 4320 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp24_ = pixel_data;
#line 4320 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp24__length1 = pixel_data_length1;
#line 4320 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp25_ = px_start_byte_offset;
#line 4320 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp26_ = _tmp24_[_tmp25_ + 2];
#line 4320 "/home/jens/Source/shotwell/src/Photo.vala"
b = _tmp26_;
#line 4322 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp27_ = g;
#line 4322 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp28_ = b;
#line 4322 "/home/jens/Source/shotwell/src/Photo.vala"
r = (guchar) ((_tmp27_ + _tmp28_) / 2);
#line 4324 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp29_ = pixel_data;
#line 4324 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp29__length1 = pixel_data_length1;
#line 4324 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp30_ = px_start_byte_offset;
#line 4324 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp31_ = r;
#line 4324 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp29_[_tmp30_] = _tmp31_;
#line 4324 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp32_ = _tmp29_[_tmp30_];
#line 31155 "Photo.c"
}
#line 4327 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp33_ = pixbuf;
#line 4327 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp34_ = _g_object_ref0 (_tmp33_);
#line 4327 "/home/jens/Source/shotwell/src/Photo.vala"
result = _tmp34_;
#line 4327 "/home/jens/Source/shotwell/src/Photo.vala"
return result;
#line 31165 "Photo.c"
}
void photo_unscaled_to_raw_point (Photo* self, GdkPoint* unscaled_point, GdkPoint* result) {
Orientation unscaled_orientation = 0;
Orientation _tmp0_ = 0;
Dimensions unscaled_dims = {0};
Orientation _tmp1_ = 0;
Dimensions _tmp2_ = {0};
Dimensions _tmp3_ = {0};
gint unscaled_x_offset_raw = 0;
gint unscaled_y_offset_raw = 0;
Box crop_box = {0};
Box _tmp4_ = {0};
gboolean _tmp5_ = FALSE;
GdkPoint derotated_point = {0};
Orientation _tmp10_ = 0;
Dimensions _tmp11_ = {0};
GdkPoint _tmp12_ = {0};
GdkPoint _tmp13_ = {0};
gint _tmp14_ = 0;
gint _tmp15_ = 0;
gint _tmp16_ = 0;
gint _tmp17_ = 0;
#line 4330 "/home/jens/Source/shotwell/src/Photo.vala"
g_return_if_fail (IS_PHOTO (self));
#line 4330 "/home/jens/Source/shotwell/src/Photo.vala"
g_return_if_fail (unscaled_point != NULL);
#line 4331 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp0_ = photo_get_orientation (self);
#line 4331 "/home/jens/Source/shotwell/src/Photo.vala"
unscaled_orientation = _tmp0_;
#line 4333 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp1_ = unscaled_orientation;
#line 4333 "/home/jens/Source/shotwell/src/Photo.vala"
media_source_get_dimensions (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_MEDIA_SOURCE, MediaSource), PHOTO_EXCEPTION_NONE, &_tmp2_);
#line 4333 "/home/jens/Source/shotwell/src/Photo.vala"
orientation_rotate_dimensions (_tmp1_, &_tmp2_, &_tmp3_);
#line 4333 "/home/jens/Source/shotwell/src/Photo.vala"
unscaled_dims = _tmp3_;
#line 4336 "/home/jens/Source/shotwell/src/Photo.vala"
unscaled_x_offset_raw = 0;
#line 4337 "/home/jens/Source/shotwell/src/Photo.vala"
unscaled_y_offset_raw = 0;
#line 4340 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp5_ = photo_get_raw_crop (self, &_tmp4_);
#line 4340 "/home/jens/Source/shotwell/src/Photo.vala"
crop_box = _tmp4_;
#line 4340 "/home/jens/Source/shotwell/src/Photo.vala"
if (_tmp5_) {
#line 31216 "Photo.c"
Box _tmp6_ = {0};
gint _tmp7_ = 0;
Box _tmp8_ = {0};
gint _tmp9_ = 0;
#line 4341 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp6_ = crop_box;
#line 4341 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp7_ = _tmp6_.left;
#line 4341 "/home/jens/Source/shotwell/src/Photo.vala"
unscaled_x_offset_raw = _tmp7_;
#line 4342 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp8_ = crop_box;
#line 4342 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp9_ = _tmp8_.top;
#line 4342 "/home/jens/Source/shotwell/src/Photo.vala"
unscaled_y_offset_raw = _tmp9_;
#line 31233 "Photo.c"
}
#line 4345 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp10_ = unscaled_orientation;
#line 4345 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp11_ = unscaled_dims;
#line 4345 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp12_ = *unscaled_point;
#line 4345 "/home/jens/Source/shotwell/src/Photo.vala"
orientation_derotate_point (_tmp10_, &_tmp11_, &_tmp12_, &_tmp13_);
#line 4345 "/home/jens/Source/shotwell/src/Photo.vala"
derotated_point = _tmp13_;
#line 4349 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp14_ = derotated_point.x;
#line 4349 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp15_ = unscaled_x_offset_raw;
#line 4349 "/home/jens/Source/shotwell/src/Photo.vala"
derotated_point.x = _tmp14_ + _tmp15_;
#line 4350 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp16_ = derotated_point.y;
#line 4350 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp17_ = unscaled_y_offset_raw;
#line 4350 "/home/jens/Source/shotwell/src/Photo.vala"
derotated_point.y = _tmp16_ + _tmp17_;
#line 4352 "/home/jens/Source/shotwell/src/Photo.vala"
*result = derotated_point;
#line 4352 "/home/jens/Source/shotwell/src/Photo.vala"
return;
#line 31261 "Photo.c"
}
void photo_unscaled_to_raw_rect (Photo* self, GdkRectangle* unscaled_rect, GdkRectangle* result) {
GdkPoint upper_left = {0};
GdkPoint _tmp0_ = {0};
GdkPoint lower_right = {0};
GdkPoint _tmp1_ = {0};
GdkRectangle _tmp2_ = {0};
gint _tmp3_ = 0;
GdkRectangle _tmp4_ = {0};
gint _tmp5_ = 0;
GdkPoint _tmp6_ = {0};
gint _tmp7_ = 0;
GdkRectangle _tmp8_ = {0};
gint _tmp9_ = 0;
GdkPoint _tmp10_ = {0};
gint _tmp11_ = 0;
GdkRectangle _tmp12_ = {0};
gint _tmp13_ = 0;
GdkPoint _tmp14_ = {0};
GdkPoint _tmp15_ = {0};
GdkPoint _tmp16_ = {0};
GdkPoint _tmp17_ = {0};
GdkPoint _tmp18_ = {0};
gint _tmp19_ = 0;
GdkPoint _tmp20_ = {0};
gint _tmp21_ = 0;
GdkPoint _tmp27_ = {0};
gint _tmp28_ = 0;
GdkPoint _tmp29_ = {0};
gint _tmp30_ = 0;
GdkRectangle raw_rect = {0};
GdkPoint _tmp36_ = {0};
gint _tmp37_ = 0;
GdkPoint _tmp38_ = {0};
gint _tmp39_ = 0;
GdkPoint _tmp40_ = {0};
gint _tmp41_ = 0;
GdkPoint _tmp42_ = {0};
gint _tmp43_ = 0;
GdkPoint _tmp44_ = {0};
gint _tmp45_ = 0;
GdkPoint _tmp46_ = {0};
gint _tmp47_ = 0;
#line 4355 "/home/jens/Source/shotwell/src/Photo.vala"
g_return_if_fail (IS_PHOTO (self));
#line 4355 "/home/jens/Source/shotwell/src/Photo.vala"
g_return_if_fail (unscaled_rect != NULL);
#line 4356 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp0_.x = 0;
#line 4356 "/home/jens/Source/shotwell/src/Photo.vala"
upper_left = _tmp0_;
#line 4357 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp1_.x = 0;
#line 4357 "/home/jens/Source/shotwell/src/Photo.vala"
lower_right = _tmp1_;
#line 4358 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp2_ = *unscaled_rect;
#line 4358 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp3_ = _tmp2_.x;
#line 4358 "/home/jens/Source/shotwell/src/Photo.vala"
upper_left.x = _tmp3_;
#line 4359 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp4_ = *unscaled_rect;
#line 4359 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp5_ = _tmp4_.y;
#line 4359 "/home/jens/Source/shotwell/src/Photo.vala"
upper_left.y = _tmp5_;
#line 4360 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp6_ = upper_left;
#line 4360 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp7_ = _tmp6_.x;
#line 4360 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp8_ = *unscaled_rect;
#line 4360 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp9_ = _tmp8_.width;
#line 4360 "/home/jens/Source/shotwell/src/Photo.vala"
lower_right.x = _tmp7_ + _tmp9_;
#line 4361 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp10_ = upper_left;
#line 4361 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp11_ = _tmp10_.y;
#line 4361 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp12_ = *unscaled_rect;
#line 4361 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp13_ = _tmp12_.height;
#line 4361 "/home/jens/Source/shotwell/src/Photo.vala"
lower_right.y = _tmp11_ + _tmp13_;
#line 4363 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp14_ = upper_left;
#line 4363 "/home/jens/Source/shotwell/src/Photo.vala"
photo_unscaled_to_raw_point (self, &_tmp14_, &_tmp15_);
#line 4363 "/home/jens/Source/shotwell/src/Photo.vala"
upper_left = _tmp15_;
#line 4364 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp16_ = lower_right;
#line 4364 "/home/jens/Source/shotwell/src/Photo.vala"
photo_unscaled_to_raw_point (self, &_tmp16_, &_tmp17_);
#line 4364 "/home/jens/Source/shotwell/src/Photo.vala"
lower_right = _tmp17_;
#line 4366 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp18_ = upper_left;
#line 4366 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp19_ = _tmp18_.x;
#line 4366 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp20_ = lower_right;
#line 4366 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp21_ = _tmp20_.x;
#line 4366 "/home/jens/Source/shotwell/src/Photo.vala"
if (_tmp19_ > _tmp21_) {
#line 31373 "Photo.c"
gint temp = 0;
GdkPoint _tmp22_ = {0};
gint _tmp23_ = 0;
GdkPoint _tmp24_ = {0};
gint _tmp25_ = 0;
gint _tmp26_ = 0;
#line 4367 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp22_ = upper_left;
#line 4367 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp23_ = _tmp22_.x;
#line 4367 "/home/jens/Source/shotwell/src/Photo.vala"
temp = _tmp23_;
#line 4368 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp24_ = lower_right;
#line 4368 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp25_ = _tmp24_.x;
#line 4368 "/home/jens/Source/shotwell/src/Photo.vala"
upper_left.x = _tmp25_;
#line 4369 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp26_ = temp;
#line 4369 "/home/jens/Source/shotwell/src/Photo.vala"
lower_right.x = _tmp26_;
#line 31396 "Photo.c"
}
#line 4371 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp27_ = upper_left;
#line 4371 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp28_ = _tmp27_.y;
#line 4371 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp29_ = lower_right;
#line 4371 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp30_ = _tmp29_.y;
#line 4371 "/home/jens/Source/shotwell/src/Photo.vala"
if (_tmp28_ > _tmp30_) {
#line 31408 "Photo.c"
gint temp = 0;
GdkPoint _tmp31_ = {0};
gint _tmp32_ = 0;
GdkPoint _tmp33_ = {0};
gint _tmp34_ = 0;
gint _tmp35_ = 0;
#line 4372 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp31_ = upper_left;
#line 4372 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp32_ = _tmp31_.y;
#line 4372 "/home/jens/Source/shotwell/src/Photo.vala"
temp = _tmp32_;
#line 4373 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp33_ = lower_right;
#line 4373 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp34_ = _tmp33_.y;
#line 4373 "/home/jens/Source/shotwell/src/Photo.vala"
upper_left.y = _tmp34_;
#line 4374 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp35_ = temp;
#line 4374 "/home/jens/Source/shotwell/src/Photo.vala"
lower_right.y = _tmp35_;
#line 31431 "Photo.c"
}
#line 4377 "/home/jens/Source/shotwell/src/Photo.vala"
memset (&raw_rect, 0, sizeof (GdkRectangle));
#line 4378 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp36_ = upper_left;
#line 4378 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp37_ = _tmp36_.x;
#line 4378 "/home/jens/Source/shotwell/src/Photo.vala"
raw_rect.x = _tmp37_;
#line 4379 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp38_ = upper_left;
#line 4379 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp39_ = _tmp38_.y;
#line 4379 "/home/jens/Source/shotwell/src/Photo.vala"
raw_rect.y = _tmp39_;
#line 4380 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp40_ = lower_right;
#line 4380 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp41_ = _tmp40_.x;
#line 4380 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp42_ = upper_left;
#line 4380 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp43_ = _tmp42_.x;
#line 4380 "/home/jens/Source/shotwell/src/Photo.vala"
raw_rect.width = _tmp41_ - _tmp43_;
#line 4381 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp44_ = lower_right;
#line 4381 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp45_ = _tmp44_.y;
#line 4381 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp46_ = upper_left;
#line 4381 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp47_ = _tmp46_.y;
#line 4381 "/home/jens/Source/shotwell/src/Photo.vala"
raw_rect.height = _tmp45_ - _tmp47_;
#line 4383 "/home/jens/Source/shotwell/src/Photo.vala"
*result = raw_rect;
#line 4383 "/home/jens/Source/shotwell/src/Photo.vala"
return;
#line 31471 "Photo.c"
}
PixelTransformationBundle* photo_get_enhance_transformations (Photo* self) {
PixelTransformationBundle* result = NULL;
GdkPixbuf* pixbuf = NULL;
PixelTransformationBundle* transformations = NULL;
GdkPixbuf* _tmp4_ = NULL;
PixelTransformationBundle* _tmp5_ = NULL;
GError * _inner_error_ = NULL;
#line 4386 "/home/jens/Source/shotwell/src/Photo.vala"
g_return_val_if_fail (IS_PHOTO (self), NULL);
#line 4387 "/home/jens/Source/shotwell/src/Photo.vala"
pixbuf = NULL;
#line 31486 "Photo.c"
{
GdkPixbuf* _tmp0_ = NULL;
Scaling _tmp1_ = {0};
GdkPixbuf* _tmp2_ = NULL;
GdkPixbuf* _tmp3_ = NULL;
#line 4394 "/home/jens/Source/shotwell/src/Photo.vala"
scaling_for_best_fit (360, FALSE, &_tmp1_);
#line 4394 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp2_ = photo_get_pixbuf_with_options (self, &_tmp1_, PHOTO_EXCEPTION_ALL, BACKING_FETCH_MODE_BASELINE, &_inner_error_);
#line 4394 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp0_ = _tmp2_;
#line 4394 "/home/jens/Source/shotwell/src/Photo.vala"
if (G_UNLIKELY (_inner_error_ != NULL)) {
#line 31500 "Photo.c"
goto __catch404_g_error;
}
#line 4394 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp3_ = _tmp0_;
#line 4394 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp0_ = NULL;
#line 4394 "/home/jens/Source/shotwell/src/Photo.vala"
_g_object_unref0 (pixbuf);
#line 4394 "/home/jens/Source/shotwell/src/Photo.vala"
pixbuf = _tmp3_;
#line 4393 "/home/jens/Source/shotwell/src/Photo.vala"
_g_object_unref0 (_tmp0_);
#line 31513 "Photo.c"
}
goto __finally404;
__catch404_g_error:
{
GError* e = NULL;
#line 4393 "/home/jens/Source/shotwell/src/Photo.vala"
e = _inner_error_;
#line 4393 "/home/jens/Source/shotwell/src/Photo.vala"
_inner_error_ = NULL;
#line 4401 "/home/jens/Source/shotwell/src/Photo.vala"
g_warning ("Photo.vala:4401: %s", "Photo: get_enhance_transformations: couldn't obtain pixbuf to build " "transform histogram");
#line 4403 "/home/jens/Source/shotwell/src/Photo.vala"
result = NULL;
#line 4403 "/home/jens/Source/shotwell/src/Photo.vala"
_g_error_free0 (e);
#line 4403 "/home/jens/Source/shotwell/src/Photo.vala"
_g_object_unref0 (pixbuf);
#line 4403 "/home/jens/Source/shotwell/src/Photo.vala"
return result;
#line 31533 "Photo.c"
}
__finally404:
#line 4393 "/home/jens/Source/shotwell/src/Photo.vala"
if (G_UNLIKELY (_inner_error_ != NULL)) {
#line 4393 "/home/jens/Source/shotwell/src/Photo.vala"
_g_object_unref0 (pixbuf);
#line 4393 "/home/jens/Source/shotwell/src/Photo.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 4393 "/home/jens/Source/shotwell/src/Photo.vala"
g_clear_error (&_inner_error_);
#line 4393 "/home/jens/Source/shotwell/src/Photo.vala"
return NULL;
#line 31546 "Photo.c"
}
#line 4410 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp4_ = pixbuf;
#line 4410 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp5_ = auto_enhance_create_auto_enhance_adjustments (_tmp4_);
#line 4410 "/home/jens/Source/shotwell/src/Photo.vala"
transformations = _tmp5_;
#line 4418 "/home/jens/Source/shotwell/src/Photo.vala"
result = transformations;
#line 4418 "/home/jens/Source/shotwell/src/Photo.vala"
_g_object_unref0 (pixbuf);
#line 4418 "/home/jens/Source/shotwell/src/Photo.vala"
return result;
#line 31560 "Photo.c"
}
gboolean photo_enhance (Photo* self) {
gboolean result = FALSE;
PixelTransformationBundle* transformations = NULL;
PixelTransformationBundle* _tmp0_ = NULL;
PixelTransformationBundle* _tmp1_ = NULL;
GError * _inner_error_ = NULL;
#line 4421 "/home/jens/Source/shotwell/src/Photo.vala"
g_return_val_if_fail (IS_PHOTO (self), FALSE);
#line 4422 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp0_ = photo_get_enhance_transformations (self);
#line 4422 "/home/jens/Source/shotwell/src/Photo.vala"
transformations = _tmp0_;
#line 4424 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp1_ = transformations;
#line 4424 "/home/jens/Source/shotwell/src/Photo.vala"
if (_tmp1_ == NULL) {
#line 4425 "/home/jens/Source/shotwell/src/Photo.vala"
result = FALSE;
#line 4425 "/home/jens/Source/shotwell/src/Photo.vala"
_pixel_transformation_bundle_unref0 (transformations);
#line 4425 "/home/jens/Source/shotwell/src/Photo.vala"
return result;
#line 31586 "Photo.c"
}
{
PhotoRow* _tmp2_ = NULL;
#line 4430 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp2_ = self->row;
#line 4430 "/home/jens/Source/shotwell/src/Photo.vala"
g_rec_mutex_lock (&self->priv->__lock_row);
#line 31594 "Photo.c"
{
PixelTransformationBundle* _tmp3_ = NULL;
#line 4431 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp3_ = transformations;
#line 4431 "/home/jens/Source/shotwell/src/Photo.vala"
photo_set_color_adjustments (self, _tmp3_);
#line 31601 "Photo.c"
}
__finally405:
{
PhotoRow* _tmp4_ = NULL;
#line 4430 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp4_ = self->row;
#line 4430 "/home/jens/Source/shotwell/src/Photo.vala"
g_rec_mutex_unlock (&self->priv->__lock_row);
#line 31610 "Photo.c"
}
#line 4430 "/home/jens/Source/shotwell/src/Photo.vala"
if (G_UNLIKELY (_inner_error_ != NULL)) {
#line 4430 "/home/jens/Source/shotwell/src/Photo.vala"
_pixel_transformation_bundle_unref0 (transformations);
#line 4430 "/home/jens/Source/shotwell/src/Photo.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 4430 "/home/jens/Source/shotwell/src/Photo.vala"
g_clear_error (&_inner_error_);
#line 4430 "/home/jens/Source/shotwell/src/Photo.vala"
return FALSE;
#line 31622 "Photo.c"
}
}
#line 4438 "/home/jens/Source/shotwell/src/Photo.vala"
result = TRUE;
#line 4438 "/home/jens/Source/shotwell/src/Photo.vala"
_pixel_transformation_bundle_unref0 (transformations);
#line 4438 "/home/jens/Source/shotwell/src/Photo.vala"
return result;
#line 31631 "Photo.c"
}
gboolean photo_get_develop_raw_photos_to_files (void) {
gboolean result;
gboolean _tmp0_ = FALSE;
#line 349 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp0_ = photo__develop_raw_photos_to_files;
#line 349 "/home/jens/Source/shotwell/src/Photo.vala"
result = _tmp0_;
#line 349 "/home/jens/Source/shotwell/src/Photo.vala"
return result;
#line 31644 "Photo.c"
}
void photo_set_develop_raw_photos_to_files (gboolean value) {
gboolean _tmp0_ = FALSE;
#line 349 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp0_ = value;
#line 349 "/home/jens/Source/shotwell/src/Photo.vala"
photo__develop_raw_photos_to_files = _tmp0_;
#line 31654 "Photo.c"
}
static void photo_real_editable_replaced (Photo* self, GFile* old_file, GFile* new_file) {
#line 358 "/home/jens/Source/shotwell/src/Photo.vala"
g_return_if_fail ((old_file == NULL) || G_IS_FILE (old_file));
#line 358 "/home/jens/Source/shotwell/src/Photo.vala"
g_return_if_fail ((new_file == NULL) || G_IS_FILE (new_file));
#line 31663 "Photo.c"
}
static void g_cclosure_user_marshal_VOID__OBJECT_OBJECT (GClosure * closure, GValue * return_value, guint n_param_values, const GValue * param_values, gpointer invocation_hint, gpointer marshal_data) {
typedef void (*GMarshalFunc_VOID__OBJECT_OBJECT) (gpointer data1, gpointer arg_1, gpointer arg_2, gpointer data2);
register GMarshalFunc_VOID__OBJECT_OBJECT callback;
register GCClosure * cc;
register gpointer data1;
register gpointer data2;
cc = (GCClosure *) closure;
#line 161 "/home/jens/Source/shotwell/src/Photo.vala"
g_return_if_fail (n_param_values == 3);
#line 161 "/home/jens/Source/shotwell/src/Photo.vala"
if (G_CCLOSURE_SWAP_DATA (closure)) {
#line 161 "/home/jens/Source/shotwell/src/Photo.vala"
data1 = closure->data;
#line 161 "/home/jens/Source/shotwell/src/Photo.vala"
data2 = param_values->data[0].v_pointer;
#line 31682 "Photo.c"
} else {
#line 161 "/home/jens/Source/shotwell/src/Photo.vala"
data1 = param_values->data[0].v_pointer;
#line 161 "/home/jens/Source/shotwell/src/Photo.vala"
data2 = closure->data;
#line 31688 "Photo.c"
}
#line 161 "/home/jens/Source/shotwell/src/Photo.vala"
callback = (GMarshalFunc_VOID__OBJECT_OBJECT) (marshal_data ? marshal_data : cc->callback);
#line 161 "/home/jens/Source/shotwell/src/Photo.vala"
callback (data1, g_value_get_object (param_values + 1), g_value_get_object (param_values + 2), data2);
#line 31694 "Photo.c"
}
static void photo_real_raw_development_modified (Photo* self) {
}
static void photo_real_baseline_replaced (Photo* self) {
}
static void photo_real_master_reimported (Photo* self, PhotoMetadata* metadata) {
#line 376 "/home/jens/Source/shotwell/src/Photo.vala"
g_return_if_fail ((metadata == NULL) || IS_PHOTO_METADATA (metadata));
#line 31709 "Photo.c"
}
static void g_cclosure_user_marshal_VOID__MEDIA_METADATA (GClosure * closure, GValue * return_value, guint n_param_values, const GValue * param_values, gpointer invocation_hint, gpointer marshal_data) {
typedef void (*GMarshalFunc_VOID__MEDIA_METADATA) (gpointer data1, gpointer arg_1, gpointer data2);
register GMarshalFunc_VOID__MEDIA_METADATA callback;
register GCClosure * cc;
register gpointer data1;
register gpointer data2;
cc = (GCClosure *) closure;
#line 161 "/home/jens/Source/shotwell/src/Photo.vala"
g_return_if_fail (n_param_values == 2);
#line 161 "/home/jens/Source/shotwell/src/Photo.vala"
if (G_CCLOSURE_SWAP_DATA (closure)) {
#line 161 "/home/jens/Source/shotwell/src/Photo.vala"
data1 = closure->data;
#line 161 "/home/jens/Source/shotwell/src/Photo.vala"
data2 = param_values->data[0].v_pointer;
#line 31728 "Photo.c"
} else {
#line 161 "/home/jens/Source/shotwell/src/Photo.vala"
data1 = param_values->data[0].v_pointer;
#line 161 "/home/jens/Source/shotwell/src/Photo.vala"
data2 = closure->data;
#line 31734 "Photo.c"
}
#line 161 "/home/jens/Source/shotwell/src/Photo.vala"
callback = (GMarshalFunc_VOID__MEDIA_METADATA) (marshal_data ? marshal_data : cc->callback);
#line 161 "/home/jens/Source/shotwell/src/Photo.vala"
callback (data1, value_get_media_metadata (param_values + 1), data2);
#line 31740 "Photo.c"
}
static void photo_real_editable_reimported (Photo* self, PhotoMetadata* metadata) {
#line 380 "/home/jens/Source/shotwell/src/Photo.vala"
g_return_if_fail ((metadata == NULL) || IS_PHOTO_METADATA (metadata));
#line 31747 "Photo.c"
}
static void photo_real_baseline_reimported (Photo* self, PhotoMetadata* metadata) {
#line 387 "/home/jens/Source/shotwell/src/Photo.vala"
g_return_if_fail ((metadata == NULL) || IS_PHOTO_METADATA (metadata));
#line 31754 "Photo.c"
}
static void photo_real_source_reimported (Photo* self, PhotoMetadata* metadata) {
#line 394 "/home/jens/Source/shotwell/src/Photo.vala"
g_return_if_fail ((metadata == NULL) || IS_PHOTO_METADATA (metadata));
#line 31761 "Photo.c"
}
static void _photo_photo_transformation_state_impl_on_photo_baseline_replaced_photo_baseline_replaced (Photo* _sender, gpointer self) {
#line 257 "/home/jens/Source/shotwell/src/Photo.vala"
photo_photo_transformation_state_impl_on_photo_baseline_replaced ((PhotoPhotoTransformationStateImpl*) self);
#line 31768 "Photo.c"
}
static PhotoPhotoTransformationStateImpl* photo_photo_transformation_state_impl_construct (GType object_type, Photo* photo, Orientation orientation, GeeHashMap* transformations, PixelTransformer* transformer, PixelTransformationBundle* adjustments) {
PhotoPhotoTransformationStateImpl * self = NULL;
Photo* _tmp0_ = NULL;
Photo* _tmp1_ = NULL;
Orientation _tmp2_ = 0;
GeeHashMap* _tmp3_ = NULL;
GeeHashMap* _tmp4_ = NULL;
PixelTransformer* _tmp5_ = NULL;
PixelTransformer* _tmp6_ = NULL;
PixelTransformationBundle* _tmp7_ = NULL;
PixelTransformationBundle* _tmp8_ = NULL;
Photo* _tmp9_ = NULL;
#line 244 "/home/jens/Source/shotwell/src/Photo.vala"
g_return_val_if_fail (IS_PHOTO (photo), NULL);
#line 244 "/home/jens/Source/shotwell/src/Photo.vala"
g_return_val_if_fail ((transformations == NULL) || GEE_IS_HASH_MAP (transformations), NULL);
#line 244 "/home/jens/Source/shotwell/src/Photo.vala"
g_return_val_if_fail ((transformer == NULL) || IS_PIXEL_TRANSFORMER (transformer), NULL);
#line 244 "/home/jens/Source/shotwell/src/Photo.vala"
g_return_val_if_fail ((adjustments == NULL) || IS_PIXEL_TRANSFORMATION_BUNDLE (adjustments), NULL);
#line 244 "/home/jens/Source/shotwell/src/Photo.vala"
self = (PhotoPhotoTransformationStateImpl*) photo_transformation_state_construct (object_type);
#line 247 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp0_ = photo;
#line 247 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp1_ = _g_object_ref0 (_tmp0_);
#line 247 "/home/jens/Source/shotwell/src/Photo.vala"
_g_object_unref0 (self->priv->photo);
#line 247 "/home/jens/Source/shotwell/src/Photo.vala"
self->priv->photo = _tmp1_;
#line 248 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp2_ = orientation;
#line 248 "/home/jens/Source/shotwell/src/Photo.vala"
self->priv->orientation = _tmp2_;
#line 249 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp3_ = transformations;
#line 249 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp4_ = photo_photo_transformation_state_impl_copy_transformations (_tmp3_);
#line 249 "/home/jens/Source/shotwell/src/Photo.vala"
_g_object_unref0 (self->priv->transformations);
#line 249 "/home/jens/Source/shotwell/src/Photo.vala"
self->priv->transformations = _tmp4_;
#line 250 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp5_ = transformer;
#line 250 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp6_ = _pixel_transformer_ref0 (_tmp5_);
#line 250 "/home/jens/Source/shotwell/src/Photo.vala"
_pixel_transformer_unref0 (self->priv->transformer);
#line 250 "/home/jens/Source/shotwell/src/Photo.vala"
self->priv->transformer = _tmp6_;
#line 251 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp7_ = adjustments;
#line 251 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp8_ = _pixel_transformation_bundle_ref0 (_tmp7_);
#line 251 "/home/jens/Source/shotwell/src/Photo.vala"
_pixel_transformation_bundle_unref0 (self->priv->adjustments);
#line 251 "/home/jens/Source/shotwell/src/Photo.vala"
self->priv->adjustments = _tmp8_;
#line 253 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp9_ = photo;
#line 253 "/home/jens/Source/shotwell/src/Photo.vala"
g_signal_connect_object (_tmp9_, "baseline-replaced", (GCallback) _photo_photo_transformation_state_impl_on_photo_baseline_replaced_photo_baseline_replaced, self, 0);
#line 244 "/home/jens/Source/shotwell/src/Photo.vala"
return self;
#line 31836 "Photo.c"
}
static PhotoPhotoTransformationStateImpl* photo_photo_transformation_state_impl_new (Photo* photo, Orientation orientation, GeeHashMap* transformations, PixelTransformer* transformer, PixelTransformationBundle* adjustments) {
#line 244 "/home/jens/Source/shotwell/src/Photo.vala"
return photo_photo_transformation_state_impl_construct (PHOTO_TYPE_PHOTO_TRANSFORMATION_STATE_IMPL, photo, orientation, transformations, transformer, adjustments);
#line 31843 "Photo.c"
}
static Orientation photo_photo_transformation_state_impl_get_orientation (PhotoPhotoTransformationStateImpl* self) {
Orientation result = 0;
Orientation _tmp0_ = 0;
#line 260 "/home/jens/Source/shotwell/src/Photo.vala"
g_return_val_if_fail (PHOTO_IS_PHOTO_TRANSFORMATION_STATE_IMPL (self), 0);
#line 261 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp0_ = self->priv->orientation;
#line 261 "/home/jens/Source/shotwell/src/Photo.vala"
result = _tmp0_;
#line 261 "/home/jens/Source/shotwell/src/Photo.vala"
return result;
#line 31858 "Photo.c"
}
static GeeHashMap* photo_photo_transformation_state_impl_get_transformations (PhotoPhotoTransformationStateImpl* self) {
GeeHashMap* result = NULL;
GeeHashMap* _tmp0_ = NULL;
GeeHashMap* _tmp1_ = NULL;
#line 264 "/home/jens/Source/shotwell/src/Photo.vala"
g_return_val_if_fail (PHOTO_IS_PHOTO_TRANSFORMATION_STATE_IMPL (self), NULL);
#line 265 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp0_ = self->priv->transformations;
#line 265 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp1_ = photo_photo_transformation_state_impl_copy_transformations (_tmp0_);
#line 265 "/home/jens/Source/shotwell/src/Photo.vala"
result = _tmp1_;
#line 265 "/home/jens/Source/shotwell/src/Photo.vala"
return result;
#line 31876 "Photo.c"
}
static PixelTransformer* photo_photo_transformation_state_impl_get_transformer (PhotoPhotoTransformationStateImpl* self) {
PixelTransformer* result = NULL;
PixelTransformer* _tmp0_ = NULL;
PixelTransformer* _tmp1_ = NULL;
#line 268 "/home/jens/Source/shotwell/src/Photo.vala"
g_return_val_if_fail (PHOTO_IS_PHOTO_TRANSFORMATION_STATE_IMPL (self), NULL);
#line 269 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp1_ = self->priv->transformer;
#line 269 "/home/jens/Source/shotwell/src/Photo.vala"
if (_tmp1_ != NULL) {
#line 31890 "Photo.c"
PixelTransformer* _tmp2_ = NULL;
PixelTransformer* _tmp3_ = NULL;
#line 269 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp2_ = self->priv->transformer;
#line 269 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp3_ = pixel_transformer_copy (_tmp2_);
#line 269 "/home/jens/Source/shotwell/src/Photo.vala"
_pixel_transformer_unref0 (_tmp0_);
#line 269 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp0_ = _tmp3_;
#line 31901 "Photo.c"
} else {
#line 269 "/home/jens/Source/shotwell/src/Photo.vala"
_pixel_transformer_unref0 (_tmp0_);
#line 269 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp0_ = NULL;
#line 31907 "Photo.c"
}
#line 269 "/home/jens/Source/shotwell/src/Photo.vala"
result = _tmp0_;
#line 269 "/home/jens/Source/shotwell/src/Photo.vala"
return result;
#line 31913 "Photo.c"
}
static PixelTransformationBundle* photo_photo_transformation_state_impl_get_color_adjustments (PhotoPhotoTransformationStateImpl* self) {
PixelTransformationBundle* result = NULL;
PixelTransformationBundle* _tmp0_ = NULL;
PixelTransformationBundle* _tmp1_ = NULL;
#line 272 "/home/jens/Source/shotwell/src/Photo.vala"
g_return_val_if_fail (PHOTO_IS_PHOTO_TRANSFORMATION_STATE_IMPL (self), NULL);
#line 273 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp1_ = self->priv->adjustments;
#line 273 "/home/jens/Source/shotwell/src/Photo.vala"
if (_tmp1_ != NULL) {
#line 31927 "Photo.c"
PixelTransformationBundle* _tmp2_ = NULL;
PixelTransformationBundle* _tmp3_ = NULL;
#line 273 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp2_ = self->priv->adjustments;
#line 273 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp3_ = pixel_transformation_bundle_copy (_tmp2_);
#line 273 "/home/jens/Source/shotwell/src/Photo.vala"
_pixel_transformation_bundle_unref0 (_tmp0_);
#line 273 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp0_ = _tmp3_;
#line 31938 "Photo.c"
} else {
#line 273 "/home/jens/Source/shotwell/src/Photo.vala"
_pixel_transformation_bundle_unref0 (_tmp0_);
#line 273 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp0_ = NULL;
#line 31944 "Photo.c"
}
#line 273 "/home/jens/Source/shotwell/src/Photo.vala"
result = _tmp0_;
#line 273 "/home/jens/Source/shotwell/src/Photo.vala"
return result;
#line 31950 "Photo.c"
}
static GeeHashMap* photo_photo_transformation_state_impl_copy_transformations (GeeHashMap* original) {
GeeHashMap* result = NULL;
GeeHashMap* _tmp0_ = NULL;
GeeHashMap* clone = NULL;
GeeHashMap* _tmp1_ = NULL;
#line 276 "/home/jens/Source/shotwell/src/Photo.vala"
g_return_val_if_fail ((original == NULL) || GEE_IS_HASH_MAP (original), NULL);
#line 278 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp0_ = original;
#line 278 "/home/jens/Source/shotwell/src/Photo.vala"
if (_tmp0_ == NULL) {
#line 279 "/home/jens/Source/shotwell/src/Photo.vala"
result = NULL;
#line 279 "/home/jens/Source/shotwell/src/Photo.vala"
return result;
#line 31969 "Photo.c"
}
#line 281 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp1_ = gee_hash_map_new (G_TYPE_STRING, (GBoxedCopyFunc) g_strdup, g_free, TYPE_KEY_VALUE_MAP, (GBoxedCopyFunc) key_value_map_ref, key_value_map_unref, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL);
#line 281 "/home/jens/Source/shotwell/src/Photo.vala"
clone = _tmp1_;
#line 31975 "Photo.c"
{
GeeIterator* _object_it = NULL;
GeeHashMap* _tmp2_ = NULL;
GeeSet* _tmp3_ = NULL;
GeeSet* _tmp4_ = NULL;
GeeSet* _tmp5_ = NULL;
GeeIterator* _tmp6_ = NULL;
GeeIterator* _tmp7_ = NULL;
#line 282 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp2_ = original;
#line 282 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp3_ = gee_abstract_map_get_keys (G_TYPE_CHECK_INSTANCE_CAST (_tmp2_, GEE_TYPE_MAP, GeeMap));
#line 282 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp4_ = _tmp3_;
#line 282 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp5_ = _tmp4_;
#line 282 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp6_ = gee_iterable_iterator (G_TYPE_CHECK_INSTANCE_CAST (_tmp5_, GEE_TYPE_ITERABLE, GeeIterable));
#line 282 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp7_ = _tmp6_;
#line 282 "/home/jens/Source/shotwell/src/Photo.vala"
_g_object_unref0 (_tmp5_);
#line 282 "/home/jens/Source/shotwell/src/Photo.vala"
_object_it = _tmp7_;
#line 282 "/home/jens/Source/shotwell/src/Photo.vala"
while (TRUE) {
#line 32002 "Photo.c"
GeeIterator* _tmp8_ = NULL;
gboolean _tmp9_ = FALSE;
gchar* object = NULL;
GeeIterator* _tmp10_ = NULL;
gpointer _tmp11_ = NULL;
GeeHashMap* _tmp12_ = NULL;
const gchar* _tmp13_ = NULL;
GeeHashMap* _tmp14_ = NULL;
const gchar* _tmp15_ = NULL;
gpointer _tmp16_ = NULL;
KeyValueMap* _tmp17_ = NULL;
KeyValueMap* _tmp18_ = NULL;
KeyValueMap* _tmp19_ = NULL;
#line 282 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp8_ = _object_it;
#line 282 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp9_ = gee_iterator_next (_tmp8_);
#line 282 "/home/jens/Source/shotwell/src/Photo.vala"
if (!_tmp9_) {
#line 282 "/home/jens/Source/shotwell/src/Photo.vala"
break;
#line 32024 "Photo.c"
}
#line 282 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp10_ = _object_it;
#line 282 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp11_ = gee_iterator_get (_tmp10_);
#line 282 "/home/jens/Source/shotwell/src/Photo.vala"
object = (gchar*) _tmp11_;
#line 283 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp12_ = clone;
#line 283 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp13_ = object;
#line 283 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp14_ = original;
#line 283 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp15_ = object;
#line 283 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp16_ = gee_abstract_map_get (G_TYPE_CHECK_INSTANCE_CAST (_tmp14_, GEE_TYPE_ABSTRACT_MAP, GeeAbstractMap), _tmp15_);
#line 283 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp17_ = (KeyValueMap*) _tmp16_;
#line 283 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp18_ = key_value_map_copy (_tmp17_);
#line 283 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp19_ = _tmp18_;
#line 283 "/home/jens/Source/shotwell/src/Photo.vala"
gee_abstract_map_set (G_TYPE_CHECK_INSTANCE_CAST (_tmp12_, GEE_TYPE_ABSTRACT_MAP, GeeAbstractMap), _tmp13_, _tmp19_);
#line 283 "/home/jens/Source/shotwell/src/Photo.vala"
_key_value_map_unref0 (_tmp19_);
#line 283 "/home/jens/Source/shotwell/src/Photo.vala"
_key_value_map_unref0 (_tmp17_);
#line 282 "/home/jens/Source/shotwell/src/Photo.vala"
_g_free0 (object);
#line 32056 "Photo.c"
}
#line 282 "/home/jens/Source/shotwell/src/Photo.vala"
_g_object_unref0 (_object_it);
#line 32060 "Photo.c"
}
#line 285 "/home/jens/Source/shotwell/src/Photo.vala"
result = clone;
#line 285 "/home/jens/Source/shotwell/src/Photo.vala"
return result;
#line 32066 "Photo.c"
}
static void photo_photo_transformation_state_impl_on_photo_baseline_replaced (PhotoPhotoTransformationStateImpl* self) {
gboolean _tmp0_ = FALSE;
#line 288 "/home/jens/Source/shotwell/src/Photo.vala"
g_return_if_fail (PHOTO_IS_PHOTO_TRANSFORMATION_STATE_IMPL (self));
#line 289 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp0_ = photo_transformation_state_is_broken (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_PHOTO_TRANSFORMATION_STATE, PhotoTransformationState));
#line 289 "/home/jens/Source/shotwell/src/Photo.vala"
if (!_tmp0_) {
#line 290 "/home/jens/Source/shotwell/src/Photo.vala"
g_signal_emit_by_name (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_PHOTO_TRANSFORMATION_STATE, PhotoTransformationState), "broken");
#line 32080 "Photo.c"
}
}
static void photo_photo_transformation_state_impl_class_init (PhotoPhotoTransformationStateImplClass * klass) {
#line 237 "/home/jens/Source/shotwell/src/Photo.vala"
photo_photo_transformation_state_impl_parent_class = g_type_class_peek_parent (klass);
#line 237 "/home/jens/Source/shotwell/src/Photo.vala"
g_type_class_add_private (klass, sizeof (PhotoPhotoTransformationStateImplPrivate));
#line 237 "/home/jens/Source/shotwell/src/Photo.vala"
G_OBJECT_CLASS (klass)->finalize = photo_photo_transformation_state_impl_finalize;
#line 32092 "Photo.c"
}
static void photo_photo_transformation_state_impl_instance_init (PhotoPhotoTransformationStateImpl * self) {
#line 237 "/home/jens/Source/shotwell/src/Photo.vala"
self->priv = PHOTO_PHOTO_TRANSFORMATION_STATE_IMPL_GET_PRIVATE (self);
#line 32099 "Photo.c"
}
static void photo_photo_transformation_state_impl_finalize (GObject* obj) {
PhotoPhotoTransformationStateImpl * self;
Photo* _tmp0_ = NULL;
guint _tmp1_ = 0U;
#line 237 "/home/jens/Source/shotwell/src/Photo.vala"
self = G_TYPE_CHECK_INSTANCE_CAST (obj, PHOTO_TYPE_PHOTO_TRANSFORMATION_STATE_IMPL, PhotoPhotoTransformationStateImpl);
#line 257 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp0_ = self->priv->photo;
#line 257 "/home/jens/Source/shotwell/src/Photo.vala"
g_signal_parse_name ("baseline-replaced", TYPE_PHOTO, &_tmp1_, NULL, FALSE);
#line 257 "/home/jens/Source/shotwell/src/Photo.vala"
g_signal_handlers_disconnect_matched (_tmp0_, G_SIGNAL_MATCH_ID | G_SIGNAL_MATCH_FUNC | G_SIGNAL_MATCH_DATA, _tmp1_, 0, NULL, (GCallback) _photo_photo_transformation_state_impl_on_photo_baseline_replaced_photo_baseline_replaced, self);
#line 238 "/home/jens/Source/shotwell/src/Photo.vala"
_g_object_unref0 (self->priv->photo);
#line 240 "/home/jens/Source/shotwell/src/Photo.vala"
_g_object_unref0 (self->priv->transformations);
#line 241 "/home/jens/Source/shotwell/src/Photo.vala"
_pixel_transformer_unref0 (self->priv->transformer);
#line 242 "/home/jens/Source/shotwell/src/Photo.vala"
_pixel_transformation_bundle_unref0 (self->priv->adjustments);
#line 237 "/home/jens/Source/shotwell/src/Photo.vala"
G_OBJECT_CLASS (photo_photo_transformation_state_impl_parent_class)->finalize (obj);
#line 32125 "Photo.c"
}
static GType photo_photo_transformation_state_impl_get_type (void) {
static volatile gsize photo_photo_transformation_state_impl_type_id__volatile = 0;
if (g_once_init_enter (&photo_photo_transformation_state_impl_type_id__volatile)) {
static const GTypeInfo g_define_type_info = { sizeof (PhotoPhotoTransformationStateImplClass), (GBaseInitFunc) NULL, (GBaseFinalizeFunc) NULL, (GClassInitFunc) photo_photo_transformation_state_impl_class_init, (GClassFinalizeFunc) NULL, NULL, sizeof (PhotoPhotoTransformationStateImpl), 0, (GInstanceInitFunc) photo_photo_transformation_state_impl_instance_init, NULL };
GType photo_photo_transformation_state_impl_type_id;
photo_photo_transformation_state_impl_type_id = g_type_register_static (TYPE_PHOTO_TRANSFORMATION_STATE, "PhotoPhotoTransformationStateImpl", &g_define_type_info, 0);
g_once_init_leave (&photo_photo_transformation_state_impl_type_id__volatile, photo_photo_transformation_state_impl_type_id);
}
return photo_photo_transformation_state_impl_type_id__volatile;
}
static PhotoBackingReaders* photo_backing_readers_construct (GType object_type) {
PhotoBackingReaders* self = NULL;
#line 294 "/home/jens/Source/shotwell/src/Photo.vala"
self = (PhotoBackingReaders*) g_type_create_instance (object_type);
#line 294 "/home/jens/Source/shotwell/src/Photo.vala"
return self;
#line 32147 "Photo.c"
}
static PhotoBackingReaders* photo_backing_readers_new (void) {
#line 294 "/home/jens/Source/shotwell/src/Photo.vala"
return photo_backing_readers_construct (PHOTO_TYPE_BACKING_READERS);
#line 32154 "Photo.c"
}
static void photo_value_backing_readers_init (GValue* value) {
#line 294 "/home/jens/Source/shotwell/src/Photo.vala"
value->data[0].v_pointer = NULL;
#line 32161 "Photo.c"
}
static void photo_value_backing_readers_free_value (GValue* value) {
#line 294 "/home/jens/Source/shotwell/src/Photo.vala"
if (value->data[0].v_pointer) {
#line 294 "/home/jens/Source/shotwell/src/Photo.vala"
photo_backing_readers_unref (value->data[0].v_pointer);
#line 32170 "Photo.c"
}
}
static void photo_value_backing_readers_copy_value (const GValue* src_value, GValue* dest_value) {
#line 294 "/home/jens/Source/shotwell/src/Photo.vala"
if (src_value->data[0].v_pointer) {
#line 294 "/home/jens/Source/shotwell/src/Photo.vala"
dest_value->data[0].v_pointer = photo_backing_readers_ref (src_value->data[0].v_pointer);
#line 32180 "Photo.c"
} else {
#line 294 "/home/jens/Source/shotwell/src/Photo.vala"
dest_value->data[0].v_pointer = NULL;
#line 32184 "Photo.c"
}
}
static gpointer photo_value_backing_readers_peek_pointer (const GValue* value) {
#line 294 "/home/jens/Source/shotwell/src/Photo.vala"
return value->data[0].v_pointer;
#line 32192 "Photo.c"
}
static gchar* photo_value_backing_readers_collect_value (GValue* value, guint n_collect_values, GTypeCValue* collect_values, guint collect_flags) {
#line 294 "/home/jens/Source/shotwell/src/Photo.vala"
if (collect_values[0].v_pointer) {
#line 32199 "Photo.c"
PhotoBackingReaders* object;
object = collect_values[0].v_pointer;
#line 294 "/home/jens/Source/shotwell/src/Photo.vala"
if (object->parent_instance.g_class == NULL) {
#line 294 "/home/jens/Source/shotwell/src/Photo.vala"
return g_strconcat ("invalid unclassed object pointer for value type `", G_VALUE_TYPE_NAME (value), "'", NULL);
#line 32206 "Photo.c"
} else if (!g_value_type_compatible (G_TYPE_FROM_INSTANCE (object), G_VALUE_TYPE (value))) {
#line 294 "/home/jens/Source/shotwell/src/Photo.vala"
return g_strconcat ("invalid object type `", g_type_name (G_TYPE_FROM_INSTANCE (object)), "' for value type `", G_VALUE_TYPE_NAME (value), "'", NULL);
#line 32210 "Photo.c"
}
#line 294 "/home/jens/Source/shotwell/src/Photo.vala"
value->data[0].v_pointer = photo_backing_readers_ref (object);
#line 32214 "Photo.c"
} else {
#line 294 "/home/jens/Source/shotwell/src/Photo.vala"
value->data[0].v_pointer = NULL;
#line 32218 "Photo.c"
}
#line 294 "/home/jens/Source/shotwell/src/Photo.vala"
return NULL;
#line 32222 "Photo.c"
}
static gchar* photo_value_backing_readers_lcopy_value (const GValue* value, guint n_collect_values, GTypeCValue* collect_values, guint collect_flags) {
PhotoBackingReaders** object_p;
object_p = collect_values[0].v_pointer;
#line 294 "/home/jens/Source/shotwell/src/Photo.vala"
if (!object_p) {
#line 294 "/home/jens/Source/shotwell/src/Photo.vala"
return g_strdup_printf ("value location for `%s' passed as NULL", G_VALUE_TYPE_NAME (value));
#line 32233 "Photo.c"
}
#line 294 "/home/jens/Source/shotwell/src/Photo.vala"
if (!value->data[0].v_pointer) {
#line 294 "/home/jens/Source/shotwell/src/Photo.vala"
*object_p = NULL;
#line 32239 "Photo.c"
} else if (collect_flags & G_VALUE_NOCOPY_CONTENTS) {
#line 294 "/home/jens/Source/shotwell/src/Photo.vala"
*object_p = value->data[0].v_pointer;
#line 32243 "Photo.c"
} else {
#line 294 "/home/jens/Source/shotwell/src/Photo.vala"
*object_p = photo_backing_readers_ref (value->data[0].v_pointer);
#line 32247 "Photo.c"
}
#line 294 "/home/jens/Source/shotwell/src/Photo.vala"
return NULL;
#line 32251 "Photo.c"
}
static GParamSpec* photo_param_spec_backing_readers (const gchar* name, const gchar* nick, const gchar* blurb, GType object_type, GParamFlags flags) {
PhotoParamSpecBackingReaders* spec;
#line 294 "/home/jens/Source/shotwell/src/Photo.vala"
g_return_val_if_fail (g_type_is_a (object_type, PHOTO_TYPE_BACKING_READERS), NULL);
#line 294 "/home/jens/Source/shotwell/src/Photo.vala"
spec = g_param_spec_internal (G_TYPE_PARAM_OBJECT, name, nick, blurb, flags);
#line 294 "/home/jens/Source/shotwell/src/Photo.vala"
G_PARAM_SPEC (spec)->value_type = object_type;
#line 294 "/home/jens/Source/shotwell/src/Photo.vala"
return G_PARAM_SPEC (spec);
#line 32265 "Photo.c"
}
static gpointer photo_value_get_backing_readers (const GValue* value) {
#line 294 "/home/jens/Source/shotwell/src/Photo.vala"
g_return_val_if_fail (G_TYPE_CHECK_VALUE_TYPE (value, PHOTO_TYPE_BACKING_READERS), NULL);
#line 294 "/home/jens/Source/shotwell/src/Photo.vala"
return value->data[0].v_pointer;
#line 32274 "Photo.c"
}
static void photo_value_set_backing_readers (GValue* value, gpointer v_object) {
PhotoBackingReaders* old;
#line 294 "/home/jens/Source/shotwell/src/Photo.vala"
g_return_if_fail (G_TYPE_CHECK_VALUE_TYPE (value, PHOTO_TYPE_BACKING_READERS));
#line 294 "/home/jens/Source/shotwell/src/Photo.vala"
old = value->data[0].v_pointer;
#line 294 "/home/jens/Source/shotwell/src/Photo.vala"
if (v_object) {
#line 294 "/home/jens/Source/shotwell/src/Photo.vala"
g_return_if_fail (G_TYPE_CHECK_INSTANCE_TYPE (v_object, PHOTO_TYPE_BACKING_READERS));
#line 294 "/home/jens/Source/shotwell/src/Photo.vala"
g_return_if_fail (g_value_type_compatible (G_TYPE_FROM_INSTANCE (v_object), G_VALUE_TYPE (value)));
#line 294 "/home/jens/Source/shotwell/src/Photo.vala"
value->data[0].v_pointer = v_object;
#line 294 "/home/jens/Source/shotwell/src/Photo.vala"
photo_backing_readers_ref (value->data[0].v_pointer);
#line 32294 "Photo.c"
} else {
#line 294 "/home/jens/Source/shotwell/src/Photo.vala"
value->data[0].v_pointer = NULL;
#line 32298 "Photo.c"
}
#line 294 "/home/jens/Source/shotwell/src/Photo.vala"
if (old) {
#line 294 "/home/jens/Source/shotwell/src/Photo.vala"
photo_backing_readers_unref (old);
#line 32304 "Photo.c"
}
}
static void photo_value_take_backing_readers (GValue* value, gpointer v_object) {
PhotoBackingReaders* old;
#line 294 "/home/jens/Source/shotwell/src/Photo.vala"
g_return_if_fail (G_TYPE_CHECK_VALUE_TYPE (value, PHOTO_TYPE_BACKING_READERS));
#line 294 "/home/jens/Source/shotwell/src/Photo.vala"
old = value->data[0].v_pointer;
#line 294 "/home/jens/Source/shotwell/src/Photo.vala"
if (v_object) {
#line 294 "/home/jens/Source/shotwell/src/Photo.vala"
g_return_if_fail (G_TYPE_CHECK_INSTANCE_TYPE (v_object, PHOTO_TYPE_BACKING_READERS));
#line 294 "/home/jens/Source/shotwell/src/Photo.vala"
g_return_if_fail (g_value_type_compatible (G_TYPE_FROM_INSTANCE (v_object), G_VALUE_TYPE (value)));
#line 294 "/home/jens/Source/shotwell/src/Photo.vala"
value->data[0].v_pointer = v_object;
#line 32323 "Photo.c"
} else {
#line 294 "/home/jens/Source/shotwell/src/Photo.vala"
value->data[0].v_pointer = NULL;
#line 32327 "Photo.c"
}
#line 294 "/home/jens/Source/shotwell/src/Photo.vala"
if (old) {
#line 294 "/home/jens/Source/shotwell/src/Photo.vala"
photo_backing_readers_unref (old);
#line 32333 "Photo.c"
}
}
static void photo_backing_readers_class_init (PhotoBackingReadersClass * klass) {
#line 294 "/home/jens/Source/shotwell/src/Photo.vala"
photo_backing_readers_parent_class = g_type_class_peek_parent (klass);
#line 294 "/home/jens/Source/shotwell/src/Photo.vala"
((PhotoBackingReadersClass *) klass)->finalize = photo_backing_readers_finalize;
#line 32343 "Photo.c"
}
static void photo_backing_readers_instance_init (PhotoBackingReaders * self) {
#line 294 "/home/jens/Source/shotwell/src/Photo.vala"
self->ref_count = 1;
#line 32350 "Photo.c"
}
static void photo_backing_readers_finalize (PhotoBackingReaders* obj) {
PhotoBackingReaders * self;
#line 294 "/home/jens/Source/shotwell/src/Photo.vala"
self = G_TYPE_CHECK_INSTANCE_CAST (obj, PHOTO_TYPE_BACKING_READERS, PhotoBackingReaders);
#line 294 "/home/jens/Source/shotwell/src/Photo.vala"
g_signal_handlers_destroy (self);
#line 295 "/home/jens/Source/shotwell/src/Photo.vala"
_photo_file_adapter_unref0 (self->master);
#line 296 "/home/jens/Source/shotwell/src/Photo.vala"
_photo_file_adapter_unref0 (self->developer);
#line 297 "/home/jens/Source/shotwell/src/Photo.vala"
_photo_file_adapter_unref0 (self->editable);
#line 32366 "Photo.c"
}
static GType photo_backing_readers_get_type (void) {
static volatile gsize photo_backing_readers_type_id__volatile = 0;
if (g_once_init_enter (&photo_backing_readers_type_id__volatile)) {
static const GTypeValueTable g_define_type_value_table = { photo_value_backing_readers_init, photo_value_backing_readers_free_value, photo_value_backing_readers_copy_value, photo_value_backing_readers_peek_pointer, "p", photo_value_backing_readers_collect_value, "p", photo_value_backing_readers_lcopy_value };
static const GTypeInfo g_define_type_info = { sizeof (PhotoBackingReadersClass), (GBaseInitFunc) NULL, (GBaseFinalizeFunc) NULL, (GClassInitFunc) photo_backing_readers_class_init, (GClassFinalizeFunc) NULL, NULL, sizeof (PhotoBackingReaders), 0, (GInstanceInitFunc) photo_backing_readers_instance_init, &g_define_type_value_table };
static const GTypeFundamentalInfo g_define_type_fundamental_info = { (G_TYPE_FLAG_CLASSED | G_TYPE_FLAG_INSTANTIATABLE | G_TYPE_FLAG_DERIVABLE | G_TYPE_FLAG_DEEP_DERIVABLE) };
GType photo_backing_readers_type_id;
photo_backing_readers_type_id = g_type_register_fundamental (g_type_fundamental_next (), "PhotoBackingReaders", &g_define_type_info, &g_define_type_fundamental_info, 0);
g_once_init_leave (&photo_backing_readers_type_id__volatile, photo_backing_readers_type_id);
}
return photo_backing_readers_type_id__volatile;
}
static gpointer photo_backing_readers_ref (gpointer instance) {
PhotoBackingReaders* self;
self = instance;
#line 294 "/home/jens/Source/shotwell/src/Photo.vala"
g_atomic_int_inc (&self->ref_count);
#line 294 "/home/jens/Source/shotwell/src/Photo.vala"
return instance;
#line 32391 "Photo.c"
}
static void photo_backing_readers_unref (gpointer instance) {
PhotoBackingReaders* self;
self = instance;
#line 294 "/home/jens/Source/shotwell/src/Photo.vala"
if (g_atomic_int_dec_and_test (&self->ref_count)) {
#line 294 "/home/jens/Source/shotwell/src/Photo.vala"
PHOTO_BACKING_READERS_GET_CLASS (self)->finalize (self);
#line 294 "/home/jens/Source/shotwell/src/Photo.vala"
g_type_free_instance ((GTypeInstance *) self);
#line 32404 "Photo.c"
}
}
static PhotoCachedPixbuf* photo_cached_pixbuf_construct (GType object_type, Photo* photo, GdkPixbuf* pixbuf) {
PhotoCachedPixbuf* self = NULL;
Photo* _tmp0_ = NULL;
Photo* _tmp1_ = NULL;
GdkPixbuf* _tmp2_ = NULL;
GdkPixbuf* _tmp3_ = NULL;
#line 305 "/home/jens/Source/shotwell/src/Photo.vala"
g_return_val_if_fail (IS_PHOTO (photo), NULL);
#line 305 "/home/jens/Source/shotwell/src/Photo.vala"
g_return_val_if_fail (GDK_IS_PIXBUF (pixbuf), NULL);
#line 305 "/home/jens/Source/shotwell/src/Photo.vala"
self = (PhotoCachedPixbuf*) g_type_create_instance (object_type);
#line 306 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp0_ = photo;
#line 306 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp1_ = _g_object_ref0 (_tmp0_);
#line 306 "/home/jens/Source/shotwell/src/Photo.vala"
_g_object_unref0 (self->photo);
#line 306 "/home/jens/Source/shotwell/src/Photo.vala"
self->photo = _tmp1_;
#line 307 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp2_ = pixbuf;
#line 307 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp3_ = _g_object_ref0 (_tmp2_);
#line 307 "/home/jens/Source/shotwell/src/Photo.vala"
_g_object_unref0 (self->pixbuf);
#line 307 "/home/jens/Source/shotwell/src/Photo.vala"
self->pixbuf = _tmp3_;
#line 305 "/home/jens/Source/shotwell/src/Photo.vala"
return self;
#line 32439 "Photo.c"
}
static PhotoCachedPixbuf* photo_cached_pixbuf_new (Photo* photo, GdkPixbuf* pixbuf) {
#line 305 "/home/jens/Source/shotwell/src/Photo.vala"
return photo_cached_pixbuf_construct (PHOTO_TYPE_CACHED_PIXBUF, photo, pixbuf);
#line 32446 "Photo.c"
}
static void photo_value_cached_pixbuf_init (GValue* value) {
#line 300 "/home/jens/Source/shotwell/src/Photo.vala"
value->data[0].v_pointer = NULL;
#line 32453 "Photo.c"
}
static void photo_value_cached_pixbuf_free_value (GValue* value) {
#line 300 "/home/jens/Source/shotwell/src/Photo.vala"
if (value->data[0].v_pointer) {
#line 300 "/home/jens/Source/shotwell/src/Photo.vala"
photo_cached_pixbuf_unref (value->data[0].v_pointer);
#line 32462 "Photo.c"
}
}
static void photo_value_cached_pixbuf_copy_value (const GValue* src_value, GValue* dest_value) {
#line 300 "/home/jens/Source/shotwell/src/Photo.vala"
if (src_value->data[0].v_pointer) {
#line 300 "/home/jens/Source/shotwell/src/Photo.vala"
dest_value->data[0].v_pointer = photo_cached_pixbuf_ref (src_value->data[0].v_pointer);
#line 32472 "Photo.c"
} else {
#line 300 "/home/jens/Source/shotwell/src/Photo.vala"
dest_value->data[0].v_pointer = NULL;
#line 32476 "Photo.c"
}
}
static gpointer photo_value_cached_pixbuf_peek_pointer (const GValue* value) {
#line 300 "/home/jens/Source/shotwell/src/Photo.vala"
return value->data[0].v_pointer;
#line 32484 "Photo.c"
}
static gchar* photo_value_cached_pixbuf_collect_value (GValue* value, guint n_collect_values, GTypeCValue* collect_values, guint collect_flags) {
#line 300 "/home/jens/Source/shotwell/src/Photo.vala"
if (collect_values[0].v_pointer) {
#line 32491 "Photo.c"
PhotoCachedPixbuf* object;
object = collect_values[0].v_pointer;
#line 300 "/home/jens/Source/shotwell/src/Photo.vala"
if (object->parent_instance.g_class == NULL) {
#line 300 "/home/jens/Source/shotwell/src/Photo.vala"
return g_strconcat ("invalid unclassed object pointer for value type `", G_VALUE_TYPE_NAME (value), "'", NULL);
#line 32498 "Photo.c"
} else if (!g_value_type_compatible (G_TYPE_FROM_INSTANCE (object), G_VALUE_TYPE (value))) {
#line 300 "/home/jens/Source/shotwell/src/Photo.vala"
return g_strconcat ("invalid object type `", g_type_name (G_TYPE_FROM_INSTANCE (object)), "' for value type `", G_VALUE_TYPE_NAME (value), "'", NULL);
#line 32502 "Photo.c"
}
#line 300 "/home/jens/Source/shotwell/src/Photo.vala"
value->data[0].v_pointer = photo_cached_pixbuf_ref (object);
#line 32506 "Photo.c"
} else {
#line 300 "/home/jens/Source/shotwell/src/Photo.vala"
value->data[0].v_pointer = NULL;
#line 32510 "Photo.c"
}
#line 300 "/home/jens/Source/shotwell/src/Photo.vala"
return NULL;
#line 32514 "Photo.c"
}
static gchar* photo_value_cached_pixbuf_lcopy_value (const GValue* value, guint n_collect_values, GTypeCValue* collect_values, guint collect_flags) {
PhotoCachedPixbuf** object_p;
object_p = collect_values[0].v_pointer;
#line 300 "/home/jens/Source/shotwell/src/Photo.vala"
if (!object_p) {
#line 300 "/home/jens/Source/shotwell/src/Photo.vala"
return g_strdup_printf ("value location for `%s' passed as NULL", G_VALUE_TYPE_NAME (value));
#line 32525 "Photo.c"
}
#line 300 "/home/jens/Source/shotwell/src/Photo.vala"
if (!value->data[0].v_pointer) {
#line 300 "/home/jens/Source/shotwell/src/Photo.vala"
*object_p = NULL;
#line 32531 "Photo.c"
} else if (collect_flags & G_VALUE_NOCOPY_CONTENTS) {
#line 300 "/home/jens/Source/shotwell/src/Photo.vala"
*object_p = value->data[0].v_pointer;
#line 32535 "Photo.c"
} else {
#line 300 "/home/jens/Source/shotwell/src/Photo.vala"
*object_p = photo_cached_pixbuf_ref (value->data[0].v_pointer);
#line 32539 "Photo.c"
}
#line 300 "/home/jens/Source/shotwell/src/Photo.vala"
return NULL;
#line 32543 "Photo.c"
}
static GParamSpec* photo_param_spec_cached_pixbuf (const gchar* name, const gchar* nick, const gchar* blurb, GType object_type, GParamFlags flags) {
PhotoParamSpecCachedPixbuf* spec;
#line 300 "/home/jens/Source/shotwell/src/Photo.vala"
g_return_val_if_fail (g_type_is_a (object_type, PHOTO_TYPE_CACHED_PIXBUF), NULL);
#line 300 "/home/jens/Source/shotwell/src/Photo.vala"
spec = g_param_spec_internal (G_TYPE_PARAM_OBJECT, name, nick, blurb, flags);
#line 300 "/home/jens/Source/shotwell/src/Photo.vala"
G_PARAM_SPEC (spec)->value_type = object_type;
#line 300 "/home/jens/Source/shotwell/src/Photo.vala"
return G_PARAM_SPEC (spec);
#line 32557 "Photo.c"
}
static gpointer photo_value_get_cached_pixbuf (const GValue* value) {
#line 300 "/home/jens/Source/shotwell/src/Photo.vala"
g_return_val_if_fail (G_TYPE_CHECK_VALUE_TYPE (value, PHOTO_TYPE_CACHED_PIXBUF), NULL);
#line 300 "/home/jens/Source/shotwell/src/Photo.vala"
return value->data[0].v_pointer;
#line 32566 "Photo.c"
}
static void photo_value_set_cached_pixbuf (GValue* value, gpointer v_object) {
PhotoCachedPixbuf* old;
#line 300 "/home/jens/Source/shotwell/src/Photo.vala"
g_return_if_fail (G_TYPE_CHECK_VALUE_TYPE (value, PHOTO_TYPE_CACHED_PIXBUF));
#line 300 "/home/jens/Source/shotwell/src/Photo.vala"
old = value->data[0].v_pointer;
#line 300 "/home/jens/Source/shotwell/src/Photo.vala"
if (v_object) {
#line 300 "/home/jens/Source/shotwell/src/Photo.vala"
g_return_if_fail (G_TYPE_CHECK_INSTANCE_TYPE (v_object, PHOTO_TYPE_CACHED_PIXBUF));
#line 300 "/home/jens/Source/shotwell/src/Photo.vala"
g_return_if_fail (g_value_type_compatible (G_TYPE_FROM_INSTANCE (v_object), G_VALUE_TYPE (value)));
#line 300 "/home/jens/Source/shotwell/src/Photo.vala"
value->data[0].v_pointer = v_object;
#line 300 "/home/jens/Source/shotwell/src/Photo.vala"
photo_cached_pixbuf_ref (value->data[0].v_pointer);
#line 32586 "Photo.c"
} else {
#line 300 "/home/jens/Source/shotwell/src/Photo.vala"
value->data[0].v_pointer = NULL;
#line 32590 "Photo.c"
}
#line 300 "/home/jens/Source/shotwell/src/Photo.vala"
if (old) {
#line 300 "/home/jens/Source/shotwell/src/Photo.vala"
photo_cached_pixbuf_unref (old);
#line 32596 "Photo.c"
}
}
static void photo_value_take_cached_pixbuf (GValue* value, gpointer v_object) {
PhotoCachedPixbuf* old;
#line 300 "/home/jens/Source/shotwell/src/Photo.vala"
g_return_if_fail (G_TYPE_CHECK_VALUE_TYPE (value, PHOTO_TYPE_CACHED_PIXBUF));
#line 300 "/home/jens/Source/shotwell/src/Photo.vala"
old = value->data[0].v_pointer;
#line 300 "/home/jens/Source/shotwell/src/Photo.vala"
if (v_object) {
#line 300 "/home/jens/Source/shotwell/src/Photo.vala"
g_return_if_fail (G_TYPE_CHECK_INSTANCE_TYPE (v_object, PHOTO_TYPE_CACHED_PIXBUF));
#line 300 "/home/jens/Source/shotwell/src/Photo.vala"
g_return_if_fail (g_value_type_compatible (G_TYPE_FROM_INSTANCE (v_object), G_VALUE_TYPE (value)));
#line 300 "/home/jens/Source/shotwell/src/Photo.vala"
value->data[0].v_pointer = v_object;
#line 32615 "Photo.c"
} else {
#line 300 "/home/jens/Source/shotwell/src/Photo.vala"
value->data[0].v_pointer = NULL;
#line 32619 "Photo.c"
}
#line 300 "/home/jens/Source/shotwell/src/Photo.vala"
if (old) {
#line 300 "/home/jens/Source/shotwell/src/Photo.vala"
photo_cached_pixbuf_unref (old);
#line 32625 "Photo.c"
}
}
static void photo_cached_pixbuf_class_init (PhotoCachedPixbufClass * klass) {
#line 300 "/home/jens/Source/shotwell/src/Photo.vala"
photo_cached_pixbuf_parent_class = g_type_class_peek_parent (klass);
#line 300 "/home/jens/Source/shotwell/src/Photo.vala"
((PhotoCachedPixbufClass *) klass)->finalize = photo_cached_pixbuf_finalize;
#line 32635 "Photo.c"
}
static void photo_cached_pixbuf_instance_init (PhotoCachedPixbuf * self) {
GTimer* _tmp0_ = NULL;
#line 303 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp0_ = g_timer_new ();
#line 303 "/home/jens/Source/shotwell/src/Photo.vala"
self->last_touched = _tmp0_;
#line 300 "/home/jens/Source/shotwell/src/Photo.vala"
self->ref_count = 1;
#line 32647 "Photo.c"
}
static void photo_cached_pixbuf_finalize (PhotoCachedPixbuf* obj) {
PhotoCachedPixbuf * self;
#line 300 "/home/jens/Source/shotwell/src/Photo.vala"
self = G_TYPE_CHECK_INSTANCE_CAST (obj, PHOTO_TYPE_CACHED_PIXBUF, PhotoCachedPixbuf);
#line 300 "/home/jens/Source/shotwell/src/Photo.vala"
g_signal_handlers_destroy (self);
#line 301 "/home/jens/Source/shotwell/src/Photo.vala"
_g_object_unref0 (self->photo);
#line 302 "/home/jens/Source/shotwell/src/Photo.vala"
_g_object_unref0 (self->pixbuf);
#line 303 "/home/jens/Source/shotwell/src/Photo.vala"
_g_timer_destroy0 (self->last_touched);
#line 32663 "Photo.c"
}
static GType photo_cached_pixbuf_get_type (void) {
static volatile gsize photo_cached_pixbuf_type_id__volatile = 0;
if (g_once_init_enter (&photo_cached_pixbuf_type_id__volatile)) {
static const GTypeValueTable g_define_type_value_table = { photo_value_cached_pixbuf_init, photo_value_cached_pixbuf_free_value, photo_value_cached_pixbuf_copy_value, photo_value_cached_pixbuf_peek_pointer, "p", photo_value_cached_pixbuf_collect_value, "p", photo_value_cached_pixbuf_lcopy_value };
static const GTypeInfo g_define_type_info = { sizeof (PhotoCachedPixbufClass), (GBaseInitFunc) NULL, (GBaseFinalizeFunc) NULL, (GClassInitFunc) photo_cached_pixbuf_class_init, (GClassFinalizeFunc) NULL, NULL, sizeof (PhotoCachedPixbuf), 0, (GInstanceInitFunc) photo_cached_pixbuf_instance_init, &g_define_type_value_table };
static const GTypeFundamentalInfo g_define_type_fundamental_info = { (G_TYPE_FLAG_CLASSED | G_TYPE_FLAG_INSTANTIATABLE | G_TYPE_FLAG_DERIVABLE | G_TYPE_FLAG_DEEP_DERIVABLE) };
GType photo_cached_pixbuf_type_id;
photo_cached_pixbuf_type_id = g_type_register_fundamental (g_type_fundamental_next (), "PhotoCachedPixbuf", &g_define_type_info, &g_define_type_fundamental_info, 0);
g_once_init_leave (&photo_cached_pixbuf_type_id__volatile, photo_cached_pixbuf_type_id);
}
return photo_cached_pixbuf_type_id__volatile;
}
static gpointer photo_cached_pixbuf_ref (gpointer instance) {
PhotoCachedPixbuf* self;
self = instance;
#line 300 "/home/jens/Source/shotwell/src/Photo.vala"
g_atomic_int_inc (&self->ref_count);
#line 300 "/home/jens/Source/shotwell/src/Photo.vala"
return instance;
#line 32688 "Photo.c"
}
static void photo_cached_pixbuf_unref (gpointer instance) {
PhotoCachedPixbuf* self;
self = instance;
#line 300 "/home/jens/Source/shotwell/src/Photo.vala"
if (g_atomic_int_dec_and_test (&self->ref_count)) {
#line 300 "/home/jens/Source/shotwell/src/Photo.vala"
PHOTO_CACHED_PIXBUF_GET_CLASS (self)->finalize (self);
#line 300 "/home/jens/Source/shotwell/src/Photo.vala"
g_type_free_instance ((GTypeInstance *) self);
#line 32701 "Photo.c"
}
}
PhotoReimportMasterState* photo_reimport_master_state_construct (GType object_type) {
PhotoReimportMasterState* self = NULL;
#line 1348 "/home/jens/Source/shotwell/src/Photo.vala"
self = (PhotoReimportMasterState*) g_type_create_instance (object_type);
#line 1348 "/home/jens/Source/shotwell/src/Photo.vala"
return self;
#line 32712 "Photo.c"
}
static void photo_value_reimport_master_state_init (GValue* value) {
#line 1348 "/home/jens/Source/shotwell/src/Photo.vala"
value->data[0].v_pointer = NULL;
#line 32719 "Photo.c"
}
static void photo_value_reimport_master_state_free_value (GValue* value) {
#line 1348 "/home/jens/Source/shotwell/src/Photo.vala"
if (value->data[0].v_pointer) {
#line 1348 "/home/jens/Source/shotwell/src/Photo.vala"
photo_reimport_master_state_unref (value->data[0].v_pointer);
#line 32728 "Photo.c"
}
}
static void photo_value_reimport_master_state_copy_value (const GValue* src_value, GValue* dest_value) {
#line 1348 "/home/jens/Source/shotwell/src/Photo.vala"
if (src_value->data[0].v_pointer) {
#line 1348 "/home/jens/Source/shotwell/src/Photo.vala"
dest_value->data[0].v_pointer = photo_reimport_master_state_ref (src_value->data[0].v_pointer);
#line 32738 "Photo.c"
} else {
#line 1348 "/home/jens/Source/shotwell/src/Photo.vala"
dest_value->data[0].v_pointer = NULL;
#line 32742 "Photo.c"
}
}
static gpointer photo_value_reimport_master_state_peek_pointer (const GValue* value) {
#line 1348 "/home/jens/Source/shotwell/src/Photo.vala"
return value->data[0].v_pointer;
#line 32750 "Photo.c"
}
static gchar* photo_value_reimport_master_state_collect_value (GValue* value, guint n_collect_values, GTypeCValue* collect_values, guint collect_flags) {
#line 1348 "/home/jens/Source/shotwell/src/Photo.vala"
if (collect_values[0].v_pointer) {
#line 32757 "Photo.c"
PhotoReimportMasterState* object;
object = collect_values[0].v_pointer;
#line 1348 "/home/jens/Source/shotwell/src/Photo.vala"
if (object->parent_instance.g_class == NULL) {
#line 1348 "/home/jens/Source/shotwell/src/Photo.vala"
return g_strconcat ("invalid unclassed object pointer for value type `", G_VALUE_TYPE_NAME (value), "'", NULL);
#line 32764 "Photo.c"
} else if (!g_value_type_compatible (G_TYPE_FROM_INSTANCE (object), G_VALUE_TYPE (value))) {
#line 1348 "/home/jens/Source/shotwell/src/Photo.vala"
return g_strconcat ("invalid object type `", g_type_name (G_TYPE_FROM_INSTANCE (object)), "' for value type `", G_VALUE_TYPE_NAME (value), "'", NULL);
#line 32768 "Photo.c"
}
#line 1348 "/home/jens/Source/shotwell/src/Photo.vala"
value->data[0].v_pointer = photo_reimport_master_state_ref (object);
#line 32772 "Photo.c"
} else {
#line 1348 "/home/jens/Source/shotwell/src/Photo.vala"
value->data[0].v_pointer = NULL;
#line 32776 "Photo.c"
}
#line 1348 "/home/jens/Source/shotwell/src/Photo.vala"
return NULL;
#line 32780 "Photo.c"
}
static gchar* photo_value_reimport_master_state_lcopy_value (const GValue* value, guint n_collect_values, GTypeCValue* collect_values, guint collect_flags) {
PhotoReimportMasterState** object_p;
object_p = collect_values[0].v_pointer;
#line 1348 "/home/jens/Source/shotwell/src/Photo.vala"
if (!object_p) {
#line 1348 "/home/jens/Source/shotwell/src/Photo.vala"
return g_strdup_printf ("value location for `%s' passed as NULL", G_VALUE_TYPE_NAME (value));
#line 32791 "Photo.c"
}
#line 1348 "/home/jens/Source/shotwell/src/Photo.vala"
if (!value->data[0].v_pointer) {
#line 1348 "/home/jens/Source/shotwell/src/Photo.vala"
*object_p = NULL;
#line 32797 "Photo.c"
} else if (collect_flags & G_VALUE_NOCOPY_CONTENTS) {
#line 1348 "/home/jens/Source/shotwell/src/Photo.vala"
*object_p = value->data[0].v_pointer;
#line 32801 "Photo.c"
} else {
#line 1348 "/home/jens/Source/shotwell/src/Photo.vala"
*object_p = photo_reimport_master_state_ref (value->data[0].v_pointer);
#line 32805 "Photo.c"
}
#line 1348 "/home/jens/Source/shotwell/src/Photo.vala"
return NULL;
#line 32809 "Photo.c"
}
GParamSpec* photo_param_spec_reimport_master_state (const gchar* name, const gchar* nick, const gchar* blurb, GType object_type, GParamFlags flags) {
PhotoParamSpecReimportMasterState* spec;
#line 1348 "/home/jens/Source/shotwell/src/Photo.vala"
g_return_val_if_fail (g_type_is_a (object_type, PHOTO_TYPE_REIMPORT_MASTER_STATE), NULL);
#line 1348 "/home/jens/Source/shotwell/src/Photo.vala"
spec = g_param_spec_internal (G_TYPE_PARAM_OBJECT, name, nick, blurb, flags);
#line 1348 "/home/jens/Source/shotwell/src/Photo.vala"
G_PARAM_SPEC (spec)->value_type = object_type;
#line 1348 "/home/jens/Source/shotwell/src/Photo.vala"
return G_PARAM_SPEC (spec);
#line 32823 "Photo.c"
}
gpointer photo_value_get_reimport_master_state (const GValue* value) {
#line 1348 "/home/jens/Source/shotwell/src/Photo.vala"
g_return_val_if_fail (G_TYPE_CHECK_VALUE_TYPE (value, PHOTO_TYPE_REIMPORT_MASTER_STATE), NULL);
#line 1348 "/home/jens/Source/shotwell/src/Photo.vala"
return value->data[0].v_pointer;
#line 32832 "Photo.c"
}
void photo_value_set_reimport_master_state (GValue* value, gpointer v_object) {
PhotoReimportMasterState* old;
#line 1348 "/home/jens/Source/shotwell/src/Photo.vala"
g_return_if_fail (G_TYPE_CHECK_VALUE_TYPE (value, PHOTO_TYPE_REIMPORT_MASTER_STATE));
#line 1348 "/home/jens/Source/shotwell/src/Photo.vala"
old = value->data[0].v_pointer;
#line 1348 "/home/jens/Source/shotwell/src/Photo.vala"
if (v_object) {
#line 1348 "/home/jens/Source/shotwell/src/Photo.vala"
g_return_if_fail (G_TYPE_CHECK_INSTANCE_TYPE (v_object, PHOTO_TYPE_REIMPORT_MASTER_STATE));
#line 1348 "/home/jens/Source/shotwell/src/Photo.vala"
g_return_if_fail (g_value_type_compatible (G_TYPE_FROM_INSTANCE (v_object), G_VALUE_TYPE (value)));
#line 1348 "/home/jens/Source/shotwell/src/Photo.vala"
value->data[0].v_pointer = v_object;
#line 1348 "/home/jens/Source/shotwell/src/Photo.vala"
photo_reimport_master_state_ref (value->data[0].v_pointer);
#line 32852 "Photo.c"
} else {
#line 1348 "/home/jens/Source/shotwell/src/Photo.vala"
value->data[0].v_pointer = NULL;
#line 32856 "Photo.c"
}
#line 1348 "/home/jens/Source/shotwell/src/Photo.vala"
if (old) {
#line 1348 "/home/jens/Source/shotwell/src/Photo.vala"
photo_reimport_master_state_unref (old);
#line 32862 "Photo.c"
}
}
void photo_value_take_reimport_master_state (GValue* value, gpointer v_object) {
PhotoReimportMasterState* old;
#line 1348 "/home/jens/Source/shotwell/src/Photo.vala"
g_return_if_fail (G_TYPE_CHECK_VALUE_TYPE (value, PHOTO_TYPE_REIMPORT_MASTER_STATE));
#line 1348 "/home/jens/Source/shotwell/src/Photo.vala"
old = value->data[0].v_pointer;
#line 1348 "/home/jens/Source/shotwell/src/Photo.vala"
if (v_object) {
#line 1348 "/home/jens/Source/shotwell/src/Photo.vala"
g_return_if_fail (G_TYPE_CHECK_INSTANCE_TYPE (v_object, PHOTO_TYPE_REIMPORT_MASTER_STATE));
#line 1348 "/home/jens/Source/shotwell/src/Photo.vala"
g_return_if_fail (g_value_type_compatible (G_TYPE_FROM_INSTANCE (v_object), G_VALUE_TYPE (value)));
#line 1348 "/home/jens/Source/shotwell/src/Photo.vala"
value->data[0].v_pointer = v_object;
#line 32881 "Photo.c"
} else {
#line 1348 "/home/jens/Source/shotwell/src/Photo.vala"
value->data[0].v_pointer = NULL;
#line 32885 "Photo.c"
}
#line 1348 "/home/jens/Source/shotwell/src/Photo.vala"
if (old) {
#line 1348 "/home/jens/Source/shotwell/src/Photo.vala"
photo_reimport_master_state_unref (old);
#line 32891 "Photo.c"
}
}
static void photo_reimport_master_state_class_init (PhotoReimportMasterStateClass * klass) {
#line 1348 "/home/jens/Source/shotwell/src/Photo.vala"
photo_reimport_master_state_parent_class = g_type_class_peek_parent (klass);
#line 1348 "/home/jens/Source/shotwell/src/Photo.vala"
((PhotoReimportMasterStateClass *) klass)->finalize = photo_reimport_master_state_finalize;
#line 32901 "Photo.c"
}
static void photo_reimport_master_state_instance_init (PhotoReimportMasterState * self) {
#line 1348 "/home/jens/Source/shotwell/src/Photo.vala"
self->ref_count = 1;
#line 32908 "Photo.c"
}
static void photo_reimport_master_state_finalize (PhotoReimportMasterState* obj) {
PhotoReimportMasterState * self;
#line 1348 "/home/jens/Source/shotwell/src/Photo.vala"
self = G_TYPE_CHECK_INSTANCE_CAST (obj, PHOTO_TYPE_REIMPORT_MASTER_STATE, PhotoReimportMasterState);
#line 1348 "/home/jens/Source/shotwell/src/Photo.vala"
g_signal_handlers_destroy (self);
#line 32918 "Photo.c"
}
GType photo_reimport_master_state_get_type (void) {
static volatile gsize photo_reimport_master_state_type_id__volatile = 0;
if (g_once_init_enter (&photo_reimport_master_state_type_id__volatile)) {
static const GTypeValueTable g_define_type_value_table = { photo_value_reimport_master_state_init, photo_value_reimport_master_state_free_value, photo_value_reimport_master_state_copy_value, photo_value_reimport_master_state_peek_pointer, "p", photo_value_reimport_master_state_collect_value, "p", photo_value_reimport_master_state_lcopy_value };
static const GTypeInfo g_define_type_info = { sizeof (PhotoReimportMasterStateClass), (GBaseInitFunc) NULL, (GBaseFinalizeFunc) NULL, (GClassInitFunc) photo_reimport_master_state_class_init, (GClassFinalizeFunc) NULL, NULL, sizeof (PhotoReimportMasterState), 0, (GInstanceInitFunc) photo_reimport_master_state_instance_init, &g_define_type_value_table };
static const GTypeFundamentalInfo g_define_type_fundamental_info = { (G_TYPE_FLAG_CLASSED | G_TYPE_FLAG_INSTANTIATABLE | G_TYPE_FLAG_DERIVABLE | G_TYPE_FLAG_DEEP_DERIVABLE) };
GType photo_reimport_master_state_type_id;
photo_reimport_master_state_type_id = g_type_register_fundamental (g_type_fundamental_next (), "PhotoReimportMasterState", &g_define_type_info, &g_define_type_fundamental_info, G_TYPE_FLAG_ABSTRACT);
g_once_init_leave (&photo_reimport_master_state_type_id__volatile, photo_reimport_master_state_type_id);
}
return photo_reimport_master_state_type_id__volatile;
}
gpointer photo_reimport_master_state_ref (gpointer instance) {
PhotoReimportMasterState* self;
self = instance;
#line 1348 "/home/jens/Source/shotwell/src/Photo.vala"
g_atomic_int_inc (&self->ref_count);
#line 1348 "/home/jens/Source/shotwell/src/Photo.vala"
return instance;
#line 32943 "Photo.c"
}
void photo_reimport_master_state_unref (gpointer instance) {
PhotoReimportMasterState* self;
self = instance;
#line 1348 "/home/jens/Source/shotwell/src/Photo.vala"
if (g_atomic_int_dec_and_test (&self->ref_count)) {
#line 1348 "/home/jens/Source/shotwell/src/Photo.vala"
PHOTO_REIMPORT_MASTER_STATE_GET_CLASS (self)->finalize (self);
#line 1348 "/home/jens/Source/shotwell/src/Photo.vala"
g_type_free_instance ((GTypeInstance *) self);
#line 32956 "Photo.c"
}
}
static gchar** _vala_array_dup29 (gchar** self, int length) {
gchar** result;
int i;
#line 1360 "/home/jens/Source/shotwell/src/Photo.vala"
result = g_new0 (gchar*, length + 1);
#line 1360 "/home/jens/Source/shotwell/src/Photo.vala"
for (i = 0; i < length; i++) {
#line 32968 "Photo.c"
gchar* _tmp0_ = NULL;
#line 1360 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp0_ = g_strdup (self[i]);
#line 1360 "/home/jens/Source/shotwell/src/Photo.vala"
result[i] = _tmp0_;
#line 32974 "Photo.c"
}
#line 1360 "/home/jens/Source/shotwell/src/Photo.vala"
return result;
#line 32978 "Photo.c"
}
static PhotoReimportMasterStateImpl* photo_reimport_master_state_impl_construct (GType object_type, PhotoRow* row, PhotoMetadata* metadata, gchar** alterations, int alterations_length1) {
PhotoReimportMasterStateImpl* self = NULL;
PhotoRow* _tmp0_ = NULL;
PhotoRow* _tmp1_ = NULL;
PhotoMetadata* _tmp2_ = NULL;
PhotoMetadata* _tmp3_ = NULL;
gchar** _tmp4_ = NULL;
gint _tmp4__length1 = 0;
gchar** _tmp5_ = NULL;
gint _tmp5__length1 = 0;
#line 1357 "/home/jens/Source/shotwell/src/Photo.vala"
g_return_val_if_fail (IS_PHOTO_ROW (row), NULL);
#line 1357 "/home/jens/Source/shotwell/src/Photo.vala"
g_return_val_if_fail ((metadata == NULL) || IS_PHOTO_METADATA (metadata), NULL);
#line 1357 "/home/jens/Source/shotwell/src/Photo.vala"
self = (PhotoReimportMasterStateImpl*) photo_reimport_master_state_construct (object_type);
#line 1358 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp0_ = row;
#line 1358 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp1_ = _photo_row_ref0 (_tmp0_);
#line 1358 "/home/jens/Source/shotwell/src/Photo.vala"
_photo_row_unref0 (self->row);
#line 1358 "/home/jens/Source/shotwell/src/Photo.vala"
self->row = _tmp1_;
#line 1359 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp2_ = metadata;
#line 1359 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp3_ = _media_metadata_ref0 (_tmp2_);
#line 1359 "/home/jens/Source/shotwell/src/Photo.vala"
_media_metadata_unref0 (self->metadata);
#line 1359 "/home/jens/Source/shotwell/src/Photo.vala"
self->metadata = _tmp3_;
#line 1360 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp4_ = alterations;
#line 1360 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp4__length1 = alterations_length1;
#line 1360 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp5_ = (_tmp4_ != NULL) ? _vala_array_dup29 (_tmp4_, _tmp4__length1) : ((gpointer) _tmp4_);
#line 1360 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp5__length1 = _tmp4__length1;
#line 1360 "/home/jens/Source/shotwell/src/Photo.vala"
self->alterations = (_vala_array_free (self->alterations, self->alterations_length1, (GDestroyNotify) g_free), NULL);
#line 1360 "/home/jens/Source/shotwell/src/Photo.vala"
self->alterations = _tmp5_;
#line 1360 "/home/jens/Source/shotwell/src/Photo.vala"
self->alterations_length1 = _tmp5__length1;
#line 1360 "/home/jens/Source/shotwell/src/Photo.vala"
self->_alterations_size_ = self->alterations_length1;
#line 1357 "/home/jens/Source/shotwell/src/Photo.vala"
return self;
#line 33032 "Photo.c"
}
static PhotoReimportMasterStateImpl* photo_reimport_master_state_impl_new (PhotoRow* row, PhotoMetadata* metadata, gchar** alterations, int alterations_length1) {
#line 1357 "/home/jens/Source/shotwell/src/Photo.vala"
return photo_reimport_master_state_impl_construct (PHOTO_TYPE_REIMPORT_MASTER_STATE_IMPL, row, metadata, alterations, alterations_length1);
#line 33039 "Photo.c"
}
static void photo_reimport_master_state_impl_class_init (PhotoReimportMasterStateImplClass * klass) {
#line 1351 "/home/jens/Source/shotwell/src/Photo.vala"
photo_reimport_master_state_impl_parent_class = g_type_class_peek_parent (klass);
#line 1351 "/home/jens/Source/shotwell/src/Photo.vala"
((PhotoReimportMasterStateClass *) klass)->finalize = photo_reimport_master_state_impl_finalize;
#line 33048 "Photo.c"
}
static void photo_reimport_master_state_impl_instance_init (PhotoReimportMasterStateImpl * self) {
PhotoRow* _tmp0_ = NULL;
#line 1352 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp0_ = photo_row_new ();
#line 1352 "/home/jens/Source/shotwell/src/Photo.vala"
self->row = _tmp0_;
#line 1355 "/home/jens/Source/shotwell/src/Photo.vala"
self->metadata_only = FALSE;
#line 33060 "Photo.c"
}
static void photo_reimport_master_state_impl_finalize (PhotoReimportMasterState* obj) {
PhotoReimportMasterStateImpl * self;
#line 1351 "/home/jens/Source/shotwell/src/Photo.vala"
self = G_TYPE_CHECK_INSTANCE_CAST (obj, PHOTO_TYPE_REIMPORT_MASTER_STATE_IMPL, PhotoReimportMasterStateImpl);
#line 1352 "/home/jens/Source/shotwell/src/Photo.vala"
_photo_row_unref0 (self->row);
#line 1353 "/home/jens/Source/shotwell/src/Photo.vala"
_media_metadata_unref0 (self->metadata);
#line 1354 "/home/jens/Source/shotwell/src/Photo.vala"
self->alterations = (_vala_array_free (self->alterations, self->alterations_length1, (GDestroyNotify) g_free), NULL);
#line 1351 "/home/jens/Source/shotwell/src/Photo.vala"
PHOTO_REIMPORT_MASTER_STATE_CLASS (photo_reimport_master_state_impl_parent_class)->finalize (obj);
#line 33076 "Photo.c"
}
static GType photo_reimport_master_state_impl_get_type (void) {
static volatile gsize photo_reimport_master_state_impl_type_id__volatile = 0;
if (g_once_init_enter (&photo_reimport_master_state_impl_type_id__volatile)) {
static const GTypeInfo g_define_type_info = { sizeof (PhotoReimportMasterStateImplClass), (GBaseInitFunc) NULL, (GBaseFinalizeFunc) NULL, (GClassInitFunc) photo_reimport_master_state_impl_class_init, (GClassFinalizeFunc) NULL, NULL, sizeof (PhotoReimportMasterStateImpl), 0, (GInstanceInitFunc) photo_reimport_master_state_impl_instance_init, NULL };
GType photo_reimport_master_state_impl_type_id;
photo_reimport_master_state_impl_type_id = g_type_register_static (PHOTO_TYPE_REIMPORT_MASTER_STATE, "PhotoReimportMasterStateImpl", &g_define_type_info, 0);
g_once_init_leave (&photo_reimport_master_state_impl_type_id__volatile, photo_reimport_master_state_impl_type_id);
}
return photo_reimport_master_state_impl_type_id__volatile;
}
PhotoReimportEditableState* photo_reimport_editable_state_construct (GType object_type) {
PhotoReimportEditableState* self = NULL;
#line 1364 "/home/jens/Source/shotwell/src/Photo.vala"
self = (PhotoReimportEditableState*) g_type_create_instance (object_type);
#line 1364 "/home/jens/Source/shotwell/src/Photo.vala"
return self;
#line 33098 "Photo.c"
}
static void photo_value_reimport_editable_state_init (GValue* value) {
#line 1364 "/home/jens/Source/shotwell/src/Photo.vala"
value->data[0].v_pointer = NULL;
#line 33105 "Photo.c"
}
static void photo_value_reimport_editable_state_free_value (GValue* value) {
#line 1364 "/home/jens/Source/shotwell/src/Photo.vala"
if (value->data[0].v_pointer) {
#line 1364 "/home/jens/Source/shotwell/src/Photo.vala"
photo_reimport_editable_state_unref (value->data[0].v_pointer);
#line 33114 "Photo.c"
}
}
static void photo_value_reimport_editable_state_copy_value (const GValue* src_value, GValue* dest_value) {
#line 1364 "/home/jens/Source/shotwell/src/Photo.vala"
if (src_value->data[0].v_pointer) {
#line 1364 "/home/jens/Source/shotwell/src/Photo.vala"
dest_value->data[0].v_pointer = photo_reimport_editable_state_ref (src_value->data[0].v_pointer);
#line 33124 "Photo.c"
} else {
#line 1364 "/home/jens/Source/shotwell/src/Photo.vala"
dest_value->data[0].v_pointer = NULL;
#line 33128 "Photo.c"
}
}
static gpointer photo_value_reimport_editable_state_peek_pointer (const GValue* value) {
#line 1364 "/home/jens/Source/shotwell/src/Photo.vala"
return value->data[0].v_pointer;
#line 33136 "Photo.c"
}
static gchar* photo_value_reimport_editable_state_collect_value (GValue* value, guint n_collect_values, GTypeCValue* collect_values, guint collect_flags) {
#line 1364 "/home/jens/Source/shotwell/src/Photo.vala"
if (collect_values[0].v_pointer) {
#line 33143 "Photo.c"
PhotoReimportEditableState* object;
object = collect_values[0].v_pointer;
#line 1364 "/home/jens/Source/shotwell/src/Photo.vala"
if (object->parent_instance.g_class == NULL) {
#line 1364 "/home/jens/Source/shotwell/src/Photo.vala"
return g_strconcat ("invalid unclassed object pointer for value type `", G_VALUE_TYPE_NAME (value), "'", NULL);
#line 33150 "Photo.c"
} else if (!g_value_type_compatible (G_TYPE_FROM_INSTANCE (object), G_VALUE_TYPE (value))) {
#line 1364 "/home/jens/Source/shotwell/src/Photo.vala"
return g_strconcat ("invalid object type `", g_type_name (G_TYPE_FROM_INSTANCE (object)), "' for value type `", G_VALUE_TYPE_NAME (value), "'", NULL);
#line 33154 "Photo.c"
}
#line 1364 "/home/jens/Source/shotwell/src/Photo.vala"
value->data[0].v_pointer = photo_reimport_editable_state_ref (object);
#line 33158 "Photo.c"
} else {
#line 1364 "/home/jens/Source/shotwell/src/Photo.vala"
value->data[0].v_pointer = NULL;
#line 33162 "Photo.c"
}
#line 1364 "/home/jens/Source/shotwell/src/Photo.vala"
return NULL;
#line 33166 "Photo.c"
}
static gchar* photo_value_reimport_editable_state_lcopy_value (const GValue* value, guint n_collect_values, GTypeCValue* collect_values, guint collect_flags) {
PhotoReimportEditableState** object_p;
object_p = collect_values[0].v_pointer;
#line 1364 "/home/jens/Source/shotwell/src/Photo.vala"
if (!object_p) {
#line 1364 "/home/jens/Source/shotwell/src/Photo.vala"
return g_strdup_printf ("value location for `%s' passed as NULL", G_VALUE_TYPE_NAME (value));
#line 33177 "Photo.c"
}
#line 1364 "/home/jens/Source/shotwell/src/Photo.vala"
if (!value->data[0].v_pointer) {
#line 1364 "/home/jens/Source/shotwell/src/Photo.vala"
*object_p = NULL;
#line 33183 "Photo.c"
} else if (collect_flags & G_VALUE_NOCOPY_CONTENTS) {
#line 1364 "/home/jens/Source/shotwell/src/Photo.vala"
*object_p = value->data[0].v_pointer;
#line 33187 "Photo.c"
} else {
#line 1364 "/home/jens/Source/shotwell/src/Photo.vala"
*object_p = photo_reimport_editable_state_ref (value->data[0].v_pointer);
#line 33191 "Photo.c"
}
#line 1364 "/home/jens/Source/shotwell/src/Photo.vala"
return NULL;
#line 33195 "Photo.c"
}
GParamSpec* photo_param_spec_reimport_editable_state (const gchar* name, const gchar* nick, const gchar* blurb, GType object_type, GParamFlags flags) {
PhotoParamSpecReimportEditableState* spec;
#line 1364 "/home/jens/Source/shotwell/src/Photo.vala"
g_return_val_if_fail (g_type_is_a (object_type, PHOTO_TYPE_REIMPORT_EDITABLE_STATE), NULL);
#line 1364 "/home/jens/Source/shotwell/src/Photo.vala"
spec = g_param_spec_internal (G_TYPE_PARAM_OBJECT, name, nick, blurb, flags);
#line 1364 "/home/jens/Source/shotwell/src/Photo.vala"
G_PARAM_SPEC (spec)->value_type = object_type;
#line 1364 "/home/jens/Source/shotwell/src/Photo.vala"
return G_PARAM_SPEC (spec);
#line 33209 "Photo.c"
}
gpointer photo_value_get_reimport_editable_state (const GValue* value) {
#line 1364 "/home/jens/Source/shotwell/src/Photo.vala"
g_return_val_if_fail (G_TYPE_CHECK_VALUE_TYPE (value, PHOTO_TYPE_REIMPORT_EDITABLE_STATE), NULL);
#line 1364 "/home/jens/Source/shotwell/src/Photo.vala"
return value->data[0].v_pointer;
#line 33218 "Photo.c"
}
void photo_value_set_reimport_editable_state (GValue* value, gpointer v_object) {
PhotoReimportEditableState* old;
#line 1364 "/home/jens/Source/shotwell/src/Photo.vala"
g_return_if_fail (G_TYPE_CHECK_VALUE_TYPE (value, PHOTO_TYPE_REIMPORT_EDITABLE_STATE));
#line 1364 "/home/jens/Source/shotwell/src/Photo.vala"
old = value->data[0].v_pointer;
#line 1364 "/home/jens/Source/shotwell/src/Photo.vala"
if (v_object) {
#line 1364 "/home/jens/Source/shotwell/src/Photo.vala"
g_return_if_fail (G_TYPE_CHECK_INSTANCE_TYPE (v_object, PHOTO_TYPE_REIMPORT_EDITABLE_STATE));
#line 1364 "/home/jens/Source/shotwell/src/Photo.vala"
g_return_if_fail (g_value_type_compatible (G_TYPE_FROM_INSTANCE (v_object), G_VALUE_TYPE (value)));
#line 1364 "/home/jens/Source/shotwell/src/Photo.vala"
value->data[0].v_pointer = v_object;
#line 1364 "/home/jens/Source/shotwell/src/Photo.vala"
photo_reimport_editable_state_ref (value->data[0].v_pointer);
#line 33238 "Photo.c"
} else {
#line 1364 "/home/jens/Source/shotwell/src/Photo.vala"
value->data[0].v_pointer = NULL;
#line 33242 "Photo.c"
}
#line 1364 "/home/jens/Source/shotwell/src/Photo.vala"
if (old) {
#line 1364 "/home/jens/Source/shotwell/src/Photo.vala"
photo_reimport_editable_state_unref (old);
#line 33248 "Photo.c"
}
}
void photo_value_take_reimport_editable_state (GValue* value, gpointer v_object) {
PhotoReimportEditableState* old;
#line 1364 "/home/jens/Source/shotwell/src/Photo.vala"
g_return_if_fail (G_TYPE_CHECK_VALUE_TYPE (value, PHOTO_TYPE_REIMPORT_EDITABLE_STATE));
#line 1364 "/home/jens/Source/shotwell/src/Photo.vala"
old = value->data[0].v_pointer;
#line 1364 "/home/jens/Source/shotwell/src/Photo.vala"
if (v_object) {
#line 1364 "/home/jens/Source/shotwell/src/Photo.vala"
g_return_if_fail (G_TYPE_CHECK_INSTANCE_TYPE (v_object, PHOTO_TYPE_REIMPORT_EDITABLE_STATE));
#line 1364 "/home/jens/Source/shotwell/src/Photo.vala"
g_return_if_fail (g_value_type_compatible (G_TYPE_FROM_INSTANCE (v_object), G_VALUE_TYPE (value)));
#line 1364 "/home/jens/Source/shotwell/src/Photo.vala"
value->data[0].v_pointer = v_object;
#line 33267 "Photo.c"
} else {
#line 1364 "/home/jens/Source/shotwell/src/Photo.vala"
value->data[0].v_pointer = NULL;
#line 33271 "Photo.c"
}
#line 1364 "/home/jens/Source/shotwell/src/Photo.vala"
if (old) {
#line 1364 "/home/jens/Source/shotwell/src/Photo.vala"
photo_reimport_editable_state_unref (old);
#line 33277 "Photo.c"
}
}
static void photo_reimport_editable_state_class_init (PhotoReimportEditableStateClass * klass) {
#line 1364 "/home/jens/Source/shotwell/src/Photo.vala"
photo_reimport_editable_state_parent_class = g_type_class_peek_parent (klass);
#line 1364 "/home/jens/Source/shotwell/src/Photo.vala"
((PhotoReimportEditableStateClass *) klass)->finalize = photo_reimport_editable_state_finalize;
#line 33287 "Photo.c"
}
static void photo_reimport_editable_state_instance_init (PhotoReimportEditableState * self) {
#line 1364 "/home/jens/Source/shotwell/src/Photo.vala"
self->ref_count = 1;
#line 33294 "Photo.c"
}
static void photo_reimport_editable_state_finalize (PhotoReimportEditableState* obj) {
PhotoReimportEditableState * self;
#line 1364 "/home/jens/Source/shotwell/src/Photo.vala"
self = G_TYPE_CHECK_INSTANCE_CAST (obj, PHOTO_TYPE_REIMPORT_EDITABLE_STATE, PhotoReimportEditableState);
#line 1364 "/home/jens/Source/shotwell/src/Photo.vala"
g_signal_handlers_destroy (self);
#line 33304 "Photo.c"
}
GType photo_reimport_editable_state_get_type (void) {
static volatile gsize photo_reimport_editable_state_type_id__volatile = 0;
if (g_once_init_enter (&photo_reimport_editable_state_type_id__volatile)) {
static const GTypeValueTable g_define_type_value_table = { photo_value_reimport_editable_state_init, photo_value_reimport_editable_state_free_value, photo_value_reimport_editable_state_copy_value, photo_value_reimport_editable_state_peek_pointer, "p", photo_value_reimport_editable_state_collect_value, "p", photo_value_reimport_editable_state_lcopy_value };
static const GTypeInfo g_define_type_info = { sizeof (PhotoReimportEditableStateClass), (GBaseInitFunc) NULL, (GBaseFinalizeFunc) NULL, (GClassInitFunc) photo_reimport_editable_state_class_init, (GClassFinalizeFunc) NULL, NULL, sizeof (PhotoReimportEditableState), 0, (GInstanceInitFunc) photo_reimport_editable_state_instance_init, &g_define_type_value_table };
static const GTypeFundamentalInfo g_define_type_fundamental_info = { (G_TYPE_FLAG_CLASSED | G_TYPE_FLAG_INSTANTIATABLE | G_TYPE_FLAG_DERIVABLE | G_TYPE_FLAG_DEEP_DERIVABLE) };
GType photo_reimport_editable_state_type_id;
photo_reimport_editable_state_type_id = g_type_register_fundamental (g_type_fundamental_next (), "PhotoReimportEditableState", &g_define_type_info, &g_define_type_fundamental_info, G_TYPE_FLAG_ABSTRACT);
g_once_init_leave (&photo_reimport_editable_state_type_id__volatile, photo_reimport_editable_state_type_id);
}
return photo_reimport_editable_state_type_id__volatile;
}
gpointer photo_reimport_editable_state_ref (gpointer instance) {
PhotoReimportEditableState* self;
self = instance;
#line 1364 "/home/jens/Source/shotwell/src/Photo.vala"
g_atomic_int_inc (&self->ref_count);
#line 1364 "/home/jens/Source/shotwell/src/Photo.vala"
return instance;
#line 33329 "Photo.c"
}
void photo_reimport_editable_state_unref (gpointer instance) {
PhotoReimportEditableState* self;
self = instance;
#line 1364 "/home/jens/Source/shotwell/src/Photo.vala"
if (g_atomic_int_dec_and_test (&self->ref_count)) {
#line 1364 "/home/jens/Source/shotwell/src/Photo.vala"
PHOTO_REIMPORT_EDITABLE_STATE_GET_CLASS (self)->finalize (self);
#line 1364 "/home/jens/Source/shotwell/src/Photo.vala"
g_type_free_instance ((GTypeInstance *) self);
#line 33342 "Photo.c"
}
}
static PhotoReimportEditableStateImpl* photo_reimport_editable_state_impl_construct (GType object_type, BackingPhotoRow* backing_state, PhotoMetadata* metadata) {
PhotoReimportEditableStateImpl* self = NULL;
BackingPhotoRow* _tmp0_ = NULL;
BackingPhotoRow* _tmp1_ = NULL;
PhotoMetadata* _tmp2_ = NULL;
PhotoMetadata* _tmp3_ = NULL;
#line 1372 "/home/jens/Source/shotwell/src/Photo.vala"
g_return_val_if_fail (IS_BACKING_PHOTO_ROW (backing_state), NULL);
#line 1372 "/home/jens/Source/shotwell/src/Photo.vala"
g_return_val_if_fail ((metadata == NULL) || IS_PHOTO_METADATA (metadata), NULL);
#line 1372 "/home/jens/Source/shotwell/src/Photo.vala"
self = (PhotoReimportEditableStateImpl*) photo_reimport_editable_state_construct (object_type);
#line 1373 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp0_ = backing_state;
#line 1373 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp1_ = _backing_photo_row_ref0 (_tmp0_);
#line 1373 "/home/jens/Source/shotwell/src/Photo.vala"
_backing_photo_row_unref0 (self->backing_state);
#line 1373 "/home/jens/Source/shotwell/src/Photo.vala"
self->backing_state = _tmp1_;
#line 1374 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp2_ = metadata;
#line 1374 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp3_ = _media_metadata_ref0 (_tmp2_);
#line 1374 "/home/jens/Source/shotwell/src/Photo.vala"
_media_metadata_unref0 (self->metadata);
#line 1374 "/home/jens/Source/shotwell/src/Photo.vala"
self->metadata = _tmp3_;
#line 1372 "/home/jens/Source/shotwell/src/Photo.vala"
return self;
#line 33377 "Photo.c"
}
static PhotoReimportEditableStateImpl* photo_reimport_editable_state_impl_new (BackingPhotoRow* backing_state, PhotoMetadata* metadata) {
#line 1372 "/home/jens/Source/shotwell/src/Photo.vala"
return photo_reimport_editable_state_impl_construct (PHOTO_TYPE_REIMPORT_EDITABLE_STATE_IMPL, backing_state, metadata);
#line 33384 "Photo.c"
}
static void photo_reimport_editable_state_impl_class_init (PhotoReimportEditableStateImplClass * klass) {
#line 1367 "/home/jens/Source/shotwell/src/Photo.vala"
photo_reimport_editable_state_impl_parent_class = g_type_class_peek_parent (klass);
#line 1367 "/home/jens/Source/shotwell/src/Photo.vala"
((PhotoReimportEditableStateClass *) klass)->finalize = photo_reimport_editable_state_impl_finalize;
#line 33393 "Photo.c"
}
static void photo_reimport_editable_state_impl_instance_init (PhotoReimportEditableStateImpl * self) {
BackingPhotoRow* _tmp0_ = NULL;
#line 1368 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp0_ = backing_photo_row_new ();
#line 1368 "/home/jens/Source/shotwell/src/Photo.vala"
self->backing_state = _tmp0_;
#line 1370 "/home/jens/Source/shotwell/src/Photo.vala"
self->metadata_only = FALSE;
#line 33405 "Photo.c"
}
static void photo_reimport_editable_state_impl_finalize (PhotoReimportEditableState* obj) {
PhotoReimportEditableStateImpl * self;
#line 1367 "/home/jens/Source/shotwell/src/Photo.vala"
self = G_TYPE_CHECK_INSTANCE_CAST (obj, PHOTO_TYPE_REIMPORT_EDITABLE_STATE_IMPL, PhotoReimportEditableStateImpl);
#line 1368 "/home/jens/Source/shotwell/src/Photo.vala"
_backing_photo_row_unref0 (self->backing_state);
#line 1369 "/home/jens/Source/shotwell/src/Photo.vala"
_media_metadata_unref0 (self->metadata);
#line 1367 "/home/jens/Source/shotwell/src/Photo.vala"
PHOTO_REIMPORT_EDITABLE_STATE_CLASS (photo_reimport_editable_state_impl_parent_class)->finalize (obj);
#line 33419 "Photo.c"
}
static GType photo_reimport_editable_state_impl_get_type (void) {
static volatile gsize photo_reimport_editable_state_impl_type_id__volatile = 0;
if (g_once_init_enter (&photo_reimport_editable_state_impl_type_id__volatile)) {
static const GTypeInfo g_define_type_info = { sizeof (PhotoReimportEditableStateImplClass), (GBaseInitFunc) NULL, (GBaseFinalizeFunc) NULL, (GClassInitFunc) photo_reimport_editable_state_impl_class_init, (GClassFinalizeFunc) NULL, NULL, sizeof (PhotoReimportEditableStateImpl), 0, (GInstanceInitFunc) photo_reimport_editable_state_impl_instance_init, NULL };
GType photo_reimport_editable_state_impl_type_id;
photo_reimport_editable_state_impl_type_id = g_type_register_static (PHOTO_TYPE_REIMPORT_EDITABLE_STATE, "PhotoReimportEditableStateImpl", &g_define_type_info, 0);
g_once_init_leave (&photo_reimport_editable_state_impl_type_id__volatile, photo_reimport_editable_state_impl_type_id);
}
return photo_reimport_editable_state_impl_type_id__volatile;
}
PhotoReimportRawDevelopmentState* photo_reimport_raw_development_state_construct (GType object_type) {
PhotoReimportRawDevelopmentState* self = NULL;
#line 1378 "/home/jens/Source/shotwell/src/Photo.vala"
self = (PhotoReimportRawDevelopmentState*) g_type_create_instance (object_type);
#line 1378 "/home/jens/Source/shotwell/src/Photo.vala"
return self;
#line 33441 "Photo.c"
}
static void photo_value_reimport_raw_development_state_init (GValue* value) {
#line 1378 "/home/jens/Source/shotwell/src/Photo.vala"
value->data[0].v_pointer = NULL;
#line 33448 "Photo.c"
}
static void photo_value_reimport_raw_development_state_free_value (GValue* value) {
#line 1378 "/home/jens/Source/shotwell/src/Photo.vala"
if (value->data[0].v_pointer) {
#line 1378 "/home/jens/Source/shotwell/src/Photo.vala"
photo_reimport_raw_development_state_unref (value->data[0].v_pointer);
#line 33457 "Photo.c"
}
}
static void photo_value_reimport_raw_development_state_copy_value (const GValue* src_value, GValue* dest_value) {
#line 1378 "/home/jens/Source/shotwell/src/Photo.vala"
if (src_value->data[0].v_pointer) {
#line 1378 "/home/jens/Source/shotwell/src/Photo.vala"
dest_value->data[0].v_pointer = photo_reimport_raw_development_state_ref (src_value->data[0].v_pointer);
#line 33467 "Photo.c"
} else {
#line 1378 "/home/jens/Source/shotwell/src/Photo.vala"
dest_value->data[0].v_pointer = NULL;
#line 33471 "Photo.c"
}
}
static gpointer photo_value_reimport_raw_development_state_peek_pointer (const GValue* value) {
#line 1378 "/home/jens/Source/shotwell/src/Photo.vala"
return value->data[0].v_pointer;
#line 33479 "Photo.c"
}
static gchar* photo_value_reimport_raw_development_state_collect_value (GValue* value, guint n_collect_values, GTypeCValue* collect_values, guint collect_flags) {
#line 1378 "/home/jens/Source/shotwell/src/Photo.vala"
if (collect_values[0].v_pointer) {
#line 33486 "Photo.c"
PhotoReimportRawDevelopmentState* object;
object = collect_values[0].v_pointer;
#line 1378 "/home/jens/Source/shotwell/src/Photo.vala"
if (object->parent_instance.g_class == NULL) {
#line 1378 "/home/jens/Source/shotwell/src/Photo.vala"
return g_strconcat ("invalid unclassed object pointer for value type `", G_VALUE_TYPE_NAME (value), "'", NULL);
#line 33493 "Photo.c"
} else if (!g_value_type_compatible (G_TYPE_FROM_INSTANCE (object), G_VALUE_TYPE (value))) {
#line 1378 "/home/jens/Source/shotwell/src/Photo.vala"
return g_strconcat ("invalid object type `", g_type_name (G_TYPE_FROM_INSTANCE (object)), "' for value type `", G_VALUE_TYPE_NAME (value), "'", NULL);
#line 33497 "Photo.c"
}
#line 1378 "/home/jens/Source/shotwell/src/Photo.vala"
value->data[0].v_pointer = photo_reimport_raw_development_state_ref (object);
#line 33501 "Photo.c"
} else {
#line 1378 "/home/jens/Source/shotwell/src/Photo.vala"
value->data[0].v_pointer = NULL;
#line 33505 "Photo.c"
}
#line 1378 "/home/jens/Source/shotwell/src/Photo.vala"
return NULL;
#line 33509 "Photo.c"
}
static gchar* photo_value_reimport_raw_development_state_lcopy_value (const GValue* value, guint n_collect_values, GTypeCValue* collect_values, guint collect_flags) {
PhotoReimportRawDevelopmentState** object_p;
object_p = collect_values[0].v_pointer;
#line 1378 "/home/jens/Source/shotwell/src/Photo.vala"
if (!object_p) {
#line 1378 "/home/jens/Source/shotwell/src/Photo.vala"
return g_strdup_printf ("value location for `%s' passed as NULL", G_VALUE_TYPE_NAME (value));
#line 33520 "Photo.c"
}
#line 1378 "/home/jens/Source/shotwell/src/Photo.vala"
if (!value->data[0].v_pointer) {
#line 1378 "/home/jens/Source/shotwell/src/Photo.vala"
*object_p = NULL;
#line 33526 "Photo.c"
} else if (collect_flags & G_VALUE_NOCOPY_CONTENTS) {
#line 1378 "/home/jens/Source/shotwell/src/Photo.vala"
*object_p = value->data[0].v_pointer;
#line 33530 "Photo.c"
} else {
#line 1378 "/home/jens/Source/shotwell/src/Photo.vala"
*object_p = photo_reimport_raw_development_state_ref (value->data[0].v_pointer);
#line 33534 "Photo.c"
}
#line 1378 "/home/jens/Source/shotwell/src/Photo.vala"
return NULL;
#line 33538 "Photo.c"
}
GParamSpec* photo_param_spec_reimport_raw_development_state (const gchar* name, const gchar* nick, const gchar* blurb, GType object_type, GParamFlags flags) {
PhotoParamSpecReimportRawDevelopmentState* spec;
#line 1378 "/home/jens/Source/shotwell/src/Photo.vala"
g_return_val_if_fail (g_type_is_a (object_type, PHOTO_TYPE_REIMPORT_RAW_DEVELOPMENT_STATE), NULL);
#line 1378 "/home/jens/Source/shotwell/src/Photo.vala"
spec = g_param_spec_internal (G_TYPE_PARAM_OBJECT, name, nick, blurb, flags);
#line 1378 "/home/jens/Source/shotwell/src/Photo.vala"
G_PARAM_SPEC (spec)->value_type = object_type;
#line 1378 "/home/jens/Source/shotwell/src/Photo.vala"
return G_PARAM_SPEC (spec);
#line 33552 "Photo.c"
}
gpointer photo_value_get_reimport_raw_development_state (const GValue* value) {
#line 1378 "/home/jens/Source/shotwell/src/Photo.vala"
g_return_val_if_fail (G_TYPE_CHECK_VALUE_TYPE (value, PHOTO_TYPE_REIMPORT_RAW_DEVELOPMENT_STATE), NULL);
#line 1378 "/home/jens/Source/shotwell/src/Photo.vala"
return value->data[0].v_pointer;
#line 33561 "Photo.c"
}
void photo_value_set_reimport_raw_development_state (GValue* value, gpointer v_object) {
PhotoReimportRawDevelopmentState* old;
#line 1378 "/home/jens/Source/shotwell/src/Photo.vala"
g_return_if_fail (G_TYPE_CHECK_VALUE_TYPE (value, PHOTO_TYPE_REIMPORT_RAW_DEVELOPMENT_STATE));
#line 1378 "/home/jens/Source/shotwell/src/Photo.vala"
old = value->data[0].v_pointer;
#line 1378 "/home/jens/Source/shotwell/src/Photo.vala"
if (v_object) {
#line 1378 "/home/jens/Source/shotwell/src/Photo.vala"
g_return_if_fail (G_TYPE_CHECK_INSTANCE_TYPE (v_object, PHOTO_TYPE_REIMPORT_RAW_DEVELOPMENT_STATE));
#line 1378 "/home/jens/Source/shotwell/src/Photo.vala"
g_return_if_fail (g_value_type_compatible (G_TYPE_FROM_INSTANCE (v_object), G_VALUE_TYPE (value)));
#line 1378 "/home/jens/Source/shotwell/src/Photo.vala"
value->data[0].v_pointer = v_object;
#line 1378 "/home/jens/Source/shotwell/src/Photo.vala"
photo_reimport_raw_development_state_ref (value->data[0].v_pointer);
#line 33581 "Photo.c"
} else {
#line 1378 "/home/jens/Source/shotwell/src/Photo.vala"
value->data[0].v_pointer = NULL;
#line 33585 "Photo.c"
}
#line 1378 "/home/jens/Source/shotwell/src/Photo.vala"
if (old) {
#line 1378 "/home/jens/Source/shotwell/src/Photo.vala"
photo_reimport_raw_development_state_unref (old);
#line 33591 "Photo.c"
}
}
void photo_value_take_reimport_raw_development_state (GValue* value, gpointer v_object) {
PhotoReimportRawDevelopmentState* old;
#line 1378 "/home/jens/Source/shotwell/src/Photo.vala"
g_return_if_fail (G_TYPE_CHECK_VALUE_TYPE (value, PHOTO_TYPE_REIMPORT_RAW_DEVELOPMENT_STATE));
#line 1378 "/home/jens/Source/shotwell/src/Photo.vala"
old = value->data[0].v_pointer;
#line 1378 "/home/jens/Source/shotwell/src/Photo.vala"
if (v_object) {
#line 1378 "/home/jens/Source/shotwell/src/Photo.vala"
g_return_if_fail (G_TYPE_CHECK_INSTANCE_TYPE (v_object, PHOTO_TYPE_REIMPORT_RAW_DEVELOPMENT_STATE));
#line 1378 "/home/jens/Source/shotwell/src/Photo.vala"
g_return_if_fail (g_value_type_compatible (G_TYPE_FROM_INSTANCE (v_object), G_VALUE_TYPE (value)));
#line 1378 "/home/jens/Source/shotwell/src/Photo.vala"
value->data[0].v_pointer = v_object;
#line 33610 "Photo.c"
} else {
#line 1378 "/home/jens/Source/shotwell/src/Photo.vala"
value->data[0].v_pointer = NULL;
#line 33614 "Photo.c"
}
#line 1378 "/home/jens/Source/shotwell/src/Photo.vala"
if (old) {
#line 1378 "/home/jens/Source/shotwell/src/Photo.vala"
photo_reimport_raw_development_state_unref (old);
#line 33620 "Photo.c"
}
}
static void photo_reimport_raw_development_state_class_init (PhotoReimportRawDevelopmentStateClass * klass) {
#line 1378 "/home/jens/Source/shotwell/src/Photo.vala"
photo_reimport_raw_development_state_parent_class = g_type_class_peek_parent (klass);
#line 1378 "/home/jens/Source/shotwell/src/Photo.vala"
((PhotoReimportRawDevelopmentStateClass *) klass)->finalize = photo_reimport_raw_development_state_finalize;
#line 33630 "Photo.c"
}
static void photo_reimport_raw_development_state_instance_init (PhotoReimportRawDevelopmentState * self) {
#line 1378 "/home/jens/Source/shotwell/src/Photo.vala"
self->ref_count = 1;
#line 33637 "Photo.c"
}
static void photo_reimport_raw_development_state_finalize (PhotoReimportRawDevelopmentState* obj) {
PhotoReimportRawDevelopmentState * self;
#line 1378 "/home/jens/Source/shotwell/src/Photo.vala"
self = G_TYPE_CHECK_INSTANCE_CAST (obj, PHOTO_TYPE_REIMPORT_RAW_DEVELOPMENT_STATE, PhotoReimportRawDevelopmentState);
#line 1378 "/home/jens/Source/shotwell/src/Photo.vala"
g_signal_handlers_destroy (self);
#line 33647 "Photo.c"
}
GType photo_reimport_raw_development_state_get_type (void) {
static volatile gsize photo_reimport_raw_development_state_type_id__volatile = 0;
if (g_once_init_enter (&photo_reimport_raw_development_state_type_id__volatile)) {
static const GTypeValueTable g_define_type_value_table = { photo_value_reimport_raw_development_state_init, photo_value_reimport_raw_development_state_free_value, photo_value_reimport_raw_development_state_copy_value, photo_value_reimport_raw_development_state_peek_pointer, "p", photo_value_reimport_raw_development_state_collect_value, "p", photo_value_reimport_raw_development_state_lcopy_value };
static const GTypeInfo g_define_type_info = { sizeof (PhotoReimportRawDevelopmentStateClass), (GBaseInitFunc) NULL, (GBaseFinalizeFunc) NULL, (GClassInitFunc) photo_reimport_raw_development_state_class_init, (GClassFinalizeFunc) NULL, NULL, sizeof (PhotoReimportRawDevelopmentState), 0, (GInstanceInitFunc) photo_reimport_raw_development_state_instance_init, &g_define_type_value_table };
static const GTypeFundamentalInfo g_define_type_fundamental_info = { (G_TYPE_FLAG_CLASSED | G_TYPE_FLAG_INSTANTIATABLE | G_TYPE_FLAG_DERIVABLE | G_TYPE_FLAG_DEEP_DERIVABLE) };
GType photo_reimport_raw_development_state_type_id;
photo_reimport_raw_development_state_type_id = g_type_register_fundamental (g_type_fundamental_next (), "PhotoReimportRawDevelopmentState", &g_define_type_info, &g_define_type_fundamental_info, G_TYPE_FLAG_ABSTRACT);
g_once_init_leave (&photo_reimport_raw_development_state_type_id__volatile, photo_reimport_raw_development_state_type_id);
}
return photo_reimport_raw_development_state_type_id__volatile;
}
gpointer photo_reimport_raw_development_state_ref (gpointer instance) {
PhotoReimportRawDevelopmentState* self;
self = instance;
#line 1378 "/home/jens/Source/shotwell/src/Photo.vala"
g_atomic_int_inc (&self->ref_count);
#line 1378 "/home/jens/Source/shotwell/src/Photo.vala"
return instance;
#line 33672 "Photo.c"
}
void photo_reimport_raw_development_state_unref (gpointer instance) {
PhotoReimportRawDevelopmentState* self;
self = instance;
#line 1378 "/home/jens/Source/shotwell/src/Photo.vala"
if (g_atomic_int_dec_and_test (&self->ref_count)) {
#line 1378 "/home/jens/Source/shotwell/src/Photo.vala"
PHOTO_REIMPORT_RAW_DEVELOPMENT_STATE_GET_CLASS (self)->finalize (self);
#line 1378 "/home/jens/Source/shotwell/src/Photo.vala"
g_type_free_instance ((GTypeInstance *) self);
#line 33685 "Photo.c"
}
}
static PhotoReimportRawDevelopmentStateImpl* photo_reimport_raw_development_state_impl_construct (GType object_type) {
PhotoReimportRawDevelopmentStateImpl* self = NULL;
#line 1395 "/home/jens/Source/shotwell/src/Photo.vala"
self = (PhotoReimportRawDevelopmentStateImpl*) photo_reimport_raw_development_state_construct (object_type);
#line 1395 "/home/jens/Source/shotwell/src/Photo.vala"
return self;
#line 33696 "Photo.c"
}
static PhotoReimportRawDevelopmentStateImpl* photo_reimport_raw_development_state_impl_new (void) {
#line 1395 "/home/jens/Source/shotwell/src/Photo.vala"
return photo_reimport_raw_development_state_impl_construct (PHOTO_TYPE_REIMPORT_RAW_DEVELOPMENT_STATE_IMPL);
#line 33703 "Photo.c"
}
static void photo_reimport_raw_development_state_impl_add (PhotoReimportRawDevelopmentStateImpl* self, BackingPhotoRow* backing, PhotoMetadata* metadata) {
GeeCollection* _tmp0_ = NULL;
BackingPhotoRow* _tmp1_ = NULL;
PhotoMetadata* _tmp2_ = NULL;
PhotoReimportRawDevelopmentStateImplDevToReimport* _tmp3_ = NULL;
PhotoReimportRawDevelopmentStateImplDevToReimport* _tmp4_ = NULL;
#line 1398 "/home/jens/Source/shotwell/src/Photo.vala"
g_return_if_fail (PHOTO_IS_REIMPORT_RAW_DEVELOPMENT_STATE_IMPL (self));
#line 1398 "/home/jens/Source/shotwell/src/Photo.vala"
g_return_if_fail (IS_BACKING_PHOTO_ROW (backing));
#line 1398 "/home/jens/Source/shotwell/src/Photo.vala"
g_return_if_fail ((metadata == NULL) || IS_PHOTO_METADATA (metadata));
#line 1399 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp0_ = self->list;
#line 1399 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp1_ = backing;
#line 1399 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp2_ = metadata;
#line 1399 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp3_ = photo_reimport_raw_development_state_impl_dev_to_reimport_new (_tmp1_, _tmp2_);
#line 1399 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp4_ = _tmp3_;
#line 1399 "/home/jens/Source/shotwell/src/Photo.vala"
gee_collection_add (_tmp0_, _tmp4_);
#line 1399 "/home/jens/Source/shotwell/src/Photo.vala"
_photo_reimport_raw_development_state_impl_dev_to_reimport_unref0 (_tmp4_);
#line 33733 "Photo.c"
}
static gint photo_reimport_raw_development_state_impl_get_size (PhotoReimportRawDevelopmentStateImpl* self) {
gint result = 0;
GeeCollection* _tmp0_ = NULL;
gint _tmp1_ = 0;
gint _tmp2_ = 0;
#line 1402 "/home/jens/Source/shotwell/src/Photo.vala"
g_return_val_if_fail (PHOTO_IS_REIMPORT_RAW_DEVELOPMENT_STATE_IMPL (self), 0);
#line 1403 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp0_ = self->list;
#line 1403 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp1_ = gee_collection_get_size (_tmp0_);
#line 1403 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp2_ = _tmp1_;
#line 1403 "/home/jens/Source/shotwell/src/Photo.vala"
result = _tmp2_;
#line 1403 "/home/jens/Source/shotwell/src/Photo.vala"
return result;
#line 33754 "Photo.c"
}
static PhotoReimportRawDevelopmentStateImplDevToReimport* photo_reimport_raw_development_state_impl_dev_to_reimport_construct (GType object_type, BackingPhotoRow* backing, PhotoMetadata* metadata) {
PhotoReimportRawDevelopmentStateImplDevToReimport* self = NULL;
BackingPhotoRow* _tmp0_ = NULL;
BackingPhotoRow* _tmp1_ = NULL;
PhotoMetadata* _tmp2_ = NULL;
PhotoMetadata* _tmp3_ = NULL;
#line 1386 "/home/jens/Source/shotwell/src/Photo.vala"
g_return_val_if_fail (IS_BACKING_PHOTO_ROW (backing), NULL);
#line 1386 "/home/jens/Source/shotwell/src/Photo.vala"
g_return_val_if_fail ((metadata == NULL) || IS_PHOTO_METADATA (metadata), NULL);
#line 1386 "/home/jens/Source/shotwell/src/Photo.vala"
self = (PhotoReimportRawDevelopmentStateImplDevToReimport*) g_type_create_instance (object_type);
#line 1387 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp0_ = backing;
#line 1387 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp1_ = _backing_photo_row_ref0 (_tmp0_);
#line 1387 "/home/jens/Source/shotwell/src/Photo.vala"
_backing_photo_row_unref0 (self->backing);
#line 1387 "/home/jens/Source/shotwell/src/Photo.vala"
self->backing = _tmp1_;
#line 1388 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp2_ = metadata;
#line 1388 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp3_ = _media_metadata_ref0 (_tmp2_);
#line 1388 "/home/jens/Source/shotwell/src/Photo.vala"
_media_metadata_unref0 (self->metadata);
#line 1388 "/home/jens/Source/shotwell/src/Photo.vala"
self->metadata = _tmp3_;
#line 1386 "/home/jens/Source/shotwell/src/Photo.vala"
return self;
#line 33788 "Photo.c"
}
static PhotoReimportRawDevelopmentStateImplDevToReimport* photo_reimport_raw_development_state_impl_dev_to_reimport_new (BackingPhotoRow* backing, PhotoMetadata* metadata) {
#line 1386 "/home/jens/Source/shotwell/src/Photo.vala"
return photo_reimport_raw_development_state_impl_dev_to_reimport_construct (PHOTO_REIMPORT_RAW_DEVELOPMENT_STATE_IMPL_TYPE_DEV_TO_REIMPORT, backing, metadata);
#line 33795 "Photo.c"
}
static void photo_reimport_raw_development_state_impl_value_dev_to_reimport_init (GValue* value) {
#line 1382 "/home/jens/Source/shotwell/src/Photo.vala"
value->data[0].v_pointer = NULL;
#line 33802 "Photo.c"
}
static void photo_reimport_raw_development_state_impl_value_dev_to_reimport_free_value (GValue* value) {
#line 1382 "/home/jens/Source/shotwell/src/Photo.vala"
if (value->data[0].v_pointer) {
#line 1382 "/home/jens/Source/shotwell/src/Photo.vala"
photo_reimport_raw_development_state_impl_dev_to_reimport_unref (value->data[0].v_pointer);
#line 33811 "Photo.c"
}
}
static void photo_reimport_raw_development_state_impl_value_dev_to_reimport_copy_value (const GValue* src_value, GValue* dest_value) {
#line 1382 "/home/jens/Source/shotwell/src/Photo.vala"
if (src_value->data[0].v_pointer) {
#line 1382 "/home/jens/Source/shotwell/src/Photo.vala"
dest_value->data[0].v_pointer = photo_reimport_raw_development_state_impl_dev_to_reimport_ref (src_value->data[0].v_pointer);
#line 33821 "Photo.c"
} else {
#line 1382 "/home/jens/Source/shotwell/src/Photo.vala"
dest_value->data[0].v_pointer = NULL;
#line 33825 "Photo.c"
}
}
static gpointer photo_reimport_raw_development_state_impl_value_dev_to_reimport_peek_pointer (const GValue* value) {
#line 1382 "/home/jens/Source/shotwell/src/Photo.vala"
return value->data[0].v_pointer;
#line 33833 "Photo.c"
}
static gchar* photo_reimport_raw_development_state_impl_value_dev_to_reimport_collect_value (GValue* value, guint n_collect_values, GTypeCValue* collect_values, guint collect_flags) {
#line 1382 "/home/jens/Source/shotwell/src/Photo.vala"
if (collect_values[0].v_pointer) {
#line 33840 "Photo.c"
PhotoReimportRawDevelopmentStateImplDevToReimport* object;
object = collect_values[0].v_pointer;
#line 1382 "/home/jens/Source/shotwell/src/Photo.vala"
if (object->parent_instance.g_class == NULL) {
#line 1382 "/home/jens/Source/shotwell/src/Photo.vala"
return g_strconcat ("invalid unclassed object pointer for value type `", G_VALUE_TYPE_NAME (value), "'", NULL);
#line 33847 "Photo.c"
} else if (!g_value_type_compatible (G_TYPE_FROM_INSTANCE (object), G_VALUE_TYPE (value))) {
#line 1382 "/home/jens/Source/shotwell/src/Photo.vala"
return g_strconcat ("invalid object type `", g_type_name (G_TYPE_FROM_INSTANCE (object)), "' for value type `", G_VALUE_TYPE_NAME (value), "'", NULL);
#line 33851 "Photo.c"
}
#line 1382 "/home/jens/Source/shotwell/src/Photo.vala"
value->data[0].v_pointer = photo_reimport_raw_development_state_impl_dev_to_reimport_ref (object);
#line 33855 "Photo.c"
} else {
#line 1382 "/home/jens/Source/shotwell/src/Photo.vala"
value->data[0].v_pointer = NULL;
#line 33859 "Photo.c"
}
#line 1382 "/home/jens/Source/shotwell/src/Photo.vala"
return NULL;
#line 33863 "Photo.c"
}
static gchar* photo_reimport_raw_development_state_impl_value_dev_to_reimport_lcopy_value (const GValue* value, guint n_collect_values, GTypeCValue* collect_values, guint collect_flags) {
PhotoReimportRawDevelopmentStateImplDevToReimport** object_p;
object_p = collect_values[0].v_pointer;
#line 1382 "/home/jens/Source/shotwell/src/Photo.vala"
if (!object_p) {
#line 1382 "/home/jens/Source/shotwell/src/Photo.vala"
return g_strdup_printf ("value location for `%s' passed as NULL", G_VALUE_TYPE_NAME (value));
#line 33874 "Photo.c"
}
#line 1382 "/home/jens/Source/shotwell/src/Photo.vala"
if (!value->data[0].v_pointer) {
#line 1382 "/home/jens/Source/shotwell/src/Photo.vala"
*object_p = NULL;
#line 33880 "Photo.c"
} else if (collect_flags & G_VALUE_NOCOPY_CONTENTS) {
#line 1382 "/home/jens/Source/shotwell/src/Photo.vala"
*object_p = value->data[0].v_pointer;
#line 33884 "Photo.c"
} else {
#line 1382 "/home/jens/Source/shotwell/src/Photo.vala"
*object_p = photo_reimport_raw_development_state_impl_dev_to_reimport_ref (value->data[0].v_pointer);
#line 33888 "Photo.c"
}
#line 1382 "/home/jens/Source/shotwell/src/Photo.vala"
return NULL;
#line 33892 "Photo.c"
}
static GParamSpec* photo_reimport_raw_development_state_impl_param_spec_dev_to_reimport (const gchar* name, const gchar* nick, const gchar* blurb, GType object_type, GParamFlags flags) {
PhotoReimportRawDevelopmentStateImplParamSpecDevToReimport* spec;
#line 1382 "/home/jens/Source/shotwell/src/Photo.vala"
g_return_val_if_fail (g_type_is_a (object_type, PHOTO_REIMPORT_RAW_DEVELOPMENT_STATE_IMPL_TYPE_DEV_TO_REIMPORT), NULL);
#line 1382 "/home/jens/Source/shotwell/src/Photo.vala"
spec = g_param_spec_internal (G_TYPE_PARAM_OBJECT, name, nick, blurb, flags);
#line 1382 "/home/jens/Source/shotwell/src/Photo.vala"
G_PARAM_SPEC (spec)->value_type = object_type;
#line 1382 "/home/jens/Source/shotwell/src/Photo.vala"
return G_PARAM_SPEC (spec);
#line 33906 "Photo.c"
}
static gpointer photo_reimport_raw_development_state_impl_value_get_dev_to_reimport (const GValue* value) {
#line 1382 "/home/jens/Source/shotwell/src/Photo.vala"
g_return_val_if_fail (G_TYPE_CHECK_VALUE_TYPE (value, PHOTO_REIMPORT_RAW_DEVELOPMENT_STATE_IMPL_TYPE_DEV_TO_REIMPORT), NULL);
#line 1382 "/home/jens/Source/shotwell/src/Photo.vala"
return value->data[0].v_pointer;
#line 33915 "Photo.c"
}
static void photo_reimport_raw_development_state_impl_value_set_dev_to_reimport (GValue* value, gpointer v_object) {
PhotoReimportRawDevelopmentStateImplDevToReimport* old;
#line 1382 "/home/jens/Source/shotwell/src/Photo.vala"
g_return_if_fail (G_TYPE_CHECK_VALUE_TYPE (value, PHOTO_REIMPORT_RAW_DEVELOPMENT_STATE_IMPL_TYPE_DEV_TO_REIMPORT));
#line 1382 "/home/jens/Source/shotwell/src/Photo.vala"
old = value->data[0].v_pointer;
#line 1382 "/home/jens/Source/shotwell/src/Photo.vala"
if (v_object) {
#line 1382 "/home/jens/Source/shotwell/src/Photo.vala"
g_return_if_fail (G_TYPE_CHECK_INSTANCE_TYPE (v_object, PHOTO_REIMPORT_RAW_DEVELOPMENT_STATE_IMPL_TYPE_DEV_TO_REIMPORT));
#line 1382 "/home/jens/Source/shotwell/src/Photo.vala"
g_return_if_fail (g_value_type_compatible (G_TYPE_FROM_INSTANCE (v_object), G_VALUE_TYPE (value)));
#line 1382 "/home/jens/Source/shotwell/src/Photo.vala"
value->data[0].v_pointer = v_object;
#line 1382 "/home/jens/Source/shotwell/src/Photo.vala"
photo_reimport_raw_development_state_impl_dev_to_reimport_ref (value->data[0].v_pointer);
#line 33935 "Photo.c"
} else {
#line 1382 "/home/jens/Source/shotwell/src/Photo.vala"
value->data[0].v_pointer = NULL;
#line 33939 "Photo.c"
}
#line 1382 "/home/jens/Source/shotwell/src/Photo.vala"
if (old) {
#line 1382 "/home/jens/Source/shotwell/src/Photo.vala"
photo_reimport_raw_development_state_impl_dev_to_reimport_unref (old);
#line 33945 "Photo.c"
}
}
static void photo_reimport_raw_development_state_impl_value_take_dev_to_reimport (GValue* value, gpointer v_object) {
PhotoReimportRawDevelopmentStateImplDevToReimport* old;
#line 1382 "/home/jens/Source/shotwell/src/Photo.vala"
g_return_if_fail (G_TYPE_CHECK_VALUE_TYPE (value, PHOTO_REIMPORT_RAW_DEVELOPMENT_STATE_IMPL_TYPE_DEV_TO_REIMPORT));
#line 1382 "/home/jens/Source/shotwell/src/Photo.vala"
old = value->data[0].v_pointer;
#line 1382 "/home/jens/Source/shotwell/src/Photo.vala"
if (v_object) {
#line 1382 "/home/jens/Source/shotwell/src/Photo.vala"
g_return_if_fail (G_TYPE_CHECK_INSTANCE_TYPE (v_object, PHOTO_REIMPORT_RAW_DEVELOPMENT_STATE_IMPL_TYPE_DEV_TO_REIMPORT));
#line 1382 "/home/jens/Source/shotwell/src/Photo.vala"
g_return_if_fail (g_value_type_compatible (G_TYPE_FROM_INSTANCE (v_object), G_VALUE_TYPE (value)));
#line 1382 "/home/jens/Source/shotwell/src/Photo.vala"
value->data[0].v_pointer = v_object;
#line 33964 "Photo.c"
} else {
#line 1382 "/home/jens/Source/shotwell/src/Photo.vala"
value->data[0].v_pointer = NULL;
#line 33968 "Photo.c"
}
#line 1382 "/home/jens/Source/shotwell/src/Photo.vala"
if (old) {
#line 1382 "/home/jens/Source/shotwell/src/Photo.vala"
photo_reimport_raw_development_state_impl_dev_to_reimport_unref (old);
#line 33974 "Photo.c"
}
}
static void photo_reimport_raw_development_state_impl_dev_to_reimport_class_init (PhotoReimportRawDevelopmentStateImplDevToReimportClass * klass) {
#line 1382 "/home/jens/Source/shotwell/src/Photo.vala"
photo_reimport_raw_development_state_impl_dev_to_reimport_parent_class = g_type_class_peek_parent (klass);
#line 1382 "/home/jens/Source/shotwell/src/Photo.vala"
((PhotoReimportRawDevelopmentStateImplDevToReimportClass *) klass)->finalize = photo_reimport_raw_development_state_impl_dev_to_reimport_finalize;
#line 33984 "Photo.c"
}
static void photo_reimport_raw_development_state_impl_dev_to_reimport_instance_init (PhotoReimportRawDevelopmentStateImplDevToReimport * self) {
BackingPhotoRow* _tmp0_ = NULL;
#line 1383 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp0_ = backing_photo_row_new ();
#line 1383 "/home/jens/Source/shotwell/src/Photo.vala"
self->backing = _tmp0_;
#line 1382 "/home/jens/Source/shotwell/src/Photo.vala"
self->ref_count = 1;
#line 33996 "Photo.c"
}
static void photo_reimport_raw_development_state_impl_dev_to_reimport_finalize (PhotoReimportRawDevelopmentStateImplDevToReimport* obj) {
PhotoReimportRawDevelopmentStateImplDevToReimport * self;
#line 1382 "/home/jens/Source/shotwell/src/Photo.vala"
self = G_TYPE_CHECK_INSTANCE_CAST (obj, PHOTO_REIMPORT_RAW_DEVELOPMENT_STATE_IMPL_TYPE_DEV_TO_REIMPORT, PhotoReimportRawDevelopmentStateImplDevToReimport);
#line 1382 "/home/jens/Source/shotwell/src/Photo.vala"
g_signal_handlers_destroy (self);
#line 1383 "/home/jens/Source/shotwell/src/Photo.vala"
_backing_photo_row_unref0 (self->backing);
#line 1384 "/home/jens/Source/shotwell/src/Photo.vala"
_media_metadata_unref0 (self->metadata);
#line 34010 "Photo.c"
}
GType photo_reimport_raw_development_state_impl_dev_to_reimport_get_type (void) {
static volatile gsize photo_reimport_raw_development_state_impl_dev_to_reimport_type_id__volatile = 0;
if (g_once_init_enter (&photo_reimport_raw_development_state_impl_dev_to_reimport_type_id__volatile)) {
static const GTypeValueTable g_define_type_value_table = { photo_reimport_raw_development_state_impl_value_dev_to_reimport_init, photo_reimport_raw_development_state_impl_value_dev_to_reimport_free_value, photo_reimport_raw_development_state_impl_value_dev_to_reimport_copy_value, photo_reimport_raw_development_state_impl_value_dev_to_reimport_peek_pointer, "p", photo_reimport_raw_development_state_impl_value_dev_to_reimport_collect_value, "p", photo_reimport_raw_development_state_impl_value_dev_to_reimport_lcopy_value };
static const GTypeInfo g_define_type_info = { sizeof (PhotoReimportRawDevelopmentStateImplDevToReimportClass), (GBaseInitFunc) NULL, (GBaseFinalizeFunc) NULL, (GClassInitFunc) photo_reimport_raw_development_state_impl_dev_to_reimport_class_init, (GClassFinalizeFunc) NULL, NULL, sizeof (PhotoReimportRawDevelopmentStateImplDevToReimport), 0, (GInstanceInitFunc) photo_reimport_raw_development_state_impl_dev_to_reimport_instance_init, &g_define_type_value_table };
static const GTypeFundamentalInfo g_define_type_fundamental_info = { (G_TYPE_FLAG_CLASSED | G_TYPE_FLAG_INSTANTIATABLE | G_TYPE_FLAG_DERIVABLE | G_TYPE_FLAG_DEEP_DERIVABLE) };
GType photo_reimport_raw_development_state_impl_dev_to_reimport_type_id;
photo_reimport_raw_development_state_impl_dev_to_reimport_type_id = g_type_register_fundamental (g_type_fundamental_next (), "PhotoReimportRawDevelopmentStateImplDevToReimport", &g_define_type_info, &g_define_type_fundamental_info, 0);
g_once_init_leave (&photo_reimport_raw_development_state_impl_dev_to_reimport_type_id__volatile, photo_reimport_raw_development_state_impl_dev_to_reimport_type_id);
}
return photo_reimport_raw_development_state_impl_dev_to_reimport_type_id__volatile;
}
static gpointer photo_reimport_raw_development_state_impl_dev_to_reimport_ref (gpointer instance) {
PhotoReimportRawDevelopmentStateImplDevToReimport* self;
self = instance;
#line 1382 "/home/jens/Source/shotwell/src/Photo.vala"
g_atomic_int_inc (&self->ref_count);
#line 1382 "/home/jens/Source/shotwell/src/Photo.vala"
return instance;
#line 34035 "Photo.c"
}
static void photo_reimport_raw_development_state_impl_dev_to_reimport_unref (gpointer instance) {
PhotoReimportRawDevelopmentStateImplDevToReimport* self;
self = instance;
#line 1382 "/home/jens/Source/shotwell/src/Photo.vala"
if (g_atomic_int_dec_and_test (&self->ref_count)) {
#line 1382 "/home/jens/Source/shotwell/src/Photo.vala"
PHOTO_REIMPORT_RAW_DEVELOPMENT_STATE_IMPL_DEV_TO_REIMPORT_GET_CLASS (self)->finalize (self);
#line 1382 "/home/jens/Source/shotwell/src/Photo.vala"
g_type_free_instance ((GTypeInstance *) self);
#line 34048 "Photo.c"
}
}
static void photo_reimport_raw_development_state_impl_class_init (PhotoReimportRawDevelopmentStateImplClass * klass) {
#line 1381 "/home/jens/Source/shotwell/src/Photo.vala"
photo_reimport_raw_development_state_impl_parent_class = g_type_class_peek_parent (klass);
#line 1381 "/home/jens/Source/shotwell/src/Photo.vala"
((PhotoReimportRawDevelopmentStateClass *) klass)->finalize = photo_reimport_raw_development_state_impl_finalize;
#line 34058 "Photo.c"
}
static void photo_reimport_raw_development_state_impl_instance_init (PhotoReimportRawDevelopmentStateImpl * self) {
GeeArrayList* _tmp0_ = NULL;
#line 1392 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp0_ = gee_array_list_new (PHOTO_REIMPORT_RAW_DEVELOPMENT_STATE_IMPL_TYPE_DEV_TO_REIMPORT, (GBoxedCopyFunc) photo_reimport_raw_development_state_impl_dev_to_reimport_ref, photo_reimport_raw_development_state_impl_dev_to_reimport_unref, NULL, NULL, NULL);
#line 1392 "/home/jens/Source/shotwell/src/Photo.vala"
self->list = G_TYPE_CHECK_INSTANCE_CAST (_tmp0_, GEE_TYPE_COLLECTION, GeeCollection);
#line 1393 "/home/jens/Source/shotwell/src/Photo.vala"
self->metadata_only = FALSE;
#line 34070 "Photo.c"
}
static void photo_reimport_raw_development_state_impl_finalize (PhotoReimportRawDevelopmentState* obj) {
PhotoReimportRawDevelopmentStateImpl * self;
#line 1381 "/home/jens/Source/shotwell/src/Photo.vala"
self = G_TYPE_CHECK_INSTANCE_CAST (obj, PHOTO_TYPE_REIMPORT_RAW_DEVELOPMENT_STATE_IMPL, PhotoReimportRawDevelopmentStateImpl);
#line 1392 "/home/jens/Source/shotwell/src/Photo.vala"
_g_object_unref0 (self->list);
#line 1381 "/home/jens/Source/shotwell/src/Photo.vala"
PHOTO_REIMPORT_RAW_DEVELOPMENT_STATE_CLASS (photo_reimport_raw_development_state_impl_parent_class)->finalize (obj);
#line 34082 "Photo.c"
}
static GType photo_reimport_raw_development_state_impl_get_type (void) {
static volatile gsize photo_reimport_raw_development_state_impl_type_id__volatile = 0;
if (g_once_init_enter (&photo_reimport_raw_development_state_impl_type_id__volatile)) {
static const GTypeInfo g_define_type_info = { sizeof (PhotoReimportRawDevelopmentStateImplClass), (GBaseInitFunc) NULL, (GBaseFinalizeFunc) NULL, (GClassInitFunc) photo_reimport_raw_development_state_impl_class_init, (GClassFinalizeFunc) NULL, NULL, sizeof (PhotoReimportRawDevelopmentStateImpl), 0, (GInstanceInitFunc) photo_reimport_raw_development_state_impl_instance_init, NULL };
GType photo_reimport_raw_development_state_impl_type_id;
photo_reimport_raw_development_state_impl_type_id = g_type_register_static (PHOTO_TYPE_REIMPORT_RAW_DEVELOPMENT_STATE, "PhotoReimportRawDevelopmentStateImpl", &g_define_type_info, 0);
g_once_init_leave (&photo_reimport_raw_development_state_impl_type_id__volatile, photo_reimport_raw_development_state_impl_type_id);
}
return photo_reimport_raw_development_state_impl_type_id__volatile;
}
static void photo_class_init (PhotoClass * klass) {
#line 161 "/home/jens/Source/shotwell/src/Photo.vala"
photo_parent_class = g_type_class_peek_parent (klass);
#line 161 "/home/jens/Source/shotwell/src/Photo.vala"
g_type_class_add_private (klass, sizeof (PhotoPrivate));
#line 161 "/home/jens/Source/shotwell/src/Photo.vala"
((PhotoClass *) klass)->notify_editable_replaced = photo_real_notify_editable_replaced;
#line 161 "/home/jens/Source/shotwell/src/Photo.vala"
((PhotoClass *) klass)->notify_raw_development_modified = photo_real_notify_raw_development_modified;
#line 161 "/home/jens/Source/shotwell/src/Photo.vala"
((PhotoClass *) klass)->notify_baseline_replaced = photo_real_notify_baseline_replaced;
#line 161 "/home/jens/Source/shotwell/src/Photo.vala"
((PhotoClass *) klass)->notify_master_reimported = photo_real_notify_master_reimported;
#line 161 "/home/jens/Source/shotwell/src/Photo.vala"
((PhotoClass *) klass)->notify_editable_reimported = photo_real_notify_editable_reimported;
#line 161 "/home/jens/Source/shotwell/src/Photo.vala"
((PhotoClass *) klass)->notify_source_reimported = photo_real_notify_source_reimported;
#line 161 "/home/jens/Source/shotwell/src/Photo.vala"
((PhotoClass *) klass)->notify_baseline_reimported = photo_real_notify_baseline_reimported;
#line 161 "/home/jens/Source/shotwell/src/Photo.vala"
((DataSourceClass *) klass)->internal_delete_backing = photo_real_internal_delete_backing;
#line 161 "/home/jens/Source/shotwell/src/Photo.vala"
((MediaSourceClass *) klass)->get_backing_files_state = photo_real_get_backing_files_state;
#line 161 "/home/jens/Source/shotwell/src/Photo.vala"
((PhotoClass *) klass)->apply_user_metadata_for_reimport = photo_real_apply_user_metadata_for_reimport;
#line 161 "/home/jens/Source/shotwell/src/Photo.vala"
((DataSourceClass *) klass)->get_typename = photo_real_get_typename;
#line 161 "/home/jens/Source/shotwell/src/Photo.vala"
((DataSourceClass *) klass)->get_instance_id = photo_real_get_instance_id;
#line 161 "/home/jens/Source/shotwell/src/Photo.vala"
((DataSourceClass *) klass)->get_source_id = photo_real_get_source_id;
#line 161 "/home/jens/Source/shotwell/src/Photo.vala"
((ThumbnailSourceClass *) klass)->get_preferred_thumbnail_format = photo_real_get_preferred_thumbnail_format;
#line 161 "/home/jens/Source/shotwell/src/Photo.vala"
((ThumbnailSourceClass *) klass)->create_thumbnail = photo_real_create_thumbnail;
#line 161 "/home/jens/Source/shotwell/src/Photo.vala"
((MediaSourceClass *) klass)->get_file = photo_real_get_file;
#line 161 "/home/jens/Source/shotwell/src/Photo.vala"
((MediaSourceClass *) klass)->get_master_file = photo_real_get_master_file;
#line 161 "/home/jens/Source/shotwell/src/Photo.vala"
((MediaSourceClass *) klass)->get_timestamp = photo_real_get_timestamp;
#line 161 "/home/jens/Source/shotwell/src/Photo.vala"
((MediaSourceClass *) klass)->get_event_id = photo_real_get_event_id;
#line 161 "/home/jens/Source/shotwell/src/Photo.vala"
((MediaSourceClass *) klass)->get_import_id = photo_real_get_import_id;
#line 161 "/home/jens/Source/shotwell/src/Photo.vala"
((MediaSourceClass *) klass)->get_master_md5 = photo_real_get_master_md5;
#line 161 "/home/jens/Source/shotwell/src/Photo.vala"
((MediaSourceClass *) klass)->get_rating = photo_real_get_rating;
#line 161 "/home/jens/Source/shotwell/src/Photo.vala"
((MediaSourceClass *) klass)->set_rating = photo_real_set_rating;
#line 161 "/home/jens/Source/shotwell/src/Photo.vala"
((MediaSourceClass *) klass)->increase_rating = photo_real_increase_rating;
#line 161 "/home/jens/Source/shotwell/src/Photo.vala"
((MediaSourceClass *) klass)->decrease_rating = photo_real_decrease_rating;
#line 161 "/home/jens/Source/shotwell/src/Photo.vala"
((DataSourceClass *) klass)->commit_backlinks = photo_real_commit_backlinks;
#line 161 "/home/jens/Source/shotwell/src/Photo.vala"
((MediaSourceClass *) klass)->set_event_id = photo_real_set_event_id;
#line 161 "/home/jens/Source/shotwell/src/Photo.vala"
((DataObjectClass *) klass)->to_string = photo_real_to_string;
#line 161 "/home/jens/Source/shotwell/src/Photo.vala"
((DataSourceClass *) klass)->equals = photo_real_equals;
#line 161 "/home/jens/Source/shotwell/src/Photo.vala"
((MediaSourceClass *) klass)->get_filesize = photo_real_get_filesize;
#line 161 "/home/jens/Source/shotwell/src/Photo.vala"
((MediaSourceClass *) klass)->get_master_filesize = photo_real_get_master_filesize;
#line 161 "/home/jens/Source/shotwell/src/Photo.vala"
((MediaSourceClass *) klass)->get_exposure_time = photo_real_get_exposure_time;
#line 161 "/home/jens/Source/shotwell/src/Photo.vala"
((MediaSourceClass *) klass)->get_basename = photo_real_get_basename;
#line 161 "/home/jens/Source/shotwell/src/Photo.vala"
((MediaSourceClass *) klass)->get_title = photo_real_get_title;
#line 161 "/home/jens/Source/shotwell/src/Photo.vala"
((MediaSourceClass *) klass)->get_comment = photo_real_get_comment;
#line 161 "/home/jens/Source/shotwell/src/Photo.vala"
((MediaSourceClass *) klass)->set_title = photo_real_set_title;
#line 161 "/home/jens/Source/shotwell/src/Photo.vala"
((MediaSourceClass *) klass)->set_comment = photo_real_set_comment;
#line 161 "/home/jens/Source/shotwell/src/Photo.vala"
((MediaSourceClass *) klass)->get_dimensions = photo_real_get_dimensions;
#line 161 "/home/jens/Source/shotwell/src/Photo.vala"
((PhotoSourceClass *) klass)->get_metadata = photo_real_get_metadata;
#line 161 "/home/jens/Source/shotwell/src/Photo.vala"
((PhotoClass *) klass)->rotate = photo_real_rotate;
#line 161 "/home/jens/Source/shotwell/src/Photo.vala"
((PhotoSourceClass *) klass)->get_pixbuf = photo_real_get_pixbuf;
#line 161 "/home/jens/Source/shotwell/src/Photo.vala"
((PhotoClass *) klass)->has_user_generated_metadata = photo_real_has_user_generated_metadata;
#line 161 "/home/jens/Source/shotwell/src/Photo.vala"
((PhotoClass *) klass)->set_user_metadata_for_export = photo_real_set_user_metadata_for_export;
#line 161 "/home/jens/Source/shotwell/src/Photo.vala"
((PhotoClass *) klass)->editable_replaced = photo_real_editable_replaced;
#line 161 "/home/jens/Source/shotwell/src/Photo.vala"
((PhotoClass *) klass)->raw_development_modified = photo_real_raw_development_modified;
#line 161 "/home/jens/Source/shotwell/src/Photo.vala"
((PhotoClass *) klass)->baseline_replaced = photo_real_baseline_replaced;
#line 161 "/home/jens/Source/shotwell/src/Photo.vala"
((PhotoClass *) klass)->master_reimported = photo_real_master_reimported;
#line 161 "/home/jens/Source/shotwell/src/Photo.vala"
((PhotoClass *) klass)->editable_reimported = photo_real_editable_reimported;
#line 161 "/home/jens/Source/shotwell/src/Photo.vala"
((PhotoClass *) klass)->baseline_reimported = photo_real_baseline_reimported;
#line 161 "/home/jens/Source/shotwell/src/Photo.vala"
((PhotoClass *) klass)->source_reimported = photo_real_source_reimported;
#line 161 "/home/jens/Source/shotwell/src/Photo.vala"
G_OBJECT_CLASS (klass)->get_property = _vala_photo_get_property;
#line 161 "/home/jens/Source/shotwell/src/Photo.vala"
G_OBJECT_CLASS (klass)->set_property = _vala_photo_set_property;
#line 161 "/home/jens/Source/shotwell/src/Photo.vala"
G_OBJECT_CLASS (klass)->finalize = photo_finalize;
#line 161 "/home/jens/Source/shotwell/src/Photo.vala"
g_signal_new ("editable_replaced", TYPE_PHOTO, G_SIGNAL_RUN_LAST, G_STRUCT_OFFSET (PhotoClass, editable_replaced), NULL, NULL, g_cclosure_user_marshal_VOID__OBJECT_OBJECT, G_TYPE_NONE, 2, g_file_get_type (), g_file_get_type ());
#line 161 "/home/jens/Source/shotwell/src/Photo.vala"
g_signal_new ("raw_development_modified", TYPE_PHOTO, G_SIGNAL_RUN_LAST, G_STRUCT_OFFSET (PhotoClass, raw_development_modified), NULL, NULL, g_cclosure_marshal_VOID__VOID, G_TYPE_NONE, 0);
#line 161 "/home/jens/Source/shotwell/src/Photo.vala"
g_signal_new ("baseline_replaced", TYPE_PHOTO, G_SIGNAL_RUN_LAST, G_STRUCT_OFFSET (PhotoClass, baseline_replaced), NULL, NULL, g_cclosure_marshal_VOID__VOID, G_TYPE_NONE, 0);
#line 161 "/home/jens/Source/shotwell/src/Photo.vala"
g_signal_new ("master_reimported", TYPE_PHOTO, G_SIGNAL_RUN_LAST, G_STRUCT_OFFSET (PhotoClass, master_reimported), NULL, NULL, g_cclosure_user_marshal_VOID__MEDIA_METADATA, G_TYPE_NONE, 1, TYPE_PHOTO_METADATA);
#line 161 "/home/jens/Source/shotwell/src/Photo.vala"
g_signal_new ("editable_reimported", TYPE_PHOTO, G_SIGNAL_RUN_LAST, G_STRUCT_OFFSET (PhotoClass, editable_reimported), NULL, NULL, g_cclosure_user_marshal_VOID__MEDIA_METADATA, G_TYPE_NONE, 1, TYPE_PHOTO_METADATA);
#line 161 "/home/jens/Source/shotwell/src/Photo.vala"
g_signal_new ("baseline_reimported", TYPE_PHOTO, G_SIGNAL_RUN_LAST, G_STRUCT_OFFSET (PhotoClass, baseline_reimported), NULL, NULL, g_cclosure_user_marshal_VOID__MEDIA_METADATA, G_TYPE_NONE, 1, TYPE_PHOTO_METADATA);
#line 161 "/home/jens/Source/shotwell/src/Photo.vala"
g_signal_new ("source_reimported", TYPE_PHOTO, G_SIGNAL_RUN_LAST, G_STRUCT_OFFSET (PhotoClass, source_reimported), NULL, NULL, g_cclosure_user_marshal_VOID__MEDIA_METADATA, G_TYPE_NONE, 1, TYPE_PHOTO_METADATA);
#line 326 "/home/jens/Source/shotwell/src/Photo.vala"
g_rec_mutex_init (&__lock_photo_source_pixbuf_cache);
#line 34225 "Photo.c"
}
static void photo_dateable_interface_init (DateableIface * iface) {
#line 161 "/home/jens/Source/shotwell/src/Photo.vala"
photo_dateable_parent_iface = g_type_interface_peek_parent (iface);
#line 161 "/home/jens/Source/shotwell/src/Photo.vala"
iface->get_exposure_time = (time_t (*)(Dateable*)) photo_real_get_exposure_time;
#line 161 "/home/jens/Source/shotwell/src/Photo.vala"
iface->set_exposure_time = (void (*)(Dateable*, time_t)) photo_real_set_exposure_time;
#line 34236 "Photo.c"
}
static void photo_instance_init (Photo * self) {
BackingPhotoRow* _tmp0_ = NULL;
PhotoBackingReaders* _tmp1_ = NULL;
#line 161 "/home/jens/Source/shotwell/src/Photo.vala"
self->priv = PHOTO_GET_PRIVATE (self);
#line 331 "/home/jens/Source/shotwell/src/Photo.vala"
g_rec_mutex_init (&self->priv->__lock_row);
#line 332 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp0_ = backing_photo_row_new ();
#line 332 "/home/jens/Source/shotwell/src/Photo.vala"
self->priv->editable = _tmp0_;
#line 333 "/home/jens/Source/shotwell/src/Photo.vala"
g_rec_mutex_init (&self->priv->__lock_readers);
#line 333 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp1_ = photo_backing_readers_new ();
#line 333 "/home/jens/Source/shotwell/src/Photo.vala"
self->priv->readers = _tmp1_;
#line 334 "/home/jens/Source/shotwell/src/Photo.vala"
self->priv->transformer = NULL;
#line 335 "/home/jens/Source/shotwell/src/Photo.vala"
self->priv->adjustments = NULL;
#line 337 "/home/jens/Source/shotwell/src/Photo.vala"
self->priv->file_title = NULL;
#line 338 "/home/jens/Source/shotwell/src/Photo.vala"
self->priv->editable_monitor = NULL;
#line 339 "/home/jens/Source/shotwell/src/Photo.vala"
self->priv->reimport_editable_scheduler = NULL;
#line 340 "/home/jens/Source/shotwell/src/Photo.vala"
self->priv->update_editable_attributes_scheduler = NULL;
#line 341 "/home/jens/Source/shotwell/src/Photo.vala"
self->priv->remove_editable_scheduler = NULL;
#line 343 "/home/jens/Source/shotwell/src/Photo.vala"
self->can_rotate_now = TRUE;
#line 346 "/home/jens/Source/shotwell/src/Photo.vala"
g_rec_mutex_init (&self->priv->__lock_developments);
#line 346 "/home/jens/Source/shotwell/src/Photo.vala"
self->priv->developments = NULL;
#line 353 "/home/jens/Source/shotwell/src/Photo.vala"
self->backing_photo_row = NULL;
#line 34279 "Photo.c"
}
static void photo_finalize (GObject* obj) {
Photo * self;
#line 161 "/home/jens/Source/shotwell/src/Photo.vala"
self = G_TYPE_CHECK_INSTANCE_CAST (obj, TYPE_PHOTO, Photo);
#line 331 "/home/jens/Source/shotwell/src/Photo.vala"
g_rec_mutex_clear (&self->priv->__lock_row);
#line 331 "/home/jens/Source/shotwell/src/Photo.vala"
_photo_row_unref0 (self->row);
#line 332 "/home/jens/Source/shotwell/src/Photo.vala"
_backing_photo_row_unref0 (self->priv->editable);
#line 333 "/home/jens/Source/shotwell/src/Photo.vala"
g_rec_mutex_clear (&self->priv->__lock_readers);
#line 333 "/home/jens/Source/shotwell/src/Photo.vala"
_photo_backing_readers_unref0 (self->priv->readers);
#line 334 "/home/jens/Source/shotwell/src/Photo.vala"
_pixel_transformer_unref0 (self->priv->transformer);
#line 335 "/home/jens/Source/shotwell/src/Photo.vala"
_pixel_transformation_bundle_unref0 (self->priv->adjustments);
#line 337 "/home/jens/Source/shotwell/src/Photo.vala"
_g_free0 (self->priv->file_title);
#line 338 "/home/jens/Source/shotwell/src/Photo.vala"
_g_object_unref0 (self->priv->editable_monitor);
#line 339 "/home/jens/Source/shotwell/src/Photo.vala"
_one_shot_scheduler_unref0 (self->priv->reimport_editable_scheduler);
#line 340 "/home/jens/Source/shotwell/src/Photo.vala"
_one_shot_scheduler_unref0 (self->priv->update_editable_attributes_scheduler);
#line 341 "/home/jens/Source/shotwell/src/Photo.vala"
_one_shot_scheduler_unref0 (self->priv->remove_editable_scheduler);
#line 346 "/home/jens/Source/shotwell/src/Photo.vala"
g_rec_mutex_clear (&self->priv->__lock_developments);
#line 346 "/home/jens/Source/shotwell/src/Photo.vala"
_g_object_unref0 (self->priv->developments);
#line 353 "/home/jens/Source/shotwell/src/Photo.vala"
_backing_photo_row_unref0 (self->backing_photo_row);
#line 161 "/home/jens/Source/shotwell/src/Photo.vala"
G_OBJECT_CLASS (photo_parent_class)->finalize (obj);
#line 34319 "Photo.c"
}
GType photo_get_type (void) {
static volatile gsize photo_type_id__volatile = 0;
if (g_once_init_enter (&photo_type_id__volatile)) {
static const GTypeInfo g_define_type_info = { sizeof (PhotoClass), (GBaseInitFunc) NULL, (GBaseFinalizeFunc) NULL, (GClassInitFunc) photo_class_init, (GClassFinalizeFunc) NULL, NULL, sizeof (Photo), 0, (GInstanceInitFunc) photo_instance_init, NULL };
static const GInterfaceInfo dateable_info = { (GInterfaceInitFunc) photo_dateable_interface_init, (GInterfaceFinalizeFunc) NULL, NULL};
GType photo_type_id;
photo_type_id = g_type_register_static (TYPE_PHOTO_SOURCE, "Photo", &g_define_type_info, G_TYPE_FLAG_ABSTRACT);
g_type_add_interface_static (photo_type_id, TYPE_DATEABLE, &dateable_info);
g_once_init_leave (&photo_type_id__volatile, photo_type_id);
}
return photo_type_id__volatile;
}
static void _vala_photo_get_property (GObject * object, guint property_id, GValue * value, GParamSpec * pspec) {
Photo * self;
self = G_TYPE_CHECK_INSTANCE_CAST (object, TYPE_PHOTO, Photo);
#line 161 "/home/jens/Source/shotwell/src/Photo.vala"
switch (property_id) {
#line 34342 "Photo.c"
default:
#line 161 "/home/jens/Source/shotwell/src/Photo.vala"
G_OBJECT_WARN_INVALID_PROPERTY_ID (object, property_id, pspec);
#line 161 "/home/jens/Source/shotwell/src/Photo.vala"
break;
#line 34348 "Photo.c"
}
}
static void _vala_photo_set_property (GObject * object, guint property_id, const GValue * value, GParamSpec * pspec) {
Photo * self;
self = G_TYPE_CHECK_INSTANCE_CAST (object, TYPE_PHOTO, Photo);
#line 161 "/home/jens/Source/shotwell/src/Photo.vala"
switch (property_id) {
#line 34358 "Photo.c"
default:
#line 161 "/home/jens/Source/shotwell/src/Photo.vala"
G_OBJECT_WARN_INVALID_PROPERTY_ID (object, property_id, pspec);
#line 161 "/home/jens/Source/shotwell/src/Photo.vala"
break;
#line 34364 "Photo.c"
}
}
GType library_photo_source_collection_state_get_type (void) {
static volatile gsize library_photo_source_collection_state_type_id__volatile = 0;
if (g_once_init_enter (&library_photo_source_collection_state_type_id__volatile)) {
static const GEnumValue values[] = {{LIBRARY_PHOTO_SOURCE_COLLECTION_STATE_UNKNOWN, "LIBRARY_PHOTO_SOURCE_COLLECTION_STATE_UNKNOWN", "unknown"}, {LIBRARY_PHOTO_SOURCE_COLLECTION_STATE_ONLINE, "LIBRARY_PHOTO_SOURCE_COLLECTION_STATE_ONLINE", "online"}, {LIBRARY_PHOTO_SOURCE_COLLECTION_STATE_OFFLINE, "LIBRARY_PHOTO_SOURCE_COLLECTION_STATE_OFFLINE", "offline"}, {LIBRARY_PHOTO_SOURCE_COLLECTION_STATE_TRASH, "LIBRARY_PHOTO_SOURCE_COLLECTION_STATE_TRASH", "trash"}, {LIBRARY_PHOTO_SOURCE_COLLECTION_STATE_EDITABLE, "LIBRARY_PHOTO_SOURCE_COLLECTION_STATE_EDITABLE", "editable"}, {LIBRARY_PHOTO_SOURCE_COLLECTION_STATE_DEVELOPER, "LIBRARY_PHOTO_SOURCE_COLLECTION_STATE_DEVELOPER", "developer"}, {0, NULL, NULL}};
GType library_photo_source_collection_state_type_id;
library_photo_source_collection_state_type_id = g_enum_register_static ("LibraryPhotoSourceCollectionState", values);
g_once_init_leave (&library_photo_source_collection_state_type_id__volatile, library_photo_source_collection_state_type_id);
}
return library_photo_source_collection_state_type_id__volatile;
}
static guint _file_hash_gee_hash_data_func (gconstpointer v, gpointer self) {
guint result;
result = file_hash ((GFile*) v);
#line 4462 "/home/jens/Source/shotwell/src/Photo.vala"
return result;
#line 34386 "Photo.c"
}
static gboolean _file_equal_gee_equal_data_func (gconstpointer a, gconstpointer b, gpointer self) {
gboolean result;
result = file_equal ((GFile*) a, (GFile*) b);
#line 4462 "/home/jens/Source/shotwell/src/Photo.vala"
return result;
#line 34395 "Photo.c"
}
static gint _int64_compare_gcompare_data_func (gconstpointer a, gconstpointer b, gpointer self) {
gint result;
result = int64_compare ((gint64*) a, (gint64*) b);
#line 4466 "/home/jens/Source/shotwell/src/Photo.vala"
return result;
#line 34404 "Photo.c"
}
static gint64* _int64_dup (gint64* self) {
gint64* dup;
#line 4466 "/home/jens/Source/shotwell/src/Photo.vala"
dup = g_new0 (gint64, 1);
#line 4466 "/home/jens/Source/shotwell/src/Photo.vala"
memcpy (dup, self, sizeof (gint64));
#line 4466 "/home/jens/Source/shotwell/src/Photo.vala"
return dup;
#line 34416 "Photo.c"
}
static gboolean _int64_equal_gee_equal_data_func (gconstpointer a, gconstpointer b, gpointer self) {
gboolean result;
result = int64_equal ((gint64*) a, (gint64*) b);
#line 4468 "/home/jens/Source/shotwell/src/Photo.vala"
return result;
#line 34425 "Photo.c"
}
static gint64 _photo_get_photo_key_get_source_database_key (DataSource* source, gpointer self) {
gint64 result;
result = photo_get_photo_key (source);
#line 4488 "/home/jens/Source/shotwell/src/Photo.vala"
return result;
#line 34434 "Photo.c"
}
static void _library_photo_source_collection_on_trashcan_contents_altered_source_holding_tank_contents_altered (SourceHoldingTank* _sender, GeeCollection* added, GeeCollection* removed, gpointer self) {
#line 4490 "/home/jens/Source/shotwell/src/Photo.vala"
library_photo_source_collection_on_trashcan_contents_altered ((LibraryPhotoSourceCollection*) self, added, removed);
#line 34441 "Photo.c"
}
static void _library_photo_source_collection_on_offline_contents_altered_source_holding_tank_contents_altered (SourceHoldingTank* _sender, GeeCollection* added, GeeCollection* removed, gpointer self) {
#line 4491 "/home/jens/Source/shotwell/src/Photo.vala"
library_photo_source_collection_on_offline_contents_altered ((LibraryPhotoSourceCollection*) self, added, removed);
#line 34448 "Photo.c"
}
LibraryPhotoSourceCollection* library_photo_source_collection_construct (GType object_type) {
LibraryPhotoSourceCollection* self = NULL;
MediaSourceHoldingTank* _tmp0_ = NULL;
MediaSourceHoldingTank* _tmp1_ = NULL;
MediaSourceHoldingTank* _tmp2_ = NULL;
MediaSourceHoldingTank* _tmp3_ = NULL;
#line 4488 "/home/jens/Source/shotwell/src/Photo.vala"
self = (LibraryPhotoSourceCollection*) media_source_collection_construct (object_type, "LibraryPhotoSourceCollection", _photo_get_photo_key_get_source_database_key, NULL);
#line 4490 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp0_ = media_source_collection_get_trashcan (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_MEDIA_SOURCE_COLLECTION, MediaSourceCollection));
#line 4490 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp1_ = _tmp0_;
#line 4490 "/home/jens/Source/shotwell/src/Photo.vala"
g_signal_connect (G_TYPE_CHECK_INSTANCE_CAST (_tmp1_, TYPE_SOURCE_HOLDING_TANK, SourceHoldingTank), "contents-altered", (GCallback) _library_photo_source_collection_on_trashcan_contents_altered_source_holding_tank_contents_altered, self);
#line 4490 "/home/jens/Source/shotwell/src/Photo.vala"
_source_holding_tank_unref0 (_tmp1_);
#line 4491 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp2_ = media_source_collection_get_offline_bin (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_MEDIA_SOURCE_COLLECTION, MediaSourceCollection));
#line 4491 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp3_ = _tmp2_;
#line 4491 "/home/jens/Source/shotwell/src/Photo.vala"
g_signal_connect (G_TYPE_CHECK_INSTANCE_CAST (_tmp3_, TYPE_SOURCE_HOLDING_TANK, SourceHoldingTank), "contents-altered", (GCallback) _library_photo_source_collection_on_offline_contents_altered_source_holding_tank_contents_altered, self);
#line 4491 "/home/jens/Source/shotwell/src/Photo.vala"
_source_holding_tank_unref0 (_tmp3_);
#line 4487 "/home/jens/Source/shotwell/src/Photo.vala"
return self;
#line 34478 "Photo.c"
}
LibraryPhotoSourceCollection* library_photo_source_collection_new (void) {
#line 4487 "/home/jens/Source/shotwell/src/Photo.vala"
return library_photo_source_collection_construct (TYPE_LIBRARY_PHOTO_SOURCE_COLLECTION);
#line 34485 "Photo.c"
}
static gboolean _library_photo_source_collection_check_if_trashed_photo_source_holding_tank_check_to_keep (DataSource* source, Alteration* alteration, gpointer self) {
gboolean result;
result = library_photo_source_collection_check_if_trashed_photo ((LibraryPhotoSourceCollection*) self, source, alteration);
#line 4495 "/home/jens/Source/shotwell/src/Photo.vala"
return result;
#line 34494 "Photo.c"
}
static MediaSourceHoldingTank* library_photo_source_collection_real_create_trashcan (MediaSourceCollection* base) {
LibraryPhotoSourceCollection * self;
MediaSourceHoldingTank* result = NULL;
LibraryPhotoSourceHoldingTank* _tmp0_ = NULL;
#line 4494 "/home/jens/Source/shotwell/src/Photo.vala"
self = G_TYPE_CHECK_INSTANCE_CAST (base, TYPE_LIBRARY_PHOTO_SOURCE_COLLECTION, LibraryPhotoSourceCollection);
#line 4495 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp0_ = library_photo_source_holding_tank_new (self, _library_photo_source_collection_check_if_trashed_photo_source_holding_tank_check_to_keep, self, _photo_get_photo_key_get_source_database_key, NULL);
#line 4495 "/home/jens/Source/shotwell/src/Photo.vala"
result = G_TYPE_CHECK_INSTANCE_CAST (_tmp0_, TYPE_MEDIA_SOURCE_HOLDING_TANK, MediaSourceHoldingTank);
#line 4495 "/home/jens/Source/shotwell/src/Photo.vala"
return result;
#line 34510 "Photo.c"
}
static gboolean _library_photo_source_collection_check_if_offline_photo_source_holding_tank_check_to_keep (DataSource* source, Alteration* alteration, gpointer self) {
gboolean result;
result = library_photo_source_collection_check_if_offline_photo ((LibraryPhotoSourceCollection*) self, source, alteration);
#line 4499 "/home/jens/Source/shotwell/src/Photo.vala"
return result;
#line 34519 "Photo.c"
}
static MediaSourceHoldingTank* library_photo_source_collection_real_create_offline_bin (MediaSourceCollection* base) {
LibraryPhotoSourceCollection * self;
MediaSourceHoldingTank* result = NULL;
LibraryPhotoSourceHoldingTank* _tmp0_ = NULL;
#line 4498 "/home/jens/Source/shotwell/src/Photo.vala"
self = G_TYPE_CHECK_INSTANCE_CAST (base, TYPE_LIBRARY_PHOTO_SOURCE_COLLECTION, LibraryPhotoSourceCollection);
#line 4499 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp0_ = library_photo_source_holding_tank_new (self, _library_photo_source_collection_check_if_offline_photo_source_holding_tank_check_to_keep, self, _photo_get_photo_key_get_source_database_key, NULL);
#line 4499 "/home/jens/Source/shotwell/src/Photo.vala"
result = G_TYPE_CHECK_INSTANCE_CAST (_tmp0_, TYPE_MEDIA_SOURCE_HOLDING_TANK, MediaSourceHoldingTank);
#line 4499 "/home/jens/Source/shotwell/src/Photo.vala"
return result;
#line 34535 "Photo.c"
}
static MediaMonitor* library_photo_source_collection_real_create_media_monitor (MediaSourceCollection* base, Workers* workers, GCancellable* cancellable) {
LibraryPhotoSourceCollection * self;
MediaMonitor* result = NULL;
Workers* _tmp0_ = NULL;
GCancellable* _tmp1_ = NULL;
PhotoMonitor* _tmp2_ = NULL;
#line 4502 "/home/jens/Source/shotwell/src/Photo.vala"
self = G_TYPE_CHECK_INSTANCE_CAST (base, TYPE_LIBRARY_PHOTO_SOURCE_COLLECTION, LibraryPhotoSourceCollection);
#line 4502 "/home/jens/Source/shotwell/src/Photo.vala"
g_return_val_if_fail (IS_WORKERS (workers), NULL);
#line 4502 "/home/jens/Source/shotwell/src/Photo.vala"
g_return_val_if_fail (G_IS_CANCELLABLE (cancellable), NULL);
#line 4503 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp0_ = workers;
#line 4503 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp1_ = cancellable;
#line 4503 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp2_ = photo_monitor_new (_tmp0_, _tmp1_);
#line 4503 "/home/jens/Source/shotwell/src/Photo.vala"
result = G_TYPE_CHECK_INSTANCE_CAST (_tmp2_, TYPE_MEDIA_MONITOR, MediaMonitor);
#line 4503 "/home/jens/Source/shotwell/src/Photo.vala"
return result;
#line 34561 "Photo.c"
}
static gboolean library_photo_source_collection_real_holds_type_of_source (SourceCollection* base, DataSource* source) {
LibraryPhotoSourceCollection * self;
gboolean result = FALSE;
DataSource* _tmp0_ = NULL;
#line 4506 "/home/jens/Source/shotwell/src/Photo.vala"
self = G_TYPE_CHECK_INSTANCE_CAST (base, TYPE_LIBRARY_PHOTO_SOURCE_COLLECTION, LibraryPhotoSourceCollection);
#line 4506 "/home/jens/Source/shotwell/src/Photo.vala"
g_return_val_if_fail (IS_DATA_SOURCE (source), FALSE);
#line 4507 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp0_ = source;
#line 4507 "/home/jens/Source/shotwell/src/Photo.vala"
result = G_TYPE_CHECK_INSTANCE_TYPE (_tmp0_, TYPE_LIBRARY_PHOTO);
#line 4507 "/home/jens/Source/shotwell/src/Photo.vala"
return result;
#line 34579 "Photo.c"
}
static gchar* library_photo_source_collection_real_get_typename (MediaSourceCollection* base) {
LibraryPhotoSourceCollection * self;
gchar* result = NULL;
gchar* _tmp0_ = NULL;
#line 4510 "/home/jens/Source/shotwell/src/Photo.vala"
self = G_TYPE_CHECK_INSTANCE_CAST (base, TYPE_LIBRARY_PHOTO_SOURCE_COLLECTION, LibraryPhotoSourceCollection);
#line 4511 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp0_ = g_strdup (PHOTO_TYPENAME);
#line 4511 "/home/jens/Source/shotwell/src/Photo.vala"
result = _tmp0_;
#line 4511 "/home/jens/Source/shotwell/src/Photo.vala"
return result;
#line 34595 "Photo.c"
}
static gboolean library_photo_source_collection_real_is_file_recognized (MediaSourceCollection* base, GFile* file) {
LibraryPhotoSourceCollection * self;
gboolean result = FALSE;
GFile* _tmp0_ = NULL;
gboolean _tmp1_ = FALSE;
#line 4514 "/home/jens/Source/shotwell/src/Photo.vala"
self = G_TYPE_CHECK_INSTANCE_CAST (base, TYPE_LIBRARY_PHOTO_SOURCE_COLLECTION, LibraryPhotoSourceCollection);
#line 4514 "/home/jens/Source/shotwell/src/Photo.vala"
g_return_val_if_fail (G_IS_FILE (file), FALSE);
#line 4515 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp0_ = file;
#line 4515 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp1_ = photo_file_format_is_file_supported (_tmp0_);
#line 4515 "/home/jens/Source/shotwell/src/Photo.vala"
result = _tmp1_;
#line 4515 "/home/jens/Source/shotwell/src/Photo.vala"
return result;
#line 34616 "Photo.c"
}
static void _library_photo_source_collection_on_editable_replaced_photo_editable_replaced (Photo* _sender, GFile* old_file, GFile* new_file, gpointer self) {
#line 4527 "/home/jens/Source/shotwell/src/Photo.vala"
library_photo_source_collection_on_editable_replaced ((LibraryPhotoSourceCollection*) self, _sender, old_file, new_file);
#line 34623 "Photo.c"
}
static void _library_photo_source_collection_on_raw_development_modified_photo_raw_development_modified (Photo* _sender, gpointer self) {
#line 4533 "/home/jens/Source/shotwell/src/Photo.vala"
library_photo_source_collection_on_raw_development_modified ((LibraryPhotoSourceCollection*) self, _sender);
#line 34630 "Photo.c"
}
static void library_photo_source_collection_real_notify_contents_altered (DataCollection* base, GeeIterable* added, GeeIterable* removed) {
LibraryPhotoSourceCollection * self;
GeeIterable* _tmp0_ = NULL;
GeeIterable* _tmp75_ = NULL;
GeeIterable* _tmp153_ = NULL;
GeeIterable* _tmp154_ = NULL;
#line 4518 "/home/jens/Source/shotwell/src/Photo.vala"
self = G_TYPE_CHECK_INSTANCE_CAST (base, TYPE_LIBRARY_PHOTO_SOURCE_COLLECTION, LibraryPhotoSourceCollection);
#line 4518 "/home/jens/Source/shotwell/src/Photo.vala"
g_return_if_fail ((added == NULL) || GEE_IS_ITERABLE (added));
#line 4518 "/home/jens/Source/shotwell/src/Photo.vala"
g_return_if_fail ((removed == NULL) || GEE_IS_ITERABLE (removed));
#line 4520 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp0_ = added;
#line 4520 "/home/jens/Source/shotwell/src/Photo.vala"
if (_tmp0_ != NULL) {
#line 34650 "Photo.c"
{
GeeIterator* _object_it = NULL;
GeeIterable* _tmp1_ = NULL;
GeeIterator* _tmp2_ = NULL;
#line 4521 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp1_ = added;
#line 4521 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp2_ = gee_iterable_iterator (_tmp1_);
#line 4521 "/home/jens/Source/shotwell/src/Photo.vala"
_object_it = _tmp2_;
#line 4521 "/home/jens/Source/shotwell/src/Photo.vala"
while (TRUE) {
#line 34663 "Photo.c"
GeeIterator* _tmp3_ = NULL;
gboolean _tmp4_ = FALSE;
DataObject* object = NULL;
GeeIterator* _tmp5_ = NULL;
gpointer _tmp6_ = NULL;
LibraryPhoto* photo = NULL;
DataObject* _tmp7_ = NULL;
LibraryPhoto* _tmp8_ = NULL;
GFile* editable = NULL;
LibraryPhoto* _tmp9_ = NULL;
GFile* _tmp10_ = NULL;
GFile* _tmp11_ = NULL;
LibraryPhoto* _tmp15_ = NULL;
GeeCollection* raw_list = NULL;
LibraryPhoto* _tmp16_ = NULL;
GeeCollection* _tmp17_ = NULL;
GeeCollection* _tmp18_ = NULL;
LibraryPhoto* _tmp28_ = NULL;
gint64 master_filesize = 0LL;
LibraryPhoto* _tmp29_ = NULL;
BackingPhotoRow* _tmp30_ = NULL;
BackingPhotoRow* _tmp31_ = NULL;
gint64 _tmp32_ = 0LL;
gint64 _tmp33_ = 0LL;
gint64 _tmp34_ = 0LL;
LibraryPhoto* _tmp35_ = NULL;
BackingPhotoRow* _tmp36_ = NULL;
BackingPhotoRow* _tmp37_ = NULL;
gboolean _tmp38_ = FALSE;
gint64 editable_filesize = 0LL;
GeeMultiMap* _tmp43_ = NULL;
gint64 _tmp44_ = 0LL;
LibraryPhoto* _tmp45_ = NULL;
GeeHashMap* _tmp46_ = NULL;
LibraryPhoto* _tmp47_ = NULL;
gint64 _tmp48_ = 0LL;
gint64 _tmp49_ = 0LL;
GeeCollection* raw_rows = NULL;
LibraryPhoto* _tmp56_ = NULL;
GeeCollection* _tmp57_ = NULL;
GeeCollection* _tmp58_ = NULL;
#line 4521 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp3_ = _object_it;
#line 4521 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp4_ = gee_iterator_next (_tmp3_);
#line 4521 "/home/jens/Source/shotwell/src/Photo.vala"
if (!_tmp4_) {
#line 4521 "/home/jens/Source/shotwell/src/Photo.vala"
break;
#line 34713 "Photo.c"
}
#line 4521 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp5_ = _object_it;
#line 4521 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp6_ = gee_iterator_get (_tmp5_);
#line 4521 "/home/jens/Source/shotwell/src/Photo.vala"
object = (DataObject*) _tmp6_;
#line 4522 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp7_ = object;
#line 4522 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp8_ = _g_object_ref0 (G_TYPE_CHECK_INSTANCE_CAST (_tmp7_, TYPE_LIBRARY_PHOTO, LibraryPhoto));
#line 4522 "/home/jens/Source/shotwell/src/Photo.vala"
photo = _tmp8_;
#line 4524 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp9_ = photo;
#line 4524 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp10_ = photo_get_editable_file (G_TYPE_CHECK_INSTANCE_CAST (_tmp9_, TYPE_PHOTO, Photo));
#line 4524 "/home/jens/Source/shotwell/src/Photo.vala"
editable = _tmp10_;
#line 4525 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp11_ = editable;
#line 4525 "/home/jens/Source/shotwell/src/Photo.vala"
if (_tmp11_ != NULL) {
#line 34737 "Photo.c"
GeeHashMap* _tmp12_ = NULL;
GFile* _tmp13_ = NULL;
LibraryPhoto* _tmp14_ = NULL;
#line 4526 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp12_ = self->priv->by_editable_file;
#line 4526 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp13_ = editable;
#line 4526 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp14_ = photo;
#line 4526 "/home/jens/Source/shotwell/src/Photo.vala"
gee_abstract_map_set (G_TYPE_CHECK_INSTANCE_CAST (_tmp12_, GEE_TYPE_ABSTRACT_MAP, GeeAbstractMap), _tmp13_, _tmp14_);
#line 34749 "Photo.c"
}
#line 4527 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp15_ = photo;
#line 4527 "/home/jens/Source/shotwell/src/Photo.vala"
g_signal_connect (G_TYPE_CHECK_INSTANCE_CAST (_tmp15_, TYPE_PHOTO, Photo), "editable-replaced", (GCallback) _library_photo_source_collection_on_editable_replaced_photo_editable_replaced, self);
#line 4529 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp16_ = photo;
#line 4529 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp17_ = photo_get_raw_developer_files (G_TYPE_CHECK_INSTANCE_CAST (_tmp16_, TYPE_PHOTO, Photo));
#line 4529 "/home/jens/Source/shotwell/src/Photo.vala"
raw_list = _tmp17_;
#line 4530 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp18_ = raw_list;
#line 4530 "/home/jens/Source/shotwell/src/Photo.vala"
if (_tmp18_ != NULL) {
#line 34765 "Photo.c"
{
GeeIterator* _f_it = NULL;
GeeCollection* _tmp19_ = NULL;
GeeIterator* _tmp20_ = NULL;
#line 4531 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp19_ = raw_list;
#line 4531 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp20_ = gee_iterable_iterator (G_TYPE_CHECK_INSTANCE_CAST (_tmp19_, GEE_TYPE_ITERABLE, GeeIterable));
#line 4531 "/home/jens/Source/shotwell/src/Photo.vala"
_f_it = _tmp20_;
#line 4531 "/home/jens/Source/shotwell/src/Photo.vala"
while (TRUE) {
#line 34778 "Photo.c"
GeeIterator* _tmp21_ = NULL;
gboolean _tmp22_ = FALSE;
GFile* f = NULL;
GeeIterator* _tmp23_ = NULL;
gpointer _tmp24_ = NULL;
GeeHashMap* _tmp25_ = NULL;
GFile* _tmp26_ = NULL;
LibraryPhoto* _tmp27_ = NULL;
#line 4531 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp21_ = _f_it;
#line 4531 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp22_ = gee_iterator_next (_tmp21_);
#line 4531 "/home/jens/Source/shotwell/src/Photo.vala"
if (!_tmp22_) {
#line 4531 "/home/jens/Source/shotwell/src/Photo.vala"
break;
#line 34795 "Photo.c"
}
#line 4531 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp23_ = _f_it;
#line 4531 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp24_ = gee_iterator_get (_tmp23_);
#line 4531 "/home/jens/Source/shotwell/src/Photo.vala"
f = (GFile*) _tmp24_;
#line 4532 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp25_ = self->priv->by_raw_development_file;
#line 4532 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp26_ = f;
#line 4532 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp27_ = photo;
#line 4532 "/home/jens/Source/shotwell/src/Photo.vala"
gee_abstract_map_set (G_TYPE_CHECK_INSTANCE_CAST (_tmp25_, GEE_TYPE_ABSTRACT_MAP, GeeAbstractMap), _tmp26_, _tmp27_);
#line 4531 "/home/jens/Source/shotwell/src/Photo.vala"
_g_object_unref0 (f);
#line 34813 "Photo.c"
}
#line 4531 "/home/jens/Source/shotwell/src/Photo.vala"
_g_object_unref0 (_f_it);
#line 34817 "Photo.c"
}
}
#line 4533 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp28_ = photo;
#line 4533 "/home/jens/Source/shotwell/src/Photo.vala"
g_signal_connect (G_TYPE_CHECK_INSTANCE_CAST (_tmp28_, TYPE_PHOTO, Photo), "raw-development-modified", (GCallback) _library_photo_source_collection_on_raw_development_modified_photo_raw_development_modified, self);
#line 4535 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp29_ = photo;
#line 4535 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp30_ = photo_get_master_photo_row (G_TYPE_CHECK_INSTANCE_CAST (_tmp29_, TYPE_PHOTO, Photo));
#line 4535 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp31_ = _tmp30_;
#line 4535 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp32_ = _tmp31_->filesize;
#line 4535 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp33_ = _tmp32_;
#line 4535 "/home/jens/Source/shotwell/src/Photo.vala"
_backing_photo_row_unref0 (_tmp31_);
#line 4535 "/home/jens/Source/shotwell/src/Photo.vala"
master_filesize = _tmp33_;
#line 4536 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp35_ = photo;
#line 4536 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp36_ = photo_get_editable_photo_row (G_TYPE_CHECK_INSTANCE_CAST (_tmp35_, TYPE_PHOTO, Photo));
#line 4536 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp37_ = _tmp36_;
#line 4536 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp38_ = _tmp37_ != NULL;
#line 4536 "/home/jens/Source/shotwell/src/Photo.vala"
_backing_photo_row_unref0 (_tmp37_);
#line 4536 "/home/jens/Source/shotwell/src/Photo.vala"
if (_tmp38_) {
#line 34850 "Photo.c"
LibraryPhoto* _tmp39_ = NULL;
BackingPhotoRow* _tmp40_ = NULL;
BackingPhotoRow* _tmp41_ = NULL;
gint64 _tmp42_ = 0LL;
#line 4537 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp39_ = photo;
#line 4537 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp40_ = photo_get_editable_photo_row (G_TYPE_CHECK_INSTANCE_CAST (_tmp39_, TYPE_PHOTO, Photo));
#line 4537 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp41_ = _tmp40_;
#line 4537 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp42_ = _tmp41_->filesize;
#line 4537 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp34_ = _tmp42_;
#line 4537 "/home/jens/Source/shotwell/src/Photo.vala"
_backing_photo_row_unref0 (_tmp41_);
#line 34867 "Photo.c"
} else {
#line 4538 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp34_ = (gint64) -1;
#line 34871 "Photo.c"
}
#line 4536 "/home/jens/Source/shotwell/src/Photo.vala"
editable_filesize = _tmp34_;
#line 4539 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp43_ = self->priv->filesize_to_photo;
#line 4539 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp44_ = master_filesize;
#line 4539 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp45_ = photo;
#line 4539 "/home/jens/Source/shotwell/src/Photo.vala"
gee_multi_map_set (_tmp43_, &_tmp44_, _tmp45_);
#line 4540 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp46_ = self->priv->photo_to_master_filesize;
#line 4540 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp47_ = photo;
#line 4540 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp48_ = master_filesize;
#line 4540 "/home/jens/Source/shotwell/src/Photo.vala"
gee_abstract_map_set (G_TYPE_CHECK_INSTANCE_CAST (_tmp46_, GEE_TYPE_ABSTRACT_MAP, GeeAbstractMap), _tmp47_, &_tmp48_);
#line 4541 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp49_ = editable_filesize;
#line 4541 "/home/jens/Source/shotwell/src/Photo.vala"
if (_tmp49_ >= ((gint64) 0)) {
#line 34895 "Photo.c"
GeeMultiMap* _tmp50_ = NULL;
gint64 _tmp51_ = 0LL;
LibraryPhoto* _tmp52_ = NULL;
GeeHashMap* _tmp53_ = NULL;
LibraryPhoto* _tmp54_ = NULL;
gint64 _tmp55_ = 0LL;
#line 4542 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp50_ = self->priv->filesize_to_photo;
#line 4542 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp51_ = editable_filesize;
#line 4542 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp52_ = photo;
#line 4542 "/home/jens/Source/shotwell/src/Photo.vala"
gee_multi_map_set (_tmp50_, &_tmp51_, _tmp52_);
#line 4543 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp53_ = self->priv->photo_to_editable_filesize;
#line 4543 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp54_ = photo;
#line 4543 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp55_ = editable_filesize;
#line 4543 "/home/jens/Source/shotwell/src/Photo.vala"
gee_abstract_map_set (G_TYPE_CHECK_INSTANCE_CAST (_tmp53_, GEE_TYPE_ABSTRACT_MAP, GeeAbstractMap), _tmp54_, &_tmp55_);
#line 34918 "Photo.c"
}
#line 4546 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp56_ = photo;
#line 4546 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp57_ = photo_get_raw_development_photo_rows (G_TYPE_CHECK_INSTANCE_CAST (_tmp56_, TYPE_PHOTO, Photo));
#line 4546 "/home/jens/Source/shotwell/src/Photo.vala"
raw_rows = _tmp57_;
#line 4547 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp58_ = raw_rows;
#line 4547 "/home/jens/Source/shotwell/src/Photo.vala"
if (_tmp58_ != NULL) {
#line 34930 "Photo.c"
{
GeeIterator* _row_it = NULL;
GeeCollection* _tmp59_ = NULL;
GeeIterator* _tmp60_ = NULL;
#line 4548 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp59_ = raw_rows;
#line 4548 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp60_ = gee_iterable_iterator (G_TYPE_CHECK_INSTANCE_CAST (_tmp59_, GEE_TYPE_ITERABLE, GeeIterable));
#line 4548 "/home/jens/Source/shotwell/src/Photo.vala"
_row_it = _tmp60_;
#line 4548 "/home/jens/Source/shotwell/src/Photo.vala"
while (TRUE) {
#line 34943 "Photo.c"
GeeIterator* _tmp61_ = NULL;
gboolean _tmp62_ = FALSE;
BackingPhotoRow* row = NULL;
GeeIterator* _tmp63_ = NULL;
gpointer _tmp64_ = NULL;
BackingPhotoRow* _tmp65_ = NULL;
gint64 _tmp66_ = 0LL;
#line 4548 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp61_ = _row_it;
#line 4548 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp62_ = gee_iterator_next (_tmp61_);
#line 4548 "/home/jens/Source/shotwell/src/Photo.vala"
if (!_tmp62_) {
#line 4548 "/home/jens/Source/shotwell/src/Photo.vala"
break;
#line 34959 "Photo.c"
}
#line 4548 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp63_ = _row_it;
#line 4548 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp64_ = gee_iterator_get (_tmp63_);
#line 4548 "/home/jens/Source/shotwell/src/Photo.vala"
row = (BackingPhotoRow*) _tmp64_;
#line 4549 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp65_ = row;
#line 4549 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp66_ = _tmp65_->filesize;
#line 4549 "/home/jens/Source/shotwell/src/Photo.vala"
if (_tmp66_ >= ((gint64) 0)) {
#line 34973 "Photo.c"
GeeMultiMap* _tmp67_ = NULL;
BackingPhotoRow* _tmp68_ = NULL;
gint64 _tmp69_ = 0LL;
LibraryPhoto* _tmp70_ = NULL;
GeeMultiMap* _tmp71_ = NULL;
LibraryPhoto* _tmp72_ = NULL;
BackingPhotoRow* _tmp73_ = NULL;
gint64 _tmp74_ = 0LL;
#line 4550 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp67_ = self->priv->filesize_to_photo;
#line 4550 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp68_ = row;
#line 4550 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp69_ = _tmp68_->filesize;
#line 4550 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp70_ = photo;
#line 4550 "/home/jens/Source/shotwell/src/Photo.vala"
gee_multi_map_set (_tmp67_, &_tmp69_, _tmp70_);
#line 4551 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp71_ = self->priv->photo_to_raw_development_filesize;
#line 4551 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp72_ = photo;
#line 4551 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp73_ = row;
#line 4551 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp74_ = _tmp73_->filesize;
#line 4551 "/home/jens/Source/shotwell/src/Photo.vala"
gee_multi_map_set (_tmp71_, _tmp72_, &_tmp74_);
#line 35002 "Photo.c"
}
#line 4548 "/home/jens/Source/shotwell/src/Photo.vala"
_backing_photo_row_unref0 (row);
#line 35006 "Photo.c"
}
#line 4548 "/home/jens/Source/shotwell/src/Photo.vala"
_g_object_unref0 (_row_it);
#line 35010 "Photo.c"
}
}
#line 4521 "/home/jens/Source/shotwell/src/Photo.vala"
_g_object_unref0 (raw_rows);
#line 4521 "/home/jens/Source/shotwell/src/Photo.vala"
_g_object_unref0 (raw_list);
#line 4521 "/home/jens/Source/shotwell/src/Photo.vala"
_g_object_unref0 (editable);
#line 4521 "/home/jens/Source/shotwell/src/Photo.vala"
_g_object_unref0 (photo);
#line 4521 "/home/jens/Source/shotwell/src/Photo.vala"
_g_object_unref0 (object);
#line 35023 "Photo.c"
}
#line 4521 "/home/jens/Source/shotwell/src/Photo.vala"
_g_object_unref0 (_object_it);
#line 35027 "Photo.c"
}
}
#line 4558 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp75_ = removed;
#line 4558 "/home/jens/Source/shotwell/src/Photo.vala"
if (_tmp75_ != NULL) {
#line 35034 "Photo.c"
{
GeeIterator* _object_it = NULL;
GeeIterable* _tmp76_ = NULL;
GeeIterator* _tmp77_ = NULL;
#line 4559 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp76_ = removed;
#line 4559 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp77_ = gee_iterable_iterator (_tmp76_);
#line 4559 "/home/jens/Source/shotwell/src/Photo.vala"
_object_it = _tmp77_;
#line 4559 "/home/jens/Source/shotwell/src/Photo.vala"
while (TRUE) {
#line 35047 "Photo.c"
GeeIterator* _tmp78_ = NULL;
gboolean _tmp79_ = FALSE;
DataObject* object = NULL;
GeeIterator* _tmp80_ = NULL;
gpointer _tmp81_ = NULL;
LibraryPhoto* photo = NULL;
DataObject* _tmp82_ = NULL;
LibraryPhoto* _tmp83_ = NULL;
GFile* editable = NULL;
LibraryPhoto* _tmp84_ = NULL;
GFile* _tmp85_ = NULL;
GFile* _tmp86_ = NULL;
LibraryPhoto* _tmp94_ = NULL;
guint _tmp95_ = 0U;
GeeCollection* raw_list = NULL;
LibraryPhoto* _tmp96_ = NULL;
GeeCollection* _tmp97_ = NULL;
GeeCollection* _tmp98_ = NULL;
LibraryPhoto* _tmp107_ = NULL;
guint _tmp108_ = 0U;
gint64 master_filesize = 0LL;
LibraryPhoto* _tmp109_ = NULL;
BackingPhotoRow* _tmp110_ = NULL;
BackingPhotoRow* _tmp111_ = NULL;
gint64 _tmp112_ = 0LL;
gint64 _tmp113_ = 0LL;
gint64 _tmp114_ = 0LL;
LibraryPhoto* _tmp115_ = NULL;
BackingPhotoRow* _tmp116_ = NULL;
BackingPhotoRow* _tmp117_ = NULL;
gboolean _tmp118_ = FALSE;
gint64 editable_filesize = 0LL;
GeeMultiMap* _tmp123_ = NULL;
gint64 _tmp124_ = 0LL;
LibraryPhoto* _tmp125_ = NULL;
GeeHashMap* _tmp126_ = NULL;
LibraryPhoto* _tmp127_ = NULL;
gint64 _tmp128_ = 0LL;
GeeCollection* raw_rows = NULL;
LibraryPhoto* _tmp134_ = NULL;
GeeCollection* _tmp135_ = NULL;
GeeCollection* _tmp136_ = NULL;
#line 4559 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp78_ = _object_it;
#line 4559 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp79_ = gee_iterator_next (_tmp78_);
#line 4559 "/home/jens/Source/shotwell/src/Photo.vala"
if (!_tmp79_) {
#line 4559 "/home/jens/Source/shotwell/src/Photo.vala"
break;
#line 35098 "Photo.c"
}
#line 4559 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp80_ = _object_it;
#line 4559 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp81_ = gee_iterator_get (_tmp80_);
#line 4559 "/home/jens/Source/shotwell/src/Photo.vala"
object = (DataObject*) _tmp81_;
#line 4560 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp82_ = object;
#line 4560 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp83_ = _g_object_ref0 (G_TYPE_CHECK_INSTANCE_CAST (_tmp82_, TYPE_LIBRARY_PHOTO, LibraryPhoto));
#line 4560 "/home/jens/Source/shotwell/src/Photo.vala"
photo = _tmp83_;
#line 4562 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp84_ = photo;
#line 4562 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp85_ = photo_get_editable_file (G_TYPE_CHECK_INSTANCE_CAST (_tmp84_, TYPE_PHOTO, Photo));
#line 4562 "/home/jens/Source/shotwell/src/Photo.vala"
editable = _tmp85_;
#line 4563 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp86_ = editable;
#line 4563 "/home/jens/Source/shotwell/src/Photo.vala"
if (_tmp86_ != NULL) {
#line 35122 "Photo.c"
gboolean is_removed = FALSE;
GeeHashMap* _tmp87_ = NULL;
LibraryPhoto* _tmp88_ = NULL;
GFile* _tmp89_ = NULL;
GFile* _tmp90_ = NULL;
gboolean _tmp91_ = FALSE;
gboolean _tmp92_ = FALSE;
gboolean _tmp93_ = FALSE;
#line 4564 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp87_ = self->priv->by_editable_file;
#line 4564 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp88_ = photo;
#line 4564 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp89_ = photo_get_editable_file (G_TYPE_CHECK_INSTANCE_CAST (_tmp88_, TYPE_PHOTO, Photo));
#line 4564 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp90_ = _tmp89_;
#line 4564 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp91_ = gee_abstract_map_unset (G_TYPE_CHECK_INSTANCE_CAST (_tmp87_, GEE_TYPE_ABSTRACT_MAP, GeeAbstractMap), _tmp90_, NULL);
#line 4564 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp92_ = _tmp91_;
#line 4564 "/home/jens/Source/shotwell/src/Photo.vala"
_g_object_unref0 (_tmp90_);
#line 4564 "/home/jens/Source/shotwell/src/Photo.vala"
is_removed = _tmp92_;
#line 4565 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp93_ = is_removed;
#line 4565 "/home/jens/Source/shotwell/src/Photo.vala"
_vala_assert (_tmp93_, "is_removed");
#line 35151 "Photo.c"
}
#line 4567 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp94_ = photo;
#line 4567 "/home/jens/Source/shotwell/src/Photo.vala"
g_signal_parse_name ("editable-replaced", TYPE_PHOTO, &_tmp95_, NULL, FALSE);
#line 4567 "/home/jens/Source/shotwell/src/Photo.vala"
g_signal_handlers_disconnect_matched (G_TYPE_CHECK_INSTANCE_CAST (_tmp94_, TYPE_PHOTO, Photo), G_SIGNAL_MATCH_ID | G_SIGNAL_MATCH_FUNC | G_SIGNAL_MATCH_DATA, _tmp95_, 0, NULL, (GCallback) _library_photo_source_collection_on_editable_replaced_photo_editable_replaced, self);
#line 4569 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp96_ = photo;
#line 4569 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp97_ = photo_get_raw_developer_files (G_TYPE_CHECK_INSTANCE_CAST (_tmp96_, TYPE_PHOTO, Photo));
#line 4569 "/home/jens/Source/shotwell/src/Photo.vala"
raw_list = _tmp97_;
#line 4570 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp98_ = raw_list;
#line 4570 "/home/jens/Source/shotwell/src/Photo.vala"
if (_tmp98_ != NULL) {
#line 35169 "Photo.c"
{
GeeIterator* _f_it = NULL;
GeeCollection* _tmp99_ = NULL;
GeeIterator* _tmp100_ = NULL;
#line 4571 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp99_ = raw_list;
#line 4571 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp100_ = gee_iterable_iterator (G_TYPE_CHECK_INSTANCE_CAST (_tmp99_, GEE_TYPE_ITERABLE, GeeIterable));
#line 4571 "/home/jens/Source/shotwell/src/Photo.vala"
_f_it = _tmp100_;
#line 4571 "/home/jens/Source/shotwell/src/Photo.vala"
while (TRUE) {
#line 35182 "Photo.c"
GeeIterator* _tmp101_ = NULL;
gboolean _tmp102_ = FALSE;
GFile* f = NULL;
GeeIterator* _tmp103_ = NULL;
gpointer _tmp104_ = NULL;
GeeHashMap* _tmp105_ = NULL;
GFile* _tmp106_ = NULL;
#line 4571 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp101_ = _f_it;
#line 4571 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp102_ = gee_iterator_next (_tmp101_);
#line 4571 "/home/jens/Source/shotwell/src/Photo.vala"
if (!_tmp102_) {
#line 4571 "/home/jens/Source/shotwell/src/Photo.vala"
break;
#line 35198 "Photo.c"
}
#line 4571 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp103_ = _f_it;
#line 4571 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp104_ = gee_iterator_get (_tmp103_);
#line 4571 "/home/jens/Source/shotwell/src/Photo.vala"
f = (GFile*) _tmp104_;
#line 4572 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp105_ = self->priv->by_raw_development_file;
#line 4572 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp106_ = f;
#line 4572 "/home/jens/Source/shotwell/src/Photo.vala"
gee_abstract_map_unset (G_TYPE_CHECK_INSTANCE_CAST (_tmp105_, GEE_TYPE_ABSTRACT_MAP, GeeAbstractMap), _tmp106_, NULL);
#line 4571 "/home/jens/Source/shotwell/src/Photo.vala"
_g_object_unref0 (f);
#line 35214 "Photo.c"
}
#line 4571 "/home/jens/Source/shotwell/src/Photo.vala"
_g_object_unref0 (_f_it);
#line 35218 "Photo.c"
}
}
#line 4573 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp107_ = photo;
#line 4573 "/home/jens/Source/shotwell/src/Photo.vala"
g_signal_parse_name ("raw-development-modified", TYPE_PHOTO, &_tmp108_, NULL, FALSE);
#line 4573 "/home/jens/Source/shotwell/src/Photo.vala"
g_signal_handlers_disconnect_matched (G_TYPE_CHECK_INSTANCE_CAST (_tmp107_, TYPE_PHOTO, Photo), G_SIGNAL_MATCH_ID | G_SIGNAL_MATCH_FUNC | G_SIGNAL_MATCH_DATA, _tmp108_, 0, NULL, (GCallback) _library_photo_source_collection_on_raw_development_modified_photo_raw_development_modified, self);
#line 4575 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp109_ = photo;
#line 4575 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp110_ = photo_get_master_photo_row (G_TYPE_CHECK_INSTANCE_CAST (_tmp109_, TYPE_PHOTO, Photo));
#line 4575 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp111_ = _tmp110_;
#line 4575 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp112_ = _tmp111_->filesize;
#line 4575 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp113_ = _tmp112_;
#line 4575 "/home/jens/Source/shotwell/src/Photo.vala"
_backing_photo_row_unref0 (_tmp111_);
#line 4575 "/home/jens/Source/shotwell/src/Photo.vala"
master_filesize = _tmp113_;
#line 4576 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp115_ = photo;
#line 4576 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp116_ = photo_get_editable_photo_row (G_TYPE_CHECK_INSTANCE_CAST (_tmp115_, TYPE_PHOTO, Photo));
#line 4576 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp117_ = _tmp116_;
#line 4576 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp118_ = _tmp117_ != NULL;
#line 4576 "/home/jens/Source/shotwell/src/Photo.vala"
_backing_photo_row_unref0 (_tmp117_);
#line 4576 "/home/jens/Source/shotwell/src/Photo.vala"
if (_tmp118_) {
#line 35253 "Photo.c"
LibraryPhoto* _tmp119_ = NULL;
BackingPhotoRow* _tmp120_ = NULL;
BackingPhotoRow* _tmp121_ = NULL;
gint64 _tmp122_ = 0LL;
#line 4577 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp119_ = photo;
#line 4577 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp120_ = photo_get_editable_photo_row (G_TYPE_CHECK_INSTANCE_CAST (_tmp119_, TYPE_PHOTO, Photo));
#line 4577 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp121_ = _tmp120_;
#line 4577 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp122_ = _tmp121_->filesize;
#line 4577 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp114_ = _tmp122_;
#line 4577 "/home/jens/Source/shotwell/src/Photo.vala"
_backing_photo_row_unref0 (_tmp121_);
#line 35270 "Photo.c"
} else {
#line 4578 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp114_ = (gint64) -1;
#line 35274 "Photo.c"
}
#line 4576 "/home/jens/Source/shotwell/src/Photo.vala"
editable_filesize = _tmp114_;
#line 4579 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp123_ = self->priv->filesize_to_photo;
#line 4579 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp124_ = master_filesize;
#line 4579 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp125_ = photo;
#line 4579 "/home/jens/Source/shotwell/src/Photo.vala"
gee_multi_map_remove (_tmp123_, &_tmp124_, _tmp125_);
#line 4580 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp126_ = self->priv->photo_to_master_filesize;
#line 4580 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp127_ = photo;
#line 4580 "/home/jens/Source/shotwell/src/Photo.vala"
gee_abstract_map_unset (G_TYPE_CHECK_INSTANCE_CAST (_tmp126_, GEE_TYPE_ABSTRACT_MAP, GeeAbstractMap), _tmp127_, NULL);
#line 4581 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp128_ = editable_filesize;
#line 4581 "/home/jens/Source/shotwell/src/Photo.vala"
if (_tmp128_ >= ((gint64) 0)) {
#line 35296 "Photo.c"
GeeMultiMap* _tmp129_ = NULL;
gint64 _tmp130_ = 0LL;
LibraryPhoto* _tmp131_ = NULL;
GeeHashMap* _tmp132_ = NULL;
LibraryPhoto* _tmp133_ = NULL;
#line 4582 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp129_ = self->priv->filesize_to_photo;
#line 4582 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp130_ = editable_filesize;
#line 4582 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp131_ = photo;
#line 4582 "/home/jens/Source/shotwell/src/Photo.vala"
gee_multi_map_remove (_tmp129_, &_tmp130_, _tmp131_);
#line 4583 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp132_ = self->priv->photo_to_editable_filesize;
#line 4583 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp133_ = photo;
#line 4583 "/home/jens/Source/shotwell/src/Photo.vala"
gee_abstract_map_unset (G_TYPE_CHECK_INSTANCE_CAST (_tmp132_, GEE_TYPE_ABSTRACT_MAP, GeeAbstractMap), _tmp133_, NULL);
#line 35316 "Photo.c"
}
#line 4586 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp134_ = photo;
#line 4586 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp135_ = photo_get_raw_development_photo_rows (G_TYPE_CHECK_INSTANCE_CAST (_tmp134_, TYPE_PHOTO, Photo));
#line 4586 "/home/jens/Source/shotwell/src/Photo.vala"
raw_rows = _tmp135_;
#line 4587 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp136_ = raw_rows;
#line 4587 "/home/jens/Source/shotwell/src/Photo.vala"
if (_tmp136_ != NULL) {
#line 35328 "Photo.c"
{
GeeIterator* _row_it = NULL;
GeeCollection* _tmp137_ = NULL;
GeeIterator* _tmp138_ = NULL;
#line 4588 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp137_ = raw_rows;
#line 4588 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp138_ = gee_iterable_iterator (G_TYPE_CHECK_INSTANCE_CAST (_tmp137_, GEE_TYPE_ITERABLE, GeeIterable));
#line 4588 "/home/jens/Source/shotwell/src/Photo.vala"
_row_it = _tmp138_;
#line 4588 "/home/jens/Source/shotwell/src/Photo.vala"
while (TRUE) {
#line 35341 "Photo.c"
GeeIterator* _tmp139_ = NULL;
gboolean _tmp140_ = FALSE;
BackingPhotoRow* row = NULL;
GeeIterator* _tmp141_ = NULL;
gpointer _tmp142_ = NULL;
BackingPhotoRow* _tmp143_ = NULL;
gint64 _tmp144_ = 0LL;
#line 4588 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp139_ = _row_it;
#line 4588 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp140_ = gee_iterator_next (_tmp139_);
#line 4588 "/home/jens/Source/shotwell/src/Photo.vala"
if (!_tmp140_) {
#line 4588 "/home/jens/Source/shotwell/src/Photo.vala"
break;
#line 35357 "Photo.c"
}
#line 4588 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp141_ = _row_it;
#line 4588 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp142_ = gee_iterator_get (_tmp141_);
#line 4588 "/home/jens/Source/shotwell/src/Photo.vala"
row = (BackingPhotoRow*) _tmp142_;
#line 4589 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp143_ = row;
#line 4589 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp144_ = _tmp143_->filesize;
#line 4589 "/home/jens/Source/shotwell/src/Photo.vala"
if (_tmp144_ >= ((gint64) 0)) {
#line 35371 "Photo.c"
GeeMultiMap* _tmp145_ = NULL;
BackingPhotoRow* _tmp146_ = NULL;
gint64 _tmp147_ = 0LL;
LibraryPhoto* _tmp148_ = NULL;
GeeMultiMap* _tmp149_ = NULL;
LibraryPhoto* _tmp150_ = NULL;
BackingPhotoRow* _tmp151_ = NULL;
gint64 _tmp152_ = 0LL;
#line 4590 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp145_ = self->priv->filesize_to_photo;
#line 4590 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp146_ = row;
#line 4590 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp147_ = _tmp146_->filesize;
#line 4590 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp148_ = photo;
#line 4590 "/home/jens/Source/shotwell/src/Photo.vala"
gee_multi_map_remove (_tmp145_, &_tmp147_, _tmp148_);
#line 4591 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp149_ = self->priv->photo_to_raw_development_filesize;
#line 4591 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp150_ = photo;
#line 4591 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp151_ = row;
#line 4591 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp152_ = _tmp151_->filesize;
#line 4591 "/home/jens/Source/shotwell/src/Photo.vala"
gee_multi_map_remove (_tmp149_, _tmp150_, &_tmp152_);
#line 35400 "Photo.c"
}
#line 4588 "/home/jens/Source/shotwell/src/Photo.vala"
_backing_photo_row_unref0 (row);
#line 35404 "Photo.c"
}
#line 4588 "/home/jens/Source/shotwell/src/Photo.vala"
_g_object_unref0 (_row_it);
#line 35408 "Photo.c"
}
}
#line 4559 "/home/jens/Source/shotwell/src/Photo.vala"
_g_object_unref0 (raw_rows);
#line 4559 "/home/jens/Source/shotwell/src/Photo.vala"
_g_object_unref0 (raw_list);
#line 4559 "/home/jens/Source/shotwell/src/Photo.vala"
_g_object_unref0 (editable);
#line 4559 "/home/jens/Source/shotwell/src/Photo.vala"
_g_object_unref0 (photo);
#line 4559 "/home/jens/Source/shotwell/src/Photo.vala"
_g_object_unref0 (object);
#line 35421 "Photo.c"
}
#line 4559 "/home/jens/Source/shotwell/src/Photo.vala"
_g_object_unref0 (_object_it);
#line 35425 "Photo.c"
}
}
#line 4598 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp153_ = added;
#line 4598 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp154_ = removed;
#line 4598 "/home/jens/Source/shotwell/src/Photo.vala"
DATA_COLLECTION_CLASS (library_photo_source_collection_parent_class)->notify_contents_altered (G_TYPE_CHECK_INSTANCE_CAST (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_MEDIA_SOURCE_COLLECTION, MediaSourceCollection), TYPE_DATA_COLLECTION, DataCollection), _tmp153_, _tmp154_);
#line 35434 "Photo.c"
}
static void library_photo_source_collection_on_editable_replaced (LibraryPhotoSourceCollection* self, Photo* photo, GFile* old_file, GFile* new_file) {
GFile* _tmp0_ = NULL;
GFile* _tmp5_ = NULL;
#line 4601 "/home/jens/Source/shotwell/src/Photo.vala"
g_return_if_fail (IS_LIBRARY_PHOTO_SOURCE_COLLECTION (self));
#line 4601 "/home/jens/Source/shotwell/src/Photo.vala"
g_return_if_fail (IS_PHOTO (photo));
#line 4601 "/home/jens/Source/shotwell/src/Photo.vala"
g_return_if_fail ((old_file == NULL) || G_IS_FILE (old_file));
#line 4601 "/home/jens/Source/shotwell/src/Photo.vala"
g_return_if_fail ((new_file == NULL) || G_IS_FILE (new_file));
#line 4602 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp0_ = old_file;
#line 4602 "/home/jens/Source/shotwell/src/Photo.vala"
if (_tmp0_ != NULL) {
#line 35453 "Photo.c"
gboolean is_removed = FALSE;
GeeHashMap* _tmp1_ = NULL;
GFile* _tmp2_ = NULL;
gboolean _tmp3_ = FALSE;
gboolean _tmp4_ = FALSE;
#line 4603 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp1_ = self->priv->by_editable_file;
#line 4603 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp2_ = old_file;
#line 4603 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp3_ = gee_abstract_map_unset (G_TYPE_CHECK_INSTANCE_CAST (_tmp1_, GEE_TYPE_ABSTRACT_MAP, GeeAbstractMap), _tmp2_, NULL);
#line 4603 "/home/jens/Source/shotwell/src/Photo.vala"
is_removed = _tmp3_;
#line 4604 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp4_ = is_removed;
#line 4604 "/home/jens/Source/shotwell/src/Photo.vala"
_vala_assert (_tmp4_, "is_removed");
#line 35471 "Photo.c"
}
#line 4607 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp5_ = new_file;
#line 4607 "/home/jens/Source/shotwell/src/Photo.vala"
if (_tmp5_ != NULL) {
#line 35477 "Photo.c"
GeeHashMap* _tmp6_ = NULL;
GFile* _tmp7_ = NULL;
Photo* _tmp8_ = NULL;
#line 4608 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp6_ = self->priv->by_editable_file;
#line 4608 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp7_ = new_file;
#line 4608 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp8_ = photo;
#line 4608 "/home/jens/Source/shotwell/src/Photo.vala"
gee_abstract_map_set (G_TYPE_CHECK_INSTANCE_CAST (_tmp6_, GEE_TYPE_ABSTRACT_MAP, GeeAbstractMap), _tmp7_, G_TYPE_CHECK_INSTANCE_CAST (_tmp8_, TYPE_LIBRARY_PHOTO, LibraryPhoto));
#line 35489 "Photo.c"
}
}
static void library_photo_source_collection_on_raw_development_modified (LibraryPhotoSourceCollection* self, Photo* _photo) {
LibraryPhoto* photo = NULL;
Photo* _tmp0_ = NULL;
LibraryPhoto* _tmp1_ = NULL;
LibraryPhoto* _tmp2_ = NULL;
GeeMultiMap* _tmp3_ = NULL;
LibraryPhoto* _tmp4_ = NULL;
gboolean _tmp5_ = FALSE;
GeeCollection* raw_list = NULL;
LibraryPhoto* _tmp23_ = NULL;
GeeCollection* _tmp24_ = NULL;
GeeCollection* _tmp25_ = NULL;
GeeCollection* raw_rows = NULL;
LibraryPhoto* _tmp35_ = NULL;
GeeCollection* _tmp36_ = NULL;
GeeCollection* _tmp37_ = NULL;
#line 4611 "/home/jens/Source/shotwell/src/Photo.vala"
g_return_if_fail (IS_LIBRARY_PHOTO_SOURCE_COLLECTION (self));
#line 4611 "/home/jens/Source/shotwell/src/Photo.vala"
g_return_if_fail (IS_PHOTO (_photo));
#line 4612 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp0_ = _photo;
#line 4612 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp1_ = _g_object_ref0 (G_TYPE_CHECK_INSTANCE_TYPE (_tmp0_, TYPE_LIBRARY_PHOTO) ? ((LibraryPhoto*) _tmp0_) : NULL);
#line 4612 "/home/jens/Source/shotwell/src/Photo.vala"
photo = _tmp1_;
#line 4613 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp2_ = photo;
#line 4613 "/home/jens/Source/shotwell/src/Photo.vala"
if (_tmp2_ == NULL) {
#line 4614 "/home/jens/Source/shotwell/src/Photo.vala"
_g_object_unref0 (photo);
#line 4614 "/home/jens/Source/shotwell/src/Photo.vala"
return;
#line 35528 "Photo.c"
}
#line 4617 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp3_ = self->priv->photo_to_raw_development_filesize;
#line 4617 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp4_ = photo;
#line 4617 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp5_ = gee_multi_map_contains (_tmp3_, _tmp4_);
#line 4617 "/home/jens/Source/shotwell/src/Photo.vala"
if (_tmp5_) {
#line 35538 "Photo.c"
GeeMultiMap* _tmp21_ = NULL;
LibraryPhoto* _tmp22_ = NULL;
{
GeeIterator* _s_it = NULL;
GeeMultiMap* _tmp6_ = NULL;
LibraryPhoto* _tmp7_ = NULL;
GeeCollection* _tmp8_ = NULL;
GeeCollection* _tmp9_ = NULL;
GeeIterator* _tmp10_ = NULL;
GeeIterator* _tmp11_ = NULL;
#line 4618 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp6_ = self->priv->photo_to_raw_development_filesize;
#line 4618 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp7_ = photo;
#line 4618 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp8_ = gee_multi_map_get (_tmp6_, _tmp7_);
#line 4618 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp9_ = _tmp8_;
#line 4618 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp10_ = gee_iterable_iterator (G_TYPE_CHECK_INSTANCE_CAST (_tmp9_, GEE_TYPE_ITERABLE, GeeIterable));
#line 4618 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp11_ = _tmp10_;
#line 4618 "/home/jens/Source/shotwell/src/Photo.vala"
_g_object_unref0 (_tmp9_);
#line 4618 "/home/jens/Source/shotwell/src/Photo.vala"
_s_it = _tmp11_;
#line 4618 "/home/jens/Source/shotwell/src/Photo.vala"
while (TRUE) {
#line 35567 "Photo.c"
GeeIterator* _tmp12_ = NULL;
gboolean _tmp13_ = FALSE;
gint64 s = 0LL;
GeeIterator* _tmp14_ = NULL;
gpointer _tmp15_ = NULL;
gint64* _tmp16_ = NULL;
gint64 _tmp17_ = 0LL;
GeeMultiMap* _tmp18_ = NULL;
gint64 _tmp19_ = 0LL;
LibraryPhoto* _tmp20_ = NULL;
#line 4618 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp12_ = _s_it;
#line 4618 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp13_ = gee_iterator_next (_tmp12_);
#line 4618 "/home/jens/Source/shotwell/src/Photo.vala"
if (!_tmp13_) {
#line 4618 "/home/jens/Source/shotwell/src/Photo.vala"
break;
#line 35586 "Photo.c"
}
#line 4618 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp14_ = _s_it;
#line 4618 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp15_ = gee_iterator_get (_tmp14_);
#line 4618 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp16_ = (gint64*) _tmp15_;
#line 4618 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp17_ = *_tmp16_;
#line 4618 "/home/jens/Source/shotwell/src/Photo.vala"
_g_free0 (_tmp16_);
#line 4618 "/home/jens/Source/shotwell/src/Photo.vala"
s = _tmp17_;
#line 4619 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp18_ = self->priv->filesize_to_photo;
#line 4619 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp19_ = s;
#line 4619 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp20_ = photo;
#line 4619 "/home/jens/Source/shotwell/src/Photo.vala"
gee_multi_map_remove (_tmp18_, &_tmp19_, _tmp20_);
#line 35608 "Photo.c"
}
#line 4618 "/home/jens/Source/shotwell/src/Photo.vala"
_g_object_unref0 (_s_it);
#line 35612 "Photo.c"
}
#line 4620 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp21_ = self->priv->photo_to_raw_development_filesize;
#line 4620 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp22_ = photo;
#line 4620 "/home/jens/Source/shotwell/src/Photo.vala"
gee_multi_map_remove_all (_tmp21_, _tmp22_);
#line 35620 "Photo.c"
}
#line 4624 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp23_ = photo;
#line 4624 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp24_ = photo_get_raw_developer_files (G_TYPE_CHECK_INSTANCE_CAST (_tmp23_, TYPE_PHOTO, Photo));
#line 4624 "/home/jens/Source/shotwell/src/Photo.vala"
raw_list = _tmp24_;
#line 4625 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp25_ = raw_list;
#line 4625 "/home/jens/Source/shotwell/src/Photo.vala"
if (_tmp25_ != NULL) {
#line 35632 "Photo.c"
{
GeeIterator* _f_it = NULL;
GeeCollection* _tmp26_ = NULL;
GeeIterator* _tmp27_ = NULL;
#line 4626 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp26_ = raw_list;
#line 4626 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp27_ = gee_iterable_iterator (G_TYPE_CHECK_INSTANCE_CAST (_tmp26_, GEE_TYPE_ITERABLE, GeeIterable));
#line 4626 "/home/jens/Source/shotwell/src/Photo.vala"
_f_it = _tmp27_;
#line 4626 "/home/jens/Source/shotwell/src/Photo.vala"
while (TRUE) {
#line 35645 "Photo.c"
GeeIterator* _tmp28_ = NULL;
gboolean _tmp29_ = FALSE;
GFile* f = NULL;
GeeIterator* _tmp30_ = NULL;
gpointer _tmp31_ = NULL;
GeeHashMap* _tmp32_ = NULL;
GFile* _tmp33_ = NULL;
LibraryPhoto* _tmp34_ = NULL;
#line 4626 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp28_ = _f_it;
#line 4626 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp29_ = gee_iterator_next (_tmp28_);
#line 4626 "/home/jens/Source/shotwell/src/Photo.vala"
if (!_tmp29_) {
#line 4626 "/home/jens/Source/shotwell/src/Photo.vala"
break;
#line 35662 "Photo.c"
}
#line 4626 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp30_ = _f_it;
#line 4626 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp31_ = gee_iterator_get (_tmp30_);
#line 4626 "/home/jens/Source/shotwell/src/Photo.vala"
f = (GFile*) _tmp31_;
#line 4627 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp32_ = self->priv->by_raw_development_file;
#line 4627 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp33_ = f;
#line 4627 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp34_ = photo;
#line 4627 "/home/jens/Source/shotwell/src/Photo.vala"
gee_abstract_map_set (G_TYPE_CHECK_INSTANCE_CAST (_tmp32_, GEE_TYPE_ABSTRACT_MAP, GeeAbstractMap), _tmp33_, _tmp34_);
#line 4626 "/home/jens/Source/shotwell/src/Photo.vala"
_g_object_unref0 (f);
#line 35680 "Photo.c"
}
#line 4626 "/home/jens/Source/shotwell/src/Photo.vala"
_g_object_unref0 (_f_it);
#line 35684 "Photo.c"
}
}
#line 4629 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp35_ = photo;
#line 4629 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp36_ = photo_get_raw_development_photo_rows (G_TYPE_CHECK_INSTANCE_CAST (_tmp35_, TYPE_PHOTO, Photo));
#line 4629 "/home/jens/Source/shotwell/src/Photo.vala"
raw_rows = _tmp36_;
#line 4630 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp37_ = raw_rows;
#line 4630 "/home/jens/Source/shotwell/src/Photo.vala"
if (_tmp37_ != NULL) {
#line 35697 "Photo.c"
{
GeeIterator* _row_it = NULL;
GeeCollection* _tmp38_ = NULL;
GeeIterator* _tmp39_ = NULL;
#line 4631 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp38_ = raw_rows;
#line 4631 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp39_ = gee_iterable_iterator (G_TYPE_CHECK_INSTANCE_CAST (_tmp38_, GEE_TYPE_ITERABLE, GeeIterable));
#line 4631 "/home/jens/Source/shotwell/src/Photo.vala"
_row_it = _tmp39_;
#line 4631 "/home/jens/Source/shotwell/src/Photo.vala"
while (TRUE) {
#line 35710 "Photo.c"
GeeIterator* _tmp40_ = NULL;
gboolean _tmp41_ = FALSE;
BackingPhotoRow* row = NULL;
GeeIterator* _tmp42_ = NULL;
gpointer _tmp43_ = NULL;
BackingPhotoRow* _tmp44_ = NULL;
gint64 _tmp45_ = 0LL;
#line 4631 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp40_ = _row_it;
#line 4631 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp41_ = gee_iterator_next (_tmp40_);
#line 4631 "/home/jens/Source/shotwell/src/Photo.vala"
if (!_tmp41_) {
#line 4631 "/home/jens/Source/shotwell/src/Photo.vala"
break;
#line 35726 "Photo.c"
}
#line 4631 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp42_ = _row_it;
#line 4631 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp43_ = gee_iterator_get (_tmp42_);
#line 4631 "/home/jens/Source/shotwell/src/Photo.vala"
row = (BackingPhotoRow*) _tmp43_;
#line 4632 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp44_ = row;
#line 4632 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp45_ = _tmp44_->filesize;
#line 4632 "/home/jens/Source/shotwell/src/Photo.vala"
if (_tmp45_ > ((gint64) 0)) {
#line 35740 "Photo.c"
GeeMultiMap* _tmp46_ = NULL;
BackingPhotoRow* _tmp47_ = NULL;
gint64 _tmp48_ = 0LL;
LibraryPhoto* _tmp49_ = NULL;
GeeMultiMap* _tmp50_ = NULL;
LibraryPhoto* _tmp51_ = NULL;
BackingPhotoRow* _tmp52_ = NULL;
gint64 _tmp53_ = 0LL;
#line 4633 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp46_ = self->priv->filesize_to_photo;
#line 4633 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp47_ = row;
#line 4633 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp48_ = _tmp47_->filesize;
#line 4633 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp49_ = photo;
#line 4633 "/home/jens/Source/shotwell/src/Photo.vala"
gee_multi_map_set (_tmp46_, &_tmp48_, _tmp49_);
#line 4634 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp50_ = self->priv->photo_to_raw_development_filesize;
#line 4634 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp51_ = photo;
#line 4634 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp52_ = row;
#line 4634 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp53_ = _tmp52_->filesize;
#line 4634 "/home/jens/Source/shotwell/src/Photo.vala"
gee_multi_map_set (_tmp50_, _tmp51_, &_tmp53_);
#line 35769 "Photo.c"
}
#line 4631 "/home/jens/Source/shotwell/src/Photo.vala"
_backing_photo_row_unref0 (row);
#line 35773 "Photo.c"
}
#line 4631 "/home/jens/Source/shotwell/src/Photo.vala"
_g_object_unref0 (_row_it);
#line 35777 "Photo.c"
}
}
#line 4611 "/home/jens/Source/shotwell/src/Photo.vala"
_g_object_unref0 (raw_rows);
#line 4611 "/home/jens/Source/shotwell/src/Photo.vala"
_g_object_unref0 (raw_list);
#line 4611 "/home/jens/Source/shotwell/src/Photo.vala"
_g_object_unref0 (photo);
#line 35786 "Photo.c"
}
static gpointer __int64_dup0 (gpointer self) {
#line 4650 "/home/jens/Source/shotwell/src/Photo.vala"
return self ? _int64_dup (self) : NULL;
#line 35793 "Photo.c"
}
static void library_photo_source_collection_real_items_altered (DataCollection* base, GeeMap* items) {
LibraryPhotoSourceCollection * self;
GeeMap* _tmp72_ = NULL;
#line 4640 "/home/jens/Source/shotwell/src/Photo.vala"
self = G_TYPE_CHECK_INSTANCE_CAST (base, TYPE_LIBRARY_PHOTO_SOURCE_COLLECTION, LibraryPhotoSourceCollection);
#line 4640 "/home/jens/Source/shotwell/src/Photo.vala"
g_return_if_fail (GEE_IS_MAP (items));
#line 35804 "Photo.c"
{
GeeIterator* _object_it = NULL;
GeeMap* _tmp0_ = NULL;
GeeSet* _tmp1_ = NULL;
GeeSet* _tmp2_ = NULL;
GeeSet* _tmp3_ = NULL;
GeeIterator* _tmp4_ = NULL;
GeeIterator* _tmp5_ = NULL;
#line 4641 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp0_ = items;
#line 4641 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp1_ = gee_map_get_keys (_tmp0_);
#line 4641 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp2_ = _tmp1_;
#line 4641 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp3_ = _tmp2_;
#line 4641 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp4_ = gee_iterable_iterator (G_TYPE_CHECK_INSTANCE_CAST (_tmp3_, GEE_TYPE_ITERABLE, GeeIterable));
#line 4641 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp5_ = _tmp4_;
#line 4641 "/home/jens/Source/shotwell/src/Photo.vala"
_g_object_unref0 (_tmp3_);
#line 4641 "/home/jens/Source/shotwell/src/Photo.vala"
_object_it = _tmp5_;
#line 4641 "/home/jens/Source/shotwell/src/Photo.vala"
while (TRUE) {
#line 35831 "Photo.c"
GeeIterator* _tmp6_ = NULL;
gboolean _tmp7_ = FALSE;
DataObject* object = NULL;
GeeIterator* _tmp8_ = NULL;
gpointer _tmp9_ = NULL;
Alteration* alteration = NULL;
GeeMap* _tmp10_ = NULL;
DataObject* _tmp11_ = NULL;
gpointer _tmp12_ = NULL;
LibraryPhoto* photo = NULL;
DataObject* _tmp13_ = NULL;
LibraryPhoto* _tmp14_ = NULL;
gboolean _tmp15_ = FALSE;
Alteration* _tmp16_ = NULL;
gboolean _tmp17_ = FALSE;
#line 4641 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp6_ = _object_it;
#line 4641 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp7_ = gee_iterator_next (_tmp6_);
#line 4641 "/home/jens/Source/shotwell/src/Photo.vala"
if (!_tmp7_) {
#line 4641 "/home/jens/Source/shotwell/src/Photo.vala"
break;
#line 35855 "Photo.c"
}
#line 4641 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp8_ = _object_it;
#line 4641 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp9_ = gee_iterator_get (_tmp8_);
#line 4641 "/home/jens/Source/shotwell/src/Photo.vala"
object = (DataObject*) _tmp9_;
#line 4642 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp10_ = items;
#line 4642 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp11_ = object;
#line 4642 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp12_ = gee_map_get (_tmp10_, _tmp11_);
#line 4642 "/home/jens/Source/shotwell/src/Photo.vala"
alteration = (Alteration*) _tmp12_;
#line 4644 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp13_ = object;
#line 4644 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp14_ = _g_object_ref0 (G_TYPE_CHECK_INSTANCE_CAST (_tmp13_, TYPE_LIBRARY_PHOTO, LibraryPhoto));
#line 4644 "/home/jens/Source/shotwell/src/Photo.vala"
photo = _tmp14_;
#line 4646 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp16_ = alteration;
#line 4646 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp17_ = alteration_has_detail (_tmp16_, "image", "master");
#line 4646 "/home/jens/Source/shotwell/src/Photo.vala"
if (_tmp17_) {
#line 4646 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp15_ = TRUE;
#line 35885 "Photo.c"
} else {
Alteration* _tmp18_ = NULL;
gboolean _tmp19_ = FALSE;
#line 4646 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp18_ = alteration;
#line 4646 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp19_ = alteration_has_detail (_tmp18_, "image", "editable");
#line 4646 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp15_ = _tmp19_;
#line 35895 "Photo.c"
}
#line 4646 "/home/jens/Source/shotwell/src/Photo.vala"
if (_tmp15_) {
#line 35899 "Photo.c"
gint64 old_master_filesize = 0LL;
GeeHashMap* _tmp20_ = NULL;
LibraryPhoto* _tmp21_ = NULL;
gpointer _tmp22_ = NULL;
gint64* _tmp23_ = NULL;
gint64 _tmp24_ = 0LL;
gint64* _tmp25_ = NULL;
GeeHashMap* _tmp26_ = NULL;
LibraryPhoto* _tmp27_ = NULL;
gboolean _tmp28_ = FALSE;
gint64 old_editable_filesize = 0LL;
GeeHashMap* _tmp34_ = NULL;
LibraryPhoto* _tmp35_ = NULL;
GeeMultiMap* _tmp36_ = NULL;
gint64 _tmp37_ = 0LL;
LibraryPhoto* _tmp38_ = NULL;
gint64 _tmp39_ = 0LL;
gint64 master_filesize = 0LL;
LibraryPhoto* _tmp45_ = NULL;
BackingPhotoRow* _tmp46_ = NULL;
BackingPhotoRow* _tmp47_ = NULL;
gint64 _tmp48_ = 0LL;
gint64 _tmp49_ = 0LL;
gint64 _tmp50_ = 0LL;
LibraryPhoto* _tmp51_ = NULL;
BackingPhotoRow* _tmp52_ = NULL;
BackingPhotoRow* _tmp53_ = NULL;
gboolean _tmp54_ = FALSE;
gint64 editable_filesize = 0LL;
GeeHashMap* _tmp59_ = NULL;
LibraryPhoto* _tmp60_ = NULL;
gint64 _tmp61_ = 0LL;
GeeMultiMap* _tmp62_ = NULL;
gint64 _tmp63_ = 0LL;
LibraryPhoto* _tmp64_ = NULL;
gint64 _tmp65_ = 0LL;
#line 4647 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp20_ = self->priv->photo_to_master_filesize;
#line 4647 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp21_ = photo;
#line 4647 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp22_ = gee_abstract_map_get (G_TYPE_CHECK_INSTANCE_CAST (_tmp20_, GEE_TYPE_ABSTRACT_MAP, GeeAbstractMap), _tmp21_);
#line 4647 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp23_ = (gint64*) _tmp22_;
#line 4647 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp24_ = *_tmp23_;
#line 4647 "/home/jens/Source/shotwell/src/Photo.vala"
_g_free0 (_tmp23_);
#line 4647 "/home/jens/Source/shotwell/src/Photo.vala"
old_master_filesize = _tmp24_;
#line 4648 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp26_ = self->priv->photo_to_editable_filesize;
#line 4648 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp27_ = photo;
#line 4648 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp28_ = gee_abstract_map_has_key (G_TYPE_CHECK_INSTANCE_CAST (_tmp26_, GEE_TYPE_ABSTRACT_MAP, GeeAbstractMap), _tmp27_);
#line 4648 "/home/jens/Source/shotwell/src/Photo.vala"
if (_tmp28_) {
#line 35958 "Photo.c"
GeeHashMap* _tmp29_ = NULL;
LibraryPhoto* _tmp30_ = NULL;
gpointer _tmp31_ = NULL;
#line 4649 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp29_ = self->priv->photo_to_editable_filesize;
#line 4649 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp30_ = photo;
#line 4649 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp31_ = gee_abstract_map_get (G_TYPE_CHECK_INSTANCE_CAST (_tmp29_, GEE_TYPE_ABSTRACT_MAP, GeeAbstractMap), _tmp30_);
#line 4649 "/home/jens/Source/shotwell/src/Photo.vala"
_g_free0 (_tmp25_);
#line 4649 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp25_ = (gint64*) _tmp31_;
#line 35972 "Photo.c"
} else {
gint64 _tmp32_ = 0LL;
gint64* _tmp33_ = NULL;
#line 4650 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp32_ = (gint64) -1;
#line 4650 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp33_ = __int64_dup0 (&_tmp32_);
#line 4650 "/home/jens/Source/shotwell/src/Photo.vala"
_g_free0 (_tmp25_);
#line 4650 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp25_ = _tmp33_;
#line 35984 "Photo.c"
}
#line 4648 "/home/jens/Source/shotwell/src/Photo.vala"
old_editable_filesize = *_tmp25_;
#line 4652 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp34_ = self->priv->photo_to_master_filesize;
#line 4652 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp35_ = photo;
#line 4652 "/home/jens/Source/shotwell/src/Photo.vala"
gee_abstract_map_unset (G_TYPE_CHECK_INSTANCE_CAST (_tmp34_, GEE_TYPE_ABSTRACT_MAP, GeeAbstractMap), _tmp35_, NULL);
#line 4653 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp36_ = self->priv->filesize_to_photo;
#line 4653 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp37_ = old_master_filesize;
#line 4653 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp38_ = photo;
#line 4653 "/home/jens/Source/shotwell/src/Photo.vala"
gee_multi_map_remove (_tmp36_, &_tmp37_, _tmp38_);
#line 4654 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp39_ = old_editable_filesize;
#line 4654 "/home/jens/Source/shotwell/src/Photo.vala"
if (_tmp39_ >= ((gint64) 0)) {
#line 36006 "Photo.c"
GeeHashMap* _tmp40_ = NULL;
LibraryPhoto* _tmp41_ = NULL;
GeeMultiMap* _tmp42_ = NULL;
gint64 _tmp43_ = 0LL;
LibraryPhoto* _tmp44_ = NULL;
#line 4655 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp40_ = self->priv->photo_to_editable_filesize;
#line 4655 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp41_ = photo;
#line 4655 "/home/jens/Source/shotwell/src/Photo.vala"
gee_abstract_map_unset (G_TYPE_CHECK_INSTANCE_CAST (_tmp40_, GEE_TYPE_ABSTRACT_MAP, GeeAbstractMap), _tmp41_, NULL);
#line 4656 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp42_ = self->priv->filesize_to_photo;
#line 4656 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp43_ = old_editable_filesize;
#line 4656 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp44_ = photo;
#line 4656 "/home/jens/Source/shotwell/src/Photo.vala"
gee_multi_map_remove (_tmp42_, &_tmp43_, _tmp44_);
#line 36026 "Photo.c"
}
#line 4659 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp45_ = photo;
#line 4659 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp46_ = photo_get_master_photo_row (G_TYPE_CHECK_INSTANCE_CAST (_tmp45_, TYPE_PHOTO, Photo));
#line 4659 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp47_ = _tmp46_;
#line 4659 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp48_ = _tmp47_->filesize;
#line 4659 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp49_ = _tmp48_;
#line 4659 "/home/jens/Source/shotwell/src/Photo.vala"
_backing_photo_row_unref0 (_tmp47_);
#line 4659 "/home/jens/Source/shotwell/src/Photo.vala"
master_filesize = _tmp49_;
#line 4660 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp51_ = photo;
#line 4660 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp52_ = photo_get_editable_photo_row (G_TYPE_CHECK_INSTANCE_CAST (_tmp51_, TYPE_PHOTO, Photo));
#line 4660 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp53_ = _tmp52_;
#line 4660 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp54_ = _tmp53_ != NULL;
#line 4660 "/home/jens/Source/shotwell/src/Photo.vala"
_backing_photo_row_unref0 (_tmp53_);
#line 4660 "/home/jens/Source/shotwell/src/Photo.vala"
if (_tmp54_) {
#line 36054 "Photo.c"
LibraryPhoto* _tmp55_ = NULL;
BackingPhotoRow* _tmp56_ = NULL;
BackingPhotoRow* _tmp57_ = NULL;
gint64 _tmp58_ = 0LL;
#line 4661 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp55_ = photo;
#line 4661 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp56_ = photo_get_editable_photo_row (G_TYPE_CHECK_INSTANCE_CAST (_tmp55_, TYPE_PHOTO, Photo));
#line 4661 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp57_ = _tmp56_;
#line 4661 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp58_ = _tmp57_->filesize;
#line 4661 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp50_ = _tmp58_;
#line 4661 "/home/jens/Source/shotwell/src/Photo.vala"
_backing_photo_row_unref0 (_tmp57_);
#line 36071 "Photo.c"
} else {
#line 4662 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp50_ = (gint64) -1;
#line 36075 "Photo.c"
}
#line 4660 "/home/jens/Source/shotwell/src/Photo.vala"
editable_filesize = _tmp50_;
#line 4663 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp59_ = self->priv->photo_to_master_filesize;
#line 4663 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp60_ = photo;
#line 4663 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp61_ = master_filesize;
#line 4663 "/home/jens/Source/shotwell/src/Photo.vala"
gee_abstract_map_set (G_TYPE_CHECK_INSTANCE_CAST (_tmp59_, GEE_TYPE_ABSTRACT_MAP, GeeAbstractMap), _tmp60_, &_tmp61_);
#line 4664 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp62_ = self->priv->filesize_to_photo;
#line 4664 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp63_ = master_filesize;
#line 4664 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp64_ = photo;
#line 4664 "/home/jens/Source/shotwell/src/Photo.vala"
gee_multi_map_set (_tmp62_, &_tmp63_, _tmp64_);
#line 4665 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp65_ = editable_filesize;
#line 4665 "/home/jens/Source/shotwell/src/Photo.vala"
if (_tmp65_ >= ((gint64) 0)) {
#line 36099 "Photo.c"
GeeHashMap* _tmp66_ = NULL;
LibraryPhoto* _tmp67_ = NULL;
gint64 _tmp68_ = 0LL;
GeeMultiMap* _tmp69_ = NULL;
gint64 _tmp70_ = 0LL;
LibraryPhoto* _tmp71_ = NULL;
#line 4666 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp66_ = self->priv->photo_to_editable_filesize;
#line 4666 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp67_ = photo;
#line 4666 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp68_ = editable_filesize;
#line 4666 "/home/jens/Source/shotwell/src/Photo.vala"
gee_abstract_map_set (G_TYPE_CHECK_INSTANCE_CAST (_tmp66_, GEE_TYPE_ABSTRACT_MAP, GeeAbstractMap), _tmp67_, &_tmp68_);
#line 4667 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp69_ = self->priv->filesize_to_photo;
#line 4667 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp70_ = editable_filesize;
#line 4667 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp71_ = photo;
#line 4667 "/home/jens/Source/shotwell/src/Photo.vala"
gee_multi_map_set (_tmp69_, &_tmp70_, _tmp71_);
#line 36122 "Photo.c"
}
#line 4646 "/home/jens/Source/shotwell/src/Photo.vala"
_g_free0 (_tmp25_);
#line 36126 "Photo.c"
}
#line 4641 "/home/jens/Source/shotwell/src/Photo.vala"
_g_object_unref0 (photo);
#line 4641 "/home/jens/Source/shotwell/src/Photo.vala"
_alteration_unref0 (alteration);
#line 4641 "/home/jens/Source/shotwell/src/Photo.vala"
_g_object_unref0 (object);
#line 36134 "Photo.c"
}
#line 4641 "/home/jens/Source/shotwell/src/Photo.vala"
_g_object_unref0 (_object_it);
#line 36138 "Photo.c"
}
#line 4672 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp72_ = items;
#line 4672 "/home/jens/Source/shotwell/src/Photo.vala"
DATA_COLLECTION_CLASS (library_photo_source_collection_parent_class)->items_altered (G_TYPE_CHECK_INSTANCE_CAST (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_MEDIA_SOURCE_COLLECTION, MediaSourceCollection), TYPE_DATA_COLLECTION, DataCollection), _tmp72_);
#line 36144 "Photo.c"
}
static void library_photo_source_collection_real_postprocess_imported_media (MediaSourceCollection* base, GeeCollection* media_sources) {
LibraryPhotoSourceCollection * self;
GeeHashMultiMap* map = NULL;
GeeHashMultiMap* _tmp0_ = NULL;
GeeCollection* _tmp97_ = NULL;
#line 4676 "/home/jens/Source/shotwell/src/Photo.vala"
self = G_TYPE_CHECK_INSTANCE_CAST (base, TYPE_LIBRARY_PHOTO_SOURCE_COLLECTION, LibraryPhotoSourceCollection);
#line 4676 "/home/jens/Source/shotwell/src/Photo.vala"
g_return_if_fail (GEE_IS_COLLECTION (media_sources));
#line 4677 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp0_ = gee_hash_multi_map_new (TYPE_TAG, (GBoxedCopyFunc) g_object_ref, g_object_unref, TYPE_LIBRARY_PHOTO, (GBoxedCopyFunc) g_object_ref, g_object_unref, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL);
#line 4677 "/home/jens/Source/shotwell/src/Photo.vala"
map = _tmp0_;
#line 36161 "Photo.c"
{
GeeIterator* _media_it = NULL;
GeeCollection* _tmp1_ = NULL;
GeeIterator* _tmp2_ = NULL;
#line 4678 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp1_ = media_sources;
#line 4678 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp2_ = gee_iterable_iterator (G_TYPE_CHECK_INSTANCE_CAST (_tmp1_, GEE_TYPE_ITERABLE, GeeIterable));
#line 4678 "/home/jens/Source/shotwell/src/Photo.vala"
_media_it = _tmp2_;
#line 4678 "/home/jens/Source/shotwell/src/Photo.vala"
while (TRUE) {
#line 36174 "Photo.c"
GeeIterator* _tmp3_ = NULL;
gboolean _tmp4_ = FALSE;
MediaSource* media = NULL;
GeeIterator* _tmp5_ = NULL;
gpointer _tmp6_ = NULL;
LibraryPhoto* photo = NULL;
MediaSource* _tmp7_ = NULL;
LibraryPhoto* _tmp8_ = NULL;
PhotoMetadata* metadata = NULL;
LibraryPhoto* _tmp9_ = NULL;
PhotoMetadata* _tmp10_ = NULL;
HierarchicalTagIndex* global_index = NULL;
HierarchicalTagIndex* _tmp11_ = NULL;
HierarchicalTagIndex* htag_index = NULL;
PhotoMetadata* _tmp12_ = NULL;
gboolean _tmp13_ = FALSE;
LibraryPhoto* _tmp18_ = NULL;
GeeCollection* _tmp19_ = NULL;
GeeCollection* _tmp20_ = NULL;
gboolean _tmp21_ = FALSE;
PhotoMetadata* _tmp55_ = NULL;
gboolean _tmp56_ = FALSE;
#line 4678 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp3_ = _media_it;
#line 4678 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp4_ = gee_iterator_next (_tmp3_);
#line 4678 "/home/jens/Source/shotwell/src/Photo.vala"
if (!_tmp4_) {
#line 4678 "/home/jens/Source/shotwell/src/Photo.vala"
break;
#line 36205 "Photo.c"
}
#line 4678 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp5_ = _media_it;
#line 4678 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp6_ = gee_iterator_get (_tmp5_);
#line 4678 "/home/jens/Source/shotwell/src/Photo.vala"
media = (MediaSource*) _tmp6_;
#line 4679 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp7_ = media;
#line 4679 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp8_ = _g_object_ref0 (G_TYPE_CHECK_INSTANCE_CAST (_tmp7_, TYPE_LIBRARY_PHOTO, LibraryPhoto));
#line 4679 "/home/jens/Source/shotwell/src/Photo.vala"
photo = _tmp8_;
#line 4680 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp9_ = photo;
#line 4680 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp10_ = photo_source_get_metadata (G_TYPE_CHECK_INSTANCE_CAST (_tmp9_, TYPE_PHOTO_SOURCE, PhotoSource));
#line 4680 "/home/jens/Source/shotwell/src/Photo.vala"
metadata = _tmp10_;
#line 4683 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp11_ = hierarchical_tag_index_get_global_index ();
#line 4683 "/home/jens/Source/shotwell/src/Photo.vala"
global_index = _tmp11_;
#line 4690 "/home/jens/Source/shotwell/src/Photo.vala"
htag_index = NULL;
#line 4691 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp12_ = metadata;
#line 4691 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp13_ = photo_metadata_has_hierarchical_keywords (_tmp12_);
#line 4691 "/home/jens/Source/shotwell/src/Photo.vala"
if (_tmp13_) {
#line 36237 "Photo.c"
PhotoMetadata* _tmp14_ = NULL;
GeeSet* _tmp15_ = NULL;
GeeSet* _tmp16_ = NULL;
HierarchicalTagIndex* _tmp17_ = NULL;
#line 4692 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp14_ = metadata;
#line 4692 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp15_ = photo_metadata_get_hierarchical_keywords (_tmp14_);
#line 4692 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp16_ = _tmp15_;
#line 4692 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp17_ = hierarchical_tag_utilities_process_hierarchical_import_keywords (G_TYPE_CHECK_INSTANCE_CAST (_tmp16_, GEE_TYPE_COLLECTION, GeeCollection));
#line 4692 "/home/jens/Source/shotwell/src/Photo.vala"
_hierarchical_tag_index_unref0 (htag_index);
#line 4692 "/home/jens/Source/shotwell/src/Photo.vala"
htag_index = _tmp17_;
#line 4692 "/home/jens/Source/shotwell/src/Photo.vala"
_g_object_unref0 (_tmp16_);
#line 36256 "Photo.c"
}
#line 4696 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp18_ = photo;
#line 4696 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp19_ = library_photo_get_import_keywords (_tmp18_);
#line 4696 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp20_ = _tmp19_;
#line 4696 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp21_ = _tmp20_ != NULL;
#line 4696 "/home/jens/Source/shotwell/src/Photo.vala"
_g_object_unref0 (_tmp20_);
#line 4696 "/home/jens/Source/shotwell/src/Photo.vala"
if (_tmp21_) {
#line 36270 "Photo.c"
{
GeeIterator* _keyword_it = NULL;
LibraryPhoto* _tmp22_ = NULL;
GeeCollection* _tmp23_ = NULL;
GeeCollection* _tmp24_ = NULL;
GeeIterator* _tmp25_ = NULL;
GeeIterator* _tmp26_ = NULL;
#line 4697 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp22_ = photo;
#line 4697 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp23_ = library_photo_get_import_keywords (_tmp22_);
#line 4697 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp24_ = _tmp23_;
#line 4697 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp25_ = gee_iterable_iterator (G_TYPE_CHECK_INSTANCE_CAST (_tmp24_, GEE_TYPE_ITERABLE, GeeIterable));
#line 4697 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp26_ = _tmp25_;
#line 4697 "/home/jens/Source/shotwell/src/Photo.vala"
_g_object_unref0 (_tmp24_);
#line 4697 "/home/jens/Source/shotwell/src/Photo.vala"
_keyword_it = _tmp26_;
#line 4697 "/home/jens/Source/shotwell/src/Photo.vala"
while (TRUE) {
#line 36294 "Photo.c"
GeeIterator* _tmp27_ = NULL;
gboolean _tmp28_ = FALSE;
gchar* keyword = NULL;
GeeIterator* _tmp29_ = NULL;
gpointer _tmp30_ = NULL;
gboolean _tmp31_ = FALSE;
HierarchicalTagIndex* _tmp32_ = NULL;
gchar* name = NULL;
const gchar* _tmp36_ = NULL;
gchar* _tmp37_ = NULL;
HierarchicalTagIndex* _tmp38_ = NULL;
const gchar* _tmp39_ = NULL;
gboolean _tmp40_ = FALSE;
const gchar* _tmp49_ = NULL;
#line 4697 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp27_ = _keyword_it;
#line 4697 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp28_ = gee_iterator_next (_tmp27_);
#line 4697 "/home/jens/Source/shotwell/src/Photo.vala"
if (!_tmp28_) {
#line 4697 "/home/jens/Source/shotwell/src/Photo.vala"
break;
#line 36317 "Photo.c"
}
#line 4697 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp29_ = _keyword_it;
#line 4697 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp30_ = gee_iterator_get (_tmp29_);
#line 4697 "/home/jens/Source/shotwell/src/Photo.vala"
keyword = (gchar*) _tmp30_;
#line 4698 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp32_ = htag_index;
#line 4698 "/home/jens/Source/shotwell/src/Photo.vala"
if (_tmp32_ != NULL) {
#line 36329 "Photo.c"
HierarchicalTagIndex* _tmp33_ = NULL;
const gchar* _tmp34_ = NULL;
gboolean _tmp35_ = FALSE;
#line 4698 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp33_ = htag_index;
#line 4698 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp34_ = keyword;
#line 4698 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp35_ = hierarchical_tag_index_is_tag_in_index (_tmp33_, _tmp34_);
#line 4698 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp31_ = _tmp35_;
#line 36341 "Photo.c"
} else {
#line 4698 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp31_ = FALSE;
#line 36345 "Photo.c"
}
#line 4698 "/home/jens/Source/shotwell/src/Photo.vala"
if (_tmp31_) {
#line 4699 "/home/jens/Source/shotwell/src/Photo.vala"
_g_free0 (keyword);
#line 4699 "/home/jens/Source/shotwell/src/Photo.vala"
continue;
#line 36353 "Photo.c"
}
#line 4701 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp36_ = keyword;
#line 4701 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp37_ = tag_prep_tag_name (_tmp36_);
#line 4701 "/home/jens/Source/shotwell/src/Photo.vala"
name = _tmp37_;
#line 4703 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp38_ = global_index;
#line 4703 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp39_ = name;
#line 4703 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp40_ = hierarchical_tag_index_is_tag_in_index (_tmp38_, _tmp39_);
#line 4703 "/home/jens/Source/shotwell/src/Photo.vala"
if (_tmp40_) {
#line 36369 "Photo.c"
gchar* most_derived_path = NULL;
HierarchicalTagIndex* _tmp41_ = NULL;
const gchar* _tmp42_ = NULL;
gchar* _tmp43_ = NULL;
GeeHashMultiMap* _tmp44_ = NULL;
const gchar* _tmp45_ = NULL;
Tag* _tmp46_ = NULL;
Tag* _tmp47_ = NULL;
LibraryPhoto* _tmp48_ = NULL;
#line 4704 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp41_ = global_index;
#line 4704 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp42_ = name;
#line 4704 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp43_ = hierarchical_tag_index_get_path_for_name (_tmp41_, _tmp42_);
#line 4704 "/home/jens/Source/shotwell/src/Photo.vala"
most_derived_path = _tmp43_;
#line 4705 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp44_ = map;
#line 4705 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp45_ = most_derived_path;
#line 4705 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp46_ = tag_for_path (_tmp45_);
#line 4705 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp47_ = _tmp46_;
#line 4705 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp48_ = photo;
#line 4705 "/home/jens/Source/shotwell/src/Photo.vala"
gee_multi_map_set (G_TYPE_CHECK_INSTANCE_CAST (_tmp44_, GEE_TYPE_MULTI_MAP, GeeMultiMap), _tmp47_, _tmp48_);
#line 4705 "/home/jens/Source/shotwell/src/Photo.vala"
_g_object_unref0 (_tmp47_);
#line 4706 "/home/jens/Source/shotwell/src/Photo.vala"
_g_free0 (most_derived_path);
#line 4706 "/home/jens/Source/shotwell/src/Photo.vala"
_g_free0 (name);
#line 4706 "/home/jens/Source/shotwell/src/Photo.vala"
_g_free0 (keyword);
#line 4706 "/home/jens/Source/shotwell/src/Photo.vala"
continue;
#line 36409 "Photo.c"
}
#line 4709 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp49_ = name;
#line 4709 "/home/jens/Source/shotwell/src/Photo.vala"
if (_tmp49_ != NULL) {
#line 36415 "Photo.c"
GeeHashMultiMap* _tmp50_ = NULL;
const gchar* _tmp51_ = NULL;
Tag* _tmp52_ = NULL;
Tag* _tmp53_ = NULL;
LibraryPhoto* _tmp54_ = NULL;
#line 4710 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp50_ = map;
#line 4710 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp51_ = name;
#line 4710 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp52_ = tag_for_path (_tmp51_);
#line 4710 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp53_ = _tmp52_;
#line 4710 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp54_ = photo;
#line 4710 "/home/jens/Source/shotwell/src/Photo.vala"
gee_multi_map_set (G_TYPE_CHECK_INSTANCE_CAST (_tmp50_, GEE_TYPE_MULTI_MAP, GeeMultiMap), _tmp53_, _tmp54_);
#line 4710 "/home/jens/Source/shotwell/src/Photo.vala"
_g_object_unref0 (_tmp53_);
#line 36435 "Photo.c"
}
#line 4697 "/home/jens/Source/shotwell/src/Photo.vala"
_g_free0 (name);
#line 4697 "/home/jens/Source/shotwell/src/Photo.vala"
_g_free0 (keyword);
#line 36441 "Photo.c"
}
#line 4697 "/home/jens/Source/shotwell/src/Photo.vala"
_g_object_unref0 (_keyword_it);
#line 36445 "Photo.c"
}
}
#line 4714 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp55_ = metadata;
#line 4714 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp56_ = photo_metadata_has_hierarchical_keywords (_tmp55_);
#line 4714 "/home/jens/Source/shotwell/src/Photo.vala"
if (_tmp56_) {
#line 36454 "Photo.c"
{
GeeIterator* _path_it = NULL;
HierarchicalTagIndex* _tmp57_ = NULL;
GeeCollection* _tmp58_ = NULL;
GeeCollection* _tmp59_ = NULL;
GeeIterator* _tmp60_ = NULL;
GeeIterator* _tmp61_ = NULL;
#line 4715 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp57_ = htag_index;
#line 4715 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp58_ = hierarchical_tag_index_get_all_paths (_tmp57_);
#line 4715 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp59_ = _tmp58_;
#line 4715 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp60_ = gee_iterable_iterator (G_TYPE_CHECK_INSTANCE_CAST (_tmp59_, GEE_TYPE_ITERABLE, GeeIterable));
#line 4715 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp61_ = _tmp60_;
#line 4715 "/home/jens/Source/shotwell/src/Photo.vala"
_g_object_unref0 (_tmp59_);
#line 4715 "/home/jens/Source/shotwell/src/Photo.vala"
_path_it = _tmp61_;
#line 4715 "/home/jens/Source/shotwell/src/Photo.vala"
while (TRUE) {
#line 36478 "Photo.c"
GeeIterator* _tmp62_ = NULL;
gboolean _tmp63_ = FALSE;
gchar* path = NULL;
GeeIterator* _tmp64_ = NULL;
gpointer _tmp65_ = NULL;
gchar* name = NULL;
const gchar* _tmp66_ = NULL;
gchar* _tmp67_ = NULL;
const gchar* _tmp68_ = NULL;
#line 4715 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp62_ = _path_it;
#line 4715 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp63_ = gee_iterator_next (_tmp62_);
#line 4715 "/home/jens/Source/shotwell/src/Photo.vala"
if (!_tmp63_) {
#line 4715 "/home/jens/Source/shotwell/src/Photo.vala"
break;
#line 36496 "Photo.c"
}
#line 4715 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp64_ = _path_it;
#line 4715 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp65_ = gee_iterator_get (_tmp64_);
#line 4715 "/home/jens/Source/shotwell/src/Photo.vala"
path = (gchar*) _tmp65_;
#line 4716 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp66_ = path;
#line 4716 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp67_ = tag_prep_tag_name (_tmp66_);
#line 4716 "/home/jens/Source/shotwell/src/Photo.vala"
name = _tmp67_;
#line 4717 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp68_ = name;
#line 4717 "/home/jens/Source/shotwell/src/Photo.vala"
if (_tmp68_ != NULL) {
#line 36514 "Photo.c"
GeeHashMultiMap* _tmp69_ = NULL;
const gchar* _tmp70_ = NULL;
Tag* _tmp71_ = NULL;
Tag* _tmp72_ = NULL;
LibraryPhoto* _tmp73_ = NULL;
#line 4718 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp69_ = map;
#line 4718 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp70_ = name;
#line 4718 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp71_ = tag_for_path (_tmp70_);
#line 4718 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp72_ = _tmp71_;
#line 4718 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp73_ = photo;
#line 4718 "/home/jens/Source/shotwell/src/Photo.vala"
gee_multi_map_set (G_TYPE_CHECK_INSTANCE_CAST (_tmp69_, GEE_TYPE_MULTI_MAP, GeeMultiMap), _tmp72_, _tmp73_);
#line 4718 "/home/jens/Source/shotwell/src/Photo.vala"
_g_object_unref0 (_tmp72_);
#line 36534 "Photo.c"
}
#line 4715 "/home/jens/Source/shotwell/src/Photo.vala"
_g_free0 (name);
#line 4715 "/home/jens/Source/shotwell/src/Photo.vala"
_g_free0 (path);
#line 36540 "Photo.c"
}
#line 4715 "/home/jens/Source/shotwell/src/Photo.vala"
_g_object_unref0 (_path_it);
#line 36544 "Photo.c"
}
}
#line 4678 "/home/jens/Source/shotwell/src/Photo.vala"
_hierarchical_tag_index_unref0 (htag_index);
#line 4678 "/home/jens/Source/shotwell/src/Photo.vala"
_hierarchical_tag_index_unref0 (global_index);
#line 4678 "/home/jens/Source/shotwell/src/Photo.vala"
_media_metadata_unref0 (metadata);
#line 4678 "/home/jens/Source/shotwell/src/Photo.vala"
_g_object_unref0 (photo);
#line 4678 "/home/jens/Source/shotwell/src/Photo.vala"
_g_object_unref0 (media);
#line 36557 "Photo.c"
}
#line 4678 "/home/jens/Source/shotwell/src/Photo.vala"
_g_object_unref0 (_media_it);
#line 36561 "Photo.c"
}
{
GeeIterator* _media_it = NULL;
GeeCollection* _tmp74_ = NULL;
GeeIterator* _tmp75_ = NULL;
#line 4723 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp74_ = media_sources;
#line 4723 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp75_ = gee_iterable_iterator (G_TYPE_CHECK_INSTANCE_CAST (_tmp74_, GEE_TYPE_ITERABLE, GeeIterable));
#line 4723 "/home/jens/Source/shotwell/src/Photo.vala"
_media_it = _tmp75_;
#line 4723 "/home/jens/Source/shotwell/src/Photo.vala"
while (TRUE) {
#line 36575 "Photo.c"
GeeIterator* _tmp76_ = NULL;
gboolean _tmp77_ = FALSE;
MediaSource* media = NULL;
GeeIterator* _tmp78_ = NULL;
gpointer _tmp79_ = NULL;
LibraryPhoto* photo = NULL;
MediaSource* _tmp80_ = NULL;
LibraryPhoto* _tmp81_ = NULL;
LibraryPhoto* _tmp82_ = NULL;
#line 4723 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp76_ = _media_it;
#line 4723 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp77_ = gee_iterator_next (_tmp76_);
#line 4723 "/home/jens/Source/shotwell/src/Photo.vala"
if (!_tmp77_) {
#line 4723 "/home/jens/Source/shotwell/src/Photo.vala"
break;
#line 36593 "Photo.c"
}
#line 4723 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp78_ = _media_it;
#line 4723 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp79_ = gee_iterator_get (_tmp78_);
#line 4723 "/home/jens/Source/shotwell/src/Photo.vala"
media = (MediaSource*) _tmp79_;
#line 4724 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp80_ = media;
#line 4724 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp81_ = _g_object_ref0 (G_TYPE_CHECK_INSTANCE_CAST (_tmp80_, TYPE_LIBRARY_PHOTO, LibraryPhoto));
#line 4724 "/home/jens/Source/shotwell/src/Photo.vala"
photo = _tmp81_;
#line 4725 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp82_ = photo;
#line 4725 "/home/jens/Source/shotwell/src/Photo.vala"
library_photo_clear_import_keywords (_tmp82_);
#line 4723 "/home/jens/Source/shotwell/src/Photo.vala"
_g_object_unref0 (photo);
#line 4723 "/home/jens/Source/shotwell/src/Photo.vala"
_g_object_unref0 (media);
#line 36615 "Photo.c"
}
#line 4723 "/home/jens/Source/shotwell/src/Photo.vala"
_g_object_unref0 (_media_it);
#line 36619 "Photo.c"
}
{
GeeIterator* _tag_it = NULL;
GeeHashMultiMap* _tmp83_ = NULL;
GeeSet* _tmp84_ = NULL;
GeeSet* _tmp85_ = NULL;
GeeIterator* _tmp86_ = NULL;
GeeIterator* _tmp87_ = NULL;
#line 4728 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp83_ = map;
#line 4728 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp84_ = gee_multi_map_get_keys (G_TYPE_CHECK_INSTANCE_CAST (_tmp83_, GEE_TYPE_MULTI_MAP, GeeMultiMap));
#line 4728 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp85_ = _tmp84_;
#line 4728 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp86_ = gee_iterable_iterator (G_TYPE_CHECK_INSTANCE_CAST (_tmp85_, GEE_TYPE_ITERABLE, GeeIterable));
#line 4728 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp87_ = _tmp86_;
#line 4728 "/home/jens/Source/shotwell/src/Photo.vala"
_g_object_unref0 (_tmp85_);
#line 4728 "/home/jens/Source/shotwell/src/Photo.vala"
_tag_it = _tmp87_;
#line 4728 "/home/jens/Source/shotwell/src/Photo.vala"
while (TRUE) {
#line 36644 "Photo.c"
GeeIterator* _tmp88_ = NULL;
gboolean _tmp89_ = FALSE;
Tag* tag = NULL;
GeeIterator* _tmp90_ = NULL;
gpointer _tmp91_ = NULL;
Tag* _tmp92_ = NULL;
GeeHashMultiMap* _tmp93_ = NULL;
Tag* _tmp94_ = NULL;
GeeCollection* _tmp95_ = NULL;
GeeCollection* _tmp96_ = NULL;
#line 4728 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp88_ = _tag_it;
#line 4728 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp89_ = gee_iterator_next (_tmp88_);
#line 4728 "/home/jens/Source/shotwell/src/Photo.vala"
if (!_tmp89_) {
#line 4728 "/home/jens/Source/shotwell/src/Photo.vala"
break;
#line 36663 "Photo.c"
}
#line 4728 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp90_ = _tag_it;
#line 4728 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp91_ = gee_iterator_get (_tmp90_);
#line 4728 "/home/jens/Source/shotwell/src/Photo.vala"
tag = (Tag*) _tmp91_;
#line 4729 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp92_ = tag;
#line 4729 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp93_ = map;
#line 4729 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp94_ = tag;
#line 4729 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp95_ = gee_multi_map_get (G_TYPE_CHECK_INSTANCE_CAST (_tmp93_, GEE_TYPE_MULTI_MAP, GeeMultiMap), _tmp94_);
#line 4729 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp96_ = _tmp95_;
#line 4729 "/home/jens/Source/shotwell/src/Photo.vala"
tag_attach_many (_tmp92_, _tmp96_);
#line 4729 "/home/jens/Source/shotwell/src/Photo.vala"
_g_object_unref0 (_tmp96_);
#line 4728 "/home/jens/Source/shotwell/src/Photo.vala"
_g_object_unref0 (tag);
#line 36687 "Photo.c"
}
#line 4728 "/home/jens/Source/shotwell/src/Photo.vala"
_g_object_unref0 (_tag_it);
#line 36691 "Photo.c"
}
#line 4731 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp97_ = media_sources;
#line 4731 "/home/jens/Source/shotwell/src/Photo.vala"
MEDIA_SOURCE_COLLECTION_CLASS (library_photo_source_collection_parent_class)->postprocess_imported_media (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_MEDIA_SOURCE_COLLECTION, MediaSourceCollection), _tmp97_);
#line 4676 "/home/jens/Source/shotwell/src/Photo.vala"
_g_object_unref0 (map);
#line 36699 "Photo.c"
}
static void library_photo_source_collection_real_notify_master_reimported (LibraryPhotoSourceCollection* self, LibraryPhoto* photo, PhotoMetadata* metadata) {
LibraryPhoto* _tmp0_ = NULL;
PhotoMetadata* _tmp1_ = NULL;
#line 4735 "/home/jens/Source/shotwell/src/Photo.vala"
g_return_if_fail (IS_LIBRARY_PHOTO (photo));
#line 4735 "/home/jens/Source/shotwell/src/Photo.vala"
g_return_if_fail ((metadata == NULL) || IS_PHOTO_METADATA (metadata));
#line 4736 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp0_ = photo;
#line 4736 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp1_ = metadata;
#line 4736 "/home/jens/Source/shotwell/src/Photo.vala"
g_signal_emit_by_name (self, "master-reimported", _tmp0_, _tmp1_);
#line 36716 "Photo.c"
}
void library_photo_source_collection_notify_master_reimported (LibraryPhotoSourceCollection* self, LibraryPhoto* photo, PhotoMetadata* metadata) {
#line 4735 "/home/jens/Source/shotwell/src/Photo.vala"
g_return_if_fail (IS_LIBRARY_PHOTO_SOURCE_COLLECTION (self));
#line 4735 "/home/jens/Source/shotwell/src/Photo.vala"
LIBRARY_PHOTO_SOURCE_COLLECTION_GET_CLASS (self)->notify_master_reimported (self, photo, metadata);
#line 36725 "Photo.c"
}
static void library_photo_source_collection_real_notify_editable_reimported (LibraryPhotoSourceCollection* self, LibraryPhoto* photo, PhotoMetadata* metadata) {
LibraryPhoto* _tmp0_ = NULL;
PhotoMetadata* _tmp1_ = NULL;
#line 4740 "/home/jens/Source/shotwell/src/Photo.vala"
g_return_if_fail (IS_LIBRARY_PHOTO (photo));
#line 4740 "/home/jens/Source/shotwell/src/Photo.vala"
g_return_if_fail ((metadata == NULL) || IS_PHOTO_METADATA (metadata));
#line 4741 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp0_ = photo;
#line 4741 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp1_ = metadata;
#line 4741 "/home/jens/Source/shotwell/src/Photo.vala"
g_signal_emit_by_name (self, "editable-reimported", _tmp0_, _tmp1_);
#line 36742 "Photo.c"
}
void library_photo_source_collection_notify_editable_reimported (LibraryPhotoSourceCollection* self, LibraryPhoto* photo, PhotoMetadata* metadata) {
#line 4740 "/home/jens/Source/shotwell/src/Photo.vala"
g_return_if_fail (IS_LIBRARY_PHOTO_SOURCE_COLLECTION (self));
#line 4740 "/home/jens/Source/shotwell/src/Photo.vala"
LIBRARY_PHOTO_SOURCE_COLLECTION_GET_CLASS (self)->notify_editable_reimported (self, photo, metadata);
#line 36751 "Photo.c"
}
static void library_photo_source_collection_real_notify_source_reimported (LibraryPhotoSourceCollection* self, LibraryPhoto* photo, PhotoMetadata* metadata) {
LibraryPhoto* _tmp0_ = NULL;
PhotoMetadata* _tmp1_ = NULL;
#line 4745 "/home/jens/Source/shotwell/src/Photo.vala"
g_return_if_fail (IS_LIBRARY_PHOTO (photo));
#line 4745 "/home/jens/Source/shotwell/src/Photo.vala"
g_return_if_fail ((metadata == NULL) || IS_PHOTO_METADATA (metadata));
#line 4746 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp0_ = photo;
#line 4746 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp1_ = metadata;
#line 4746 "/home/jens/Source/shotwell/src/Photo.vala"
g_signal_emit_by_name (self, "source-reimported", _tmp0_, _tmp1_);
#line 36768 "Photo.c"
}
void library_photo_source_collection_notify_source_reimported (LibraryPhotoSourceCollection* self, LibraryPhoto* photo, PhotoMetadata* metadata) {
#line 4745 "/home/jens/Source/shotwell/src/Photo.vala"
g_return_if_fail (IS_LIBRARY_PHOTO_SOURCE_COLLECTION (self));
#line 4745 "/home/jens/Source/shotwell/src/Photo.vala"
LIBRARY_PHOTO_SOURCE_COLLECTION_GET_CLASS (self)->notify_source_reimported (self, photo, metadata);
#line 36777 "Photo.c"
}
static void library_photo_source_collection_real_notify_baseline_reimported (LibraryPhotoSourceCollection* self, LibraryPhoto* photo, PhotoMetadata* metadata) {
LibraryPhoto* _tmp0_ = NULL;
PhotoMetadata* _tmp1_ = NULL;
#line 4750 "/home/jens/Source/shotwell/src/Photo.vala"
g_return_if_fail (IS_LIBRARY_PHOTO (photo));
#line 4750 "/home/jens/Source/shotwell/src/Photo.vala"
g_return_if_fail ((metadata == NULL) || IS_PHOTO_METADATA (metadata));
#line 4751 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp0_ = photo;
#line 4751 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp1_ = metadata;
#line 4751 "/home/jens/Source/shotwell/src/Photo.vala"
g_signal_emit_by_name (self, "baseline-reimported", _tmp0_, _tmp1_);
#line 36794 "Photo.c"
}
void library_photo_source_collection_notify_baseline_reimported (LibraryPhotoSourceCollection* self, LibraryPhoto* photo, PhotoMetadata* metadata) {
#line 4750 "/home/jens/Source/shotwell/src/Photo.vala"
g_return_if_fail (IS_LIBRARY_PHOTO_SOURCE_COLLECTION (self));
#line 4750 "/home/jens/Source/shotwell/src/Photo.vala"
LIBRARY_PHOTO_SOURCE_COLLECTION_GET_CLASS (self)->notify_baseline_reimported (self, photo, metadata);
#line 36803 "Photo.c"
}
static MediaSource* library_photo_source_collection_real_fetch_by_numeric_id (MediaSourceCollection* base, gint64 numeric_id) {
LibraryPhotoSourceCollection * self;
MediaSource* result = NULL;
gint64 _tmp0_ = 0LL;
PhotoID _tmp1_ = {0};
LibraryPhoto* _tmp2_ = NULL;
#line 4754 "/home/jens/Source/shotwell/src/Photo.vala"
self = G_TYPE_CHECK_INSTANCE_CAST (base, TYPE_LIBRARY_PHOTO_SOURCE_COLLECTION, LibraryPhotoSourceCollection);
#line 4755 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp0_ = numeric_id;
#line 4755 "/home/jens/Source/shotwell/src/Photo.vala"
photo_id_init (&_tmp1_, _tmp0_);
#line 4755 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp2_ = library_photo_source_collection_fetch (self, &_tmp1_);
#line 4755 "/home/jens/Source/shotwell/src/Photo.vala"
result = G_TYPE_CHECK_INSTANCE_CAST (_tmp2_, TYPE_MEDIA_SOURCE, MediaSource);
#line 4755 "/home/jens/Source/shotwell/src/Photo.vala"
return result;
#line 36825 "Photo.c"
}
static void library_photo_source_collection_on_trashcan_contents_altered (LibraryPhotoSourceCollection* self, GeeCollection* added, GeeCollection* removed) {
GeeCollection* _tmp0_ = NULL;
GeeCollection* _tmp1_ = NULL;
#line 4758 "/home/jens/Source/shotwell/src/Photo.vala"
g_return_if_fail (IS_LIBRARY_PHOTO_SOURCE_COLLECTION (self));
#line 4758 "/home/jens/Source/shotwell/src/Photo.vala"
g_return_if_fail ((added == NULL) || GEE_IS_COLLECTION (added));
#line 4758 "/home/jens/Source/shotwell/src/Photo.vala"
g_return_if_fail ((removed == NULL) || GEE_IS_COLLECTION (removed));
#line 4760 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp0_ = added;
#line 4760 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp1_ = removed;
#line 4760 "/home/jens/Source/shotwell/src/Photo.vala"
g_signal_emit_by_name (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_MEDIA_SOURCE_COLLECTION, MediaSourceCollection), "trashcan-contents-altered", G_TYPE_CHECK_INSTANCE_CAST (_tmp0_, GEE_TYPE_COLLECTION, GeeCollection), G_TYPE_CHECK_INSTANCE_CAST (_tmp1_, GEE_TYPE_COLLECTION, GeeCollection));
#line 36844 "Photo.c"
}
static gboolean library_photo_source_collection_check_if_trashed_photo (LibraryPhotoSourceCollection* self, DataSource* source, Alteration* alteration) {
gboolean result = FALSE;
DataSource* _tmp0_ = NULL;
gboolean _tmp1_ = FALSE;
#line 4764 "/home/jens/Source/shotwell/src/Photo.vala"
g_return_val_if_fail (IS_LIBRARY_PHOTO_SOURCE_COLLECTION (self), FALSE);
#line 4764 "/home/jens/Source/shotwell/src/Photo.vala"
g_return_val_if_fail (IS_DATA_SOURCE (source), FALSE);
#line 4764 "/home/jens/Source/shotwell/src/Photo.vala"
g_return_val_if_fail (IS_ALTERATION (alteration), FALSE);
#line 4765 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp0_ = source;
#line 4765 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp1_ = media_source_is_trashed (G_TYPE_CHECK_INSTANCE_CAST (G_TYPE_CHECK_INSTANCE_CAST (_tmp0_, TYPE_LIBRARY_PHOTO, LibraryPhoto), TYPE_MEDIA_SOURCE, MediaSource));
#line 4765 "/home/jens/Source/shotwell/src/Photo.vala"
result = _tmp1_;
#line 4765 "/home/jens/Source/shotwell/src/Photo.vala"
return result;
#line 36866 "Photo.c"
}
static void library_photo_source_collection_on_offline_contents_altered (LibraryPhotoSourceCollection* self, GeeCollection* added, GeeCollection* removed) {
GeeCollection* _tmp0_ = NULL;
GeeCollection* _tmp1_ = NULL;
#line 4768 "/home/jens/Source/shotwell/src/Photo.vala"
g_return_if_fail (IS_LIBRARY_PHOTO_SOURCE_COLLECTION (self));
#line 4768 "/home/jens/Source/shotwell/src/Photo.vala"
g_return_if_fail ((added == NULL) || GEE_IS_COLLECTION (added));
#line 4768 "/home/jens/Source/shotwell/src/Photo.vala"
g_return_if_fail ((removed == NULL) || GEE_IS_COLLECTION (removed));
#line 4770 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp0_ = added;
#line 4770 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp1_ = removed;
#line 4770 "/home/jens/Source/shotwell/src/Photo.vala"
g_signal_emit_by_name (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_MEDIA_SOURCE_COLLECTION, MediaSourceCollection), "offline-contents-altered", G_TYPE_CHECK_INSTANCE_CAST (_tmp0_, GEE_TYPE_COLLECTION, GeeCollection), G_TYPE_CHECK_INSTANCE_CAST (_tmp1_, GEE_TYPE_COLLECTION, GeeCollection));
#line 36885 "Photo.c"
}
static gboolean library_photo_source_collection_check_if_offline_photo (LibraryPhotoSourceCollection* self, DataSource* source, Alteration* alteration) {
gboolean result = FALSE;
DataSource* _tmp0_ = NULL;
gboolean _tmp1_ = FALSE;
#line 4774 "/home/jens/Source/shotwell/src/Photo.vala"
g_return_val_if_fail (IS_LIBRARY_PHOTO_SOURCE_COLLECTION (self), FALSE);
#line 4774 "/home/jens/Source/shotwell/src/Photo.vala"
g_return_val_if_fail (IS_DATA_SOURCE (source), FALSE);
#line 4774 "/home/jens/Source/shotwell/src/Photo.vala"
g_return_val_if_fail (IS_ALTERATION (alteration), FALSE);
#line 4775 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp0_ = source;
#line 4775 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp1_ = media_source_is_offline (G_TYPE_CHECK_INSTANCE_CAST (G_TYPE_CHECK_INSTANCE_CAST (_tmp0_, TYPE_LIBRARY_PHOTO, LibraryPhoto), TYPE_MEDIA_SOURCE, MediaSource));
#line 4775 "/home/jens/Source/shotwell/src/Photo.vala"
result = _tmp1_;
#line 4775 "/home/jens/Source/shotwell/src/Photo.vala"
return result;
#line 36907 "Photo.c"
}
static glong string_strnlen (gchar* str, glong maxlen) {
glong result = 0L;
gchar* end = NULL;
gchar* _tmp0_ = NULL;
glong _tmp1_ = 0L;
gchar* _tmp2_ = NULL;
gchar* _tmp3_ = NULL;
#line 1295 "/usr/share/vala-0.34/vapi/glib-2.0.vapi"
_tmp0_ = str;
#line 1295 "/usr/share/vala-0.34/vapi/glib-2.0.vapi"
_tmp1_ = maxlen;
#line 1295 "/usr/share/vala-0.34/vapi/glib-2.0.vapi"
_tmp2_ = memchr (_tmp0_, 0, (gsize) _tmp1_);
#line 1295 "/usr/share/vala-0.34/vapi/glib-2.0.vapi"
end = _tmp2_;
#line 1296 "/usr/share/vala-0.34/vapi/glib-2.0.vapi"
_tmp3_ = end;
#line 1296 "/usr/share/vala-0.34/vapi/glib-2.0.vapi"
if (_tmp3_ == NULL) {
#line 36930 "Photo.c"
glong _tmp4_ = 0L;
#line 1297 "/usr/share/vala-0.34/vapi/glib-2.0.vapi"
_tmp4_ = maxlen;
#line 1297 "/usr/share/vala-0.34/vapi/glib-2.0.vapi"
result = _tmp4_;
#line 1297 "/usr/share/vala-0.34/vapi/glib-2.0.vapi"
return result;
#line 36938 "Photo.c"
} else {
gchar* _tmp5_ = NULL;
gchar* _tmp6_ = NULL;
#line 1299 "/usr/share/vala-0.34/vapi/glib-2.0.vapi"
_tmp5_ = end;
#line 1299 "/usr/share/vala-0.34/vapi/glib-2.0.vapi"
_tmp6_ = str;
#line 1299 "/usr/share/vala-0.34/vapi/glib-2.0.vapi"
result = (glong) (_tmp5_ - _tmp6_);
#line 1299 "/usr/share/vala-0.34/vapi/glib-2.0.vapi"
return result;
#line 36950 "Photo.c"
}
}
static gchar* string_substring (const gchar* self, glong offset, glong len) {
gchar* result = NULL;
glong string_length = 0L;
gboolean _tmp0_ = FALSE;
glong _tmp1_ = 0L;
glong _tmp8_ = 0L;
glong _tmp14_ = 0L;
glong _tmp17_ = 0L;
glong _tmp18_ = 0L;
glong _tmp19_ = 0L;
glong _tmp20_ = 0L;
glong _tmp21_ = 0L;
gchar* _tmp22_ = NULL;
#line 1306 "/usr/share/vala-0.34/vapi/glib-2.0.vapi"
g_return_val_if_fail (self != NULL, NULL);
#line 1308 "/usr/share/vala-0.34/vapi/glib-2.0.vapi"
_tmp1_ = offset;
#line 1308 "/usr/share/vala-0.34/vapi/glib-2.0.vapi"
if (_tmp1_ >= ((glong) 0)) {
#line 36974 "Photo.c"
glong _tmp2_ = 0L;
#line 1308 "/usr/share/vala-0.34/vapi/glib-2.0.vapi"
_tmp2_ = len;
#line 1308 "/usr/share/vala-0.34/vapi/glib-2.0.vapi"
_tmp0_ = _tmp2_ >= ((glong) 0);
#line 36980 "Photo.c"
} else {
#line 1308 "/usr/share/vala-0.34/vapi/glib-2.0.vapi"
_tmp0_ = FALSE;
#line 36984 "Photo.c"
}
#line 1308 "/usr/share/vala-0.34/vapi/glib-2.0.vapi"
if (_tmp0_) {
#line 36988 "Photo.c"
glong _tmp3_ = 0L;
glong _tmp4_ = 0L;
glong _tmp5_ = 0L;
#line 1310 "/usr/share/vala-0.34/vapi/glib-2.0.vapi"
_tmp3_ = offset;
#line 1310 "/usr/share/vala-0.34/vapi/glib-2.0.vapi"
_tmp4_ = len;
#line 1310 "/usr/share/vala-0.34/vapi/glib-2.0.vapi"
_tmp5_ = string_strnlen ((gchar*) self, _tmp3_ + _tmp4_);
#line 1310 "/usr/share/vala-0.34/vapi/glib-2.0.vapi"
string_length = _tmp5_;
#line 37000 "Photo.c"
} else {
gint _tmp6_ = 0;
gint _tmp7_ = 0;
#line 1312 "/usr/share/vala-0.34/vapi/glib-2.0.vapi"
_tmp6_ = strlen (self);
#line 1312 "/usr/share/vala-0.34/vapi/glib-2.0.vapi"
_tmp7_ = _tmp6_;
#line 1312 "/usr/share/vala-0.34/vapi/glib-2.0.vapi"
string_length = (glong) _tmp7_;
#line 37010 "Photo.c"
}
#line 1315 "/usr/share/vala-0.34/vapi/glib-2.0.vapi"
_tmp8_ = offset;
#line 1315 "/usr/share/vala-0.34/vapi/glib-2.0.vapi"
if (_tmp8_ < ((glong) 0)) {
#line 37016 "Photo.c"
glong _tmp9_ = 0L;
glong _tmp10_ = 0L;
glong _tmp11_ = 0L;
#line 1316 "/usr/share/vala-0.34/vapi/glib-2.0.vapi"
_tmp9_ = string_length;
#line 1316 "/usr/share/vala-0.34/vapi/glib-2.0.vapi"
_tmp10_ = offset;
#line 1316 "/usr/share/vala-0.34/vapi/glib-2.0.vapi"
offset = _tmp9_ + _tmp10_;
#line 1317 "/usr/share/vala-0.34/vapi/glib-2.0.vapi"
_tmp11_ = offset;
#line 1317 "/usr/share/vala-0.34/vapi/glib-2.0.vapi"
g_return_val_if_fail (_tmp11_ >= ((glong) 0), NULL);
#line 37030 "Photo.c"
} else {
glong _tmp12_ = 0L;
glong _tmp13_ = 0L;
#line 1319 "/usr/share/vala-0.34/vapi/glib-2.0.vapi"
_tmp12_ = offset;
#line 1319 "/usr/share/vala-0.34/vapi/glib-2.0.vapi"
_tmp13_ = string_length;
#line 1319 "/usr/share/vala-0.34/vapi/glib-2.0.vapi"
g_return_val_if_fail (_tmp12_ <= _tmp13_, NULL);
#line 37040 "Photo.c"
}
#line 1321 "/usr/share/vala-0.34/vapi/glib-2.0.vapi"
_tmp14_ = len;
#line 1321 "/usr/share/vala-0.34/vapi/glib-2.0.vapi"
if (_tmp14_ < ((glong) 0)) {
#line 37046 "Photo.c"
glong _tmp15_ = 0L;
glong _tmp16_ = 0L;
#line 1322 "/usr/share/vala-0.34/vapi/glib-2.0.vapi"
_tmp15_ = string_length;
#line 1322 "/usr/share/vala-0.34/vapi/glib-2.0.vapi"
_tmp16_ = offset;
#line 1322 "/usr/share/vala-0.34/vapi/glib-2.0.vapi"
len = _tmp15_ - _tmp16_;
#line 37055 "Photo.c"
}
#line 1324 "/usr/share/vala-0.34/vapi/glib-2.0.vapi"
_tmp17_ = offset;
#line 1324 "/usr/share/vala-0.34/vapi/glib-2.0.vapi"
_tmp18_ = len;
#line 1324 "/usr/share/vala-0.34/vapi/glib-2.0.vapi"
_tmp19_ = string_length;
#line 1324 "/usr/share/vala-0.34/vapi/glib-2.0.vapi"
g_return_val_if_fail ((_tmp17_ + _tmp18_) <= _tmp19_, NULL);
#line 1325 "/usr/share/vala-0.34/vapi/glib-2.0.vapi"
_tmp20_ = offset;
#line 1325 "/usr/share/vala-0.34/vapi/glib-2.0.vapi"
_tmp21_ = len;
#line 1325 "/usr/share/vala-0.34/vapi/glib-2.0.vapi"
_tmp22_ = g_strndup (((gchar*) self) + _tmp20_, (gsize) _tmp21_);
#line 1325 "/usr/share/vala-0.34/vapi/glib-2.0.vapi"
result = _tmp22_;
#line 1325 "/usr/share/vala-0.34/vapi/glib-2.0.vapi"
return result;
#line 37075 "Photo.c"
}
static MediaSource* library_photo_source_collection_real_fetch_by_source_id (MediaSourceCollection* base, const gchar* source_id) {
LibraryPhotoSourceCollection * self;
MediaSource* result = NULL;
const gchar* _tmp0_ = NULL;
gboolean _tmp1_ = FALSE;
gchar* numeric_only = NULL;
const gchar* _tmp2_ = NULL;
gint _tmp3_ = 0;
gint _tmp4_ = 0;
gchar* _tmp5_ = NULL;
gint64 _tmp6_ = 0LL;
MediaSource* _tmp7_ = NULL;
#line 4778 "/home/jens/Source/shotwell/src/Photo.vala"
self = G_TYPE_CHECK_INSTANCE_CAST (base, TYPE_LIBRARY_PHOTO_SOURCE_COLLECTION, LibraryPhotoSourceCollection);
#line 4778 "/home/jens/Source/shotwell/src/Photo.vala"
g_return_val_if_fail (source_id != NULL, NULL);
#line 4779 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp0_ = source_id;
#line 4779 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp1_ = g_str_has_prefix (_tmp0_, PHOTO_TYPENAME);
#line 4779 "/home/jens/Source/shotwell/src/Photo.vala"
_vala_assert (_tmp1_, "source_id.has_prefix(Photo.TYPENAME)");
#line 4780 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp2_ = source_id;
#line 4780 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp3_ = strlen (PHOTO_TYPENAME);
#line 4780 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp4_ = _tmp3_;
#line 4780 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp5_ = string_substring (_tmp2_, (glong) _tmp4_, (glong) -1);
#line 4780 "/home/jens/Source/shotwell/src/Photo.vala"
numeric_only = _tmp5_;
#line 4782 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp6_ = parse_int64 (numeric_only, 16);
#line 4782 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp7_ = media_source_collection_fetch_by_numeric_id (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_MEDIA_SOURCE_COLLECTION, MediaSourceCollection), _tmp6_);
#line 4782 "/home/jens/Source/shotwell/src/Photo.vala"
result = _tmp7_;
#line 4782 "/home/jens/Source/shotwell/src/Photo.vala"
_g_free0 (numeric_only);
#line 4782 "/home/jens/Source/shotwell/src/Photo.vala"
return result;
#line 37121 "Photo.c"
}
static GeeCollection* library_photo_source_collection_real_get_event_source_ids (MediaSourceCollection* base, EventID* event_id) {
LibraryPhotoSourceCollection * self;
GeeCollection* result = NULL;
PhotoTable* _tmp0_ = NULL;
PhotoTable* _tmp1_ = NULL;
EventID _tmp2_ = {0};
GeeArrayList* _tmp3_ = NULL;
GeeCollection* _tmp4_ = NULL;
#line 4785 "/home/jens/Source/shotwell/src/Photo.vala"
self = G_TYPE_CHECK_INSTANCE_CAST (base, TYPE_LIBRARY_PHOTO_SOURCE_COLLECTION, LibraryPhotoSourceCollection);
#line 4785 "/home/jens/Source/shotwell/src/Photo.vala"
g_return_val_if_fail (event_id != NULL, NULL);
#line 4786 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp0_ = photo_table_get_instance ();
#line 4786 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp1_ = _tmp0_;
#line 4786 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp2_ = *event_id;
#line 4786 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp3_ = photo_table_get_event_source_ids (_tmp1_, &_tmp2_);
#line 4786 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp4_ = G_TYPE_CHECK_INSTANCE_CAST (_tmp3_, GEE_TYPE_COLLECTION, GeeCollection);
#line 4786 "/home/jens/Source/shotwell/src/Photo.vala"
_database_table_unref0 (_tmp1_);
#line 4786 "/home/jens/Source/shotwell/src/Photo.vala"
result = _tmp4_;
#line 4786 "/home/jens/Source/shotwell/src/Photo.vala"
return result;
#line 37153 "Photo.c"
}
LibraryPhoto* library_photo_source_collection_fetch (LibraryPhotoSourceCollection* self, PhotoID* photo_id) {
LibraryPhoto* result = NULL;
PhotoID _tmp0_ = {0};
gint64 _tmp1_ = 0LL;
DataSource* _tmp2_ = NULL;
#line 4789 "/home/jens/Source/shotwell/src/Photo.vala"
g_return_val_if_fail (IS_LIBRARY_PHOTO_SOURCE_COLLECTION (self), NULL);
#line 4789 "/home/jens/Source/shotwell/src/Photo.vala"
g_return_val_if_fail (photo_id != NULL, NULL);
#line 4790 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp0_ = *photo_id;
#line 4790 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp1_ = _tmp0_.id;
#line 4790 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp2_ = database_source_collection_fetch_by_key (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_DATABASE_SOURCE_COLLECTION, DatabaseSourceCollection), _tmp1_);
#line 4790 "/home/jens/Source/shotwell/src/Photo.vala"
result = G_TYPE_CHECK_INSTANCE_CAST (_tmp2_, TYPE_LIBRARY_PHOTO, LibraryPhoto);
#line 4790 "/home/jens/Source/shotwell/src/Photo.vala"
return result;
#line 37176 "Photo.c"
}
LibraryPhoto* library_photo_source_collection_fetch_by_editable_file (LibraryPhotoSourceCollection* self, GFile* file) {
LibraryPhoto* result = NULL;
GeeHashMap* _tmp0_ = NULL;
GFile* _tmp1_ = NULL;
gpointer _tmp2_ = NULL;
#line 4793 "/home/jens/Source/shotwell/src/Photo.vala"
g_return_val_if_fail (IS_LIBRARY_PHOTO_SOURCE_COLLECTION (self), NULL);
#line 4793 "/home/jens/Source/shotwell/src/Photo.vala"
g_return_val_if_fail (G_IS_FILE (file), NULL);
#line 4794 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp0_ = self->priv->by_editable_file;
#line 4794 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp1_ = file;
#line 4794 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp2_ = gee_abstract_map_get (G_TYPE_CHECK_INSTANCE_CAST (_tmp0_, GEE_TYPE_ABSTRACT_MAP, GeeAbstractMap), _tmp1_);
#line 4794 "/home/jens/Source/shotwell/src/Photo.vala"
result = (LibraryPhoto*) _tmp2_;
#line 4794 "/home/jens/Source/shotwell/src/Photo.vala"
return result;
#line 37199 "Photo.c"
}
LibraryPhoto* library_photo_source_collection_fetch_by_raw_development_file (LibraryPhotoSourceCollection* self, GFile* file) {
LibraryPhoto* result = NULL;
GeeHashMap* _tmp0_ = NULL;
GFile* _tmp1_ = NULL;
gpointer _tmp2_ = NULL;
#line 4797 "/home/jens/Source/shotwell/src/Photo.vala"
g_return_val_if_fail (IS_LIBRARY_PHOTO_SOURCE_COLLECTION (self), NULL);
#line 4797 "/home/jens/Source/shotwell/src/Photo.vala"
g_return_val_if_fail (G_IS_FILE (file), NULL);
#line 4798 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp0_ = self->priv->by_raw_development_file;
#line 4798 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp1_ = file;
#line 4798 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp2_ = gee_abstract_map_get (G_TYPE_CHECK_INSTANCE_CAST (_tmp0_, GEE_TYPE_ABSTRACT_MAP, GeeAbstractMap), _tmp1_);
#line 4798 "/home/jens/Source/shotwell/src/Photo.vala"
result = (LibraryPhoto*) _tmp2_;
#line 4798 "/home/jens/Source/shotwell/src/Photo.vala"
return result;
#line 37222 "Photo.c"
}
static void library_photo_source_collection_compare_backing (LibraryPhotoSourceCollection* self, LibraryPhoto* photo, GFileInfo* info, GeeCollection* matches_master, GeeCollection* matches_editable, GeeCollection* matches_development) {
LibraryPhoto* _tmp0_ = NULL;
BackingPhotoRow* _tmp1_ = NULL;
BackingPhotoRow* _tmp2_ = NULL;
GFileInfo* _tmp3_ = NULL;
gboolean _tmp4_ = FALSE;
gboolean _tmp5_ = FALSE;
BackingPhotoRow* editable = NULL;
LibraryPhoto* _tmp8_ = NULL;
BackingPhotoRow* _tmp9_ = NULL;
gboolean _tmp10_ = FALSE;
BackingPhotoRow* _tmp11_ = NULL;
GeeCollection* development = NULL;
LibraryPhoto* _tmp17_ = NULL;
GeeCollection* _tmp18_ = NULL;
GeeCollection* _tmp19_ = NULL;
#line 4801 "/home/jens/Source/shotwell/src/Photo.vala"
g_return_if_fail (IS_LIBRARY_PHOTO_SOURCE_COLLECTION (self));
#line 4801 "/home/jens/Source/shotwell/src/Photo.vala"
g_return_if_fail (IS_LIBRARY_PHOTO (photo));
#line 4801 "/home/jens/Source/shotwell/src/Photo.vala"
g_return_if_fail (G_IS_FILE_INFO (info));
#line 4801 "/home/jens/Source/shotwell/src/Photo.vala"
g_return_if_fail (GEE_IS_COLLECTION (matches_master));
#line 4801 "/home/jens/Source/shotwell/src/Photo.vala"
g_return_if_fail (GEE_IS_COLLECTION (matches_editable));
#line 4801 "/home/jens/Source/shotwell/src/Photo.vala"
g_return_if_fail (GEE_IS_COLLECTION (matches_development));
#line 4804 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp0_ = photo;
#line 4804 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp1_ = photo_get_master_photo_row (G_TYPE_CHECK_INSTANCE_CAST (_tmp0_, TYPE_PHOTO, Photo));
#line 4804 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp2_ = _tmp1_;
#line 4804 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp3_ = info;
#line 4804 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp4_ = backing_photo_row_matches_file_info (_tmp2_, _tmp3_);
#line 4804 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp5_ = _tmp4_;
#line 4804 "/home/jens/Source/shotwell/src/Photo.vala"
_backing_photo_row_unref0 (_tmp2_);
#line 4804 "/home/jens/Source/shotwell/src/Photo.vala"
if (_tmp5_) {
#line 37270 "Photo.c"
GeeCollection* _tmp6_ = NULL;
LibraryPhoto* _tmp7_ = NULL;
#line 4805 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp6_ = matches_master;
#line 4805 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp7_ = photo;
#line 4805 "/home/jens/Source/shotwell/src/Photo.vala"
gee_collection_add (_tmp6_, _tmp7_);
#line 37279 "Photo.c"
}
#line 4807 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp8_ = photo;
#line 4807 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp9_ = photo_get_editable_photo_row (G_TYPE_CHECK_INSTANCE_CAST (_tmp8_, TYPE_PHOTO, Photo));
#line 4807 "/home/jens/Source/shotwell/src/Photo.vala"
editable = _tmp9_;
#line 4808 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp11_ = editable;
#line 4808 "/home/jens/Source/shotwell/src/Photo.vala"
if (_tmp11_ != NULL) {
#line 37291 "Photo.c"
BackingPhotoRow* _tmp12_ = NULL;
GFileInfo* _tmp13_ = NULL;
gboolean _tmp14_ = FALSE;
#line 4808 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp12_ = editable;
#line 4808 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp13_ = info;
#line 4808 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp14_ = backing_photo_row_matches_file_info (_tmp12_, _tmp13_);
#line 4808 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp10_ = _tmp14_;
#line 37303 "Photo.c"
} else {
#line 4808 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp10_ = FALSE;
#line 37307 "Photo.c"
}
#line 4808 "/home/jens/Source/shotwell/src/Photo.vala"
if (_tmp10_) {
#line 37311 "Photo.c"
GeeCollection* _tmp15_ = NULL;
LibraryPhoto* _tmp16_ = NULL;
#line 4809 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp15_ = matches_editable;
#line 4809 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp16_ = photo;
#line 4809 "/home/jens/Source/shotwell/src/Photo.vala"
gee_collection_add (_tmp15_, _tmp16_);
#line 37320 "Photo.c"
}
#line 4811 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp17_ = photo;
#line 4811 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp18_ = photo_get_raw_development_photo_rows (G_TYPE_CHECK_INSTANCE_CAST (_tmp17_, TYPE_PHOTO, Photo));
#line 4811 "/home/jens/Source/shotwell/src/Photo.vala"
development = _tmp18_;
#line 4812 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp19_ = development;
#line 4812 "/home/jens/Source/shotwell/src/Photo.vala"
if (_tmp19_ != NULL) {
#line 37332 "Photo.c"
{
GeeIterator* _row_it = NULL;
GeeCollection* _tmp20_ = NULL;
GeeIterator* _tmp21_ = NULL;
#line 4813 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp20_ = development;
#line 4813 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp21_ = gee_iterable_iterator (G_TYPE_CHECK_INSTANCE_CAST (_tmp20_, GEE_TYPE_ITERABLE, GeeIterable));
#line 4813 "/home/jens/Source/shotwell/src/Photo.vala"
_row_it = _tmp21_;
#line 4813 "/home/jens/Source/shotwell/src/Photo.vala"
while (TRUE) {
#line 37345 "Photo.c"
GeeIterator* _tmp22_ = NULL;
gboolean _tmp23_ = FALSE;
BackingPhotoRow* row = NULL;
GeeIterator* _tmp24_ = NULL;
gpointer _tmp25_ = NULL;
BackingPhotoRow* _tmp26_ = NULL;
GFileInfo* _tmp27_ = NULL;
gboolean _tmp28_ = FALSE;
#line 4813 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp22_ = _row_it;
#line 4813 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp23_ = gee_iterator_next (_tmp22_);
#line 4813 "/home/jens/Source/shotwell/src/Photo.vala"
if (!_tmp23_) {
#line 4813 "/home/jens/Source/shotwell/src/Photo.vala"
break;
#line 37362 "Photo.c"
}
#line 4813 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp24_ = _row_it;
#line 4813 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp25_ = gee_iterator_get (_tmp24_);
#line 4813 "/home/jens/Source/shotwell/src/Photo.vala"
row = (BackingPhotoRow*) _tmp25_;
#line 4814 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp26_ = row;
#line 4814 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp27_ = info;
#line 4814 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp28_ = backing_photo_row_matches_file_info (_tmp26_, _tmp27_);
#line 4814 "/home/jens/Source/shotwell/src/Photo.vala"
if (_tmp28_) {
#line 37378 "Photo.c"
GeeCollection* _tmp29_ = NULL;
LibraryPhoto* _tmp30_ = NULL;
#line 4815 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp29_ = matches_development;
#line 4815 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp30_ = photo;
#line 4815 "/home/jens/Source/shotwell/src/Photo.vala"
gee_collection_add (_tmp29_, _tmp30_);
#line 4817 "/home/jens/Source/shotwell/src/Photo.vala"
_backing_photo_row_unref0 (row);
#line 4817 "/home/jens/Source/shotwell/src/Photo.vala"
break;
#line 37391 "Photo.c"
}
#line 4813 "/home/jens/Source/shotwell/src/Photo.vala"
_backing_photo_row_unref0 (row);
#line 37395 "Photo.c"
}
#line 4813 "/home/jens/Source/shotwell/src/Photo.vala"
_g_object_unref0 (_row_it);
#line 37399 "Photo.c"
}
}
#line 4801 "/home/jens/Source/shotwell/src/Photo.vala"
_g_object_unref0 (development);
#line 4801 "/home/jens/Source/shotwell/src/Photo.vala"
_backing_photo_row_unref0 (editable);
#line 37406 "Photo.c"
}
void library_photo_source_collection_fetch_by_matching_backing (LibraryPhotoSourceCollection* self, GFileInfo* info, GeeCollection* matches_master, GeeCollection* matches_editable, GeeCollection* matched_development) {
#line 4825 "/home/jens/Source/shotwell/src/Photo.vala"
g_return_if_fail (IS_LIBRARY_PHOTO_SOURCE_COLLECTION (self));
#line 4825 "/home/jens/Source/shotwell/src/Photo.vala"
g_return_if_fail (G_IS_FILE_INFO (info));
#line 4825 "/home/jens/Source/shotwell/src/Photo.vala"
g_return_if_fail (GEE_IS_COLLECTION (matches_master));
#line 4825 "/home/jens/Source/shotwell/src/Photo.vala"
g_return_if_fail (GEE_IS_COLLECTION (matches_editable));
#line 4825 "/home/jens/Source/shotwell/src/Photo.vala"
g_return_if_fail (GEE_IS_COLLECTION (matched_development));
#line 37421 "Photo.c"
{
GeeIterator* _photo_it = NULL;
GeeMultiMap* _tmp0_ = NULL;
GFileInfo* _tmp1_ = NULL;
gint64 _tmp2_ = 0LL;
GeeCollection* _tmp3_ = NULL;
GeeCollection* _tmp4_ = NULL;
GeeIterator* _tmp5_ = NULL;
GeeIterator* _tmp6_ = NULL;
#line 4827 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp0_ = self->priv->filesize_to_photo;
#line 4827 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp1_ = info;
#line 4827 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp2_ = g_file_info_get_size (_tmp1_);
#line 4827 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp3_ = gee_multi_map_get (_tmp0_, &_tmp2_);
#line 4827 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp4_ = _tmp3_;
#line 4827 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp5_ = gee_iterable_iterator (G_TYPE_CHECK_INSTANCE_CAST (_tmp4_, GEE_TYPE_ITERABLE, GeeIterable));
#line 4827 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp6_ = _tmp5_;
#line 4827 "/home/jens/Source/shotwell/src/Photo.vala"
_g_object_unref0 (_tmp4_);
#line 4827 "/home/jens/Source/shotwell/src/Photo.vala"
_photo_it = _tmp6_;
#line 4827 "/home/jens/Source/shotwell/src/Photo.vala"
while (TRUE) {
#line 37451 "Photo.c"
GeeIterator* _tmp7_ = NULL;
gboolean _tmp8_ = FALSE;
LibraryPhoto* photo = NULL;
GeeIterator* _tmp9_ = NULL;
gpointer _tmp10_ = NULL;
LibraryPhoto* _tmp11_ = NULL;
GFileInfo* _tmp12_ = NULL;
GeeCollection* _tmp13_ = NULL;
GeeCollection* _tmp14_ = NULL;
GeeCollection* _tmp15_ = NULL;
#line 4827 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp7_ = _photo_it;
#line 4827 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp8_ = gee_iterator_next (_tmp7_);
#line 4827 "/home/jens/Source/shotwell/src/Photo.vala"
if (!_tmp8_) {
#line 4827 "/home/jens/Source/shotwell/src/Photo.vala"
break;
#line 37470 "Photo.c"
}
#line 4827 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp9_ = _photo_it;
#line 4827 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp10_ = gee_iterator_get (_tmp9_);
#line 4827 "/home/jens/Source/shotwell/src/Photo.vala"
photo = (LibraryPhoto*) _tmp10_;
#line 4828 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp11_ = photo;
#line 4828 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp12_ = info;
#line 4828 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp13_ = matches_master;
#line 4828 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp14_ = matches_editable;
#line 4828 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp15_ = matched_development;
#line 4828 "/home/jens/Source/shotwell/src/Photo.vala"
library_photo_source_collection_compare_backing (self, _tmp11_, _tmp12_, _tmp13_, _tmp14_, _tmp15_);
#line 4827 "/home/jens/Source/shotwell/src/Photo.vala"
_g_object_unref0 (photo);
#line 37492 "Photo.c"
}
#line 4827 "/home/jens/Source/shotwell/src/Photo.vala"
_g_object_unref0 (_photo_it);
#line 37496 "Photo.c"
}
{
GeeIterator* _media_it = NULL;
GeeCollection* _tmp16_ = NULL;
GeeCollection* _tmp17_ = NULL;
GeeIterator* _tmp18_ = NULL;
GeeIterator* _tmp19_ = NULL;
#line 4830 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp16_ = media_source_collection_get_offline_bin_contents (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_MEDIA_SOURCE_COLLECTION, MediaSourceCollection));
#line 4830 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp17_ = _tmp16_;
#line 4830 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp18_ = gee_iterable_iterator (G_TYPE_CHECK_INSTANCE_CAST (_tmp17_, GEE_TYPE_ITERABLE, GeeIterable));
#line 4830 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp19_ = _tmp18_;
#line 4830 "/home/jens/Source/shotwell/src/Photo.vala"
_g_object_unref0 (_tmp17_);
#line 4830 "/home/jens/Source/shotwell/src/Photo.vala"
_media_it = _tmp19_;
#line 4830 "/home/jens/Source/shotwell/src/Photo.vala"
while (TRUE) {
#line 37518 "Photo.c"
GeeIterator* _tmp20_ = NULL;
gboolean _tmp21_ = FALSE;
MediaSource* media = NULL;
GeeIterator* _tmp22_ = NULL;
gpointer _tmp23_ = NULL;
MediaSource* _tmp24_ = NULL;
GFileInfo* _tmp25_ = NULL;
GeeCollection* _tmp26_ = NULL;
GeeCollection* _tmp27_ = NULL;
GeeCollection* _tmp28_ = NULL;
#line 4830 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp20_ = _media_it;
#line 4830 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp21_ = gee_iterator_next (_tmp20_);
#line 4830 "/home/jens/Source/shotwell/src/Photo.vala"
if (!_tmp21_) {
#line 4830 "/home/jens/Source/shotwell/src/Photo.vala"
break;
#line 37537 "Photo.c"
}
#line 4830 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp22_ = _media_it;
#line 4830 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp23_ = gee_iterator_get (_tmp22_);
#line 4830 "/home/jens/Source/shotwell/src/Photo.vala"
media = (MediaSource*) _tmp23_;
#line 4831 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp24_ = media;
#line 4831 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp25_ = info;
#line 4831 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp26_ = matches_master;
#line 4831 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp27_ = matches_editable;
#line 4831 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp28_ = matched_development;
#line 4831 "/home/jens/Source/shotwell/src/Photo.vala"
library_photo_source_collection_compare_backing (self, G_TYPE_CHECK_INSTANCE_CAST (_tmp24_, TYPE_LIBRARY_PHOTO, LibraryPhoto), _tmp25_, _tmp26_, _tmp27_, _tmp28_);
#line 4830 "/home/jens/Source/shotwell/src/Photo.vala"
_g_object_unref0 (media);
#line 37559 "Photo.c"
}
#line 4830 "/home/jens/Source/shotwell/src/Photo.vala"
_g_object_unref0 (_media_it);
#line 37563 "Photo.c"
}
}
void library_photo_source_collection_get_basename_filesize_duplicate (LibraryPhotoSourceCollection* self, const gchar* basename, gint64 filesize, PhotoID* result) {
PhotoID _tmp19_ = {0};
#line 4834 "/home/jens/Source/shotwell/src/Photo.vala"
g_return_if_fail (IS_LIBRARY_PHOTO_SOURCE_COLLECTION (self));
#line 4834 "/home/jens/Source/shotwell/src/Photo.vala"
g_return_if_fail (basename != NULL);
#line 37574 "Photo.c"
{
GeeIterator* _photo_it = NULL;
GeeMultiMap* _tmp0_ = NULL;
gint64 _tmp1_ = 0LL;
GeeCollection* _tmp2_ = NULL;
GeeCollection* _tmp3_ = NULL;
GeeIterator* _tmp4_ = NULL;
GeeIterator* _tmp5_ = NULL;
#line 4835 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp0_ = self->priv->filesize_to_photo;
#line 4835 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp1_ = filesize;
#line 4835 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp2_ = gee_multi_map_get (_tmp0_, &_tmp1_);
#line 4835 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp3_ = _tmp2_;
#line 4835 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp4_ = gee_iterable_iterator (G_TYPE_CHECK_INSTANCE_CAST (_tmp3_, GEE_TYPE_ITERABLE, GeeIterable));
#line 4835 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp5_ = _tmp4_;
#line 4835 "/home/jens/Source/shotwell/src/Photo.vala"
_g_object_unref0 (_tmp3_);
#line 4835 "/home/jens/Source/shotwell/src/Photo.vala"
_photo_it = _tmp5_;
#line 4835 "/home/jens/Source/shotwell/src/Photo.vala"
while (TRUE) {
#line 37601 "Photo.c"
GeeIterator* _tmp6_ = NULL;
gboolean _tmp7_ = FALSE;
LibraryPhoto* photo = NULL;
GeeIterator* _tmp8_ = NULL;
gpointer _tmp9_ = NULL;
LibraryPhoto* _tmp10_ = NULL;
GFile* _tmp11_ = NULL;
GFile* _tmp12_ = NULL;
gchar* _tmp13_ = NULL;
const gchar* _tmp14_ = NULL;
gint _tmp15_ = 0;
gboolean _tmp16_ = FALSE;
#line 4835 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp6_ = _photo_it;
#line 4835 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp7_ = gee_iterator_next (_tmp6_);
#line 4835 "/home/jens/Source/shotwell/src/Photo.vala"
if (!_tmp7_) {
#line 4835 "/home/jens/Source/shotwell/src/Photo.vala"
break;
#line 37622 "Photo.c"
}
#line 4835 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp8_ = _photo_it;
#line 4835 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp9_ = gee_iterator_get (_tmp8_);
#line 4835 "/home/jens/Source/shotwell/src/Photo.vala"
photo = (LibraryPhoto*) _tmp9_;
#line 4836 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp10_ = photo;
#line 4836 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp11_ = media_source_get_master_file (G_TYPE_CHECK_INSTANCE_CAST (_tmp10_, TYPE_MEDIA_SOURCE, MediaSource));
#line 4836 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp12_ = _tmp11_;
#line 4836 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp13_ = g_file_get_basename (_tmp12_);
#line 4836 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp14_ = basename;
#line 4836 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp15_ = utf8_ci_compare (_tmp13_, _tmp14_);
#line 4836 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp16_ = _tmp15_ == 0;
#line 4836 "/home/jens/Source/shotwell/src/Photo.vala"
_g_object_unref0 (_tmp12_);
#line 4836 "/home/jens/Source/shotwell/src/Photo.vala"
if (_tmp16_) {
#line 37648 "Photo.c"
LibraryPhoto* _tmp17_ = NULL;
PhotoID _tmp18_ = {0};
#line 4837 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp17_ = photo;
#line 4837 "/home/jens/Source/shotwell/src/Photo.vala"
photo_get_photo_id (G_TYPE_CHECK_INSTANCE_CAST (_tmp17_, TYPE_PHOTO, Photo), &_tmp18_);
#line 4837 "/home/jens/Source/shotwell/src/Photo.vala"
*result = _tmp18_;
#line 4837 "/home/jens/Source/shotwell/src/Photo.vala"
_g_object_unref0 (photo);
#line 4837 "/home/jens/Source/shotwell/src/Photo.vala"
_g_object_unref0 (_photo_it);
#line 4837 "/home/jens/Source/shotwell/src/Photo.vala"
return;
#line 37663 "Photo.c"
}
#line 4835 "/home/jens/Source/shotwell/src/Photo.vala"
_g_object_unref0 (photo);
#line 37667 "Photo.c"
}
#line 4835 "/home/jens/Source/shotwell/src/Photo.vala"
_g_object_unref0 (_photo_it);
#line 37671 "Photo.c"
}
#line 4840 "/home/jens/Source/shotwell/src/Photo.vala"
photo_id_init (&_tmp19_, PHOTO_ID_INVALID);
#line 4840 "/home/jens/Source/shotwell/src/Photo.vala"
*result = _tmp19_;
#line 4840 "/home/jens/Source/shotwell/src/Photo.vala"
return;
#line 37679 "Photo.c"
}
gboolean library_photo_source_collection_has_basename_filesize_duplicate (LibraryPhotoSourceCollection* self, const gchar* basename, gint64 filesize) {
gboolean result = FALSE;
const gchar* _tmp0_ = NULL;
gint64 _tmp1_ = 0LL;
PhotoID _tmp2_ = {0};
gboolean _tmp3_ = FALSE;
#line 4844 "/home/jens/Source/shotwell/src/Photo.vala"
g_return_val_if_fail (IS_LIBRARY_PHOTO_SOURCE_COLLECTION (self), FALSE);
#line 4844 "/home/jens/Source/shotwell/src/Photo.vala"
g_return_val_if_fail (basename != NULL, FALSE);
#line 4845 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp0_ = basename;
#line 4845 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp1_ = filesize;
#line 4845 "/home/jens/Source/shotwell/src/Photo.vala"
library_photo_source_collection_get_basename_filesize_duplicate (self, _tmp0_, _tmp1_, &_tmp2_);
#line 4845 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp3_ = photo_id_is_valid (&_tmp2_);
#line 4845 "/home/jens/Source/shotwell/src/Photo.vala"
result = _tmp3_;
#line 4845 "/home/jens/Source/shotwell/src/Photo.vala"
return result;
#line 37705 "Photo.c"
}
LibraryPhoto* library_photo_source_collection_get_trashed_by_file (LibraryPhotoSourceCollection* self, GFile* file) {
LibraryPhoto* result = NULL;
LibraryPhoto* photo = NULL;
MediaSourceHoldingTank* _tmp0_ = NULL;
MediaSourceHoldingTank* _tmp1_ = NULL;
GFile* _tmp2_ = NULL;
MediaSource* _tmp3_ = NULL;
LibraryPhoto* _tmp4_ = NULL;
LibraryPhoto* _tmp5_ = NULL;
#line 4848 "/home/jens/Source/shotwell/src/Photo.vala"
g_return_val_if_fail (IS_LIBRARY_PHOTO_SOURCE_COLLECTION (self), NULL);
#line 4848 "/home/jens/Source/shotwell/src/Photo.vala"
g_return_val_if_fail (G_IS_FILE (file), NULL);
#line 4849 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp0_ = media_source_collection_get_trashcan (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_MEDIA_SOURCE_COLLECTION, MediaSourceCollection));
#line 4849 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp1_ = _tmp0_;
#line 4849 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp2_ = file;
#line 4849 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp3_ = media_source_holding_tank_fetch_by_master_file (_tmp1_, _tmp2_);
#line 4849 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp4_ = G_TYPE_CHECK_INSTANCE_CAST (_tmp3_, TYPE_LIBRARY_PHOTO, LibraryPhoto);
#line 4849 "/home/jens/Source/shotwell/src/Photo.vala"
_source_holding_tank_unref0 (_tmp1_);
#line 4849 "/home/jens/Source/shotwell/src/Photo.vala"
photo = _tmp4_;
#line 4850 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp5_ = photo;
#line 4850 "/home/jens/Source/shotwell/src/Photo.vala"
if (_tmp5_ == NULL) {
#line 37740 "Photo.c"
MediaSourceHoldingTank* _tmp6_ = NULL;
LibraryPhotoSourceHoldingTank* _tmp7_ = NULL;
GFile* _tmp8_ = NULL;
LibraryPhoto* _tmp9_ = NULL;
#line 4851 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp6_ = media_source_collection_get_trashcan (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_MEDIA_SOURCE_COLLECTION, MediaSourceCollection));
#line 4851 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp7_ = G_TYPE_CHECK_INSTANCE_CAST (_tmp6_, TYPE_LIBRARY_PHOTO_SOURCE_HOLDING_TANK, LibraryPhotoSourceHoldingTank);
#line 4851 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp8_ = file;
#line 4851 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp9_ = library_photo_source_holding_tank_fetch_by_backing_file (_tmp7_, _tmp8_);
#line 4851 "/home/jens/Source/shotwell/src/Photo.vala"
_g_object_unref0 (photo);
#line 4851 "/home/jens/Source/shotwell/src/Photo.vala"
photo = G_TYPE_CHECK_INSTANCE_CAST (_tmp9_, TYPE_LIBRARY_PHOTO, LibraryPhoto);
#line 4851 "/home/jens/Source/shotwell/src/Photo.vala"
_source_holding_tank_unref0 (_tmp7_);
#line 37759 "Photo.c"
}
#line 4854 "/home/jens/Source/shotwell/src/Photo.vala"
result = photo;
#line 4854 "/home/jens/Source/shotwell/src/Photo.vala"
return result;
#line 37765 "Photo.c"
}
LibraryPhoto* library_photo_source_collection_get_trashed_by_md5 (LibraryPhotoSourceCollection* self, const gchar* md5) {
LibraryPhoto* result = NULL;
MediaSourceHoldingTank* _tmp0_ = NULL;
MediaSourceHoldingTank* _tmp1_ = NULL;
const gchar* _tmp2_ = NULL;
MediaSource* _tmp3_ = NULL;
LibraryPhoto* _tmp4_ = NULL;
#line 4857 "/home/jens/Source/shotwell/src/Photo.vala"
g_return_val_if_fail (IS_LIBRARY_PHOTO_SOURCE_COLLECTION (self), NULL);
#line 4857 "/home/jens/Source/shotwell/src/Photo.vala"
g_return_val_if_fail (md5 != NULL, NULL);
#line 4858 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp0_ = media_source_collection_get_trashcan (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_MEDIA_SOURCE_COLLECTION, MediaSourceCollection));
#line 4858 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp1_ = _tmp0_;
#line 4858 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp2_ = md5;
#line 4858 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp3_ = media_source_holding_tank_fetch_by_md5 (_tmp1_, _tmp2_);
#line 4858 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp4_ = G_TYPE_CHECK_INSTANCE_CAST (_tmp3_, TYPE_LIBRARY_PHOTO, LibraryPhoto);
#line 4858 "/home/jens/Source/shotwell/src/Photo.vala"
_source_holding_tank_unref0 (_tmp1_);
#line 4858 "/home/jens/Source/shotwell/src/Photo.vala"
result = _tmp4_;
#line 4858 "/home/jens/Source/shotwell/src/Photo.vala"
return result;
#line 37796 "Photo.c"
}
LibraryPhoto* library_photo_source_collection_get_offline_by_file (LibraryPhotoSourceCollection* self, GFile* file) {
LibraryPhoto* result = NULL;
LibraryPhoto* photo = NULL;
MediaSourceHoldingTank* _tmp0_ = NULL;
MediaSourceHoldingTank* _tmp1_ = NULL;
GFile* _tmp2_ = NULL;
MediaSource* _tmp3_ = NULL;
LibraryPhoto* _tmp4_ = NULL;
LibraryPhoto* _tmp5_ = NULL;
#line 4861 "/home/jens/Source/shotwell/src/Photo.vala"
g_return_val_if_fail (IS_LIBRARY_PHOTO_SOURCE_COLLECTION (self), NULL);
#line 4861 "/home/jens/Source/shotwell/src/Photo.vala"
g_return_val_if_fail (G_IS_FILE (file), NULL);
#line 4862 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp0_ = media_source_collection_get_offline_bin (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_MEDIA_SOURCE_COLLECTION, MediaSourceCollection));
#line 4862 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp1_ = _tmp0_;
#line 4862 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp2_ = file;
#line 4862 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp3_ = media_source_holding_tank_fetch_by_master_file (_tmp1_, _tmp2_);
#line 4862 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp4_ = G_TYPE_CHECK_INSTANCE_CAST (_tmp3_, TYPE_LIBRARY_PHOTO, LibraryPhoto);
#line 4862 "/home/jens/Source/shotwell/src/Photo.vala"
_source_holding_tank_unref0 (_tmp1_);
#line 4862 "/home/jens/Source/shotwell/src/Photo.vala"
photo = _tmp4_;
#line 4863 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp5_ = photo;
#line 4863 "/home/jens/Source/shotwell/src/Photo.vala"
if (_tmp5_ == NULL) {
#line 37831 "Photo.c"
MediaSourceHoldingTank* _tmp6_ = NULL;
LibraryPhotoSourceHoldingTank* _tmp7_ = NULL;
GFile* _tmp8_ = NULL;
LibraryPhoto* _tmp9_ = NULL;
#line 4864 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp6_ = media_source_collection_get_offline_bin (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_MEDIA_SOURCE_COLLECTION, MediaSourceCollection));
#line 4864 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp7_ = G_TYPE_CHECK_INSTANCE_CAST (_tmp6_, TYPE_LIBRARY_PHOTO_SOURCE_HOLDING_TANK, LibraryPhotoSourceHoldingTank);
#line 4864 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp8_ = file;
#line 4864 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp9_ = library_photo_source_holding_tank_fetch_by_backing_file (_tmp7_, _tmp8_);
#line 4864 "/home/jens/Source/shotwell/src/Photo.vala"
_g_object_unref0 (photo);
#line 4864 "/home/jens/Source/shotwell/src/Photo.vala"
photo = G_TYPE_CHECK_INSTANCE_CAST (_tmp9_, TYPE_LIBRARY_PHOTO, LibraryPhoto);
#line 4864 "/home/jens/Source/shotwell/src/Photo.vala"
_source_holding_tank_unref0 (_tmp7_);
#line 37850 "Photo.c"
}
#line 4867 "/home/jens/Source/shotwell/src/Photo.vala"
result = photo;
#line 4867 "/home/jens/Source/shotwell/src/Photo.vala"
return result;
#line 37856 "Photo.c"
}
LibraryPhoto* library_photo_source_collection_get_offline_by_md5 (LibraryPhotoSourceCollection* self, const gchar* md5) {
LibraryPhoto* result = NULL;
MediaSourceHoldingTank* _tmp0_ = NULL;
MediaSourceHoldingTank* _tmp1_ = NULL;
const gchar* _tmp2_ = NULL;
MediaSource* _tmp3_ = NULL;
LibraryPhoto* _tmp4_ = NULL;
#line 4870 "/home/jens/Source/shotwell/src/Photo.vala"
g_return_val_if_fail (IS_LIBRARY_PHOTO_SOURCE_COLLECTION (self), NULL);
#line 4870 "/home/jens/Source/shotwell/src/Photo.vala"
g_return_val_if_fail (md5 != NULL, NULL);
#line 4871 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp0_ = media_source_collection_get_offline_bin (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_MEDIA_SOURCE_COLLECTION, MediaSourceCollection));
#line 4871 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp1_ = _tmp0_;
#line 4871 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp2_ = md5;
#line 4871 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp3_ = media_source_holding_tank_fetch_by_md5 (_tmp1_, _tmp2_);
#line 4871 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp4_ = G_TYPE_CHECK_INSTANCE_CAST (_tmp3_, TYPE_LIBRARY_PHOTO, LibraryPhoto);
#line 4871 "/home/jens/Source/shotwell/src/Photo.vala"
_source_holding_tank_unref0 (_tmp1_);
#line 4871 "/home/jens/Source/shotwell/src/Photo.vala"
result = _tmp4_;
#line 4871 "/home/jens/Source/shotwell/src/Photo.vala"
return result;
#line 37887 "Photo.c"
}
gint library_photo_source_collection_get_offline_count (LibraryPhotoSourceCollection* self) {
gint result = 0;
MediaSourceHoldingTank* _tmp0_ = NULL;
MediaSourceHoldingTank* _tmp1_ = NULL;
gint _tmp2_ = 0;
gint _tmp3_ = 0;
#line 4874 "/home/jens/Source/shotwell/src/Photo.vala"
g_return_val_if_fail (IS_LIBRARY_PHOTO_SOURCE_COLLECTION (self), 0);
#line 4875 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp0_ = media_source_collection_get_offline_bin (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_MEDIA_SOURCE_COLLECTION, MediaSourceCollection));
#line 4875 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp1_ = _tmp0_;
#line 4875 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp2_ = source_holding_tank_get_count (G_TYPE_CHECK_INSTANCE_CAST (_tmp1_, TYPE_SOURCE_HOLDING_TANK, SourceHoldingTank));
#line 4875 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp3_ = _tmp2_;
#line 4875 "/home/jens/Source/shotwell/src/Photo.vala"
_source_holding_tank_unref0 (_tmp1_);
#line 4875 "/home/jens/Source/shotwell/src/Photo.vala"
result = _tmp3_;
#line 4875 "/home/jens/Source/shotwell/src/Photo.vala"
return result;
#line 37913 "Photo.c"
}
LibraryPhoto* library_photo_source_collection_get_state_by_file (LibraryPhotoSourceCollection* self, GFile* file, LibraryPhotoSourceCollectionState* state) {
LibraryPhotoSourceCollectionState _vala_state = 0;
LibraryPhoto* result = NULL;
LibraryPhoto* photo = NULL;
GFile* _tmp0_ = NULL;
MediaSource* _tmp1_ = NULL;
LibraryPhoto* _tmp2_ = NULL;
GFile* _tmp3_ = NULL;
LibraryPhoto* _tmp4_ = NULL;
LibraryPhoto* _tmp5_ = NULL;
GFile* _tmp6_ = NULL;
LibraryPhoto* _tmp7_ = NULL;
LibraryPhoto* _tmp8_ = NULL;
GFile* _tmp9_ = NULL;
LibraryPhoto* _tmp10_ = NULL;
LibraryPhoto* _tmp11_ = NULL;
LibraryPhoto* _tmp12_ = NULL;
GFile* _tmp13_ = NULL;
LibraryPhoto* _tmp14_ = NULL;
LibraryPhoto* _tmp15_ = NULL;
LibraryPhoto* _tmp16_ = NULL;
#line 4878 "/home/jens/Source/shotwell/src/Photo.vala"
g_return_val_if_fail (IS_LIBRARY_PHOTO_SOURCE_COLLECTION (self), NULL);
#line 4878 "/home/jens/Source/shotwell/src/Photo.vala"
g_return_val_if_fail (G_IS_FILE (file), NULL);
#line 4879 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp0_ = file;
#line 4879 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp1_ = media_source_collection_fetch_by_master_file (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_MEDIA_SOURCE_COLLECTION, MediaSourceCollection), _tmp0_);
#line 4879 "/home/jens/Source/shotwell/src/Photo.vala"
photo = G_TYPE_CHECK_INSTANCE_CAST (_tmp1_, TYPE_LIBRARY_PHOTO, LibraryPhoto);
#line 4880 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp2_ = photo;
#line 4880 "/home/jens/Source/shotwell/src/Photo.vala"
if (_tmp2_ != NULL) {
#line 4881 "/home/jens/Source/shotwell/src/Photo.vala"
_vala_state = LIBRARY_PHOTO_SOURCE_COLLECTION_STATE_ONLINE;
#line 4883 "/home/jens/Source/shotwell/src/Photo.vala"
result = photo;
#line 4883 "/home/jens/Source/shotwell/src/Photo.vala"
if (state) {
#line 4883 "/home/jens/Source/shotwell/src/Photo.vala"
*state = _vala_state;
#line 37960 "Photo.c"
}
#line 4883 "/home/jens/Source/shotwell/src/Photo.vala"
return result;
#line 37964 "Photo.c"
}
#line 4886 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp3_ = file;
#line 4886 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp4_ = library_photo_source_collection_fetch_by_editable_file (self, _tmp3_);
#line 4886 "/home/jens/Source/shotwell/src/Photo.vala"
_g_object_unref0 (photo);
#line 4886 "/home/jens/Source/shotwell/src/Photo.vala"
photo = _tmp4_;
#line 4887 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp5_ = photo;
#line 4887 "/home/jens/Source/shotwell/src/Photo.vala"
if (_tmp5_ != NULL) {
#line 4888 "/home/jens/Source/shotwell/src/Photo.vala"
_vala_state = LIBRARY_PHOTO_SOURCE_COLLECTION_STATE_EDITABLE;
#line 4890 "/home/jens/Source/shotwell/src/Photo.vala"
result = photo;
#line 4890 "/home/jens/Source/shotwell/src/Photo.vala"
if (state) {
#line 4890 "/home/jens/Source/shotwell/src/Photo.vala"
*state = _vala_state;
#line 37986 "Photo.c"
}
#line 4890 "/home/jens/Source/shotwell/src/Photo.vala"
return result;
#line 37990 "Photo.c"
}
#line 4893 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp6_ = file;
#line 4893 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp7_ = library_photo_source_collection_fetch_by_raw_development_file (self, _tmp6_);
#line 4893 "/home/jens/Source/shotwell/src/Photo.vala"
_g_object_unref0 (photo);
#line 4893 "/home/jens/Source/shotwell/src/Photo.vala"
photo = _tmp7_;
#line 4894 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp8_ = photo;
#line 4894 "/home/jens/Source/shotwell/src/Photo.vala"
if (_tmp8_ != NULL) {
#line 4895 "/home/jens/Source/shotwell/src/Photo.vala"
_vala_state = LIBRARY_PHOTO_SOURCE_COLLECTION_STATE_DEVELOPER;
#line 4897 "/home/jens/Source/shotwell/src/Photo.vala"
result = photo;
#line 4897 "/home/jens/Source/shotwell/src/Photo.vala"
if (state) {
#line 4897 "/home/jens/Source/shotwell/src/Photo.vala"
*state = _vala_state;
#line 38012 "Photo.c"
}
#line 4897 "/home/jens/Source/shotwell/src/Photo.vala"
return result;
#line 38016 "Photo.c"
}
#line 4900 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp9_ = file;
#line 4900 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp10_ = library_photo_source_collection_get_trashed_by_file (self, _tmp9_);
#line 4900 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp11_ = G_TYPE_CHECK_INSTANCE_TYPE (_tmp10_, TYPE_LIBRARY_PHOTO) ? ((LibraryPhoto*) _tmp10_) : NULL;
#line 4900 "/home/jens/Source/shotwell/src/Photo.vala"
if (_tmp11_ == NULL) {
#line 4900 "/home/jens/Source/shotwell/src/Photo.vala"
_g_object_unref0 (_tmp10_);
#line 38028 "Photo.c"
}
#line 4900 "/home/jens/Source/shotwell/src/Photo.vala"
_g_object_unref0 (photo);
#line 4900 "/home/jens/Source/shotwell/src/Photo.vala"
photo = _tmp11_;
#line 4901 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp12_ = photo;
#line 4901 "/home/jens/Source/shotwell/src/Photo.vala"
if (_tmp12_ != NULL) {
#line 4902 "/home/jens/Source/shotwell/src/Photo.vala"
_vala_state = LIBRARY_PHOTO_SOURCE_COLLECTION_STATE_TRASH;
#line 4904 "/home/jens/Source/shotwell/src/Photo.vala"
result = photo;
#line 4904 "/home/jens/Source/shotwell/src/Photo.vala"
if (state) {
#line 4904 "/home/jens/Source/shotwell/src/Photo.vala"
*state = _vala_state;
#line 38046 "Photo.c"
}
#line 4904 "/home/jens/Source/shotwell/src/Photo.vala"
return result;
#line 38050 "Photo.c"
}
#line 4907 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp13_ = file;
#line 4907 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp14_ = library_photo_source_collection_get_offline_by_file (self, _tmp13_);
#line 4907 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp15_ = G_TYPE_CHECK_INSTANCE_TYPE (_tmp14_, TYPE_LIBRARY_PHOTO) ? ((LibraryPhoto*) _tmp14_) : NULL;
#line 4907 "/home/jens/Source/shotwell/src/Photo.vala"
if (_tmp15_ == NULL) {
#line 4907 "/home/jens/Source/shotwell/src/Photo.vala"
_g_object_unref0 (_tmp14_);
#line 38062 "Photo.c"
}
#line 4907 "/home/jens/Source/shotwell/src/Photo.vala"
_g_object_unref0 (photo);
#line 4907 "/home/jens/Source/shotwell/src/Photo.vala"
photo = _tmp15_;
#line 4908 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp16_ = photo;
#line 4908 "/home/jens/Source/shotwell/src/Photo.vala"
if (_tmp16_ != NULL) {
#line 4909 "/home/jens/Source/shotwell/src/Photo.vala"
_vala_state = LIBRARY_PHOTO_SOURCE_COLLECTION_STATE_OFFLINE;
#line 4911 "/home/jens/Source/shotwell/src/Photo.vala"
result = photo;
#line 4911 "/home/jens/Source/shotwell/src/Photo.vala"
if (state) {
#line 4911 "/home/jens/Source/shotwell/src/Photo.vala"
*state = _vala_state;
#line 38080 "Photo.c"
}
#line 4911 "/home/jens/Source/shotwell/src/Photo.vala"
return result;
#line 38084 "Photo.c"
}
#line 4914 "/home/jens/Source/shotwell/src/Photo.vala"
_vala_state = LIBRARY_PHOTO_SOURCE_COLLECTION_STATE_UNKNOWN;
#line 4916 "/home/jens/Source/shotwell/src/Photo.vala"
result = NULL;
#line 4916 "/home/jens/Source/shotwell/src/Photo.vala"
_g_object_unref0 (photo);
#line 4916 "/home/jens/Source/shotwell/src/Photo.vala"
if (state) {
#line 4916 "/home/jens/Source/shotwell/src/Photo.vala"
*state = _vala_state;
#line 38096 "Photo.c"
}
#line 4916 "/home/jens/Source/shotwell/src/Photo.vala"
return result;
#line 38100 "Photo.c"
}
static gboolean library_photo_source_collection_real_has_backlink (SourceCollection* base, SourceBacklink* backlink) {
LibraryPhotoSourceCollection * self;
gboolean result = FALSE;
SourceBacklink* _tmp0_ = NULL;
gboolean _tmp1_ = FALSE;
MediaSourceHoldingTank* _tmp2_ = NULL;
MediaSourceHoldingTank* _tmp3_ = NULL;
SourceBacklink* _tmp4_ = NULL;
gboolean _tmp5_ = FALSE;
gboolean _tmp6_ = FALSE;
MediaSourceHoldingTank* _tmp7_ = NULL;
MediaSourceHoldingTank* _tmp8_ = NULL;
SourceBacklink* _tmp9_ = NULL;
gboolean _tmp10_ = FALSE;
gboolean _tmp11_ = FALSE;
#line 4919 "/home/jens/Source/shotwell/src/Photo.vala"
self = G_TYPE_CHECK_INSTANCE_CAST (base, TYPE_LIBRARY_PHOTO_SOURCE_COLLECTION, LibraryPhotoSourceCollection);
#line 4919 "/home/jens/Source/shotwell/src/Photo.vala"
g_return_val_if_fail (IS_SOURCE_BACKLINK (backlink), FALSE);
#line 4920 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp0_ = backlink;
#line 4920 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp1_ = SOURCE_COLLECTION_CLASS (library_photo_source_collection_parent_class)->has_backlink (G_TYPE_CHECK_INSTANCE_CAST (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_MEDIA_SOURCE_COLLECTION, MediaSourceCollection), TYPE_SOURCE_COLLECTION, SourceCollection), _tmp0_);
#line 4920 "/home/jens/Source/shotwell/src/Photo.vala"
if (_tmp1_) {
#line 4921 "/home/jens/Source/shotwell/src/Photo.vala"
result = TRUE;
#line 4921 "/home/jens/Source/shotwell/src/Photo.vala"
return result;
#line 38133 "Photo.c"
}
#line 4923 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp2_ = media_source_collection_get_trashcan (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_MEDIA_SOURCE_COLLECTION, MediaSourceCollection));
#line 4923 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp3_ = _tmp2_;
#line 4923 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp4_ = backlink;
#line 4923 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp5_ = source_holding_tank_has_backlink (G_TYPE_CHECK_INSTANCE_CAST (_tmp3_, TYPE_SOURCE_HOLDING_TANK, SourceHoldingTank), _tmp4_);
#line 4923 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp6_ = _tmp5_;
#line 4923 "/home/jens/Source/shotwell/src/Photo.vala"
_source_holding_tank_unref0 (_tmp3_);
#line 4923 "/home/jens/Source/shotwell/src/Photo.vala"
if (_tmp6_) {
#line 4924 "/home/jens/Source/shotwell/src/Photo.vala"
result = TRUE;
#line 4924 "/home/jens/Source/shotwell/src/Photo.vala"
return result;
#line 38153 "Photo.c"
}
#line 4926 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp7_ = media_source_collection_get_offline_bin (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_MEDIA_SOURCE_COLLECTION, MediaSourceCollection));
#line 4926 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp8_ = _tmp7_;
#line 4926 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp9_ = backlink;
#line 4926 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp10_ = source_holding_tank_has_backlink (G_TYPE_CHECK_INSTANCE_CAST (_tmp8_, TYPE_SOURCE_HOLDING_TANK, SourceHoldingTank), _tmp9_);
#line 4926 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp11_ = _tmp10_;
#line 4926 "/home/jens/Source/shotwell/src/Photo.vala"
_source_holding_tank_unref0 (_tmp8_);
#line 4926 "/home/jens/Source/shotwell/src/Photo.vala"
if (_tmp11_) {
#line 4927 "/home/jens/Source/shotwell/src/Photo.vala"
result = TRUE;
#line 4927 "/home/jens/Source/shotwell/src/Photo.vala"
return result;
#line 38173 "Photo.c"
}
#line 4929 "/home/jens/Source/shotwell/src/Photo.vala"
result = FALSE;
#line 4929 "/home/jens/Source/shotwell/src/Photo.vala"
return result;
#line 38179 "Photo.c"
}
static void library_photo_source_collection_real_remove_backlink (SourceCollection* base, SourceBacklink* backlink) {
LibraryPhotoSourceCollection * self;
MediaSourceHoldingTank* _tmp0_ = NULL;
MediaSourceHoldingTank* _tmp1_ = NULL;
SourceBacklink* _tmp2_ = NULL;
MediaSourceHoldingTank* _tmp3_ = NULL;
MediaSourceHoldingTank* _tmp4_ = NULL;
SourceBacklink* _tmp5_ = NULL;
SourceBacklink* _tmp6_ = NULL;
#line 4932 "/home/jens/Source/shotwell/src/Photo.vala"
self = G_TYPE_CHECK_INSTANCE_CAST (base, TYPE_LIBRARY_PHOTO_SOURCE_COLLECTION, LibraryPhotoSourceCollection);
#line 4932 "/home/jens/Source/shotwell/src/Photo.vala"
g_return_if_fail (IS_SOURCE_BACKLINK (backlink));
#line 4933 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp0_ = media_source_collection_get_trashcan (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_MEDIA_SOURCE_COLLECTION, MediaSourceCollection));
#line 4933 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp1_ = _tmp0_;
#line 4933 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp2_ = backlink;
#line 4933 "/home/jens/Source/shotwell/src/Photo.vala"
source_holding_tank_remove_backlink (G_TYPE_CHECK_INSTANCE_CAST (_tmp1_, TYPE_SOURCE_HOLDING_TANK, SourceHoldingTank), _tmp2_);
#line 4933 "/home/jens/Source/shotwell/src/Photo.vala"
_source_holding_tank_unref0 (_tmp1_);
#line 4934 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp3_ = media_source_collection_get_offline_bin (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_MEDIA_SOURCE_COLLECTION, MediaSourceCollection));
#line 4934 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp4_ = _tmp3_;
#line 4934 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp5_ = backlink;
#line 4934 "/home/jens/Source/shotwell/src/Photo.vala"
source_holding_tank_remove_backlink (G_TYPE_CHECK_INSTANCE_CAST (_tmp4_, TYPE_SOURCE_HOLDING_TANK, SourceHoldingTank), _tmp5_);
#line 4934 "/home/jens/Source/shotwell/src/Photo.vala"
_source_holding_tank_unref0 (_tmp4_);
#line 4936 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp6_ = backlink;
#line 4936 "/home/jens/Source/shotwell/src/Photo.vala"
SOURCE_COLLECTION_CLASS (library_photo_source_collection_parent_class)->remove_backlink (G_TYPE_CHECK_INSTANCE_CAST (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_MEDIA_SOURCE_COLLECTION, MediaSourceCollection), TYPE_SOURCE_COLLECTION, SourceCollection), _tmp6_);
#line 38220 "Photo.c"
}
static TransactionController* library_photo_source_collection_real_get_transaction_controller (MediaSourceCollection* base) {
TransactionController* result;
LibraryPhotoSourceCollection* self;
TransactionController* _tmp0_ = NULL;
TransactionController* _tmp2_ = NULL;
#line 4453 "/home/jens/Source/shotwell/src/Photo.vala"
self = G_TYPE_CHECK_INSTANCE_CAST (base, TYPE_LIBRARY_PHOTO_SOURCE_COLLECTION, LibraryPhotoSourceCollection);
#line 4454 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp0_ = self->priv->_transaction_controller;
#line 4454 "/home/jens/Source/shotwell/src/Photo.vala"
if (_tmp0_ == NULL) {
#line 38235 "Photo.c"
MediaSourceTransactionController* _tmp1_ = NULL;
#line 4455 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp1_ = media_source_transaction_controller_new (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_MEDIA_SOURCE_COLLECTION, MediaSourceCollection));
#line 4455 "/home/jens/Source/shotwell/src/Photo.vala"
_transaction_controller_unref0 (self->priv->_transaction_controller);
#line 4455 "/home/jens/Source/shotwell/src/Photo.vala"
self->priv->_transaction_controller = G_TYPE_CHECK_INSTANCE_CAST (_tmp1_, TYPE_TRANSACTION_CONTROLLER, TransactionController);
#line 38243 "Photo.c"
}
#line 4457 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp2_ = self->priv->_transaction_controller;
#line 4457 "/home/jens/Source/shotwell/src/Photo.vala"
result = _tmp2_;
#line 4457 "/home/jens/Source/shotwell/src/Photo.vala"
return result;
#line 38251 "Photo.c"
}
static void library_photo_source_collection_real_master_reimported (LibraryPhotoSourceCollection* self, LibraryPhoto* photo, PhotoMetadata* metadata) {
#line 4475 "/home/jens/Source/shotwell/src/Photo.vala"
g_return_if_fail (IS_LIBRARY_PHOTO (photo));
#line 4475 "/home/jens/Source/shotwell/src/Photo.vala"
g_return_if_fail ((metadata == NULL) || IS_PHOTO_METADATA (metadata));
#line 38260 "Photo.c"
}
static void g_cclosure_user_marshal_VOID__OBJECT_MEDIA_METADATA (GClosure * closure, GValue * return_value, guint n_param_values, const GValue * param_values, gpointer invocation_hint, gpointer marshal_data) {
typedef void (*GMarshalFunc_VOID__OBJECT_MEDIA_METADATA) (gpointer data1, gpointer arg_1, gpointer arg_2, gpointer data2);
register GMarshalFunc_VOID__OBJECT_MEDIA_METADATA callback;
register GCClosure * cc;
register gpointer data1;
register gpointer data2;
cc = (GCClosure *) closure;
#line 4442 "/home/jens/Source/shotwell/src/Photo.vala"
g_return_if_fail (n_param_values == 3);
#line 4442 "/home/jens/Source/shotwell/src/Photo.vala"
if (G_CCLOSURE_SWAP_DATA (closure)) {
#line 4442 "/home/jens/Source/shotwell/src/Photo.vala"
data1 = closure->data;
#line 4442 "/home/jens/Source/shotwell/src/Photo.vala"
data2 = param_values->data[0].v_pointer;
#line 38279 "Photo.c"
} else {
#line 4442 "/home/jens/Source/shotwell/src/Photo.vala"
data1 = param_values->data[0].v_pointer;
#line 4442 "/home/jens/Source/shotwell/src/Photo.vala"
data2 = closure->data;
#line 38285 "Photo.c"
}
#line 4442 "/home/jens/Source/shotwell/src/Photo.vala"
callback = (GMarshalFunc_VOID__OBJECT_MEDIA_METADATA) (marshal_data ? marshal_data : cc->callback);
#line 4442 "/home/jens/Source/shotwell/src/Photo.vala"
callback (data1, g_value_get_object (param_values + 1), value_get_media_metadata (param_values + 2), data2);
#line 38291 "Photo.c"
}
static void library_photo_source_collection_real_editable_reimported (LibraryPhotoSourceCollection* self, LibraryPhoto* photo, PhotoMetadata* metadata) {
#line 4478 "/home/jens/Source/shotwell/src/Photo.vala"
g_return_if_fail (IS_LIBRARY_PHOTO (photo));
#line 4478 "/home/jens/Source/shotwell/src/Photo.vala"
g_return_if_fail ((metadata == NULL) || IS_PHOTO_METADATA (metadata));
#line 38300 "Photo.c"
}
static void library_photo_source_collection_real_baseline_reimported (LibraryPhotoSourceCollection* self, LibraryPhoto* photo, PhotoMetadata* metadata) {
#line 4481 "/home/jens/Source/shotwell/src/Photo.vala"
g_return_if_fail (IS_LIBRARY_PHOTO (photo));
#line 4481 "/home/jens/Source/shotwell/src/Photo.vala"
g_return_if_fail ((metadata == NULL) || IS_PHOTO_METADATA (metadata));
#line 38309 "Photo.c"
}
static void library_photo_source_collection_real_source_reimported (LibraryPhotoSourceCollection* self, LibraryPhoto* photo, PhotoMetadata* metadata) {
#line 4484 "/home/jens/Source/shotwell/src/Photo.vala"
g_return_if_fail (IS_LIBRARY_PHOTO (photo));
#line 4484 "/home/jens/Source/shotwell/src/Photo.vala"
g_return_if_fail ((metadata == NULL) || IS_PHOTO_METADATA (metadata));
#line 38318 "Photo.c"
}
static void library_photo_source_collection_class_init (LibraryPhotoSourceCollectionClass * klass) {
#line 4442 "/home/jens/Source/shotwell/src/Photo.vala"
library_photo_source_collection_parent_class = g_type_class_peek_parent (klass);
#line 4442 "/home/jens/Source/shotwell/src/Photo.vala"
((DataCollectionClass *) klass)->finalize = library_photo_source_collection_finalize;
#line 4442 "/home/jens/Source/shotwell/src/Photo.vala"
g_type_class_add_private (klass, sizeof (LibraryPhotoSourceCollectionPrivate));
#line 4442 "/home/jens/Source/shotwell/src/Photo.vala"
((MediaSourceCollectionClass *) klass)->create_trashcan = library_photo_source_collection_real_create_trashcan;
#line 4442 "/home/jens/Source/shotwell/src/Photo.vala"
((MediaSourceCollectionClass *) klass)->create_offline_bin = library_photo_source_collection_real_create_offline_bin;
#line 4442 "/home/jens/Source/shotwell/src/Photo.vala"
((MediaSourceCollectionClass *) klass)->create_media_monitor = library_photo_source_collection_real_create_media_monitor;
#line 4442 "/home/jens/Source/shotwell/src/Photo.vala"
((SourceCollectionClass *) klass)->holds_type_of_source = library_photo_source_collection_real_holds_type_of_source;
#line 4442 "/home/jens/Source/shotwell/src/Photo.vala"
((MediaSourceCollectionClass *) klass)->get_typename = library_photo_source_collection_real_get_typename;
#line 4442 "/home/jens/Source/shotwell/src/Photo.vala"
((MediaSourceCollectionClass *) klass)->is_file_recognized = library_photo_source_collection_real_is_file_recognized;
#line 4442 "/home/jens/Source/shotwell/src/Photo.vala"
((DataCollectionClass *) klass)->notify_contents_altered = library_photo_source_collection_real_notify_contents_altered;
#line 4442 "/home/jens/Source/shotwell/src/Photo.vala"
((DataCollectionClass *) klass)->items_altered = library_photo_source_collection_real_items_altered;
#line 4442 "/home/jens/Source/shotwell/src/Photo.vala"
((MediaSourceCollectionClass *) klass)->postprocess_imported_media = library_photo_source_collection_real_postprocess_imported_media;
#line 4442 "/home/jens/Source/shotwell/src/Photo.vala"
((LibraryPhotoSourceCollectionClass *) klass)->notify_master_reimported = library_photo_source_collection_real_notify_master_reimported;
#line 4442 "/home/jens/Source/shotwell/src/Photo.vala"
((LibraryPhotoSourceCollectionClass *) klass)->notify_editable_reimported = library_photo_source_collection_real_notify_editable_reimported;
#line 4442 "/home/jens/Source/shotwell/src/Photo.vala"
((LibraryPhotoSourceCollectionClass *) klass)->notify_source_reimported = library_photo_source_collection_real_notify_source_reimported;
#line 4442 "/home/jens/Source/shotwell/src/Photo.vala"
((LibraryPhotoSourceCollectionClass *) klass)->notify_baseline_reimported = library_photo_source_collection_real_notify_baseline_reimported;
#line 4442 "/home/jens/Source/shotwell/src/Photo.vala"
((MediaSourceCollectionClass *) klass)->fetch_by_numeric_id = library_photo_source_collection_real_fetch_by_numeric_id;
#line 4442 "/home/jens/Source/shotwell/src/Photo.vala"
((MediaSourceCollectionClass *) klass)->fetch_by_source_id = library_photo_source_collection_real_fetch_by_source_id;
#line 4442 "/home/jens/Source/shotwell/src/Photo.vala"
((MediaSourceCollectionClass *) klass)->get_event_source_ids = library_photo_source_collection_real_get_event_source_ids;
#line 4442 "/home/jens/Source/shotwell/src/Photo.vala"
((SourceCollectionClass *) klass)->has_backlink = library_photo_source_collection_real_has_backlink;
#line 4442 "/home/jens/Source/shotwell/src/Photo.vala"
((SourceCollectionClass *) klass)->remove_backlink = library_photo_source_collection_real_remove_backlink;
#line 4442 "/home/jens/Source/shotwell/src/Photo.vala"
((LibraryPhotoSourceCollectionClass *) klass)->master_reimported = library_photo_source_collection_real_master_reimported;
#line 4442 "/home/jens/Source/shotwell/src/Photo.vala"
((LibraryPhotoSourceCollectionClass *) klass)->editable_reimported = library_photo_source_collection_real_editable_reimported;
#line 4442 "/home/jens/Source/shotwell/src/Photo.vala"
((LibraryPhotoSourceCollectionClass *) klass)->baseline_reimported = library_photo_source_collection_real_baseline_reimported;
#line 4442 "/home/jens/Source/shotwell/src/Photo.vala"
((LibraryPhotoSourceCollectionClass *) klass)->source_reimported = library_photo_source_collection_real_source_reimported;
#line 4442 "/home/jens/Source/shotwell/src/Photo.vala"
MEDIA_SOURCE_COLLECTION_CLASS (klass)->get_transaction_controller = library_photo_source_collection_real_get_transaction_controller;
#line 4442 "/home/jens/Source/shotwell/src/Photo.vala"
g_signal_new ("master_reimported", TYPE_LIBRARY_PHOTO_SOURCE_COLLECTION, G_SIGNAL_RUN_LAST, G_STRUCT_OFFSET (LibraryPhotoSourceCollectionClass, master_reimported), NULL, NULL, g_cclosure_user_marshal_VOID__OBJECT_MEDIA_METADATA, G_TYPE_NONE, 2, TYPE_LIBRARY_PHOTO, TYPE_PHOTO_METADATA);
#line 4442 "/home/jens/Source/shotwell/src/Photo.vala"
g_signal_new ("editable_reimported", TYPE_LIBRARY_PHOTO_SOURCE_COLLECTION, G_SIGNAL_RUN_LAST, G_STRUCT_OFFSET (LibraryPhotoSourceCollectionClass, editable_reimported), NULL, NULL, g_cclosure_user_marshal_VOID__OBJECT_MEDIA_METADATA, G_TYPE_NONE, 2, TYPE_LIBRARY_PHOTO, TYPE_PHOTO_METADATA);
#line 4442 "/home/jens/Source/shotwell/src/Photo.vala"
g_signal_new ("baseline_reimported", TYPE_LIBRARY_PHOTO_SOURCE_COLLECTION, G_SIGNAL_RUN_LAST, G_STRUCT_OFFSET (LibraryPhotoSourceCollectionClass, baseline_reimported), NULL, NULL, g_cclosure_user_marshal_VOID__OBJECT_MEDIA_METADATA, G_TYPE_NONE, 2, TYPE_LIBRARY_PHOTO, TYPE_PHOTO_METADATA);
#line 4442 "/home/jens/Source/shotwell/src/Photo.vala"
g_signal_new ("source_reimported", TYPE_LIBRARY_PHOTO_SOURCE_COLLECTION, G_SIGNAL_RUN_LAST, G_STRUCT_OFFSET (LibraryPhotoSourceCollectionClass, source_reimported), NULL, NULL, g_cclosure_user_marshal_VOID__OBJECT_MEDIA_METADATA, G_TYPE_NONE, 2, TYPE_LIBRARY_PHOTO, TYPE_PHOTO_METADATA);
#line 38383 "Photo.c"
}
static void library_photo_source_collection_instance_init (LibraryPhotoSourceCollection * self) {
GeeHashMap* _tmp0_ = NULL;
GeeHashMap* _tmp1_ = NULL;
GeeTreeMultiMap* _tmp2_ = NULL;
GeeHashMap* _tmp3_ = NULL;
GeeHashMap* _tmp4_ = NULL;
GeeTreeMultiMap* _tmp5_ = NULL;
#line 4442 "/home/jens/Source/shotwell/src/Photo.vala"
self->priv = LIBRARY_PHOTO_SOURCE_COLLECTION_GET_PRIVATE (self);
#line 4461 "/home/jens/Source/shotwell/src/Photo.vala"
self->priv->_transaction_controller = NULL;
#line 4462 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp0_ = gee_hash_map_new (g_file_get_type (), (GBoxedCopyFunc) g_object_ref, g_object_unref, TYPE_LIBRARY_PHOTO, (GBoxedCopyFunc) g_object_ref, g_object_unref, _file_hash_gee_hash_data_func, NULL, NULL, _file_equal_gee_equal_data_func, NULL, NULL, NULL, NULL, NULL);
#line 4462 "/home/jens/Source/shotwell/src/Photo.vala"
self->priv->by_editable_file = _tmp0_;
#line 4464 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp1_ = gee_hash_map_new (g_file_get_type (), (GBoxedCopyFunc) g_object_ref, g_object_unref, TYPE_LIBRARY_PHOTO, (GBoxedCopyFunc) g_object_ref, g_object_unref, _file_hash_gee_hash_data_func, NULL, NULL, _file_equal_gee_equal_data_func, NULL, NULL, NULL, NULL, NULL);
#line 4464 "/home/jens/Source/shotwell/src/Photo.vala"
self->priv->by_raw_development_file = _tmp1_;
#line 4466 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp2_ = gee_tree_multi_map_new (G_TYPE_INT64, (GBoxedCopyFunc) _int64_dup, g_free, TYPE_LIBRARY_PHOTO, (GBoxedCopyFunc) g_object_ref, g_object_unref, _int64_compare_gcompare_data_func, NULL, NULL, NULL, NULL, NULL);
#line 4466 "/home/jens/Source/shotwell/src/Photo.vala"
self->priv->filesize_to_photo = G_TYPE_CHECK_INSTANCE_CAST (_tmp2_, GEE_TYPE_MULTI_MAP, GeeMultiMap);
#line 4468 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp3_ = gee_hash_map_new (TYPE_LIBRARY_PHOTO, (GBoxedCopyFunc) g_object_ref, g_object_unref, G_TYPE_INT64, (GBoxedCopyFunc) _int64_dup, g_free, NULL, NULL, NULL, NULL, NULL, NULL, _int64_equal_gee_equal_data_func, NULL, NULL);
#line 4468 "/home/jens/Source/shotwell/src/Photo.vala"
self->priv->photo_to_master_filesize = _tmp3_;
#line 4470 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp4_ = gee_hash_map_new (TYPE_LIBRARY_PHOTO, (GBoxedCopyFunc) g_object_ref, g_object_unref, G_TYPE_INT64, (GBoxedCopyFunc) _int64_dup, g_free, NULL, NULL, NULL, NULL, NULL, NULL, _int64_equal_gee_equal_data_func, NULL, NULL);
#line 4470 "/home/jens/Source/shotwell/src/Photo.vala"
self->priv->photo_to_editable_filesize = _tmp4_;
#line 4472 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp5_ = gee_tree_multi_map_new (TYPE_LIBRARY_PHOTO, (GBoxedCopyFunc) g_object_ref, g_object_unref, G_TYPE_INT64, (GBoxedCopyFunc) _int64_dup, g_free, NULL, NULL, NULL, NULL, NULL, NULL);
#line 4472 "/home/jens/Source/shotwell/src/Photo.vala"
self->priv->photo_to_raw_development_filesize = G_TYPE_CHECK_INSTANCE_CAST (_tmp5_, GEE_TYPE_MULTI_MAP, GeeMultiMap);
#line 38422 "Photo.c"
}
static void library_photo_source_collection_finalize (DataCollection* obj) {
LibraryPhotoSourceCollection * self;
#line 4442 "/home/jens/Source/shotwell/src/Photo.vala"
self = G_TYPE_CHECK_INSTANCE_CAST (obj, TYPE_LIBRARY_PHOTO_SOURCE_COLLECTION, LibraryPhotoSourceCollection);
#line 4461 "/home/jens/Source/shotwell/src/Photo.vala"
_transaction_controller_unref0 (self->priv->_transaction_controller);
#line 4462 "/home/jens/Source/shotwell/src/Photo.vala"
_g_object_unref0 (self->priv->by_editable_file);
#line 4464 "/home/jens/Source/shotwell/src/Photo.vala"
_g_object_unref0 (self->priv->by_raw_development_file);
#line 4466 "/home/jens/Source/shotwell/src/Photo.vala"
_g_object_unref0 (self->priv->filesize_to_photo);
#line 4468 "/home/jens/Source/shotwell/src/Photo.vala"
_g_object_unref0 (self->priv->photo_to_master_filesize);
#line 4470 "/home/jens/Source/shotwell/src/Photo.vala"
_g_object_unref0 (self->priv->photo_to_editable_filesize);
#line 4472 "/home/jens/Source/shotwell/src/Photo.vala"
_g_object_unref0 (self->priv->photo_to_raw_development_filesize);
#line 4442 "/home/jens/Source/shotwell/src/Photo.vala"
DATA_COLLECTION_CLASS (library_photo_source_collection_parent_class)->finalize (obj);
#line 38446 "Photo.c"
}
GType library_photo_source_collection_get_type (void) {
static volatile gsize library_photo_source_collection_type_id__volatile = 0;
if (g_once_init_enter (&library_photo_source_collection_type_id__volatile)) {
static const GTypeInfo g_define_type_info = { sizeof (LibraryPhotoSourceCollectionClass), (GBaseInitFunc) NULL, (GBaseFinalizeFunc) NULL, (GClassInitFunc) library_photo_source_collection_class_init, (GClassFinalizeFunc) NULL, NULL, sizeof (LibraryPhotoSourceCollection), 0, (GInstanceInitFunc) library_photo_source_collection_instance_init, NULL };
GType library_photo_source_collection_type_id;
library_photo_source_collection_type_id = g_type_register_static (TYPE_MEDIA_SOURCE_COLLECTION, "LibraryPhotoSourceCollection", &g_define_type_info, 0);
g_once_init_leave (&library_photo_source_collection_type_id__volatile, library_photo_source_collection_type_id);
}
return library_photo_source_collection_type_id__volatile;
}
static void _library_photo_generate_thumbnails_one_shot_callback (gpointer self) {
#line 4964 "/home/jens/Source/shotwell/src/Photo.vala"
library_photo_generate_thumbnails ((LibraryPhoto*) self);
#line 38465 "Photo.c"
}
static LibraryPhoto* library_photo_construct (GType object_type, PhotoRow* row) {
LibraryPhoto * self = NULL;
PhotoRow* _tmp0_ = NULL;
OneShotScheduler* _tmp1_ = NULL;
PhotoRow* _tmp2_ = NULL;
guint64 _tmp3_ = 0ULL;
PhotoRow* _tmp7_ = NULL;
guint64 _tmp8_ = 0ULL;
#line 4959 "/home/jens/Source/shotwell/src/Photo.vala"
g_return_val_if_fail (IS_PHOTO_ROW (row), NULL);
#line 4960 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp0_ = row;
#line 4960 "/home/jens/Source/shotwell/src/Photo.vala"
self = (LibraryPhoto*) photo_construct (object_type, _tmp0_);
#line 4962 "/home/jens/Source/shotwell/src/Photo.vala"
_g_object_unref0 (self->priv->import_keywords);
#line 4962 "/home/jens/Source/shotwell/src/Photo.vala"
self->priv->import_keywords = NULL;
#line 4964 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp1_ = one_shot_scheduler_new ("LibraryPhoto", _library_photo_generate_thumbnails_one_shot_callback, self);
#line 4964 "/home/jens/Source/shotwell/src/Photo.vala"
_one_shot_scheduler_unref0 (self->priv->thumbnail_scheduler);
#line 4964 "/home/jens/Source/shotwell/src/Photo.vala"
self->priv->thumbnail_scheduler = _tmp1_;
#line 4967 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp2_ = row;
#line 4967 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp3_ = _tmp2_->flags;
#line 4967 "/home/jens/Source/shotwell/src/Photo.vala"
if ((_tmp3_ & (LIBRARY_PHOTO_FLAG_TRASH | LIBRARY_PHOTO_FLAG_OFFLINE)) != ((guint64) 0)) {
#line 38499 "Photo.c"
LibraryPhotoSourceCollection* _tmp4_ = NULL;
PhotoRow* _tmp5_ = NULL;
const gchar* _tmp6_ = NULL;
#line 4968 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp4_ = library_photo_global;
#line 4968 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp5_ = row;
#line 4968 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp6_ = _tmp5_->backlinks;
#line 4968 "/home/jens/Source/shotwell/src/Photo.vala"
data_source_rehydrate_backlinks (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_DATA_SOURCE, DataSource), G_TYPE_CHECK_INSTANCE_CAST (_tmp4_, TYPE_SOURCE_COLLECTION, SourceCollection), _tmp6_);
#line 38511 "Photo.c"
}
#line 4970 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp7_ = row;
#line 4970 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp8_ = _tmp7_->flags;
#line 4970 "/home/jens/Source/shotwell/src/Photo.vala"
if ((_tmp8_ & (LIBRARY_PHOTO_FLAG_HIDDEN | LIBRARY_PHOTO_FLAG_FAVORITE)) != ((guint64) 0)) {
#line 38519 "Photo.c"
PhotoRow* _tmp9_ = NULL;
guint64 _tmp10_ = 0ULL;
#line 4971 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp9_ = row;
#line 4971 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp10_ = _tmp9_->flags;
#line 4971 "/home/jens/Source/shotwell/src/Photo.vala"
library_photo_upgrade_rating_flags (self, _tmp10_);
#line 38528 "Photo.c"
}
#line 4959 "/home/jens/Source/shotwell/src/Photo.vala"
return self;
#line 38532 "Photo.c"
}
static LibraryPhoto* library_photo_new (PhotoRow* row) {
#line 4959 "/home/jens/Source/shotwell/src/Photo.vala"
return library_photo_construct (TYPE_LIBRARY_PHOTO, row);
#line 38539 "Photo.c"
}
static LibraryPhoto* library_photo_construct_from_import_params (GType object_type, PhotoImportParams* import_params) {
LibraryPhoto * self = NULL;
PhotoImportParams* _tmp0_ = NULL;
PhotoRow* _tmp1_ = NULL;
PhotoImportParams* _tmp2_ = NULL;
GeeCollection* _tmp3_ = NULL;
GeeCollection* _tmp4_ = NULL;
OneShotScheduler* _tmp5_ = NULL;
PhotoImportParams* _tmp6_ = NULL;
PhotoRow* _tmp7_ = NULL;
guint64 _tmp8_ = 0ULL;
PhotoImportParams* _tmp13_ = NULL;
PhotoRow* _tmp14_ = NULL;
guint64 _tmp15_ = 0ULL;
#line 4974 "/home/jens/Source/shotwell/src/Photo.vala"
g_return_val_if_fail (IS_PHOTO_IMPORT_PARAMS (import_params), NULL);
#line 4975 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp0_ = import_params;
#line 4975 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp1_ = _tmp0_->row;
#line 4975 "/home/jens/Source/shotwell/src/Photo.vala"
self = (LibraryPhoto*) photo_construct (object_type, _tmp1_);
#line 4977 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp2_ = import_params;
#line 4977 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp3_ = _tmp2_->keywords;
#line 4977 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp4_ = _g_object_ref0 (_tmp3_);
#line 4977 "/home/jens/Source/shotwell/src/Photo.vala"
_g_object_unref0 (self->priv->import_keywords);
#line 4977 "/home/jens/Source/shotwell/src/Photo.vala"
self->priv->import_keywords = _tmp4_;
#line 4978 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp5_ = one_shot_scheduler_new ("LibraryPhoto", _library_photo_generate_thumbnails_one_shot_callback, self);
#line 4978 "/home/jens/Source/shotwell/src/Photo.vala"
_one_shot_scheduler_unref0 (self->priv->thumbnail_scheduler);
#line 4978 "/home/jens/Source/shotwell/src/Photo.vala"
self->priv->thumbnail_scheduler = _tmp5_;
#line 4981 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp6_ = import_params;
#line 4981 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp7_ = _tmp6_->row;
#line 4981 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp8_ = _tmp7_->flags;
#line 4981 "/home/jens/Source/shotwell/src/Photo.vala"
if ((_tmp8_ & (LIBRARY_PHOTO_FLAG_TRASH | LIBRARY_PHOTO_FLAG_OFFLINE)) != ((guint64) 0)) {
#line 38589 "Photo.c"
LibraryPhotoSourceCollection* _tmp9_ = NULL;
PhotoImportParams* _tmp10_ = NULL;
PhotoRow* _tmp11_ = NULL;
const gchar* _tmp12_ = NULL;
#line 4982 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp9_ = library_photo_global;
#line 4982 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp10_ = import_params;
#line 4982 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp11_ = _tmp10_->row;
#line 4982 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp12_ = _tmp11_->backlinks;
#line 4982 "/home/jens/Source/shotwell/src/Photo.vala"
data_source_rehydrate_backlinks (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_DATA_SOURCE, DataSource), G_TYPE_CHECK_INSTANCE_CAST (_tmp9_, TYPE_SOURCE_COLLECTION, SourceCollection), _tmp12_);
#line 38604 "Photo.c"
}
#line 4984 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp13_ = import_params;
#line 4984 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp14_ = _tmp13_->row;
#line 4984 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp15_ = _tmp14_->flags;
#line 4984 "/home/jens/Source/shotwell/src/Photo.vala"
if ((_tmp15_ & (LIBRARY_PHOTO_FLAG_HIDDEN | LIBRARY_PHOTO_FLAG_FAVORITE)) != ((guint64) 0)) {
#line 38614 "Photo.c"
PhotoImportParams* _tmp16_ = NULL;
PhotoRow* _tmp17_ = NULL;
guint64 _tmp18_ = 0ULL;
#line 4985 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp16_ = import_params;
#line 4985 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp17_ = _tmp16_->row;
#line 4985 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp18_ = _tmp17_->flags;
#line 4985 "/home/jens/Source/shotwell/src/Photo.vala"
library_photo_upgrade_rating_flags (self, _tmp18_);
#line 38626 "Photo.c"
}
#line 4974 "/home/jens/Source/shotwell/src/Photo.vala"
return self;
#line 38630 "Photo.c"
}
static LibraryPhoto* library_photo_new_from_import_params (PhotoImportParams* import_params) {
#line 4974 "/home/jens/Source/shotwell/src/Photo.vala"
return library_photo_construct_from_import_params (TYPE_LIBRARY_PHOTO, import_params);
#line 38637 "Photo.c"
}
void library_photo_init (ProgressMonitor monitor, void* monitor_target) {
LibraryPhotoSourceCollection* _tmp0_ = NULL;
GeeArrayList* all = NULL;
PhotoTable* _tmp1_ = NULL;
PhotoTable* _tmp2_ = NULL;
GeeArrayList* _tmp3_ = NULL;
GeeArrayList* _tmp4_ = NULL;
GeeArrayList* all_photos = NULL;
GeeArrayList* _tmp5_ = NULL;
GeeArrayList* trashed_photos = NULL;
GeeArrayList* _tmp6_ = NULL;
GeeArrayList* offline_photos = NULL;
GeeArrayList* _tmp7_ = NULL;
gint count = 0;
GeeArrayList* _tmp8_ = NULL;
gint _tmp9_ = 0;
gint _tmp10_ = 0;
LibraryPhotoSourceCollection* _tmp34_ = NULL;
GeeArrayList* _tmp35_ = NULL;
GeeCollection* _tmp36_ = NULL;
GeeCollection* _tmp37_ = NULL;
LibraryPhotoSourceCollection* _tmp38_ = NULL;
GeeArrayList* _tmp39_ = NULL;
LibraryPhotoSourceCollection* _tmp40_ = NULL;
GeeArrayList* _tmp41_ = NULL;
#line 4989 "/home/jens/Source/shotwell/src/Photo.vala"
photo_init_photo ();
#line 4991 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp0_ = library_photo_source_collection_new ();
#line 4991 "/home/jens/Source/shotwell/src/Photo.vala"
_data_collection_unref0 (library_photo_global);
#line 4991 "/home/jens/Source/shotwell/src/Photo.vala"
library_photo_global = _tmp0_;
#line 4995 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp1_ = photo_table_get_instance ();
#line 4995 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp2_ = _tmp1_;
#line 4995 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp3_ = photo_table_get_all (_tmp2_);
#line 4995 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp4_ = _tmp3_;
#line 4995 "/home/jens/Source/shotwell/src/Photo.vala"
_database_table_unref0 (_tmp2_);
#line 4995 "/home/jens/Source/shotwell/src/Photo.vala"
all = _tmp4_;
#line 4996 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp5_ = gee_array_list_new (TYPE_LIBRARY_PHOTO, (GBoxedCopyFunc) g_object_ref, g_object_unref, NULL, NULL, NULL);
#line 4996 "/home/jens/Source/shotwell/src/Photo.vala"
all_photos = _tmp5_;
#line 4997 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp6_ = gee_array_list_new (TYPE_LIBRARY_PHOTO, (GBoxedCopyFunc) g_object_ref, g_object_unref, NULL, NULL, NULL);
#line 4997 "/home/jens/Source/shotwell/src/Photo.vala"
trashed_photos = _tmp6_;
#line 4998 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp7_ = gee_array_list_new (TYPE_LIBRARY_PHOTO, (GBoxedCopyFunc) g_object_ref, g_object_unref, NULL, NULL, NULL);
#line 4998 "/home/jens/Source/shotwell/src/Photo.vala"
offline_photos = _tmp7_;
#line 4999 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp8_ = all;
#line 4999 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp9_ = gee_abstract_collection_get_size (G_TYPE_CHECK_INSTANCE_CAST (_tmp8_, GEE_TYPE_COLLECTION, GeeCollection));
#line 4999 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp10_ = _tmp9_;
#line 4999 "/home/jens/Source/shotwell/src/Photo.vala"
count = _tmp10_;
#line 38706 "Photo.c"
{
gint ctr = 0;
#line 5000 "/home/jens/Source/shotwell/src/Photo.vala"
ctr = 0;
#line 38711 "Photo.c"
{
gboolean _tmp11_ = FALSE;
#line 5000 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp11_ = TRUE;
#line 5000 "/home/jens/Source/shotwell/src/Photo.vala"
while (TRUE) {
#line 38718 "Photo.c"
gint _tmp13_ = 0;
gint _tmp14_ = 0;
PhotoRow* row = NULL;
GeeArrayList* _tmp15_ = NULL;
gint _tmp16_ = 0;
gpointer _tmp17_ = NULL;
LibraryPhoto* photo = NULL;
PhotoRow* _tmp18_ = NULL;
LibraryPhoto* _tmp19_ = NULL;
guint64 flags = 0ULL;
PhotoRow* _tmp20_ = NULL;
guint64 _tmp21_ = 0ULL;
guint64 _tmp22_ = 0ULL;
ProgressMonitor _tmp30_ = NULL;
void* _tmp30__target = NULL;
#line 5000 "/home/jens/Source/shotwell/src/Photo.vala"
if (!_tmp11_) {
#line 38736 "Photo.c"
gint _tmp12_ = 0;
#line 5000 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp12_ = ctr;
#line 5000 "/home/jens/Source/shotwell/src/Photo.vala"
ctr = _tmp12_ + 1;
#line 38742 "Photo.c"
}
#line 5000 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp11_ = FALSE;
#line 5000 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp13_ = ctr;
#line 5000 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp14_ = count;
#line 5000 "/home/jens/Source/shotwell/src/Photo.vala"
if (!(_tmp13_ < _tmp14_)) {
#line 5000 "/home/jens/Source/shotwell/src/Photo.vala"
break;
#line 38754 "Photo.c"
}
#line 5001 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp15_ = all;
#line 5001 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp16_ = ctr;
#line 5001 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp17_ = gee_abstract_list_get (G_TYPE_CHECK_INSTANCE_CAST (_tmp15_, GEE_TYPE_ABSTRACT_LIST, GeeAbstractList), _tmp16_);
#line 5001 "/home/jens/Source/shotwell/src/Photo.vala"
row = (PhotoRow*) _tmp17_;
#line 5002 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp18_ = row;
#line 5002 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp19_ = library_photo_new (_tmp18_);
#line 5002 "/home/jens/Source/shotwell/src/Photo.vala"
photo = _tmp19_;
#line 5003 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp20_ = row;
#line 5003 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp21_ = _tmp20_->flags;
#line 5003 "/home/jens/Source/shotwell/src/Photo.vala"
flags = _tmp21_;
#line 5005 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp22_ = flags;
#line 5005 "/home/jens/Source/shotwell/src/Photo.vala"
if ((_tmp22_ & LIBRARY_PHOTO_FLAG_TRASH) != ((guint64) 0)) {
#line 38780 "Photo.c"
GeeArrayList* _tmp23_ = NULL;
LibraryPhoto* _tmp24_ = NULL;
#line 5006 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp23_ = trashed_photos;
#line 5006 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp24_ = photo;
#line 5006 "/home/jens/Source/shotwell/src/Photo.vala"
gee_abstract_collection_add (G_TYPE_CHECK_INSTANCE_CAST (_tmp23_, GEE_TYPE_ABSTRACT_COLLECTION, GeeAbstractCollection), _tmp24_);
#line 38789 "Photo.c"
} else {
guint64 _tmp25_ = 0ULL;
#line 5007 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp25_ = flags;
#line 5007 "/home/jens/Source/shotwell/src/Photo.vala"
if ((_tmp25_ & LIBRARY_PHOTO_FLAG_OFFLINE) != ((guint64) 0)) {
#line 38796 "Photo.c"
GeeArrayList* _tmp26_ = NULL;
LibraryPhoto* _tmp27_ = NULL;
#line 5008 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp26_ = offline_photos;
#line 5008 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp27_ = photo;
#line 5008 "/home/jens/Source/shotwell/src/Photo.vala"
gee_abstract_collection_add (G_TYPE_CHECK_INSTANCE_CAST (_tmp26_, GEE_TYPE_ABSTRACT_COLLECTION, GeeAbstractCollection), _tmp27_);
#line 38805 "Photo.c"
} else {
GeeArrayList* _tmp28_ = NULL;
LibraryPhoto* _tmp29_ = NULL;
#line 5010 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp28_ = all_photos;
#line 5010 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp29_ = photo;
#line 5010 "/home/jens/Source/shotwell/src/Photo.vala"
gee_abstract_collection_add (G_TYPE_CHECK_INSTANCE_CAST (_tmp28_, GEE_TYPE_ABSTRACT_COLLECTION, GeeAbstractCollection), _tmp29_);
#line 38815 "Photo.c"
}
}
#line 5012 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp30_ = monitor;
#line 5012 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp30__target = monitor_target;
#line 5012 "/home/jens/Source/shotwell/src/Photo.vala"
if (_tmp30_ != NULL) {
#line 38824 "Photo.c"
ProgressMonitor _tmp31_ = NULL;
void* _tmp31__target = NULL;
gint _tmp32_ = 0;
gint _tmp33_ = 0;
#line 5013 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp31_ = monitor;
#line 5013 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp31__target = monitor_target;
#line 5013 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp32_ = ctr;
#line 5013 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp33_ = count;
#line 5013 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp31_ ((guint64) _tmp32_, (guint64) _tmp33_, TRUE, _tmp31__target);
#line 38839 "Photo.c"
}
#line 5000 "/home/jens/Source/shotwell/src/Photo.vala"
_g_object_unref0 (photo);
#line 5000 "/home/jens/Source/shotwell/src/Photo.vala"
_photo_row_unref0 (row);
#line 38845 "Photo.c"
}
}
}
#line 5016 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp34_ = library_photo_global;
#line 5016 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp35_ = all_photos;
#line 5016 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp36_ = data_collection_add_many (G_TYPE_CHECK_INSTANCE_CAST (_tmp34_, TYPE_DATA_COLLECTION, DataCollection), G_TYPE_CHECK_INSTANCE_CAST (_tmp35_, GEE_TYPE_COLLECTION, GeeCollection), NULL, NULL);
#line 5016 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp37_ = _tmp36_;
#line 5016 "/home/jens/Source/shotwell/src/Photo.vala"
_g_object_unref0 (_tmp37_);
#line 5017 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp38_ = library_photo_global;
#line 5017 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp39_ = trashed_photos;
#line 5017 "/home/jens/Source/shotwell/src/Photo.vala"
media_source_collection_add_many_to_trash (G_TYPE_CHECK_INSTANCE_CAST (_tmp38_, TYPE_MEDIA_SOURCE_COLLECTION, MediaSourceCollection), G_TYPE_CHECK_INSTANCE_CAST (_tmp39_, GEE_TYPE_COLLECTION, GeeCollection));
#line 5018 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp40_ = library_photo_global;
#line 5018 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp41_ = offline_photos;
#line 5018 "/home/jens/Source/shotwell/src/Photo.vala"
media_source_collection_add_many_to_offline (G_TYPE_CHECK_INSTANCE_CAST (_tmp40_, TYPE_MEDIA_SOURCE_COLLECTION, MediaSourceCollection), G_TYPE_CHECK_INSTANCE_CAST (_tmp41_, GEE_TYPE_COLLECTION, GeeCollection));
#line 4988 "/home/jens/Source/shotwell/src/Photo.vala"
_g_object_unref0 (offline_photos);
#line 4988 "/home/jens/Source/shotwell/src/Photo.vala"
_g_object_unref0 (trashed_photos);
#line 4988 "/home/jens/Source/shotwell/src/Photo.vala"
_g_object_unref0 (all_photos);
#line 4988 "/home/jens/Source/shotwell/src/Photo.vala"
_g_object_unref0 (all);
#line 38879 "Photo.c"
}
void library_photo_terminate (void) {
#line 5022 "/home/jens/Source/shotwell/src/Photo.vala"
photo_terminate_photo ();
#line 38886 "Photo.c"
}
ImportResult library_photo_import_create (PhotoImportParams* params, LibraryPhoto** photo) {
LibraryPhoto* _vala_photo = NULL;
ImportResult result = 0;
PhotoID photo_id = {0};
PhotoTable* _tmp0_ = NULL;
PhotoTable* _tmp1_ = NULL;
PhotoImportParams* _tmp2_ = NULL;
PhotoRow* _tmp3_ = NULL;
PhotoID _tmp4_ = {0};
PhotoID _tmp5_ = {0};
gboolean _tmp6_ = FALSE;
PhotoImportParams* _tmp7_ = NULL;
LibraryPhoto* _tmp8_ = NULL;
#line 5029 "/home/jens/Source/shotwell/src/Photo.vala"
g_return_val_if_fail (IS_PHOTO_IMPORT_PARAMS (params), 0);
#line 5031 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp0_ = photo_table_get_instance ();
#line 5031 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp1_ = _tmp0_;
#line 5031 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp2_ = params;
#line 5031 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp3_ = _tmp2_->row;
#line 5031 "/home/jens/Source/shotwell/src/Photo.vala"
photo_table_add (_tmp1_, _tmp3_, &_tmp4_);
#line 5031 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp5_ = _tmp4_;
#line 5031 "/home/jens/Source/shotwell/src/Photo.vala"
_database_table_unref0 (_tmp1_);
#line 5031 "/home/jens/Source/shotwell/src/Photo.vala"
photo_id = _tmp5_;
#line 5032 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp6_ = photo_id_is_invalid (&photo_id);
#line 5032 "/home/jens/Source/shotwell/src/Photo.vala"
if (_tmp6_) {
#line 5033 "/home/jens/Source/shotwell/src/Photo.vala"
_g_object_unref0 (_vala_photo);
#line 5033 "/home/jens/Source/shotwell/src/Photo.vala"
_vala_photo = NULL;
#line 5035 "/home/jens/Source/shotwell/src/Photo.vala"
result = IMPORT_RESULT_DATABASE_ERROR;
#line 5035 "/home/jens/Source/shotwell/src/Photo.vala"
if (photo) {
#line 5035 "/home/jens/Source/shotwell/src/Photo.vala"
*photo = _vala_photo;
#line 38935 "Photo.c"
} else {
#line 5035 "/home/jens/Source/shotwell/src/Photo.vala"
_g_object_unref0 (_vala_photo);
#line 38939 "Photo.c"
}
#line 5035 "/home/jens/Source/shotwell/src/Photo.vala"
return result;
#line 38943 "Photo.c"
}
#line 5039 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp7_ = params;
#line 5039 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp8_ = library_photo_new_from_import_params (_tmp7_);
#line 5039 "/home/jens/Source/shotwell/src/Photo.vala"
_g_object_unref0 (_vala_photo);
#line 5039 "/home/jens/Source/shotwell/src/Photo.vala"
_vala_photo = _tmp8_;
#line 5041 "/home/jens/Source/shotwell/src/Photo.vala"
result = IMPORT_RESULT_SUCCESS;
#line 5041 "/home/jens/Source/shotwell/src/Photo.vala"
if (photo) {
#line 5041 "/home/jens/Source/shotwell/src/Photo.vala"
*photo = _vala_photo;
#line 38959 "Photo.c"
} else {
#line 5041 "/home/jens/Source/shotwell/src/Photo.vala"
_g_object_unref0 (_vala_photo);
#line 38963 "Photo.c"
}
#line 5041 "/home/jens/Source/shotwell/src/Photo.vala"
return result;
#line 38967 "Photo.c"
}
void library_photo_import_failed (LibraryPhoto* photo) {
GError * _inner_error_ = NULL;
#line 5044 "/home/jens/Source/shotwell/src/Photo.vala"
g_return_if_fail (IS_LIBRARY_PHOTO (photo));
#line 38975 "Photo.c"
{
PhotoTable* _tmp0_ = NULL;
PhotoTable* _tmp1_ = NULL;
LibraryPhoto* _tmp2_ = NULL;
PhotoID _tmp3_ = {0};
#line 5046 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp0_ = photo_table_get_instance ();
#line 5046 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp1_ = _tmp0_;
#line 5046 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp2_ = photo;
#line 5046 "/home/jens/Source/shotwell/src/Photo.vala"
photo_get_photo_id (G_TYPE_CHECK_INSTANCE_CAST (_tmp2_, TYPE_PHOTO, Photo), &_tmp3_);
#line 5046 "/home/jens/Source/shotwell/src/Photo.vala"
photo_table_remove (_tmp1_, &_tmp3_, &_inner_error_);
#line 5046 "/home/jens/Source/shotwell/src/Photo.vala"
_database_table_unref0 (_tmp1_);
#line 5046 "/home/jens/Source/shotwell/src/Photo.vala"
if (G_UNLIKELY (_inner_error_ != NULL)) {
#line 5046 "/home/jens/Source/shotwell/src/Photo.vala"
if (_inner_error_->domain == DATABASE_ERROR) {
#line 38997 "Photo.c"
goto __catch406_database_error;
}
#line 5046 "/home/jens/Source/shotwell/src/Photo.vala"
g_critical ("file %s: line %d: unexpected error: %s (%s, %d)", __FILE__, __LINE__, _inner_error_->message, g_quark_to_string (_inner_error_->domain), _inner_error_->code);
#line 5046 "/home/jens/Source/shotwell/src/Photo.vala"
g_clear_error (&_inner_error_);
#line 5046 "/home/jens/Source/shotwell/src/Photo.vala"
return;
#line 39006 "Photo.c"
}
}
goto __finally406;
__catch406_database_error:
{
GError* err = NULL;
GError* _tmp4_ = NULL;
#line 5045 "/home/jens/Source/shotwell/src/Photo.vala"
err = _inner_error_;
#line 5045 "/home/jens/Source/shotwell/src/Photo.vala"
_inner_error_ = NULL;
#line 5048 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp4_ = err;
#line 5048 "/home/jens/Source/shotwell/src/Photo.vala"
app_window_database_error (_tmp4_);
#line 5045 "/home/jens/Source/shotwell/src/Photo.vala"
_g_error_free0 (err);
#line 39024 "Photo.c"
}
__finally406:
#line 5045 "/home/jens/Source/shotwell/src/Photo.vala"
if (G_UNLIKELY (_inner_error_ != NULL)) {
#line 5045 "/home/jens/Source/shotwell/src/Photo.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 5045 "/home/jens/Source/shotwell/src/Photo.vala"
g_clear_error (&_inner_error_);
#line 5045 "/home/jens/Source/shotwell/src/Photo.vala"
return;
#line 39035 "Photo.c"
}
}
static void library_photo_real_notify_master_reimported (Photo* base, PhotoMetadata* metadata) {
LibraryPhoto * self;
PhotoMetadata* _tmp0_ = NULL;
LibraryPhotoSourceCollection* _tmp1_ = NULL;
PhotoMetadata* _tmp2_ = NULL;
#line 5052 "/home/jens/Source/shotwell/src/Photo.vala"
self = G_TYPE_CHECK_INSTANCE_CAST (base, TYPE_LIBRARY_PHOTO, LibraryPhoto);
#line 5052 "/home/jens/Source/shotwell/src/Photo.vala"
g_return_if_fail ((metadata == NULL) || IS_PHOTO_METADATA (metadata));
#line 5053 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp0_ = metadata;
#line 5053 "/home/jens/Source/shotwell/src/Photo.vala"
PHOTO_CLASS (library_photo_parent_class)->notify_master_reimported (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_PHOTO, Photo), _tmp0_);
#line 5055 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp1_ = library_photo_global;
#line 5055 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp2_ = metadata;
#line 5055 "/home/jens/Source/shotwell/src/Photo.vala"
library_photo_source_collection_notify_master_reimported (_tmp1_, self, _tmp2_);
#line 39059 "Photo.c"
}
static void library_photo_real_notify_editable_reimported (Photo* base, PhotoMetadata* metadata) {
LibraryPhoto * self;
PhotoMetadata* _tmp0_ = NULL;
LibraryPhotoSourceCollection* _tmp1_ = NULL;
PhotoMetadata* _tmp2_ = NULL;
#line 5058 "/home/jens/Source/shotwell/src/Photo.vala"
self = G_TYPE_CHECK_INSTANCE_CAST (base, TYPE_LIBRARY_PHOTO, LibraryPhoto);
#line 5058 "/home/jens/Source/shotwell/src/Photo.vala"
g_return_if_fail ((metadata == NULL) || IS_PHOTO_METADATA (metadata));
#line 5059 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp0_ = metadata;
#line 5059 "/home/jens/Source/shotwell/src/Photo.vala"
PHOTO_CLASS (library_photo_parent_class)->notify_editable_reimported (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_PHOTO, Photo), _tmp0_);
#line 5061 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp1_ = library_photo_global;
#line 5061 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp2_ = metadata;
#line 5061 "/home/jens/Source/shotwell/src/Photo.vala"
library_photo_source_collection_notify_editable_reimported (_tmp1_, self, _tmp2_);
#line 39082 "Photo.c"
}
static void library_photo_real_notify_source_reimported (Photo* base, PhotoMetadata* metadata) {
LibraryPhoto * self;
PhotoMetadata* _tmp0_ = NULL;
LibraryPhotoSourceCollection* _tmp1_ = NULL;
PhotoMetadata* _tmp2_ = NULL;
#line 5064 "/home/jens/Source/shotwell/src/Photo.vala"
self = G_TYPE_CHECK_INSTANCE_CAST (base, TYPE_LIBRARY_PHOTO, LibraryPhoto);
#line 5064 "/home/jens/Source/shotwell/src/Photo.vala"
g_return_if_fail ((metadata == NULL) || IS_PHOTO_METADATA (metadata));
#line 5065 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp0_ = metadata;
#line 5065 "/home/jens/Source/shotwell/src/Photo.vala"
PHOTO_CLASS (library_photo_parent_class)->notify_source_reimported (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_PHOTO, Photo), _tmp0_);
#line 5067 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp1_ = library_photo_global;
#line 5067 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp2_ = metadata;
#line 5067 "/home/jens/Source/shotwell/src/Photo.vala"
library_photo_source_collection_notify_source_reimported (_tmp1_, self, _tmp2_);
#line 39105 "Photo.c"
}
static void library_photo_real_notify_baseline_reimported (Photo* base, PhotoMetadata* metadata) {
LibraryPhoto * self;
PhotoMetadata* _tmp0_ = NULL;
LibraryPhotoSourceCollection* _tmp1_ = NULL;
PhotoMetadata* _tmp2_ = NULL;
#line 5070 "/home/jens/Source/shotwell/src/Photo.vala"
self = G_TYPE_CHECK_INSTANCE_CAST (base, TYPE_LIBRARY_PHOTO, LibraryPhoto);
#line 5070 "/home/jens/Source/shotwell/src/Photo.vala"
g_return_if_fail ((metadata == NULL) || IS_PHOTO_METADATA (metadata));
#line 5071 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp0_ = metadata;
#line 5071 "/home/jens/Source/shotwell/src/Photo.vala"
PHOTO_CLASS (library_photo_parent_class)->notify_baseline_reimported (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_PHOTO, Photo), _tmp0_);
#line 5073 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp1_ = library_photo_global;
#line 5073 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp2_ = metadata;
#line 5073 "/home/jens/Source/shotwell/src/Photo.vala"
library_photo_source_collection_notify_baseline_reimported (_tmp1_, self, _tmp2_);
#line 39128 "Photo.c"
}
static void library_photo_generate_thumbnails (LibraryPhoto* self) {
GError * _inner_error_ = NULL;
#line 5076 "/home/jens/Source/shotwell/src/Photo.vala"
g_return_if_fail (IS_LIBRARY_PHOTO (self));
#line 39136 "Photo.c"
{
#line 5078 "/home/jens/Source/shotwell/src/Photo.vala"
thumbnail_cache_import_from_source (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_THUMBNAIL_SOURCE, ThumbnailSource), TRUE, &_inner_error_);
#line 5078 "/home/jens/Source/shotwell/src/Photo.vala"
if (G_UNLIKELY (_inner_error_ != NULL)) {
#line 39142 "Photo.c"
goto __catch407_g_error;
}
}
goto __finally407;
__catch407_g_error:
{
GError* err = NULL;
gchar* _tmp0_ = NULL;
gchar* _tmp1_ = NULL;
GError* _tmp2_ = NULL;
const gchar* _tmp3_ = NULL;
#line 5077 "/home/jens/Source/shotwell/src/Photo.vala"
err = _inner_error_;
#line 5077 "/home/jens/Source/shotwell/src/Photo.vala"
_inner_error_ = NULL;
#line 5080 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp0_ = data_object_to_string (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_DATA_OBJECT, DataObject));
#line 5080 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp1_ = _tmp0_;
#line 5080 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp2_ = err;
#line 5080 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp3_ = _tmp2_->message;
#line 5080 "/home/jens/Source/shotwell/src/Photo.vala"
g_warning ("Photo.vala:5080: Unable to generate thumbnails for %s: %s", _tmp1_, _tmp3_);
#line 5080 "/home/jens/Source/shotwell/src/Photo.vala"
_g_free0 (_tmp1_);
#line 5077 "/home/jens/Source/shotwell/src/Photo.vala"
_g_error_free0 (err);
#line 39172 "Photo.c"
}
__finally407:
#line 5077 "/home/jens/Source/shotwell/src/Photo.vala"
if (G_UNLIKELY (_inner_error_ != NULL)) {
#line 5077 "/home/jens/Source/shotwell/src/Photo.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 5077 "/home/jens/Source/shotwell/src/Photo.vala"
g_clear_error (&_inner_error_);
#line 5077 "/home/jens/Source/shotwell/src/Photo.vala"
return;
#line 39183 "Photo.c"
}
#line 5084 "/home/jens/Source/shotwell/src/Photo.vala"
thumbnail_source_notify_thumbnail_altered (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_THUMBNAIL_SOURCE, ThumbnailSource));
#line 39187 "Photo.c"
}
GeeCollection* library_photo_get_import_keywords (LibraryPhoto* self) {
GeeCollection* result = NULL;
GeeCollection* _tmp0_ = NULL;
GeeCollection* _tmp1_ = NULL;
#line 5088 "/home/jens/Source/shotwell/src/Photo.vala"
g_return_val_if_fail (IS_LIBRARY_PHOTO (self), NULL);
#line 5089 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp0_ = self->priv->import_keywords;
#line 5089 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp1_ = _g_object_ref0 (_tmp0_);
#line 5089 "/home/jens/Source/shotwell/src/Photo.vala"
result = _tmp1_;
#line 5089 "/home/jens/Source/shotwell/src/Photo.vala"
return result;
#line 39205 "Photo.c"
}
void library_photo_clear_import_keywords (LibraryPhoto* self) {
#line 5092 "/home/jens/Source/shotwell/src/Photo.vala"
g_return_if_fail (IS_LIBRARY_PHOTO (self));
#line 5093 "/home/jens/Source/shotwell/src/Photo.vala"
_g_object_unref0 (self->priv->import_keywords);
#line 5093 "/home/jens/Source/shotwell/src/Photo.vala"
self->priv->import_keywords = NULL;
#line 39216 "Photo.c"
}
static void library_photo_real_notify_altered (DataObject* base, Alteration* alteration) {
LibraryPhoto * self;
gboolean _tmp0_ = FALSE;
gboolean _tmp1_ = FALSE;
Alteration* _tmp5_ = NULL;
#line 5096 "/home/jens/Source/shotwell/src/Photo.vala"
self = G_TYPE_CHECK_INSTANCE_CAST (base, TYPE_LIBRARY_PHOTO, LibraryPhoto);
#line 5096 "/home/jens/Source/shotwell/src/Photo.vala"
g_return_if_fail (IS_ALTERATION (alteration));
#line 5098 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp1_ = self->priv->block_thumbnail_generation;
#line 5098 "/home/jens/Source/shotwell/src/Photo.vala"
if (!_tmp1_) {
#line 39233 "Photo.c"
Alteration* _tmp2_ = NULL;
gboolean _tmp3_ = FALSE;
#line 5098 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp2_ = alteration;
#line 5098 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp3_ = alteration_has_subject (_tmp2_, "image");
#line 5098 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp0_ = _tmp3_;
#line 39242 "Photo.c"
} else {
#line 5098 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp0_ = FALSE;
#line 39246 "Photo.c"
}
#line 5098 "/home/jens/Source/shotwell/src/Photo.vala"
if (_tmp0_) {
#line 39250 "Photo.c"
OneShotScheduler* _tmp4_ = NULL;
#line 5099 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp4_ = self->priv->thumbnail_scheduler;
#line 5099 "/home/jens/Source/shotwell/src/Photo.vala"
one_shot_scheduler_at_priority_idle (_tmp4_, G_PRIORITY_LOW);
#line 39256 "Photo.c"
}
#line 5101 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp5_ = alteration;
#line 5101 "/home/jens/Source/shotwell/src/Photo.vala"
DATA_OBJECT_CLASS (library_photo_parent_class)->notify_altered (G_TYPE_CHECK_INSTANCE_CAST (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_PHOTO, Photo), TYPE_DATA_OBJECT, DataObject), _tmp5_);
#line 39262 "Photo.c"
}
static GdkPixbuf* library_photo_real_get_preview_pixbuf (MediaSource* base, Scaling* scaling, GError** error) {
LibraryPhoto * self;
GdkPixbuf* result = NULL;
GdkPixbuf* pixbuf = NULL;
GdkPixbuf* _tmp0_ = NULL;
GdkPixbuf* _tmp1_ = NULL;
GError * _inner_error_ = NULL;
#line 5104 "/home/jens/Source/shotwell/src/Photo.vala"
self = G_TYPE_CHECK_INSTANCE_CAST (base, TYPE_LIBRARY_PHOTO, LibraryPhoto);
#line 5104 "/home/jens/Source/shotwell/src/Photo.vala"
g_return_val_if_fail (scaling != NULL, NULL);
#line 5105 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp0_ = thumbnail_source_get_thumbnail (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_THUMBNAIL_SOURCE, ThumbnailSource), (gint) THUMBNAIL_CACHE_SIZE_BIG, &_inner_error_);
#line 5105 "/home/jens/Source/shotwell/src/Photo.vala"
pixbuf = _tmp0_;
#line 5105 "/home/jens/Source/shotwell/src/Photo.vala"
if (G_UNLIKELY (_inner_error_ != NULL)) {
#line 5105 "/home/jens/Source/shotwell/src/Photo.vala"
g_propagate_error (error, _inner_error_);
#line 5105 "/home/jens/Source/shotwell/src/Photo.vala"
return NULL;
#line 39287 "Photo.c"
}
#line 5107 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp1_ = scaling_perform_on_pixbuf (scaling, pixbuf, GDK_INTERP_BILINEAR, TRUE);
#line 5107 "/home/jens/Source/shotwell/src/Photo.vala"
result = _tmp1_;
#line 5107 "/home/jens/Source/shotwell/src/Photo.vala"
_g_object_unref0 (pixbuf);
#line 5107 "/home/jens/Source/shotwell/src/Photo.vala"
return result;
#line 39297 "Photo.c"
}
static void library_photo_real_rotate (Photo* base, Rotation rotation) {
LibraryPhoto * self;
Rotation _tmp0_ = 0;
GError * _inner_error_ = NULL;
#line 5110 "/home/jens/Source/shotwell/src/Photo.vala"
self = G_TYPE_CHECK_INSTANCE_CAST (base, TYPE_LIBRARY_PHOTO, LibraryPhoto);
#line 5112 "/home/jens/Source/shotwell/src/Photo.vala"
self->priv->block_thumbnail_generation = TRUE;
#line 5113 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp0_ = rotation;
#line 5113 "/home/jens/Source/shotwell/src/Photo.vala"
PHOTO_CLASS (library_photo_parent_class)->rotate (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_PHOTO, Photo), _tmp0_);
#line 5114 "/home/jens/Source/shotwell/src/Photo.vala"
self->priv->block_thumbnail_generation = FALSE;
#line 39315 "Photo.c"
{
Rotation _tmp1_ = 0;
#line 5122 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp1_ = rotation;
#line 5122 "/home/jens/Source/shotwell/src/Photo.vala"
thumbnail_cache_rotate (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_THUMBNAIL_SOURCE, ThumbnailSource), _tmp1_, &_inner_error_);
#line 5122 "/home/jens/Source/shotwell/src/Photo.vala"
if (G_UNLIKELY (_inner_error_ != NULL)) {
#line 39324 "Photo.c"
goto __catch408_g_error;
}
}
goto __finally408;
__catch408_g_error:
{
GError* err = NULL;
gchar* _tmp2_ = NULL;
gchar* _tmp3_ = NULL;
GError* _tmp4_ = NULL;
const gchar* _tmp5_ = NULL;
#line 5121 "/home/jens/Source/shotwell/src/Photo.vala"
err = _inner_error_;
#line 5121 "/home/jens/Source/shotwell/src/Photo.vala"
_inner_error_ = NULL;
#line 5125 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp2_ = data_object_to_string (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_DATA_OBJECT, DataObject));
#line 5125 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp3_ = _tmp2_;
#line 5125 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp4_ = err;
#line 5125 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp5_ = _tmp4_->message;
#line 5125 "/home/jens/Source/shotwell/src/Photo.vala"
g_warning ("Photo.vala:5125: Unable to update thumbnails for %s: %s", _tmp3_, _tmp5_);
#line 5125 "/home/jens/Source/shotwell/src/Photo.vala"
_g_free0 (_tmp3_);
#line 5121 "/home/jens/Source/shotwell/src/Photo.vala"
_g_error_free0 (err);
#line 39354 "Photo.c"
}
__finally408:
#line 5121 "/home/jens/Source/shotwell/src/Photo.vala"
if (G_UNLIKELY (_inner_error_ != NULL)) {
#line 5121 "/home/jens/Source/shotwell/src/Photo.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 5121 "/home/jens/Source/shotwell/src/Photo.vala"
g_clear_error (&_inner_error_);
#line 5121 "/home/jens/Source/shotwell/src/Photo.vala"
return;
#line 39365 "Photo.c"
}
#line 5128 "/home/jens/Source/shotwell/src/Photo.vala"
thumbnail_source_notify_thumbnail_altered (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_THUMBNAIL_SOURCE, ThumbnailSource));
#line 39369 "Photo.c"
}
static GdkPixbuf* library_photo_real_get_thumbnail (ThumbnailSource* base, gint scale, GError** error) {
LibraryPhoto * self;
GdkPixbuf* result = NULL;
GdkPixbuf* _tmp0_ = NULL;
gint _tmp1_ = 0;
GdkPixbuf* _tmp2_ = NULL;
GdkPixbuf* _tmp3_ = NULL;
GError * _inner_error_ = NULL;
#line 5132 "/home/jens/Source/shotwell/src/Photo.vala"
self = G_TYPE_CHECK_INSTANCE_CAST (base, TYPE_LIBRARY_PHOTO, LibraryPhoto);
#line 5133 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp1_ = scale;
#line 5133 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp2_ = thumbnail_cache_fetch (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_THUMBNAIL_SOURCE, ThumbnailSource), _tmp1_, &_inner_error_);
#line 5133 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp0_ = _tmp2_;
#line 5133 "/home/jens/Source/shotwell/src/Photo.vala"
if (G_UNLIKELY (_inner_error_ != NULL)) {
#line 5133 "/home/jens/Source/shotwell/src/Photo.vala"
g_propagate_error (error, _inner_error_);
#line 5133 "/home/jens/Source/shotwell/src/Photo.vala"
return NULL;
#line 39395 "Photo.c"
}
#line 5133 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp3_ = _tmp0_;
#line 5133 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp0_ = NULL;
#line 5133 "/home/jens/Source/shotwell/src/Photo.vala"
result = _tmp3_;
#line 5133 "/home/jens/Source/shotwell/src/Photo.vala"
_g_object_unref0 (_tmp0_);
#line 5133 "/home/jens/Source/shotwell/src/Photo.vala"
return result;
#line 39407 "Photo.c"
}
static void _library_photo_on_duplicate_progress_gfile_progress_callback (gint64 current_num_bytes, gint64 total_num_bytes, gpointer self) {
#line 5145 "/home/jens/Source/shotwell/src/Photo.vala"
library_photo_on_duplicate_progress ((LibraryPhoto*) self, current_num_bytes, total_num_bytes);
#line 39414 "Photo.c"
}
static void library_photo_duplicate_backing_photo (LibraryPhoto* self, BackingPhotoRow* backing, BackingPhotoID* result, GError** error) {
BackingPhotoID backing_id = {0};
gboolean _tmp0_ = FALSE;
BackingPhotoRow* _tmp1_ = NULL;
GFile* file = NULL;
BackingPhotoRow* _tmp4_ = NULL;
const gchar* _tmp5_ = NULL;
GFile* _tmp6_ = NULL;
GFile* _tmp7_ = NULL;
gboolean _tmp8_ = FALSE;
GError * _inner_error_ = NULL;
#line 5138 "/home/jens/Source/shotwell/src/Photo.vala"
g_return_if_fail (IS_LIBRARY_PHOTO (self));
#line 5138 "/home/jens/Source/shotwell/src/Photo.vala"
g_return_if_fail ((backing == NULL) || IS_BACKING_PHOTO_ROW (backing));
#line 5139 "/home/jens/Source/shotwell/src/Photo.vala"
backing_photo_id_init (&backing_id, BACKING_PHOTO_ID_INVALID);
#line 5140 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp1_ = backing;
#line 5140 "/home/jens/Source/shotwell/src/Photo.vala"
if (_tmp1_ == NULL) {
#line 5140 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp0_ = TRUE;
#line 39441 "Photo.c"
} else {
BackingPhotoRow* _tmp2_ = NULL;
const gchar* _tmp3_ = NULL;
#line 5140 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp2_ = backing;
#line 5140 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp3_ = _tmp2_->filepath;
#line 5140 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp0_ = _tmp3_ == NULL;
#line 39451 "Photo.c"
}
#line 5140 "/home/jens/Source/shotwell/src/Photo.vala"
if (_tmp0_) {
#line 5141 "/home/jens/Source/shotwell/src/Photo.vala"
*result = backing_id;
#line 5141 "/home/jens/Source/shotwell/src/Photo.vala"
return;
#line 39459 "Photo.c"
}
#line 5143 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp4_ = backing;
#line 5143 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp5_ = _tmp4_->filepath;
#line 5143 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp6_ = g_file_new_for_path (_tmp5_);
#line 5143 "/home/jens/Source/shotwell/src/Photo.vala"
file = _tmp6_;
#line 5144 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp7_ = file;
#line 5144 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp8_ = g_file_query_exists (_tmp7_, NULL);
#line 5144 "/home/jens/Source/shotwell/src/Photo.vala"
if (_tmp8_) {
#line 39475 "Photo.c"
GFile* dupe_file = NULL;
GFile* _tmp9_ = NULL;
GFile* _tmp10_ = NULL;
DetectedPhotoInformation* detected = NULL;
BackingPhotoRow* state = NULL;
GFile* _tmp11_ = NULL;
DetectedPhotoInformation* _tmp12_ = NULL;
BackingPhotoRow* _tmp13_ = NULL;
BackingPhotoRow* _tmp14_ = NULL;
#line 5145 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp9_ = file;
#line 5145 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp10_ = library_files_duplicate (_tmp9_, _library_photo_on_duplicate_progress_gfile_progress_callback, self, TRUE, &_inner_error_);
#line 5145 "/home/jens/Source/shotwell/src/Photo.vala"
dupe_file = _tmp10_;
#line 5145 "/home/jens/Source/shotwell/src/Photo.vala"
if (G_UNLIKELY (_inner_error_ != NULL)) {
#line 5145 "/home/jens/Source/shotwell/src/Photo.vala"
g_propagate_error (error, _inner_error_);
#line 5145 "/home/jens/Source/shotwell/src/Photo.vala"
_g_object_unref0 (file);
#line 5145 "/home/jens/Source/shotwell/src/Photo.vala"
return;
#line 39499 "Photo.c"
}
#line 5148 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp11_ = dupe_file;
#line 5148 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp13_ = photo_query_backing_photo_row (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_PHOTO, Photo), _tmp11_, PHOTO_FILE_SNIFFER_OPTIONS_NO_MD5, &_tmp12_, &_inner_error_);
#line 5148 "/home/jens/Source/shotwell/src/Photo.vala"
_detected_photo_information_unref0 (detected);
#line 5148 "/home/jens/Source/shotwell/src/Photo.vala"
detected = _tmp12_;
#line 5148 "/home/jens/Source/shotwell/src/Photo.vala"
state = _tmp13_;
#line 5148 "/home/jens/Source/shotwell/src/Photo.vala"
if (G_UNLIKELY (_inner_error_ != NULL)) {
#line 5148 "/home/jens/Source/shotwell/src/Photo.vala"
g_propagate_error (error, _inner_error_);
#line 5148 "/home/jens/Source/shotwell/src/Photo.vala"
_detected_photo_information_unref0 (detected);
#line 5148 "/home/jens/Source/shotwell/src/Photo.vala"
_g_object_unref0 (dupe_file);
#line 5148 "/home/jens/Source/shotwell/src/Photo.vala"
_g_object_unref0 (file);
#line 5148 "/home/jens/Source/shotwell/src/Photo.vala"
return;
#line 39523 "Photo.c"
}
#line 5150 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp14_ = state;
#line 5150 "/home/jens/Source/shotwell/src/Photo.vala"
if (_tmp14_ != NULL) {
#line 39529 "Photo.c"
BackingPhotoTable* _tmp15_ = NULL;
BackingPhotoTable* _tmp16_ = NULL;
BackingPhotoRow* _tmp17_ = NULL;
BackingPhotoRow* _tmp18_ = NULL;
BackingPhotoID _tmp19_ = {0};
#line 5151 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp15_ = backing_photo_table_get_instance ();
#line 5151 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp16_ = _tmp15_;
#line 5151 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp17_ = state;
#line 5151 "/home/jens/Source/shotwell/src/Photo.vala"
backing_photo_table_add (_tmp16_, _tmp17_, &_inner_error_);
#line 5151 "/home/jens/Source/shotwell/src/Photo.vala"
_database_table_unref0 (_tmp16_);
#line 5151 "/home/jens/Source/shotwell/src/Photo.vala"
if (G_UNLIKELY (_inner_error_ != NULL)) {
#line 5151 "/home/jens/Source/shotwell/src/Photo.vala"
g_propagate_error (error, _inner_error_);
#line 5151 "/home/jens/Source/shotwell/src/Photo.vala"
_backing_photo_row_unref0 (state);
#line 5151 "/home/jens/Source/shotwell/src/Photo.vala"
_detected_photo_information_unref0 (detected);
#line 5151 "/home/jens/Source/shotwell/src/Photo.vala"
_g_object_unref0 (dupe_file);
#line 5151 "/home/jens/Source/shotwell/src/Photo.vala"
_g_object_unref0 (file);
#line 5151 "/home/jens/Source/shotwell/src/Photo.vala"
return;
#line 39559 "Photo.c"
}
#line 5152 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp18_ = state;
#line 5152 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp19_ = _tmp18_->id;
#line 5152 "/home/jens/Source/shotwell/src/Photo.vala"
backing_id = _tmp19_;
#line 39567 "Photo.c"
}
#line 5144 "/home/jens/Source/shotwell/src/Photo.vala"
_backing_photo_row_unref0 (state);
#line 5144 "/home/jens/Source/shotwell/src/Photo.vala"
_detected_photo_information_unref0 (detected);
#line 5144 "/home/jens/Source/shotwell/src/Photo.vala"
_g_object_unref0 (dupe_file);
#line 39575 "Photo.c"
}
#line 5156 "/home/jens/Source/shotwell/src/Photo.vala"
*result = backing_id;
#line 5156 "/home/jens/Source/shotwell/src/Photo.vala"
_g_object_unref0 (file);
#line 5156 "/home/jens/Source/shotwell/src/Photo.vala"
return;
#line 39583 "Photo.c"
}
LibraryPhoto* library_photo_duplicate (LibraryPhoto* self, GError** error) {
LibraryPhoto* result = NULL;
GFile* dupe_file = NULL;
GFile* _tmp0_ = NULL;
GFile* _tmp1_ = NULL;
GFile* _tmp2_ = NULL;
GFile* _tmp3_ = NULL;
BackingPhotoID dupe_editable_id = {0};
BackingPhotoRow* _tmp4_ = NULL;
BackingPhotoRow* _tmp5_ = NULL;
BackingPhotoID _tmp6_ = {0};
BackingPhotoID _tmp7_ = {0};
BackingPhotoID dupe_raw_shotwell_id = {0};
BackingPhotoRow* _tmp8_ = NULL;
BackingPhotoRow* _tmp9_ = NULL;
BackingPhotoID _tmp10_ = {0};
BackingPhotoID _tmp11_ = {0};
BackingPhotoID dupe_raw_camera_id = {0};
BackingPhotoRow* _tmp12_ = NULL;
BackingPhotoRow* _tmp13_ = NULL;
BackingPhotoID _tmp14_ = {0};
BackingPhotoID _tmp15_ = {0};
BackingPhotoID dupe_raw_embedded_id = {0};
BackingPhotoRow* _tmp16_ = NULL;
BackingPhotoRow* _tmp17_ = NULL;
BackingPhotoID _tmp18_ = {0};
BackingPhotoID _tmp19_ = {0};
PhotoID dupe_id = {0};
PhotoTable* _tmp20_ = NULL;
PhotoTable* _tmp21_ = NULL;
PhotoID _tmp22_ = {0};
GFile* _tmp23_ = NULL;
gchar* _tmp24_ = NULL;
gchar* _tmp25_ = NULL;
BackingPhotoID _tmp26_ = {0};
BackingPhotoID _tmp27_ = {0};
BackingPhotoID _tmp28_ = {0};
BackingPhotoID _tmp29_ = {0};
PhotoID _tmp30_ = {0};
PhotoID _tmp31_ = {0};
PhotoRow* dupe_row = NULL;
PhotoTable* _tmp32_ = NULL;
PhotoTable* _tmp33_ = NULL;
PhotoID _tmp34_ = {0};
PhotoRow* _tmp35_ = NULL;
PhotoRow* _tmp36_ = NULL;
LibraryPhoto* dupe = NULL;
PhotoRow* _tmp37_ = NULL;
LibraryPhoto* _tmp38_ = NULL;
LibraryPhoto* _tmp39_ = NULL;
LibraryPhotoSourceCollection* _tmp40_ = NULL;
LibraryPhoto* _tmp41_ = NULL;
LibraryPhoto* _tmp42_ = NULL;
Event* _tmp43_ = NULL;
Event* _tmp44_ = NULL;
gboolean _tmp45_ = FALSE;
GeeCollection* tags = NULL;
TagSourceCollection* _tmp50_ = NULL;
GeeList* _tmp51_ = NULL;
GeeCollection* _tmp52_ = NULL;
GError * _inner_error_ = NULL;
#line 5159 "/home/jens/Source/shotwell/src/Photo.vala"
g_return_val_if_fail (IS_LIBRARY_PHOTO (self), NULL);
#line 5161 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp0_ = media_source_get_master_file (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_MEDIA_SOURCE, MediaSource));
#line 5161 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp1_ = _tmp0_;
#line 5161 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp2_ = library_files_duplicate (_tmp1_, _library_photo_on_duplicate_progress_gfile_progress_callback, self, TRUE, &_inner_error_);
#line 5161 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp3_ = _tmp2_;
#line 5161 "/home/jens/Source/shotwell/src/Photo.vala"
_g_object_unref0 (_tmp1_);
#line 5161 "/home/jens/Source/shotwell/src/Photo.vala"
dupe_file = _tmp3_;
#line 5161 "/home/jens/Source/shotwell/src/Photo.vala"
if (G_UNLIKELY (_inner_error_ != NULL)) {
#line 5161 "/home/jens/Source/shotwell/src/Photo.vala"
g_propagate_error (error, _inner_error_);
#line 5161 "/home/jens/Source/shotwell/src/Photo.vala"
return NULL;
#line 39668 "Photo.c"
}
#line 5164 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp4_ = photo_get_editable_photo_row (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_PHOTO, Photo));
#line 5164 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp5_ = _tmp4_;
#line 5164 "/home/jens/Source/shotwell/src/Photo.vala"
library_photo_duplicate_backing_photo (self, _tmp5_, &_tmp6_, &_inner_error_);
#line 5164 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp7_ = _tmp6_;
#line 5164 "/home/jens/Source/shotwell/src/Photo.vala"
_backing_photo_row_unref0 (_tmp5_);
#line 5164 "/home/jens/Source/shotwell/src/Photo.vala"
dupe_editable_id = _tmp7_;
#line 5164 "/home/jens/Source/shotwell/src/Photo.vala"
if (G_UNLIKELY (_inner_error_ != NULL)) {
#line 5164 "/home/jens/Source/shotwell/src/Photo.vala"
g_propagate_error (error, _inner_error_);
#line 5164 "/home/jens/Source/shotwell/src/Photo.vala"
_g_object_unref0 (dupe_file);
#line 5164 "/home/jens/Source/shotwell/src/Photo.vala"
return NULL;
#line 39690 "Photo.c"
}
#line 5165 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp8_ = photo_get_raw_development_photo_row (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_PHOTO, Photo), RAW_DEVELOPER_SHOTWELL);
#line 5165 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp9_ = _tmp8_;
#line 5165 "/home/jens/Source/shotwell/src/Photo.vala"
library_photo_duplicate_backing_photo (self, _tmp9_, &_tmp10_, &_inner_error_);
#line 5165 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp11_ = _tmp10_;
#line 5165 "/home/jens/Source/shotwell/src/Photo.vala"
_backing_photo_row_unref0 (_tmp9_);
#line 5165 "/home/jens/Source/shotwell/src/Photo.vala"
dupe_raw_shotwell_id = _tmp11_;
#line 5165 "/home/jens/Source/shotwell/src/Photo.vala"
if (G_UNLIKELY (_inner_error_ != NULL)) {
#line 5165 "/home/jens/Source/shotwell/src/Photo.vala"
g_propagate_error (error, _inner_error_);
#line 5165 "/home/jens/Source/shotwell/src/Photo.vala"
_g_object_unref0 (dupe_file);
#line 5165 "/home/jens/Source/shotwell/src/Photo.vala"
return NULL;
#line 39712 "Photo.c"
}
#line 5167 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp12_ = photo_get_raw_development_photo_row (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_PHOTO, Photo), RAW_DEVELOPER_CAMERA);
#line 5167 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp13_ = _tmp12_;
#line 5167 "/home/jens/Source/shotwell/src/Photo.vala"
library_photo_duplicate_backing_photo (self, _tmp13_, &_tmp14_, &_inner_error_);
#line 5167 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp15_ = _tmp14_;
#line 5167 "/home/jens/Source/shotwell/src/Photo.vala"
_backing_photo_row_unref0 (_tmp13_);
#line 5167 "/home/jens/Source/shotwell/src/Photo.vala"
dupe_raw_camera_id = _tmp15_;
#line 5167 "/home/jens/Source/shotwell/src/Photo.vala"
if (G_UNLIKELY (_inner_error_ != NULL)) {
#line 5167 "/home/jens/Source/shotwell/src/Photo.vala"
g_propagate_error (error, _inner_error_);
#line 5167 "/home/jens/Source/shotwell/src/Photo.vala"
_g_object_unref0 (dupe_file);
#line 5167 "/home/jens/Source/shotwell/src/Photo.vala"
return NULL;
#line 39734 "Photo.c"
}
#line 5169 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp16_ = photo_get_raw_development_photo_row (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_PHOTO, Photo), RAW_DEVELOPER_EMBEDDED);
#line 5169 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp17_ = _tmp16_;
#line 5169 "/home/jens/Source/shotwell/src/Photo.vala"
library_photo_duplicate_backing_photo (self, _tmp17_, &_tmp18_, &_inner_error_);
#line 5169 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp19_ = _tmp18_;
#line 5169 "/home/jens/Source/shotwell/src/Photo.vala"
_backing_photo_row_unref0 (_tmp17_);
#line 5169 "/home/jens/Source/shotwell/src/Photo.vala"
dupe_raw_embedded_id = _tmp19_;
#line 5169 "/home/jens/Source/shotwell/src/Photo.vala"
if (G_UNLIKELY (_inner_error_ != NULL)) {
#line 5169 "/home/jens/Source/shotwell/src/Photo.vala"
g_propagate_error (error, _inner_error_);
#line 5169 "/home/jens/Source/shotwell/src/Photo.vala"
_g_object_unref0 (dupe_file);
#line 5169 "/home/jens/Source/shotwell/src/Photo.vala"
return NULL;
#line 39756 "Photo.c"
}
#line 5173 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp20_ = photo_table_get_instance ();
#line 5173 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp21_ = _tmp20_;
#line 5173 "/home/jens/Source/shotwell/src/Photo.vala"
photo_get_photo_id (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_PHOTO, Photo), &_tmp22_);
#line 5173 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp23_ = dupe_file;
#line 5173 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp24_ = g_file_get_path (_tmp23_);
#line 5173 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp25_ = _tmp24_;
#line 5173 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp26_ = dupe_editable_id;
#line 5173 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp27_ = dupe_raw_shotwell_id;
#line 5173 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp28_ = dupe_raw_camera_id;
#line 5173 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp29_ = dupe_raw_embedded_id;
#line 5173 "/home/jens/Source/shotwell/src/Photo.vala"
photo_table_duplicate (_tmp21_, &_tmp22_, _tmp25_, &_tmp26_, &_tmp27_, &_tmp28_, &_tmp29_, &_tmp30_);
#line 5173 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp31_ = _tmp30_;
#line 5173 "/home/jens/Source/shotwell/src/Photo.vala"
_g_free0 (_tmp25_);
#line 5173 "/home/jens/Source/shotwell/src/Photo.vala"
_database_table_unref0 (_tmp21_);
#line 5173 "/home/jens/Source/shotwell/src/Photo.vala"
dupe_id = _tmp31_;
#line 5175 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp32_ = photo_table_get_instance ();
#line 5175 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp33_ = _tmp32_;
#line 5175 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp34_ = dupe_id;
#line 5175 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp35_ = photo_table_get_row (_tmp33_, &_tmp34_);
#line 5175 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp36_ = _tmp35_;
#line 5175 "/home/jens/Source/shotwell/src/Photo.vala"
_database_table_unref0 (_tmp33_);
#line 5175 "/home/jens/Source/shotwell/src/Photo.vala"
dupe_row = _tmp36_;
#line 5178 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp37_ = dupe_row;
#line 5178 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp38_ = library_photo_new (_tmp37_);
#line 5178 "/home/jens/Source/shotwell/src/Photo.vala"
dupe = _tmp38_;
#line 5181 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp39_ = dupe;
#line 5181 "/home/jens/Source/shotwell/src/Photo.vala"
thumbnail_cache_duplicate (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_THUMBNAIL_SOURCE, ThumbnailSource), G_TYPE_CHECK_INSTANCE_CAST (_tmp39_, TYPE_THUMBNAIL_SOURCE, ThumbnailSource));
#line 5184 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp40_ = library_photo_global;
#line 5184 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp41_ = dupe;
#line 5184 "/home/jens/Source/shotwell/src/Photo.vala"
data_collection_add (G_TYPE_CHECK_INSTANCE_CAST (_tmp40_, TYPE_DATA_COLLECTION, DataCollection), G_TYPE_CHECK_INSTANCE_CAST (_tmp41_, TYPE_DATA_OBJECT, DataObject));
#line 5187 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp42_ = dupe;
#line 5187 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp43_ = media_source_get_event (G_TYPE_CHECK_INSTANCE_CAST (_tmp42_, TYPE_MEDIA_SOURCE, MediaSource));
#line 5187 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp44_ = _tmp43_;
#line 5187 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp45_ = _tmp44_ != NULL;
#line 5187 "/home/jens/Source/shotwell/src/Photo.vala"
_g_object_unref0 (_tmp44_);
#line 5187 "/home/jens/Source/shotwell/src/Photo.vala"
if (_tmp45_) {
#line 39830 "Photo.c"
LibraryPhoto* _tmp46_ = NULL;
Event* _tmp47_ = NULL;
Event* _tmp48_ = NULL;
LibraryPhoto* _tmp49_ = NULL;
#line 5188 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp46_ = dupe;
#line 5188 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp47_ = media_source_get_event (G_TYPE_CHECK_INSTANCE_CAST (_tmp46_, TYPE_MEDIA_SOURCE, MediaSource));
#line 5188 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp48_ = _tmp47_;
#line 5188 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp49_ = dupe;
#line 5188 "/home/jens/Source/shotwell/src/Photo.vala"
event_attach (_tmp48_, G_TYPE_CHECK_INSTANCE_CAST (_tmp49_, TYPE_MEDIA_SOURCE, MediaSource));
#line 5188 "/home/jens/Source/shotwell/src/Photo.vala"
_g_object_unref0 (_tmp48_);
#line 39847 "Photo.c"
}
#line 5191 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp50_ = tag_global;
#line 5191 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp51_ = tag_source_collection_fetch_for_source (_tmp50_, G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_MEDIA_SOURCE, MediaSource));
#line 5191 "/home/jens/Source/shotwell/src/Photo.vala"
tags = G_TYPE_CHECK_INSTANCE_CAST (_tmp51_, GEE_TYPE_COLLECTION, GeeCollection);
#line 5192 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp52_ = tags;
#line 5192 "/home/jens/Source/shotwell/src/Photo.vala"
if (_tmp52_ != NULL) {
#line 39859 "Photo.c"
{
GeeIterator* _tag_it = NULL;
GeeCollection* _tmp53_ = NULL;
GeeIterator* _tmp54_ = NULL;
#line 5193 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp53_ = tags;
#line 5193 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp54_ = gee_iterable_iterator (G_TYPE_CHECK_INSTANCE_CAST (_tmp53_, GEE_TYPE_ITERABLE, GeeIterable));
#line 5193 "/home/jens/Source/shotwell/src/Photo.vala"
_tag_it = _tmp54_;
#line 5193 "/home/jens/Source/shotwell/src/Photo.vala"
while (TRUE) {
#line 39872 "Photo.c"
GeeIterator* _tmp55_ = NULL;
gboolean _tmp56_ = FALSE;
Tag* tag = NULL;
GeeIterator* _tmp57_ = NULL;
gpointer _tmp58_ = NULL;
Tag* _tmp59_ = NULL;
LibraryPhoto* _tmp60_ = NULL;
#line 5193 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp55_ = _tag_it;
#line 5193 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp56_ = gee_iterator_next (_tmp55_);
#line 5193 "/home/jens/Source/shotwell/src/Photo.vala"
if (!_tmp56_) {
#line 5193 "/home/jens/Source/shotwell/src/Photo.vala"
break;
#line 39888 "Photo.c"
}
#line 5193 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp57_ = _tag_it;
#line 5193 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp58_ = gee_iterator_get (_tmp57_);
#line 5193 "/home/jens/Source/shotwell/src/Photo.vala"
tag = (Tag*) _tmp58_;
#line 5194 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp59_ = tag;
#line 5194 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp60_ = dupe;
#line 5194 "/home/jens/Source/shotwell/src/Photo.vala"
tag_attach (_tmp59_, G_TYPE_CHECK_INSTANCE_CAST (_tmp60_, TYPE_MEDIA_SOURCE, MediaSource));
#line 5193 "/home/jens/Source/shotwell/src/Photo.vala"
_g_object_unref0 (tag);
#line 39904 "Photo.c"
}
#line 5193 "/home/jens/Source/shotwell/src/Photo.vala"
_g_object_unref0 (_tag_it);
#line 39908 "Photo.c"
}
}
#line 5198 "/home/jens/Source/shotwell/src/Photo.vala"
result = dupe;
#line 5198 "/home/jens/Source/shotwell/src/Photo.vala"
_g_object_unref0 (tags);
#line 5198 "/home/jens/Source/shotwell/src/Photo.vala"
_photo_row_unref0 (dupe_row);
#line 5198 "/home/jens/Source/shotwell/src/Photo.vala"
_g_object_unref0 (dupe_file);
#line 5198 "/home/jens/Source/shotwell/src/Photo.vala"
return result;
#line 39921 "Photo.c"
}
static void library_photo_on_duplicate_progress (LibraryPhoto* self, gint64 current, gint64 total) {
#line 5201 "/home/jens/Source/shotwell/src/Photo.vala"
g_return_if_fail (IS_LIBRARY_PHOTO (self));
#line 5202 "/home/jens/Source/shotwell/src/Photo.vala"
spin_event_loop ();
#line 39930 "Photo.c"
}
static void library_photo_upgrade_rating_flags (LibraryPhoto* self, guint64 flags) {
guint64 _tmp0_ = 0ULL;
guint64 _tmp1_ = 0ULL;
#line 5205 "/home/jens/Source/shotwell/src/Photo.vala"
g_return_if_fail (IS_LIBRARY_PHOTO (self));
#line 5206 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp0_ = flags;
#line 5206 "/home/jens/Source/shotwell/src/Photo.vala"
if ((_tmp0_ & LIBRARY_PHOTO_FLAG_HIDDEN) != ((guint64) 0)) {
#line 5207 "/home/jens/Source/shotwell/src/Photo.vala"
media_source_set_rating (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_MEDIA_SOURCE, MediaSource), RATING_REJECTED);
#line 5208 "/home/jens/Source/shotwell/src/Photo.vala"
photo_remove_flags (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_PHOTO, Photo), LIBRARY_PHOTO_FLAG_HIDDEN, NULL);
#line 39947 "Photo.c"
}
#line 5211 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp1_ = flags;
#line 5211 "/home/jens/Source/shotwell/src/Photo.vala"
if ((_tmp1_ & LIBRARY_PHOTO_FLAG_FAVORITE) != ((guint64) 0)) {
#line 5212 "/home/jens/Source/shotwell/src/Photo.vala"
media_source_set_rating (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_MEDIA_SOURCE, MediaSource), RATING_FIVE);
#line 5213 "/home/jens/Source/shotwell/src/Photo.vala"
photo_remove_flags (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_PHOTO, Photo), LIBRARY_PHOTO_FLAG_FAVORITE, NULL);
#line 39957 "Photo.c"
}
}
static gboolean library_photo_real_is_trashed (MediaSource* base) {
LibraryPhoto * self;
gboolean result = FALSE;
gboolean _tmp0_ = FALSE;
#line 5218 "/home/jens/Source/shotwell/src/Photo.vala"
self = G_TYPE_CHECK_INSTANCE_CAST (base, TYPE_LIBRARY_PHOTO, LibraryPhoto);
#line 5219 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp0_ = photo_is_flag_set (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_PHOTO, Photo), LIBRARY_PHOTO_FLAG_TRASH);
#line 5219 "/home/jens/Source/shotwell/src/Photo.vala"
result = _tmp0_;
#line 5219 "/home/jens/Source/shotwell/src/Photo.vala"
return result;
#line 39974 "Photo.c"
}
static void library_photo_real_trash (MediaSource* base) {
LibraryPhoto * self;
#line 5222 "/home/jens/Source/shotwell/src/Photo.vala"
self = G_TYPE_CHECK_INSTANCE_CAST (base, TYPE_LIBRARY_PHOTO, LibraryPhoto);
#line 5223 "/home/jens/Source/shotwell/src/Photo.vala"
photo_add_flags (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_PHOTO, Photo), LIBRARY_PHOTO_FLAG_TRASH, NULL);
#line 39984 "Photo.c"
}
static void library_photo_real_untrash (MediaSource* base) {
LibraryPhoto * self;
#line 5226 "/home/jens/Source/shotwell/src/Photo.vala"
self = G_TYPE_CHECK_INSTANCE_CAST (base, TYPE_LIBRARY_PHOTO, LibraryPhoto);
#line 5227 "/home/jens/Source/shotwell/src/Photo.vala"
photo_remove_flags (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_PHOTO, Photo), LIBRARY_PHOTO_FLAG_TRASH, NULL);
#line 39994 "Photo.c"
}
static gboolean library_photo_real_is_offline (Monitorable* base) {
LibraryPhoto * self;
gboolean result = FALSE;
gboolean _tmp0_ = FALSE;
#line 5230 "/home/jens/Source/shotwell/src/Photo.vala"
self = G_TYPE_CHECK_INSTANCE_CAST (base, TYPE_LIBRARY_PHOTO, LibraryPhoto);
#line 5231 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp0_ = photo_is_flag_set (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_PHOTO, Photo), LIBRARY_PHOTO_FLAG_OFFLINE);
#line 5231 "/home/jens/Source/shotwell/src/Photo.vala"
result = _tmp0_;
#line 5231 "/home/jens/Source/shotwell/src/Photo.vala"
return result;
#line 40010 "Photo.c"
}
static void library_photo_real_mark_offline (Monitorable* base) {
LibraryPhoto * self;
#line 5234 "/home/jens/Source/shotwell/src/Photo.vala"
self = G_TYPE_CHECK_INSTANCE_CAST (base, TYPE_LIBRARY_PHOTO, LibraryPhoto);
#line 5235 "/home/jens/Source/shotwell/src/Photo.vala"
photo_add_flags (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_PHOTO, Photo), LIBRARY_PHOTO_FLAG_OFFLINE, NULL);
#line 40020 "Photo.c"
}
static void library_photo_real_mark_online (Monitorable* base) {
LibraryPhoto * self;
#line 5238 "/home/jens/Source/shotwell/src/Photo.vala"
self = G_TYPE_CHECK_INSTANCE_CAST (base, TYPE_LIBRARY_PHOTO, LibraryPhoto);
#line 5239 "/home/jens/Source/shotwell/src/Photo.vala"
photo_remove_flags (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_PHOTO, Photo), LIBRARY_PHOTO_FLAG_OFFLINE, NULL);
#line 40030 "Photo.c"
}
static gboolean library_photo_real_is_flagged (Flaggable* base) {
LibraryPhoto * self;
gboolean result = FALSE;
gboolean _tmp0_ = FALSE;
#line 5242 "/home/jens/Source/shotwell/src/Photo.vala"
self = G_TYPE_CHECK_INSTANCE_CAST (base, TYPE_LIBRARY_PHOTO, LibraryPhoto);
#line 5243 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp0_ = photo_is_flag_set (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_PHOTO, Photo), LIBRARY_PHOTO_FLAG_FLAGGED);
#line 5243 "/home/jens/Source/shotwell/src/Photo.vala"
result = _tmp0_;
#line 5243 "/home/jens/Source/shotwell/src/Photo.vala"
return result;
#line 40046 "Photo.c"
}
static void library_photo_real_mark_flagged (Flaggable* base) {
LibraryPhoto * self;
Alteration* _tmp0_ = NULL;
Alteration* _tmp1_ = NULL;
#line 5246 "/home/jens/Source/shotwell/src/Photo.vala"
self = G_TYPE_CHECK_INSTANCE_CAST (base, TYPE_LIBRARY_PHOTO, LibraryPhoto);
#line 5247 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp0_ = alteration_new ("metadata", "flagged");
#line 5247 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp1_ = _tmp0_;
#line 5247 "/home/jens/Source/shotwell/src/Photo.vala"
photo_add_flags (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_PHOTO, Photo), LIBRARY_PHOTO_FLAG_FLAGGED, _tmp1_);
#line 5247 "/home/jens/Source/shotwell/src/Photo.vala"
_alteration_unref0 (_tmp1_);
#line 40064 "Photo.c"
}
static void library_photo_real_mark_unflagged (Flaggable* base) {
LibraryPhoto * self;
Alteration* _tmp0_ = NULL;
Alteration* _tmp1_ = NULL;
#line 5250 "/home/jens/Source/shotwell/src/Photo.vala"
self = G_TYPE_CHECK_INSTANCE_CAST (base, TYPE_LIBRARY_PHOTO, LibraryPhoto);
#line 5251 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp0_ = alteration_new ("metadata", "flagged");
#line 5251 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp1_ = _tmp0_;
#line 5251 "/home/jens/Source/shotwell/src/Photo.vala"
photo_remove_flags (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_PHOTO, Photo), LIBRARY_PHOTO_FLAG_FLAGGED, _tmp1_);
#line 5251 "/home/jens/Source/shotwell/src/Photo.vala"
_alteration_unref0 (_tmp1_);
#line 40082 "Photo.c"
}
static gboolean library_photo_real_internal_delete_backing (DataSource* base, GError** error) {
LibraryPhoto * self;
gboolean result = FALSE;
gboolean _tmp0_ = FALSE;
gboolean _tmp1_ = FALSE;
gboolean _tmp2_ = FALSE;
GError * _inner_error_ = NULL;
#line 5254 "/home/jens/Source/shotwell/src/Photo.vala"
self = G_TYPE_CHECK_INSTANCE_CAST (base, TYPE_LIBRARY_PHOTO, LibraryPhoto);
#line 5257 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp1_ = DATA_SOURCE_CLASS (library_photo_parent_class)->internal_delete_backing (G_TYPE_CHECK_INSTANCE_CAST (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_PHOTO, Photo), TYPE_DATA_SOURCE, DataSource), &_inner_error_);
#line 5257 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp0_ = _tmp1_;
#line 5257 "/home/jens/Source/shotwell/src/Photo.vala"
if (G_UNLIKELY (_inner_error_ != NULL)) {
#line 5257 "/home/jens/Source/shotwell/src/Photo.vala"
g_propagate_error (error, _inner_error_);
#line 5257 "/home/jens/Source/shotwell/src/Photo.vala"
return FALSE;
#line 40105 "Photo.c"
}
#line 5257 "/home/jens/Source/shotwell/src/Photo.vala"
if (!_tmp0_) {
#line 5258 "/home/jens/Source/shotwell/src/Photo.vala"
result = FALSE;
#line 5258 "/home/jens/Source/shotwell/src/Photo.vala"
return result;
#line 40113 "Photo.c"
}
#line 5260 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp2_ = media_source_delete_original_file (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_MEDIA_SOURCE, MediaSource));
#line 5260 "/home/jens/Source/shotwell/src/Photo.vala"
result = _tmp2_;
#line 5260 "/home/jens/Source/shotwell/src/Photo.vala"
return result;
#line 40121 "Photo.c"
}
static void library_photo_real_destroy (DataSource* base) {
LibraryPhoto * self;
PhotoID photo_id = {0};
PhotoID _tmp0_ = {0};
GError * _inner_error_ = NULL;
#line 5263 "/home/jens/Source/shotwell/src/Photo.vala"
self = G_TYPE_CHECK_INSTANCE_CAST (base, TYPE_LIBRARY_PHOTO, LibraryPhoto);
#line 5264 "/home/jens/Source/shotwell/src/Photo.vala"
photo_get_photo_id (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_PHOTO, Photo), &_tmp0_);
#line 5264 "/home/jens/Source/shotwell/src/Photo.vala"
photo_id = _tmp0_;
#line 5267 "/home/jens/Source/shotwell/src/Photo.vala"
thumbnail_cache_remove (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_THUMBNAIL_SOURCE, ThumbnailSource));
#line 40138 "Photo.c"
{
PhotoTable* _tmp1_ = NULL;
PhotoTable* _tmp2_ = NULL;
PhotoID _tmp3_ = {0};
#line 5273 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp1_ = photo_table_get_instance ();
#line 5273 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp2_ = _tmp1_;
#line 5273 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp3_ = photo_id;
#line 5273 "/home/jens/Source/shotwell/src/Photo.vala"
photo_table_remove (_tmp2_, &_tmp3_, &_inner_error_);
#line 5273 "/home/jens/Source/shotwell/src/Photo.vala"
_database_table_unref0 (_tmp2_);
#line 5273 "/home/jens/Source/shotwell/src/Photo.vala"
if (G_UNLIKELY (_inner_error_ != NULL)) {
#line 5273 "/home/jens/Source/shotwell/src/Photo.vala"
if (_inner_error_->domain == DATABASE_ERROR) {
#line 40157 "Photo.c"
goto __catch409_database_error;
}
#line 5273 "/home/jens/Source/shotwell/src/Photo.vala"
g_critical ("file %s: line %d: unexpected error: %s (%s, %d)", __FILE__, __LINE__, _inner_error_->message, g_quark_to_string (_inner_error_->domain), _inner_error_->code);
#line 5273 "/home/jens/Source/shotwell/src/Photo.vala"
g_clear_error (&_inner_error_);
#line 5273 "/home/jens/Source/shotwell/src/Photo.vala"
return;
#line 40166 "Photo.c"
}
}
goto __finally409;
__catch409_database_error:
{
GError* err = NULL;
GError* _tmp4_ = NULL;
#line 5272 "/home/jens/Source/shotwell/src/Photo.vala"
err = _inner_error_;
#line 5272 "/home/jens/Source/shotwell/src/Photo.vala"
_inner_error_ = NULL;
#line 5275 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp4_ = err;
#line 5275 "/home/jens/Source/shotwell/src/Photo.vala"
app_window_database_error (_tmp4_);
#line 5272 "/home/jens/Source/shotwell/src/Photo.vala"
_g_error_free0 (err);
#line 40184 "Photo.c"
}
__finally409:
#line 5272 "/home/jens/Source/shotwell/src/Photo.vala"
if (G_UNLIKELY (_inner_error_ != NULL)) {
#line 5272 "/home/jens/Source/shotwell/src/Photo.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 5272 "/home/jens/Source/shotwell/src/Photo.vala"
g_clear_error (&_inner_error_);
#line 5272 "/home/jens/Source/shotwell/src/Photo.vala"
return;
#line 40195 "Photo.c"
}
#line 5278 "/home/jens/Source/shotwell/src/Photo.vala"
DATA_SOURCE_CLASS (library_photo_parent_class)->destroy (G_TYPE_CHECK_INSTANCE_CAST (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_PHOTO, Photo), TYPE_DATA_SOURCE, DataSource));
#line 40199 "Photo.c"
}
gboolean library_photo_has_nontrash_duplicate (GFile* file, const gchar* thumbnail_md5, const gchar* full_md5, PhotoFileFormat file_format) {
gboolean result = FALSE;
GFile* _tmp0_ = NULL;
const gchar* _tmp1_ = NULL;
const gchar* _tmp2_ = NULL;
PhotoFileFormat _tmp3_ = 0;
PhotoID _tmp4_ = {0};
gboolean _tmp5_ = FALSE;
#line 5281 "/home/jens/Source/shotwell/src/Photo.vala"
g_return_val_if_fail ((file == NULL) || G_IS_FILE (file), FALSE);
#line 5283 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp0_ = file;
#line 5283 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp1_ = thumbnail_md5;
#line 5283 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp2_ = full_md5;
#line 5283 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp3_ = file_format;
#line 5283 "/home/jens/Source/shotwell/src/Photo.vala"
library_photo_get_nontrash_duplicate (_tmp0_, _tmp1_, _tmp2_, _tmp3_, &_tmp4_);
#line 5283 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp5_ = photo_id_is_valid (&_tmp4_);
#line 5283 "/home/jens/Source/shotwell/src/Photo.vala"
result = _tmp5_;
#line 5283 "/home/jens/Source/shotwell/src/Photo.vala"
return result;
#line 40229 "Photo.c"
}
void library_photo_get_nontrash_duplicate (GFile* file, const gchar* thumbnail_md5, const gchar* full_md5, PhotoFileFormat file_format, PhotoID* result) {
PhotoID* ids = NULL;
GFile* _tmp0_ = NULL;
const gchar* _tmp1_ = NULL;
const gchar* _tmp2_ = NULL;
PhotoFileFormat _tmp3_ = 0;
gint _tmp4_ = 0;
PhotoID* _tmp5_ = NULL;
gint ids_length1 = 0;
gint _ids_size_ = 0;
gboolean _tmp6_ = FALSE;
PhotoID* _tmp7_ = NULL;
gint _tmp7__length1 = 0;
PhotoID* _tmp10_ = NULL;
gint _tmp10__length1 = 0;
PhotoID _tmp18_ = {0};
#line 5286 "/home/jens/Source/shotwell/src/Photo.vala"
g_return_if_fail ((file == NULL) || G_IS_FILE (file));
#line 5288 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp0_ = file;
#line 5288 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp1_ = thumbnail_md5;
#line 5288 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp2_ = full_md5;
#line 5288 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp3_ = file_format;
#line 5288 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp5_ = photo_get_duplicate_ids (_tmp0_, _tmp1_, _tmp2_, _tmp3_, &_tmp4_);
#line 5288 "/home/jens/Source/shotwell/src/Photo.vala"
ids = _tmp5_;
#line 5288 "/home/jens/Source/shotwell/src/Photo.vala"
ids_length1 = _tmp4_;
#line 5288 "/home/jens/Source/shotwell/src/Photo.vala"
_ids_size_ = ids_length1;
#line 5290 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp7_ = ids;
#line 5290 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp7__length1 = ids_length1;
#line 5290 "/home/jens/Source/shotwell/src/Photo.vala"
if (_tmp7_ == NULL) {
#line 5290 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp6_ = TRUE;
#line 40275 "Photo.c"
} else {
PhotoID* _tmp8_ = NULL;
gint _tmp8__length1 = 0;
#line 5290 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp8_ = ids;
#line 5290 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp8__length1 = ids_length1;
#line 5290 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp6_ = _tmp8__length1 == 0;
#line 40285 "Photo.c"
}
#line 5290 "/home/jens/Source/shotwell/src/Photo.vala"
if (_tmp6_) {
#line 40289 "Photo.c"
PhotoID _tmp9_ = {0};
#line 5291 "/home/jens/Source/shotwell/src/Photo.vala"
photo_id_init (&_tmp9_, PHOTO_ID_INVALID);
#line 5291 "/home/jens/Source/shotwell/src/Photo.vala"
*result = _tmp9_;
#line 5291 "/home/jens/Source/shotwell/src/Photo.vala"
ids = (g_free (ids), NULL);
#line 5291 "/home/jens/Source/shotwell/src/Photo.vala"
return;
#line 40299 "Photo.c"
}
#line 5293 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp10_ = ids;
#line 5293 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp10__length1 = ids_length1;
#line 40305 "Photo.c"
{
PhotoID* id_collection = NULL;
gint id_collection_length1 = 0;
gint _id_collection_size_ = 0;
gint id_it = 0;
#line 5293 "/home/jens/Source/shotwell/src/Photo.vala"
id_collection = _tmp10_;
#line 5293 "/home/jens/Source/shotwell/src/Photo.vala"
id_collection_length1 = _tmp10__length1;
#line 5293 "/home/jens/Source/shotwell/src/Photo.vala"
for (id_it = 0; id_it < _tmp10__length1; id_it = id_it + 1) {
#line 40317 "Photo.c"
PhotoID id = {0};
#line 5293 "/home/jens/Source/shotwell/src/Photo.vala"
id = id_collection[id_it];
#line 40321 "Photo.c"
{
LibraryPhoto* photo = NULL;
LibraryPhotoSourceCollection* _tmp11_ = NULL;
PhotoID _tmp12_ = {0};
LibraryPhoto* _tmp13_ = NULL;
gboolean _tmp14_ = FALSE;
LibraryPhoto* _tmp15_ = NULL;
#line 5294 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp11_ = library_photo_global;
#line 5294 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp12_ = id;
#line 5294 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp13_ = library_photo_source_collection_fetch (_tmp11_, &_tmp12_);
#line 5294 "/home/jens/Source/shotwell/src/Photo.vala"
photo = _tmp13_;
#line 5295 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp15_ = photo;
#line 5295 "/home/jens/Source/shotwell/src/Photo.vala"
if (_tmp15_ != NULL) {
#line 40341 "Photo.c"
LibraryPhoto* _tmp16_ = NULL;
gboolean _tmp17_ = FALSE;
#line 5295 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp16_ = photo;
#line 5295 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp17_ = media_source_is_trashed (G_TYPE_CHECK_INSTANCE_CAST (_tmp16_, TYPE_MEDIA_SOURCE, MediaSource));
#line 5295 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp14_ = !_tmp17_;
#line 40350 "Photo.c"
} else {
#line 5295 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp14_ = FALSE;
#line 40354 "Photo.c"
}
#line 5295 "/home/jens/Source/shotwell/src/Photo.vala"
if (_tmp14_) {
#line 5296 "/home/jens/Source/shotwell/src/Photo.vala"
*result = id;
#line 5296 "/home/jens/Source/shotwell/src/Photo.vala"
_g_object_unref0 (photo);
#line 5296 "/home/jens/Source/shotwell/src/Photo.vala"
ids = (g_free (ids), NULL);
#line 5296 "/home/jens/Source/shotwell/src/Photo.vala"
return;
#line 40366 "Photo.c"
}
#line 5293 "/home/jens/Source/shotwell/src/Photo.vala"
_g_object_unref0 (photo);
#line 40370 "Photo.c"
}
}
}
#line 5299 "/home/jens/Source/shotwell/src/Photo.vala"
photo_id_init (&_tmp18_, PHOTO_ID_INVALID);
#line 5299 "/home/jens/Source/shotwell/src/Photo.vala"
*result = _tmp18_;
#line 5299 "/home/jens/Source/shotwell/src/Photo.vala"
ids = (g_free (ids), NULL);
#line 5299 "/home/jens/Source/shotwell/src/Photo.vala"
return;
#line 40382 "Photo.c"
}
static gboolean library_photo_real_has_user_generated_metadata (Photo* base) {
LibraryPhoto * self;
gboolean result = FALSE;
GeeList* tags = NULL;
TagSourceCollection* _tmp0_ = NULL;
GeeList* _tmp1_ = NULL;
PhotoMetadata* metadata = NULL;
PhotoMetadata* _tmp2_ = NULL;
PhotoMetadata* _tmp3_ = NULL;
Rating _tmp11_ = 0;
PhotoMetadata* _tmp12_ = NULL;
Rating _tmp13_ = 0;
GeeSet* keywords = NULL;
PhotoMetadata* _tmp14_ = NULL;
GeeSet* _tmp15_ = NULL;
gint _tmp16_ = 0;
GeeList* _tmp17_ = NULL;
gint tags_count = 0;
gint _tmp21_ = 0;
GeeSet* _tmp22_ = NULL;
gint keywords_count = 0;
gint _tmp26_ = 0;
gint _tmp27_ = 0;
gboolean _tmp28_ = FALSE;
GeeList* _tmp29_ = NULL;
#line 5302 "/home/jens/Source/shotwell/src/Photo.vala"
self = G_TYPE_CHECK_INSTANCE_CAST (base, TYPE_LIBRARY_PHOTO, LibraryPhoto);
#line 5303 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp0_ = tag_global;
#line 5303 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp1_ = tag_source_collection_fetch_for_source (_tmp0_, G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_MEDIA_SOURCE, MediaSource));
#line 5303 "/home/jens/Source/shotwell/src/Photo.vala"
tags = _tmp1_;
#line 5305 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp2_ = photo_source_get_metadata (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_PHOTO_SOURCE, PhotoSource));
#line 5305 "/home/jens/Source/shotwell/src/Photo.vala"
metadata = _tmp2_;
#line 5306 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp3_ = metadata;
#line 5306 "/home/jens/Source/shotwell/src/Photo.vala"
if (_tmp3_ == NULL) {
#line 40427 "Photo.c"
gboolean _tmp4_ = FALSE;
gboolean _tmp5_ = FALSE;
GeeList* _tmp6_ = NULL;
#line 5307 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp6_ = tags;
#line 5307 "/home/jens/Source/shotwell/src/Photo.vala"
if (_tmp6_ != NULL) {
#line 5307 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp5_ = TRUE;
#line 40437 "Photo.c"
} else {
GeeList* _tmp7_ = NULL;
gint _tmp8_ = 0;
gint _tmp9_ = 0;
#line 5307 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp7_ = tags;
#line 5307 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp8_ = gee_collection_get_size (G_TYPE_CHECK_INSTANCE_CAST (_tmp7_, GEE_TYPE_COLLECTION, GeeCollection));
#line 5307 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp9_ = _tmp8_;
#line 5307 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp5_ = _tmp9_ > 0;
#line 40450 "Photo.c"
}
#line 5307 "/home/jens/Source/shotwell/src/Photo.vala"
if (_tmp5_) {
#line 5307 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp4_ = TRUE;
#line 40456 "Photo.c"
} else {
Rating _tmp10_ = 0;
#line 5307 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp10_ = media_source_get_rating (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_MEDIA_SOURCE, MediaSource));
#line 5307 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp4_ = _tmp10_ != RATING_UNRATED;
#line 40463 "Photo.c"
}
#line 5307 "/home/jens/Source/shotwell/src/Photo.vala"
result = _tmp4_;
#line 5307 "/home/jens/Source/shotwell/src/Photo.vala"
_media_metadata_unref0 (metadata);
#line 5307 "/home/jens/Source/shotwell/src/Photo.vala"
_g_object_unref0 (tags);
#line 5307 "/home/jens/Source/shotwell/src/Photo.vala"
return result;
#line 40473 "Photo.c"
}
#line 5309 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp11_ = media_source_get_rating (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_MEDIA_SOURCE, MediaSource));
#line 5309 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp12_ = metadata;
#line 5309 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp13_ = photo_metadata_get_rating (_tmp12_);
#line 5309 "/home/jens/Source/shotwell/src/Photo.vala"
if (_tmp11_ != _tmp13_) {
#line 5310 "/home/jens/Source/shotwell/src/Photo.vala"
result = TRUE;
#line 5310 "/home/jens/Source/shotwell/src/Photo.vala"
_media_metadata_unref0 (metadata);
#line 5310 "/home/jens/Source/shotwell/src/Photo.vala"
_g_object_unref0 (tags);
#line 5310 "/home/jens/Source/shotwell/src/Photo.vala"
return result;
#line 40491 "Photo.c"
}
#line 5312 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp14_ = metadata;
#line 5312 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp15_ = photo_metadata_get_keywords (_tmp14_, NULL, NULL, NULL);
#line 5312 "/home/jens/Source/shotwell/src/Photo.vala"
keywords = _tmp15_;
#line 5313 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp17_ = tags;
#line 5313 "/home/jens/Source/shotwell/src/Photo.vala"
if (_tmp17_ != NULL) {
#line 40503 "Photo.c"
GeeList* _tmp18_ = NULL;
gint _tmp19_ = 0;
gint _tmp20_ = 0;
#line 5313 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp18_ = tags;
#line 5313 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp19_ = gee_collection_get_size (G_TYPE_CHECK_INSTANCE_CAST (_tmp18_, GEE_TYPE_COLLECTION, GeeCollection));
#line 5313 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp20_ = _tmp19_;
#line 5313 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp16_ = _tmp20_;
#line 40515 "Photo.c"
} else {
#line 5313 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp16_ = 0;
#line 40519 "Photo.c"
}
#line 5313 "/home/jens/Source/shotwell/src/Photo.vala"
tags_count = _tmp16_;
#line 5314 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp22_ = keywords;
#line 5314 "/home/jens/Source/shotwell/src/Photo.vala"
if (_tmp22_ != NULL) {
#line 40527 "Photo.c"
GeeSet* _tmp23_ = NULL;
gint _tmp24_ = 0;
gint _tmp25_ = 0;
#line 5314 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp23_ = keywords;
#line 5314 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp24_ = gee_collection_get_size (G_TYPE_CHECK_INSTANCE_CAST (_tmp23_, GEE_TYPE_COLLECTION, GeeCollection));
#line 5314 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp25_ = _tmp24_;
#line 5314 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp21_ = _tmp25_;
#line 40539 "Photo.c"
} else {
#line 5314 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp21_ = 0;
#line 40543 "Photo.c"
}
#line 5314 "/home/jens/Source/shotwell/src/Photo.vala"
keywords_count = _tmp21_;
#line 5316 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp26_ = tags_count;
#line 5316 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp27_ = keywords_count;
#line 5316 "/home/jens/Source/shotwell/src/Photo.vala"
if (_tmp26_ != _tmp27_) {
#line 5317 "/home/jens/Source/shotwell/src/Photo.vala"
result = TRUE;
#line 5317 "/home/jens/Source/shotwell/src/Photo.vala"
_g_object_unref0 (keywords);
#line 5317 "/home/jens/Source/shotwell/src/Photo.vala"
_media_metadata_unref0 (metadata);
#line 5317 "/home/jens/Source/shotwell/src/Photo.vala"
_g_object_unref0 (tags);
#line 5317 "/home/jens/Source/shotwell/src/Photo.vala"
return result;
#line 40563 "Photo.c"
}
#line 5319 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp29_ = tags;
#line 5319 "/home/jens/Source/shotwell/src/Photo.vala"
if (_tmp29_ != NULL) {
#line 40569 "Photo.c"
GeeSet* _tmp30_ = NULL;
#line 5319 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp30_ = keywords;
#line 5319 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp28_ = _tmp30_ != NULL;
#line 40575 "Photo.c"
} else {
#line 5319 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp28_ = FALSE;
#line 40579 "Photo.c"
}
#line 5319 "/home/jens/Source/shotwell/src/Photo.vala"
if (_tmp28_) {
#line 40583 "Photo.c"
{
GeeList* _tag_list = NULL;
GeeList* _tmp31_ = NULL;
GeeList* _tmp32_ = NULL;
gint _tag_size = 0;
GeeList* _tmp33_ = NULL;
gint _tmp34_ = 0;
gint _tmp35_ = 0;
gint _tag_index = 0;
#line 5320 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp31_ = tags;
#line 5320 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp32_ = _g_object_ref0 (_tmp31_);
#line 5320 "/home/jens/Source/shotwell/src/Photo.vala"
_tag_list = _tmp32_;
#line 5320 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp33_ = _tag_list;
#line 5320 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp34_ = gee_collection_get_size (G_TYPE_CHECK_INSTANCE_CAST (_tmp33_, GEE_TYPE_COLLECTION, GeeCollection));
#line 5320 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp35_ = _tmp34_;
#line 5320 "/home/jens/Source/shotwell/src/Photo.vala"
_tag_size = _tmp35_;
#line 5320 "/home/jens/Source/shotwell/src/Photo.vala"
_tag_index = -1;
#line 5320 "/home/jens/Source/shotwell/src/Photo.vala"
while (TRUE) {
#line 40611 "Photo.c"
gint _tmp36_ = 0;
gint _tmp37_ = 0;
gint _tmp38_ = 0;
Tag* tag = NULL;
GeeList* _tmp39_ = NULL;
gint _tmp40_ = 0;
gpointer _tmp41_ = NULL;
GeeSet* _tmp42_ = NULL;
Tag* _tmp43_ = NULL;
gchar* _tmp44_ = NULL;
gchar* _tmp45_ = NULL;
gchar* _tmp46_ = NULL;
gchar* _tmp47_ = NULL;
gboolean _tmp48_ = FALSE;
gboolean _tmp49_ = FALSE;
#line 5320 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp36_ = _tag_index;
#line 5320 "/home/jens/Source/shotwell/src/Photo.vala"
_tag_index = _tmp36_ + 1;
#line 5320 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp37_ = _tag_index;
#line 5320 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp38_ = _tag_size;
#line 5320 "/home/jens/Source/shotwell/src/Photo.vala"
if (!(_tmp37_ < _tmp38_)) {
#line 5320 "/home/jens/Source/shotwell/src/Photo.vala"
break;
#line 40639 "Photo.c"
}
#line 5320 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp39_ = _tag_list;
#line 5320 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp40_ = _tag_index;
#line 5320 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp41_ = gee_list_get (_tmp39_, _tmp40_);
#line 5320 "/home/jens/Source/shotwell/src/Photo.vala"
tag = (Tag*) _tmp41_;
#line 5321 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp42_ = keywords;
#line 5321 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp43_ = tag;
#line 5321 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp44_ = data_object_get_name (G_TYPE_CHECK_INSTANCE_CAST (_tmp43_, TYPE_DATA_OBJECT, DataObject));
#line 5321 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp45_ = _tmp44_;
#line 5321 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp46_ = g_utf8_normalize (_tmp45_, (gssize) -1, G_NORMALIZE_DEFAULT);
#line 5321 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp47_ = _tmp46_;
#line 5321 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp48_ = gee_collection_contains (G_TYPE_CHECK_INSTANCE_CAST (_tmp42_, GEE_TYPE_COLLECTION, GeeCollection), _tmp47_);
#line 5321 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp49_ = !_tmp48_;
#line 5321 "/home/jens/Source/shotwell/src/Photo.vala"
_g_free0 (_tmp47_);
#line 5321 "/home/jens/Source/shotwell/src/Photo.vala"
_g_free0 (_tmp45_);
#line 5321 "/home/jens/Source/shotwell/src/Photo.vala"
if (_tmp49_) {
#line 5322 "/home/jens/Source/shotwell/src/Photo.vala"
result = TRUE;
#line 5322 "/home/jens/Source/shotwell/src/Photo.vala"
_g_object_unref0 (tag);
#line 5322 "/home/jens/Source/shotwell/src/Photo.vala"
_g_object_unref0 (_tag_list);
#line 5322 "/home/jens/Source/shotwell/src/Photo.vala"
_g_object_unref0 (keywords);
#line 5322 "/home/jens/Source/shotwell/src/Photo.vala"
_media_metadata_unref0 (metadata);
#line 5322 "/home/jens/Source/shotwell/src/Photo.vala"
_g_object_unref0 (tags);
#line 5322 "/home/jens/Source/shotwell/src/Photo.vala"
return result;
#line 40685 "Photo.c"
}
#line 5320 "/home/jens/Source/shotwell/src/Photo.vala"
_g_object_unref0 (tag);
#line 40689 "Photo.c"
}
#line 5320 "/home/jens/Source/shotwell/src/Photo.vala"
_g_object_unref0 (_tag_list);
#line 40693 "Photo.c"
}
}
#line 5326 "/home/jens/Source/shotwell/src/Photo.vala"
result = FALSE;
#line 5326 "/home/jens/Source/shotwell/src/Photo.vala"
_g_object_unref0 (keywords);
#line 5326 "/home/jens/Source/shotwell/src/Photo.vala"
_media_metadata_unref0 (metadata);
#line 5326 "/home/jens/Source/shotwell/src/Photo.vala"
_g_object_unref0 (tags);
#line 5326 "/home/jens/Source/shotwell/src/Photo.vala"
return result;
#line 40706 "Photo.c"
}
static void library_photo_real_set_user_metadata_for_export (Photo* base, PhotoMetadata* metadata) {
LibraryPhoto * self;
GeeList* photo_tags = NULL;
TagSourceCollection* _tmp0_ = NULL;
GeeList* _tmp1_ = NULL;
GeeList* _tmp2_ = NULL;
PhotoMetadata* _tmp22_ = NULL;
Rating _tmp23_ = 0;
#line 5329 "/home/jens/Source/shotwell/src/Photo.vala"
self = G_TYPE_CHECK_INSTANCE_CAST (base, TYPE_LIBRARY_PHOTO, LibraryPhoto);
#line 5329 "/home/jens/Source/shotwell/src/Photo.vala"
g_return_if_fail (IS_PHOTO_METADATA (metadata));
#line 5330 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp0_ = tag_global;
#line 5330 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp1_ = tag_source_collection_fetch_for_source (_tmp0_, G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_MEDIA_SOURCE, MediaSource));
#line 5330 "/home/jens/Source/shotwell/src/Photo.vala"
photo_tags = _tmp1_;
#line 5331 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp2_ = photo_tags;
#line 5331 "/home/jens/Source/shotwell/src/Photo.vala"
if (_tmp2_ != NULL) {
#line 40732 "Photo.c"
GeeCollection* string_tags = NULL;
GeeArrayList* _tmp3_ = NULL;
PhotoMetadata* _tmp19_ = NULL;
GeeCollection* _tmp20_ = NULL;
#line 5332 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp3_ = gee_array_list_new (G_TYPE_STRING, (GBoxedCopyFunc) g_strdup, g_free, NULL, NULL, NULL);
#line 5332 "/home/jens/Source/shotwell/src/Photo.vala"
string_tags = G_TYPE_CHECK_INSTANCE_CAST (_tmp3_, GEE_TYPE_COLLECTION, GeeCollection);
#line 40741 "Photo.c"
{
GeeList* _tag_list = NULL;
GeeList* _tmp4_ = NULL;
GeeList* _tmp5_ = NULL;
gint _tag_size = 0;
GeeList* _tmp6_ = NULL;
gint _tmp7_ = 0;
gint _tmp8_ = 0;
gint _tag_index = 0;
#line 5333 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp4_ = photo_tags;
#line 5333 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp5_ = _g_object_ref0 (_tmp4_);
#line 5333 "/home/jens/Source/shotwell/src/Photo.vala"
_tag_list = _tmp5_;
#line 5333 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp6_ = _tag_list;
#line 5333 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp7_ = gee_collection_get_size (G_TYPE_CHECK_INSTANCE_CAST (_tmp6_, GEE_TYPE_COLLECTION, GeeCollection));
#line 5333 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp8_ = _tmp7_;
#line 5333 "/home/jens/Source/shotwell/src/Photo.vala"
_tag_size = _tmp8_;
#line 5333 "/home/jens/Source/shotwell/src/Photo.vala"
_tag_index = -1;
#line 5333 "/home/jens/Source/shotwell/src/Photo.vala"
while (TRUE) {
#line 40769 "Photo.c"
gint _tmp9_ = 0;
gint _tmp10_ = 0;
gint _tmp11_ = 0;
Tag* tag = NULL;
GeeList* _tmp12_ = NULL;
gint _tmp13_ = 0;
gpointer _tmp14_ = NULL;
GeeCollection* _tmp15_ = NULL;
Tag* _tmp16_ = NULL;
gchar* _tmp17_ = NULL;
gchar* _tmp18_ = NULL;
#line 5333 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp9_ = _tag_index;
#line 5333 "/home/jens/Source/shotwell/src/Photo.vala"
_tag_index = _tmp9_ + 1;
#line 5333 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp10_ = _tag_index;
#line 5333 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp11_ = _tag_size;
#line 5333 "/home/jens/Source/shotwell/src/Photo.vala"
if (!(_tmp10_ < _tmp11_)) {
#line 5333 "/home/jens/Source/shotwell/src/Photo.vala"
break;
#line 40793 "Photo.c"
}
#line 5333 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp12_ = _tag_list;
#line 5333 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp13_ = _tag_index;
#line 5333 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp14_ = gee_list_get (_tmp12_, _tmp13_);
#line 5333 "/home/jens/Source/shotwell/src/Photo.vala"
tag = (Tag*) _tmp14_;
#line 5334 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp15_ = string_tags;
#line 5334 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp16_ = tag;
#line 5334 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp17_ = data_object_get_name (G_TYPE_CHECK_INSTANCE_CAST (_tmp16_, TYPE_DATA_OBJECT, DataObject));
#line 5334 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp18_ = _tmp17_;
#line 5334 "/home/jens/Source/shotwell/src/Photo.vala"
gee_collection_add (_tmp15_, _tmp18_);
#line 5334 "/home/jens/Source/shotwell/src/Photo.vala"
_g_free0 (_tmp18_);
#line 5333 "/home/jens/Source/shotwell/src/Photo.vala"
_g_object_unref0 (tag);
#line 40817 "Photo.c"
}
#line 5333 "/home/jens/Source/shotwell/src/Photo.vala"
_g_object_unref0 (_tag_list);
#line 40821 "Photo.c"
}
#line 5336 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp19_ = metadata;
#line 5336 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp20_ = string_tags;
#line 5336 "/home/jens/Source/shotwell/src/Photo.vala"
photo_metadata_set_keywords (_tmp19_, _tmp20_, PHOTO_METADATA_SET_OPTION_ALL_DOMAINS);
#line 5331 "/home/jens/Source/shotwell/src/Photo.vala"
_g_object_unref0 (string_tags);
#line 40831 "Photo.c"
} else {
PhotoMetadata* _tmp21_ = NULL;
#line 5338 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp21_ = metadata;
#line 5338 "/home/jens/Source/shotwell/src/Photo.vala"
photo_metadata_set_keywords (_tmp21_, NULL, PHOTO_METADATA_SET_OPTION_ALL_DOMAINS);
#line 40838 "Photo.c"
}
#line 5340 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp22_ = metadata;
#line 5340 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp23_ = media_source_get_rating (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_MEDIA_SOURCE, MediaSource));
#line 5340 "/home/jens/Source/shotwell/src/Photo.vala"
photo_metadata_set_rating (_tmp22_, _tmp23_);
#line 5329 "/home/jens/Source/shotwell/src/Photo.vala"
_g_object_unref0 (photo_tags);
#line 40848 "Photo.c"
}
static void library_photo_real_apply_user_metadata_for_reimport (Photo* base, PhotoMetadata* metadata) {
LibraryPhoto * self;
HierarchicalTagIndex* new_htag_index = NULL;
PhotoMetadata* _tmp0_ = NULL;
gboolean _tmp1_ = FALSE;
GeeCollection* keywords = NULL;
PhotoMetadata* _tmp6_ = NULL;
GeeSet* _tmp7_ = NULL;
GeeCollection* _tmp8_ = NULL;
HierarchicalTagIndex* _tmp39_ = NULL;
#line 5343 "/home/jens/Source/shotwell/src/Photo.vala"
self = G_TYPE_CHECK_INSTANCE_CAST (base, TYPE_LIBRARY_PHOTO, LibraryPhoto);
#line 5343 "/home/jens/Source/shotwell/src/Photo.vala"
g_return_if_fail (IS_PHOTO_METADATA (metadata));
#line 5344 "/home/jens/Source/shotwell/src/Photo.vala"
new_htag_index = NULL;
#line 5346 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp0_ = metadata;
#line 5346 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp1_ = photo_metadata_has_hierarchical_keywords (_tmp0_);
#line 5346 "/home/jens/Source/shotwell/src/Photo.vala"
if (_tmp1_) {
#line 40874 "Photo.c"
PhotoMetadata* _tmp2_ = NULL;
GeeSet* _tmp3_ = NULL;
GeeSet* _tmp4_ = NULL;
HierarchicalTagIndex* _tmp5_ = NULL;
#line 5347 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp2_ = metadata;
#line 5347 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp3_ = photo_metadata_get_hierarchical_keywords (_tmp2_);
#line 5347 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp4_ = _tmp3_;
#line 5347 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp5_ = hierarchical_tag_utilities_process_hierarchical_import_keywords (G_TYPE_CHECK_INSTANCE_CAST (_tmp4_, GEE_TYPE_COLLECTION, GeeCollection));
#line 5347 "/home/jens/Source/shotwell/src/Photo.vala"
_hierarchical_tag_index_unref0 (new_htag_index);
#line 5347 "/home/jens/Source/shotwell/src/Photo.vala"
new_htag_index = _tmp5_;
#line 5347 "/home/jens/Source/shotwell/src/Photo.vala"
_g_object_unref0 (_tmp4_);
#line 40893 "Photo.c"
}
#line 5351 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp6_ = metadata;
#line 5351 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp7_ = photo_metadata_get_keywords (_tmp6_, NULL, NULL, NULL);
#line 5351 "/home/jens/Source/shotwell/src/Photo.vala"
keywords = G_TYPE_CHECK_INSTANCE_CAST (_tmp7_, GEE_TYPE_COLLECTION, GeeCollection);
#line 5352 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp8_ = keywords;
#line 5352 "/home/jens/Source/shotwell/src/Photo.vala"
if (_tmp8_ != NULL) {
#line 40905 "Photo.c"
{
GeeIterator* _keyword_it = NULL;
GeeCollection* _tmp9_ = NULL;
GeeIterator* _tmp10_ = NULL;
#line 5353 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp9_ = keywords;
#line 5353 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp10_ = gee_iterable_iterator (G_TYPE_CHECK_INSTANCE_CAST (_tmp9_, GEE_TYPE_ITERABLE, GeeIterable));
#line 5353 "/home/jens/Source/shotwell/src/Photo.vala"
_keyword_it = _tmp10_;
#line 5353 "/home/jens/Source/shotwell/src/Photo.vala"
while (TRUE) {
#line 40918 "Photo.c"
GeeIterator* _tmp11_ = NULL;
gboolean _tmp12_ = FALSE;
gchar* keyword = NULL;
GeeIterator* _tmp13_ = NULL;
gpointer _tmp14_ = NULL;
gboolean _tmp15_ = FALSE;
HierarchicalTagIndex* _tmp16_ = NULL;
gchar* safe_keyword = NULL;
const gchar* _tmp20_ = NULL;
gchar* _tmp21_ = NULL;
gchar* promoted_keyword = NULL;
const gchar* _tmp22_ = NULL;
gchar* _tmp23_ = NULL;
TagSourceCollection* _tmp24_ = NULL;
const gchar* _tmp25_ = NULL;
gboolean _tmp26_ = FALSE;
TagSourceCollection* _tmp30_ = NULL;
const gchar* _tmp31_ = NULL;
gboolean _tmp32_ = FALSE;
const gchar* _tmp36_ = NULL;
Tag* _tmp37_ = NULL;
Tag* _tmp38_ = NULL;
#line 5353 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp11_ = _keyword_it;
#line 5353 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp12_ = gee_iterator_next (_tmp11_);
#line 5353 "/home/jens/Source/shotwell/src/Photo.vala"
if (!_tmp12_) {
#line 5353 "/home/jens/Source/shotwell/src/Photo.vala"
break;
#line 40949 "Photo.c"
}
#line 5353 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp13_ = _keyword_it;
#line 5353 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp14_ = gee_iterator_get (_tmp13_);
#line 5353 "/home/jens/Source/shotwell/src/Photo.vala"
keyword = (gchar*) _tmp14_;
#line 5354 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp16_ = new_htag_index;
#line 5354 "/home/jens/Source/shotwell/src/Photo.vala"
if (_tmp16_ != NULL) {
#line 40961 "Photo.c"
HierarchicalTagIndex* _tmp17_ = NULL;
const gchar* _tmp18_ = NULL;
gboolean _tmp19_ = FALSE;
#line 5354 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp17_ = new_htag_index;
#line 5354 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp18_ = keyword;
#line 5354 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp19_ = hierarchical_tag_index_is_tag_in_index (_tmp17_, _tmp18_);
#line 5354 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp15_ = _tmp19_;
#line 40973 "Photo.c"
} else {
#line 5354 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp15_ = FALSE;
#line 40977 "Photo.c"
}
#line 5354 "/home/jens/Source/shotwell/src/Photo.vala"
if (_tmp15_) {
#line 5355 "/home/jens/Source/shotwell/src/Photo.vala"
_g_free0 (keyword);
#line 5355 "/home/jens/Source/shotwell/src/Photo.vala"
continue;
#line 40985 "Photo.c"
}
#line 5357 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp20_ = keyword;
#line 5357 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp21_ = hierarchical_tag_utilities_make_flat_tag_safe (_tmp20_);
#line 5357 "/home/jens/Source/shotwell/src/Photo.vala"
safe_keyword = _tmp21_;
#line 5358 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp22_ = safe_keyword;
#line 5358 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp23_ = hierarchical_tag_utilities_flat_to_hierarchical (_tmp22_);
#line 5358 "/home/jens/Source/shotwell/src/Photo.vala"
promoted_keyword = _tmp23_;
#line 5361 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp24_ = tag_global;
#line 5361 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp25_ = safe_keyword;
#line 5361 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp26_ = tag_source_collection_exists (_tmp24_, _tmp25_, FALSE);
#line 5361 "/home/jens/Source/shotwell/src/Photo.vala"
if (_tmp26_) {
#line 41007 "Photo.c"
const gchar* _tmp27_ = NULL;
Tag* _tmp28_ = NULL;
Tag* _tmp29_ = NULL;
#line 5362 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp27_ = safe_keyword;
#line 5362 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp28_ = tag_for_path (_tmp27_);
#line 5362 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp29_ = _tmp28_;
#line 5362 "/home/jens/Source/shotwell/src/Photo.vala"
tag_attach (_tmp29_, G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_MEDIA_SOURCE, MediaSource));
#line 5362 "/home/jens/Source/shotwell/src/Photo.vala"
_g_object_unref0 (_tmp29_);
#line 5363 "/home/jens/Source/shotwell/src/Photo.vala"
_g_free0 (promoted_keyword);
#line 5363 "/home/jens/Source/shotwell/src/Photo.vala"
_g_free0 (safe_keyword);
#line 5363 "/home/jens/Source/shotwell/src/Photo.vala"
_g_free0 (keyword);
#line 5363 "/home/jens/Source/shotwell/src/Photo.vala"
continue;
#line 41029 "Photo.c"
}
#line 5366 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp30_ = tag_global;
#line 5366 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp31_ = promoted_keyword;
#line 5366 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp32_ = tag_source_collection_exists (_tmp30_, _tmp31_, FALSE);
#line 5366 "/home/jens/Source/shotwell/src/Photo.vala"
if (_tmp32_) {
#line 41039 "Photo.c"
const gchar* _tmp33_ = NULL;
Tag* _tmp34_ = NULL;
Tag* _tmp35_ = NULL;
#line 5367 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp33_ = promoted_keyword;
#line 5367 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp34_ = tag_for_path (_tmp33_);
#line 5367 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp35_ = _tmp34_;
#line 5367 "/home/jens/Source/shotwell/src/Photo.vala"
tag_attach (_tmp35_, G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_MEDIA_SOURCE, MediaSource));
#line 5367 "/home/jens/Source/shotwell/src/Photo.vala"
_g_object_unref0 (_tmp35_);
#line 5368 "/home/jens/Source/shotwell/src/Photo.vala"
_g_free0 (promoted_keyword);
#line 5368 "/home/jens/Source/shotwell/src/Photo.vala"
_g_free0 (safe_keyword);
#line 5368 "/home/jens/Source/shotwell/src/Photo.vala"
_g_free0 (keyword);
#line 5368 "/home/jens/Source/shotwell/src/Photo.vala"
continue;
#line 41061 "Photo.c"
}
#line 5371 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp36_ = keyword;
#line 5371 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp37_ = tag_for_path (_tmp36_);
#line 5371 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp38_ = _tmp37_;
#line 5371 "/home/jens/Source/shotwell/src/Photo.vala"
tag_attach (_tmp38_, G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_MEDIA_SOURCE, MediaSource));
#line 5371 "/home/jens/Source/shotwell/src/Photo.vala"
_g_object_unref0 (_tmp38_);
#line 5353 "/home/jens/Source/shotwell/src/Photo.vala"
_g_free0 (promoted_keyword);
#line 5353 "/home/jens/Source/shotwell/src/Photo.vala"
_g_free0 (safe_keyword);
#line 5353 "/home/jens/Source/shotwell/src/Photo.vala"
_g_free0 (keyword);
#line 41079 "Photo.c"
}
#line 5353 "/home/jens/Source/shotwell/src/Photo.vala"
_g_object_unref0 (_keyword_it);
#line 41083 "Photo.c"
}
}
#line 5375 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp39_ = new_htag_index;
#line 5375 "/home/jens/Source/shotwell/src/Photo.vala"
if (_tmp39_ != NULL) {
#line 41090 "Photo.c"
{
GeeIterator* _path_it = NULL;
HierarchicalTagIndex* _tmp40_ = NULL;
GeeCollection* _tmp41_ = NULL;
GeeCollection* _tmp42_ = NULL;
GeeIterator* _tmp43_ = NULL;
GeeIterator* _tmp44_ = NULL;
#line 5376 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp40_ = new_htag_index;
#line 5376 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp41_ = hierarchical_tag_index_get_all_paths (_tmp40_);
#line 5376 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp42_ = _tmp41_;
#line 5376 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp43_ = gee_iterable_iterator (G_TYPE_CHECK_INSTANCE_CAST (_tmp42_, GEE_TYPE_ITERABLE, GeeIterable));
#line 5376 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp44_ = _tmp43_;
#line 5376 "/home/jens/Source/shotwell/src/Photo.vala"
_g_object_unref0 (_tmp42_);
#line 5376 "/home/jens/Source/shotwell/src/Photo.vala"
_path_it = _tmp44_;
#line 5376 "/home/jens/Source/shotwell/src/Photo.vala"
while (TRUE) {
#line 41114 "Photo.c"
GeeIterator* _tmp45_ = NULL;
gboolean _tmp46_ = FALSE;
gchar* path = NULL;
GeeIterator* _tmp47_ = NULL;
gpointer _tmp48_ = NULL;
const gchar* _tmp49_ = NULL;
Tag* _tmp50_ = NULL;
Tag* _tmp51_ = NULL;
#line 5376 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp45_ = _path_it;
#line 5376 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp46_ = gee_iterator_next (_tmp45_);
#line 5376 "/home/jens/Source/shotwell/src/Photo.vala"
if (!_tmp46_) {
#line 5376 "/home/jens/Source/shotwell/src/Photo.vala"
break;
#line 41131 "Photo.c"
}
#line 5376 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp47_ = _path_it;
#line 5376 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp48_ = gee_iterator_get (_tmp47_);
#line 5376 "/home/jens/Source/shotwell/src/Photo.vala"
path = (gchar*) _tmp48_;
#line 5377 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp49_ = path;
#line 5377 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp50_ = tag_for_path (_tmp49_);
#line 5377 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp51_ = _tmp50_;
#line 5377 "/home/jens/Source/shotwell/src/Photo.vala"
tag_attach (_tmp51_, G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_MEDIA_SOURCE, MediaSource));
#line 5377 "/home/jens/Source/shotwell/src/Photo.vala"
_g_object_unref0 (_tmp51_);
#line 5376 "/home/jens/Source/shotwell/src/Photo.vala"
_g_free0 (path);
#line 41151 "Photo.c"
}
#line 5376 "/home/jens/Source/shotwell/src/Photo.vala"
_g_object_unref0 (_path_it);
#line 41155 "Photo.c"
}
}
#line 5343 "/home/jens/Source/shotwell/src/Photo.vala"
_g_object_unref0 (keywords);
#line 5343 "/home/jens/Source/shotwell/src/Photo.vala"
_hierarchical_tag_index_unref0 (new_htag_index);
#line 41162 "Photo.c"
}
static void library_photo_class_init (LibraryPhotoClass * klass) {
#line 4944 "/home/jens/Source/shotwell/src/Photo.vala"
library_photo_parent_class = g_type_class_peek_parent (klass);
#line 4944 "/home/jens/Source/shotwell/src/Photo.vala"
g_type_class_add_private (klass, sizeof (LibraryPhotoPrivate));
#line 4944 "/home/jens/Source/shotwell/src/Photo.vala"
((PhotoClass *) klass)->notify_master_reimported = library_photo_real_notify_master_reimported;
#line 4944 "/home/jens/Source/shotwell/src/Photo.vala"
((PhotoClass *) klass)->notify_editable_reimported = library_photo_real_notify_editable_reimported;
#line 4944 "/home/jens/Source/shotwell/src/Photo.vala"
((PhotoClass *) klass)->notify_source_reimported = library_photo_real_notify_source_reimported;
#line 4944 "/home/jens/Source/shotwell/src/Photo.vala"
((PhotoClass *) klass)->notify_baseline_reimported = library_photo_real_notify_baseline_reimported;
#line 4944 "/home/jens/Source/shotwell/src/Photo.vala"
((DataObjectClass *) klass)->notify_altered = library_photo_real_notify_altered;
#line 4944 "/home/jens/Source/shotwell/src/Photo.vala"
((MediaSourceClass *) klass)->get_preview_pixbuf = library_photo_real_get_preview_pixbuf;
#line 4944 "/home/jens/Source/shotwell/src/Photo.vala"
((PhotoClass *) klass)->rotate = library_photo_real_rotate;
#line 4944 "/home/jens/Source/shotwell/src/Photo.vala"
((ThumbnailSourceClass *) klass)->get_thumbnail = library_photo_real_get_thumbnail;
#line 4944 "/home/jens/Source/shotwell/src/Photo.vala"
((MediaSourceClass *) klass)->is_trashed = library_photo_real_is_trashed;
#line 4944 "/home/jens/Source/shotwell/src/Photo.vala"
((MediaSourceClass *) klass)->trash = library_photo_real_trash;
#line 4944 "/home/jens/Source/shotwell/src/Photo.vala"
((MediaSourceClass *) klass)->untrash = library_photo_real_untrash;
#line 4944 "/home/jens/Source/shotwell/src/Photo.vala"
((MediaSourceClass *) klass)->is_offline = library_photo_real_is_offline;
#line 4944 "/home/jens/Source/shotwell/src/Photo.vala"
((MediaSourceClass *) klass)->mark_offline = library_photo_real_mark_offline;
#line 4944 "/home/jens/Source/shotwell/src/Photo.vala"
((MediaSourceClass *) klass)->mark_online = library_photo_real_mark_online;
#line 4944 "/home/jens/Source/shotwell/src/Photo.vala"
((DataSourceClass *) klass)->internal_delete_backing = library_photo_real_internal_delete_backing;
#line 4944 "/home/jens/Source/shotwell/src/Photo.vala"
((DataSourceClass *) klass)->destroy = library_photo_real_destroy;
#line 4944 "/home/jens/Source/shotwell/src/Photo.vala"
((PhotoClass *) klass)->has_user_generated_metadata = library_photo_real_has_user_generated_metadata;
#line 4944 "/home/jens/Source/shotwell/src/Photo.vala"
((PhotoClass *) klass)->set_user_metadata_for_export = library_photo_real_set_user_metadata_for_export;
#line 4944 "/home/jens/Source/shotwell/src/Photo.vala"
((PhotoClass *) klass)->apply_user_metadata_for_reimport = library_photo_real_apply_user_metadata_for_reimport;
#line 4944 "/home/jens/Source/shotwell/src/Photo.vala"
G_OBJECT_CLASS (klass)->finalize = library_photo_finalize;
#line 41211 "Photo.c"
}
static void library_photo_flaggable_interface_init (FlaggableIface * iface) {
#line 4944 "/home/jens/Source/shotwell/src/Photo.vala"
library_photo_flaggable_parent_iface = g_type_interface_peek_parent (iface);
#line 4944 "/home/jens/Source/shotwell/src/Photo.vala"
iface->is_flagged = (gboolean (*)(Flaggable*)) library_photo_real_is_flagged;
#line 4944 "/home/jens/Source/shotwell/src/Photo.vala"
iface->mark_flagged = (void (*)(Flaggable*)) library_photo_real_mark_flagged;
#line 4944 "/home/jens/Source/shotwell/src/Photo.vala"
iface->mark_unflagged = (void (*)(Flaggable*)) library_photo_real_mark_unflagged;
#line 41224 "Photo.c"
}
static void library_photo_monitorable_interface_init (MonitorableIface * iface) {
#line 4944 "/home/jens/Source/shotwell/src/Photo.vala"
library_photo_monitorable_parent_iface = g_type_interface_peek_parent (iface);
#line 4944 "/home/jens/Source/shotwell/src/Photo.vala"
iface->is_offline = (gboolean (*)(Monitorable*)) library_photo_real_is_offline;
#line 4944 "/home/jens/Source/shotwell/src/Photo.vala"
iface->mark_offline = (void (*)(Monitorable*)) library_photo_real_mark_offline;
#line 4944 "/home/jens/Source/shotwell/src/Photo.vala"
iface->mark_online = (void (*)(Monitorable*)) library_photo_real_mark_online;
#line 4944 "/home/jens/Source/shotwell/src/Photo.vala"
iface->set_master_file = (void (*)(Monitorable*, GFile*)) photo_set_master_file;
#line 4944 "/home/jens/Source/shotwell/src/Photo.vala"
iface->set_master_timestamp = (void (*)(Monitorable*, GFileInfo*)) photo_set_master_timestamp;
#line 41241 "Photo.c"
}
static void library_photo_instance_init (LibraryPhoto * self) {
#line 4944 "/home/jens/Source/shotwell/src/Photo.vala"
self->priv = LIBRARY_PHOTO_GET_PRIVATE (self);
#line 4955 "/home/jens/Source/shotwell/src/Photo.vala"
self->priv->block_thumbnail_generation = FALSE;
#line 4956 "/home/jens/Source/shotwell/src/Photo.vala"
self->priv->thumbnail_scheduler = NULL;
#line 41252 "Photo.c"
}
static void library_photo_finalize (GObject* obj) {
LibraryPhoto * self;
#line 4944 "/home/jens/Source/shotwell/src/Photo.vala"
self = G_TYPE_CHECK_INSTANCE_CAST (obj, TYPE_LIBRARY_PHOTO, LibraryPhoto);
#line 4956 "/home/jens/Source/shotwell/src/Photo.vala"
_one_shot_scheduler_unref0 (self->priv->thumbnail_scheduler);
#line 4957 "/home/jens/Source/shotwell/src/Photo.vala"
_g_object_unref0 (self->priv->import_keywords);
#line 4944 "/home/jens/Source/shotwell/src/Photo.vala"
G_OBJECT_CLASS (library_photo_parent_class)->finalize (obj);
#line 41266 "Photo.c"
}
GType library_photo_get_type (void) {
static volatile gsize library_photo_type_id__volatile = 0;
if (g_once_init_enter (&library_photo_type_id__volatile)) {
static const GTypeInfo g_define_type_info = { sizeof (LibraryPhotoClass), (GBaseInitFunc) NULL, (GBaseFinalizeFunc) NULL, (GClassInitFunc) library_photo_class_init, (GClassFinalizeFunc) NULL, NULL, sizeof (LibraryPhoto), 0, (GInstanceInitFunc) library_photo_instance_init, NULL };
static const GInterfaceInfo flaggable_info = { (GInterfaceInitFunc) library_photo_flaggable_interface_init, (GInterfaceFinalizeFunc) NULL, NULL};
static const GInterfaceInfo monitorable_info = { (GInterfaceInitFunc) library_photo_monitorable_interface_init, (GInterfaceFinalizeFunc) NULL, NULL};
GType library_photo_type_id;
library_photo_type_id = g_type_register_static (TYPE_PHOTO, "LibraryPhoto", &g_define_type_info, 0);
g_type_add_interface_static (library_photo_type_id, TYPE_FLAGGABLE, &flaggable_info);
g_type_add_interface_static (library_photo_type_id, TYPE_MONITORABLE, &monitorable_info);
g_once_init_leave (&library_photo_type_id__volatile, library_photo_type_id);
}
return library_photo_type_id__volatile;
}
LibraryPhotoSourceHoldingTank* library_photo_source_holding_tank_construct (GType object_type, LibraryPhotoSourceCollection* sources, SourceHoldingTankCheckToKeep check_to_keep, void* check_to_keep_target, GetSourceDatabaseKey get_key, void* get_key_target) {
LibraryPhotoSourceHoldingTank* self = NULL;
LibraryPhotoSourceCollection* _tmp0_ = NULL;
SourceHoldingTankCheckToKeep _tmp1_ = NULL;
void* _tmp1__target = NULL;
GetSourceDatabaseKey _tmp2_ = NULL;
void* _tmp2__target = NULL;
#line 5393 "/home/jens/Source/shotwell/src/Photo.vala"
g_return_val_if_fail (IS_LIBRARY_PHOTO_SOURCE_COLLECTION (sources), NULL);
#line 5395 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp0_ = sources;
#line 5395 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp1_ = check_to_keep;
#line 5395 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp1__target = check_to_keep_target;
#line 5395 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp2_ = get_key;
#line 5395 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp2__target = get_key_target;
#line 5395 "/home/jens/Source/shotwell/src/Photo.vala"
self = (LibraryPhotoSourceHoldingTank*) media_source_holding_tank_construct (object_type, G_TYPE_CHECK_INSTANCE_CAST (_tmp0_, TYPE_MEDIA_SOURCE_COLLECTION, MediaSourceCollection), _tmp1_, _tmp1__target, _tmp2_, _tmp2__target);
#line 5393 "/home/jens/Source/shotwell/src/Photo.vala"
return self;
#line 41309 "Photo.c"
}
LibraryPhotoSourceHoldingTank* library_photo_source_holding_tank_new (LibraryPhotoSourceCollection* sources, SourceHoldingTankCheckToKeep check_to_keep, void* check_to_keep_target, GetSourceDatabaseKey get_key, void* get_key_target) {
#line 5393 "/home/jens/Source/shotwell/src/Photo.vala"
return library_photo_source_holding_tank_construct (TYPE_LIBRARY_PHOTO_SOURCE_HOLDING_TANK, sources, check_to_keep, check_to_keep_target, get_key, get_key_target);
#line 41316 "Photo.c"
}
LibraryPhoto* library_photo_source_holding_tank_fetch_by_backing_file (LibraryPhotoSourceHoldingTank* self, GFile* file) {
LibraryPhoto* result = NULL;
LibraryPhoto* ret = NULL;
GeeHashMap* _tmp0_ = NULL;
GFile* _tmp1_ = NULL;
gpointer _tmp2_ = NULL;
LibraryPhoto* _tmp3_ = NULL;
GeeHashMap* _tmp4_ = NULL;
GFile* _tmp5_ = NULL;
gpointer _tmp6_ = NULL;
#line 5398 "/home/jens/Source/shotwell/src/Photo.vala"
g_return_val_if_fail (IS_LIBRARY_PHOTO_SOURCE_HOLDING_TANK (self), NULL);
#line 5398 "/home/jens/Source/shotwell/src/Photo.vala"
g_return_val_if_fail (G_IS_FILE (file), NULL);
#line 5399 "/home/jens/Source/shotwell/src/Photo.vala"
ret = NULL;
#line 5400 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp0_ = self->priv->editable_file_map;
#line 5400 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp1_ = file;
#line 5400 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp2_ = gee_abstract_map_get (G_TYPE_CHECK_INSTANCE_CAST (_tmp0_, GEE_TYPE_ABSTRACT_MAP, GeeAbstractMap), _tmp1_);
#line 5400 "/home/jens/Source/shotwell/src/Photo.vala"
_g_object_unref0 (ret);
#line 5400 "/home/jens/Source/shotwell/src/Photo.vala"
ret = (LibraryPhoto*) _tmp2_;
#line 5401 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp3_ = ret;
#line 5401 "/home/jens/Source/shotwell/src/Photo.vala"
if (_tmp3_ != NULL) {
#line 5402 "/home/jens/Source/shotwell/src/Photo.vala"
result = ret;
#line 5402 "/home/jens/Source/shotwell/src/Photo.vala"
return result;
#line 41354 "Photo.c"
}
#line 5404 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp4_ = self->priv->development_file_map;
#line 5404 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp5_ = file;
#line 5404 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp6_ = gee_abstract_map_get (G_TYPE_CHECK_INSTANCE_CAST (_tmp4_, GEE_TYPE_ABSTRACT_MAP, GeeAbstractMap), _tmp5_);
#line 5404 "/home/jens/Source/shotwell/src/Photo.vala"
result = (LibraryPhoto*) _tmp6_;
#line 5404 "/home/jens/Source/shotwell/src/Photo.vala"
_g_object_unref0 (ret);
#line 5404 "/home/jens/Source/shotwell/src/Photo.vala"
return result;
#line 41368 "Photo.c"
}
static void _library_photo_source_holding_tank_on_editable_replaced_photo_editable_replaced (Photo* _sender, GFile* old_file, GFile* new_file, gpointer self) {
#line 5428 "/home/jens/Source/shotwell/src/Photo.vala"
library_photo_source_holding_tank_on_editable_replaced ((LibraryPhotoSourceHoldingTank*) self, _sender, old_file, new_file);
#line 41375 "Photo.c"
}
static void _library_photo_source_holding_tank_on_raw_development_modified_photo_raw_development_modified (Photo* _sender, gpointer self) {
#line 5429 "/home/jens/Source/shotwell/src/Photo.vala"
library_photo_source_holding_tank_on_raw_development_modified ((LibraryPhotoSourceHoldingTank*) self, _sender);
#line 41382 "Photo.c"
}
static void library_photo_source_holding_tank_real_notify_contents_altered (SourceHoldingTank* base, GeeCollection* added, GeeCollection* removed) {
LibraryPhotoSourceHoldingTank * self;
GeeCollection* _tmp0_ = NULL;
GeeCollection* _tmp40_ = NULL;
GeeCollection* _tmp81_ = NULL;
GeeCollection* _tmp82_ = NULL;
#line 5407 "/home/jens/Source/shotwell/src/Photo.vala"
self = G_TYPE_CHECK_INSTANCE_CAST (base, TYPE_LIBRARY_PHOTO_SOURCE_HOLDING_TANK, LibraryPhotoSourceHoldingTank);
#line 5407 "/home/jens/Source/shotwell/src/Photo.vala"
g_return_if_fail ((added == NULL) || GEE_IS_COLLECTION (added));
#line 5407 "/home/jens/Source/shotwell/src/Photo.vala"
g_return_if_fail ((removed == NULL) || GEE_IS_COLLECTION (removed));
#line 5409 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp0_ = added;
#line 5409 "/home/jens/Source/shotwell/src/Photo.vala"
if (_tmp0_ != NULL) {
#line 41402 "Photo.c"
{
GeeIterator* _source_it = NULL;
GeeCollection* _tmp1_ = NULL;
GeeIterator* _tmp2_ = NULL;
#line 5410 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp1_ = added;
#line 5410 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp2_ = gee_iterable_iterator (G_TYPE_CHECK_INSTANCE_CAST (_tmp1_, GEE_TYPE_ITERABLE, GeeIterable));
#line 5410 "/home/jens/Source/shotwell/src/Photo.vala"
_source_it = _tmp2_;
#line 5410 "/home/jens/Source/shotwell/src/Photo.vala"
while (TRUE) {
#line 41415 "Photo.c"
GeeIterator* _tmp3_ = NULL;
gboolean _tmp4_ = FALSE;
DataSource* source = NULL;
GeeIterator* _tmp5_ = NULL;
gpointer _tmp6_ = NULL;
LibraryPhoto* photo = NULL;
DataSource* _tmp7_ = NULL;
LibraryPhoto* _tmp8_ = NULL;
LibraryPhoto* _tmp9_ = NULL;
GFile* _tmp10_ = NULL;
GFile* _tmp11_ = NULL;
gboolean _tmp12_ = FALSE;
GeeCollection* raw_files = NULL;
LibraryPhoto* _tmp23_ = NULL;
GeeCollection* _tmp24_ = NULL;
GeeCollection* _tmp25_ = NULL;
LibraryPhoto* _tmp38_ = NULL;
LibraryPhoto* _tmp39_ = NULL;
#line 5410 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp3_ = _source_it;
#line 5410 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp4_ = gee_iterator_next (_tmp3_);
#line 5410 "/home/jens/Source/shotwell/src/Photo.vala"
if (!_tmp4_) {
#line 5410 "/home/jens/Source/shotwell/src/Photo.vala"
break;
#line 41442 "Photo.c"
}
#line 5410 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp5_ = _source_it;
#line 5410 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp6_ = gee_iterator_get (_tmp5_);
#line 5410 "/home/jens/Source/shotwell/src/Photo.vala"
source = (DataSource*) _tmp6_;
#line 5411 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp7_ = source;
#line 5411 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp8_ = _g_object_ref0 (G_TYPE_CHECK_INSTANCE_CAST (_tmp7_, TYPE_LIBRARY_PHOTO, LibraryPhoto));
#line 5411 "/home/jens/Source/shotwell/src/Photo.vala"
photo = _tmp8_;
#line 5414 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp9_ = photo;
#line 5414 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp10_ = photo_get_editable_file (G_TYPE_CHECK_INSTANCE_CAST (_tmp9_, TYPE_PHOTO, Photo));
#line 5414 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp11_ = _tmp10_;
#line 5414 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp12_ = _tmp11_ != NULL;
#line 5414 "/home/jens/Source/shotwell/src/Photo.vala"
_g_object_unref0 (_tmp11_);
#line 5414 "/home/jens/Source/shotwell/src/Photo.vala"
if (_tmp12_) {
#line 41468 "Photo.c"
GeeHashMap* _tmp13_ = NULL;
LibraryPhoto* _tmp14_ = NULL;
GFile* _tmp15_ = NULL;
GFile* _tmp16_ = NULL;
LibraryPhoto* _tmp17_ = NULL;
GeeMultiMap* _tmp18_ = NULL;
LibraryPhoto* _tmp19_ = NULL;
LibraryPhoto* _tmp20_ = NULL;
GFile* _tmp21_ = NULL;
GFile* _tmp22_ = NULL;
#line 5415 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp13_ = self->priv->editable_file_map;
#line 5415 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp14_ = photo;
#line 5415 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp15_ = photo_get_editable_file (G_TYPE_CHECK_INSTANCE_CAST (_tmp14_, TYPE_PHOTO, Photo));
#line 5415 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp16_ = _tmp15_;
#line 5415 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp17_ = photo;
#line 5415 "/home/jens/Source/shotwell/src/Photo.vala"
gee_abstract_map_set (G_TYPE_CHECK_INSTANCE_CAST (_tmp13_, GEE_TYPE_ABSTRACT_MAP, GeeAbstractMap), _tmp16_, _tmp17_);
#line 5415 "/home/jens/Source/shotwell/src/Photo.vala"
_g_object_unref0 (_tmp16_);
#line 5416 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp18_ = self->priv->reverse_editable_file_map;
#line 5416 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp19_ = photo;
#line 5416 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp20_ = photo;
#line 5416 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp21_ = photo_get_editable_file (G_TYPE_CHECK_INSTANCE_CAST (_tmp20_, TYPE_PHOTO, Photo));
#line 5416 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp22_ = _tmp21_;
#line 5416 "/home/jens/Source/shotwell/src/Photo.vala"
gee_multi_map_set (_tmp18_, _tmp19_, _tmp22_);
#line 5416 "/home/jens/Source/shotwell/src/Photo.vala"
_g_object_unref0 (_tmp22_);
#line 41507 "Photo.c"
}
#line 5420 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp23_ = photo;
#line 5420 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp24_ = photo_get_raw_developer_files (G_TYPE_CHECK_INSTANCE_CAST (_tmp23_, TYPE_PHOTO, Photo));
#line 5420 "/home/jens/Source/shotwell/src/Photo.vala"
raw_files = _tmp24_;
#line 5421 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp25_ = raw_files;
#line 5421 "/home/jens/Source/shotwell/src/Photo.vala"
if (_tmp25_ != NULL) {
#line 41519 "Photo.c"
{
GeeIterator* _f_it = NULL;
GeeCollection* _tmp26_ = NULL;
GeeIterator* _tmp27_ = NULL;
#line 5422 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp26_ = raw_files;
#line 5422 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp27_ = gee_iterable_iterator (G_TYPE_CHECK_INSTANCE_CAST (_tmp26_, GEE_TYPE_ITERABLE, GeeIterable));
#line 5422 "/home/jens/Source/shotwell/src/Photo.vala"
_f_it = _tmp27_;
#line 5422 "/home/jens/Source/shotwell/src/Photo.vala"
while (TRUE) {
#line 41532 "Photo.c"
GeeIterator* _tmp28_ = NULL;
gboolean _tmp29_ = FALSE;
GFile* f = NULL;
GeeIterator* _tmp30_ = NULL;
gpointer _tmp31_ = NULL;
GeeHashMap* _tmp32_ = NULL;
GFile* _tmp33_ = NULL;
LibraryPhoto* _tmp34_ = NULL;
GeeMultiMap* _tmp35_ = NULL;
LibraryPhoto* _tmp36_ = NULL;
GFile* _tmp37_ = NULL;
#line 5422 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp28_ = _f_it;
#line 5422 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp29_ = gee_iterator_next (_tmp28_);
#line 5422 "/home/jens/Source/shotwell/src/Photo.vala"
if (!_tmp29_) {
#line 5422 "/home/jens/Source/shotwell/src/Photo.vala"
break;
#line 41552 "Photo.c"
}
#line 5422 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp30_ = _f_it;
#line 5422 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp31_ = gee_iterator_get (_tmp30_);
#line 5422 "/home/jens/Source/shotwell/src/Photo.vala"
f = (GFile*) _tmp31_;
#line 5423 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp32_ = self->priv->development_file_map;
#line 5423 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp33_ = f;
#line 5423 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp34_ = photo;
#line 5423 "/home/jens/Source/shotwell/src/Photo.vala"
gee_abstract_map_set (G_TYPE_CHECK_INSTANCE_CAST (_tmp32_, GEE_TYPE_ABSTRACT_MAP, GeeAbstractMap), _tmp33_, _tmp34_);
#line 5424 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp35_ = self->priv->reverse_development_file_map;
#line 5424 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp36_ = photo;
#line 5424 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp37_ = f;
#line 5424 "/home/jens/Source/shotwell/src/Photo.vala"
gee_multi_map_set (_tmp35_, _tmp36_, _tmp37_);
#line 5422 "/home/jens/Source/shotwell/src/Photo.vala"
_g_object_unref0 (f);
#line 41578 "Photo.c"
}
#line 5422 "/home/jens/Source/shotwell/src/Photo.vala"
_g_object_unref0 (_f_it);
#line 41582 "Photo.c"
}
}
#line 5428 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp38_ = photo;
#line 5428 "/home/jens/Source/shotwell/src/Photo.vala"
g_signal_connect (G_TYPE_CHECK_INSTANCE_CAST (_tmp38_, TYPE_PHOTO, Photo), "editable-replaced", (GCallback) _library_photo_source_holding_tank_on_editable_replaced_photo_editable_replaced, self);
#line 5429 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp39_ = photo;
#line 5429 "/home/jens/Source/shotwell/src/Photo.vala"
g_signal_connect (G_TYPE_CHECK_INSTANCE_CAST (_tmp39_, TYPE_PHOTO, Photo), "raw-development-modified", (GCallback) _library_photo_source_holding_tank_on_raw_development_modified_photo_raw_development_modified, self);
#line 5410 "/home/jens/Source/shotwell/src/Photo.vala"
_g_object_unref0 (raw_files);
#line 5410 "/home/jens/Source/shotwell/src/Photo.vala"
_g_object_unref0 (photo);
#line 5410 "/home/jens/Source/shotwell/src/Photo.vala"
_g_object_unref0 (source);
#line 41599 "Photo.c"
}
#line 5410 "/home/jens/Source/shotwell/src/Photo.vala"
_g_object_unref0 (_source_it);
#line 41603 "Photo.c"
}
}
#line 5433 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp40_ = removed;
#line 5433 "/home/jens/Source/shotwell/src/Photo.vala"
if (_tmp40_ != NULL) {
#line 41610 "Photo.c"
{
GeeIterator* _source_it = NULL;
GeeCollection* _tmp41_ = NULL;
GeeIterator* _tmp42_ = NULL;
#line 5434 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp41_ = removed;
#line 5434 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp42_ = gee_iterable_iterator (G_TYPE_CHECK_INSTANCE_CAST (_tmp41_, GEE_TYPE_ITERABLE, GeeIterable));
#line 5434 "/home/jens/Source/shotwell/src/Photo.vala"
_source_it = _tmp42_;
#line 5434 "/home/jens/Source/shotwell/src/Photo.vala"
while (TRUE) {
#line 41623 "Photo.c"
GeeIterator* _tmp43_ = NULL;
gboolean _tmp44_ = FALSE;
DataSource* source = NULL;
GeeIterator* _tmp45_ = NULL;
gpointer _tmp46_ = NULL;
LibraryPhoto* photo = NULL;
DataSource* _tmp47_ = NULL;
LibraryPhoto* _tmp48_ = NULL;
GeeMultiMap* _tmp73_ = NULL;
LibraryPhoto* _tmp74_ = NULL;
GeeMultiMap* _tmp75_ = NULL;
LibraryPhoto* _tmp76_ = NULL;
LibraryPhoto* _tmp77_ = NULL;
guint _tmp78_ = 0U;
LibraryPhoto* _tmp79_ = NULL;
guint _tmp80_ = 0U;
#line 5434 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp43_ = _source_it;
#line 5434 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp44_ = gee_iterator_next (_tmp43_);
#line 5434 "/home/jens/Source/shotwell/src/Photo.vala"
if (!_tmp44_) {
#line 5434 "/home/jens/Source/shotwell/src/Photo.vala"
break;
#line 41648 "Photo.c"
}
#line 5434 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp45_ = _source_it;
#line 5434 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp46_ = gee_iterator_get (_tmp45_);
#line 5434 "/home/jens/Source/shotwell/src/Photo.vala"
source = (DataSource*) _tmp46_;
#line 5435 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp47_ = source;
#line 5435 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp48_ = _g_object_ref0 (G_TYPE_CHECK_INSTANCE_CAST (_tmp47_, TYPE_LIBRARY_PHOTO, LibraryPhoto));
#line 5435 "/home/jens/Source/shotwell/src/Photo.vala"
photo = _tmp48_;
#line 41662 "Photo.c"
{
GeeIterator* _f_it = NULL;
GeeMultiMap* _tmp49_ = NULL;
LibraryPhoto* _tmp50_ = NULL;
GeeCollection* _tmp51_ = NULL;
GeeCollection* _tmp52_ = NULL;
GeeIterator* _tmp53_ = NULL;
GeeIterator* _tmp54_ = NULL;
#line 5436 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp49_ = self->priv->reverse_editable_file_map;
#line 5436 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp50_ = photo;
#line 5436 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp51_ = gee_multi_map_get (_tmp49_, _tmp50_);
#line 5436 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp52_ = _tmp51_;
#line 5436 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp53_ = gee_iterable_iterator (G_TYPE_CHECK_INSTANCE_CAST (_tmp52_, GEE_TYPE_ITERABLE, GeeIterable));
#line 5436 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp54_ = _tmp53_;
#line 5436 "/home/jens/Source/shotwell/src/Photo.vala"
_g_object_unref0 (_tmp52_);
#line 5436 "/home/jens/Source/shotwell/src/Photo.vala"
_f_it = _tmp54_;
#line 5436 "/home/jens/Source/shotwell/src/Photo.vala"
while (TRUE) {
#line 41689 "Photo.c"
GeeIterator* _tmp55_ = NULL;
gboolean _tmp56_ = FALSE;
GFile* f = NULL;
GeeIterator* _tmp57_ = NULL;
gpointer _tmp58_ = NULL;
GeeHashMap* _tmp59_ = NULL;
GFile* _tmp60_ = NULL;
#line 5436 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp55_ = _f_it;
#line 5436 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp56_ = gee_iterator_next (_tmp55_);
#line 5436 "/home/jens/Source/shotwell/src/Photo.vala"
if (!_tmp56_) {
#line 5436 "/home/jens/Source/shotwell/src/Photo.vala"
break;
#line 41705 "Photo.c"
}
#line 5436 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp57_ = _f_it;
#line 5436 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp58_ = gee_iterator_get (_tmp57_);
#line 5436 "/home/jens/Source/shotwell/src/Photo.vala"
f = (GFile*) _tmp58_;
#line 5437 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp59_ = self->priv->editable_file_map;
#line 5437 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp60_ = f;
#line 5437 "/home/jens/Source/shotwell/src/Photo.vala"
gee_abstract_map_unset (G_TYPE_CHECK_INSTANCE_CAST (_tmp59_, GEE_TYPE_ABSTRACT_MAP, GeeAbstractMap), _tmp60_, NULL);
#line 5436 "/home/jens/Source/shotwell/src/Photo.vala"
_g_object_unref0 (f);
#line 41721 "Photo.c"
}
#line 5436 "/home/jens/Source/shotwell/src/Photo.vala"
_g_object_unref0 (_f_it);
#line 41725 "Photo.c"
}
{
GeeIterator* _f_it = NULL;
GeeMultiMap* _tmp61_ = NULL;
LibraryPhoto* _tmp62_ = NULL;
GeeCollection* _tmp63_ = NULL;
GeeCollection* _tmp64_ = NULL;
GeeIterator* _tmp65_ = NULL;
GeeIterator* _tmp66_ = NULL;
#line 5439 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp61_ = self->priv->reverse_development_file_map;
#line 5439 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp62_ = photo;
#line 5439 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp63_ = gee_multi_map_get (_tmp61_, _tmp62_);
#line 5439 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp64_ = _tmp63_;
#line 5439 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp65_ = gee_iterable_iterator (G_TYPE_CHECK_INSTANCE_CAST (_tmp64_, GEE_TYPE_ITERABLE, GeeIterable));
#line 5439 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp66_ = _tmp65_;
#line 5439 "/home/jens/Source/shotwell/src/Photo.vala"
_g_object_unref0 (_tmp64_);
#line 5439 "/home/jens/Source/shotwell/src/Photo.vala"
_f_it = _tmp66_;
#line 5439 "/home/jens/Source/shotwell/src/Photo.vala"
while (TRUE) {
#line 41753 "Photo.c"
GeeIterator* _tmp67_ = NULL;
gboolean _tmp68_ = FALSE;
GFile* f = NULL;
GeeIterator* _tmp69_ = NULL;
gpointer _tmp70_ = NULL;
GeeHashMap* _tmp71_ = NULL;
GFile* _tmp72_ = NULL;
#line 5439 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp67_ = _f_it;
#line 5439 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp68_ = gee_iterator_next (_tmp67_);
#line 5439 "/home/jens/Source/shotwell/src/Photo.vala"
if (!_tmp68_) {
#line 5439 "/home/jens/Source/shotwell/src/Photo.vala"
break;
#line 41769 "Photo.c"
}
#line 5439 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp69_ = _f_it;
#line 5439 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp70_ = gee_iterator_get (_tmp69_);
#line 5439 "/home/jens/Source/shotwell/src/Photo.vala"
f = (GFile*) _tmp70_;
#line 5440 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp71_ = self->priv->development_file_map;
#line 5440 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp72_ = f;
#line 5440 "/home/jens/Source/shotwell/src/Photo.vala"
gee_abstract_map_unset (G_TYPE_CHECK_INSTANCE_CAST (_tmp71_, GEE_TYPE_ABSTRACT_MAP, GeeAbstractMap), _tmp72_, NULL);
#line 5439 "/home/jens/Source/shotwell/src/Photo.vala"
_g_object_unref0 (f);
#line 41785 "Photo.c"
}
#line 5439 "/home/jens/Source/shotwell/src/Photo.vala"
_g_object_unref0 (_f_it);
#line 41789 "Photo.c"
}
#line 5442 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp73_ = self->priv->reverse_editable_file_map;
#line 5442 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp74_ = photo;
#line 5442 "/home/jens/Source/shotwell/src/Photo.vala"
gee_multi_map_remove_all (_tmp73_, _tmp74_);
#line 5443 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp75_ = self->priv->reverse_development_file_map;
#line 5443 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp76_ = photo;
#line 5443 "/home/jens/Source/shotwell/src/Photo.vala"
gee_multi_map_remove_all (_tmp75_, _tmp76_);
#line 5445 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp77_ = photo;
#line 5445 "/home/jens/Source/shotwell/src/Photo.vala"
g_signal_parse_name ("editable-replaced", TYPE_PHOTO, &_tmp78_, NULL, FALSE);
#line 5445 "/home/jens/Source/shotwell/src/Photo.vala"
g_signal_handlers_disconnect_matched (G_TYPE_CHECK_INSTANCE_CAST (_tmp77_, TYPE_PHOTO, Photo), G_SIGNAL_MATCH_ID | G_SIGNAL_MATCH_FUNC | G_SIGNAL_MATCH_DATA, _tmp78_, 0, NULL, (GCallback) _library_photo_source_holding_tank_on_editable_replaced_photo_editable_replaced, self);
#line 5446 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp79_ = photo;
#line 5446 "/home/jens/Source/shotwell/src/Photo.vala"
g_signal_parse_name ("raw-development-modified", TYPE_PHOTO, &_tmp80_, NULL, FALSE);
#line 5446 "/home/jens/Source/shotwell/src/Photo.vala"
g_signal_handlers_disconnect_matched (G_TYPE_CHECK_INSTANCE_CAST (_tmp79_, TYPE_PHOTO, Photo), G_SIGNAL_MATCH_ID | G_SIGNAL_MATCH_FUNC | G_SIGNAL_MATCH_DATA, _tmp80_, 0, NULL, (GCallback) _library_photo_source_holding_tank_on_raw_development_modified_photo_raw_development_modified, self);
#line 5434 "/home/jens/Source/shotwell/src/Photo.vala"
_g_object_unref0 (photo);
#line 5434 "/home/jens/Source/shotwell/src/Photo.vala"
_g_object_unref0 (source);
#line 41819 "Photo.c"
}
#line 5434 "/home/jens/Source/shotwell/src/Photo.vala"
_g_object_unref0 (_source_it);
#line 41823 "Photo.c"
}
}
#line 5450 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp81_ = added;
#line 5450 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp82_ = removed;
#line 5450 "/home/jens/Source/shotwell/src/Photo.vala"
SOURCE_HOLDING_TANK_CLASS (library_photo_source_holding_tank_parent_class)->notify_contents_altered (G_TYPE_CHECK_INSTANCE_CAST (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_MEDIA_SOURCE_HOLDING_TANK, MediaSourceHoldingTank), TYPE_SOURCE_HOLDING_TANK, SourceHoldingTank), _tmp81_, _tmp82_);
#line 41832 "Photo.c"
}
static void library_photo_source_holding_tank_on_editable_replaced (LibraryPhotoSourceHoldingTank* self, Photo* _photo, GFile* old_file, GFile* new_file) {
LibraryPhoto* photo = NULL;
Photo* _tmp0_ = NULL;
LibraryPhoto* _tmp1_ = NULL;
LibraryPhoto* _tmp2_ = NULL;
GFile* _tmp3_ = NULL;
GFile* _tmp9_ = NULL;
GeeMultiMap* _tmp13_ = NULL;
LibraryPhoto* _tmp14_ = NULL;
GFile* _tmp15_ = NULL;
#line 5453 "/home/jens/Source/shotwell/src/Photo.vala"
g_return_if_fail (IS_LIBRARY_PHOTO_SOURCE_HOLDING_TANK (self));
#line 5453 "/home/jens/Source/shotwell/src/Photo.vala"
g_return_if_fail (IS_PHOTO (_photo));
#line 5453 "/home/jens/Source/shotwell/src/Photo.vala"
g_return_if_fail ((old_file == NULL) || G_IS_FILE (old_file));
#line 5453 "/home/jens/Source/shotwell/src/Photo.vala"
g_return_if_fail ((new_file == NULL) || G_IS_FILE (new_file));
#line 5454 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp0_ = _photo;
#line 5454 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp1_ = _g_object_ref0 (G_TYPE_CHECK_INSTANCE_TYPE (_tmp0_, TYPE_LIBRARY_PHOTO) ? ((LibraryPhoto*) _tmp0_) : NULL);
#line 5454 "/home/jens/Source/shotwell/src/Photo.vala"
photo = _tmp1_;
#line 5455 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp2_ = photo;
#line 5455 "/home/jens/Source/shotwell/src/Photo.vala"
_vala_assert (_tmp2_ != NULL, "photo != null");
#line 5457 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp3_ = old_file;
#line 5457 "/home/jens/Source/shotwell/src/Photo.vala"
if (_tmp3_ != NULL) {
#line 41868 "Photo.c"
GeeHashMap* _tmp4_ = NULL;
GFile* _tmp5_ = NULL;
GeeMultiMap* _tmp6_ = NULL;
LibraryPhoto* _tmp7_ = NULL;
GFile* _tmp8_ = NULL;
#line 5458 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp4_ = self->priv->editable_file_map;
#line 5458 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp5_ = old_file;
#line 5458 "/home/jens/Source/shotwell/src/Photo.vala"
gee_abstract_map_unset (G_TYPE_CHECK_INSTANCE_CAST (_tmp4_, GEE_TYPE_ABSTRACT_MAP, GeeAbstractMap), _tmp5_, NULL);
#line 5459 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp6_ = self->priv->reverse_editable_file_map;
#line 5459 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp7_ = photo;
#line 5459 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp8_ = old_file;
#line 5459 "/home/jens/Source/shotwell/src/Photo.vala"
gee_multi_map_remove (_tmp6_, _tmp7_, _tmp8_);
#line 41888 "Photo.c"
}
#line 5462 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp9_ = new_file;
#line 5462 "/home/jens/Source/shotwell/src/Photo.vala"
if (_tmp9_ != NULL) {
#line 41894 "Photo.c"
GeeHashMap* _tmp10_ = NULL;
GFile* _tmp11_ = NULL;
LibraryPhoto* _tmp12_ = NULL;
#line 5463 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp10_ = self->priv->editable_file_map;
#line 5463 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp11_ = new_file;
#line 5463 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp12_ = photo;
#line 5463 "/home/jens/Source/shotwell/src/Photo.vala"
gee_abstract_map_set (G_TYPE_CHECK_INSTANCE_CAST (_tmp10_, GEE_TYPE_ABSTRACT_MAP, GeeAbstractMap), _tmp11_, _tmp12_);
#line 41906 "Photo.c"
}
#line 5464 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp13_ = self->priv->reverse_editable_file_map;
#line 5464 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp14_ = photo;
#line 5464 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp15_ = new_file;
#line 5464 "/home/jens/Source/shotwell/src/Photo.vala"
gee_multi_map_set (_tmp13_, _tmp14_, _tmp15_);
#line 5453 "/home/jens/Source/shotwell/src/Photo.vala"
_g_object_unref0 (photo);
#line 41918 "Photo.c"
}
static void library_photo_source_holding_tank_on_raw_development_modified (LibraryPhotoSourceHoldingTank* self, Photo* _photo) {
LibraryPhoto* photo = NULL;
Photo* _tmp0_ = NULL;
LibraryPhoto* _tmp1_ = NULL;
LibraryPhoto* _tmp2_ = NULL;
GeeMultiMap* _tmp3_ = NULL;
LibraryPhoto* _tmp4_ = NULL;
gboolean _tmp5_ = FALSE;
GeeCollection* raw_list = NULL;
LibraryPhoto* _tmp20_ = NULL;
GeeCollection* _tmp21_ = NULL;
GeeCollection* _tmp22_ = NULL;
#line 5467 "/home/jens/Source/shotwell/src/Photo.vala"
g_return_if_fail (IS_LIBRARY_PHOTO_SOURCE_HOLDING_TANK (self));
#line 5467 "/home/jens/Source/shotwell/src/Photo.vala"
g_return_if_fail (IS_PHOTO (_photo));
#line 5468 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp0_ = _photo;
#line 5468 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp1_ = _g_object_ref0 (G_TYPE_CHECK_INSTANCE_TYPE (_tmp0_, TYPE_LIBRARY_PHOTO) ? ((LibraryPhoto*) _tmp0_) : NULL);
#line 5468 "/home/jens/Source/shotwell/src/Photo.vala"
photo = _tmp1_;
#line 5469 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp2_ = photo;
#line 5469 "/home/jens/Source/shotwell/src/Photo.vala"
_vala_assert (_tmp2_ != NULL, "photo != null");
#line 5472 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp3_ = self->priv->reverse_development_file_map;
#line 5472 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp4_ = photo;
#line 5472 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp5_ = gee_multi_map_contains (_tmp3_, _tmp4_);
#line 5472 "/home/jens/Source/shotwell/src/Photo.vala"
if (_tmp5_) {
#line 41956 "Photo.c"
GeeMultiMap* _tmp18_ = NULL;
LibraryPhoto* _tmp19_ = NULL;
{
GeeIterator* _f_it = NULL;
GeeMultiMap* _tmp6_ = NULL;
LibraryPhoto* _tmp7_ = NULL;
GeeCollection* _tmp8_ = NULL;
GeeCollection* _tmp9_ = NULL;
GeeIterator* _tmp10_ = NULL;
GeeIterator* _tmp11_ = NULL;
#line 5473 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp6_ = self->priv->reverse_development_file_map;
#line 5473 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp7_ = photo;
#line 5473 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp8_ = gee_multi_map_get (_tmp6_, _tmp7_);
#line 5473 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp9_ = _tmp8_;
#line 5473 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp10_ = gee_iterable_iterator (G_TYPE_CHECK_INSTANCE_CAST (_tmp9_, GEE_TYPE_ITERABLE, GeeIterable));
#line 5473 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp11_ = _tmp10_;
#line 5473 "/home/jens/Source/shotwell/src/Photo.vala"
_g_object_unref0 (_tmp9_);
#line 5473 "/home/jens/Source/shotwell/src/Photo.vala"
_f_it = _tmp11_;
#line 5473 "/home/jens/Source/shotwell/src/Photo.vala"
while (TRUE) {
#line 41985 "Photo.c"
GeeIterator* _tmp12_ = NULL;
gboolean _tmp13_ = FALSE;
GFile* f = NULL;
GeeIterator* _tmp14_ = NULL;
gpointer _tmp15_ = NULL;
GeeHashMap* _tmp16_ = NULL;
GFile* _tmp17_ = NULL;
#line 5473 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp12_ = _f_it;
#line 5473 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp13_ = gee_iterator_next (_tmp12_);
#line 5473 "/home/jens/Source/shotwell/src/Photo.vala"
if (!_tmp13_) {
#line 5473 "/home/jens/Source/shotwell/src/Photo.vala"
break;
#line 42001 "Photo.c"
}
#line 5473 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp14_ = _f_it;
#line 5473 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp15_ = gee_iterator_get (_tmp14_);
#line 5473 "/home/jens/Source/shotwell/src/Photo.vala"
f = (GFile*) _tmp15_;
#line 5474 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp16_ = self->priv->development_file_map;
#line 5474 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp17_ = f;
#line 5474 "/home/jens/Source/shotwell/src/Photo.vala"
gee_abstract_map_unset (G_TYPE_CHECK_INSTANCE_CAST (_tmp16_, GEE_TYPE_ABSTRACT_MAP, GeeAbstractMap), _tmp17_, NULL);
#line 5473 "/home/jens/Source/shotwell/src/Photo.vala"
_g_object_unref0 (f);
#line 42017 "Photo.c"
}
#line 5473 "/home/jens/Source/shotwell/src/Photo.vala"
_g_object_unref0 (_f_it);
#line 42021 "Photo.c"
}
#line 5475 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp18_ = self->priv->reverse_development_file_map;
#line 5475 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp19_ = photo;
#line 5475 "/home/jens/Source/shotwell/src/Photo.vala"
gee_multi_map_remove_all (_tmp18_, _tmp19_);
#line 42029 "Photo.c"
}
#line 5479 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp20_ = photo;
#line 5479 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp21_ = photo_get_raw_developer_files (G_TYPE_CHECK_INSTANCE_CAST (_tmp20_, TYPE_PHOTO, Photo));
#line 5479 "/home/jens/Source/shotwell/src/Photo.vala"
raw_list = _tmp21_;
#line 5480 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp22_ = raw_list;
#line 5480 "/home/jens/Source/shotwell/src/Photo.vala"
if (_tmp22_ != NULL) {
#line 42041 "Photo.c"
{
GeeIterator* _f_it = NULL;
GeeCollection* _tmp23_ = NULL;
GeeIterator* _tmp24_ = NULL;
#line 5481 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp23_ = raw_list;
#line 5481 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp24_ = gee_iterable_iterator (G_TYPE_CHECK_INSTANCE_CAST (_tmp23_, GEE_TYPE_ITERABLE, GeeIterable));
#line 5481 "/home/jens/Source/shotwell/src/Photo.vala"
_f_it = _tmp24_;
#line 5481 "/home/jens/Source/shotwell/src/Photo.vala"
while (TRUE) {
#line 42054 "Photo.c"
GeeIterator* _tmp25_ = NULL;
gboolean _tmp26_ = FALSE;
GFile* f = NULL;
GeeIterator* _tmp27_ = NULL;
gpointer _tmp28_ = NULL;
GeeHashMap* _tmp29_ = NULL;
GFile* _tmp30_ = NULL;
LibraryPhoto* _tmp31_ = NULL;
GeeMultiMap* _tmp32_ = NULL;
LibraryPhoto* _tmp33_ = NULL;
GFile* _tmp34_ = NULL;
#line 5481 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp25_ = _f_it;
#line 5481 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp26_ = gee_iterator_next (_tmp25_);
#line 5481 "/home/jens/Source/shotwell/src/Photo.vala"
if (!_tmp26_) {
#line 5481 "/home/jens/Source/shotwell/src/Photo.vala"
break;
#line 42074 "Photo.c"
}
#line 5481 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp27_ = _f_it;
#line 5481 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp28_ = gee_iterator_get (_tmp27_);
#line 5481 "/home/jens/Source/shotwell/src/Photo.vala"
f = (GFile*) _tmp28_;
#line 5482 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp29_ = self->priv->development_file_map;
#line 5482 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp30_ = f;
#line 5482 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp31_ = photo;
#line 5482 "/home/jens/Source/shotwell/src/Photo.vala"
gee_abstract_map_set (G_TYPE_CHECK_INSTANCE_CAST (_tmp29_, GEE_TYPE_ABSTRACT_MAP, GeeAbstractMap), _tmp30_, _tmp31_);
#line 5483 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp32_ = self->priv->reverse_development_file_map;
#line 5483 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp33_ = photo;
#line 5483 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp34_ = f;
#line 5483 "/home/jens/Source/shotwell/src/Photo.vala"
gee_multi_map_set (_tmp32_, _tmp33_, _tmp34_);
#line 5481 "/home/jens/Source/shotwell/src/Photo.vala"
_g_object_unref0 (f);
#line 42100 "Photo.c"
}
#line 5481 "/home/jens/Source/shotwell/src/Photo.vala"
_g_object_unref0 (_f_it);
#line 42104 "Photo.c"
}
}
#line 5467 "/home/jens/Source/shotwell/src/Photo.vala"
_g_object_unref0 (raw_list);
#line 5467 "/home/jens/Source/shotwell/src/Photo.vala"
_g_object_unref0 (photo);
#line 42111 "Photo.c"
}
static void library_photo_source_holding_tank_class_init (LibraryPhotoSourceHoldingTankClass * klass) {
#line 5383 "/home/jens/Source/shotwell/src/Photo.vala"
library_photo_source_holding_tank_parent_class = g_type_class_peek_parent (klass);
#line 5383 "/home/jens/Source/shotwell/src/Photo.vala"
((SourceHoldingTankClass *) klass)->finalize = library_photo_source_holding_tank_finalize;
#line 5383 "/home/jens/Source/shotwell/src/Photo.vala"
g_type_class_add_private (klass, sizeof (LibraryPhotoSourceHoldingTankPrivate));
#line 5383 "/home/jens/Source/shotwell/src/Photo.vala"
((SourceHoldingTankClass *) klass)->notify_contents_altered = library_photo_source_holding_tank_real_notify_contents_altered;
#line 42124 "Photo.c"
}
static void library_photo_source_holding_tank_instance_init (LibraryPhotoSourceHoldingTank * self) {
GeeHashMap* _tmp0_ = NULL;
GeeHashMap* _tmp1_ = NULL;
GeeHashMultiMap* _tmp2_ = NULL;
GeeHashMultiMap* _tmp3_ = NULL;
#line 5383 "/home/jens/Source/shotwell/src/Photo.vala"
self->priv = LIBRARY_PHOTO_SOURCE_HOLDING_TANK_GET_PRIVATE (self);
#line 5384 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp0_ = gee_hash_map_new (g_file_get_type (), (GBoxedCopyFunc) g_object_ref, g_object_unref, TYPE_LIBRARY_PHOTO, (GBoxedCopyFunc) g_object_ref, g_object_unref, _file_hash_gee_hash_data_func, NULL, NULL, _file_equal_gee_equal_data_func, NULL, NULL, NULL, NULL, NULL);
#line 5384 "/home/jens/Source/shotwell/src/Photo.vala"
self->priv->editable_file_map = _tmp0_;
#line 5386 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp1_ = gee_hash_map_new (g_file_get_type (), (GBoxedCopyFunc) g_object_ref, g_object_unref, TYPE_LIBRARY_PHOTO, (GBoxedCopyFunc) g_object_ref, g_object_unref, _file_hash_gee_hash_data_func, NULL, NULL, _file_equal_gee_equal_data_func, NULL, NULL, NULL, NULL, NULL);
#line 5386 "/home/jens/Source/shotwell/src/Photo.vala"
self->priv->development_file_map = _tmp1_;
#line 5388 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp2_ = gee_hash_multi_map_new (TYPE_LIBRARY_PHOTO, (GBoxedCopyFunc) g_object_ref, g_object_unref, g_file_get_type (), (GBoxedCopyFunc) g_object_ref, g_object_unref, NULL, NULL, NULL, NULL, NULL, NULL, _file_hash_gee_hash_data_func, NULL, NULL, _file_equal_gee_equal_data_func, NULL, NULL);
#line 5388 "/home/jens/Source/shotwell/src/Photo.vala"
self->priv->reverse_editable_file_map = G_TYPE_CHECK_INSTANCE_CAST (_tmp2_, GEE_TYPE_MULTI_MAP, GeeMultiMap);
#line 5390 "/home/jens/Source/shotwell/src/Photo.vala"
_tmp3_ = gee_hash_multi_map_new (TYPE_LIBRARY_PHOTO, (GBoxedCopyFunc) g_object_ref, g_object_unref, g_file_get_type (), (GBoxedCopyFunc) g_object_ref, g_object_unref, NULL, NULL, NULL, NULL, NULL, NULL, _file_hash_gee_hash_data_func, NULL, NULL, _file_equal_gee_equal_data_func, NULL, NULL);
#line 5390 "/home/jens/Source/shotwell/src/Photo.vala"
self->priv->reverse_development_file_map = G_TYPE_CHECK_INSTANCE_CAST (_tmp3_, GEE_TYPE_MULTI_MAP, GeeMultiMap);
#line 42151 "Photo.c"
}
static void library_photo_source_holding_tank_finalize (SourceHoldingTank* obj) {
LibraryPhotoSourceHoldingTank * self;
#line 5383 "/home/jens/Source/shotwell/src/Photo.vala"
self = G_TYPE_CHECK_INSTANCE_CAST (obj, TYPE_LIBRARY_PHOTO_SOURCE_HOLDING_TANK, LibraryPhotoSourceHoldingTank);
#line 5384 "/home/jens/Source/shotwell/src/Photo.vala"
_g_object_unref0 (self->priv->editable_file_map);
#line 5386 "/home/jens/Source/shotwell/src/Photo.vala"
_g_object_unref0 (self->priv->development_file_map);
#line 5388 "/home/jens/Source/shotwell/src/Photo.vala"
_g_object_unref0 (self->priv->reverse_editable_file_map);
#line 5390 "/home/jens/Source/shotwell/src/Photo.vala"
_g_object_unref0 (self->priv->reverse_development_file_map);
#line 5383 "/home/jens/Source/shotwell/src/Photo.vala"
SOURCE_HOLDING_TANK_CLASS (library_photo_source_holding_tank_parent_class)->finalize (obj);
#line 42169 "Photo.c"
}
GType library_photo_source_holding_tank_get_type (void) {
static volatile gsize library_photo_source_holding_tank_type_id__volatile = 0;
if (g_once_init_enter (&library_photo_source_holding_tank_type_id__volatile)) {
static const GTypeInfo g_define_type_info = { sizeof (LibraryPhotoSourceHoldingTankClass), (GBaseInitFunc) NULL, (GBaseFinalizeFunc) NULL, (GClassInitFunc) library_photo_source_holding_tank_class_init, (GClassFinalizeFunc) NULL, NULL, sizeof (LibraryPhotoSourceHoldingTank), 0, (GInstanceInitFunc) library_photo_source_holding_tank_instance_init, NULL };
GType library_photo_source_holding_tank_type_id;
library_photo_source_holding_tank_type_id = g_type_register_static (TYPE_MEDIA_SOURCE_HOLDING_TANK, "LibraryPhotoSourceHoldingTank", &g_define_type_info, 0);
g_once_init_leave (&library_photo_source_holding_tank_type_id__volatile, library_photo_source_holding_tank_type_id);
}
return library_photo_source_holding_tank_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);
}
|