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
|
/* Preferences.c generated by valac 0.36.6, the Vala compiler
* generated from Preferences.vala, do not modify */
/* Copyright 2016 Software Freedom Conservancy Inc.
* Copyright 2017 Jens Georg <mail@jensge.org>
*
* This software is licensed under the GNU LGPL (version 2.1 or later).
* See the COPYING file in this distribution.
*/
#include <glib.h>
#include <glib-object.h>
#include <gtk/gtk.h>
#include <gio/gio.h>
#include <stdlib.h>
#include <string.h>
#include <gee.h>
#include <gdk/gdk.h>
#include <float.h>
#include <math.h>
#include <glib/gi18n-lib.h>
#include <gdk-pixbuf/gdk-pixbuf.h>
#include <gobject/gvaluecollector.h>
#define TYPE_PREFERENCES_DIALOG (preferences_dialog_get_type ())
#define PREFERENCES_DIALOG(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_PREFERENCES_DIALOG, PreferencesDialog))
#define PREFERENCES_DIALOG_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_PREFERENCES_DIALOG, PreferencesDialogClass))
#define IS_PREFERENCES_DIALOG(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_PREFERENCES_DIALOG))
#define IS_PREFERENCES_DIALOG_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_PREFERENCES_DIALOG))
#define PREFERENCES_DIALOG_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_PREFERENCES_DIALOG, PreferencesDialogClass))
typedef struct _PreferencesDialog PreferencesDialog;
typedef struct _PreferencesDialogClass PreferencesDialogClass;
typedef struct _PreferencesDialogPrivate PreferencesDialogPrivate;
#define TYPE_SORTED_LIST (sorted_list_get_type ())
#define SORTED_LIST(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_SORTED_LIST, SortedList))
#define SORTED_LIST_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_SORTED_LIST, SortedListClass))
#define IS_SORTED_LIST(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_SORTED_LIST))
#define IS_SORTED_LIST_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_SORTED_LIST))
#define SORTED_LIST_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_SORTED_LIST, SortedListClass))
typedef struct _SortedList SortedList;
typedef struct _SortedListClass SortedListClass;
#define PREFERENCES_DIALOG_TYPE_PATH_FORMAT (preferences_dialog_path_format_get_type ())
#define PREFERENCES_DIALOG_PATH_FORMAT(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), PREFERENCES_DIALOG_TYPE_PATH_FORMAT, PreferencesDialogPathFormat))
#define PREFERENCES_DIALOG_PATH_FORMAT_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), PREFERENCES_DIALOG_TYPE_PATH_FORMAT, PreferencesDialogPathFormatClass))
#define PREFERENCES_DIALOG_IS_PATH_FORMAT(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), PREFERENCES_DIALOG_TYPE_PATH_FORMAT))
#define PREFERENCES_DIALOG_IS_PATH_FORMAT_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), PREFERENCES_DIALOG_TYPE_PATH_FORMAT))
#define PREFERENCES_DIALOG_PATH_FORMAT_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), PREFERENCES_DIALOG_TYPE_PATH_FORMAT, PreferencesDialogPathFormatClass))
typedef struct _PreferencesDialogPathFormat PreferencesDialogPathFormat;
typedef struct _PreferencesDialogPathFormatClass PreferencesDialogPathFormatClass;
#define PLUGINS_TYPE_MANIFEST_WIDGET_MEDIATOR (plugins_manifest_widget_mediator_get_type ())
#define PLUGINS_MANIFEST_WIDGET_MEDIATOR(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), PLUGINS_TYPE_MANIFEST_WIDGET_MEDIATOR, PluginsManifestWidgetMediator))
#define PLUGINS_MANIFEST_WIDGET_MEDIATOR_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), PLUGINS_TYPE_MANIFEST_WIDGET_MEDIATOR, PluginsManifestWidgetMediatorClass))
#define PLUGINS_IS_MANIFEST_WIDGET_MEDIATOR(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), PLUGINS_TYPE_MANIFEST_WIDGET_MEDIATOR))
#define PLUGINS_IS_MANIFEST_WIDGET_MEDIATOR_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), PLUGINS_TYPE_MANIFEST_WIDGET_MEDIATOR))
#define PLUGINS_MANIFEST_WIDGET_MEDIATOR_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), PLUGINS_TYPE_MANIFEST_WIDGET_MEDIATOR, PluginsManifestWidgetMediatorClass))
typedef struct _PluginsManifestWidgetMediator PluginsManifestWidgetMediator;
typedef struct _PluginsManifestWidgetMediatorClass PluginsManifestWidgetMediatorClass;
#define _g_object_unref0(var) ((var == NULL) ? NULL : (var = (g_object_unref (var), NULL)))
#define _g_free0(var) (var = (g_free (var), NULL))
#define _g_date_time_unref0(var) ((var == NULL) ? NULL : (var = (g_date_time_unref (var), NULL)))
#define TYPE_PAGE_WINDOW (page_window_get_type ())
#define PAGE_WINDOW(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_PAGE_WINDOW, PageWindow))
#define PAGE_WINDOW_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_PAGE_WINDOW, PageWindowClass))
#define IS_PAGE_WINDOW(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_PAGE_WINDOW))
#define IS_PAGE_WINDOW_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_PAGE_WINDOW))
#define PAGE_WINDOW_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_PAGE_WINDOW, PageWindowClass))
typedef struct _PageWindow PageWindow;
typedef struct _PageWindowClass PageWindowClass;
#define TYPE_APP_WINDOW (app_window_get_type ())
#define APP_WINDOW(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_APP_WINDOW, AppWindow))
#define APP_WINDOW_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_APP_WINDOW, AppWindowClass))
#define IS_APP_WINDOW(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_APP_WINDOW))
#define IS_APP_WINDOW_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_APP_WINDOW))
#define APP_WINDOW_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_APP_WINDOW, AppWindowClass))
typedef struct _AppWindow AppWindow;
typedef struct _AppWindowClass AppWindowClass;
#define TYPE_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 TYPE_RAW_DEVELOPER (raw_developer_get_type ())
#define TYPE_PHOTO_FILE_FORMAT (photo_file_format_get_type ())
#define _g_error_free0(var) ((var == NULL) ? NULL : (var = (g_error_free (var), NULL)))
typedef struct _PreferencesDialogPathFormatPrivate PreferencesDialogPathFormatPrivate;
#define _preferences_dialog_path_format_unref0(var) ((var == NULL) ? NULL : (var = (preferences_dialog_path_format_unref (var), NULL)))
typedef struct _PreferencesDialogParamSpecPathFormat PreferencesDialogParamSpecPathFormat;
#define _vala_assert(expr, msg) if G_LIKELY (expr) ; else g_assertion_message_expr (G_LOG_DOMAIN, __FILE__, __LINE__, G_STRFUNC, msg);
#define _vala_return_if_fail(expr, msg) if G_LIKELY (expr) ; else { g_return_if_fail_warning (G_LOG_DOMAIN, G_STRFUNC, msg); return; }
#define _vala_return_val_if_fail(expr, msg, val) if G_LIKELY (expr) ; else { g_return_if_fail_warning (G_LOG_DOMAIN, G_STRFUNC, msg); return val; }
#define _vala_warn_if_fail(expr, msg) if G_LIKELY (expr) ; else g_warn_message (G_LOG_DOMAIN, __FILE__, __LINE__, G_STRFUNC, msg);
struct _PreferencesDialog {
GtkDialog parent_instance;
PreferencesDialogPrivate * priv;
};
struct _PreferencesDialogClass {
GtkDialogClass parent_class;
};
struct _PreferencesDialogPrivate {
GtkAdjustment* bg_color_adjustment;
GtkScale* bg_color_slider;
GtkComboBox* photo_editor_combo;
GtkComboBox* raw_editor_combo;
SortedList* external_raw_apps;
SortedList* external_photo_apps;
GtkFileChooserButton* library_dir_button;
GtkComboBoxText* dir_pattern_combo;
GtkEntry* dir_pattern_entry;
GtkLabel* dir_pattern_example;
gboolean allow_closing;
gchar* lib_dir;
GeeArrayList* path_formats;
GDateTime* example_date;
GtkCheckButton* lowercase;
PluginsManifestWidgetMediator* plugins_mediator;
GtkComboBoxText* default_raw_developer_combo;
GtkCheckButton* autoimport;
GtkCheckButton* write_metadata;
GtkLabel* pattern_help;
GtkNotebook* preferences_notebook;
GtkRadioButton* transparent_checker_radio;
GtkRadioButton* transparent_solid_radio;
GtkColorButton* transparent_solid_color;
GtkRadioButton* transparent_none_radio;
};
typedef enum {
RAW_DEVELOPER_SHOTWELL = 0,
RAW_DEVELOPER_CAMERA,
RAW_DEVELOPER_EMBEDDED
} RawDeveloper;
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 _PreferencesDialogPathFormat {
GTypeInstance parent_instance;
volatile int ref_count;
PreferencesDialogPathFormatPrivate * priv;
gchar* name;
gchar* pattern;
};
struct _PreferencesDialogPathFormatClass {
GTypeClass parent_class;
void (*finalize) (PreferencesDialogPathFormat *self);
};
struct _PreferencesDialogParamSpecPathFormat {
GParamSpec parent_instance;
};
static gpointer preferences_dialog_parent_class = NULL;
static PreferencesDialog* preferences_dialog_preferences_dialog;
static PreferencesDialog* preferences_dialog_preferences_dialog = NULL;
static gpointer preferences_dialog_path_format_parent_class = NULL;
GType preferences_dialog_get_type (void) G_GNUC_CONST;
GType sorted_list_get_type (void) G_GNUC_CONST;
static gpointer preferences_dialog_path_format_ref (gpointer instance);
static void preferences_dialog_path_format_unref (gpointer instance);
static GParamSpec* preferences_dialog_param_spec_path_format (const gchar* name, const gchar* nick, const gchar* blurb, GType object_type, GParamFlags flags) G_GNUC_UNUSED;
static void preferences_dialog_value_set_path_format (GValue* value, gpointer v_object) G_GNUC_UNUSED;
static void preferences_dialog_value_take_path_format (GValue* value, gpointer v_object) G_GNUC_UNUSED;
static gpointer preferences_dialog_value_get_path_format (const GValue* value) G_GNUC_UNUSED;
static GType preferences_dialog_path_format_get_type (void) G_GNUC_CONST G_GNUC_UNUSED;
GType plugins_manifest_widget_mediator_get_type (void) G_GNUC_CONST;
#define PREFERENCES_DIALOG_GET_PRIVATE(o) (G_TYPE_INSTANCE_GET_PRIVATE ((o), TYPE_PREFERENCES_DIALOG, PreferencesDialogPrivate))
enum {
PREFERENCES_DIALOG_DUMMY_PROPERTY
};
PluginsManifestWidgetMediator* plugins_manifest_widget_mediator_new (void);
PluginsManifestWidgetMediator* plugins_manifest_widget_mediator_construct (GType object_type);
static PreferencesDialog* preferences_dialog_new (void);
static PreferencesDialog* preferences_dialog_construct (GType object_type);
gint resources_use_header_bar (void);
GType page_window_get_type (void) G_GNUC_CONST;
GType app_window_get_type (void) G_GNUC_CONST;
AppWindow* app_window_get_instance (void);
static gboolean preferences_dialog_on_delete (PreferencesDialog* self);
static gboolean _preferences_dialog_on_delete_gtk_widget_delete_event (GtkWidget* _sender, GdkEventAny* event, gpointer self);
static void preferences_dialog_on_close (PreferencesDialog* self);
static void _preferences_dialog_on_close_gtk_dialog_response (GtkDialog* _sender, gint response_id, gpointer self);
GType configuration_facade_get_type (void) G_GNUC_CONST;
GType config_facade_get_type (void) G_GNUC_CONST;
ConfigFacade* config_facade_get_instance (void);
void config_facade_get_bg_color (ConfigFacade* self, GdkRGBA* result);
static void preferences_dialog_on_value_changed (PreferencesDialog* self);
static void _preferences_dialog_on_value_changed_gtk_adjustment_value_changed (GtkAdjustment* _sender, gpointer self);
static gboolean preferences_dialog_on_bg_color_reset (PreferencesDialog* self, GdkEventButton* event);
static gboolean _preferences_dialog_on_bg_color_reset_gtk_widget_button_press_event (GtkWidget* _sender, GdkEventButton* event, gpointer self);
static void preferences_dialog_on_radio_changed (PreferencesDialog* self);
static void _preferences_dialog_on_radio_changed_gtk_toggle_button_toggled (GtkToggleButton* _sender, gpointer self);
gchar* configuration_facade_get_transparent_background_color (ConfigurationFacade* self);
static void preferences_dialog_on_color_changed (PreferencesDialog* self);
static void _preferences_dialog_on_color_changed_gtk_color_button_color_set (GtkColorButton* _sender, gpointer self);
gchar* configuration_facade_get_transparent_background_type (ConfigurationFacade* self);
gchar* resources_get_help_path (void);
#define RESOURCES_DIR_PATTERN_URI_SYSWIDE "help:shotwell/other-files"
static gboolean preferences_dialog_on_local_pattern_help (PreferencesDialog* self, const gchar* ignore);
static gboolean _preferences_dialog_on_local_pattern_help_gtk_label_activate_link (GtkLabel* _sender, const gchar* uri, gpointer self);
static void preferences_dialog_add_to_dir_formats (PreferencesDialog* self, const gchar* name, const gchar* pattern);
static void preferences_dialog_on_dir_pattern_combo_changed (PreferencesDialog* self);
static void _preferences_dialog_on_dir_pattern_combo_changed_gtk_combo_box_changed (GtkComboBox* _sender, gpointer self);
static void preferences_dialog_on_dir_pattern_entry_changed (PreferencesDialog* self);
static void _preferences_dialog_on_dir_pattern_entry_changed_gtk_editable_changed (GtkEditable* _sender, gpointer self);
static void preferences_dialog_on_lowercase_toggled (PreferencesDialog* self);
static void _preferences_dialog_on_lowercase_toggled_gtk_toggle_button_toggled (GtkToggleButton* _sender, gpointer self);
void preferences_dialog_populate_preference_options (PreferencesDialog* self);
static void preferences_dialog_on_photo_editor_changed (PreferencesDialog* self);
static void _preferences_dialog_on_photo_editor_changed_gtk_combo_box_changed (GtkComboBox* _sender, gpointer self);
static void preferences_dialog_on_raw_editor_changed (PreferencesDialog* self);
static void _preferences_dialog_on_raw_editor_changed_gtk_combo_box_changed (GtkComboBox* _sender, gpointer self);
gboolean configuration_facade_get_auto_import_from_library (ConfigurationFacade* self);
gboolean configuration_facade_get_commit_metadata_to_masters (ConfigurationFacade* self);
GType raw_developer_get_type (void) G_GNUC_CONST;
gchar* raw_developer_get_label (RawDeveloper self);
static void preferences_dialog_set_raw_developer_combo (PreferencesDialog* self, RawDeveloper d);
RawDeveloper configuration_facade_get_default_raw_developer (ConfigurationFacade* self);
static void preferences_dialog_on_default_raw_developer_changed (PreferencesDialog* self);
static void _preferences_dialog_on_default_raw_developer_changed_gtk_combo_box_changed (GtkComboBox* _sender, gpointer self);
static void preferences_dialog_populate_app_combo_box (PreferencesDialog* self, GtkComboBox* combo_box, gchar** mime_types, int mime_types_length1, const gchar* current_app_executable, SortedList* * external_apps);
gchar** photo_file_format_get_editable_mime_types (int* result_length1);
gchar* configuration_facade_get_external_photo_app (ConfigurationFacade* self);
GType photo_file_format_get_type (void) G_GNUC_CONST;
gchar** photo_file_format_get_mime_types (PhotoFileFormat self, int* result_length1);
gchar* configuration_facade_get_external_raw_app (ConfigurationFacade* self);
static void preferences_dialog_setup_dir_pattern (PreferencesDialog* self, GtkComboBox* combo_box, GtkEntry* entry);
gboolean configuration_facade_get_use_lowercase_filenames (ConfigurationFacade* self);
void configuration_facade_set_transparent_background_type (ConfigurationFacade* self, const gchar* type);
void configuration_facade_set_transparent_background_color (ConfigurationFacade* self, const gchar* color_name);
void resources_launch_help (GdkScreen* screen, const gchar* anchor, GError** error);
SortedList* desktop_integration_get_apps_for_mime_types (gchar** mime_types, int mime_types_length1);
GdkPixbuf* scale_pixbuf (GdkPixbuf* pixbuf, gint scale, GdkInterpType interp, gboolean scale_up);
#define RESOURCES_DEFAULT_ICON_SCALE 24
gint sorted_list_index_of (SortedList* self, gconstpointer search);
gchar* configuration_facade_get_directory_pattern (ConfigurationFacade* self);
gchar* configuration_facade_get_directory_pattern_custom (ConfigurationFacade* self);
gboolean is_string_empty (const gchar* s);
void preferences_dialog_show_preferences (void);
GFile* app_dirs_get_import_dir (void);
static void preferences_dialog_commit_on_close (PreferencesDialog* self);
void config_facade_commit_bg_color (ConfigFacade* self);
void configuration_facade_set_auto_import_from_library (ConfigurationFacade* self, gboolean auto_import);
void configuration_facade_set_commit_metadata_to_masters (ConfigurationFacade* self, gboolean commit_metadata);
void app_dirs_set_import_dir (const gchar* path);
void configuration_facade_set_directory_pattern_custom (ConfigurationFacade* self, const gchar* s);
void configuration_facade_set_directory_pattern (ConfigurationFacade* self, const gchar* s);
static gboolean preferences_dialog_get_allow_closing (PreferencesDialog* self);
static void preferences_dialog_set_background_color (PreferencesDialog* self, gdouble bg_color_value);
gboolean has_only_key_modifier (GdkModifierType field, GdkModifierType mask);
void parse_color (const gchar* spec, GdkRGBA* result);
#define CONFIG_FACADE_DEFAULT_BG_COLOR "#444"
static void preferences_dialog_set_allow_closing (PreferencesDialog* self, gboolean allow);
void config_facade_set_bg_color (ConfigFacade* self, GdkRGBA* color);
static void preferences_dialog_to_grayscale (PreferencesDialog* self, gdouble color_value, GdkRGBA* result);
gpointer sorted_list_get_at (SortedList* self, gint index);
void configuration_facade_set_external_photo_app (ConfigurationFacade* self, const gchar* external_photo_app);
gchar* desktop_integration_get_app_open_command (GAppInfo* app_info);
void configuration_facade_set_external_raw_app (ConfigurationFacade* self, const gchar* external_raw_app);
static RawDeveloper preferences_dialog_raw_developer_from_combo (PreferencesDialog* self);
void configuration_facade_set_default_raw_developer (ConfigurationFacade* self, RawDeveloper d);
static void preferences_dialog_on_current_folder_changed (PreferencesDialog* self);
static gboolean preferences_dialog_real_map_event (GtkWidget* base, GdkEventAny* event);
static void _preferences_dialog_on_current_folder_changed_gtk_file_chooser_current_folder_changed (GtkFileChooser* _sender, gpointer self);
static PreferencesDialogPathFormat* preferences_dialog_path_format_new (const gchar* name, const gchar* pattern);
static PreferencesDialogPathFormat* preferences_dialog_path_format_construct (GType object_type, const gchar* name, const gchar* pattern);
void configuration_facade_set_use_lowercase_filenames (ConfigurationFacade* self, gboolean b);
enum {
PREFERENCES_DIALOG_PATH_FORMAT_DUMMY_PROPERTY
};
static void preferences_dialog_path_format_finalize (PreferencesDialogPathFormat * obj);
static void preferences_dialog_finalize (GObject * obj);
static void _vala_array_destroy (gpointer array, gint array_length, GDestroyNotify destroy_func);
static void _vala_array_free (gpointer array, gint array_length, GDestroyNotify destroy_func);
static gint _vala_array_length (gpointer array);
static gboolean _preferences_dialog_on_delete_gtk_widget_delete_event (GtkWidget* _sender, GdkEventAny* event, gpointer self) {
gboolean result;
result = preferences_dialog_on_delete ((PreferencesDialog*) self);
#line 72 "/home/jens/Source/shotwell/src/dialogs/Preferences.vala"
return result;
#line 324 "Preferences.c"
}
static void _preferences_dialog_on_close_gtk_dialog_response (GtkDialog* _sender, gint response_id, gpointer self) {
#line 73 "/home/jens/Source/shotwell/src/dialogs/Preferences.vala"
preferences_dialog_on_close ((PreferencesDialog*) self);
#line 331 "Preferences.c"
}
static void _preferences_dialog_on_value_changed_gtk_adjustment_value_changed (GtkAdjustment* _sender, gpointer self) {
#line 77 "/home/jens/Source/shotwell/src/dialogs/Preferences.vala"
preferences_dialog_on_value_changed ((PreferencesDialog*) self);
#line 338 "Preferences.c"
}
static gboolean _preferences_dialog_on_bg_color_reset_gtk_widget_button_press_event (GtkWidget* _sender, GdkEventButton* event, gpointer self) {
gboolean result;
result = preferences_dialog_on_bg_color_reset ((PreferencesDialog*) self, event);
#line 79 "/home/jens/Source/shotwell/src/dialogs/Preferences.vala"
return result;
#line 347 "Preferences.c"
}
static void _preferences_dialog_on_radio_changed_gtk_toggle_button_toggled (GtkToggleButton* _sender, gpointer self) {
#line 81 "/home/jens/Source/shotwell/src/dialogs/Preferences.vala"
preferences_dialog_on_radio_changed ((PreferencesDialog*) self);
#line 354 "Preferences.c"
}
static void _preferences_dialog_on_color_changed_gtk_color_button_color_set (GtkColorButton* _sender, gpointer self) {
#line 92 "/home/jens/Source/shotwell/src/dialogs/Preferences.vala"
preferences_dialog_on_color_changed ((PreferencesDialog*) self);
#line 361 "Preferences.c"
}
static gboolean _preferences_dialog_on_local_pattern_help_gtk_label_activate_link (GtkLabel* _sender, const gchar* uri, gpointer self) {
gboolean result;
result = preferences_dialog_on_local_pattern_help ((PreferencesDialog*) self, uri);
#line 120 "/home/jens/Source/shotwell/src/dialogs/Preferences.vala"
return result;
#line 370 "Preferences.c"
}
static void _preferences_dialog_on_dir_pattern_combo_changed_gtk_combo_box_changed (GtkComboBox* _sender, gpointer self) {
#line 131 "/home/jens/Source/shotwell/src/dialogs/Preferences.vala"
preferences_dialog_on_dir_pattern_combo_changed ((PreferencesDialog*) self);
#line 377 "Preferences.c"
}
static void _preferences_dialog_on_dir_pattern_entry_changed_gtk_editable_changed (GtkEditable* _sender, gpointer self) {
#line 132 "/home/jens/Source/shotwell/src/dialogs/Preferences.vala"
preferences_dialog_on_dir_pattern_entry_changed ((PreferencesDialog*) self);
#line 384 "Preferences.c"
}
static void _preferences_dialog_on_lowercase_toggled_gtk_toggle_button_toggled (GtkToggleButton* _sender, gpointer self) {
#line 134 "/home/jens/Source/shotwell/src/dialogs/Preferences.vala"
preferences_dialog_on_lowercase_toggled ((PreferencesDialog*) self);
#line 391 "Preferences.c"
}
static void _preferences_dialog_on_photo_editor_changed_gtk_combo_box_changed (GtkComboBox* _sender, gpointer self) {
#line 140 "/home/jens/Source/shotwell/src/dialogs/Preferences.vala"
preferences_dialog_on_photo_editor_changed ((PreferencesDialog*) self);
#line 398 "Preferences.c"
}
static void _preferences_dialog_on_raw_editor_changed_gtk_combo_box_changed (GtkComboBox* _sender, gpointer self) {
#line 141 "/home/jens/Source/shotwell/src/dialogs/Preferences.vala"
preferences_dialog_on_raw_editor_changed ((PreferencesDialog*) self);
#line 405 "Preferences.c"
}
static void _preferences_dialog_on_default_raw_developer_changed_gtk_combo_box_changed (GtkComboBox* _sender, gpointer self) {
#line 150 "/home/jens/Source/shotwell/src/dialogs/Preferences.vala"
preferences_dialog_on_default_raw_developer_changed ((PreferencesDialog*) self);
#line 412 "Preferences.c"
}
static PreferencesDialog* preferences_dialog_construct (GType object_type) {
PreferencesDialog * self = NULL;
gint _tmp0_;
AppWindow* _tmp1_;
AppWindow* _tmp2_;
GdkWindow* _tmp3_;
AppWindow* _tmp4_;
AppWindow* _tmp5_;
GtkAdjustment* _tmp6_;
GtkAdjustment* _tmp7_;
gdouble _tmp8_;
ConfigFacade* _tmp9_;
ConfigFacade* _tmp10_;
GdkRGBA _tmp11_ = {0};
gdouble _tmp12_;
GtkAdjustment* _tmp13_;
GtkScale* _tmp14_;
GtkRadioButton* _tmp15_;
GtkRadioButton* _tmp16_;
GtkRadioButton* _tmp17_;
GtkRadioButton* _tmp18_;
GtkColorButton* _tmp19_;
GdkRGBA color = {0};
ConfigFacade* _tmp20_;
ConfigFacade* _tmp21_;
gchar* _tmp22_;
gchar* _tmp23_;
GtkColorButton* _tmp24_;
GdkRGBA _tmp25_;
GtkColorButton* _tmp26_;
ConfigFacade* _tmp27_;
ConfigFacade* _tmp28_;
gchar* _tmp29_;
gchar* _tmp30_;
gchar* _tmp31_;
GQuark _tmp33_ = 0U;
#line 94 "/home/jens/Source/shotwell/src/dialogs/Preferences.vala"
static GQuark _tmp32_label0 = 0;
#line 94 "/home/jens/Source/shotwell/src/dialogs/Preferences.vala"
static GQuark _tmp32_label1 = 0;
#line 456 "Preferences.c"
gchar* help_path = NULL;
gchar* _tmp37_;
const gchar* _tmp38_;
gchar* _tmp50_;
gchar* _tmp51_;
gchar* _tmp52_;
gchar* _tmp53_;
gchar* _tmp54_;
gchar* _tmp55_;
GtkComboBoxText* _tmp56_;
GtkEntry* _tmp57_;
GtkCheckButton* _tmp58_;
GtkNotebook* _tmp59_;
GtkWidget* _tmp60_;
PluginsManifestWidgetMediator* _tmp61_;
GtkComboBox* _tmp62_;
GtkComboBox* _tmp63_;
GtkCheckButton* _tmp64_;
ConfigFacade* _tmp65_;
ConfigFacade* _tmp66_;
gboolean _tmp67_;
GtkCheckButton* _tmp68_;
ConfigFacade* _tmp69_;
ConfigFacade* _tmp70_;
gboolean _tmp71_;
GtkComboBoxText* _tmp72_;
gchar* _tmp73_;
gchar* _tmp74_;
GtkComboBoxText* _tmp75_;
gchar* _tmp76_;
gchar* _tmp77_;
ConfigFacade* _tmp78_;
ConfigFacade* _tmp79_;
RawDeveloper _tmp80_;
GtkComboBoxText* _tmp81_;
#line 68 "/home/jens/Source/shotwell/src/dialogs/Preferences.vala"
_tmp0_ = resources_use_header_bar ();
#line 68 "/home/jens/Source/shotwell/src/dialogs/Preferences.vala"
self = (PreferencesDialog*) g_object_new (object_type, "use-header-bar", _tmp0_, NULL);
#line 70 "/home/jens/Source/shotwell/src/dialogs/Preferences.vala"
_tmp1_ = app_window_get_instance ();
#line 70 "/home/jens/Source/shotwell/src/dialogs/Preferences.vala"
_tmp2_ = _tmp1_;
#line 70 "/home/jens/Source/shotwell/src/dialogs/Preferences.vala"
_tmp3_ = gtk_widget_get_parent_window (G_TYPE_CHECK_INSTANCE_CAST (_tmp2_, gtk_widget_get_type (), GtkWidget));
#line 70 "/home/jens/Source/shotwell/src/dialogs/Preferences.vala"
gtk_widget_set_parent_window (G_TYPE_CHECK_INSTANCE_CAST (self, gtk_widget_get_type (), GtkWidget), _tmp3_);
#line 70 "/home/jens/Source/shotwell/src/dialogs/Preferences.vala"
_g_object_unref0 (_tmp2_);
#line 71 "/home/jens/Source/shotwell/src/dialogs/Preferences.vala"
_tmp4_ = app_window_get_instance ();
#line 71 "/home/jens/Source/shotwell/src/dialogs/Preferences.vala"
_tmp5_ = _tmp4_;
#line 71 "/home/jens/Source/shotwell/src/dialogs/Preferences.vala"
gtk_window_set_transient_for (G_TYPE_CHECK_INSTANCE_CAST (self, gtk_window_get_type (), GtkWindow), G_TYPE_CHECK_INSTANCE_CAST (_tmp5_, gtk_window_get_type (), GtkWindow));
#line 71 "/home/jens/Source/shotwell/src/dialogs/Preferences.vala"
_g_object_unref0 (_tmp5_);
#line 72 "/home/jens/Source/shotwell/src/dialogs/Preferences.vala"
g_signal_connect_object (G_TYPE_CHECK_INSTANCE_CAST (self, gtk_widget_get_type (), GtkWidget), "delete-event", (GCallback) _preferences_dialog_on_delete_gtk_widget_delete_event, self, 0);
#line 73 "/home/jens/Source/shotwell/src/dialogs/Preferences.vala"
g_signal_connect_object (G_TYPE_CHECK_INSTANCE_CAST (self, gtk_dialog_get_type (), GtkDialog), "response", (GCallback) _preferences_dialog_on_close_gtk_dialog_response, self, 0);
#line 75 "/home/jens/Source/shotwell/src/dialogs/Preferences.vala"
_tmp6_ = self->priv->bg_color_adjustment;
#line 75 "/home/jens/Source/shotwell/src/dialogs/Preferences.vala"
_tmp7_ = self->priv->bg_color_adjustment;
#line 75 "/home/jens/Source/shotwell/src/dialogs/Preferences.vala"
_tmp8_ = gtk_adjustment_get_upper (_tmp7_);
#line 75 "/home/jens/Source/shotwell/src/dialogs/Preferences.vala"
_tmp9_ = config_facade_get_instance ();
#line 75 "/home/jens/Source/shotwell/src/dialogs/Preferences.vala"
_tmp10_ = _tmp9_;
#line 75 "/home/jens/Source/shotwell/src/dialogs/Preferences.vala"
config_facade_get_bg_color (_tmp10_, &_tmp11_);
#line 75 "/home/jens/Source/shotwell/src/dialogs/Preferences.vala"
_tmp12_ = _tmp11_.red;
#line 75 "/home/jens/Source/shotwell/src/dialogs/Preferences.vala"
gtk_adjustment_set_value (_tmp6_, _tmp8_ - (_tmp12_ * 65535.0));
#line 75 "/home/jens/Source/shotwell/src/dialogs/Preferences.vala"
_g_object_unref0 (_tmp10_);
#line 77 "/home/jens/Source/shotwell/src/dialogs/Preferences.vala"
_tmp13_ = self->priv->bg_color_adjustment;
#line 77 "/home/jens/Source/shotwell/src/dialogs/Preferences.vala"
g_signal_connect_object (_tmp13_, "value-changed", (GCallback) _preferences_dialog_on_value_changed_gtk_adjustment_value_changed, self, 0);
#line 79 "/home/jens/Source/shotwell/src/dialogs/Preferences.vala"
_tmp14_ = self->priv->bg_color_slider;
#line 79 "/home/jens/Source/shotwell/src/dialogs/Preferences.vala"
g_signal_connect_object (G_TYPE_CHECK_INSTANCE_CAST (_tmp14_, gtk_widget_get_type (), GtkWidget), "button-press-event", (GCallback) _preferences_dialog_on_bg_color_reset_gtk_widget_button_press_event, self, 0);
#line 81 "/home/jens/Source/shotwell/src/dialogs/Preferences.vala"
_tmp15_ = self->priv->transparent_checker_radio;
#line 81 "/home/jens/Source/shotwell/src/dialogs/Preferences.vala"
g_signal_connect_object (G_TYPE_CHECK_INSTANCE_CAST (_tmp15_, gtk_toggle_button_get_type (), GtkToggleButton), "toggled", (GCallback) _preferences_dialog_on_radio_changed_gtk_toggle_button_toggled, self, 0);
#line 82 "/home/jens/Source/shotwell/src/dialogs/Preferences.vala"
_tmp16_ = self->priv->transparent_solid_radio;
#line 82 "/home/jens/Source/shotwell/src/dialogs/Preferences.vala"
g_signal_connect_object (G_TYPE_CHECK_INSTANCE_CAST (_tmp16_, gtk_toggle_button_get_type (), GtkToggleButton), "toggled", (GCallback) _preferences_dialog_on_radio_changed_gtk_toggle_button_toggled, self, 0);
#line 83 "/home/jens/Source/shotwell/src/dialogs/Preferences.vala"
_tmp17_ = self->priv->transparent_none_radio;
#line 83 "/home/jens/Source/shotwell/src/dialogs/Preferences.vala"
g_signal_connect_object (G_TYPE_CHECK_INSTANCE_CAST (_tmp17_, gtk_toggle_button_get_type (), GtkToggleButton), "toggled", (GCallback) _preferences_dialog_on_radio_changed_gtk_toggle_button_toggled, self, 0);
#line 85 "/home/jens/Source/shotwell/src/dialogs/Preferences.vala"
_tmp18_ = self->priv->transparent_solid_radio;
#line 85 "/home/jens/Source/shotwell/src/dialogs/Preferences.vala"
_tmp19_ = self->priv->transparent_solid_color;
#line 85 "/home/jens/Source/shotwell/src/dialogs/Preferences.vala"
g_object_bind_property_with_closures (G_TYPE_CHECK_INSTANCE_CAST (_tmp18_, G_TYPE_OBJECT, GObject), "active", G_TYPE_CHECK_INSTANCE_CAST (_tmp19_, G_TYPE_OBJECT, GObject), "sensitive", G_BINDING_DEFAULT, (GClosure*) ((NULL == NULL) ? NULL : g_cclosure_new ((GCallback) NULL, NULL, (GClosureNotify) NULL)), (GClosure*) ((NULL == NULL) ? NULL : g_cclosure_new ((GCallback) NULL, NULL, (GClosureNotify) NULL)));
#line 89 "/home/jens/Source/shotwell/src/dialogs/Preferences.vala"
memset (&color, 0, sizeof (GdkRGBA));
#line 90 "/home/jens/Source/shotwell/src/dialogs/Preferences.vala"
_tmp20_ = config_facade_get_instance ();
#line 90 "/home/jens/Source/shotwell/src/dialogs/Preferences.vala"
_tmp21_ = _tmp20_;
#line 90 "/home/jens/Source/shotwell/src/dialogs/Preferences.vala"
_tmp22_ = configuration_facade_get_transparent_background_color (G_TYPE_CHECK_INSTANCE_CAST (_tmp21_, TYPE_CONFIGURATION_FACADE, ConfigurationFacade));
#line 90 "/home/jens/Source/shotwell/src/dialogs/Preferences.vala"
_tmp23_ = _tmp22_;
#line 90 "/home/jens/Source/shotwell/src/dialogs/Preferences.vala"
gdk_rgba_parse (&color, _tmp23_);
#line 90 "/home/jens/Source/shotwell/src/dialogs/Preferences.vala"
_g_free0 (_tmp23_);
#line 90 "/home/jens/Source/shotwell/src/dialogs/Preferences.vala"
_g_object_unref0 (_tmp21_);
#line 91 "/home/jens/Source/shotwell/src/dialogs/Preferences.vala"
_tmp24_ = self->priv->transparent_solid_color;
#line 91 "/home/jens/Source/shotwell/src/dialogs/Preferences.vala"
_tmp25_ = color;
#line 91 "/home/jens/Source/shotwell/src/dialogs/Preferences.vala"
gtk_color_chooser_set_rgba (G_TYPE_CHECK_INSTANCE_TYPE (_tmp24_, GTK_TYPE_COLOR_CHOOSER) ? ((GtkColorChooser*) _tmp24_) : NULL, &_tmp25_);
#line 92 "/home/jens/Source/shotwell/src/dialogs/Preferences.vala"
_tmp26_ = self->priv->transparent_solid_color;
#line 92 "/home/jens/Source/shotwell/src/dialogs/Preferences.vala"
g_signal_connect_object (_tmp26_, "color-set", (GCallback) _preferences_dialog_on_color_changed_gtk_color_button_color_set, self, 0);
#line 94 "/home/jens/Source/shotwell/src/dialogs/Preferences.vala"
_tmp27_ = config_facade_get_instance ();
#line 94 "/home/jens/Source/shotwell/src/dialogs/Preferences.vala"
_tmp28_ = _tmp27_;
#line 94 "/home/jens/Source/shotwell/src/dialogs/Preferences.vala"
_tmp29_ = configuration_facade_get_transparent_background_type (G_TYPE_CHECK_INSTANCE_CAST (_tmp28_, TYPE_CONFIGURATION_FACADE, ConfigurationFacade));
#line 94 "/home/jens/Source/shotwell/src/dialogs/Preferences.vala"
_tmp30_ = _tmp29_;
#line 94 "/home/jens/Source/shotwell/src/dialogs/Preferences.vala"
_g_object_unref0 (_tmp28_);
#line 94 "/home/jens/Source/shotwell/src/dialogs/Preferences.vala"
_tmp31_ = _tmp30_;
#line 94 "/home/jens/Source/shotwell/src/dialogs/Preferences.vala"
_tmp33_ = (NULL == _tmp31_) ? 0 : g_quark_from_string (_tmp31_);
#line 94 "/home/jens/Source/shotwell/src/dialogs/Preferences.vala"
g_free (_tmp31_);
#line 94 "/home/jens/Source/shotwell/src/dialogs/Preferences.vala"
if (_tmp33_ == ((0 != _tmp32_label0) ? _tmp32_label0 : (_tmp32_label0 = g_quark_from_static_string ("checkered")))) {
#line 94 "/home/jens/Source/shotwell/src/dialogs/Preferences.vala"
switch (0) {
#line 608 "Preferences.c"
default:
{
GtkRadioButton* _tmp34_;
#line 96 "/home/jens/Source/shotwell/src/dialogs/Preferences.vala"
_tmp34_ = self->priv->transparent_checker_radio;
#line 96 "/home/jens/Source/shotwell/src/dialogs/Preferences.vala"
gtk_toggle_button_set_active (G_TYPE_CHECK_INSTANCE_CAST (_tmp34_, gtk_toggle_button_get_type (), GtkToggleButton), TRUE);
#line 97 "/home/jens/Source/shotwell/src/dialogs/Preferences.vala"
break;
#line 618 "Preferences.c"
}
}
} else if (_tmp33_ == ((0 != _tmp32_label1) ? _tmp32_label1 : (_tmp32_label1 = g_quark_from_static_string ("solid")))) {
#line 94 "/home/jens/Source/shotwell/src/dialogs/Preferences.vala"
switch (0) {
#line 624 "Preferences.c"
default:
{
GtkRadioButton* _tmp35_;
#line 99 "/home/jens/Source/shotwell/src/dialogs/Preferences.vala"
_tmp35_ = self->priv->transparent_solid_radio;
#line 99 "/home/jens/Source/shotwell/src/dialogs/Preferences.vala"
gtk_toggle_button_set_active (G_TYPE_CHECK_INSTANCE_CAST (_tmp35_, gtk_toggle_button_get_type (), GtkToggleButton), TRUE);
#line 100 "/home/jens/Source/shotwell/src/dialogs/Preferences.vala"
break;
#line 634 "Preferences.c"
}
}
} else {
#line 94 "/home/jens/Source/shotwell/src/dialogs/Preferences.vala"
switch (0) {
#line 640 "Preferences.c"
default:
{
GtkRadioButton* _tmp36_;
#line 102 "/home/jens/Source/shotwell/src/dialogs/Preferences.vala"
_tmp36_ = self->priv->transparent_none_radio;
#line 102 "/home/jens/Source/shotwell/src/dialogs/Preferences.vala"
gtk_toggle_button_set_active (G_TYPE_CHECK_INSTANCE_CAST (_tmp36_, gtk_toggle_button_get_type (), GtkToggleButton), TRUE);
#line 103 "/home/jens/Source/shotwell/src/dialogs/Preferences.vala"
break;
#line 650 "Preferences.c"
}
}
}
#line 111 "/home/jens/Source/shotwell/src/dialogs/Preferences.vala"
_tmp37_ = resources_get_help_path ();
#line 111 "/home/jens/Source/shotwell/src/dialogs/Preferences.vala"
help_path = _tmp37_;
#line 113 "/home/jens/Source/shotwell/src/dialogs/Preferences.vala"
_tmp38_ = help_path;
#line 113 "/home/jens/Source/shotwell/src/dialogs/Preferences.vala"
if (_tmp38_ == NULL) {
#line 662 "Preferences.c"
GtkLabel* _tmp39_;
gchar* _tmp40_;
gchar* _tmp41_;
gchar* _tmp42_;
gchar* _tmp43_;
#line 115 "/home/jens/Source/shotwell/src/dialogs/Preferences.vala"
_tmp39_ = self->priv->pattern_help;
#line 115 "/home/jens/Source/shotwell/src/dialogs/Preferences.vala"
_tmp40_ = g_strconcat ("<a href=\"" RESOURCES_DIR_PATTERN_URI_SYSWIDE "\">", _ ("(Help)"), NULL);
#line 115 "/home/jens/Source/shotwell/src/dialogs/Preferences.vala"
_tmp41_ = _tmp40_;
#line 115 "/home/jens/Source/shotwell/src/dialogs/Preferences.vala"
_tmp42_ = g_strconcat (_tmp41_, "</a>", NULL);
#line 115 "/home/jens/Source/shotwell/src/dialogs/Preferences.vala"
_tmp43_ = _tmp42_;
#line 115 "/home/jens/Source/shotwell/src/dialogs/Preferences.vala"
gtk_label_set_markup (_tmp39_, _tmp43_);
#line 115 "/home/jens/Source/shotwell/src/dialogs/Preferences.vala"
_g_free0 (_tmp43_);
#line 115 "/home/jens/Source/shotwell/src/dialogs/Preferences.vala"
_g_free0 (_tmp41_);
#line 684 "Preferences.c"
} else {
GtkLabel* _tmp44_;
gchar* _tmp45_;
gchar* _tmp46_;
gchar* _tmp47_;
gchar* _tmp48_;
GtkLabel* _tmp49_;
#line 119 "/home/jens/Source/shotwell/src/dialogs/Preferences.vala"
_tmp44_ = self->priv->pattern_help;
#line 119 "/home/jens/Source/shotwell/src/dialogs/Preferences.vala"
_tmp45_ = g_strconcat ("<a href=\"dummy:\">", _ ("(Help)"), NULL);
#line 119 "/home/jens/Source/shotwell/src/dialogs/Preferences.vala"
_tmp46_ = _tmp45_;
#line 119 "/home/jens/Source/shotwell/src/dialogs/Preferences.vala"
_tmp47_ = g_strconcat (_tmp46_, "</a>", NULL);
#line 119 "/home/jens/Source/shotwell/src/dialogs/Preferences.vala"
_tmp48_ = _tmp47_;
#line 119 "/home/jens/Source/shotwell/src/dialogs/Preferences.vala"
gtk_label_set_markup (_tmp44_, _tmp48_);
#line 119 "/home/jens/Source/shotwell/src/dialogs/Preferences.vala"
_g_free0 (_tmp48_);
#line 119 "/home/jens/Source/shotwell/src/dialogs/Preferences.vala"
_g_free0 (_tmp46_);
#line 120 "/home/jens/Source/shotwell/src/dialogs/Preferences.vala"
_tmp49_ = self->priv->pattern_help;
#line 120 "/home/jens/Source/shotwell/src/dialogs/Preferences.vala"
g_signal_connect_object (_tmp49_, "activate-link", (GCallback) _preferences_dialog_on_local_pattern_help_gtk_label_activate_link, self, 0);
#line 712 "Preferences.c"
}
#line 123 "/home/jens/Source/shotwell/src/dialogs/Preferences.vala"
_tmp50_ = g_strdup_printf (_ ("Year%sMonth%sDay"), G_DIR_SEPARATOR_S, G_DIR_SEPARATOR_S);
#line 123 "/home/jens/Source/shotwell/src/dialogs/Preferences.vala"
_tmp51_ = _tmp50_;
#line 123 "/home/jens/Source/shotwell/src/dialogs/Preferences.vala"
preferences_dialog_add_to_dir_formats (self, _tmp51_, "%Y" G_DIR_SEPARATOR_S "%m" G_DIR_SEPARATOR_S "%d");
#line 123 "/home/jens/Source/shotwell/src/dialogs/Preferences.vala"
_g_free0 (_tmp51_);
#line 125 "/home/jens/Source/shotwell/src/dialogs/Preferences.vala"
_tmp52_ = g_strdup_printf (_ ("Year%sMonth"), G_DIR_SEPARATOR_S);
#line 125 "/home/jens/Source/shotwell/src/dialogs/Preferences.vala"
_tmp53_ = _tmp52_;
#line 125 "/home/jens/Source/shotwell/src/dialogs/Preferences.vala"
preferences_dialog_add_to_dir_formats (self, _tmp53_, "%Y" G_DIR_SEPARATOR_S "%m");
#line 125 "/home/jens/Source/shotwell/src/dialogs/Preferences.vala"
_g_free0 (_tmp53_);
#line 127 "/home/jens/Source/shotwell/src/dialogs/Preferences.vala"
_tmp54_ = g_strdup_printf (_ ("Year%sMonth-Day"), G_DIR_SEPARATOR_S);
#line 127 "/home/jens/Source/shotwell/src/dialogs/Preferences.vala"
_tmp55_ = _tmp54_;
#line 127 "/home/jens/Source/shotwell/src/dialogs/Preferences.vala"
preferences_dialog_add_to_dir_formats (self, _tmp55_, "%Y" G_DIR_SEPARATOR_S "%m-%d");
#line 127 "/home/jens/Source/shotwell/src/dialogs/Preferences.vala"
_g_free0 (_tmp55_);
#line 129 "/home/jens/Source/shotwell/src/dialogs/Preferences.vala"
preferences_dialog_add_to_dir_formats (self, _ ("Year-Month-Day"), "%Y-%m-%d");
#line 130 "/home/jens/Source/shotwell/src/dialogs/Preferences.vala"
preferences_dialog_add_to_dir_formats (self, _ ("Custom"), NULL);
#line 131 "/home/jens/Source/shotwell/src/dialogs/Preferences.vala"
_tmp56_ = self->priv->dir_pattern_combo;
#line 131 "/home/jens/Source/shotwell/src/dialogs/Preferences.vala"
g_signal_connect_object (G_TYPE_CHECK_INSTANCE_CAST (_tmp56_, gtk_combo_box_get_type (), GtkComboBox), "changed", (GCallback) _preferences_dialog_on_dir_pattern_combo_changed_gtk_combo_box_changed, self, 0);
#line 132 "/home/jens/Source/shotwell/src/dialogs/Preferences.vala"
_tmp57_ = self->priv->dir_pattern_entry;
#line 132 "/home/jens/Source/shotwell/src/dialogs/Preferences.vala"
g_signal_connect_object (G_TYPE_CHECK_INSTANCE_CAST (_tmp57_, GTK_TYPE_EDITABLE, GtkEditable), "changed", (GCallback) _preferences_dialog_on_dir_pattern_entry_changed_gtk_editable_changed, self, 0);
#line 134 "/home/jens/Source/shotwell/src/dialogs/Preferences.vala"
_tmp58_ = self->priv->lowercase;
#line 134 "/home/jens/Source/shotwell/src/dialogs/Preferences.vala"
g_signal_connect_object (G_TYPE_CHECK_INSTANCE_CAST (_tmp58_, gtk_toggle_button_get_type (), GtkToggleButton), "toggled", (GCallback) _preferences_dialog_on_lowercase_toggled_gtk_toggle_button_toggled, self, 0);
#line 136 "/home/jens/Source/shotwell/src/dialogs/Preferences.vala"
_tmp59_ = self->priv->preferences_notebook;
#line 136 "/home/jens/Source/shotwell/src/dialogs/Preferences.vala"
_tmp60_ = gtk_notebook_get_nth_page (_tmp59_, 2);
#line 136 "/home/jens/Source/shotwell/src/dialogs/Preferences.vala"
_tmp61_ = self->priv->plugins_mediator;
#line 136 "/home/jens/Source/shotwell/src/dialogs/Preferences.vala"
gtk_container_add (G_TYPE_CHECK_INSTANCE_TYPE (_tmp60_, gtk_container_get_type ()) ? ((GtkContainer*) _tmp60_) : NULL, G_TYPE_CHECK_INSTANCE_CAST (_tmp61_, gtk_widget_get_type (), GtkWidget));
#line 138 "/home/jens/Source/shotwell/src/dialogs/Preferences.vala"
preferences_dialog_populate_preference_options (self);
#line 140 "/home/jens/Source/shotwell/src/dialogs/Preferences.vala"
_tmp62_ = self->priv->photo_editor_combo;
#line 140 "/home/jens/Source/shotwell/src/dialogs/Preferences.vala"
g_signal_connect_object (_tmp62_, "changed", (GCallback) _preferences_dialog_on_photo_editor_changed_gtk_combo_box_changed, self, 0);
#line 141 "/home/jens/Source/shotwell/src/dialogs/Preferences.vala"
_tmp63_ = self->priv->raw_editor_combo;
#line 141 "/home/jens/Source/shotwell/src/dialogs/Preferences.vala"
g_signal_connect_object (_tmp63_, "changed", (GCallback) _preferences_dialog_on_raw_editor_changed_gtk_combo_box_changed, self, 0);
#line 143 "/home/jens/Source/shotwell/src/dialogs/Preferences.vala"
_tmp64_ = self->priv->autoimport;
#line 143 "/home/jens/Source/shotwell/src/dialogs/Preferences.vala"
_tmp65_ = config_facade_get_instance ();
#line 143 "/home/jens/Source/shotwell/src/dialogs/Preferences.vala"
_tmp66_ = _tmp65_;
#line 143 "/home/jens/Source/shotwell/src/dialogs/Preferences.vala"
_tmp67_ = configuration_facade_get_auto_import_from_library (G_TYPE_CHECK_INSTANCE_CAST (_tmp66_, TYPE_CONFIGURATION_FACADE, ConfigurationFacade));
#line 143 "/home/jens/Source/shotwell/src/dialogs/Preferences.vala"
gtk_toggle_button_set_active (G_TYPE_CHECK_INSTANCE_CAST (_tmp64_, gtk_toggle_button_get_type (), GtkToggleButton), _tmp67_);
#line 143 "/home/jens/Source/shotwell/src/dialogs/Preferences.vala"
_g_object_unref0 (_tmp66_);
#line 145 "/home/jens/Source/shotwell/src/dialogs/Preferences.vala"
_tmp68_ = self->priv->write_metadata;
#line 145 "/home/jens/Source/shotwell/src/dialogs/Preferences.vala"
_tmp69_ = config_facade_get_instance ();
#line 145 "/home/jens/Source/shotwell/src/dialogs/Preferences.vala"
_tmp70_ = _tmp69_;
#line 145 "/home/jens/Source/shotwell/src/dialogs/Preferences.vala"
_tmp71_ = configuration_facade_get_commit_metadata_to_masters (G_TYPE_CHECK_INSTANCE_CAST (_tmp70_, TYPE_CONFIGURATION_FACADE, ConfigurationFacade));
#line 145 "/home/jens/Source/shotwell/src/dialogs/Preferences.vala"
gtk_toggle_button_set_active (G_TYPE_CHECK_INSTANCE_CAST (_tmp68_, gtk_toggle_button_get_type (), GtkToggleButton), _tmp71_);
#line 145 "/home/jens/Source/shotwell/src/dialogs/Preferences.vala"
_g_object_unref0 (_tmp70_);
#line 147 "/home/jens/Source/shotwell/src/dialogs/Preferences.vala"
_tmp72_ = self->priv->default_raw_developer_combo;
#line 147 "/home/jens/Source/shotwell/src/dialogs/Preferences.vala"
_tmp73_ = raw_developer_get_label (RAW_DEVELOPER_CAMERA);
#line 147 "/home/jens/Source/shotwell/src/dialogs/Preferences.vala"
_tmp74_ = _tmp73_;
#line 147 "/home/jens/Source/shotwell/src/dialogs/Preferences.vala"
gtk_combo_box_text_append_text (_tmp72_, _tmp74_);
#line 147 "/home/jens/Source/shotwell/src/dialogs/Preferences.vala"
_g_free0 (_tmp74_);
#line 148 "/home/jens/Source/shotwell/src/dialogs/Preferences.vala"
_tmp75_ = self->priv->default_raw_developer_combo;
#line 148 "/home/jens/Source/shotwell/src/dialogs/Preferences.vala"
_tmp76_ = raw_developer_get_label (RAW_DEVELOPER_SHOTWELL);
#line 148 "/home/jens/Source/shotwell/src/dialogs/Preferences.vala"
_tmp77_ = _tmp76_;
#line 148 "/home/jens/Source/shotwell/src/dialogs/Preferences.vala"
gtk_combo_box_text_append_text (_tmp75_, _tmp77_);
#line 148 "/home/jens/Source/shotwell/src/dialogs/Preferences.vala"
_g_free0 (_tmp77_);
#line 149 "/home/jens/Source/shotwell/src/dialogs/Preferences.vala"
_tmp78_ = config_facade_get_instance ();
#line 149 "/home/jens/Source/shotwell/src/dialogs/Preferences.vala"
_tmp79_ = _tmp78_;
#line 149 "/home/jens/Source/shotwell/src/dialogs/Preferences.vala"
_tmp80_ = configuration_facade_get_default_raw_developer (G_TYPE_CHECK_INSTANCE_CAST (_tmp79_, TYPE_CONFIGURATION_FACADE, ConfigurationFacade));
#line 149 "/home/jens/Source/shotwell/src/dialogs/Preferences.vala"
preferences_dialog_set_raw_developer_combo (self, _tmp80_);
#line 149 "/home/jens/Source/shotwell/src/dialogs/Preferences.vala"
_g_object_unref0 (_tmp79_);
#line 150 "/home/jens/Source/shotwell/src/dialogs/Preferences.vala"
_tmp81_ = self->priv->default_raw_developer_combo;
#line 150 "/home/jens/Source/shotwell/src/dialogs/Preferences.vala"
g_signal_connect_object (G_TYPE_CHECK_INSTANCE_CAST (_tmp81_, gtk_combo_box_get_type (), GtkComboBox), "changed", (GCallback) _preferences_dialog_on_default_raw_developer_changed_gtk_combo_box_changed, self, 0);
#line 67 "/home/jens/Source/shotwell/src/dialogs/Preferences.vala"
_g_free0 (help_path);
#line 67 "/home/jens/Source/shotwell/src/dialogs/Preferences.vala"
return self;
#line 834 "Preferences.c"
}
static PreferencesDialog* preferences_dialog_new (void) {
#line 67 "/home/jens/Source/shotwell/src/dialogs/Preferences.vala"
return preferences_dialog_construct (TYPE_PREFERENCES_DIALOG);
#line 841 "Preferences.c"
}
void preferences_dialog_populate_preference_options (PreferencesDialog* self) {
GtkComboBox* _tmp0_;
gint _tmp1_;
gchar** _tmp2_;
gchar** _tmp3_;
gint _tmp3__length1;
ConfigFacade* _tmp4_;
ConfigFacade* _tmp5_;
gchar* _tmp6_;
gchar* _tmp7_;
SortedList* _tmp8_ = NULL;
GtkComboBox* _tmp9_;
gint _tmp10_;
gchar** _tmp11_;
gchar** _tmp12_;
gint _tmp12__length1;
ConfigFacade* _tmp13_;
ConfigFacade* _tmp14_;
gchar* _tmp15_;
gchar* _tmp16_;
SortedList* _tmp17_ = NULL;
GtkComboBoxText* _tmp18_;
GtkEntry* _tmp19_;
GtkCheckButton* _tmp20_;
ConfigFacade* _tmp21_;
ConfigFacade* _tmp22_;
gboolean _tmp23_;
#line 153 "/home/jens/Source/shotwell/src/dialogs/Preferences.vala"
g_return_if_fail (IS_PREFERENCES_DIALOG (self));
#line 154 "/home/jens/Source/shotwell/src/dialogs/Preferences.vala"
_tmp0_ = self->priv->photo_editor_combo;
#line 154 "/home/jens/Source/shotwell/src/dialogs/Preferences.vala"
_tmp2_ = photo_file_format_get_editable_mime_types (&_tmp1_);
#line 154 "/home/jens/Source/shotwell/src/dialogs/Preferences.vala"
_tmp3_ = _tmp2_;
#line 154 "/home/jens/Source/shotwell/src/dialogs/Preferences.vala"
_tmp3__length1 = _tmp1_;
#line 154 "/home/jens/Source/shotwell/src/dialogs/Preferences.vala"
_tmp4_ = config_facade_get_instance ();
#line 154 "/home/jens/Source/shotwell/src/dialogs/Preferences.vala"
_tmp5_ = _tmp4_;
#line 154 "/home/jens/Source/shotwell/src/dialogs/Preferences.vala"
_tmp6_ = configuration_facade_get_external_photo_app (G_TYPE_CHECK_INSTANCE_CAST (_tmp5_, TYPE_CONFIGURATION_FACADE, ConfigurationFacade));
#line 154 "/home/jens/Source/shotwell/src/dialogs/Preferences.vala"
_tmp7_ = _tmp6_;
#line 154 "/home/jens/Source/shotwell/src/dialogs/Preferences.vala"
preferences_dialog_populate_app_combo_box (self, _tmp0_, _tmp3_, _tmp1_, _tmp7_, &_tmp8_);
#line 154 "/home/jens/Source/shotwell/src/dialogs/Preferences.vala"
_g_object_unref0 (self->priv->external_photo_apps);
#line 154 "/home/jens/Source/shotwell/src/dialogs/Preferences.vala"
self->priv->external_photo_apps = _tmp8_;
#line 154 "/home/jens/Source/shotwell/src/dialogs/Preferences.vala"
_g_free0 (_tmp7_);
#line 154 "/home/jens/Source/shotwell/src/dialogs/Preferences.vala"
_g_object_unref0 (_tmp5_);
#line 154 "/home/jens/Source/shotwell/src/dialogs/Preferences.vala"
_tmp3_ = (_vala_array_free (_tmp3_, _tmp3__length1, (GDestroyNotify) g_free), NULL);
#line 157 "/home/jens/Source/shotwell/src/dialogs/Preferences.vala"
_tmp9_ = self->priv->raw_editor_combo;
#line 157 "/home/jens/Source/shotwell/src/dialogs/Preferences.vala"
_tmp11_ = photo_file_format_get_mime_types (PHOTO_FILE_FORMAT_RAW, &_tmp10_);
#line 157 "/home/jens/Source/shotwell/src/dialogs/Preferences.vala"
_tmp12_ = _tmp11_;
#line 157 "/home/jens/Source/shotwell/src/dialogs/Preferences.vala"
_tmp12__length1 = _tmp10_;
#line 157 "/home/jens/Source/shotwell/src/dialogs/Preferences.vala"
_tmp13_ = config_facade_get_instance ();
#line 157 "/home/jens/Source/shotwell/src/dialogs/Preferences.vala"
_tmp14_ = _tmp13_;
#line 157 "/home/jens/Source/shotwell/src/dialogs/Preferences.vala"
_tmp15_ = configuration_facade_get_external_raw_app (G_TYPE_CHECK_INSTANCE_CAST (_tmp14_, TYPE_CONFIGURATION_FACADE, ConfigurationFacade));
#line 157 "/home/jens/Source/shotwell/src/dialogs/Preferences.vala"
_tmp16_ = _tmp15_;
#line 157 "/home/jens/Source/shotwell/src/dialogs/Preferences.vala"
preferences_dialog_populate_app_combo_box (self, _tmp9_, _tmp12_, _tmp10_, _tmp16_, &_tmp17_);
#line 157 "/home/jens/Source/shotwell/src/dialogs/Preferences.vala"
_g_object_unref0 (self->priv->external_raw_apps);
#line 157 "/home/jens/Source/shotwell/src/dialogs/Preferences.vala"
self->priv->external_raw_apps = _tmp17_;
#line 157 "/home/jens/Source/shotwell/src/dialogs/Preferences.vala"
_g_free0 (_tmp16_);
#line 157 "/home/jens/Source/shotwell/src/dialogs/Preferences.vala"
_g_object_unref0 (_tmp14_);
#line 157 "/home/jens/Source/shotwell/src/dialogs/Preferences.vala"
_tmp12_ = (_vala_array_free (_tmp12_, _tmp12__length1, (GDestroyNotify) g_free), NULL);
#line 160 "/home/jens/Source/shotwell/src/dialogs/Preferences.vala"
_tmp18_ = self->priv->dir_pattern_combo;
#line 160 "/home/jens/Source/shotwell/src/dialogs/Preferences.vala"
_tmp19_ = self->priv->dir_pattern_entry;
#line 160 "/home/jens/Source/shotwell/src/dialogs/Preferences.vala"
preferences_dialog_setup_dir_pattern (self, G_TYPE_CHECK_INSTANCE_CAST (_tmp18_, gtk_combo_box_get_type (), GtkComboBox), _tmp19_);
#line 162 "/home/jens/Source/shotwell/src/dialogs/Preferences.vala"
_tmp20_ = self->priv->lowercase;
#line 162 "/home/jens/Source/shotwell/src/dialogs/Preferences.vala"
_tmp21_ = config_facade_get_instance ();
#line 162 "/home/jens/Source/shotwell/src/dialogs/Preferences.vala"
_tmp22_ = _tmp21_;
#line 162 "/home/jens/Source/shotwell/src/dialogs/Preferences.vala"
_tmp23_ = configuration_facade_get_use_lowercase_filenames (G_TYPE_CHECK_INSTANCE_CAST (_tmp22_, TYPE_CONFIGURATION_FACADE, ConfigurationFacade));
#line 162 "/home/jens/Source/shotwell/src/dialogs/Preferences.vala"
gtk_toggle_button_set_active (G_TYPE_CHECK_INSTANCE_CAST (_tmp20_, gtk_toggle_button_get_type (), GtkToggleButton), _tmp23_);
#line 162 "/home/jens/Source/shotwell/src/dialogs/Preferences.vala"
_g_object_unref0 (_tmp22_);
#line 948 "Preferences.c"
}
static void preferences_dialog_on_radio_changed (PreferencesDialog* self) {
ConfigFacade* config = NULL;
ConfigFacade* _tmp0_;
GtkRadioButton* _tmp1_;
gboolean _tmp2_;
gboolean _tmp3_;
#line 165 "/home/jens/Source/shotwell/src/dialogs/Preferences.vala"
g_return_if_fail (IS_PREFERENCES_DIALOG (self));
#line 166 "/home/jens/Source/shotwell/src/dialogs/Preferences.vala"
_tmp0_ = config_facade_get_instance ();
#line 166 "/home/jens/Source/shotwell/src/dialogs/Preferences.vala"
config = _tmp0_;
#line 168 "/home/jens/Source/shotwell/src/dialogs/Preferences.vala"
_tmp1_ = self->priv->transparent_checker_radio;
#line 168 "/home/jens/Source/shotwell/src/dialogs/Preferences.vala"
_tmp2_ = gtk_toggle_button_get_active (G_TYPE_CHECK_INSTANCE_CAST (_tmp1_, gtk_toggle_button_get_type (), GtkToggleButton));
#line 168 "/home/jens/Source/shotwell/src/dialogs/Preferences.vala"
_tmp3_ = _tmp2_;
#line 168 "/home/jens/Source/shotwell/src/dialogs/Preferences.vala"
if (_tmp3_) {
#line 972 "Preferences.c"
ConfigFacade* _tmp4_;
#line 169 "/home/jens/Source/shotwell/src/dialogs/Preferences.vala"
_tmp4_ = config;
#line 169 "/home/jens/Source/shotwell/src/dialogs/Preferences.vala"
configuration_facade_set_transparent_background_type (G_TYPE_CHECK_INSTANCE_CAST (_tmp4_, TYPE_CONFIGURATION_FACADE, ConfigurationFacade), "checkered");
#line 978 "Preferences.c"
} else {
GtkRadioButton* _tmp5_;
gboolean _tmp6_;
gboolean _tmp7_;
#line 170 "/home/jens/Source/shotwell/src/dialogs/Preferences.vala"
_tmp5_ = self->priv->transparent_solid_radio;
#line 170 "/home/jens/Source/shotwell/src/dialogs/Preferences.vala"
_tmp6_ = gtk_toggle_button_get_active (G_TYPE_CHECK_INSTANCE_CAST (_tmp5_, gtk_toggle_button_get_type (), GtkToggleButton));
#line 170 "/home/jens/Source/shotwell/src/dialogs/Preferences.vala"
_tmp7_ = _tmp6_;
#line 170 "/home/jens/Source/shotwell/src/dialogs/Preferences.vala"
if (_tmp7_) {
#line 991 "Preferences.c"
ConfigFacade* _tmp8_;
#line 171 "/home/jens/Source/shotwell/src/dialogs/Preferences.vala"
_tmp8_ = config;
#line 171 "/home/jens/Source/shotwell/src/dialogs/Preferences.vala"
configuration_facade_set_transparent_background_type (G_TYPE_CHECK_INSTANCE_CAST (_tmp8_, TYPE_CONFIGURATION_FACADE, ConfigurationFacade), "solid");
#line 997 "Preferences.c"
} else {
ConfigFacade* _tmp9_;
#line 173 "/home/jens/Source/shotwell/src/dialogs/Preferences.vala"
_tmp9_ = config;
#line 173 "/home/jens/Source/shotwell/src/dialogs/Preferences.vala"
configuration_facade_set_transparent_background_type (G_TYPE_CHECK_INSTANCE_CAST (_tmp9_, TYPE_CONFIGURATION_FACADE, ConfigurationFacade), "none");
#line 1004 "Preferences.c"
}
}
#line 165 "/home/jens/Source/shotwell/src/dialogs/Preferences.vala"
_g_object_unref0 (config);
#line 1009 "Preferences.c"
}
static void preferences_dialog_on_color_changed (PreferencesDialog* self) {
gchar* color = NULL;
GtkColorButton* _tmp0_;
GdkRGBA _tmp1_ = {0};
GdkRGBA _tmp2_;
gchar* _tmp3_;
ConfigFacade* _tmp4_;
ConfigFacade* _tmp5_;
#line 177 "/home/jens/Source/shotwell/src/dialogs/Preferences.vala"
g_return_if_fail (IS_PREFERENCES_DIALOG (self));
#line 178 "/home/jens/Source/shotwell/src/dialogs/Preferences.vala"
_tmp0_ = self->priv->transparent_solid_color;
#line 178 "/home/jens/Source/shotwell/src/dialogs/Preferences.vala"
gtk_color_chooser_get_rgba (G_TYPE_CHECK_INSTANCE_TYPE (_tmp0_, GTK_TYPE_COLOR_CHOOSER) ? ((GtkColorChooser*) _tmp0_) : NULL, &_tmp1_);
#line 178 "/home/jens/Source/shotwell/src/dialogs/Preferences.vala"
_tmp2_ = _tmp1_;
#line 178 "/home/jens/Source/shotwell/src/dialogs/Preferences.vala"
_tmp3_ = gdk_rgba_to_string (&_tmp2_);
#line 178 "/home/jens/Source/shotwell/src/dialogs/Preferences.vala"
color = _tmp3_;
#line 179 "/home/jens/Source/shotwell/src/dialogs/Preferences.vala"
_tmp4_ = config_facade_get_instance ();
#line 179 "/home/jens/Source/shotwell/src/dialogs/Preferences.vala"
_tmp5_ = _tmp4_;
#line 179 "/home/jens/Source/shotwell/src/dialogs/Preferences.vala"
configuration_facade_set_transparent_background_color (G_TYPE_CHECK_INSTANCE_CAST (_tmp5_, TYPE_CONFIGURATION_FACADE, ConfigurationFacade), color);
#line 179 "/home/jens/Source/shotwell/src/dialogs/Preferences.vala"
_g_object_unref0 (_tmp5_);
#line 177 "/home/jens/Source/shotwell/src/dialogs/Preferences.vala"
_g_free0 (color);
#line 1043 "Preferences.c"
}
static gboolean preferences_dialog_on_local_pattern_help (PreferencesDialog* self, const gchar* ignore) {
gboolean result = FALSE;
GError * _inner_error_ = NULL;
#line 184 "/home/jens/Source/shotwell/src/dialogs/Preferences.vala"
g_return_val_if_fail (IS_PREFERENCES_DIALOG (self), FALSE);
#line 184 "/home/jens/Source/shotwell/src/dialogs/Preferences.vala"
g_return_val_if_fail (ignore != NULL, FALSE);
#line 1054 "Preferences.c"
{
AppWindow* _tmp0_;
AppWindow* _tmp1_;
GdkScreen* _tmp2_;
#line 186 "/home/jens/Source/shotwell/src/dialogs/Preferences.vala"
_tmp0_ = app_window_get_instance ();
#line 186 "/home/jens/Source/shotwell/src/dialogs/Preferences.vala"
_tmp1_ = _tmp0_;
#line 186 "/home/jens/Source/shotwell/src/dialogs/Preferences.vala"
_tmp2_ = gtk_window_get_screen (G_TYPE_CHECK_INSTANCE_CAST (_tmp1_, gtk_window_get_type (), GtkWindow));
#line 186 "/home/jens/Source/shotwell/src/dialogs/Preferences.vala"
resources_launch_help (_tmp2_, "other-files.page", &_inner_error_);
#line 186 "/home/jens/Source/shotwell/src/dialogs/Preferences.vala"
_g_object_unref0 (_tmp1_);
#line 186 "/home/jens/Source/shotwell/src/dialogs/Preferences.vala"
if (G_UNLIKELY (_inner_error_ != NULL)) {
#line 1071 "Preferences.c"
goto __catch22_g_error;
}
}
goto __finally22;
__catch22_g_error:
{
GError* e = NULL;
GError* _tmp3_;
const gchar* _tmp4_;
#line 185 "/home/jens/Source/shotwell/src/dialogs/Preferences.vala"
e = _inner_error_;
#line 185 "/home/jens/Source/shotwell/src/dialogs/Preferences.vala"
_inner_error_ = NULL;
#line 188 "/home/jens/Source/shotwell/src/dialogs/Preferences.vala"
_tmp3_ = e;
#line 188 "/home/jens/Source/shotwell/src/dialogs/Preferences.vala"
_tmp4_ = _tmp3_->message;
#line 188 "/home/jens/Source/shotwell/src/dialogs/Preferences.vala"
g_message ("Preferences.vala:188: Unable to launch help: %s", _tmp4_);
#line 185 "/home/jens/Source/shotwell/src/dialogs/Preferences.vala"
_g_error_free0 (e);
#line 1093 "Preferences.c"
}
__finally22:
#line 185 "/home/jens/Source/shotwell/src/dialogs/Preferences.vala"
if (G_UNLIKELY (_inner_error_ != NULL)) {
#line 1098 "Preferences.c"
gboolean _tmp5_ = FALSE;
#line 185 "/home/jens/Source/shotwell/src/dialogs/Preferences.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 185 "/home/jens/Source/shotwell/src/dialogs/Preferences.vala"
g_clear_error (&_inner_error_);
#line 185 "/home/jens/Source/shotwell/src/dialogs/Preferences.vala"
return _tmp5_;
#line 1106 "Preferences.c"
}
#line 190 "/home/jens/Source/shotwell/src/dialogs/Preferences.vala"
result = TRUE;
#line 190 "/home/jens/Source/shotwell/src/dialogs/Preferences.vala"
return result;
#line 1112 "Preferences.c"
}
static gpointer _g_object_ref0 (gpointer self) {
#line 220 "/home/jens/Source/shotwell/src/dialogs/Preferences.vala"
return self ? g_object_ref (self) : NULL;
#line 1119 "Preferences.c"
}
static void preferences_dialog_populate_app_combo_box (PreferencesDialog* self, GtkComboBox* combo_box, gchar** mime_types, int mime_types_length1, const gchar* current_app_executable, SortedList* * external_apps) {
SortedList* _vala_external_apps = NULL;
gchar** _tmp0_;
gint _tmp0__length1;
gchar** _tmp1_;
gint _tmp1__length1;
SortedList* _tmp2_;
SortedList* _tmp3_;
gint _tmp4_;
gint _tmp5_;
GtkCellRendererPixbuf* pixbuf_renderer = NULL;
GtkCellRendererPixbuf* _tmp6_;
GtkCellRendererText* text_renderer = NULL;
GtkCellRendererText* _tmp7_;
GtkComboBox* _tmp8_;
GtkComboBox* _tmp9_;
GtkCellRendererPixbuf* _tmp10_;
GtkComboBox* _tmp11_;
GtkCellRendererText* _tmp12_;
GtkComboBox* _tmp13_;
GtkCellRendererPixbuf* _tmp14_;
GtkComboBox* _tmp15_;
GtkCellRendererText* _tmp16_;
GtkListStore* combo_store = NULL;
GtkListStore* _tmp17_;
GtkTreeIter iter = {0};
gint current_app = 0;
GtkComboBox* _tmp67_;
GtkListStore* _tmp68_;
gint _tmp69_;
GError * _inner_error_ = NULL;
#line 193 "/home/jens/Source/shotwell/src/dialogs/Preferences.vala"
g_return_if_fail (IS_PREFERENCES_DIALOG (self));
#line 193 "/home/jens/Source/shotwell/src/dialogs/Preferences.vala"
g_return_if_fail (GTK_IS_COMBO_BOX (combo_box));
#line 193 "/home/jens/Source/shotwell/src/dialogs/Preferences.vala"
g_return_if_fail (current_app_executable != NULL);
#line 196 "/home/jens/Source/shotwell/src/dialogs/Preferences.vala"
_tmp0_ = mime_types;
#line 196 "/home/jens/Source/shotwell/src/dialogs/Preferences.vala"
_tmp0__length1 = mime_types_length1;
#line 196 "/home/jens/Source/shotwell/src/dialogs/Preferences.vala"
_vala_assert (_tmp0__length1 != 0, "mime_types.length != 0");
#line 197 "/home/jens/Source/shotwell/src/dialogs/Preferences.vala"
_tmp1_ = mime_types;
#line 197 "/home/jens/Source/shotwell/src/dialogs/Preferences.vala"
_tmp1__length1 = mime_types_length1;
#line 197 "/home/jens/Source/shotwell/src/dialogs/Preferences.vala"
_tmp2_ = desktop_integration_get_apps_for_mime_types (_tmp1_, _tmp1__length1);
#line 197 "/home/jens/Source/shotwell/src/dialogs/Preferences.vala"
_g_object_unref0 (_vala_external_apps);
#line 197 "/home/jens/Source/shotwell/src/dialogs/Preferences.vala"
_vala_external_apps = _tmp2_;
#line 199 "/home/jens/Source/shotwell/src/dialogs/Preferences.vala"
_tmp3_ = _vala_external_apps;
#line 199 "/home/jens/Source/shotwell/src/dialogs/Preferences.vala"
_tmp4_ = gee_collection_get_size (G_TYPE_CHECK_INSTANCE_CAST (_tmp3_, GEE_TYPE_COLLECTION, GeeCollection));
#line 199 "/home/jens/Source/shotwell/src/dialogs/Preferences.vala"
_tmp5_ = _tmp4_;
#line 199 "/home/jens/Source/shotwell/src/dialogs/Preferences.vala"
if (_tmp5_ == 0) {
#line 200 "/home/jens/Source/shotwell/src/dialogs/Preferences.vala"
if (external_apps) {
#line 200 "/home/jens/Source/shotwell/src/dialogs/Preferences.vala"
*external_apps = _vala_external_apps;
#line 1188 "Preferences.c"
} else {
#line 200 "/home/jens/Source/shotwell/src/dialogs/Preferences.vala"
_g_object_unref0 (_vala_external_apps);
#line 1192 "Preferences.c"
}
#line 200 "/home/jens/Source/shotwell/src/dialogs/Preferences.vala"
return;
#line 1196 "Preferences.c"
}
#line 203 "/home/jens/Source/shotwell/src/dialogs/Preferences.vala"
_tmp6_ = (GtkCellRendererPixbuf*) gtk_cell_renderer_pixbuf_new ();
#line 203 "/home/jens/Source/shotwell/src/dialogs/Preferences.vala"
g_object_ref_sink (_tmp6_);
#line 203 "/home/jens/Source/shotwell/src/dialogs/Preferences.vala"
pixbuf_renderer = _tmp6_;
#line 204 "/home/jens/Source/shotwell/src/dialogs/Preferences.vala"
_tmp7_ = (GtkCellRendererText*) gtk_cell_renderer_text_new ();
#line 204 "/home/jens/Source/shotwell/src/dialogs/Preferences.vala"
g_object_ref_sink (_tmp7_);
#line 204 "/home/jens/Source/shotwell/src/dialogs/Preferences.vala"
text_renderer = _tmp7_;
#line 205 "/home/jens/Source/shotwell/src/dialogs/Preferences.vala"
_tmp8_ = combo_box;
#line 205 "/home/jens/Source/shotwell/src/dialogs/Preferences.vala"
gtk_cell_layout_clear (G_TYPE_CHECK_INSTANCE_CAST (_tmp8_, GTK_TYPE_CELL_LAYOUT, GtkCellLayout));
#line 206 "/home/jens/Source/shotwell/src/dialogs/Preferences.vala"
_tmp9_ = combo_box;
#line 206 "/home/jens/Source/shotwell/src/dialogs/Preferences.vala"
_tmp10_ = pixbuf_renderer;
#line 206 "/home/jens/Source/shotwell/src/dialogs/Preferences.vala"
gtk_cell_layout_pack_start (G_TYPE_CHECK_INSTANCE_CAST (_tmp9_, GTK_TYPE_CELL_LAYOUT, GtkCellLayout), G_TYPE_CHECK_INSTANCE_CAST (_tmp10_, gtk_cell_renderer_get_type (), GtkCellRenderer), FALSE);
#line 207 "/home/jens/Source/shotwell/src/dialogs/Preferences.vala"
_tmp11_ = combo_box;
#line 207 "/home/jens/Source/shotwell/src/dialogs/Preferences.vala"
_tmp12_ = text_renderer;
#line 207 "/home/jens/Source/shotwell/src/dialogs/Preferences.vala"
gtk_cell_layout_pack_start (G_TYPE_CHECK_INSTANCE_CAST (_tmp11_, GTK_TYPE_CELL_LAYOUT, GtkCellLayout), G_TYPE_CHECK_INSTANCE_CAST (_tmp12_, gtk_cell_renderer_get_type (), GtkCellRenderer), FALSE);
#line 208 "/home/jens/Source/shotwell/src/dialogs/Preferences.vala"
_tmp13_ = combo_box;
#line 208 "/home/jens/Source/shotwell/src/dialogs/Preferences.vala"
_tmp14_ = pixbuf_renderer;
#line 208 "/home/jens/Source/shotwell/src/dialogs/Preferences.vala"
gtk_cell_layout_add_attribute (G_TYPE_CHECK_INSTANCE_CAST (_tmp13_, GTK_TYPE_CELL_LAYOUT, GtkCellLayout), G_TYPE_CHECK_INSTANCE_CAST (_tmp14_, gtk_cell_renderer_get_type (), GtkCellRenderer), "pixbuf", 0);
#line 209 "/home/jens/Source/shotwell/src/dialogs/Preferences.vala"
_tmp15_ = combo_box;
#line 209 "/home/jens/Source/shotwell/src/dialogs/Preferences.vala"
_tmp16_ = text_renderer;
#line 209 "/home/jens/Source/shotwell/src/dialogs/Preferences.vala"
gtk_cell_layout_add_attribute (G_TYPE_CHECK_INSTANCE_CAST (_tmp15_, GTK_TYPE_CELL_LAYOUT, GtkCellLayout), G_TYPE_CHECK_INSTANCE_CAST (_tmp16_, gtk_cell_renderer_get_type (), GtkCellRenderer), "text", 1);
#line 212 "/home/jens/Source/shotwell/src/dialogs/Preferences.vala"
_tmp17_ = gtk_list_store_new (2, gdk_pixbuf_get_type (), G_TYPE_STRING, -1);
#line 212 "/home/jens/Source/shotwell/src/dialogs/Preferences.vala"
combo_store = _tmp17_;
#line 215 "/home/jens/Source/shotwell/src/dialogs/Preferences.vala"
current_app = -1;
#line 1244 "Preferences.c"
{
GeeIterator* _app_it = NULL;
SortedList* _tmp18_;
GeeIterator* _tmp19_;
#line 217 "/home/jens/Source/shotwell/src/dialogs/Preferences.vala"
_tmp18_ = _vala_external_apps;
#line 217 "/home/jens/Source/shotwell/src/dialogs/Preferences.vala"
_tmp19_ = gee_iterable_iterator (G_TYPE_CHECK_INSTANCE_CAST (_tmp18_, GEE_TYPE_ITERABLE, GeeIterable));
#line 217 "/home/jens/Source/shotwell/src/dialogs/Preferences.vala"
_app_it = _tmp19_;
#line 217 "/home/jens/Source/shotwell/src/dialogs/Preferences.vala"
while (TRUE) {
#line 1257 "Preferences.c"
GeeIterator* _tmp20_;
gboolean _tmp21_;
GAppInfo* app = NULL;
GeeIterator* _tmp22_;
gpointer _tmp23_;
GtkListStore* _tmp24_;
GtkTreeIter _tmp25_ = {0};
GIcon* app_icon = NULL;
GAppInfo* _tmp26_;
GIcon* _tmp27_;
GIcon* _tmp28_;
GtkListStore* _tmp56_;
GtkTreeIter _tmp57_;
GAppInfo* _tmp58_;
const gchar* _tmp59_;
GValue _tmp60_ = {0};
GAppInfo* _tmp61_;
const gchar* _tmp62_;
const gchar* _tmp63_;
#line 217 "/home/jens/Source/shotwell/src/dialogs/Preferences.vala"
_tmp20_ = _app_it;
#line 217 "/home/jens/Source/shotwell/src/dialogs/Preferences.vala"
_tmp21_ = gee_iterator_next (_tmp20_);
#line 217 "/home/jens/Source/shotwell/src/dialogs/Preferences.vala"
if (!_tmp21_) {
#line 217 "/home/jens/Source/shotwell/src/dialogs/Preferences.vala"
break;
#line 1285 "Preferences.c"
}
#line 217 "/home/jens/Source/shotwell/src/dialogs/Preferences.vala"
_tmp22_ = _app_it;
#line 217 "/home/jens/Source/shotwell/src/dialogs/Preferences.vala"
_tmp23_ = gee_iterator_get (_tmp22_);
#line 217 "/home/jens/Source/shotwell/src/dialogs/Preferences.vala"
app = (GAppInfo*) _tmp23_;
#line 218 "/home/jens/Source/shotwell/src/dialogs/Preferences.vala"
_tmp24_ = combo_store;
#line 218 "/home/jens/Source/shotwell/src/dialogs/Preferences.vala"
gtk_list_store_append (_tmp24_, &_tmp25_);
#line 218 "/home/jens/Source/shotwell/src/dialogs/Preferences.vala"
iter = _tmp25_;
#line 220 "/home/jens/Source/shotwell/src/dialogs/Preferences.vala"
_tmp26_ = app;
#line 220 "/home/jens/Source/shotwell/src/dialogs/Preferences.vala"
_tmp27_ = g_app_info_get_icon (_tmp26_);
#line 220 "/home/jens/Source/shotwell/src/dialogs/Preferences.vala"
_tmp28_ = _g_object_ref0 (_tmp27_);
#line 220 "/home/jens/Source/shotwell/src/dialogs/Preferences.vala"
app_icon = _tmp28_;
#line 1307 "Preferences.c"
{
GIcon* _tmp29_;
#line 222 "/home/jens/Source/shotwell/src/dialogs/Preferences.vala"
_tmp29_ = app_icon;
#line 222 "/home/jens/Source/shotwell/src/dialogs/Preferences.vala"
if (G_TYPE_CHECK_INSTANCE_TYPE (_tmp29_, g_file_icon_get_type ())) {
#line 1314 "Preferences.c"
GdkPixbuf* _tmp30_ = NULL;
GIcon* _tmp31_;
GFile* _tmp32_;
gchar* _tmp33_;
gchar* _tmp34_;
GdkPixbuf* _tmp35_;
GdkPixbuf* _tmp36_;
GtkListStore* _tmp37_;
GtkTreeIter _tmp38_;
GdkPixbuf* _tmp39_;
GValue _tmp40_ = {0};
#line 223 "/home/jens/Source/shotwell/src/dialogs/Preferences.vala"
_tmp31_ = app_icon;
#line 223 "/home/jens/Source/shotwell/src/dialogs/Preferences.vala"
_tmp32_ = g_file_icon_get_file (G_TYPE_CHECK_INSTANCE_CAST (_tmp31_, g_file_icon_get_type (), GFileIcon));
#line 223 "/home/jens/Source/shotwell/src/dialogs/Preferences.vala"
_tmp33_ = g_file_get_path (_tmp32_);
#line 223 "/home/jens/Source/shotwell/src/dialogs/Preferences.vala"
_tmp34_ = _tmp33_;
#line 223 "/home/jens/Source/shotwell/src/dialogs/Preferences.vala"
_tmp35_ = gdk_pixbuf_new_from_file (_tmp34_, &_inner_error_);
#line 223 "/home/jens/Source/shotwell/src/dialogs/Preferences.vala"
_tmp36_ = _tmp35_;
#line 223 "/home/jens/Source/shotwell/src/dialogs/Preferences.vala"
_g_free0 (_tmp34_);
#line 223 "/home/jens/Source/shotwell/src/dialogs/Preferences.vala"
_tmp30_ = _tmp36_;
#line 223 "/home/jens/Source/shotwell/src/dialogs/Preferences.vala"
if (G_UNLIKELY (_inner_error_ != NULL)) {
#line 1344 "Preferences.c"
goto __catch23_g_error;
}
#line 223 "/home/jens/Source/shotwell/src/dialogs/Preferences.vala"
_tmp37_ = combo_store;
#line 223 "/home/jens/Source/shotwell/src/dialogs/Preferences.vala"
_tmp38_ = iter;
#line 223 "/home/jens/Source/shotwell/src/dialogs/Preferences.vala"
_tmp39_ = scale_pixbuf (_tmp30_, RESOURCES_DEFAULT_ICON_SCALE, GDK_INTERP_BILINEAR, FALSE);
#line 223 "/home/jens/Source/shotwell/src/dialogs/Preferences.vala"
g_value_init (&_tmp40_, gdk_pixbuf_get_type ());
#line 223 "/home/jens/Source/shotwell/src/dialogs/Preferences.vala"
g_value_take_object (&_tmp40_, _tmp39_);
#line 223 "/home/jens/Source/shotwell/src/dialogs/Preferences.vala"
gtk_list_store_set_value (_tmp37_, &_tmp38_, 0, &_tmp40_);
#line 223 "/home/jens/Source/shotwell/src/dialogs/Preferences.vala"
G_IS_VALUE (&_tmp40_) ? (g_value_unset (&_tmp40_), NULL) : NULL;
#line 222 "/home/jens/Source/shotwell/src/dialogs/Preferences.vala"
_g_object_unref0 (_tmp30_);
#line 1363 "Preferences.c"
} else {
GIcon* _tmp41_;
#line 226 "/home/jens/Source/shotwell/src/dialogs/Preferences.vala"
_tmp41_ = app_icon;
#line 226 "/home/jens/Source/shotwell/src/dialogs/Preferences.vala"
if (G_TYPE_CHECK_INSTANCE_TYPE (_tmp41_, g_themed_icon_get_type ())) {
#line 1370 "Preferences.c"
GdkPixbuf* icon_pixbuf = NULL;
GtkIconTheme* _tmp42_;
GIcon* _tmp43_;
gchar** _tmp44_;
gchar** _tmp45_;
const gchar* _tmp46_;
GdkPixbuf* _tmp47_;
GtkListStore* _tmp48_;
GtkTreeIter _tmp49_;
GdkPixbuf* _tmp50_;
GValue _tmp51_ = {0};
#line 227 "/home/jens/Source/shotwell/src/dialogs/Preferences.vala"
_tmp42_ = gtk_icon_theme_get_default ();
#line 227 "/home/jens/Source/shotwell/src/dialogs/Preferences.vala"
_tmp43_ = app_icon;
#line 227 "/home/jens/Source/shotwell/src/dialogs/Preferences.vala"
_tmp45_ = _tmp44_ = g_themed_icon_get_names (G_TYPE_CHECK_INSTANCE_CAST (_tmp43_, g_themed_icon_get_type (), GThemedIcon));
#line 227 "/home/jens/Source/shotwell/src/dialogs/Preferences.vala"
_tmp46_ = _tmp45_[0];
#line 227 "/home/jens/Source/shotwell/src/dialogs/Preferences.vala"
_tmp47_ = gtk_icon_theme_load_icon (_tmp42_, _tmp46_, RESOURCES_DEFAULT_ICON_SCALE, GTK_ICON_LOOKUP_FORCE_SIZE, &_inner_error_);
#line 227 "/home/jens/Source/shotwell/src/dialogs/Preferences.vala"
icon_pixbuf = _tmp47_;
#line 227 "/home/jens/Source/shotwell/src/dialogs/Preferences.vala"
if (G_UNLIKELY (_inner_error_ != NULL)) {
#line 1396 "Preferences.c"
goto __catch23_g_error;
}
#line 231 "/home/jens/Source/shotwell/src/dialogs/Preferences.vala"
_tmp48_ = combo_store;
#line 231 "/home/jens/Source/shotwell/src/dialogs/Preferences.vala"
_tmp49_ = iter;
#line 231 "/home/jens/Source/shotwell/src/dialogs/Preferences.vala"
_tmp50_ = icon_pixbuf;
#line 231 "/home/jens/Source/shotwell/src/dialogs/Preferences.vala"
g_value_init (&_tmp51_, gdk_pixbuf_get_type ());
#line 231 "/home/jens/Source/shotwell/src/dialogs/Preferences.vala"
g_value_set_object (&_tmp51_, _tmp50_);
#line 231 "/home/jens/Source/shotwell/src/dialogs/Preferences.vala"
gtk_list_store_set_value (_tmp48_, &_tmp49_, 0, &_tmp51_);
#line 231 "/home/jens/Source/shotwell/src/dialogs/Preferences.vala"
G_IS_VALUE (&_tmp51_) ? (g_value_unset (&_tmp51_), NULL) : NULL;
#line 226 "/home/jens/Source/shotwell/src/dialogs/Preferences.vala"
_g_object_unref0 (icon_pixbuf);
#line 1415 "Preferences.c"
}
}
}
goto __finally23;
__catch23_g_error:
{
GError* _error_ = NULL;
GError* _tmp52_;
const gchar* _tmp53_;
gchar* _tmp54_;
gchar* _tmp55_;
#line 221 "/home/jens/Source/shotwell/src/dialogs/Preferences.vala"
_error_ = _inner_error_;
#line 221 "/home/jens/Source/shotwell/src/dialogs/Preferences.vala"
_inner_error_ = NULL;
#line 234 "/home/jens/Source/shotwell/src/dialogs/Preferences.vala"
_tmp52_ = _error_;
#line 234 "/home/jens/Source/shotwell/src/dialogs/Preferences.vala"
_tmp53_ = _tmp52_->message;
#line 234 "/home/jens/Source/shotwell/src/dialogs/Preferences.vala"
_tmp54_ = g_strconcat ("Error loading icon pixbuf: ", _tmp53_, NULL);
#line 234 "/home/jens/Source/shotwell/src/dialogs/Preferences.vala"
_tmp55_ = _tmp54_;
#line 234 "/home/jens/Source/shotwell/src/dialogs/Preferences.vala"
g_warning ("Preferences.vala:234: %s", _tmp55_);
#line 234 "/home/jens/Source/shotwell/src/dialogs/Preferences.vala"
_g_free0 (_tmp55_);
#line 221 "/home/jens/Source/shotwell/src/dialogs/Preferences.vala"
_g_error_free0 (_error_);
#line 1445 "Preferences.c"
}
__finally23:
#line 221 "/home/jens/Source/shotwell/src/dialogs/Preferences.vala"
if (G_UNLIKELY (_inner_error_ != NULL)) {
#line 221 "/home/jens/Source/shotwell/src/dialogs/Preferences.vala"
_g_object_unref0 (app_icon);
#line 221 "/home/jens/Source/shotwell/src/dialogs/Preferences.vala"
_g_object_unref0 (app);
#line 221 "/home/jens/Source/shotwell/src/dialogs/Preferences.vala"
_g_object_unref0 (_app_it);
#line 221 "/home/jens/Source/shotwell/src/dialogs/Preferences.vala"
_g_object_unref0 (combo_store);
#line 221 "/home/jens/Source/shotwell/src/dialogs/Preferences.vala"
_g_object_unref0 (text_renderer);
#line 221 "/home/jens/Source/shotwell/src/dialogs/Preferences.vala"
_g_object_unref0 (pixbuf_renderer);
#line 221 "/home/jens/Source/shotwell/src/dialogs/Preferences.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 221 "/home/jens/Source/shotwell/src/dialogs/Preferences.vala"
g_clear_error (&_inner_error_);
#line 221 "/home/jens/Source/shotwell/src/dialogs/Preferences.vala"
return;
#line 1468 "Preferences.c"
}
#line 237 "/home/jens/Source/shotwell/src/dialogs/Preferences.vala"
_tmp56_ = combo_store;
#line 237 "/home/jens/Source/shotwell/src/dialogs/Preferences.vala"
_tmp57_ = iter;
#line 237 "/home/jens/Source/shotwell/src/dialogs/Preferences.vala"
_tmp58_ = app;
#line 237 "/home/jens/Source/shotwell/src/dialogs/Preferences.vala"
_tmp59_ = g_app_info_get_name (_tmp58_);
#line 237 "/home/jens/Source/shotwell/src/dialogs/Preferences.vala"
g_value_init (&_tmp60_, G_TYPE_STRING);
#line 237 "/home/jens/Source/shotwell/src/dialogs/Preferences.vala"
g_value_set_string (&_tmp60_, _tmp59_);
#line 237 "/home/jens/Source/shotwell/src/dialogs/Preferences.vala"
gtk_list_store_set_value (_tmp56_, &_tmp57_, 1, &_tmp60_);
#line 237 "/home/jens/Source/shotwell/src/dialogs/Preferences.vala"
G_IS_VALUE (&_tmp60_) ? (g_value_unset (&_tmp60_), NULL) : NULL;
#line 239 "/home/jens/Source/shotwell/src/dialogs/Preferences.vala"
_tmp61_ = app;
#line 239 "/home/jens/Source/shotwell/src/dialogs/Preferences.vala"
_tmp62_ = g_app_info_get_commandline (_tmp61_);
#line 239 "/home/jens/Source/shotwell/src/dialogs/Preferences.vala"
_tmp63_ = current_app_executable;
#line 239 "/home/jens/Source/shotwell/src/dialogs/Preferences.vala"
if (g_strcmp0 (_tmp62_, _tmp63_) == 0) {
#line 1494 "Preferences.c"
SortedList* _tmp64_;
GAppInfo* _tmp65_;
gint _tmp66_;
#line 240 "/home/jens/Source/shotwell/src/dialogs/Preferences.vala"
_tmp64_ = _vala_external_apps;
#line 240 "/home/jens/Source/shotwell/src/dialogs/Preferences.vala"
_tmp65_ = app;
#line 240 "/home/jens/Source/shotwell/src/dialogs/Preferences.vala"
_tmp66_ = sorted_list_index_of (_tmp64_, _tmp65_);
#line 240 "/home/jens/Source/shotwell/src/dialogs/Preferences.vala"
current_app = _tmp66_;
#line 1506 "Preferences.c"
}
#line 217 "/home/jens/Source/shotwell/src/dialogs/Preferences.vala"
_g_object_unref0 (app_icon);
#line 217 "/home/jens/Source/shotwell/src/dialogs/Preferences.vala"
_g_object_unref0 (app);
#line 1512 "Preferences.c"
}
#line 217 "/home/jens/Source/shotwell/src/dialogs/Preferences.vala"
_g_object_unref0 (_app_it);
#line 1516 "Preferences.c"
}
#line 245 "/home/jens/Source/shotwell/src/dialogs/Preferences.vala"
_tmp67_ = combo_box;
#line 245 "/home/jens/Source/shotwell/src/dialogs/Preferences.vala"
_tmp68_ = combo_store;
#line 245 "/home/jens/Source/shotwell/src/dialogs/Preferences.vala"
gtk_combo_box_set_model (_tmp67_, G_TYPE_CHECK_INSTANCE_CAST (_tmp68_, GTK_TYPE_TREE_MODEL, GtkTreeModel));
#line 247 "/home/jens/Source/shotwell/src/dialogs/Preferences.vala"
_tmp69_ = current_app;
#line 247 "/home/jens/Source/shotwell/src/dialogs/Preferences.vala"
if (_tmp69_ != -1) {
#line 1528 "Preferences.c"
GtkComboBox* _tmp70_;
gint _tmp71_;
#line 248 "/home/jens/Source/shotwell/src/dialogs/Preferences.vala"
_tmp70_ = combo_box;
#line 248 "/home/jens/Source/shotwell/src/dialogs/Preferences.vala"
_tmp71_ = current_app;
#line 248 "/home/jens/Source/shotwell/src/dialogs/Preferences.vala"
gtk_combo_box_set_active (_tmp70_, _tmp71_);
#line 1537 "Preferences.c"
}
#line 193 "/home/jens/Source/shotwell/src/dialogs/Preferences.vala"
_g_object_unref0 (combo_store);
#line 193 "/home/jens/Source/shotwell/src/dialogs/Preferences.vala"
_g_object_unref0 (text_renderer);
#line 193 "/home/jens/Source/shotwell/src/dialogs/Preferences.vala"
_g_object_unref0 (pixbuf_renderer);
#line 193 "/home/jens/Source/shotwell/src/dialogs/Preferences.vala"
if (external_apps) {
#line 193 "/home/jens/Source/shotwell/src/dialogs/Preferences.vala"
*external_apps = _vala_external_apps;
#line 1549 "Preferences.c"
} else {
#line 193 "/home/jens/Source/shotwell/src/dialogs/Preferences.vala"
_g_object_unref0 (_vala_external_apps);
#line 1553 "Preferences.c"
}
}
static void preferences_dialog_setup_dir_pattern (PreferencesDialog* self, GtkComboBox* combo_box, GtkEntry* entry) {
gchar* pattern = NULL;
ConfigFacade* _tmp0_;
ConfigFacade* _tmp1_;
gchar* _tmp2_;
gchar* _tmp3_;
gboolean found = FALSE;
const gchar* _tmp4_;
gboolean _tmp32_;
#line 251 "/home/jens/Source/shotwell/src/dialogs/Preferences.vala"
g_return_if_fail (IS_PREFERENCES_DIALOG (self));
#line 251 "/home/jens/Source/shotwell/src/dialogs/Preferences.vala"
g_return_if_fail (GTK_IS_COMBO_BOX (combo_box));
#line 251 "/home/jens/Source/shotwell/src/dialogs/Preferences.vala"
g_return_if_fail (GTK_IS_ENTRY (entry));
#line 252 "/home/jens/Source/shotwell/src/dialogs/Preferences.vala"
_tmp0_ = config_facade_get_instance ();
#line 252 "/home/jens/Source/shotwell/src/dialogs/Preferences.vala"
_tmp1_ = _tmp0_;
#line 252 "/home/jens/Source/shotwell/src/dialogs/Preferences.vala"
_tmp2_ = configuration_facade_get_directory_pattern (G_TYPE_CHECK_INSTANCE_CAST (_tmp1_, TYPE_CONFIGURATION_FACADE, ConfigurationFacade));
#line 252 "/home/jens/Source/shotwell/src/dialogs/Preferences.vala"
_tmp3_ = _tmp2_;
#line 252 "/home/jens/Source/shotwell/src/dialogs/Preferences.vala"
_g_object_unref0 (_tmp1_);
#line 252 "/home/jens/Source/shotwell/src/dialogs/Preferences.vala"
pattern = _tmp3_;
#line 253 "/home/jens/Source/shotwell/src/dialogs/Preferences.vala"
found = FALSE;
#line 254 "/home/jens/Source/shotwell/src/dialogs/Preferences.vala"
_tmp4_ = pattern;
#line 254 "/home/jens/Source/shotwell/src/dialogs/Preferences.vala"
if (NULL != _tmp4_) {
#line 1591 "Preferences.c"
gint i = 0;
#line 256 "/home/jens/Source/shotwell/src/dialogs/Preferences.vala"
i = 0;
#line 1595 "Preferences.c"
{
GeeArrayList* _pf_list = NULL;
GeeArrayList* _tmp5_;
GeeArrayList* _tmp6_;
gint _pf_size = 0;
GeeArrayList* _tmp7_;
gint _tmp8_;
gint _tmp9_;
gint _pf_index = 0;
#line 257 "/home/jens/Source/shotwell/src/dialogs/Preferences.vala"
_tmp5_ = self->priv->path_formats;
#line 257 "/home/jens/Source/shotwell/src/dialogs/Preferences.vala"
_tmp6_ = _g_object_ref0 (_tmp5_);
#line 257 "/home/jens/Source/shotwell/src/dialogs/Preferences.vala"
_pf_list = _tmp6_;
#line 257 "/home/jens/Source/shotwell/src/dialogs/Preferences.vala"
_tmp7_ = _pf_list;
#line 257 "/home/jens/Source/shotwell/src/dialogs/Preferences.vala"
_tmp8_ = gee_abstract_collection_get_size (G_TYPE_CHECK_INSTANCE_CAST (_tmp7_, GEE_TYPE_ABSTRACT_COLLECTION, GeeAbstractCollection));
#line 257 "/home/jens/Source/shotwell/src/dialogs/Preferences.vala"
_tmp9_ = _tmp8_;
#line 257 "/home/jens/Source/shotwell/src/dialogs/Preferences.vala"
_pf_size = _tmp9_;
#line 257 "/home/jens/Source/shotwell/src/dialogs/Preferences.vala"
_pf_index = -1;
#line 257 "/home/jens/Source/shotwell/src/dialogs/Preferences.vala"
while (TRUE) {
#line 1623 "Preferences.c"
gint _tmp10_;
gint _tmp11_;
gint _tmp12_;
PreferencesDialogPathFormat* pf = NULL;
GeeArrayList* _tmp13_;
gint _tmp14_;
gpointer _tmp15_;
PreferencesDialogPathFormat* _tmp16_;
const gchar* _tmp17_;
const gchar* _tmp18_;
gint _tmp21_;
#line 257 "/home/jens/Source/shotwell/src/dialogs/Preferences.vala"
_tmp10_ = _pf_index;
#line 257 "/home/jens/Source/shotwell/src/dialogs/Preferences.vala"
_pf_index = _tmp10_ + 1;
#line 257 "/home/jens/Source/shotwell/src/dialogs/Preferences.vala"
_tmp11_ = _pf_index;
#line 257 "/home/jens/Source/shotwell/src/dialogs/Preferences.vala"
_tmp12_ = _pf_size;
#line 257 "/home/jens/Source/shotwell/src/dialogs/Preferences.vala"
if (!(_tmp11_ < _tmp12_)) {
#line 257 "/home/jens/Source/shotwell/src/dialogs/Preferences.vala"
break;
#line 1647 "Preferences.c"
}
#line 257 "/home/jens/Source/shotwell/src/dialogs/Preferences.vala"
_tmp13_ = _pf_list;
#line 257 "/home/jens/Source/shotwell/src/dialogs/Preferences.vala"
_tmp14_ = _pf_index;
#line 257 "/home/jens/Source/shotwell/src/dialogs/Preferences.vala"
_tmp15_ = gee_abstract_list_get (G_TYPE_CHECK_INSTANCE_CAST (_tmp13_, GEE_TYPE_ABSTRACT_LIST, GeeAbstractList), _tmp14_);
#line 257 "/home/jens/Source/shotwell/src/dialogs/Preferences.vala"
pf = (PreferencesDialogPathFormat*) _tmp15_;
#line 258 "/home/jens/Source/shotwell/src/dialogs/Preferences.vala"
_tmp16_ = pf;
#line 258 "/home/jens/Source/shotwell/src/dialogs/Preferences.vala"
_tmp17_ = _tmp16_->pattern;
#line 258 "/home/jens/Source/shotwell/src/dialogs/Preferences.vala"
_tmp18_ = pattern;
#line 258 "/home/jens/Source/shotwell/src/dialogs/Preferences.vala"
if (g_strcmp0 (_tmp17_, _tmp18_) == 0) {
#line 1665 "Preferences.c"
GtkComboBox* _tmp19_;
gint _tmp20_;
#line 259 "/home/jens/Source/shotwell/src/dialogs/Preferences.vala"
_tmp19_ = combo_box;
#line 259 "/home/jens/Source/shotwell/src/dialogs/Preferences.vala"
_tmp20_ = i;
#line 259 "/home/jens/Source/shotwell/src/dialogs/Preferences.vala"
gtk_combo_box_set_active (_tmp19_, _tmp20_);
#line 260 "/home/jens/Source/shotwell/src/dialogs/Preferences.vala"
found = TRUE;
#line 261 "/home/jens/Source/shotwell/src/dialogs/Preferences.vala"
_preferences_dialog_path_format_unref0 (pf);
#line 261 "/home/jens/Source/shotwell/src/dialogs/Preferences.vala"
break;
#line 1680 "Preferences.c"
}
#line 263 "/home/jens/Source/shotwell/src/dialogs/Preferences.vala"
_tmp21_ = i;
#line 263 "/home/jens/Source/shotwell/src/dialogs/Preferences.vala"
i = _tmp21_ + 1;
#line 257 "/home/jens/Source/shotwell/src/dialogs/Preferences.vala"
_preferences_dialog_path_format_unref0 (pf);
#line 1688 "Preferences.c"
}
#line 257 "/home/jens/Source/shotwell/src/dialogs/Preferences.vala"
_g_object_unref0 (_pf_list);
#line 1692 "Preferences.c"
}
} else {
gchar* s = NULL;
ConfigFacade* _tmp22_;
ConfigFacade* _tmp23_;
gchar* _tmp24_;
gchar* _tmp25_;
const gchar* _tmp26_;
gboolean _tmp27_;
#line 267 "/home/jens/Source/shotwell/src/dialogs/Preferences.vala"
_tmp22_ = config_facade_get_instance ();
#line 267 "/home/jens/Source/shotwell/src/dialogs/Preferences.vala"
_tmp23_ = _tmp22_;
#line 267 "/home/jens/Source/shotwell/src/dialogs/Preferences.vala"
_tmp24_ = configuration_facade_get_directory_pattern_custom (G_TYPE_CHECK_INSTANCE_CAST (_tmp23_, TYPE_CONFIGURATION_FACADE, ConfigurationFacade));
#line 267 "/home/jens/Source/shotwell/src/dialogs/Preferences.vala"
_tmp25_ = _tmp24_;
#line 267 "/home/jens/Source/shotwell/src/dialogs/Preferences.vala"
_g_object_unref0 (_tmp23_);
#line 267 "/home/jens/Source/shotwell/src/dialogs/Preferences.vala"
s = _tmp25_;
#line 268 "/home/jens/Source/shotwell/src/dialogs/Preferences.vala"
_tmp26_ = s;
#line 268 "/home/jens/Source/shotwell/src/dialogs/Preferences.vala"
_tmp27_ = is_string_empty (_tmp26_);
#line 268 "/home/jens/Source/shotwell/src/dialogs/Preferences.vala"
if (!_tmp27_) {
#line 1720 "Preferences.c"
GtkComboBox* _tmp28_;
GeeArrayList* _tmp29_;
gint _tmp30_;
gint _tmp31_;
#line 269 "/home/jens/Source/shotwell/src/dialogs/Preferences.vala"
_tmp28_ = combo_box;
#line 269 "/home/jens/Source/shotwell/src/dialogs/Preferences.vala"
_tmp29_ = self->priv->path_formats;
#line 269 "/home/jens/Source/shotwell/src/dialogs/Preferences.vala"
_tmp30_ = gee_abstract_collection_get_size (G_TYPE_CHECK_INSTANCE_CAST (_tmp29_, GEE_TYPE_ABSTRACT_COLLECTION, GeeAbstractCollection));
#line 269 "/home/jens/Source/shotwell/src/dialogs/Preferences.vala"
_tmp31_ = _tmp30_;
#line 269 "/home/jens/Source/shotwell/src/dialogs/Preferences.vala"
gtk_combo_box_set_active (_tmp28_, _tmp31_ - 1);
#line 270 "/home/jens/Source/shotwell/src/dialogs/Preferences.vala"
found = TRUE;
#line 1737 "Preferences.c"
}
#line 254 "/home/jens/Source/shotwell/src/dialogs/Preferences.vala"
_g_free0 (s);
#line 1741 "Preferences.c"
}
#line 274 "/home/jens/Source/shotwell/src/dialogs/Preferences.vala"
_tmp32_ = found;
#line 274 "/home/jens/Source/shotwell/src/dialogs/Preferences.vala"
if (!_tmp32_) {
#line 1747 "Preferences.c"
GtkComboBox* _tmp33_;
#line 275 "/home/jens/Source/shotwell/src/dialogs/Preferences.vala"
_tmp33_ = combo_box;
#line 275 "/home/jens/Source/shotwell/src/dialogs/Preferences.vala"
gtk_combo_box_set_active (_tmp33_, 0);
#line 1753 "Preferences.c"
}
#line 278 "/home/jens/Source/shotwell/src/dialogs/Preferences.vala"
preferences_dialog_on_dir_pattern_combo_changed (self);
#line 251 "/home/jens/Source/shotwell/src/dialogs/Preferences.vala"
_g_free0 (pattern);
#line 1759 "Preferences.c"
}
void preferences_dialog_show_preferences (void) {
PreferencesDialog* _tmp0_;
PreferencesDialog* _tmp2_;
PreferencesDialog* _tmp3_;
PreferencesDialog* _tmp4_;
GtkFileChooserButton* _tmp5_;
GFile* _tmp6_;
GFile* _tmp7_;
gchar* _tmp8_;
gchar* _tmp9_;
PreferencesDialog* _tmp10_;
#line 282 "/home/jens/Source/shotwell/src/dialogs/Preferences.vala"
_tmp0_ = preferences_dialog_preferences_dialog;
#line 282 "/home/jens/Source/shotwell/src/dialogs/Preferences.vala"
if (_tmp0_ == NULL) {
#line 1778 "Preferences.c"
PreferencesDialog* _tmp1_;
#line 283 "/home/jens/Source/shotwell/src/dialogs/Preferences.vala"
_tmp1_ = preferences_dialog_new ();
#line 283 "/home/jens/Source/shotwell/src/dialogs/Preferences.vala"
g_object_ref_sink (_tmp1_);
#line 283 "/home/jens/Source/shotwell/src/dialogs/Preferences.vala"
_g_object_unref0 (preferences_dialog_preferences_dialog);
#line 283 "/home/jens/Source/shotwell/src/dialogs/Preferences.vala"
preferences_dialog_preferences_dialog = _tmp1_;
#line 1788 "Preferences.c"
}
#line 285 "/home/jens/Source/shotwell/src/dialogs/Preferences.vala"
_tmp2_ = preferences_dialog_preferences_dialog;
#line 285 "/home/jens/Source/shotwell/src/dialogs/Preferences.vala"
preferences_dialog_populate_preference_options (_tmp2_);
#line 286 "/home/jens/Source/shotwell/src/dialogs/Preferences.vala"
_tmp3_ = preferences_dialog_preferences_dialog;
#line 286 "/home/jens/Source/shotwell/src/dialogs/Preferences.vala"
gtk_widget_show_all (G_TYPE_CHECK_INSTANCE_CAST (_tmp3_, gtk_widget_get_type (), GtkWidget));
#line 287 "/home/jens/Source/shotwell/src/dialogs/Preferences.vala"
_tmp4_ = preferences_dialog_preferences_dialog;
#line 287 "/home/jens/Source/shotwell/src/dialogs/Preferences.vala"
_tmp5_ = _tmp4_->priv->library_dir_button;
#line 287 "/home/jens/Source/shotwell/src/dialogs/Preferences.vala"
_tmp6_ = app_dirs_get_import_dir ();
#line 287 "/home/jens/Source/shotwell/src/dialogs/Preferences.vala"
_tmp7_ = _tmp6_;
#line 287 "/home/jens/Source/shotwell/src/dialogs/Preferences.vala"
_tmp8_ = g_file_get_path (_tmp7_);
#line 287 "/home/jens/Source/shotwell/src/dialogs/Preferences.vala"
_tmp9_ = _tmp8_;
#line 287 "/home/jens/Source/shotwell/src/dialogs/Preferences.vala"
gtk_file_chooser_set_current_folder (G_TYPE_CHECK_INSTANCE_CAST (_tmp5_, GTK_TYPE_FILE_CHOOSER, GtkFileChooser), _tmp9_);
#line 287 "/home/jens/Source/shotwell/src/dialogs/Preferences.vala"
_g_free0 (_tmp9_);
#line 287 "/home/jens/Source/shotwell/src/dialogs/Preferences.vala"
_g_object_unref0 (_tmp7_);
#line 291 "/home/jens/Source/shotwell/src/dialogs/Preferences.vala"
_tmp10_ = preferences_dialog_preferences_dialog;
#line 291 "/home/jens/Source/shotwell/src/dialogs/Preferences.vala"
gtk_window_present (G_TYPE_CHECK_INSTANCE_CAST (_tmp10_, gtk_window_get_type (), GtkWindow));
#line 1820 "Preferences.c"
}
static void preferences_dialog_commit_on_close (PreferencesDialog* self) {
ConfigFacade* _tmp0_;
ConfigFacade* _tmp1_;
ConfigFacade* _tmp2_;
ConfigFacade* _tmp3_;
GtkCheckButton* _tmp4_;
gboolean _tmp5_;
gboolean _tmp6_;
ConfigFacade* _tmp7_;
ConfigFacade* _tmp8_;
GtkCheckButton* _tmp9_;
gboolean _tmp10_;
gboolean _tmp11_;
const gchar* _tmp12_;
PreferencesDialogPathFormat* pf = NULL;
GeeArrayList* _tmp14_;
GtkComboBoxText* _tmp15_;
gint _tmp16_;
gpointer _tmp17_;
PreferencesDialogPathFormat* _tmp18_;
const gchar* _tmp19_;
#line 296 "/home/jens/Source/shotwell/src/dialogs/Preferences.vala"
g_return_if_fail (IS_PREFERENCES_DIALOG (self));
#line 297 "/home/jens/Source/shotwell/src/dialogs/Preferences.vala"
_tmp0_ = config_facade_get_instance ();
#line 297 "/home/jens/Source/shotwell/src/dialogs/Preferences.vala"
_tmp1_ = _tmp0_;
#line 297 "/home/jens/Source/shotwell/src/dialogs/Preferences.vala"
config_facade_commit_bg_color (_tmp1_);
#line 297 "/home/jens/Source/shotwell/src/dialogs/Preferences.vala"
_g_object_unref0 (_tmp1_);
#line 298 "/home/jens/Source/shotwell/src/dialogs/Preferences.vala"
_tmp2_ = config_facade_get_instance ();
#line 298 "/home/jens/Source/shotwell/src/dialogs/Preferences.vala"
_tmp3_ = _tmp2_;
#line 298 "/home/jens/Source/shotwell/src/dialogs/Preferences.vala"
_tmp4_ = self->priv->autoimport;
#line 298 "/home/jens/Source/shotwell/src/dialogs/Preferences.vala"
_tmp5_ = gtk_toggle_button_get_active (G_TYPE_CHECK_INSTANCE_CAST (_tmp4_, gtk_toggle_button_get_type (), GtkToggleButton));
#line 298 "/home/jens/Source/shotwell/src/dialogs/Preferences.vala"
_tmp6_ = _tmp5_;
#line 298 "/home/jens/Source/shotwell/src/dialogs/Preferences.vala"
configuration_facade_set_auto_import_from_library (G_TYPE_CHECK_INSTANCE_CAST (_tmp3_, TYPE_CONFIGURATION_FACADE, ConfigurationFacade), _tmp6_);
#line 298 "/home/jens/Source/shotwell/src/dialogs/Preferences.vala"
_g_object_unref0 (_tmp3_);
#line 299 "/home/jens/Source/shotwell/src/dialogs/Preferences.vala"
_tmp7_ = config_facade_get_instance ();
#line 299 "/home/jens/Source/shotwell/src/dialogs/Preferences.vala"
_tmp8_ = _tmp7_;
#line 299 "/home/jens/Source/shotwell/src/dialogs/Preferences.vala"
_tmp9_ = self->priv->write_metadata;
#line 299 "/home/jens/Source/shotwell/src/dialogs/Preferences.vala"
_tmp10_ = gtk_toggle_button_get_active (G_TYPE_CHECK_INSTANCE_CAST (_tmp9_, gtk_toggle_button_get_type (), GtkToggleButton));
#line 299 "/home/jens/Source/shotwell/src/dialogs/Preferences.vala"
_tmp11_ = _tmp10_;
#line 299 "/home/jens/Source/shotwell/src/dialogs/Preferences.vala"
configuration_facade_set_commit_metadata_to_masters (G_TYPE_CHECK_INSTANCE_CAST (_tmp8_, TYPE_CONFIGURATION_FACADE, ConfigurationFacade), _tmp11_);
#line 299 "/home/jens/Source/shotwell/src/dialogs/Preferences.vala"
_g_object_unref0 (_tmp8_);
#line 301 "/home/jens/Source/shotwell/src/dialogs/Preferences.vala"
_tmp12_ = self->priv->lib_dir;
#line 301 "/home/jens/Source/shotwell/src/dialogs/Preferences.vala"
if (_tmp12_ != NULL) {
#line 1887 "Preferences.c"
const gchar* _tmp13_;
#line 302 "/home/jens/Source/shotwell/src/dialogs/Preferences.vala"
_tmp13_ = self->priv->lib_dir;
#line 302 "/home/jens/Source/shotwell/src/dialogs/Preferences.vala"
app_dirs_set_import_dir (_tmp13_);
#line 1893 "Preferences.c"
}
#line 304 "/home/jens/Source/shotwell/src/dialogs/Preferences.vala"
_tmp14_ = self->priv->path_formats;
#line 304 "/home/jens/Source/shotwell/src/dialogs/Preferences.vala"
_tmp15_ = self->priv->dir_pattern_combo;
#line 304 "/home/jens/Source/shotwell/src/dialogs/Preferences.vala"
_tmp16_ = gtk_combo_box_get_active (G_TYPE_CHECK_INSTANCE_CAST (_tmp15_, gtk_combo_box_get_type (), GtkComboBox));
#line 304 "/home/jens/Source/shotwell/src/dialogs/Preferences.vala"
_tmp17_ = gee_abstract_list_get (G_TYPE_CHECK_INSTANCE_CAST (_tmp14_, GEE_TYPE_ABSTRACT_LIST, GeeAbstractList), _tmp16_);
#line 304 "/home/jens/Source/shotwell/src/dialogs/Preferences.vala"
pf = (PreferencesDialogPathFormat*) _tmp17_;
#line 305 "/home/jens/Source/shotwell/src/dialogs/Preferences.vala"
_tmp18_ = pf;
#line 305 "/home/jens/Source/shotwell/src/dialogs/Preferences.vala"
_tmp19_ = _tmp18_->pattern;
#line 305 "/home/jens/Source/shotwell/src/dialogs/Preferences.vala"
if (NULL == _tmp19_) {
#line 1911 "Preferences.c"
ConfigFacade* _tmp20_;
ConfigFacade* _tmp21_;
GtkEntry* _tmp22_;
const gchar* _tmp23_;
const gchar* _tmp24_;
ConfigFacade* _tmp25_;
ConfigFacade* _tmp26_;
#line 306 "/home/jens/Source/shotwell/src/dialogs/Preferences.vala"
_tmp20_ = config_facade_get_instance ();
#line 306 "/home/jens/Source/shotwell/src/dialogs/Preferences.vala"
_tmp21_ = _tmp20_;
#line 306 "/home/jens/Source/shotwell/src/dialogs/Preferences.vala"
_tmp22_ = self->priv->dir_pattern_entry;
#line 306 "/home/jens/Source/shotwell/src/dialogs/Preferences.vala"
_tmp23_ = gtk_entry_get_text (_tmp22_);
#line 306 "/home/jens/Source/shotwell/src/dialogs/Preferences.vala"
_tmp24_ = _tmp23_;
#line 306 "/home/jens/Source/shotwell/src/dialogs/Preferences.vala"
configuration_facade_set_directory_pattern_custom (G_TYPE_CHECK_INSTANCE_CAST (_tmp21_, TYPE_CONFIGURATION_FACADE, ConfigurationFacade), _tmp24_);
#line 306 "/home/jens/Source/shotwell/src/dialogs/Preferences.vala"
_g_object_unref0 (_tmp21_);
#line 307 "/home/jens/Source/shotwell/src/dialogs/Preferences.vala"
_tmp25_ = config_facade_get_instance ();
#line 307 "/home/jens/Source/shotwell/src/dialogs/Preferences.vala"
_tmp26_ = _tmp25_;
#line 307 "/home/jens/Source/shotwell/src/dialogs/Preferences.vala"
configuration_facade_set_directory_pattern (G_TYPE_CHECK_INSTANCE_CAST (_tmp26_, TYPE_CONFIGURATION_FACADE, ConfigurationFacade), NULL);
#line 307 "/home/jens/Source/shotwell/src/dialogs/Preferences.vala"
_g_object_unref0 (_tmp26_);
#line 1941 "Preferences.c"
} else {
ConfigFacade* _tmp27_;
ConfigFacade* _tmp28_;
PreferencesDialogPathFormat* _tmp29_;
const gchar* _tmp30_;
#line 309 "/home/jens/Source/shotwell/src/dialogs/Preferences.vala"
_tmp27_ = config_facade_get_instance ();
#line 309 "/home/jens/Source/shotwell/src/dialogs/Preferences.vala"
_tmp28_ = _tmp27_;
#line 309 "/home/jens/Source/shotwell/src/dialogs/Preferences.vala"
_tmp29_ = pf;
#line 309 "/home/jens/Source/shotwell/src/dialogs/Preferences.vala"
_tmp30_ = _tmp29_->pattern;
#line 309 "/home/jens/Source/shotwell/src/dialogs/Preferences.vala"
configuration_facade_set_directory_pattern (G_TYPE_CHECK_INSTANCE_CAST (_tmp28_, TYPE_CONFIGURATION_FACADE, ConfigurationFacade), _tmp30_);
#line 309 "/home/jens/Source/shotwell/src/dialogs/Preferences.vala"
_g_object_unref0 (_tmp28_);
#line 1959 "Preferences.c"
}
#line 296 "/home/jens/Source/shotwell/src/dialogs/Preferences.vala"
_preferences_dialog_path_format_unref0 (pf);
#line 1963 "Preferences.c"
}
static gboolean preferences_dialog_on_delete (PreferencesDialog* self) {
gboolean result = FALSE;
gboolean _tmp0_;
gboolean _tmp1_;
#line 313 "/home/jens/Source/shotwell/src/dialogs/Preferences.vala"
g_return_val_if_fail (IS_PREFERENCES_DIALOG (self), FALSE);
#line 314 "/home/jens/Source/shotwell/src/dialogs/Preferences.vala"
_tmp0_ = preferences_dialog_get_allow_closing (self);
#line 314 "/home/jens/Source/shotwell/src/dialogs/Preferences.vala"
if (!_tmp0_) {
#line 315 "/home/jens/Source/shotwell/src/dialogs/Preferences.vala"
result = TRUE;
#line 315 "/home/jens/Source/shotwell/src/dialogs/Preferences.vala"
return result;
#line 1981 "Preferences.c"
}
#line 317 "/home/jens/Source/shotwell/src/dialogs/Preferences.vala"
preferences_dialog_commit_on_close (self);
#line 318 "/home/jens/Source/shotwell/src/dialogs/Preferences.vala"
_tmp1_ = gtk_widget_hide_on_delete (G_TYPE_CHECK_INSTANCE_CAST (self, gtk_widget_get_type (), GtkWidget));
#line 318 "/home/jens/Source/shotwell/src/dialogs/Preferences.vala"
result = _tmp1_;
#line 318 "/home/jens/Source/shotwell/src/dialogs/Preferences.vala"
return result;
#line 1991 "Preferences.c"
}
static void preferences_dialog_on_close (PreferencesDialog* self) {
gboolean _tmp0_;
#line 321 "/home/jens/Source/shotwell/src/dialogs/Preferences.vala"
g_return_if_fail (IS_PREFERENCES_DIALOG (self));
#line 322 "/home/jens/Source/shotwell/src/dialogs/Preferences.vala"
_tmp0_ = preferences_dialog_get_allow_closing (self);
#line 322 "/home/jens/Source/shotwell/src/dialogs/Preferences.vala"
if (!_tmp0_) {
#line 323 "/home/jens/Source/shotwell/src/dialogs/Preferences.vala"
return;
#line 2005 "Preferences.c"
}
#line 325 "/home/jens/Source/shotwell/src/dialogs/Preferences.vala"
gtk_widget_hide (G_TYPE_CHECK_INSTANCE_CAST (self, gtk_widget_get_type (), GtkWidget));
#line 326 "/home/jens/Source/shotwell/src/dialogs/Preferences.vala"
preferences_dialog_commit_on_close (self);
#line 2011 "Preferences.c"
}
static void preferences_dialog_on_value_changed (PreferencesDialog* self) {
GtkAdjustment* _tmp0_;
gdouble _tmp1_;
GtkAdjustment* _tmp2_;
gdouble _tmp3_;
#line 329 "/home/jens/Source/shotwell/src/dialogs/Preferences.vala"
g_return_if_fail (IS_PREFERENCES_DIALOG (self));
#line 330 "/home/jens/Source/shotwell/src/dialogs/Preferences.vala"
_tmp0_ = self->priv->bg_color_adjustment;
#line 330 "/home/jens/Source/shotwell/src/dialogs/Preferences.vala"
_tmp1_ = gtk_adjustment_get_upper (_tmp0_);
#line 330 "/home/jens/Source/shotwell/src/dialogs/Preferences.vala"
_tmp2_ = self->priv->bg_color_adjustment;
#line 330 "/home/jens/Source/shotwell/src/dialogs/Preferences.vala"
_tmp3_ = gtk_adjustment_get_value (_tmp2_);
#line 330 "/home/jens/Source/shotwell/src/dialogs/Preferences.vala"
preferences_dialog_set_background_color (self, ((gdouble) (_tmp1_ - _tmp3_)) / 65535.0);
#line 2032 "Preferences.c"
}
static gboolean preferences_dialog_on_bg_color_reset (PreferencesDialog* self, GdkEventButton* event) {
gboolean result = FALSE;
gboolean _tmp0_ = FALSE;
gboolean _tmp1_ = FALSE;
GdkEventButton* _tmp2_;
guint _tmp3_;
#line 334 "/home/jens/Source/shotwell/src/dialogs/Preferences.vala"
g_return_val_if_fail (IS_PREFERENCES_DIALOG (self), FALSE);
#line 334 "/home/jens/Source/shotwell/src/dialogs/Preferences.vala"
g_return_val_if_fail (event != NULL, FALSE);
#line 335 "/home/jens/Source/shotwell/src/dialogs/Preferences.vala"
_tmp2_ = event;
#line 335 "/home/jens/Source/shotwell/src/dialogs/Preferences.vala"
_tmp3_ = _tmp2_->button;
#line 335 "/home/jens/Source/shotwell/src/dialogs/Preferences.vala"
if (_tmp3_ == ((guint) 1)) {
#line 2052 "Preferences.c"
GdkEventButton* _tmp4_;
GdkEventType _tmp5_;
#line 335 "/home/jens/Source/shotwell/src/dialogs/Preferences.vala"
_tmp4_ = event;
#line 335 "/home/jens/Source/shotwell/src/dialogs/Preferences.vala"
_tmp5_ = _tmp4_->type;
#line 335 "/home/jens/Source/shotwell/src/dialogs/Preferences.vala"
_tmp1_ = _tmp5_ == GDK_BUTTON_PRESS;
#line 2061 "Preferences.c"
} else {
#line 335 "/home/jens/Source/shotwell/src/dialogs/Preferences.vala"
_tmp1_ = FALSE;
#line 2065 "Preferences.c"
}
#line 335 "/home/jens/Source/shotwell/src/dialogs/Preferences.vala"
if (_tmp1_) {
#line 2069 "Preferences.c"
GdkEventButton* _tmp6_;
GdkModifierType _tmp7_;
gboolean _tmp8_;
#line 336 "/home/jens/Source/shotwell/src/dialogs/Preferences.vala"
_tmp6_ = event;
#line 336 "/home/jens/Source/shotwell/src/dialogs/Preferences.vala"
_tmp7_ = _tmp6_->state;
#line 336 "/home/jens/Source/shotwell/src/dialogs/Preferences.vala"
_tmp8_ = has_only_key_modifier (_tmp7_, GDK_CONTROL_MASK);
#line 336 "/home/jens/Source/shotwell/src/dialogs/Preferences.vala"
_tmp0_ = _tmp8_;
#line 2081 "Preferences.c"
} else {
#line 335 "/home/jens/Source/shotwell/src/dialogs/Preferences.vala"
_tmp0_ = FALSE;
#line 2085 "Preferences.c"
}
#line 335 "/home/jens/Source/shotwell/src/dialogs/Preferences.vala"
if (_tmp0_) {
#line 2089 "Preferences.c"
GtkScale* _tmp9_;
GtkAdjustment* _tmp10_;
gdouble _tmp11_;
GdkRGBA _tmp12_ = {0};
gdouble _tmp13_;
#line 338 "/home/jens/Source/shotwell/src/dialogs/Preferences.vala"
_tmp9_ = self->priv->bg_color_slider;
#line 338 "/home/jens/Source/shotwell/src/dialogs/Preferences.vala"
_tmp10_ = self->priv->bg_color_adjustment;
#line 338 "/home/jens/Source/shotwell/src/dialogs/Preferences.vala"
_tmp11_ = gtk_adjustment_get_upper (_tmp10_);
#line 338 "/home/jens/Source/shotwell/src/dialogs/Preferences.vala"
parse_color (CONFIG_FACADE_DEFAULT_BG_COLOR, &_tmp12_);
#line 338 "/home/jens/Source/shotwell/src/dialogs/Preferences.vala"
_tmp13_ = _tmp12_.red;
#line 338 "/home/jens/Source/shotwell/src/dialogs/Preferences.vala"
gtk_range_set_value (G_TYPE_CHECK_INSTANCE_CAST (_tmp9_, gtk_range_get_type (), GtkRange), _tmp11_ - (_tmp13_ * 65536.0f));
#line 340 "/home/jens/Source/shotwell/src/dialogs/Preferences.vala"
preferences_dialog_on_value_changed (self);
#line 342 "/home/jens/Source/shotwell/src/dialogs/Preferences.vala"
result = TRUE;
#line 342 "/home/jens/Source/shotwell/src/dialogs/Preferences.vala"
return result;
#line 2113 "Preferences.c"
}
#line 345 "/home/jens/Source/shotwell/src/dialogs/Preferences.vala"
result = FALSE;
#line 345 "/home/jens/Source/shotwell/src/dialogs/Preferences.vala"
return result;
#line 2119 "Preferences.c"
}
static void preferences_dialog_on_dir_pattern_combo_changed (PreferencesDialog* self) {
PreferencesDialogPathFormat* pf = NULL;
GeeArrayList* _tmp0_;
GtkComboBoxText* _tmp1_;
gint _tmp2_;
gpointer _tmp3_;
PreferencesDialogPathFormat* _tmp4_;
const gchar* _tmp5_;
#line 348 "/home/jens/Source/shotwell/src/dialogs/Preferences.vala"
g_return_if_fail (IS_PREFERENCES_DIALOG (self));
#line 349 "/home/jens/Source/shotwell/src/dialogs/Preferences.vala"
_tmp0_ = self->priv->path_formats;
#line 349 "/home/jens/Source/shotwell/src/dialogs/Preferences.vala"
_tmp1_ = self->priv->dir_pattern_combo;
#line 349 "/home/jens/Source/shotwell/src/dialogs/Preferences.vala"
_tmp2_ = gtk_combo_box_get_active (G_TYPE_CHECK_INSTANCE_CAST (_tmp1_, gtk_combo_box_get_type (), GtkComboBox));
#line 349 "/home/jens/Source/shotwell/src/dialogs/Preferences.vala"
_tmp3_ = gee_abstract_list_get (G_TYPE_CHECK_INSTANCE_CAST (_tmp0_, GEE_TYPE_ABSTRACT_LIST, GeeAbstractList), _tmp2_);
#line 349 "/home/jens/Source/shotwell/src/dialogs/Preferences.vala"
pf = (PreferencesDialogPathFormat*) _tmp3_;
#line 350 "/home/jens/Source/shotwell/src/dialogs/Preferences.vala"
_tmp4_ = pf;
#line 350 "/home/jens/Source/shotwell/src/dialogs/Preferences.vala"
_tmp5_ = _tmp4_->pattern;
#line 350 "/home/jens/Source/shotwell/src/dialogs/Preferences.vala"
if (NULL == _tmp5_) {
#line 2149 "Preferences.c"
gchar* dir_pattern = NULL;
ConfigFacade* _tmp6_;
ConfigFacade* _tmp7_;
gchar* _tmp8_;
gchar* _tmp9_;
const gchar* _tmp10_;
gboolean _tmp11_;
GtkEntry* _tmp13_;
const gchar* _tmp14_;
GtkEntry* _tmp15_;
GtkEntry* _tmp16_;
#line 352 "/home/jens/Source/shotwell/src/dialogs/Preferences.vala"
_tmp6_ = config_facade_get_instance ();
#line 352 "/home/jens/Source/shotwell/src/dialogs/Preferences.vala"
_tmp7_ = _tmp6_;
#line 352 "/home/jens/Source/shotwell/src/dialogs/Preferences.vala"
_tmp8_ = configuration_facade_get_directory_pattern_custom (G_TYPE_CHECK_INSTANCE_CAST (_tmp7_, TYPE_CONFIGURATION_FACADE, ConfigurationFacade));
#line 352 "/home/jens/Source/shotwell/src/dialogs/Preferences.vala"
_tmp9_ = _tmp8_;
#line 352 "/home/jens/Source/shotwell/src/dialogs/Preferences.vala"
_g_object_unref0 (_tmp7_);
#line 352 "/home/jens/Source/shotwell/src/dialogs/Preferences.vala"
dir_pattern = _tmp9_;
#line 353 "/home/jens/Source/shotwell/src/dialogs/Preferences.vala"
_tmp10_ = dir_pattern;
#line 353 "/home/jens/Source/shotwell/src/dialogs/Preferences.vala"
_tmp11_ = is_string_empty (_tmp10_);
#line 353 "/home/jens/Source/shotwell/src/dialogs/Preferences.vala"
if (_tmp11_) {
#line 2179 "Preferences.c"
gchar* _tmp12_;
#line 354 "/home/jens/Source/shotwell/src/dialogs/Preferences.vala"
_tmp12_ = g_strdup ("");
#line 354 "/home/jens/Source/shotwell/src/dialogs/Preferences.vala"
_g_free0 (dir_pattern);
#line 354 "/home/jens/Source/shotwell/src/dialogs/Preferences.vala"
dir_pattern = _tmp12_;
#line 2187 "Preferences.c"
}
#line 355 "/home/jens/Source/shotwell/src/dialogs/Preferences.vala"
_tmp13_ = self->priv->dir_pattern_entry;
#line 355 "/home/jens/Source/shotwell/src/dialogs/Preferences.vala"
_tmp14_ = dir_pattern;
#line 355 "/home/jens/Source/shotwell/src/dialogs/Preferences.vala"
gtk_entry_set_text (_tmp13_, _tmp14_);
#line 356 "/home/jens/Source/shotwell/src/dialogs/Preferences.vala"
_tmp15_ = self->priv->dir_pattern_entry;
#line 356 "/home/jens/Source/shotwell/src/dialogs/Preferences.vala"
g_object_set (_tmp15_, "editable", TRUE, NULL);
#line 357 "/home/jens/Source/shotwell/src/dialogs/Preferences.vala"
_tmp16_ = self->priv->dir_pattern_entry;
#line 357 "/home/jens/Source/shotwell/src/dialogs/Preferences.vala"
gtk_widget_set_sensitive (G_TYPE_CHECK_INSTANCE_CAST (_tmp16_, gtk_widget_get_type (), GtkWidget), TRUE);
#line 350 "/home/jens/Source/shotwell/src/dialogs/Preferences.vala"
_g_free0 (dir_pattern);
#line 2205 "Preferences.c"
} else {
GtkEntry* _tmp17_;
PreferencesDialogPathFormat* _tmp18_;
const gchar* _tmp19_;
GtkEntry* _tmp20_;
GtkEntry* _tmp21_;
#line 359 "/home/jens/Source/shotwell/src/dialogs/Preferences.vala"
_tmp17_ = self->priv->dir_pattern_entry;
#line 359 "/home/jens/Source/shotwell/src/dialogs/Preferences.vala"
_tmp18_ = pf;
#line 359 "/home/jens/Source/shotwell/src/dialogs/Preferences.vala"
_tmp19_ = _tmp18_->pattern;
#line 359 "/home/jens/Source/shotwell/src/dialogs/Preferences.vala"
gtk_entry_set_text (_tmp17_, _tmp19_);
#line 360 "/home/jens/Source/shotwell/src/dialogs/Preferences.vala"
_tmp20_ = self->priv->dir_pattern_entry;
#line 360 "/home/jens/Source/shotwell/src/dialogs/Preferences.vala"
g_object_set (_tmp20_, "editable", FALSE, NULL);
#line 361 "/home/jens/Source/shotwell/src/dialogs/Preferences.vala"
_tmp21_ = self->priv->dir_pattern_entry;
#line 361 "/home/jens/Source/shotwell/src/dialogs/Preferences.vala"
gtk_widget_set_sensitive (G_TYPE_CHECK_INSTANCE_CAST (_tmp21_, gtk_widget_get_type (), GtkWidget), FALSE);
#line 2228 "Preferences.c"
}
#line 348 "/home/jens/Source/shotwell/src/dialogs/Preferences.vala"
_preferences_dialog_path_format_unref0 (pf);
#line 2232 "Preferences.c"
}
static void preferences_dialog_on_dir_pattern_entry_changed (PreferencesDialog* self) {
gchar* example = NULL;
GDateTime* _tmp0_;
GtkEntry* _tmp1_;
const gchar* _tmp2_;
const gchar* _tmp3_;
gchar* _tmp4_;
gboolean _tmp5_ = FALSE;
const gchar* _tmp6_;
gboolean _tmp7_;
#line 365 "/home/jens/Source/shotwell/src/dialogs/Preferences.vala"
g_return_if_fail (IS_PREFERENCES_DIALOG (self));
#line 366 "/home/jens/Source/shotwell/src/dialogs/Preferences.vala"
_tmp0_ = self->priv->example_date;
#line 366 "/home/jens/Source/shotwell/src/dialogs/Preferences.vala"
_tmp1_ = self->priv->dir_pattern_entry;
#line 366 "/home/jens/Source/shotwell/src/dialogs/Preferences.vala"
_tmp2_ = gtk_entry_get_text (_tmp1_);
#line 366 "/home/jens/Source/shotwell/src/dialogs/Preferences.vala"
_tmp3_ = _tmp2_;
#line 366 "/home/jens/Source/shotwell/src/dialogs/Preferences.vala"
_tmp4_ = g_date_time_format (_tmp0_, _tmp3_);
#line 366 "/home/jens/Source/shotwell/src/dialogs/Preferences.vala"
example = _tmp4_;
#line 367 "/home/jens/Source/shotwell/src/dialogs/Preferences.vala"
_tmp6_ = example;
#line 367 "/home/jens/Source/shotwell/src/dialogs/Preferences.vala"
_tmp7_ = is_string_empty (_tmp6_);
#line 367 "/home/jens/Source/shotwell/src/dialogs/Preferences.vala"
if (_tmp7_) {
#line 2266 "Preferences.c"
GtkEntry* _tmp8_;
const gchar* _tmp9_;
const gchar* _tmp10_;
gboolean _tmp11_;
#line 367 "/home/jens/Source/shotwell/src/dialogs/Preferences.vala"
_tmp8_ = self->priv->dir_pattern_entry;
#line 367 "/home/jens/Source/shotwell/src/dialogs/Preferences.vala"
_tmp9_ = gtk_entry_get_text (_tmp8_);
#line 367 "/home/jens/Source/shotwell/src/dialogs/Preferences.vala"
_tmp10_ = _tmp9_;
#line 367 "/home/jens/Source/shotwell/src/dialogs/Preferences.vala"
_tmp11_ = is_string_empty (_tmp10_);
#line 367 "/home/jens/Source/shotwell/src/dialogs/Preferences.vala"
_tmp5_ = !_tmp11_;
#line 2281 "Preferences.c"
} else {
#line 367 "/home/jens/Source/shotwell/src/dialogs/Preferences.vala"
_tmp5_ = FALSE;
#line 2285 "Preferences.c"
}
#line 367 "/home/jens/Source/shotwell/src/dialogs/Preferences.vala"
if (_tmp5_) {
#line 2289 "Preferences.c"
GtkLabel* _tmp12_;
GtkEntry* _tmp13_;
GtkEntry* _tmp14_;
#line 369 "/home/jens/Source/shotwell/src/dialogs/Preferences.vala"
_tmp12_ = self->priv->dir_pattern_example;
#line 369 "/home/jens/Source/shotwell/src/dialogs/Preferences.vala"
gtk_label_set_text (_tmp12_, _ ("Invalid pattern"));
#line 370 "/home/jens/Source/shotwell/src/dialogs/Preferences.vala"
_tmp13_ = self->priv->dir_pattern_entry;
#line 370 "/home/jens/Source/shotwell/src/dialogs/Preferences.vala"
gtk_entry_set_icon_from_icon_name (_tmp13_, GTK_ENTRY_ICON_SECONDARY, "dialog-error");
#line 371 "/home/jens/Source/shotwell/src/dialogs/Preferences.vala"
_tmp14_ = self->priv->dir_pattern_entry;
#line 371 "/home/jens/Source/shotwell/src/dialogs/Preferences.vala"
gtk_entry_set_icon_activatable (_tmp14_, GTK_ENTRY_ICON_SECONDARY, FALSE);
#line 372 "/home/jens/Source/shotwell/src/dialogs/Preferences.vala"
preferences_dialog_set_allow_closing (self, FALSE);
#line 2307 "Preferences.c"
} else {
GtkLabel* _tmp15_;
const gchar* _tmp16_;
GtkEntry* _tmp17_;
#line 375 "/home/jens/Source/shotwell/src/dialogs/Preferences.vala"
_tmp15_ = self->priv->dir_pattern_example;
#line 375 "/home/jens/Source/shotwell/src/dialogs/Preferences.vala"
_tmp16_ = example;
#line 375 "/home/jens/Source/shotwell/src/dialogs/Preferences.vala"
gtk_label_set_text (_tmp15_, _tmp16_);
#line 376 "/home/jens/Source/shotwell/src/dialogs/Preferences.vala"
_tmp17_ = self->priv->dir_pattern_entry;
#line 376 "/home/jens/Source/shotwell/src/dialogs/Preferences.vala"
gtk_entry_set_icon_from_icon_name (_tmp17_, GTK_ENTRY_ICON_SECONDARY, NULL);
#line 377 "/home/jens/Source/shotwell/src/dialogs/Preferences.vala"
preferences_dialog_set_allow_closing (self, TRUE);
#line 2324 "Preferences.c"
}
#line 365 "/home/jens/Source/shotwell/src/dialogs/Preferences.vala"
_g_free0 (example);
#line 2328 "Preferences.c"
}
static void preferences_dialog_set_allow_closing (PreferencesDialog* self, gboolean allow) {
gboolean _tmp0_;
gboolean _tmp1_;
#line 381 "/home/jens/Source/shotwell/src/dialogs/Preferences.vala"
g_return_if_fail (IS_PREFERENCES_DIALOG (self));
#line 382 "/home/jens/Source/shotwell/src/dialogs/Preferences.vala"
_tmp0_ = allow;
#line 382 "/home/jens/Source/shotwell/src/dialogs/Preferences.vala"
gtk_window_set_deletable (G_TYPE_CHECK_INSTANCE_CAST (self, gtk_window_get_type (), GtkWindow), _tmp0_);
#line 383 "/home/jens/Source/shotwell/src/dialogs/Preferences.vala"
_tmp1_ = allow;
#line 383 "/home/jens/Source/shotwell/src/dialogs/Preferences.vala"
self->priv->allow_closing = _tmp1_;
#line 2345 "Preferences.c"
}
static gboolean preferences_dialog_get_allow_closing (PreferencesDialog* self) {
gboolean result = FALSE;
gboolean _tmp0_;
#line 386 "/home/jens/Source/shotwell/src/dialogs/Preferences.vala"
g_return_val_if_fail (IS_PREFERENCES_DIALOG (self), FALSE);
#line 387 "/home/jens/Source/shotwell/src/dialogs/Preferences.vala"
_tmp0_ = self->priv->allow_closing;
#line 387 "/home/jens/Source/shotwell/src/dialogs/Preferences.vala"
result = _tmp0_;
#line 387 "/home/jens/Source/shotwell/src/dialogs/Preferences.vala"
return result;
#line 2360 "Preferences.c"
}
static void preferences_dialog_set_background_color (PreferencesDialog* self, gdouble bg_color_value) {
ConfigFacade* _tmp0_;
ConfigFacade* _tmp1_;
gdouble _tmp2_;
GdkRGBA _tmp3_ = {0};
#line 390 "/home/jens/Source/shotwell/src/dialogs/Preferences.vala"
g_return_if_fail (IS_PREFERENCES_DIALOG (self));
#line 391 "/home/jens/Source/shotwell/src/dialogs/Preferences.vala"
_tmp0_ = config_facade_get_instance ();
#line 391 "/home/jens/Source/shotwell/src/dialogs/Preferences.vala"
_tmp1_ = _tmp0_;
#line 391 "/home/jens/Source/shotwell/src/dialogs/Preferences.vala"
_tmp2_ = bg_color_value;
#line 391 "/home/jens/Source/shotwell/src/dialogs/Preferences.vala"
preferences_dialog_to_grayscale (self, _tmp2_, &_tmp3_);
#line 391 "/home/jens/Source/shotwell/src/dialogs/Preferences.vala"
config_facade_set_bg_color (_tmp1_, &_tmp3_);
#line 391 "/home/jens/Source/shotwell/src/dialogs/Preferences.vala"
_g_object_unref0 (_tmp1_);
#line 2383 "Preferences.c"
}
static void preferences_dialog_to_grayscale (PreferencesDialog* self, gdouble color_value, GdkRGBA* result) {
GdkRGBA color = {0};
gdouble _tmp0_;
gdouble _tmp1_;
gdouble _tmp2_;
#line 394 "/home/jens/Source/shotwell/src/dialogs/Preferences.vala"
g_return_if_fail (IS_PREFERENCES_DIALOG (self));
#line 395 "/home/jens/Source/shotwell/src/dialogs/Preferences.vala"
memset (&color, 0, sizeof (GdkRGBA));
#line 397 "/home/jens/Source/shotwell/src/dialogs/Preferences.vala"
_tmp0_ = color_value;
#line 397 "/home/jens/Source/shotwell/src/dialogs/Preferences.vala"
color.red = _tmp0_;
#line 398 "/home/jens/Source/shotwell/src/dialogs/Preferences.vala"
_tmp1_ = color_value;
#line 398 "/home/jens/Source/shotwell/src/dialogs/Preferences.vala"
color.green = _tmp1_;
#line 399 "/home/jens/Source/shotwell/src/dialogs/Preferences.vala"
_tmp2_ = color_value;
#line 399 "/home/jens/Source/shotwell/src/dialogs/Preferences.vala"
color.blue = _tmp2_;
#line 400 "/home/jens/Source/shotwell/src/dialogs/Preferences.vala"
color.alpha = 1.0;
#line 402 "/home/jens/Source/shotwell/src/dialogs/Preferences.vala"
*result = color;
#line 402 "/home/jens/Source/shotwell/src/dialogs/Preferences.vala"
return;
#line 2414 "Preferences.c"
}
static void preferences_dialog_on_photo_editor_changed (PreferencesDialog* self) {
gint _tmp0_ = 0;
GtkComboBox* _tmp1_;
gint _tmp2_;
SortedList* _tmp3_;
gint _tmp4_;
gint _tmp5_;
gint photo_app_choice_index = 0;
GAppInfo* app = NULL;
SortedList* _tmp11_;
gpointer _tmp12_;
ConfigFacade* _tmp13_;
ConfigFacade* _tmp14_;
gchar* _tmp15_;
gchar* _tmp16_;
gchar* _tmp17_;
gchar* _tmp18_;
#line 405 "/home/jens/Source/shotwell/src/dialogs/Preferences.vala"
g_return_if_fail (IS_PREFERENCES_DIALOG (self));
#line 406 "/home/jens/Source/shotwell/src/dialogs/Preferences.vala"
_tmp1_ = self->priv->photo_editor_combo;
#line 406 "/home/jens/Source/shotwell/src/dialogs/Preferences.vala"
_tmp2_ = gtk_combo_box_get_active (_tmp1_);
#line 406 "/home/jens/Source/shotwell/src/dialogs/Preferences.vala"
_tmp3_ = self->priv->external_photo_apps;
#line 406 "/home/jens/Source/shotwell/src/dialogs/Preferences.vala"
_tmp4_ = gee_collection_get_size (G_TYPE_CHECK_INSTANCE_CAST (_tmp3_, GEE_TYPE_COLLECTION, GeeCollection));
#line 406 "/home/jens/Source/shotwell/src/dialogs/Preferences.vala"
_tmp5_ = _tmp4_;
#line 406 "/home/jens/Source/shotwell/src/dialogs/Preferences.vala"
if (_tmp2_ < _tmp5_) {
#line 2449 "Preferences.c"
GtkComboBox* _tmp6_;
gint _tmp7_;
#line 407 "/home/jens/Source/shotwell/src/dialogs/Preferences.vala"
_tmp6_ = self->priv->photo_editor_combo;
#line 407 "/home/jens/Source/shotwell/src/dialogs/Preferences.vala"
_tmp7_ = gtk_combo_box_get_active (_tmp6_);
#line 407 "/home/jens/Source/shotwell/src/dialogs/Preferences.vala"
_tmp0_ = _tmp7_;
#line 2458 "Preferences.c"
} else {
SortedList* _tmp8_;
gint _tmp9_;
gint _tmp10_;
#line 407 "/home/jens/Source/shotwell/src/dialogs/Preferences.vala"
_tmp8_ = self->priv->external_photo_apps;
#line 407 "/home/jens/Source/shotwell/src/dialogs/Preferences.vala"
_tmp9_ = gee_collection_get_size (G_TYPE_CHECK_INSTANCE_CAST (_tmp8_, GEE_TYPE_COLLECTION, GeeCollection));
#line 407 "/home/jens/Source/shotwell/src/dialogs/Preferences.vala"
_tmp10_ = _tmp9_;
#line 407 "/home/jens/Source/shotwell/src/dialogs/Preferences.vala"
_tmp0_ = _tmp10_;
#line 2471 "Preferences.c"
}
#line 406 "/home/jens/Source/shotwell/src/dialogs/Preferences.vala"
photo_app_choice_index = _tmp0_;
#line 409 "/home/jens/Source/shotwell/src/dialogs/Preferences.vala"
_tmp11_ = self->priv->external_photo_apps;
#line 409 "/home/jens/Source/shotwell/src/dialogs/Preferences.vala"
_tmp12_ = sorted_list_get_at (_tmp11_, photo_app_choice_index);
#line 409 "/home/jens/Source/shotwell/src/dialogs/Preferences.vala"
app = (GAppInfo*) _tmp12_;
#line 411 "/home/jens/Source/shotwell/src/dialogs/Preferences.vala"
_tmp13_ = config_facade_get_instance ();
#line 411 "/home/jens/Source/shotwell/src/dialogs/Preferences.vala"
_tmp14_ = _tmp13_;
#line 411 "/home/jens/Source/shotwell/src/dialogs/Preferences.vala"
_tmp15_ = desktop_integration_get_app_open_command (app);
#line 411 "/home/jens/Source/shotwell/src/dialogs/Preferences.vala"
_tmp16_ = _tmp15_;
#line 411 "/home/jens/Source/shotwell/src/dialogs/Preferences.vala"
configuration_facade_set_external_photo_app (G_TYPE_CHECK_INSTANCE_CAST (_tmp14_, TYPE_CONFIGURATION_FACADE, ConfigurationFacade), _tmp16_);
#line 411 "/home/jens/Source/shotwell/src/dialogs/Preferences.vala"
_g_free0 (_tmp16_);
#line 411 "/home/jens/Source/shotwell/src/dialogs/Preferences.vala"
_g_object_unref0 (_tmp14_);
#line 413 "/home/jens/Source/shotwell/src/dialogs/Preferences.vala"
_tmp17_ = desktop_integration_get_app_open_command (app);
#line 413 "/home/jens/Source/shotwell/src/dialogs/Preferences.vala"
_tmp18_ = _tmp17_;
#line 413 "/home/jens/Source/shotwell/src/dialogs/Preferences.vala"
g_debug ("Preferences.vala:413: setting external photo editor to: %s", _tmp18_);
#line 413 "/home/jens/Source/shotwell/src/dialogs/Preferences.vala"
_g_free0 (_tmp18_);
#line 405 "/home/jens/Source/shotwell/src/dialogs/Preferences.vala"
_g_object_unref0 (app);
#line 2505 "Preferences.c"
}
static void preferences_dialog_on_raw_editor_changed (PreferencesDialog* self) {
gint _tmp0_ = 0;
GtkComboBox* _tmp1_;
gint _tmp2_;
SortedList* _tmp3_;
gint _tmp4_;
gint _tmp5_;
gint raw_app_choice_index = 0;
GAppInfo* app = NULL;
SortedList* _tmp11_;
gpointer _tmp12_;
ConfigFacade* _tmp13_;
ConfigFacade* _tmp14_;
const gchar* _tmp15_;
const gchar* _tmp16_;
#line 416 "/home/jens/Source/shotwell/src/dialogs/Preferences.vala"
g_return_if_fail (IS_PREFERENCES_DIALOG (self));
#line 417 "/home/jens/Source/shotwell/src/dialogs/Preferences.vala"
_tmp1_ = self->priv->raw_editor_combo;
#line 417 "/home/jens/Source/shotwell/src/dialogs/Preferences.vala"
_tmp2_ = gtk_combo_box_get_active (_tmp1_);
#line 417 "/home/jens/Source/shotwell/src/dialogs/Preferences.vala"
_tmp3_ = self->priv->external_raw_apps;
#line 417 "/home/jens/Source/shotwell/src/dialogs/Preferences.vala"
_tmp4_ = gee_collection_get_size (G_TYPE_CHECK_INSTANCE_CAST (_tmp3_, GEE_TYPE_COLLECTION, GeeCollection));
#line 417 "/home/jens/Source/shotwell/src/dialogs/Preferences.vala"
_tmp5_ = _tmp4_;
#line 417 "/home/jens/Source/shotwell/src/dialogs/Preferences.vala"
if (_tmp2_ < _tmp5_) {
#line 2538 "Preferences.c"
GtkComboBox* _tmp6_;
gint _tmp7_;
#line 418 "/home/jens/Source/shotwell/src/dialogs/Preferences.vala"
_tmp6_ = self->priv->raw_editor_combo;
#line 418 "/home/jens/Source/shotwell/src/dialogs/Preferences.vala"
_tmp7_ = gtk_combo_box_get_active (_tmp6_);
#line 418 "/home/jens/Source/shotwell/src/dialogs/Preferences.vala"
_tmp0_ = _tmp7_;
#line 2547 "Preferences.c"
} else {
SortedList* _tmp8_;
gint _tmp9_;
gint _tmp10_;
#line 418 "/home/jens/Source/shotwell/src/dialogs/Preferences.vala"
_tmp8_ = self->priv->external_raw_apps;
#line 418 "/home/jens/Source/shotwell/src/dialogs/Preferences.vala"
_tmp9_ = gee_collection_get_size (G_TYPE_CHECK_INSTANCE_CAST (_tmp8_, GEE_TYPE_COLLECTION, GeeCollection));
#line 418 "/home/jens/Source/shotwell/src/dialogs/Preferences.vala"
_tmp10_ = _tmp9_;
#line 418 "/home/jens/Source/shotwell/src/dialogs/Preferences.vala"
_tmp0_ = _tmp10_;
#line 2560 "Preferences.c"
}
#line 417 "/home/jens/Source/shotwell/src/dialogs/Preferences.vala"
raw_app_choice_index = _tmp0_;
#line 420 "/home/jens/Source/shotwell/src/dialogs/Preferences.vala"
_tmp11_ = self->priv->external_raw_apps;
#line 420 "/home/jens/Source/shotwell/src/dialogs/Preferences.vala"
_tmp12_ = sorted_list_get_at (_tmp11_, raw_app_choice_index);
#line 420 "/home/jens/Source/shotwell/src/dialogs/Preferences.vala"
app = (GAppInfo*) _tmp12_;
#line 422 "/home/jens/Source/shotwell/src/dialogs/Preferences.vala"
_tmp13_ = config_facade_get_instance ();
#line 422 "/home/jens/Source/shotwell/src/dialogs/Preferences.vala"
_tmp14_ = _tmp13_;
#line 422 "/home/jens/Source/shotwell/src/dialogs/Preferences.vala"
_tmp15_ = g_app_info_get_commandline (app);
#line 422 "/home/jens/Source/shotwell/src/dialogs/Preferences.vala"
configuration_facade_set_external_raw_app (G_TYPE_CHECK_INSTANCE_CAST (_tmp14_, TYPE_CONFIGURATION_FACADE, ConfigurationFacade), _tmp15_);
#line 422 "/home/jens/Source/shotwell/src/dialogs/Preferences.vala"
_g_object_unref0 (_tmp14_);
#line 424 "/home/jens/Source/shotwell/src/dialogs/Preferences.vala"
_tmp16_ = g_app_info_get_commandline (app);
#line 424 "/home/jens/Source/shotwell/src/dialogs/Preferences.vala"
g_debug ("Preferences.vala:424: setting external raw editor to: %s", _tmp16_);
#line 416 "/home/jens/Source/shotwell/src/dialogs/Preferences.vala"
_g_object_unref0 (app);
#line 2586 "Preferences.c"
}
static RawDeveloper preferences_dialog_raw_developer_from_combo (PreferencesDialog* self) {
RawDeveloper result = 0;
GtkComboBoxText* _tmp0_;
gint _tmp1_;
#line 427 "/home/jens/Source/shotwell/src/dialogs/Preferences.vala"
g_return_val_if_fail (IS_PREFERENCES_DIALOG (self), 0);
#line 428 "/home/jens/Source/shotwell/src/dialogs/Preferences.vala"
_tmp0_ = self->priv->default_raw_developer_combo;
#line 428 "/home/jens/Source/shotwell/src/dialogs/Preferences.vala"
_tmp1_ = gtk_combo_box_get_active (G_TYPE_CHECK_INSTANCE_CAST (_tmp0_, gtk_combo_box_get_type (), GtkComboBox));
#line 428 "/home/jens/Source/shotwell/src/dialogs/Preferences.vala"
if (_tmp1_ == 0) {
#line 429 "/home/jens/Source/shotwell/src/dialogs/Preferences.vala"
result = RAW_DEVELOPER_CAMERA;
#line 429 "/home/jens/Source/shotwell/src/dialogs/Preferences.vala"
return result;
#line 2606 "Preferences.c"
}
#line 430 "/home/jens/Source/shotwell/src/dialogs/Preferences.vala"
result = RAW_DEVELOPER_SHOTWELL;
#line 430 "/home/jens/Source/shotwell/src/dialogs/Preferences.vala"
return result;
#line 2612 "Preferences.c"
}
static void preferences_dialog_set_raw_developer_combo (PreferencesDialog* self, RawDeveloper d) {
RawDeveloper _tmp0_;
#line 433 "/home/jens/Source/shotwell/src/dialogs/Preferences.vala"
g_return_if_fail (IS_PREFERENCES_DIALOG (self));
#line 434 "/home/jens/Source/shotwell/src/dialogs/Preferences.vala"
_tmp0_ = d;
#line 434 "/home/jens/Source/shotwell/src/dialogs/Preferences.vala"
if (_tmp0_ == RAW_DEVELOPER_CAMERA) {
#line 2624 "Preferences.c"
GtkComboBoxText* _tmp1_;
#line 435 "/home/jens/Source/shotwell/src/dialogs/Preferences.vala"
_tmp1_ = self->priv->default_raw_developer_combo;
#line 435 "/home/jens/Source/shotwell/src/dialogs/Preferences.vala"
gtk_combo_box_set_active (G_TYPE_CHECK_INSTANCE_CAST (_tmp1_, gtk_combo_box_get_type (), GtkComboBox), 0);
#line 2630 "Preferences.c"
} else {
GtkComboBoxText* _tmp2_;
#line 437 "/home/jens/Source/shotwell/src/dialogs/Preferences.vala"
_tmp2_ = self->priv->default_raw_developer_combo;
#line 437 "/home/jens/Source/shotwell/src/dialogs/Preferences.vala"
gtk_combo_box_set_active (G_TYPE_CHECK_INSTANCE_CAST (_tmp2_, gtk_combo_box_get_type (), GtkComboBox), 1);
#line 2637 "Preferences.c"
}
}
static void preferences_dialog_on_default_raw_developer_changed (PreferencesDialog* self) {
ConfigFacade* _tmp0_;
ConfigFacade* _tmp1_;
RawDeveloper _tmp2_;
#line 440 "/home/jens/Source/shotwell/src/dialogs/Preferences.vala"
g_return_if_fail (IS_PREFERENCES_DIALOG (self));
#line 441 "/home/jens/Source/shotwell/src/dialogs/Preferences.vala"
_tmp0_ = config_facade_get_instance ();
#line 441 "/home/jens/Source/shotwell/src/dialogs/Preferences.vala"
_tmp1_ = _tmp0_;
#line 441 "/home/jens/Source/shotwell/src/dialogs/Preferences.vala"
_tmp2_ = preferences_dialog_raw_developer_from_combo (self);
#line 441 "/home/jens/Source/shotwell/src/dialogs/Preferences.vala"
configuration_facade_set_default_raw_developer (G_TYPE_CHECK_INSTANCE_CAST (_tmp1_, TYPE_CONFIGURATION_FACADE, ConfigurationFacade), _tmp2_);
#line 441 "/home/jens/Source/shotwell/src/dialogs/Preferences.vala"
_g_object_unref0 (_tmp1_);
#line 2658 "Preferences.c"
}
static void preferences_dialog_on_current_folder_changed (PreferencesDialog* self) {
GtkFileChooserButton* _tmp0_;
gchar* _tmp1_;
#line 444 "/home/jens/Source/shotwell/src/dialogs/Preferences.vala"
g_return_if_fail (IS_PREFERENCES_DIALOG (self));
#line 445 "/home/jens/Source/shotwell/src/dialogs/Preferences.vala"
_tmp0_ = self->priv->library_dir_button;
#line 445 "/home/jens/Source/shotwell/src/dialogs/Preferences.vala"
_tmp1_ = gtk_file_chooser_get_filename (G_TYPE_CHECK_INSTANCE_CAST (_tmp0_, GTK_TYPE_FILE_CHOOSER, GtkFileChooser));
#line 445 "/home/jens/Source/shotwell/src/dialogs/Preferences.vala"
_g_free0 (self->priv->lib_dir);
#line 445 "/home/jens/Source/shotwell/src/dialogs/Preferences.vala"
self->priv->lib_dir = _tmp1_;
#line 2675 "Preferences.c"
}
static void _preferences_dialog_on_current_folder_changed_gtk_file_chooser_current_folder_changed (GtkFileChooser* _sender, gpointer self) {
#line 454 "/home/jens/Source/shotwell/src/dialogs/Preferences.vala"
preferences_dialog_on_current_folder_changed ((PreferencesDialog*) self);
#line 2682 "Preferences.c"
}
static gboolean preferences_dialog_real_map_event (GtkWidget* base, GdkEventAny* event) {
PreferencesDialog * self;
gboolean result = FALSE;
gboolean _result_ = FALSE;
GdkEventAny* _tmp0_;
gboolean _tmp1_;
GtkFileChooserButton* _tmp2_;
#line 448 "/home/jens/Source/shotwell/src/dialogs/Preferences.vala"
self = G_TYPE_CHECK_INSTANCE_CAST (base, TYPE_PREFERENCES_DIALOG, PreferencesDialog);
#line 448 "/home/jens/Source/shotwell/src/dialogs/Preferences.vala"
g_return_val_if_fail (event != NULL, FALSE);
#line 449 "/home/jens/Source/shotwell/src/dialogs/Preferences.vala"
_tmp0_ = event;
#line 449 "/home/jens/Source/shotwell/src/dialogs/Preferences.vala"
_tmp1_ = GTK_WIDGET_CLASS (preferences_dialog_parent_class)->map_event (G_TYPE_CHECK_INSTANCE_CAST (G_TYPE_CHECK_INSTANCE_CAST (self, gtk_dialog_get_type (), GtkDialog), gtk_widget_get_type (), GtkWidget), _tmp0_);
#line 449 "/home/jens/Source/shotwell/src/dialogs/Preferences.vala"
_result_ = _tmp1_;
#line 454 "/home/jens/Source/shotwell/src/dialogs/Preferences.vala"
_tmp2_ = self->priv->library_dir_button;
#line 454 "/home/jens/Source/shotwell/src/dialogs/Preferences.vala"
g_signal_connect_object (G_TYPE_CHECK_INSTANCE_CAST (_tmp2_, GTK_TYPE_FILE_CHOOSER, GtkFileChooser), "current-folder-changed", (GCallback) _preferences_dialog_on_current_folder_changed_gtk_file_chooser_current_folder_changed, self, 0);
#line 456 "/home/jens/Source/shotwell/src/dialogs/Preferences.vala"
result = _result_;
#line 456 "/home/jens/Source/shotwell/src/dialogs/Preferences.vala"
return result;
#line 2711 "Preferences.c"
}
static void preferences_dialog_add_to_dir_formats (PreferencesDialog* self, const gchar* name, const gchar* pattern) {
PreferencesDialogPathFormat* pf = NULL;
const gchar* _tmp0_;
const gchar* _tmp1_;
PreferencesDialogPathFormat* _tmp2_;
GeeArrayList* _tmp3_;
GtkComboBoxText* _tmp4_;
const gchar* _tmp5_;
#line 459 "/home/jens/Source/shotwell/src/dialogs/Preferences.vala"
g_return_if_fail (IS_PREFERENCES_DIALOG (self));
#line 459 "/home/jens/Source/shotwell/src/dialogs/Preferences.vala"
g_return_if_fail (name != NULL);
#line 460 "/home/jens/Source/shotwell/src/dialogs/Preferences.vala"
_tmp0_ = name;
#line 460 "/home/jens/Source/shotwell/src/dialogs/Preferences.vala"
_tmp1_ = pattern;
#line 460 "/home/jens/Source/shotwell/src/dialogs/Preferences.vala"
_tmp2_ = preferences_dialog_path_format_new (_tmp0_, _tmp1_);
#line 460 "/home/jens/Source/shotwell/src/dialogs/Preferences.vala"
pf = _tmp2_;
#line 461 "/home/jens/Source/shotwell/src/dialogs/Preferences.vala"
_tmp3_ = self->priv->path_formats;
#line 461 "/home/jens/Source/shotwell/src/dialogs/Preferences.vala"
gee_abstract_collection_add (G_TYPE_CHECK_INSTANCE_CAST (_tmp3_, GEE_TYPE_ABSTRACT_COLLECTION, GeeAbstractCollection), pf);
#line 462 "/home/jens/Source/shotwell/src/dialogs/Preferences.vala"
_tmp4_ = self->priv->dir_pattern_combo;
#line 462 "/home/jens/Source/shotwell/src/dialogs/Preferences.vala"
_tmp5_ = name;
#line 462 "/home/jens/Source/shotwell/src/dialogs/Preferences.vala"
gtk_combo_box_text_append_text (_tmp4_, _tmp5_);
#line 459 "/home/jens/Source/shotwell/src/dialogs/Preferences.vala"
_preferences_dialog_path_format_unref0 (pf);
#line 2747 "Preferences.c"
}
static void preferences_dialog_on_lowercase_toggled (PreferencesDialog* self) {
ConfigFacade* _tmp0_;
ConfigFacade* _tmp1_;
GtkCheckButton* _tmp2_;
gboolean _tmp3_;
#line 465 "/home/jens/Source/shotwell/src/dialogs/Preferences.vala"
g_return_if_fail (IS_PREFERENCES_DIALOG (self));
#line 466 "/home/jens/Source/shotwell/src/dialogs/Preferences.vala"
_tmp0_ = config_facade_get_instance ();
#line 466 "/home/jens/Source/shotwell/src/dialogs/Preferences.vala"
_tmp1_ = _tmp0_;
#line 466 "/home/jens/Source/shotwell/src/dialogs/Preferences.vala"
_tmp2_ = self->priv->lowercase;
#line 466 "/home/jens/Source/shotwell/src/dialogs/Preferences.vala"
_tmp3_ = gtk_toggle_button_get_active (G_TYPE_CHECK_INSTANCE_CAST (_tmp2_, gtk_toggle_button_get_type (), GtkToggleButton));
#line 466 "/home/jens/Source/shotwell/src/dialogs/Preferences.vala"
configuration_facade_set_use_lowercase_filenames (G_TYPE_CHECK_INSTANCE_CAST (_tmp1_, TYPE_CONFIGURATION_FACADE, ConfigurationFacade), _tmp3_);
#line 466 "/home/jens/Source/shotwell/src/dialogs/Preferences.vala"
_g_object_unref0 (_tmp1_);
#line 2770 "Preferences.c"
}
static PreferencesDialogPathFormat* preferences_dialog_path_format_construct (GType object_type, const gchar* name, const gchar* pattern) {
PreferencesDialogPathFormat* self = NULL;
const gchar* _tmp0_;
gchar* _tmp1_;
const gchar* _tmp2_;
gchar* _tmp3_;
#line 11 "/home/jens/Source/shotwell/src/dialogs/Preferences.vala"
g_return_val_if_fail (name != NULL, NULL);
#line 11 "/home/jens/Source/shotwell/src/dialogs/Preferences.vala"
self = (PreferencesDialogPathFormat*) g_type_create_instance (object_type);
#line 12 "/home/jens/Source/shotwell/src/dialogs/Preferences.vala"
_tmp0_ = name;
#line 12 "/home/jens/Source/shotwell/src/dialogs/Preferences.vala"
_tmp1_ = g_strdup (_tmp0_);
#line 12 "/home/jens/Source/shotwell/src/dialogs/Preferences.vala"
_g_free0 (self->name);
#line 12 "/home/jens/Source/shotwell/src/dialogs/Preferences.vala"
self->name = _tmp1_;
#line 13 "/home/jens/Source/shotwell/src/dialogs/Preferences.vala"
_tmp2_ = pattern;
#line 13 "/home/jens/Source/shotwell/src/dialogs/Preferences.vala"
_tmp3_ = g_strdup (_tmp2_);
#line 13 "/home/jens/Source/shotwell/src/dialogs/Preferences.vala"
_g_free0 (self->pattern);
#line 13 "/home/jens/Source/shotwell/src/dialogs/Preferences.vala"
self->pattern = _tmp3_;
#line 11 "/home/jens/Source/shotwell/src/dialogs/Preferences.vala"
return self;
#line 2802 "Preferences.c"
}
static PreferencesDialogPathFormat* preferences_dialog_path_format_new (const gchar* name, const gchar* pattern) {
#line 11 "/home/jens/Source/shotwell/src/dialogs/Preferences.vala"
return preferences_dialog_path_format_construct (PREFERENCES_DIALOG_TYPE_PATH_FORMAT, name, pattern);
#line 2809 "Preferences.c"
}
static void preferences_dialog_value_path_format_init (GValue* value) {
#line 10 "/home/jens/Source/shotwell/src/dialogs/Preferences.vala"
value->data[0].v_pointer = NULL;
#line 2816 "Preferences.c"
}
static void preferences_dialog_value_path_format_free_value (GValue* value) {
#line 10 "/home/jens/Source/shotwell/src/dialogs/Preferences.vala"
if (value->data[0].v_pointer) {
#line 10 "/home/jens/Source/shotwell/src/dialogs/Preferences.vala"
preferences_dialog_path_format_unref (value->data[0].v_pointer);
#line 2825 "Preferences.c"
}
}
static void preferences_dialog_value_path_format_copy_value (const GValue* src_value, GValue* dest_value) {
#line 10 "/home/jens/Source/shotwell/src/dialogs/Preferences.vala"
if (src_value->data[0].v_pointer) {
#line 10 "/home/jens/Source/shotwell/src/dialogs/Preferences.vala"
dest_value->data[0].v_pointer = preferences_dialog_path_format_ref (src_value->data[0].v_pointer);
#line 2835 "Preferences.c"
} else {
#line 10 "/home/jens/Source/shotwell/src/dialogs/Preferences.vala"
dest_value->data[0].v_pointer = NULL;
#line 2839 "Preferences.c"
}
}
static gpointer preferences_dialog_value_path_format_peek_pointer (const GValue* value) {
#line 10 "/home/jens/Source/shotwell/src/dialogs/Preferences.vala"
return value->data[0].v_pointer;
#line 2847 "Preferences.c"
}
static gchar* preferences_dialog_value_path_format_collect_value (GValue* value, guint n_collect_values, GTypeCValue* collect_values, guint collect_flags) {
#line 10 "/home/jens/Source/shotwell/src/dialogs/Preferences.vala"
if (collect_values[0].v_pointer) {
#line 2854 "Preferences.c"
PreferencesDialogPathFormat * object;
object = collect_values[0].v_pointer;
#line 10 "/home/jens/Source/shotwell/src/dialogs/Preferences.vala"
if (object->parent_instance.g_class == NULL) {
#line 10 "/home/jens/Source/shotwell/src/dialogs/Preferences.vala"
return g_strconcat ("invalid unclassed object pointer for value type `", G_VALUE_TYPE_NAME (value), "'", NULL);
#line 2861 "Preferences.c"
} else if (!g_value_type_compatible (G_TYPE_FROM_INSTANCE (object), G_VALUE_TYPE (value))) {
#line 10 "/home/jens/Source/shotwell/src/dialogs/Preferences.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 2865 "Preferences.c"
}
#line 10 "/home/jens/Source/shotwell/src/dialogs/Preferences.vala"
value->data[0].v_pointer = preferences_dialog_path_format_ref (object);
#line 2869 "Preferences.c"
} else {
#line 10 "/home/jens/Source/shotwell/src/dialogs/Preferences.vala"
value->data[0].v_pointer = NULL;
#line 2873 "Preferences.c"
}
#line 10 "/home/jens/Source/shotwell/src/dialogs/Preferences.vala"
return NULL;
#line 2877 "Preferences.c"
}
static gchar* preferences_dialog_value_path_format_lcopy_value (const GValue* value, guint n_collect_values, GTypeCValue* collect_values, guint collect_flags) {
PreferencesDialogPathFormat ** object_p;
object_p = collect_values[0].v_pointer;
#line 10 "/home/jens/Source/shotwell/src/dialogs/Preferences.vala"
if (!object_p) {
#line 10 "/home/jens/Source/shotwell/src/dialogs/Preferences.vala"
return g_strdup_printf ("value location for `%s' passed as NULL", G_VALUE_TYPE_NAME (value));
#line 2888 "Preferences.c"
}
#line 10 "/home/jens/Source/shotwell/src/dialogs/Preferences.vala"
if (!value->data[0].v_pointer) {
#line 10 "/home/jens/Source/shotwell/src/dialogs/Preferences.vala"
*object_p = NULL;
#line 2894 "Preferences.c"
} else if (collect_flags & G_VALUE_NOCOPY_CONTENTS) {
#line 10 "/home/jens/Source/shotwell/src/dialogs/Preferences.vala"
*object_p = value->data[0].v_pointer;
#line 2898 "Preferences.c"
} else {
#line 10 "/home/jens/Source/shotwell/src/dialogs/Preferences.vala"
*object_p = preferences_dialog_path_format_ref (value->data[0].v_pointer);
#line 2902 "Preferences.c"
}
#line 10 "/home/jens/Source/shotwell/src/dialogs/Preferences.vala"
return NULL;
#line 2906 "Preferences.c"
}
static GParamSpec* preferences_dialog_param_spec_path_format (const gchar* name, const gchar* nick, const gchar* blurb, GType object_type, GParamFlags flags) {
PreferencesDialogParamSpecPathFormat* spec;
#line 10 "/home/jens/Source/shotwell/src/dialogs/Preferences.vala"
g_return_val_if_fail (g_type_is_a (object_type, PREFERENCES_DIALOG_TYPE_PATH_FORMAT), NULL);
#line 10 "/home/jens/Source/shotwell/src/dialogs/Preferences.vala"
spec = g_param_spec_internal (G_TYPE_PARAM_OBJECT, name, nick, blurb, flags);
#line 10 "/home/jens/Source/shotwell/src/dialogs/Preferences.vala"
G_PARAM_SPEC (spec)->value_type = object_type;
#line 10 "/home/jens/Source/shotwell/src/dialogs/Preferences.vala"
return G_PARAM_SPEC (spec);
#line 2920 "Preferences.c"
}
static gpointer preferences_dialog_value_get_path_format (const GValue* value) {
#line 10 "/home/jens/Source/shotwell/src/dialogs/Preferences.vala"
g_return_val_if_fail (G_TYPE_CHECK_VALUE_TYPE (value, PREFERENCES_DIALOG_TYPE_PATH_FORMAT), NULL);
#line 10 "/home/jens/Source/shotwell/src/dialogs/Preferences.vala"
return value->data[0].v_pointer;
#line 2929 "Preferences.c"
}
static void preferences_dialog_value_set_path_format (GValue* value, gpointer v_object) {
PreferencesDialogPathFormat * old;
#line 10 "/home/jens/Source/shotwell/src/dialogs/Preferences.vala"
g_return_if_fail (G_TYPE_CHECK_VALUE_TYPE (value, PREFERENCES_DIALOG_TYPE_PATH_FORMAT));
#line 10 "/home/jens/Source/shotwell/src/dialogs/Preferences.vala"
old = value->data[0].v_pointer;
#line 10 "/home/jens/Source/shotwell/src/dialogs/Preferences.vala"
if (v_object) {
#line 10 "/home/jens/Source/shotwell/src/dialogs/Preferences.vala"
g_return_if_fail (G_TYPE_CHECK_INSTANCE_TYPE (v_object, PREFERENCES_DIALOG_TYPE_PATH_FORMAT));
#line 10 "/home/jens/Source/shotwell/src/dialogs/Preferences.vala"
g_return_if_fail (g_value_type_compatible (G_TYPE_FROM_INSTANCE (v_object), G_VALUE_TYPE (value)));
#line 10 "/home/jens/Source/shotwell/src/dialogs/Preferences.vala"
value->data[0].v_pointer = v_object;
#line 10 "/home/jens/Source/shotwell/src/dialogs/Preferences.vala"
preferences_dialog_path_format_ref (value->data[0].v_pointer);
#line 2949 "Preferences.c"
} else {
#line 10 "/home/jens/Source/shotwell/src/dialogs/Preferences.vala"
value->data[0].v_pointer = NULL;
#line 2953 "Preferences.c"
}
#line 10 "/home/jens/Source/shotwell/src/dialogs/Preferences.vala"
if (old) {
#line 10 "/home/jens/Source/shotwell/src/dialogs/Preferences.vala"
preferences_dialog_path_format_unref (old);
#line 2959 "Preferences.c"
}
}
static void preferences_dialog_value_take_path_format (GValue* value, gpointer v_object) {
PreferencesDialogPathFormat * old;
#line 10 "/home/jens/Source/shotwell/src/dialogs/Preferences.vala"
g_return_if_fail (G_TYPE_CHECK_VALUE_TYPE (value, PREFERENCES_DIALOG_TYPE_PATH_FORMAT));
#line 10 "/home/jens/Source/shotwell/src/dialogs/Preferences.vala"
old = value->data[0].v_pointer;
#line 10 "/home/jens/Source/shotwell/src/dialogs/Preferences.vala"
if (v_object) {
#line 10 "/home/jens/Source/shotwell/src/dialogs/Preferences.vala"
g_return_if_fail (G_TYPE_CHECK_INSTANCE_TYPE (v_object, PREFERENCES_DIALOG_TYPE_PATH_FORMAT));
#line 10 "/home/jens/Source/shotwell/src/dialogs/Preferences.vala"
g_return_if_fail (g_value_type_compatible (G_TYPE_FROM_INSTANCE (v_object), G_VALUE_TYPE (value)));
#line 10 "/home/jens/Source/shotwell/src/dialogs/Preferences.vala"
value->data[0].v_pointer = v_object;
#line 2978 "Preferences.c"
} else {
#line 10 "/home/jens/Source/shotwell/src/dialogs/Preferences.vala"
value->data[0].v_pointer = NULL;
#line 2982 "Preferences.c"
}
#line 10 "/home/jens/Source/shotwell/src/dialogs/Preferences.vala"
if (old) {
#line 10 "/home/jens/Source/shotwell/src/dialogs/Preferences.vala"
preferences_dialog_path_format_unref (old);
#line 2988 "Preferences.c"
}
}
static void preferences_dialog_path_format_class_init (PreferencesDialogPathFormatClass * klass) {
#line 10 "/home/jens/Source/shotwell/src/dialogs/Preferences.vala"
preferences_dialog_path_format_parent_class = g_type_class_peek_parent (klass);
#line 10 "/home/jens/Source/shotwell/src/dialogs/Preferences.vala"
((PreferencesDialogPathFormatClass *) klass)->finalize = preferences_dialog_path_format_finalize;
#line 2998 "Preferences.c"
}
static void preferences_dialog_path_format_instance_init (PreferencesDialogPathFormat * self) {
#line 10 "/home/jens/Source/shotwell/src/dialogs/Preferences.vala"
self->ref_count = 1;
#line 3005 "Preferences.c"
}
static void preferences_dialog_path_format_finalize (PreferencesDialogPathFormat * obj) {
PreferencesDialogPathFormat * self;
#line 10 "/home/jens/Source/shotwell/src/dialogs/Preferences.vala"
self = G_TYPE_CHECK_INSTANCE_CAST (obj, PREFERENCES_DIALOG_TYPE_PATH_FORMAT, PreferencesDialogPathFormat);
#line 10 "/home/jens/Source/shotwell/src/dialogs/Preferences.vala"
g_signal_handlers_destroy (self);
#line 15 "/home/jens/Source/shotwell/src/dialogs/Preferences.vala"
_g_free0 (self->name);
#line 16 "/home/jens/Source/shotwell/src/dialogs/Preferences.vala"
_g_free0 (self->pattern);
#line 3019 "Preferences.c"
}
static GType preferences_dialog_path_format_get_type (void) {
static volatile gsize preferences_dialog_path_format_type_id__volatile = 0;
if (g_once_init_enter (&preferences_dialog_path_format_type_id__volatile)) {
static const GTypeValueTable g_define_type_value_table = { preferences_dialog_value_path_format_init, preferences_dialog_value_path_format_free_value, preferences_dialog_value_path_format_copy_value, preferences_dialog_value_path_format_peek_pointer, "p", preferences_dialog_value_path_format_collect_value, "p", preferences_dialog_value_path_format_lcopy_value };
static const GTypeInfo g_define_type_info = { sizeof (PreferencesDialogPathFormatClass), (GBaseInitFunc) NULL, (GBaseFinalizeFunc) NULL, (GClassInitFunc) preferences_dialog_path_format_class_init, (GClassFinalizeFunc) NULL, NULL, sizeof (PreferencesDialogPathFormat), 0, (GInstanceInitFunc) preferences_dialog_path_format_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 preferences_dialog_path_format_type_id;
preferences_dialog_path_format_type_id = g_type_register_fundamental (g_type_fundamental_next (), "PreferencesDialogPathFormat", &g_define_type_info, &g_define_type_fundamental_info, 0);
g_once_init_leave (&preferences_dialog_path_format_type_id__volatile, preferences_dialog_path_format_type_id);
}
return preferences_dialog_path_format_type_id__volatile;
}
static gpointer preferences_dialog_path_format_ref (gpointer instance) {
PreferencesDialogPathFormat * self;
self = instance;
#line 10 "/home/jens/Source/shotwell/src/dialogs/Preferences.vala"
g_atomic_int_inc (&self->ref_count);
#line 10 "/home/jens/Source/shotwell/src/dialogs/Preferences.vala"
return instance;
#line 3044 "Preferences.c"
}
static void preferences_dialog_path_format_unref (gpointer instance) {
PreferencesDialogPathFormat * self;
self = instance;
#line 10 "/home/jens/Source/shotwell/src/dialogs/Preferences.vala"
if (g_atomic_int_dec_and_test (&self->ref_count)) {
#line 10 "/home/jens/Source/shotwell/src/dialogs/Preferences.vala"
PREFERENCES_DIALOG_PATH_FORMAT_GET_CLASS (self)->finalize (self);
#line 10 "/home/jens/Source/shotwell/src/dialogs/Preferences.vala"
g_type_free_instance ((GTypeInstance *) self);
#line 3057 "Preferences.c"
}
}
static void preferences_dialog_class_init (PreferencesDialogClass * klass) {
gint PreferencesDialog_private_offset;
#line 9 "/home/jens/Source/shotwell/src/dialogs/Preferences.vala"
preferences_dialog_parent_class = g_type_class_peek_parent (klass);
#line 9 "/home/jens/Source/shotwell/src/dialogs/Preferences.vala"
g_type_class_add_private (klass, sizeof (PreferencesDialogPrivate));
#line 9 "/home/jens/Source/shotwell/src/dialogs/Preferences.vala"
((GtkWidgetClass *) klass)->map_event = (gboolean (*) (GtkWidget *, GdkEventAny*)) preferences_dialog_real_map_event;
#line 9 "/home/jens/Source/shotwell/src/dialogs/Preferences.vala"
G_OBJECT_CLASS (klass)->finalize = preferences_dialog_finalize;
#line 9 "/home/jens/Source/shotwell/src/dialogs/Preferences.vala"
PreferencesDialog_private_offset = g_type_class_get_instance_private_offset (klass);
#line 9 "/home/jens/Source/shotwell/src/dialogs/Preferences.vala"
gtk_widget_class_set_template_from_resource (GTK_WIDGET_CLASS (klass), "/org/gnome/Shotwell/ui/preferences_dialog.ui");
#line 9 "/home/jens/Source/shotwell/src/dialogs/Preferences.vala"
gtk_widget_class_bind_template_child_full (GTK_WIDGET_CLASS (klass), "bg_color_adjustment", FALSE, PreferencesDialog_private_offset + G_STRUCT_OFFSET (PreferencesDialogPrivate, bg_color_adjustment));
#line 9 "/home/jens/Source/shotwell/src/dialogs/Preferences.vala"
gtk_widget_class_bind_template_child_full (GTK_WIDGET_CLASS (klass), "bg_color_slider", FALSE, PreferencesDialog_private_offset + G_STRUCT_OFFSET (PreferencesDialogPrivate, bg_color_slider));
#line 9 "/home/jens/Source/shotwell/src/dialogs/Preferences.vala"
gtk_widget_class_bind_template_child_full (GTK_WIDGET_CLASS (klass), "photo_editor_combo", FALSE, PreferencesDialog_private_offset + G_STRUCT_OFFSET (PreferencesDialogPrivate, photo_editor_combo));
#line 9 "/home/jens/Source/shotwell/src/dialogs/Preferences.vala"
gtk_widget_class_bind_template_child_full (GTK_WIDGET_CLASS (klass), "raw_editor_combo", FALSE, PreferencesDialog_private_offset + G_STRUCT_OFFSET (PreferencesDialogPrivate, raw_editor_combo));
#line 9 "/home/jens/Source/shotwell/src/dialogs/Preferences.vala"
gtk_widget_class_bind_template_child_full (GTK_WIDGET_CLASS (klass), "library_dir_button", FALSE, PreferencesDialog_private_offset + G_STRUCT_OFFSET (PreferencesDialogPrivate, library_dir_button));
#line 9 "/home/jens/Source/shotwell/src/dialogs/Preferences.vala"
gtk_widget_class_bind_template_child_full (GTK_WIDGET_CLASS (klass), "dir_pattern_combo", FALSE, PreferencesDialog_private_offset + G_STRUCT_OFFSET (PreferencesDialogPrivate, dir_pattern_combo));
#line 9 "/home/jens/Source/shotwell/src/dialogs/Preferences.vala"
gtk_widget_class_bind_template_child_full (GTK_WIDGET_CLASS (klass), "dir_pattern_entry", FALSE, PreferencesDialog_private_offset + G_STRUCT_OFFSET (PreferencesDialogPrivate, dir_pattern_entry));
#line 9 "/home/jens/Source/shotwell/src/dialogs/Preferences.vala"
gtk_widget_class_bind_template_child_full (GTK_WIDGET_CLASS (klass), "dir_pattern_example", FALSE, PreferencesDialog_private_offset + G_STRUCT_OFFSET (PreferencesDialogPrivate, dir_pattern_example));
#line 9 "/home/jens/Source/shotwell/src/dialogs/Preferences.vala"
gtk_widget_class_bind_template_child_full (GTK_WIDGET_CLASS (klass), "lowercase", FALSE, PreferencesDialog_private_offset + G_STRUCT_OFFSET (PreferencesDialogPrivate, lowercase));
#line 9 "/home/jens/Source/shotwell/src/dialogs/Preferences.vala"
gtk_widget_class_bind_template_child_full (GTK_WIDGET_CLASS (klass), "default_raw_developer_combo", FALSE, PreferencesDialog_private_offset + G_STRUCT_OFFSET (PreferencesDialogPrivate, default_raw_developer_combo));
#line 9 "/home/jens/Source/shotwell/src/dialogs/Preferences.vala"
gtk_widget_class_bind_template_child_full (GTK_WIDGET_CLASS (klass), "autoimport", FALSE, PreferencesDialog_private_offset + G_STRUCT_OFFSET (PreferencesDialogPrivate, autoimport));
#line 9 "/home/jens/Source/shotwell/src/dialogs/Preferences.vala"
gtk_widget_class_bind_template_child_full (GTK_WIDGET_CLASS (klass), "write_metadata", FALSE, PreferencesDialog_private_offset + G_STRUCT_OFFSET (PreferencesDialogPrivate, write_metadata));
#line 9 "/home/jens/Source/shotwell/src/dialogs/Preferences.vala"
gtk_widget_class_bind_template_child_full (GTK_WIDGET_CLASS (klass), "pattern_help", FALSE, PreferencesDialog_private_offset + G_STRUCT_OFFSET (PreferencesDialogPrivate, pattern_help));
#line 9 "/home/jens/Source/shotwell/src/dialogs/Preferences.vala"
gtk_widget_class_bind_template_child_full (GTK_WIDGET_CLASS (klass), "preferences_notebook", FALSE, PreferencesDialog_private_offset + G_STRUCT_OFFSET (PreferencesDialogPrivate, preferences_notebook));
#line 9 "/home/jens/Source/shotwell/src/dialogs/Preferences.vala"
gtk_widget_class_bind_template_child_full (GTK_WIDGET_CLASS (klass), "transparent_checker_radio", FALSE, PreferencesDialog_private_offset + G_STRUCT_OFFSET (PreferencesDialogPrivate, transparent_checker_radio));
#line 9 "/home/jens/Source/shotwell/src/dialogs/Preferences.vala"
gtk_widget_class_bind_template_child_full (GTK_WIDGET_CLASS (klass), "transparent_solid_radio", FALSE, PreferencesDialog_private_offset + G_STRUCT_OFFSET (PreferencesDialogPrivate, transparent_solid_radio));
#line 9 "/home/jens/Source/shotwell/src/dialogs/Preferences.vala"
gtk_widget_class_bind_template_child_full (GTK_WIDGET_CLASS (klass), "transparent_solid_color", FALSE, PreferencesDialog_private_offset + G_STRUCT_OFFSET (PreferencesDialogPrivate, transparent_solid_color));
#line 9 "/home/jens/Source/shotwell/src/dialogs/Preferences.vala"
gtk_widget_class_bind_template_child_full (GTK_WIDGET_CLASS (klass), "transparent_none_radio", FALSE, PreferencesDialog_private_offset + G_STRUCT_OFFSET (PreferencesDialogPrivate, transparent_none_radio));
#line 3112 "Preferences.c"
}
static void preferences_dialog_instance_init (PreferencesDialog * self) {
GeeArrayList* _tmp0_;
GDateTime* _tmp1_;
PluginsManifestWidgetMediator* _tmp2_;
#line 9 "/home/jens/Source/shotwell/src/dialogs/Preferences.vala"
self->priv = PREFERENCES_DIALOG_GET_PRIVATE (self);
#line 39 "/home/jens/Source/shotwell/src/dialogs/Preferences.vala"
self->priv->allow_closing = FALSE;
#line 40 "/home/jens/Source/shotwell/src/dialogs/Preferences.vala"
self->priv->lib_dir = NULL;
#line 41 "/home/jens/Source/shotwell/src/dialogs/Preferences.vala"
_tmp0_ = gee_array_list_new (PREFERENCES_DIALOG_TYPE_PATH_FORMAT, (GBoxedCopyFunc) preferences_dialog_path_format_ref, (GDestroyNotify) preferences_dialog_path_format_unref, NULL, NULL, NULL);
#line 41 "/home/jens/Source/shotwell/src/dialogs/Preferences.vala"
self->priv->path_formats = _tmp0_;
#line 42 "/home/jens/Source/shotwell/src/dialogs/Preferences.vala"
_tmp1_ = g_date_time_new_local (2009, 3, 10, 18, 16, (gdouble) 11);
#line 42 "/home/jens/Source/shotwell/src/dialogs/Preferences.vala"
self->priv->example_date = _tmp1_;
#line 45 "/home/jens/Source/shotwell/src/dialogs/Preferences.vala"
_tmp2_ = plugins_manifest_widget_mediator_new ();
#line 45 "/home/jens/Source/shotwell/src/dialogs/Preferences.vala"
g_object_ref_sink (_tmp2_);
#line 45 "/home/jens/Source/shotwell/src/dialogs/Preferences.vala"
self->priv->plugins_mediator = _tmp2_;
#line 9 "/home/jens/Source/shotwell/src/dialogs/Preferences.vala"
gtk_widget_init_template (GTK_WIDGET (self));
#line 3142 "Preferences.c"
}
static void preferences_dialog_finalize (GObject * obj) {
PreferencesDialog * self;
#line 9 "/home/jens/Source/shotwell/src/dialogs/Preferences.vala"
self = G_TYPE_CHECK_INSTANCE_CAST (obj, TYPE_PREFERENCES_DIALOG, PreferencesDialog);
#line 22 "/home/jens/Source/shotwell/src/dialogs/Preferences.vala"
_g_object_unref0 (self->priv->bg_color_adjustment);
#line 24 "/home/jens/Source/shotwell/src/dialogs/Preferences.vala"
_g_object_unref0 (self->priv->bg_color_slider);
#line 26 "/home/jens/Source/shotwell/src/dialogs/Preferences.vala"
_g_object_unref0 (self->priv->photo_editor_combo);
#line 28 "/home/jens/Source/shotwell/src/dialogs/Preferences.vala"
_g_object_unref0 (self->priv->raw_editor_combo);
#line 29 "/home/jens/Source/shotwell/src/dialogs/Preferences.vala"
_g_object_unref0 (self->priv->external_raw_apps);
#line 30 "/home/jens/Source/shotwell/src/dialogs/Preferences.vala"
_g_object_unref0 (self->priv->external_photo_apps);
#line 32 "/home/jens/Source/shotwell/src/dialogs/Preferences.vala"
_g_object_unref0 (self->priv->library_dir_button);
#line 34 "/home/jens/Source/shotwell/src/dialogs/Preferences.vala"
_g_object_unref0 (self->priv->dir_pattern_combo);
#line 36 "/home/jens/Source/shotwell/src/dialogs/Preferences.vala"
_g_object_unref0 (self->priv->dir_pattern_entry);
#line 38 "/home/jens/Source/shotwell/src/dialogs/Preferences.vala"
_g_object_unref0 (self->priv->dir_pattern_example);
#line 40 "/home/jens/Source/shotwell/src/dialogs/Preferences.vala"
_g_free0 (self->priv->lib_dir);
#line 41 "/home/jens/Source/shotwell/src/dialogs/Preferences.vala"
_g_object_unref0 (self->priv->path_formats);
#line 42 "/home/jens/Source/shotwell/src/dialogs/Preferences.vala"
_g_date_time_unref0 (self->priv->example_date);
#line 44 "/home/jens/Source/shotwell/src/dialogs/Preferences.vala"
_g_object_unref0 (self->priv->lowercase);
#line 45 "/home/jens/Source/shotwell/src/dialogs/Preferences.vala"
_g_object_unref0 (self->priv->plugins_mediator);
#line 47 "/home/jens/Source/shotwell/src/dialogs/Preferences.vala"
_g_object_unref0 (self->priv->default_raw_developer_combo);
#line 50 "/home/jens/Source/shotwell/src/dialogs/Preferences.vala"
_g_object_unref0 (self->priv->autoimport);
#line 52 "/home/jens/Source/shotwell/src/dialogs/Preferences.vala"
_g_object_unref0 (self->priv->write_metadata);
#line 54 "/home/jens/Source/shotwell/src/dialogs/Preferences.vala"
_g_object_unref0 (self->priv->pattern_help);
#line 56 "/home/jens/Source/shotwell/src/dialogs/Preferences.vala"
_g_object_unref0 (self->priv->preferences_notebook);
#line 59 "/home/jens/Source/shotwell/src/dialogs/Preferences.vala"
_g_object_unref0 (self->priv->transparent_checker_radio);
#line 61 "/home/jens/Source/shotwell/src/dialogs/Preferences.vala"
_g_object_unref0 (self->priv->transparent_solid_radio);
#line 63 "/home/jens/Source/shotwell/src/dialogs/Preferences.vala"
_g_object_unref0 (self->priv->transparent_solid_color);
#line 65 "/home/jens/Source/shotwell/src/dialogs/Preferences.vala"
_g_object_unref0 (self->priv->transparent_none_radio);
#line 9 "/home/jens/Source/shotwell/src/dialogs/Preferences.vala"
G_OBJECT_CLASS (preferences_dialog_parent_class)->finalize (obj);
#line 3200 "Preferences.c"
}
GType preferences_dialog_get_type (void) {
static volatile gsize preferences_dialog_type_id__volatile = 0;
if (g_once_init_enter (&preferences_dialog_type_id__volatile)) {
static const GTypeInfo g_define_type_info = { sizeof (PreferencesDialogClass), (GBaseInitFunc) NULL, (GBaseFinalizeFunc) NULL, (GClassInitFunc) preferences_dialog_class_init, (GClassFinalizeFunc) NULL, NULL, sizeof (PreferencesDialog), 0, (GInstanceInitFunc) preferences_dialog_instance_init, NULL };
GType preferences_dialog_type_id;
preferences_dialog_type_id = g_type_register_static (gtk_dialog_get_type (), "PreferencesDialog", &g_define_type_info, 0);
g_once_init_leave (&preferences_dialog_type_id__volatile, preferences_dialog_type_id);
}
return preferences_dialog_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);
}
static gint _vala_array_length (gpointer array) {
int length;
length = 0;
if (array) {
while (((gpointer*) array)[length]) {
length++;
}
}
return length;
}
|