1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
888
889
890
891
892
893
894
895
896
897
898
899
900
901
902
903
904
905
906
907
908
909
910
911
912
913
914
915
916
917
918
919
920
921
922
923
924
925
926
927
928
929
930
931
932
933
934
935
936
937
938
939
940
941
942
943
944
945
946
947
948
949
950
951
952
953
954
955
956
957
958
959
960
961
962
963
964
965
966
967
968
969
970
971
972
973
974
975
976
977
978
979
980
981
982
983
984
985
986
987
988
989
990
991
992
993
994
995
996
997
998
999
1000
1001
1002
1003
1004
1005
1006
1007
1008
1009
1010
1011
1012
1013
1014
1015
1016
1017
1018
1019
1020
1021
1022
1023
1024
1025
1026
1027
1028
1029
1030
1031
1032
1033
1034
1035
1036
1037
1038
1039
1040
1041
1042
1043
1044
1045
1046
1047
1048
1049
1050
1051
1052
1053
1054
1055
1056
1057
1058
1059
1060
1061
1062
1063
1064
1065
1066
1067
1068
1069
1070
1071
1072
1073
1074
1075
1076
1077
1078
1079
1080
1081
1082
1083
1084
1085
1086
1087
1088
1089
1090
1091
1092
1093
1094
1095
1096
1097
1098
1099
1100
1101
1102
1103
1104
1105
1106
1107
1108
1109
1110
1111
1112
1113
1114
1115
1116
1117
1118
1119
1120
1121
1122
1123
1124
1125
1126
1127
1128
1129
1130
1131
1132
1133
1134
1135
1136
1137
1138
1139
1140
1141
1142
1143
1144
1145
1146
1147
1148
1149
1150
1151
1152
1153
1154
1155
1156
1157
1158
1159
1160
1161
1162
1163
1164
1165
1166
1167
1168
1169
1170
1171
1172
1173
1174
1175
1176
1177
1178
1179
1180
1181
1182
1183
1184
1185
1186
1187
1188
1189
1190
1191
1192
1193
1194
1195
1196
1197
1198
1199
1200
1201
1202
1203
1204
1205
1206
1207
1208
1209
1210
1211
1212
1213
1214
1215
1216
1217
1218
1219
1220
1221
1222
1223
1224
1225
1226
1227
1228
1229
1230
1231
1232
1233
1234
1235
1236
1237
1238
1239
1240
1241
1242
1243
1244
1245
1246
1247
1248
1249
1250
1251
1252
1253
1254
1255
1256
1257
1258
1259
1260
1261
1262
1263
1264
1265
1266
1267
1268
1269
1270
1271
1272
1273
1274
1275
1276
1277
1278
1279
1280
1281
1282
1283
1284
1285
1286
1287
1288
1289
1290
1291
1292
1293
1294
1295
1296
1297
1298
1299
1300
1301
1302
1303
1304
1305
1306
1307
1308
1309
1310
1311
1312
1313
1314
1315
1316
1317
1318
1319
1320
1321
1322
1323
1324
1325
1326
1327
1328
1329
1330
1331
1332
1333
1334
1335
1336
1337
1338
1339
1340
1341
1342
1343
1344
1345
1346
1347
1348
1349
1350
1351
1352
1353
1354
1355
1356
1357
1358
1359
1360
1361
1362
1363
1364
1365
1366
1367
1368
1369
1370
1371
1372
1373
1374
1375
1376
1377
1378
1379
1380
1381
1382
1383
1384
1385
1386
1387
1388
1389
1390
1391
1392
1393
1394
1395
1396
1397
1398
1399
1400
1401
1402
1403
1404
1405
1406
1407
1408
1409
1410
1411
1412
1413
1414
1415
1416
1417
1418
1419
1420
1421
1422
1423
1424
1425
1426
1427
1428
1429
1430
1431
1432
1433
1434
1435
1436
1437
1438
1439
1440
1441
1442
1443
1444
1445
1446
1447
1448
1449
1450
1451
1452
1453
1454
1455
1456
1457
1458
1459
1460
1461
1462
1463
1464
1465
1466
1467
1468
1469
1470
1471
1472
1473
1474
1475
1476
1477
1478
1479
1480
1481
1482
1483
1484
1485
1486
1487
1488
1489
1490
1491
1492
1493
1494
1495
1496
1497
1498
1499
1500
1501
1502
1503
1504
1505
1506
1507
1508
1509
1510
1511
1512
1513
1514
1515
1516
1517
1518
1519
1520
1521
1522
1523
1524
1525
1526
1527
1528
1529
1530
1531
1532
1533
1534
1535
1536
1537
1538
1539
1540
1541
1542
1543
1544
1545
1546
1547
1548
1549
1550
1551
1552
1553
1554
1555
1556
1557
1558
1559
1560
1561
1562
1563
1564
1565
1566
1567
1568
1569
1570
1571
1572
1573
1574
1575
1576
1577
1578
1579
1580
1581
1582
1583
1584
1585
1586
1587
1588
1589
1590
1591
1592
1593
1594
1595
1596
1597
1598
1599
1600
1601
1602
1603
1604
1605
1606
1607
1608
1609
1610
1611
1612
1613
1614
1615
1616
1617
1618
1619
1620
1621
1622
1623
1624
1625
1626
1627
1628
1629
1630
1631
1632
1633
1634
1635
1636
1637
1638
1639
1640
1641
1642
1643
1644
1645
1646
1647
1648
1649
1650
1651
1652
1653
1654
1655
1656
1657
1658
1659
1660
1661
1662
1663
1664
1665
1666
1667
1668
1669
1670
1671
1672
1673
1674
1675
1676
1677
1678
1679
1680
1681
1682
1683
1684
1685
1686
1687
1688
1689
1690
1691
1692
1693
1694
1695
1696
1697
1698
1699
1700
1701
1702
1703
1704
1705
1706
1707
1708
1709
1710
1711
1712
1713
1714
1715
1716
1717
1718
1719
1720
1721
1722
1723
1724
1725
1726
1727
1728
1729
1730
1731
1732
1733
1734
1735
1736
1737
1738
1739
1740
1741
1742
1743
1744
1745
1746
1747
1748
1749
1750
1751
1752
1753
1754
1755
1756
1757
1758
1759
1760
1761
1762
1763
1764
1765
1766
1767
1768
1769
1770
1771
1772
1773
1774
1775
1776
1777
1778
1779
1780
1781
1782
1783
1784
1785
1786
1787
1788
1789
1790
1791
1792
1793
1794
1795
1796
1797
1798
1799
1800
1801
1802
1803
1804
1805
1806
1807
1808
1809
1810
1811
1812
1813
1814
1815
1816
1817
1818
1819
1820
1821
1822
1823
1824
1825
1826
1827
1828
1829
1830
1831
1832
1833
1834
1835
1836
1837
1838
1839
1840
1841
1842
1843
1844
1845
1846
1847
1848
1849
1850
1851
1852
1853
1854
1855
1856
1857
1858
1859
1860
1861
1862
1863
1864
1865
1866
1867
1868
1869
1870
1871
1872
1873
1874
1875
1876
1877
1878
1879
1880
1881
1882
1883
1884
1885
1886
1887
1888
1889
1890
1891
1892
1893
1894
1895
1896
1897
1898
1899
1900
1901
1902
1903
1904
1905
1906
1907
1908
1909
1910
1911
1912
1913
1914
1915
1916
1917
1918
1919
1920
1921
1922
1923
1924
1925
1926
1927
1928
1929
1930
1931
1932
1933
1934
1935
1936
1937
1938
1939
1940
1941
1942
1943
1944
1945
1946
1947
1948
1949
1950
1951
1952
1953
1954
1955
1956
1957
1958
1959
1960
1961
1962
1963
1964
1965
1966
1967
1968
1969
1970
1971
1972
1973
1974
1975
1976
1977
1978
1979
1980
1981
1982
1983
1984
1985
1986
1987
1988
1989
1990
1991
1992
1993
1994
1995
1996
1997
1998
1999
2000
2001
2002
2003
2004
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
2025
2026
2027
2028
2029
2030
2031
2032
2033
2034
2035
2036
2037
2038
2039
2040
2041
2042
2043
2044
2045
2046
2047
2048
2049
2050
2051
2052
2053
2054
2055
2056
2057
2058
2059
2060
2061
2062
2063
2064
2065
2066
2067
2068
2069
2070
2071
2072
2073
2074
2075
2076
2077
2078
2079
2080
2081
2082
2083
2084
2085
2086
2087
2088
2089
2090
2091
2092
2093
2094
2095
2096
2097
2098
2099
2100
2101
2102
2103
2104
2105
2106
2107
2108
2109
2110
2111
2112
2113
2114
2115
2116
2117
2118
2119
2120
2121
2122
2123
2124
2125
2126
2127
2128
2129
2130
2131
2132
2133
2134
2135
2136
2137
2138
2139
2140
2141
2142
2143
2144
2145
2146
2147
2148
2149
2150
2151
2152
2153
2154
2155
2156
2157
2158
2159
2160
2161
2162
2163
2164
2165
2166
2167
2168
2169
2170
2171
2172
2173
2174
2175
2176
2177
2178
2179
2180
2181
2182
2183
2184
2185
2186
2187
2188
2189
2190
2191
2192
2193
2194
2195
2196
2197
2198
2199
2200
2201
2202
2203
2204
2205
2206
2207
2208
2209
2210
2211
2212
2213
2214
2215
2216
2217
2218
2219
2220
2221
2222
2223
2224
2225
2226
2227
2228
2229
2230
2231
2232
2233
2234
2235
2236
2237
2238
2239
2240
2241
2242
2243
2244
2245
2246
2247
2248
2249
2250
2251
2252
2253
2254
2255
2256
2257
2258
2259
2260
2261
2262
2263
2264
2265
2266
2267
2268
2269
2270
2271
2272
2273
2274
2275
2276
2277
2278
2279
2280
2281
2282
2283
2284
2285
2286
2287
2288
2289
2290
2291
2292
2293
2294
2295
2296
2297
2298
2299
2300
2301
2302
2303
2304
2305
2306
2307
2308
2309
2310
2311
2312
2313
2314
2315
2316
2317
2318
2319
2320
2321
2322
2323
2324
2325
2326
2327
2328
2329
2330
2331
2332
2333
2334
2335
2336
2337
2338
2339
2340
2341
2342
2343
2344
2345
2346
2347
2348
2349
2350
2351
2352
2353
2354
2355
2356
2357
2358
2359
2360
2361
2362
2363
2364
2365
2366
2367
2368
2369
2370
2371
2372
2373
2374
2375
2376
2377
2378
2379
2380
2381
2382
2383
2384
2385
2386
2387
2388
2389
2390
2391
2392
2393
2394
2395
2396
2397
2398
2399
2400
2401
2402
2403
2404
2405
2406
2407
2408
2409
2410
2411
2412
2413
2414
2415
2416
2417
2418
2419
2420
2421
2422
2423
2424
2425
2426
2427
2428
2429
2430
2431
2432
2433
2434
2435
2436
2437
2438
2439
2440
2441
2442
2443
2444
2445
2446
2447
2448
2449
2450
2451
2452
2453
2454
2455
2456
2457
2458
2459
2460
2461
2462
2463
2464
2465
2466
2467
2468
2469
2470
2471
2472
2473
2474
2475
2476
2477
2478
2479
2480
2481
2482
2483
2484
2485
2486
2487
2488
2489
2490
2491
2492
2493
2494
2495
2496
2497
2498
2499
2500
2501
2502
2503
2504
2505
2506
2507
2508
2509
2510
2511
2512
2513
2514
2515
2516
2517
2518
2519
2520
2521
2522
2523
2524
2525
2526
2527
2528
2529
2530
2531
2532
2533
2534
2535
2536
2537
2538
2539
2540
2541
2542
2543
2544
2545
2546
2547
2548
2549
2550
2551
2552
2553
2554
2555
2556
2557
2558
2559
2560
2561
2562
2563
2564
2565
2566
2567
2568
2569
2570
2571
2572
2573
2574
2575
2576
2577
2578
2579
2580
2581
2582
2583
2584
2585
2586
2587
2588
2589
2590
2591
2592
2593
2594
2595
2596
2597
2598
2599
2600
2601
2602
2603
2604
2605
2606
2607
2608
2609
2610
2611
2612
2613
2614
2615
2616
2617
2618
2619
2620
2621
2622
2623
2624
2625
2626
2627
2628
2629
2630
2631
2632
2633
2634
2635
2636
2637
2638
2639
2640
2641
2642
2643
2644
2645
2646
2647
2648
2649
2650
2651
2652
2653
2654
2655
2656
2657
2658
2659
2660
2661
2662
2663
2664
2665
2666
2667
2668
2669
2670
2671
2672
2673
2674
2675
2676
2677
2678
2679
2680
2681
2682
2683
2684
2685
2686
2687
2688
2689
2690
2691
2692
2693
2694
2695
2696
2697
2698
2699
2700
2701
2702
2703
2704
2705
2706
2707
2708
2709
2710
2711
2712
2713
2714
2715
2716
2717
2718
2719
2720
2721
2722
2723
2724
2725
2726
2727
2728
2729
2730
2731
2732
2733
2734
2735
2736
2737
2738
2739
2740
2741
2742
2743
2744
2745
2746
2747
2748
2749
2750
2751
2752
2753
2754
2755
2756
2757
2758
2759
2760
2761
2762
2763
2764
2765
2766
2767
2768
2769
2770
2771
2772
2773
2774
2775
2776
2777
2778
2779
2780
2781
2782
2783
2784
2785
2786
2787
2788
2789
2790
2791
2792
2793
2794
2795
2796
2797
2798
2799
2800
2801
2802
2803
2804
2805
2806
2807
2808
2809
2810
2811
2812
2813
2814
2815
2816
2817
2818
2819
2820
2821
2822
2823
2824
2825
2826
2827
2828
2829
2830
2831
2832
2833
2834
2835
2836
2837
2838
2839
2840
2841
2842
2843
2844
2845
2846
2847
2848
2849
2850
2851
2852
2853
2854
2855
2856
2857
2858
2859
2860
2861
2862
2863
2864
2865
2866
2867
2868
2869
2870
2871
2872
2873
2874
2875
2876
2877
2878
2879
2880
2881
2882
2883
2884
2885
2886
2887
2888
2889
2890
2891
2892
2893
2894
2895
2896
2897
2898
2899
2900
2901
2902
2903
2904
2905
2906
2907
2908
2909
2910
2911
2912
2913
2914
2915
2916
2917
2918
2919
2920
2921
2922
2923
2924
2925
2926
2927
2928
2929
2930
2931
2932
2933
2934
2935
2936
2937
2938
2939
2940
2941
2942
2943
2944
2945
2946
2947
2948
2949
2950
2951
2952
2953
2954
2955
2956
2957
2958
2959
2960
2961
2962
2963
2964
2965
2966
2967
2968
2969
2970
2971
2972
2973
2974
2975
2976
2977
2978
2979
2980
2981
2982
2983
2984
2985
2986
2987
2988
2989
2990
2991
2992
2993
2994
2995
2996
2997
2998
2999
3000
3001
3002
3003
3004
3005
3006
3007
3008
3009
3010
3011
3012
3013
3014
3015
3016
3017
3018
3019
3020
3021
3022
3023
3024
3025
3026
3027
3028
3029
3030
3031
3032
3033
3034
3035
3036
3037
3038
3039
3040
3041
3042
3043
3044
3045
3046
3047
3048
3049
3050
3051
3052
3053
3054
3055
3056
3057
3058
3059
3060
3061
3062
3063
3064
3065
3066
3067
3068
3069
3070
3071
3072
3073
3074
3075
3076
3077
3078
3079
3080
3081
3082
3083
3084
3085
3086
3087
3088
3089
3090
3091
3092
3093
3094
3095
3096
3097
3098
3099
3100
3101
3102
3103
3104
3105
3106
3107
3108
3109
3110
3111
3112
3113
3114
3115
3116
3117
3118
3119
3120
3121
3122
3123
3124
3125
3126
3127
3128
3129
3130
3131
3132
3133
3134
3135
3136
3137
3138
3139
3140
3141
3142
3143
3144
3145
3146
3147
3148
3149
3150
3151
3152
3153
3154
3155
3156
3157
3158
3159
3160
3161
3162
3163
3164
3165
3166
3167
3168
3169
3170
3171
3172
3173
3174
3175
3176
3177
3178
3179
3180
3181
3182
3183
3184
3185
3186
3187
3188
3189
3190
3191
3192
3193
3194
3195
3196
3197
3198
3199
3200
3201
3202
3203
3204
3205
3206
3207
3208
3209
3210
3211
3212
3213
3214
3215
3216
3217
3218
3219
3220
3221
3222
3223
3224
3225
3226
3227
3228
3229
3230
3231
3232
3233
3234
3235
3236
3237
3238
3239
3240
3241
3242
3243
3244
3245
3246
3247
3248
3249
3250
3251
3252
3253
3254
3255
3256
3257
3258
3259
3260
3261
3262
3263
3264
3265
3266
3267
3268
3269
3270
3271
3272
3273
3274
3275
3276
3277
3278
3279
3280
3281
3282
3283
3284
3285
3286
3287
3288
3289
3290
3291
3292
3293
3294
3295
3296
3297
3298
3299
3300
3301
3302
3303
3304
3305
3306
3307
3308
3309
3310
3311
3312
3313
3314
3315
3316
3317
3318
3319
3320
3321
3322
3323
3324
3325
3326
3327
3328
3329
3330
3331
3332
3333
3334
3335
3336
3337
3338
3339
3340
3341
3342
3343
3344
3345
3346
3347
3348
3349
3350
3351
3352
3353
3354
3355
3356
3357
3358
3359
3360
3361
3362
3363
3364
3365
3366
3367
3368
3369
3370
3371
3372
3373
3374
3375
3376
3377
3378
3379
3380
3381
3382
3383
3384
3385
3386
3387
3388
3389
3390
3391
3392
3393
3394
3395
3396
3397
3398
3399
3400
3401
3402
3403
3404
3405
3406
3407
3408
3409
3410
3411
3412
3413
3414
3415
3416
3417
3418
3419
3420
3421
3422
3423
3424
3425
3426
3427
3428
3429
3430
3431
3432
3433
3434
3435
3436
3437
3438
3439
3440
3441
3442
3443
3444
3445
3446
3447
3448
3449
3450
3451
3452
3453
3454
3455
3456
3457
3458
3459
3460
3461
3462
3463
3464
3465
3466
3467
3468
3469
3470
3471
3472
3473
3474
3475
3476
3477
3478
3479
3480
3481
3482
3483
3484
3485
3486
3487
3488
3489
3490
3491
3492
3493
3494
3495
3496
3497
3498
3499
3500
3501
3502
3503
3504
3505
3506
3507
3508
3509
3510
3511
3512
3513
3514
3515
3516
3517
3518
3519
3520
3521
3522
3523
3524
3525
3526
3527
3528
3529
3530
3531
3532
3533
3534
3535
3536
3537
3538
3539
3540
3541
3542
3543
3544
3545
3546
3547
3548
3549
3550
3551
3552
3553
3554
3555
3556
3557
3558
3559
3560
3561
3562
3563
3564
3565
3566
3567
3568
3569
3570
3571
3572
3573
3574
3575
3576
3577
3578
3579
3580
3581
3582
3583
3584
3585
3586
3587
3588
3589
3590
3591
3592
3593
3594
3595
3596
3597
3598
3599
3600
3601
3602
3603
3604
3605
3606
3607
3608
3609
3610
3611
3612
3613
3614
3615
3616
3617
3618
3619
3620
3621
3622
3623
3624
3625
3626
3627
3628
3629
3630
3631
3632
3633
3634
3635
3636
3637
3638
3639
3640
3641
3642
3643
3644
3645
3646
3647
3648
3649
3650
3651
3652
3653
3654
3655
3656
3657
3658
3659
3660
3661
3662
3663
3664
3665
3666
3667
3668
3669
3670
3671
3672
3673
3674
3675
3676
3677
3678
3679
3680
3681
3682
3683
3684
3685
3686
3687
3688
3689
3690
3691
3692
3693
3694
3695
3696
3697
3698
3699
3700
3701
3702
3703
3704
3705
3706
3707
3708
3709
3710
3711
3712
3713
3714
3715
3716
3717
3718
3719
3720
3721
3722
3723
3724
3725
3726
3727
3728
3729
3730
3731
3732
3733
3734
3735
3736
3737
3738
3739
3740
3741
3742
3743
3744
3745
3746
3747
3748
3749
3750
3751
3752
3753
3754
3755
3756
3757
3758
3759
3760
3761
3762
3763
3764
3765
3766
3767
3768
3769
3770
3771
3772
3773
3774
3775
3776
3777
3778
3779
3780
3781
3782
3783
3784
3785
3786
3787
3788
3789
3790
3791
3792
3793
3794
3795
3796
3797
3798
3799
3800
3801
3802
3803
3804
3805
3806
3807
3808
3809
3810
3811
3812
3813
3814
3815
3816
3817
3818
3819
3820
3821
3822
3823
3824
3825
3826
3827
3828
3829
3830
3831
3832
3833
3834
3835
3836
3837
3838
3839
3840
3841
3842
3843
3844
3845
3846
3847
3848
3849
3850
3851
3852
3853
3854
3855
3856
3857
3858
3859
3860
3861
3862
3863
3864
3865
3866
3867
3868
3869
3870
3871
3872
3873
3874
3875
3876
3877
3878
3879
3880
3881
3882
3883
3884
3885
3886
3887
3888
3889
3890
3891
3892
3893
3894
3895
3896
3897
3898
3899
3900
3901
3902
3903
3904
3905
3906
3907
3908
3909
3910
3911
3912
3913
3914
3915
3916
3917
3918
3919
3920
3921
3922
3923
3924
3925
3926
3927
3928
3929
3930
3931
3932
3933
3934
3935
3936
3937
3938
3939
3940
3941
3942
3943
3944
3945
3946
3947
3948
3949
3950
3951
3952
3953
3954
3955
3956
3957
3958
3959
3960
3961
3962
3963
3964
3965
3966
3967
3968
3969
3970
3971
3972
3973
3974
3975
3976
3977
3978
3979
3980
3981
3982
3983
3984
3985
3986
3987
3988
3989
3990
3991
3992
3993
3994
3995
3996
3997
3998
3999
4000
4001
4002
4003
4004
4005
4006
4007
4008
4009
4010
4011
4012
4013
4014
4015
4016
4017
4018
4019
4020
4021
4022
4023
4024
4025
4026
4027
4028
4029
4030
4031
4032
4033
4034
4035
4036
4037
4038
4039
4040
4041
4042
4043
4044
4045
4046
4047
4048
4049
4050
4051
4052
4053
4054
4055
4056
4057
4058
4059
4060
4061
4062
4063
4064
4065
4066
4067
4068
4069
4070
4071
4072
4073
4074
4075
4076
4077
4078
4079
4080
4081
4082
4083
4084
4085
4086
4087
4088
4089
4090
4091
4092
4093
4094
4095
4096
4097
4098
4099
4100
4101
4102
4103
4104
4105
4106
4107
4108
4109
4110
4111
4112
4113
4114
4115
4116
4117
4118
4119
4120
4121
4122
4123
4124
4125
4126
4127
4128
4129
4130
4131
4132
4133
4134
4135
4136
4137
4138
4139
4140
4141
4142
4143
4144
4145
4146
4147
4148
4149
4150
4151
4152
4153
4154
4155
4156
4157
4158
4159
4160
4161
4162
4163
4164
4165
4166
4167
4168
4169
4170
4171
4172
4173
4174
4175
4176
4177
4178
4179
4180
4181
4182
4183
4184
4185
4186
4187
4188
4189
4190
4191
4192
4193
4194
4195
4196
4197
4198
4199
4200
4201
4202
4203
4204
4205
4206
4207
4208
4209
4210
4211
4212
4213
4214
4215
4216
4217
4218
4219
4220
4221
4222
4223
4224
4225
4226
4227
4228
4229
4230
4231
4232
4233
4234
4235
4236
4237
4238
4239
4240
4241
4242
4243
4244
4245
4246
4247
4248
4249
4250
4251
4252
4253
4254
4255
4256
4257
4258
4259
4260
4261
4262
4263
4264
4265
4266
4267
4268
4269
4270
4271
4272
4273
4274
4275
4276
4277
4278
4279
4280
4281
4282
4283
4284
4285
4286
4287
4288
4289
4290
4291
4292
4293
4294
4295
4296
4297
4298
4299
4300
4301
4302
4303
4304
4305
4306
4307
4308
4309
4310
4311
4312
4313
4314
4315
4316
4317
4318
4319
4320
4321
4322
4323
4324
4325
4326
4327
4328
4329
4330
4331
4332
4333
4334
4335
4336
4337
4338
4339
4340
4341
4342
4343
4344
4345
4346
4347
4348
4349
4350
4351
4352
4353
4354
4355
4356
4357
4358
4359
4360
4361
4362
4363
4364
4365
4366
4367
4368
4369
4370
4371
4372
4373
4374
4375
4376
4377
4378
4379
4380
4381
4382
4383
4384
4385
4386
4387
4388
4389
4390
4391
4392
4393
4394
4395
4396
4397
4398
4399
4400
4401
4402
4403
4404
4405
4406
4407
4408
4409
4410
4411
4412
4413
4414
4415
4416
4417
4418
4419
4420
4421
4422
4423
4424
4425
4426
4427
4428
4429
4430
4431
4432
4433
4434
4435
4436
4437
4438
4439
4440
4441
4442
4443
4444
4445
4446
4447
4448
4449
4450
4451
4452
4453
4454
4455
4456
4457
4458
4459
4460
4461
4462
4463
4464
4465
4466
4467
4468
4469
4470
4471
4472
4473
4474
4475
4476
4477
4478
4479
4480
4481
4482
4483
4484
4485
4486
4487
4488
4489
4490
4491
4492
4493
4494
4495
4496
4497
4498
4499
4500
4501
4502
4503
4504
4505
4506
4507
4508
4509
4510
4511
4512
4513
4514
4515
4516
4517
4518
4519
4520
4521
4522
4523
4524
4525
4526
4527
4528
4529
4530
4531
4532
4533
4534
4535
4536
4537
4538
4539
4540
4541
4542
4543
4544
4545
4546
4547
4548
4549
4550
4551
4552
4553
4554
4555
4556
4557
4558
4559
4560
4561
4562
4563
4564
4565
4566
4567
4568
4569
4570
4571
4572
4573
4574
4575
4576
4577
4578
4579
4580
4581
4582
4583
4584
4585
4586
4587
4588
4589
4590
4591
4592
4593
4594
4595
4596
4597
4598
4599
4600
4601
4602
4603
4604
4605
4606
4607
4608
4609
4610
4611
4612
4613
4614
4615
4616
4617
4618
4619
4620
4621
4622
4623
4624
4625
4626
4627
4628
4629
4630
4631
4632
4633
4634
4635
4636
4637
4638
4639
4640
4641
4642
4643
4644
4645
4646
4647
4648
4649
4650
4651
4652
4653
4654
4655
4656
4657
4658
4659
4660
4661
4662
4663
4664
4665
4666
4667
4668
4669
4670
4671
4672
4673
4674
4675
4676
4677
4678
4679
4680
4681
4682
4683
4684
4685
4686
4687
4688
4689
4690
4691
4692
4693
4694
4695
4696
4697
4698
4699
4700
4701
4702
4703
4704
4705
4706
4707
4708
4709
4710
4711
4712
4713
4714
4715
4716
4717
4718
4719
4720
4721
4722
4723
4724
4725
4726
4727
4728
4729
4730
4731
4732
4733
4734
4735
4736
4737
4738
4739
4740
4741
4742
4743
4744
4745
4746
4747
4748
4749
4750
4751
4752
4753
4754
4755
4756
4757
4758
4759
4760
4761
4762
4763
4764
4765
4766
4767
4768
4769
4770
4771
4772
4773
4774
4775
4776
4777
4778
4779
4780
4781
4782
4783
4784
4785
4786
4787
4788
4789
4790
4791
4792
4793
4794
4795
4796
4797
4798
4799
4800
4801
4802
4803
4804
4805
4806
4807
4808
4809
4810
4811
4812
4813
4814
4815
4816
4817
4818
4819
4820
4821
4822
4823
4824
4825
4826
4827
4828
4829
4830
4831
4832
4833
4834
4835
4836
4837
4838
4839
4840
4841
4842
4843
4844
4845
4846
4847
4848
4849
4850
4851
4852
4853
4854
4855
4856
4857
4858
4859
4860
4861
4862
4863
4864
4865
4866
4867
4868
4869
4870
4871
4872
4873
4874
4875
4876
4877
4878
4879
4880
4881
4882
4883
4884
4885
4886
4887
4888
4889
4890
4891
4892
4893
4894
4895
4896
4897
4898
4899
4900
4901
4902
4903
4904
4905
4906
4907
4908
4909
4910
4911
4912
4913
4914
4915
4916
4917
4918
4919
4920
4921
4922
4923
4924
4925
4926
4927
4928
4929
4930
4931
4932
4933
4934
4935
4936
4937
4938
4939
4940
4941
4942
4943
4944
4945
4946
4947
4948
4949
4950
4951
4952
4953
4954
4955
4956
4957
4958
4959
4960
4961
4962
4963
4964
4965
4966
4967
4968
4969
4970
4971
4972
4973
4974
4975
4976
4977
4978
4979
4980
4981
4982
4983
4984
4985
4986
4987
4988
4989
4990
4991
4992
4993
4994
4995
4996
4997
4998
4999
5000
5001
5002
5003
5004
5005
5006
5007
5008
5009
5010
5011
5012
5013
5014
5015
5016
5017
5018
5019
5020
5021
5022
5023
5024
5025
5026
5027
5028
5029
5030
5031
5032
5033
5034
5035
5036
5037
5038
5039
5040
5041
5042
5043
5044
5045
5046
5047
5048
5049
5050
5051
5052
5053
5054
5055
5056
5057
5058
5059
5060
5061
5062
5063
5064
5065
5066
5067
5068
5069
5070
5071
5072
5073
5074
5075
5076
5077
5078
5079
5080
5081
5082
5083
5084
5085
5086
5087
5088
5089
5090
5091
5092
5093
5094
5095
5096
5097
5098
5099
5100
5101
5102
5103
5104
5105
5106
5107
5108
5109
5110
5111
5112
5113
5114
5115
5116
5117
5118
5119
5120
5121
5122
5123
5124
5125
5126
5127
5128
5129
5130
5131
5132
5133
5134
5135
5136
5137
5138
5139
5140
5141
5142
5143
5144
5145
5146
5147
5148
5149
5150
5151
5152
5153
5154
5155
5156
5157
5158
5159
5160
5161
5162
5163
5164
5165
5166
5167
5168
5169
5170
5171
5172
5173
5174
5175
5176
5177
5178
5179
5180
5181
5182
5183
5184
5185
5186
5187
5188
5189
5190
5191
5192
5193
5194
5195
5196
5197
5198
5199
5200
5201
5202
5203
5204
5205
5206
5207
5208
5209
5210
5211
5212
5213
5214
5215
5216
5217
5218
5219
5220
5221
5222
5223
5224
5225
5226
5227
5228
5229
5230
5231
5232
5233
5234
5235
5236
5237
5238
5239
5240
5241
5242
5243
5244
5245
5246
5247
5248
5249
5250
5251
5252
5253
5254
5255
5256
5257
5258
5259
5260
5261
5262
5263
5264
5265
5266
5267
5268
5269
5270
5271
5272
5273
5274
5275
5276
5277
5278
5279
5280
5281
5282
5283
5284
5285
5286
5287
5288
5289
5290
5291
5292
5293
5294
5295
5296
5297
5298
5299
5300
5301
5302
5303
5304
5305
5306
5307
5308
5309
5310
5311
5312
5313
5314
5315
5316
5317
5318
5319
5320
5321
5322
5323
5324
5325
5326
5327
5328
5329
5330
5331
5332
5333
5334
5335
5336
5337
5338
5339
5340
5341
5342
5343
5344
5345
5346
5347
5348
5349
5350
5351
5352
5353
5354
5355
5356
5357
5358
5359
5360
5361
5362
5363
5364
5365
5366
5367
5368
5369
5370
5371
5372
5373
5374
5375
5376
5377
5378
5379
5380
5381
5382
5383
5384
5385
5386
5387
5388
5389
5390
5391
5392
5393
5394
5395
5396
5397
5398
5399
5400
5401
5402
5403
5404
5405
5406
5407
5408
5409
5410
5411
5412
5413
5414
5415
5416
5417
5418
5419
5420
5421
5422
5423
5424
5425
5426
5427
5428
5429
5430
5431
5432
5433
5434
5435
5436
5437
5438
5439
5440
5441
5442
5443
5444
5445
5446
5447
5448
5449
5450
5451
5452
5453
5454
5455
5456
5457
5458
5459
5460
5461
5462
5463
5464
5465
5466
5467
5468
5469
5470
5471
5472
5473
5474
5475
5476
5477
5478
5479
5480
5481
5482
5483
5484
5485
5486
5487
5488
5489
5490
5491
5492
5493
5494
5495
5496
5497
5498
5499
5500
5501
5502
5503
5504
5505
5506
5507
5508
5509
5510
5511
5512
5513
5514
5515
5516
5517
5518
5519
5520
5521
5522
5523
5524
5525
5526
5527
5528
5529
5530
5531
5532
5533
5534
5535
5536
5537
5538
5539
5540
5541
5542
5543
5544
5545
5546
5547
5548
5549
5550
5551
5552
5553
5554
5555
5556
5557
5558
5559
5560
5561
5562
5563
5564
5565
5566
5567
5568
5569
5570
5571
5572
5573
5574
5575
5576
5577
5578
5579
5580
5581
5582
5583
5584
5585
5586
5587
5588
5589
5590
5591
5592
5593
5594
5595
5596
5597
5598
5599
5600
5601
5602
5603
5604
5605
5606
5607
5608
5609
5610
5611
5612
5613
5614
5615
5616
5617
5618
5619
5620
5621
5622
5623
5624
5625
5626
5627
5628
5629
5630
5631
5632
5633
5634
5635
5636
5637
5638
5639
5640
5641
5642
5643
5644
5645
5646
5647
5648
5649
5650
5651
5652
5653
5654
5655
5656
5657
5658
5659
5660
5661
5662
5663
5664
5665
5666
5667
5668
5669
5670
5671
5672
5673
5674
5675
5676
5677
5678
5679
5680
5681
5682
5683
5684
5685
5686
5687
5688
5689
5690
5691
5692
5693
5694
5695
5696
5697
5698
5699
5700
5701
5702
5703
5704
5705
5706
5707
5708
5709
5710
5711
5712
5713
5714
5715
5716
5717
5718
5719
5720
5721
5722
5723
5724
5725
5726
5727
5728
5729
5730
5731
5732
5733
5734
5735
5736
5737
5738
5739
5740
5741
5742
5743
5744
5745
5746
5747
5748
5749
5750
5751
5752
5753
5754
5755
5756
5757
5758
5759
5760
5761
5762
5763
5764
5765
5766
5767
5768
5769
5770
5771
5772
5773
5774
5775
5776
5777
5778
5779
5780
5781
5782
5783
5784
5785
5786
5787
5788
5789
5790
5791
5792
5793
5794
5795
5796
5797
5798
5799
5800
5801
5802
5803
5804
5805
5806
5807
5808
5809
5810
5811
5812
5813
5814
5815
5816
5817
5818
5819
5820
5821
5822
5823
5824
5825
5826
5827
5828
5829
5830
5831
5832
5833
5834
5835
5836
5837
5838
5839
5840
5841
5842
5843
5844
5845
5846
5847
5848
5849
5850
5851
5852
5853
5854
5855
5856
5857
5858
5859
5860
5861
5862
5863
5864
5865
5866
5867
5868
5869
5870
5871
5872
5873
5874
5875
5876
5877
5878
5879
5880
5881
5882
5883
5884
5885
5886
5887
5888
5889
5890
5891
5892
5893
5894
5895
5896
5897
5898
5899
5900
5901
5902
5903
5904
5905
5906
5907
5908
5909
5910
5911
5912
5913
5914
5915
5916
5917
5918
5919
5920
5921
5922
5923
5924
5925
5926
5927
5928
5929
5930
5931
5932
5933
5934
5935
5936
5937
5938
5939
5940
5941
5942
5943
5944
5945
5946
5947
5948
5949
5950
5951
5952
5953
5954
5955
5956
5957
5958
5959
5960
5961
5962
5963
5964
5965
5966
5967
5968
5969
5970
5971
5972
5973
5974
5975
5976
5977
5978
5979
5980
5981
5982
5983
5984
5985
5986
5987
5988
5989
5990
5991
5992
5993
5994
5995
5996
5997
5998
5999
6000
6001
6002
6003
6004
6005
6006
6007
6008
6009
6010
6011
6012
6013
6014
6015
6016
6017
6018
6019
6020
6021
6022
6023
6024
6025
6026
6027
6028
6029
6030
6031
6032
6033
6034
6035
6036
6037
6038
6039
6040
6041
6042
6043
6044
6045
6046
6047
6048
6049
6050
6051
6052
6053
6054
6055
6056
6057
6058
6059
6060
6061
6062
6063
6064
6065
6066
6067
6068
6069
6070
6071
6072
6073
6074
6075
6076
6077
6078
6079
6080
6081
6082
6083
6084
6085
6086
6087
6088
6089
6090
6091
6092
6093
6094
6095
6096
6097
6098
6099
6100
6101
6102
6103
6104
6105
6106
6107
6108
6109
6110
6111
6112
6113
6114
6115
6116
6117
6118
6119
6120
6121
6122
6123
6124
6125
6126
6127
6128
6129
6130
6131
6132
6133
6134
6135
6136
6137
6138
6139
6140
6141
6142
6143
6144
6145
6146
6147
6148
6149
6150
6151
6152
6153
6154
6155
6156
6157
6158
6159
6160
6161
6162
6163
6164
6165
6166
6167
6168
6169
6170
6171
6172
6173
6174
6175
6176
6177
6178
6179
6180
6181
6182
6183
6184
6185
6186
6187
6188
6189
6190
6191
6192
6193
6194
6195
6196
6197
6198
6199
6200
6201
6202
6203
6204
6205
6206
6207
6208
6209
6210
6211
6212
6213
6214
6215
6216
6217
6218
6219
6220
6221
6222
6223
6224
6225
6226
6227
6228
6229
6230
6231
6232
6233
6234
6235
6236
6237
6238
6239
6240
6241
6242
6243
6244
6245
6246
6247
6248
6249
6250
6251
6252
6253
6254
6255
6256
6257
6258
6259
6260
6261
6262
6263
6264
6265
6266
6267
6268
6269
6270
6271
6272
6273
6274
6275
6276
6277
6278
6279
6280
6281
6282
6283
6284
6285
6286
6287
6288
6289
6290
6291
6292
6293
6294
6295
6296
6297
6298
6299
6300
6301
6302
6303
6304
6305
6306
6307
6308
6309
6310
6311
6312
6313
6314
6315
6316
6317
6318
6319
6320
6321
6322
6323
6324
6325
6326
6327
6328
6329
6330
6331
6332
6333
6334
6335
6336
6337
6338
6339
6340
6341
6342
6343
6344
6345
6346
6347
6348
6349
6350
6351
6352
6353
6354
6355
6356
6357
6358
6359
6360
6361
6362
6363
6364
6365
6366
6367
6368
6369
6370
6371
6372
6373
6374
6375
6376
6377
6378
6379
6380
6381
6382
6383
6384
6385
6386
6387
6388
6389
6390
6391
6392
6393
6394
6395
6396
6397
6398
6399
6400
6401
6402
6403
6404
6405
6406
6407
6408
6409
6410
6411
6412
6413
6414
6415
6416
6417
6418
6419
6420
6421
6422
6423
6424
6425
6426
6427
6428
6429
6430
6431
6432
6433
6434
6435
6436
6437
6438
6439
6440
6441
6442
6443
6444
6445
6446
6447
6448
6449
6450
6451
6452
6453
6454
6455
6456
6457
6458
6459
6460
6461
6462
6463
6464
6465
6466
6467
6468
6469
6470
6471
6472
6473
6474
6475
6476
6477
6478
6479
6480
6481
6482
6483
6484
6485
6486
6487
6488
6489
6490
6491
6492
6493
6494
6495
6496
6497
6498
6499
6500
6501
6502
6503
6504
6505
6506
6507
6508
6509
6510
6511
6512
6513
6514
6515
6516
6517
6518
6519
6520
6521
6522
6523
6524
6525
6526
6527
6528
6529
6530
6531
6532
6533
6534
6535
6536
6537
6538
6539
6540
6541
6542
6543
6544
6545
6546
6547
6548
6549
6550
6551
6552
6553
6554
6555
6556
6557
6558
6559
6560
6561
6562
6563
6564
6565
6566
6567
6568
6569
6570
6571
6572
6573
6574
6575
6576
6577
6578
6579
6580
6581
6582
6583
6584
6585
6586
6587
6588
6589
6590
6591
6592
6593
6594
6595
6596
6597
6598
6599
6600
6601
6602
6603
6604
6605
6606
6607
6608
6609
6610
6611
6612
6613
6614
6615
6616
6617
6618
6619
6620
6621
6622
6623
6624
6625
6626
6627
6628
6629
6630
6631
6632
6633
6634
6635
6636
6637
6638
6639
6640
6641
6642
6643
6644
6645
6646
6647
6648
6649
6650
6651
6652
6653
6654
6655
6656
6657
6658
6659
6660
6661
6662
6663
6664
6665
6666
6667
6668
6669
6670
6671
6672
6673
6674
6675
6676
6677
6678
6679
6680
6681
6682
6683
6684
6685
6686
6687
6688
6689
6690
6691
6692
6693
6694
6695
6696
6697
6698
6699
6700
6701
6702
6703
6704
6705
6706
6707
6708
6709
6710
6711
6712
6713
6714
6715
6716
6717
6718
6719
6720
6721
6722
6723
6724
6725
6726
6727
6728
6729
6730
6731
6732
6733
6734
6735
6736
6737
6738
6739
6740
6741
6742
6743
6744
6745
6746
6747
6748
6749
6750
6751
6752
6753
6754
6755
6756
6757
6758
6759
6760
6761
6762
6763
6764
6765
6766
6767
6768
6769
6770
6771
6772
6773
6774
6775
6776
6777
6778
6779
6780
6781
6782
6783
6784
6785
6786
6787
6788
6789
6790
6791
6792
6793
6794
6795
6796
6797
6798
6799
6800
6801
6802
6803
6804
6805
6806
6807
6808
6809
6810
6811
6812
6813
6814
6815
6816
6817
6818
6819
6820
6821
6822
6823
6824
6825
6826
6827
6828
6829
6830
6831
6832
6833
6834
6835
6836
6837
6838
6839
6840
6841
6842
6843
6844
6845
6846
6847
6848
6849
6850
6851
6852
6853
6854
6855
6856
6857
6858
6859
6860
6861
6862
6863
6864
6865
6866
6867
6868
6869
6870
6871
6872
6873
6874
6875
6876
6877
6878
6879
6880
6881
6882
6883
6884
6885
6886
6887
6888
6889
6890
6891
6892
6893
6894
6895
6896
6897
6898
6899
6900
6901
6902
6903
6904
6905
6906
6907
6908
6909
6910
6911
6912
6913
6914
6915
6916
6917
6918
6919
6920
6921
6922
6923
6924
6925
6926
6927
6928
6929
6930
6931
6932
6933
6934
6935
6936
6937
6938
6939
6940
6941
6942
6943
6944
6945
6946
6947
6948
6949
6950
6951
6952
6953
6954
6955
6956
6957
6958
6959
6960
6961
6962
6963
6964
6965
6966
6967
6968
6969
6970
6971
6972
6973
6974
6975
6976
6977
6978
6979
6980
6981
6982
6983
6984
6985
6986
|
2000-05-23 Gene Z. Ragan <gzr@eazel.com>
* libnautilus/nautilus-undo-context.c:
* libnautilus/nautilus-undo-context.h:
(impl_Nautilus_Undo_Context__get_undo_manager),
(nautilus_undo_context_new), (nautilus_undo_context_initialize):
Additonal work on making the undo context CORBA object.
* libnautilus/nautilus-undo-manager.c:
* libnautilus/nautilus-undo-manager.h:
* libnautilus/nautilus-undo-manager-private.h:
(impl_Nautilus_Undo_Manager__undo),
(nautilus_undo_manager_initialize),
(nautilus_undo_manager_add_transaction),
(nautilus_undo_manager_unregister_object),
(nautilus_get_undo_manager), (nautilus_attach_undo_manager),
Changed APIs to accept and return Nautilus_Undo_Manager CORBA
object instead of NautilusUndoManager pointer.
(nautilus_undo_setup_bonobo_control):
Added function stub to be filled later. This function
will attach an undo manager to a bonobo control.
Removed several functions no longer needed in new design,
including nautilus_undo_manager_begin_transaction(),
and nautilus_undo_manager_end_transaction().
* src/nautilus-window-menus.c: (edit_menu_undo_callback),
(nautilus_window_initialize_menus), (update_undo_menu_item):
Changed to use modified undo API
* src/ntl-app.c:
(nautilus_app_init):
Changed to use modified undo API
* src/ntl-window.c: (nautilus_window_constructed)
Changed to use modified undo API
2000-05-23 Andy Hertzfeld <andy@eazel.com>
made a preference for the anti-aliased canvas, and hooked it up so you can
switch on the fly. Anti-aliased drawing is still only partially implemented, so
it defaults off.
* libnautilus-extensions/nautilus-global-preferences.c:
(global_preferences_create_dialog),
(global_preferences_register_for_ui):
added a preference category "Appearance" and an entry for "smoother but slower"
* libnautilus-extensions/nautilus-global-preferences.h:
added NAUTILUS_PREFERENCE_ANTI_ALIASED_CANVAS
* libnautilus-extensions/nautilus-icon-canvas-item.c:
(draw_pixbuf_aa), (map_pixbuf), (nautilus_icon_canvas_item_draw),
(nautilus_icon_canvas_item_render):
made the render method draw right at different scales, partially implemented
emblems
* libnautilus-extensions/nautilus-icon-container.c: (destroy),
(nautilus_icon_container_initialize),
(nautilus_icon_container_new),
(nautilus_icon_container_set_anti_aliased_mode),
(click_policy_changed_callback),
(anti_aliased_preferences_changed):
receive notification when the anti-aliased preference changes,
and update the canvas
* libnautilus-extensions/nautilus-icon-container.h:
added nautilus_icon_container_set_anti_aliased_mode
2000-05-22 Maciej Stachowiak <mjs@eazel.com>
Completed bugzilla task 763, Test component needed for failure
cases. Two new components called "Content Loser" and "Sidebar
Loser" will fail on startup based on environment variables or in
response to menu or toolbar items (Darin suggested using silly
names, though not these specific ones).
* components/loser/README: Some docs on making the new components
fail.
* components/loser/content/main.c,
components/loser/content/nautilus-content-loser.c,
components/loser/content/nautilus-content-loser.h: New content
view which fails on demand.
* components/loser/content/nautilus-content-loser.oafinfo: oaf
activation record for it.
* components/loser/sidebar/main.c,
components/loser/sidebar/nautilus-sidebar-loser.c,
components/loser/sidebar/nautilus-sidebar-loser.h: New sidebar
panel that fails on demand.
* components/loser/sidebar/nautilus-sidebar-loser.oafinfo: oaf
activation record for it.
* components/Makefile.am, components/loser/Makefile.am,
components/loser/content/Makefile.am,
components/loser/sidebar/Makefile.am, configure.in: Added loser
components to build.
* nautilus-clean.sh: Added loser components to nautilus-clean.sh
2000-05-22 J Shane Culpepper <pepper@eazel.com>
* components/services/install/lib/eazel-install-rpm-glue.c:
(install_new_packages):
* configure.in:
* nautilus-installer/.cvsignore:
* nautilus-installer/Makefile:
* nautilus-installer/Makefile.am:
* nautilus-installer/helixcode-utils.c: (xml_get_value),
(prune_xml), (check_for_root_user), (check_for_redhat),
(determine_redhat_version), (determine_mandrake_version),
(determine_turbolinux_version), (determine_suse_version),
(determine_debian_version), (determine_distribution_type),
(get_distribution_name):
* nautilus-installer/helixcode-utils.h:
* nautilus-installer/nautilus-installer.c: (show_usage),
(show_license), (init_default_iopts), (init_default_topts),
(create_temporary_directory), (fetch_remote_package_list), (main):
Adding a simple implementation of the nautilus-installer. Beginning
of the fix for Bug # 863. This is a statically linked command line
implementation only right now.
2000-05-22 Eskil Heyn Olsen <eskil@eazel.om>
* src/ntl-app.c (display_prototype_caveat): Changed to simply use
a gnome_warning_dialog instead of a nautilus_simple_dialog. We
loose the word wrapping though. But now the main window loads
while the warning is present, plus it's a real GNOME warning box,
so be afraid...
(display_prototype_caveat): If NAUTILUS_NO_CAVEAT_DIALOG is set,
do not display the caveat warning.
* components/services/time/service/trilobite-eazel-time-service.oafinfo:
* components/services/trilobite/sample/service/trilobite-eazel-sample-service.oafinfo:
Fixed faulty tags
2000-05-22 Darin Adler <darin@eazel.com>
* components/services/time/command-line/.cvsignore:
Ignore some generated files.
* components/services/time/service/trilobite-eazel-time-service.oafinfo:
Eskil rescued this file from the attic, but he probably won't think
that's worth putting into the change log :-)
2000-05-22 Darin Adler <darin@eazel.com>
Implemented Reload for directory views.
* libnautilus-extensions/nautilus-directory-private.h:
* libnautilus-extensions/nautilus-directory-async.c:
(nautilus_directory_monitor_add_internal),
(dequeue_pending_idle_callback), (cancel_directory_load),
(directory_load_done),
(nautilus_directory_monitor_remove_internal),
(nautilus_directory_call_when_ready_internal),
(mark_all_files_unconfirmed), (start_monitoring_file_list),
(nautilus_directory_stop_monitoring_file_list),
(nautilus_directory_force_reload):
* libnautilus-extensions/nautilus-directory.c:
(call_files_changed_unref_free_list),
(nautilus_directory_notify_files_removed),
(nautilus_directory_notify_files_moved),
(nautilus_directory_file_monitor_add):
* libnautilus-extensions/nautilus-file-private.h:
* libnautilus-extensions/nautilus-file.c: (nautilus_file_get),
(destroy), (nautilus_file_monitor_remove), (nautilus_file_delete),
(nautilus_file_mark_gone), (nautilus_file_changed),
(nautilus_file_emit_changed):
Added the necessary tweaks to the async. I/O so we can handle
a reload, not just the initial load.
* libnautilus-extensions/nautilus-icon-container.h:
* libnautilus-extensions/nautilus-icon-container.c:
(nautilus_icon_container_add): Changed API so it will detect if
you try to add the same item twice and indicate it with a return
value; needed so we can handle reload.
* libnautilus-extensions/nautilus-list.c: (set_single_click_mode),
(update_single_click_mode_from_preferences),
(nautilus_list_initialize), (click_policy_changed_callback):
Fixed bug where a change in single click mode would chang the
appearance of the names in the list, but not cause a redraw when
the setting was changed.
* libnautilus/nautilus-undoable.c:
(undo_atom_destroy_callback_data), (undo_atom_destroy),
(undo_atom_destroy_callback_data_g_func_cover),
(nautilus_undo_register_full):
Fixed a bug where it would try to destroy the undo atom even when
it didn't own it.
* libnautilus/nautilus-undoable.h:
Got rid of some cruft I left in here by accident.
* src/file-manager/fm-icon-view.c: (fm_icon_view_add_file):
* src/file-manager/fm-list-view.c: (fm_list_view_add_file):
Only add the files if they are not already in the list. This is
needed for reload.
* src/ntl-main.c: (main): Tweaked this function to be easier to
understand and better organized. Also added a "desktop" option
as a start for my next task.
2000-05-22 Eskil Heyn Olsen <eskil@eazel.om>
* components/services/trilobite/src/trilobite-service-private.h:
* components/services/trilobite/src/trilobite-service-public.h:
* components/services/trilobite/src/trilobite-service.c:
Changed for the _uri change.
* components/services/trilobite/sample/service/main.c:
* components/services/trilobite/sample/command-line/main.c:
Changed for the new OAFID's.
* components/services/trilobite/idl/trilobite-service.idl:
Removed the _uri from get_icon_uri
* components/services/time/service/trilobite-eazel-time-service.c:
Better error handling, eg. for bad urls and whatnot.
* components/services/time/service/Makefile.am (pixmap_DATA):
Installs an icon for the service (now we need an icon)
* components/services/time/idl/trilobite-eazel-time-service.idl:
Added two strings to the CannotGetTime exception.
* components/services/time/command-line/main.c (main):
Updated to use the new oafids. Better error handling.
* components/services/Makefile.am (SUBDIRS):
Added the time service
* components/services/trilobite/sample/service/trilobite-eazel-sample-service.oafinfo:
* components/services/time/service/trilobite-eazel-time-service.oafinfo:
Added attributes to the oafinfo files. Also gave them some real oafids.
2000-05-22 Andy Hertzfeld <andy@eazel.com>
fixed task 514, show file/folder permissions with emblems.
* icons/Makefile.am:
* icons/emblem-noread.png:
* icons/emblem-nowrite.png:
added Susan's emblems for "cant read" and "cant write"
* libnautilus-extensions/nautilus-file.c:
(nautilus_file_get_emblem_names):
made get_emblem_names return appropriate keywords when we can't
read the file or we can't write it.
2000-05-22 John Sullivan <sullivan@eazel.com>
* src/ntl-app.c: (display_prototype_caveat): Tweaked
wording to match Maciej & Arlo's latest agreement.
2000-05-22 John Sullivan <sullivan@eazel.com>
Put up a "Nautilus is still flaky" dialog at launch so
people who obtain Nautilus some random way won't expect
too much.
* src/ntl-app.c: (display_prototype_caveat),
(nautilus_app_startup): Put up simple text-only modal
dialog at launch.
2000-05-22 Andy Hertzfeld <andy@eazel.com>
first, incomplete attempt to use the anti-aliased canvas.
For now, it's a compile-time flag in nautilus-icon-container to
optionally enable it, and there's no text drawing in aa mode yet.
* libnautilus-extensions/nautilus-icon-canvas-item.c:
(nautilus_icon_canvas_item_initialize_class), (draw_pixbuf),
(nautilus_icon_canvas_item_render):
added a render method to draw the item in anti-aliased mode
* libnautilus-extensions/nautilus-icon-container.c:
(start_rubberbanding), (nautilus_icon_container_new):
optionally put the canvas in anti-aliased mode if a compile-time
flag is set; added code to make the selection rectangle semi-transparent
in anti-aliased mode.
* libnautilus-extensions/nautilus-icon-dnd.c:
(nautilus_icon_dnd_begin_drag):
at Arlo's suggestion, changed the alpha threshold used to compute
the pixmap to drag from the pixbuf, so it doesn't look so lumpy when
there's lots of information in the alpha channel
2000-05-22 J Shane Culpepper <pepper@eazel.com>
* components/services/time/service/.cvsignore: Adding .cvsignore.
2000-05-22 J Shane Culpepper <pepper@eazel.com>
* components/services/install/command-line/eazel-install.c:
(show_usage), (main):
Cosmetic fixes to the command line options.
2000-05-22 Ian McKellar <yakk@yakk.net>
* libnautilus-extensions/nautilus-directory-private.h:
* libnautilus-extensions/nautilus-directory.c:
(nautilus_directory_new), (nautilus_directory_is_local):
* libnautilus-extensions/nautilus-directory.h:
* libnautilus-extensions/nautilus-file.c: (nautilus_file_is_local):
* libnautilus-extensions/nautilus-file.h:
Added nautilus_directory_is_local and nautilus_file_is_local.
* libnautilus-extensions/nautilus-global-preferences.c:
(global_preferences_create_dialog),
(global_preferences_register_for_ui):
* libnautilus-extensions/nautilus-global-preferences.h:
Added a preference to specify whether to display detailed remote
views.
* libnautilus-extensions/nautilus-directory-async.c:
(state_changed):
* libnautilus-extensions/nautilus-icon-factory.c:
(nautilus_icon_factory_get_icon_for_file):
Only download top left text if the file is local or if
the user has specified that they want detailed remote views.
2000-05-21 Andy Hertzfeld <andy@eazel.com>
* libnautilus-extensions/nautilus-icon-factory.c:
(make_thumbnail_path):
fixed bad bug introduced a few days ago that made thumbnailing no longer work - it was
appending ".png" to directory names.
* libnautilus-extensions/nautilus-graphic-effects.c:
(nautilus_draw_frame):
made the thumbnail frame drop shadow lighter
2000-05-21 Andy Hertzfeld <andy@eazel.com>
* components/music/nautilus-music-view.c: (get_song_text):
fixed a crash in the music view due to uninitialized variables that occured when
the album name was not present.
2000-05-21 J Shane Culpepper <pepper@eazel.com>
* components/services/install/command-line/Makefile.am:
* components/services/install/lib/Makefile.am:
* components/services/install/lib/eazel-install-protocols.c:
(http_fetch_remote_file):
* components/services/install/lib/eazel-install-protocols.h:
* components/services/install/lib/eazel-install-rpm-glue.c:
(install_new_packages):
* components/services/install/lib/eazel-install-rpm-glue.h:
Added async http fetches of remote files. Fix for bug # 810.
2000-05-21 J Shane Culpepper <pepper@eazel.com>
* components/services/install/lib/eazel-install-rpm-glue.c:
(install_new_packages), (uninstall_packages), (do_rpm_install),
(do_rpm_uninstall), (rpm_uninstall): Adding uninstall depend checks.
More fixes for Bug # 731. Added a few minor tweaks to the rpm install
functions.
2000-05-21 Ettore Perazzoli <ettore@helixcode.com>
* components/html/ntl-web-browser.c: Updated for latest GtkHTML
API that uses `GtkHTMLStream *' instead of `GtkHTMLStreamHandle'.
(browser_goto_url_real): No need to pass the url to
`gtk_html_begin()' anymore. Also, call the
`browser_url_requested()' signal explicitly because
"url_requested" is not emitted by `gtk_html_begin()' anymore.
2000-05-21 Ettore Perazzoli <ettore@helixcode.com>
* components/notes/Makefile.am (INCLUDES): Add
`-I$(top_builddir)/libnautilus'.
2000-05-20 Andy Hertzfeld <andy@eazel.com>
* components/music/mpg123_handler.c: (sigchld_handler),
(start_playing_file), (stop_playing_file):
* components/music/nautilus-music-view.c: (selection_callback),
(update_play_controls_status), (reset_playtime),
(play_status_display), (go_to_next_track), (slider_moved_callback),
(xpm_dual_label_box), (add_play_controls):
pretty much finished up playing in the music view. Made it reflect
play and pause status, advance to the next track when a song is completed,
and terminate at the end of the last song. Made clicking on a new song
while playing work properly.
* components/music/pixmaps.h:
added colored play and pause images to reflect status
2000-05-20 J Shane Culpepper <pepper@eazel.com>
* components/services/install/command-line/eazel-install.c: (main):
fixed the package list generation routine. It was corrupting the
eazel-services-config.xml file instead of creating a package-list.xml.
* components/services/install/lib/eazel-install-rpm-glue.c:
(install_new_packages), (rpm_show_progress), (do_rpm_install),
(rpm_install): Found the magic function rpmRunTransactions that allows
me to check for dependancies and get a progress callback without having
to hack rpmlib like helixcode did. These functions need to be cleaned
up because they are too long but they work very well.
This is part of the fix of Bug # 731. Need to clean up the uninstall
routine now as well using rpmRunTransactions instead of rpmErase.
2000-05-20 Andy Hertzfeld <andy@eazel.com>
* components/music/mpg123_handler.c: (get_play_status),
(get_current_frame), (set_current_frame), (parse_header_info):
* components/music/mpg123_handler.h:
* components/music/nautilus-music-view.c:
(nautilus_music_view_initialize), (get_song_text),
(music_view_set_selected_song_title), (play_status_display),
(play_current_file), (stop_if_playing), (go_to_next_track),
(go_to_previous_track), (play_button_callback),
(prev_button_callback), (next_button_callback),
(slider_press_callback), (slider_moved_callback),
(slider_release_callback), (add_play_controls),
(nautilus_music_view_update_from_uri):
made all of the play command buttons in the music view work correctly, although
they still don't give play state feedback by hilighting properly. Also, added a
timeout task, removed the volume slider and made the play time slider work.
2000-05-19 Ettore Perazzoli <ettore@helixcode.com>
* libnautilus/Makefile.am (INCLUDES): Add `-I.' so that it works
with builddir != srcdir.
* libnautilus-extensions/Makefile.am (INCLUDES): Add
`-I$(top_builddir)/libnautilus' that it works with builddir !=
srcdir. [This module needs generated include files from the
builddir.]
* src/Makefile.am (INCLUDES): Likewise.
2000-05-20 Andy Hertzfeld <andy@eazel.com>
After Maciej's checkin, I didn't kill oafd so I was getting OAFIIDs as sidebar panel labels.
We should never show the user OAFIIDs, even as a fallback, so I added a little code
to clean them up before displaying them.
* libnautilus-extensions/nautilus-view-identifier.c:
(nautilus_view_identifier_new_from_oaf_server_info):
2000-05-19 Andy Hertzfeld <andy@eazel.com>
* components/music/mpg123_handler.c: (parse_header_info),
(start_playing_file), (stop_playing_file), (pause_playing_file):
* components/music/mpg123_handler.h:
* components/music/nautilus-music-view.c: (selection_callback),
(play_button_callback), (stop_button_callback),
(pause_button_callback):
made basic playing from the music view work. The play, stop and pause button
now work, but there's still a lot more refinement necessary
2000-05-19 Maciej Stachowiak <mjs@eazel.com>
Fix bugzilla tasks #599 (hex number is bad default for meta view
names) and #631 (nead oaf query to determine metaviews).
* libnautilus-extensions/nautilus-view-identifier.h,
libnautilus-extensions/nautilus-view-identifier.c:
(nautilus_view_identifier_new, get_lang_list,
nautilus_view_identifier_new_from_oaf_server_info,
nautilus_view_identifier_free): Moved NautilusViewIdentifier code
here from ntl-uri-map.[ch].
(nautilus_view_identifier_new_from_content_view),
(nautilus_view_identifier_new_from_sidebar_panel),
(nautilus_view_identifier_free_callback),
(nautilus_view_identifier_free_list): New functions.
* libnautilus-extensions/Makefile.am: Add
nautilus-view-identifier.[ch] to build.
* src/ntl-types.h: Removed typedef for NautilusViewIdentifier.
* libnautilus-extensions/nautilus-glib-extensions.h:
* libnautilus-extensions/nautilus-glib-extensions.c
(nautilus_g_list_free_deep_custom): New function, like
`nautilus_g_list_free_deep' but lets you pass your own free
function.
(nautilus_g_list_free_deep): Use `nautilus_g_list_free_deep_custom'
(nautilus_g_list_partition): New function to destructively
partition a GList into two, depending on whether they satisfy the
provided predicate or not.
(nautilus_test_predicate), (nautilus_self_check_glib_extensions):
Added unit tests for `nautilus_g_list_partition' and for
`nautilus_g_list_equal' since the `nautilus_g_list_partition'
tests rely on it.
* libnautilus-extensions/nautilus-directory.c:
(nautilus_directory_notify_files_moved): Use
`nautilus_g_list_free_deep_custom'.
* libnautilus-extensions/nautilus-gdk-pixbuf-extensions.c
(nautilus_gdk_pixbuf_list_free): Likewise.
* libnautilus-extensions/nautilus-icon-factory.c
(nautilus_scalable_icon_list_free): Likewise.
* libnautilus-extensions/nautilus-string-list.c
(nautilus_string_list_clear): Likewise.
* nautilus-widgets/nautilus-preferences.c (pref_hash_node_free,
prefs_hash_lookup_with_implicit_registration): Likewise.
* libnautilus-extensions/nautilus-global-preferences.c,
libnautilus-extensions/nautilus-global-preferences.h
(global_preferences_create_dialog,
nautilus_global_preferences_get_sidebar_panel_view_identifiers,
nautilus_global_preferences_get_meta_view_iids,
nautilus_preferences_register_meta_view_preferences_for_ui,
global_preferences_register_for_ui): Change things around to
determine the set of sidebar panel prefs at run time, and to pass
around NautilusViewIdentifiers rather than just iid strings so we
can use the statically defined name in the oafinfo.
* src/ntl-uri-map.h, src/ntl-uri-map.c: (set_initial_content_iid,
got_file_info_callback, sidebar_panel_preference_is_on,
(add_sidebar_panel_identifiers, nautilus_navigation_info_free):
Changed things around to better handle sidebar panel (AKA meta
view) selection, and pass around both name and iid.
* src/ntl-window-msgs.c:
(nautilus_window_request_selection_change,
nautilus_window_has_really_changed,
nautilus_window_load_meta_view, nautilus_window_update_state,
nautilus_window_set_state_info): Fixed everything to pass around
ViewIdentifiers instead of iids for sidebar panels and set the
label approrpiately when activating; replaced a whole bunch of
GSList usage with GList (we can always optimize this stuff later).
* src/ntl-window.h, src/ntl-window.c: (nautilus_window_destroy,
nautilus_window_load_content_view_menu,
nautilus_window_set_content_view, nautilus_window_add_meta_view,
nautilus_window_remove_meta_view_real,
nautilus_window_remove_meta_view): Deal with the above changes
(mostly GSList -> GList changes).
* src/ntl-view-bonobo-control.c, src/ntl-view-bonobo-subdoc.c,
src/ntl-view-nautilus.c, src/ntl-view-private.h: Remove all
get_label related calls since we get that from the oafinfo now.
* libnautilus/nautilus-meta-view-frame.h,
libnautilus/nautilus-meta-view-frame.c:
(nautilus_meta_view_frame_initialize,
nautilus_meta_view_frame_new_from_bonobo_control,
nautilus_meta_view_frame_destroy): Remove
`nautilus_meta_view_frame_set_label' machinery and associated
machinery since we now get the label statically from the oafinfo.
* components/history/ntl-history-view.c: (make_obj): Don't call
`nautilus_meta_view_frame_set_label' any more, the label is now
statically determined from the oafinfo file.
* components/notes/ntl-notes.c: (make_notes_view): Likewise.
* components/websearch/ntl-web-search.c: (make_obj): Likewise.
* components/help/hyperbola-nav-index.c: Likewise.
(hyperbola_navigation_index_new): Likewise.
* components/help/hyperbola-nav-search.c: Likewise.
(hyperbola_navigation_search_new): Likewise.
* components/help/hyperbola-nav-tree.c: Likewise.
(hyperbola_navigation_tree_new): Likewise.
* src/ntl-meta-view.h, src/ntl-meta-view.c:
(nautilus_meta_view_set_label),
(nautilus_meta_view_get_label): Have an explicit value to set,
rather than trying to get it through CORBA. This is kind of a
hack, really we should pass around a label and a NautilusMetaView
separately and remove this stuff.
* components/help/hyperbola.oafinfo,
components/notes/ntl-notes.oafinfo,
components/websearch/ntl-web-search.oafinfo,
components/history/ntl-history-view.oafinfo: Updated to include
latest Nautilus attributes.
2000-05-19 Andy Hertzfeld <andy@eazel.com>
* components/music/Makefile.am:
* components/music/mpg123_handler.c: (sigchld_handler),
(parse_header_info), (parse_frame_info), (stop_data),
(song_finished), (parse_pipe_buffer), (check_pipe_for_data),
(read_data), (start_playing_file), (stop_playing_file),
(do_mpg123_pause):
* components/music/mpg123_handler.h:
* components/music/nautilus-music-view.c: (selection_callback),
(play_button_callback), (stop_button_callback),
(pause_button_callback), (prev_button_callback),
(next_button_callback), (add_play_controls):
added playing code to the music view, but it's still not working
so it's disabled
2000-05-19 Eskil Heyn Olsen <eskil@eazel.om>
* configure.in:
added the components/services/time/ makefiles
* components/services/time/service/trilobite-eazel-time-service.oafinfo:
Fixed the horribly cut'n'paste errors.
* components/services/time/service/trilobite-eazel-time-service-public.h:
Stripped some superflous stuff from the TrilobiteEazelTimeService
structure.
* components/services/time/command-line/main.c (main):
Implemented the basic cli for the time service
* components/services/time/idl/trilobite-eazel-time-service.idl:
The check_time now returns the difference instead of a bool. If
diff != 0, your clock is wrong (or the server is).
* components/services/time/command-line/Makefile.am:
Lot of juju to make the time service cli work
* components/services/trilobite/src/trilobite-service.c
(trilobite_service_create_corba_object): Uncommented some
more g_message noise
* components/services/trilobite/src/libtrilobited.h:
Now assuming the libtrilobited headers are in libtrilobite/, not
libtrilobited/
* components/services/trilobite/sample/command-line/Makefile.am:
Some idl compiling rearranging.
2000-05-19 Gene Z. Ragan <gzr@eazel.com>
* libnautilus/nautilus-undo-context.c:
* libnautilus/nautilus-undo-context.h:
(impl_Nautilus_Undo_Context__destroy),
(impl_Nautilus_Undo_Context__create),
(impl_Nautilus_Undo_Context__get_undo_manager),
(nautilus_undo_context_new), (nautilus_undo_context_initialize),
(nautilus_undo_context_initialize_class), (destroy):
GTK and CORBA object that acts as interface to an undo manager.
* libnautilus/Makefile.am:
Added entries for new NautilusUndoContext files.
* libnautilus/nautilus-undo-manager.c:
(impl_Nautilus_Undo_Manager__forget), (nautilus_undo_manager_undo),
(nautilus_undo_manager_unregister_object),
(get_current_transaction_name), (free_undo_manager_list_data),
(prune_undo_manager_list):
Removed all references to NautilusUndoTransaction and changed them to use
the Nautilus_Undo_Transaction CORBA object instead.
2000-05-19 Darin Adler <darin@eazel.com>
* components/services/trilobite/sample/command-line/.cvsignore:
* components/services/trilobite/sample/service/.cvsignore:
File name changes.
* libnautilus-extensions/nautilus-directory.c:
(nautilus_directory_file_monitor_add),
(nautilus_self_check_directory):
* libnautilus-extensions/nautilus-directory.h:
* src/file-manager/fm-directory-view.c: (finish_loading_uri):
Added reload interface.
* libnautilus/nautilus-undoable.c: (nautilus_undo_register),
(undo_atom_destroy), (undo_atom_destroy_notify_cover),
(undo_atom_destroy_g_func_cover), (save_callback),
(restore_callback), (nautilus_undo_register_full),
(nautilus_undo_unregister), (nautilus_undo):
* libnautilus/nautilus-undoable.h:
Implemented new simplified Undo API.
* libnautilus-extensions/nautilus-entry.c:
(nautilus_entry_initialize), (nautilus_entry_destroy),
(nautilus_entry_key_press), (nautilus_entry_changed),
(register_edit_undo), (update_undo_text),
(restore_from_undo_snapshot_callback),
(nautilus_entry_enable_undo):
* libnautilus-extensions/nautilus-icon-container.c:
(hide_rename_widget):
* libnautilus-extensions/nautilus-icon-text-item.c: (iti_event),
(register_rename_undo), (restore_from_undo_snapshot_callback):
* src/nautilus-bookmarks-window.c: (on_window_delete_event):
* src/nautilus-location-bar.c: (destroy):
Use new simplified Undo API.
* libnautilus/nautilus-undo-manager.h:
Remove UNDO_MANAGER_NAME, which is no longer used.
* src/file-manager/fm-icon-view.c:
(icon_position_changed_callback): Fixed a bad g_free that was
cause seg faults when you resized an icon.
2000-05-19 John Sullivan <sullivan@eazel.com>
Finished task 174 (make "Open in new window" preference
sensible)
* libnautilus-extensions/nautilus-global-preferences.c:
(global_preferences_create_dialog),
(global_preferences_register_for_ui): Consolidated "Window
Options" pane & "Click Policy" pane into new "Directory
Views" pane, to make it clear that these preferences apply
just to directory views. Also removed unimplemented "use
existing window for same location" preference that is not
in our plans. Tweaked wording a little.
* libnautilus-extensions/nautilus-global-preferences.h:
* libnautilus-extensions/nautilus-icon-canvas-item.c:
(in_single_click_mode): New function, checks preference.
(draw_or_measure_label_text): Don't draw underlines on icons
if we're not in single-click mode.
2000-05-19 John Sullivan <sullivan@eazel.com>
A few tweaks to this new class inspired by Darin's
review.
* libnautilus-extensions/nautilus-keep-last-vertical-box.c:
(nautilus_keep_last_vertical_box_new): More comments.
(nautilus_keep_last_vertical_box_size_allocate): More comments.
Also now handles the case where the last item doesn't fit
even all by itself by moving & shrinking it to fit. Previously
the last item would be left at its original position & size in
this case.
2000-05-19 Gene Z. Ragan <gzr@eazel.com>
More undo framework work. Still incomplete.
* libnautilus-extensions/nautilus-entry.c:
(nautilus_entry_changed):
Modified to use new undo manager location API
* libnautilus-extensions/nautilus-icon-text-item.c:
(iti_event),
(restore_from_undo_snapshot_callback):
Modified to use new undo manager location API
* libnautilus/nautilus-undo-manager.c:
* libnautilus/nautilus-undo-manager.h:
(impl_Nautilus_Undo_Manager__create),
(impl_Nautilus_Undo_Manager__append),
(impl_Nautilus_Undo_Manager__forget),
(nautilus_undo_manager_begin_transaction),
(nautilus_undo_manager_end_transaction),
(nautilus_undo_manager_undo), (nautilus_undo_manager_redo),
(nautilus_undo_manager_add_transaction),
(nautilus_undo_manager_unregister_object),
(free_undo_manager_list_data), (prune_undo_manager_list):
Modified to use new API and Undo::Manager::Transaction
* libnautilus/nautilus-undo-transaction.c:
* libnautilus/nautilus-undo-transaction.h:
(impl_Nautilus_Undo_Transaction__destroy),
(impl_Nautilus_Undo_Transaction__create),
(impl_Nautilus_Undo_Transaction__get_undo_description),
(impl_Nautilus_Undo_Transaction__get_redo_description),
(impl_Nautilus_Undo_Transaction__get_base_description),
(impl_Nautilus_Undo_Transaction__undo),
(nautilus_undo_transaction_new),
(nautilus_undo_transaction_initialize),
(nautilus_undo_transaction_destroy),
(nautilus_undo_transaction_initialize_class),
(nautilus_undo_transaction_undo),
(nautilus_undo_transaction_contains_object):
Added support for new Undo::Manager::Transaction object
2000-05-19 Ali Abdin <aliabdin@aucegypt.edu>
* components/help/converters/gnome-db2html2/gdb3html.c:
(main): Fixed a typo - This fixed BUG #930
* components/help/converters/gnome-info2html2/main.c:
(main): Fixed it to it looks in /usr/info always and then any
other fir found in the INFOPATH variable - Fixes bug #934 but
there is a suggestion in there I think should be implemented
(since I wrote it - DOH!).
2000-05-19 Andy Hertzfeld <andy@eazel.com>
* components/music/nautilus-music-view.c:
(nautilus_music_view_initialize), (get_song_text),
(music_view_set_selected_song_title), (selection_callback),
(sort_by_bitrate), (sort_song_list), (add_play_controls),
(nautilus_music_view_update_from_uri):
fixed bug where sorting by time was wrong because I added the bitrate column,
added sorting by bitrate,
more work on the play controls, but they don't actually play yet
2000-05-18 Eskil Heyn Olsen <eskil@eazel.om>
* components/services/trilobite/sample/command-line/Makefile.am:
* components/services/trilobite/sample/command-line/main.c:
Did some nautilus to trilobite renaming.
* components/services/time/service/trilobite-eazel-time-service.oafinfo:
* components/services/time/service/main.c:
* components/services/time/service/trilobite-eazel-time-service-public.h:
* components/services/time/service/trilobite-eazel-time-service-private.h:
* components/services/time/service/trilobite-eazel-time-service.c:
* components/services/time/service/Makefile.am:
* components/services/time/idl/trilobite-eazel-time-service.idl:
Added the first stuff for the time service
* components/services/trilobite/src/trilobite-service.c:
removed some g_messages
* components/services/trilobite/sample/service/sample-service-public.h (struct _SampleService):
removed superflous element servant;
* components/services/trilobite/sample/service/sample-service-impl.c:
Added a lot of comments for educational purpose. Also changed
the parent class pointer to be of type BonoboObjectClass.
* components/services/trilobite/sample/service/main.c:
Did some nautilus to trilobite renaming.
* components/services/trilobite/sample/service/Makefile.am:
Did some nautilus to trilobite renaming.
2000-05-19 Yukihiro Nakai <nakai@gnome.gr.jp>
* configure.in: Add Japanese from Akira Tagoh.
2000-05-18 John Sullivan <sullivan@eazel.com>
Finished task 598 (Command button layout should account
for window height)
* libnautilus-extensions/nautilus-keep-last-vertical-box.h,
* libnautilus-extensions/nautilus-keep-last-vertical-box.c:
New files, subclass of GtkVBox that truncates contents to
fit, except last item which is always kept. (GtkVBox in the
same situation just merrily places its child widgets outside
of its allocation.)
* libnautilus-extensions/Makefile.am: Build the new files.
* src/ntl-index-panel.c:
(make_button_box): Use NautilusKeepLastVerticalBox so only
as many command buttons appear as fit, and the "Open with ..."
button always appears; also embed this box in a GtkHBox to
get horizontal sizing the way we want it.
(add_command_buttons): Add (not yet active) "Open with ..."
button.
(nautilus_index_panel_update_buttons): Throw away the
GtkHBox containing the button box instead of the button
box itself.
2000-05-18 Andy Hertzfeld <andy@eazel.com>
* components/music/nautilus-music-view.c: (extract_initial_number),
(fetch_song_info):
put in heuristic to grab the track number from the beginning of
the file name if it's present there and not encoded in the id3 tag
2000-05-18 Andy Hertzfeld <andy@eazel.com>
* libnautilus-extensions/nautilus-graphic-effects.c,h:
(nautilus_draw_frame):
added routine to draw a frame with a drop-shadow into a pixbuf
* libnautilus-extensions/nautilus-icon-factory.c:
(make_thumbnail_path), (nautilus_icon_factory_make_thumbnails):
at Arlo's suggestion, made thumbnails have drop shadows. Enhanced
the routine that was drawing the frame and moved it into graphic
effects. Also, fixed an embarrasing bug where thumbnails for
non-png images were being stored in weird directories with the
proper extension.
2000-05-18 Darin Adler <darin@eazel.com>
* libnautilus/Makefile.am:
* src/file-manager/Makefile.am:
Eskil showed me how to fix these so they'd work when orbit-idl
was not in the path at compile time.
2000-05-18 Darin Adler <darin@eazel.com>
* HACKING: Change format to make popt "pop" out more.
* libnautilus-extensions/nautilus-entry.h:
* src/file-manager/fm-properties-window.c: (create_basic_page):
* src/nautilus-bookmarks-window.c: (on_text_field_focus_in_event),
(on_window_delete_event):
* src/nautilus-location-bar.c: (nautilus_location_bar_enable_undo):
* src/nautilus-location-bar.h:
* src/nautilus-window-menus.c: (edit_menu_undo_callback),
(bookmarks_menu_add_bookmark_callback),
(bookmarks_menu_edit_bookmarks_callback),
(get_or_create_bookmarks_window), (nautilus_bookmarks_exiting),
(edit_bookmarks), (nautilus_window_initialize_menus),
(update_undo_menu_item):
* src/ntl-app.c: (nautilus_app_init), (nautilus_app_destroy):
* libnautilus-extensions/nautilus-icon-container.c:
(nautilus_icon_container_start_renaming_selected_item):
* libnautilus-extensions/nautilus-entry.c:
(nautilus_entry_key_press), (nautilus_entry_enable_undo):
* libnautilus/nautilus-undo-manager.c:
(nautilus_undo_manager_begin_transaction),
(nautilus_undo_manager_unregister_object),
(prune_undo_manager_list), (nautilus_get_undo_manager),
(nautilus_attach_undo_manager), (nautilus_share_undo_manager):
* libnautilus/nautilus-undo-manager.h:
* src/ntl-window-private.h:
* src/ntl-window.c: (nautilus_window_constructed),
(nautilus_window_real_set_content_view),
(nautilus_window_get_undo_manager):
* src/ntl-window.h:
Got rid of the undo manager parameter for the enable_undo
operation.
Eliminated code that sets up the undo manager except for the top
widgets. We only need it attached to windows and to the top widget
in each component.
Change callers to get the undo manager in a few simple ways
instead of calling gtk_object_get_data directly. Added some calls
to attach the undo manager to an arbitrary object.
* libnautilus/nautilus-undo.idl: Added comments to the IDL and
also added the Undo::Context class.
* libnautilus/nautilus-view-component.idl: Removed the dependency
on the undo IDL and the undo_manager attribute.
* src/nautilus-bookmarks-window.h:
* src/nautilus-bookmarks-window.c: (create_bookmarks_window):
Changed interface to take object to inherit the undo manager from
instead of the undo manager itself. Got rid of unnecesary undo
manager setting.
(nautilus_bookmarks_window_save_geometry): Also changed interface
to use GtkWindow instead of GtkWidget.
2000-05-18 John Sullivan <sullivan@eazel.com>
Added the ability to switch sort order in Icons view. Note
that one time while developing this I saw a problem at startup
where the icons all danced back and forth a few pixels forever.
I can't reproduce this, so I don't think my changes caused it,
but be wary of the evil jig-dancing icons.
* libnautilus-extensions/nautilus-metadata.h:
Added #define for icon view sort direction.
* src/file-manager/fm-icon-view.c:
Added sort_reversed to FMIconViewDetails;
(update_layout_menus): Set sensitivity of "Ascending"/"Descending"
menu items appropriately, and activate the right one.
(set_sort_reversed), (get_sort_reversed_from_menu_path),
(sort_direction_callback): New functions used for setting
the sort direction.
(fm_icon_view_begin_loading): Read sort direction from metadata.
(fm_icon_view_merge_menus): Add sort-direction menu items to
Layout menu.
(icon_container_compare_icons_callback): Take sort direction
into account.
2000-05-18 Andy Hertzfeld <andy@eazel.com>
* components/music/Makefile.am:
* components/music/nautilus-music-view.c:
(nautilus_music_view_initialize), (format_play_time),
(button_callback), (slider_press_callback),
(slider_moved_callback), (slider_release_callback),
(volume_callback), (xpm_label_box), (add_play_controls),
(nautilus_music_view_update_from_uri):
added a "bitrate" column to the music view, started adding
the play controls, but not yet finished, so they're
disabled for now
* components/music/pixmaps.h:
some inline images for the buttons
2000-05-17 Eskil Heyn Olsen <eskil@eazel.om>
* components/services/trilobite/sample/service/sample-service-impl.c:
Added a bug for the destroyer
* components/services/trilobite/sample/service/main.c:
the trilobite creating now uses gtk_object_new to
set the name, version and such.
* components/services/trilobite/src/trilobite-service-public.h
* components/services/trilobite/src/trilobite-service.c:
defined a set of set_* methods for the name, version
and friends. Also added gtk_arg stuff to trilobite for
these fields. The default of these is now NULL. Had to
restructure the _initialize call to make gtk_object_new
work.
2000-05-17 Pavel Cisler <pavel@eazel.com>
* src/file-manager/dfos-xfer.c: (fs_xfer), (fs_move_to_trash):
Fixed 636 - don't allow copying into Trash. Also added
checks for Trashing the Trash, moving or copying the Trash,
Trashing the parents of Trash, moving and copying folders in
their children.
* libnautilus-extensions/nautilus-icon-dnd.c:
(nautilus_icon_container_selection_items_local):
Fix 625: move uri_is_parent into a new call in GnomeVFS and
added more features that I needed for the above fix.
2000-05-17 Ramiro Estrugo <ramiro@eazel.com>
* nautilus-widgets/nautilus-caption-table.c:
(nautilus_caption_table_resize), (nautilus_caption_table_new):
* nautilus-widgets/nautilus-caption-table.h:
Make the resize function public.
2000-05-17 John Sullivan <sullivan@eazel.com>
* src/ntl-index-panel.c: (make_button_box),
(nautilus_index_panel_initialize), (add_command_buttons):
A little widget-packing tweaking with the command buttons.
It's not right yet, but I want to check this in so I can
work on it later from home.
2000-05-17 Andy Hertzfeld <andy@eazel.com>
* components/music/nautilus-music-view.c: (selection_callback),
(release_song_info), (is_mp3_file), (read_id_tag),
(scan_for_header), (fetch_bit_rate), (fetch_play_time),
(format_play_time), (fetch_song_info),
(nautilus_music_view_update_from_uri):
fixed bug 722, music view should use gnome-vfs for all file operations,
by rewriting the above routines to use gnome-vfs
2000-05-17 Gene Z. Ragan <gzr@eazel.com>
First phase of modifying undo code. These changes
affect the way undo is handled internally to Nautilus and
also defines a new IDL. This is work in progress.
* libnautilus-extensions/nautilus-entry.c:
Modified to use gtk_object_get_data() mechanism to locate undo manager
* libnautilus-extensions/nautilus-icon-container.c:
(nautilus_icon_container_start_renaming_selected_item):
Modified to use gtk_object_get_data() mechanism to locate undo manager
* libnautilus-extensions/nautilus-icon-text-item.c: (iti_event),
(restore_from_undo_snapshot_callback):
Modified to use gtk_object_get_data() mechanism to locate undo manager
* libnautilus/.cvsignore:
Added generated IDL source and header files to ignore
* libnautilus/Makefile.am:
Modified makefile to include new IDL file for undo manager
* libnautilus/nautilus-undo-manager.c:
(impl_Nautilus_Undo_Manager__destroy),
(impl_Nautilus_Undo_Manager__create),
(impl_Nautilus_Undo_Manager__append),
(impl_Nautilus_Undo_Manager__forget),
(nautilus_undo_manager_initialize),
(nautilus_undo_manager_initialize_class),
(nautilus_undo_manager_begin_transaction),
(nautilus_undo_manager_end_transaction),
(nautilus_undo_manager_undo), (nautilus_undo_manager_redo),
(nautilus_undo_manager_add_transaction),
(nautilus_undo_manager_unregister_object),
(nautilus_undo_manager_can_undo), (nautilus_undo_manager_can_redo),
(get_current_transaction_name),
(nautilus_undo_manager_get_current_undo_transaction_name),
(nautilus_undo_manager_get_current_redo_transaction_name),
(destroy), (nautilus_undo_manager_enable_redo),
(nautilus_undo_manager_set_queue_depth),
(free_undo_manager_list_data), (prune_undo_manager_list):
Changes to support new IDL and new undo manager mechanism.
* libnautilus/nautilus-undo.idl:
New undo manager IDL file
* libnautilus/nautilus-undo-manager-component.idl:
Removed old undo manager IDL file
* src/file-manager/fm-properties-window.c:
(create_basic_page):
Modified to use gtk_object_get_data() mechanism to locate undo manager
* src/nautilus-bookmarks-window.c:
(create_bookmarks_window),
(on_text_field_focus_in_event),
(on_window_delete_event):
Modified to use gtk_object_get_data() mechanism to locate undo manager
* src/nautilus-location-bar.c:
(nautilus_location_bar_set_location),
(nautilus_location_bar_enable_undo):
Modified to use gtk_object_get_data() mechanism to locate undo manager
* src/nautilus-window-menus.c:
(edit_menu_undo_callback),
(edit_menu_cut_callback),
(bookmarks_menu_edit_bookmarks_callback),
(get_bookmarks_window),
(nautilus_bookmarks_exiting),
(nautilus_window_edit_bookmarks),
(nautilus_window_initialize_menus),
(update_undo_menu_item):
Modified to use gtk_object_get_data() mechanism to locate undo manager
* src/ntl-app.c:
(impl_Nautilus_Application__get_view_windows),
(impl_Nautilus_Application_new_view_window),
(impl_Nautilus_Application_supports),
(impl_Nautilus_Application_create_object),
(impl_Nautilus_Application__create), (nautilus_app_get_type),
(nautilus_app_class_init), (nautilus_app_init), (nautilus_app_new),
(nautilus_app_destroy), (nautilus_app_startup),
(nautilus_app_create_window):
Modified to use gtk_object_get_data() mechanism to locate undo manager.
Added and modified IDL C stubs to match new IDL interface.
* src/ntl-window.c:
(nautilus_window_constructed),
(nautilus_window_set_arg):
Changed order that arguments are set at time of main window create so the app instance
variable is valid when the main window is contructed.
2000-05-17 J Shane Culpepper <pepper@eazel.com>
* components/services/install/command-line/eazel-install.c:
(show_usage), (generate_new_package_list),
(create_temporary_directory), (fetch_remote_package_list), (main):
* components/services/install/lib/eazel-install-metadata.c:
(create_default_metadata), (create_default_configuration_metafile),
(xml_doc_sanity_checks), (get_urltype_from_string),
(get_boolean_value_from_string),
(init_default_install_configuration),
(init_default_transfer_configuration):
* components/services/install/lib/eazel-install-metadata.h:
* components/services/install/lib/eazel-install-rpm-glue.c:
(install_new_packages), (uninstall_packages):
* components/services/install/lib/eazel-install-rpm-glue.h:
* components/services/install/lib/eazel-install-tests.c:
* components/services/install/lib/eazel-install-tests.h:
* components/services/install/lib/eazel-install-types.h:
* components/services/install/lib/eazel-install-xml-package-list.c:
(generate_xml_package_list), (parse_pkg_template):
Partial fix of bug #814. Broke alot of functions into more maintainable
functions. Fixed bug #730. Added a --force option to remove hardwired
rpm filters. Fixed bug #811. Moved metadata home to /var/eazel/services
until we get the root dependancy fixed. This will then allow metadata
to be stored in the user directory. Lots of cosmetic cleanups to make
the code more readable.
2000-05-17 John Sullivan <sullivan@eazel.com>
* src/file-manager/fm-list-view.c: (create_list):
Fixed bug 357 (Text not vertically centered when starting
up in List View): Wait until after "map" signal before
setting row height, to work around bug/design flaw in
GtkCList.
2000-05-17 Darin Adler <darin@eazel.com>
* libnautilus-extensions/nautilus-icon-container.h:
Added comments.
* libnautilus-extensions/nautilus-icon-factory.c:
(scale_image_and_rectangle): Added a minimum height and width to
avoid problems with scaling things down to 0.
* libnautilus-extensions/nautilus-list.c:
(nautilus_list_initialize_class), (insert_row):
* src/file-manager/fm-list-view.c: (add_to_list):
Moved GtkCList workaround into NautilusList so all clients can get
the advantage of it instead of just FMListView. Also eliminated
some unneeded empty functions for signals, since NULL works for an
empty signal handler.
2000-05-17 John Sullivan <sullivan@eazel.com>
Started tweaking with the command buttons in the sidebar
as a step towards hooking them into the final MIME API.
* libnautilus-extensions/nautilus-mime-type.c:
Removed verbs from display names, since we don't plan
to support arbitrary verbs (i.e., alternate verbs to
"Open") at least for this release.
* src/ntl-index-panel.c: (add_command_buttons): Simplify code
a little by using gtk_button_new_with_label; use "Open with"
terminology; fix memory leak with command string stored in button.
(nautilus_index_panel_update_info): Deleted obsolete comment.
* src/ntl-window.c: (nautilus_window_load_content_view_menu):
Added (currently insensitive) "View as ..." item to menu.
2000-05-17 Ramiro Estrugo <ramiro@eazel.com>
* components/mozilla/nautilus-mozilla-content-view.c:
(nautilus_mozilla_content_view_initialize),
(nautilus_mozilla_content_view_load_uri),
(mozilla_content_view_request_progress_change),
(mozilla_content_view_request_location_change),
(substitute_prefix), (mozilla_content_view_hack_uri),
(mozilla_content_view_unhack_uri),
(mozilla_notify_location_change_callback),
(mozilla_title_changed_callback),
(mozilla_location_changed_callback), (mozilla_net_status_callback),
(mozilla_link_message_callback), (mozilla_progress_callback),
(mozilla_open_uri_callback):
Add initial support for stopping the loading of a uri in mozilla
in order for nautilus to deal with it. It works for some
protocols, like ftp. Its broken on some more fundamental ones,
like file://.
Move the uri protocol moz: hack into its own place in order to
make it easy to fix later once the real problem is fixed.
Add a bunch of paranoid assertions.
Bottleneck location change requests to nautilus through a single
function.
2000-05-17 Eskil Heyn Olsen <eskil@eazel.om>
* components/services/trilobite/idl/sample-service.idl:
* components/services/trilobite/sample/service/sample-service-public.h:
* components/services/trilobite/sample/service/sample-service-impl.c:
* components/services/trilobite/sample/service/main.c:
The sample service is now a Bonobo::Unknown subclass. The factory
creates a trilobite and adds the interface of the sample service.
* components/services/trilobite/src/libtrilobited.h:
* components/services/trilobite/src/trilobite-service.c:
* components/services/trilobite/src/trilobite-service-public.h:
Mutated the code and especially the object creation/(v)epv binding
so calls now correctly end up in the defined methods. This almost
completed 851, except that this is only the most basic of the
frameworks.
* components/services/trilobite/sample/command-line/main.c:
The sample cli now checks for the interface support, and
if a trilobite, dumps the standard info, if a sample service,
uses the two sample calls.
2000-05-16 Andy Hertzfeld <andy@eazel.com>
* components/music/nautilus-music-view.c: (scan_for_header),
(fetch_bit_rate), (fetch_play_time), (format_play_time),
(fetch_song_info), (nautilus_music_view_update_from_uri):
fixed bug 723, mp3 play time calculation not right for non-128kbps, by
reading the header and fetching the bitrate, then using it for the time
calculation.
2000-05-16 Pavel Cisler <pavel@eazel.com>
* src/file-manager/fm-list-view.c: (add_to_list):
Fix 834 - bad keyboard focus behavior. Added a workaround for
GtkCList broken behavior that moved the focused item to a pretty much
random point when populating the list.
2000-05-16 Pavel Cisler <pavel@eazel.com>
* libnautilus-extensions/nautilus-icon-container.c:
(select_previous_or_next_name):
Fixed a crash when using Tab and Shift-Tab in an empty folder,
caused by an uninitialized variable.
2000-05-16 Andy Hertzfeld <andy@eazel.com>
* components/music/nautilus-music-view.c:
(nautilus_music_view_initialize), (click_column_callback),
(fetch_play_time), (format_play_time), (fetch_song_info),
(sort_by_track_number), (sort_by_title), (sort_by_artist),
(sort_by_time), (sort_song_list),
(nautilus_music_view_update_from_uri):
fixed bug #891, clicking on the tabs in the music view doesn't sort,
by adding the appropriate sorting functions and a callback
to switch the sort mode when you click the column header. Also, a
bit of restructuring and clean up.
2000-05-16 Pavel Cisler <pavel@eazel.com>
* src/file-manager/fm-list-view.c: (make_sorted_row_array),
(select_row_common), (select_matching_name_callback),
(create_list):
Fix a problem in my new typeselect code where it would only
work properly if the list was sorted alphabetically to begin with.
* libnautilus-extensions/nautilus-list.c:
(nautilus_list_key_press):
* src/file-manager/fm-list-view.c: (make_sorted_row_array),
(select_row_common), (select_matching_name_callback),
(select_previous_next_common), (select_previous_name_callback),
(select_next_name_callback), (create_list):
Added support for Tab and Shift-Tab selecting the alphabetically
next and previous files. Reorganized the code a bit to share more
with the typeselect calls.
2000-05-16 Darin Adler <darin@eazel.com>
* check-FIXME.pl: Maciej helped me refine the find command so it
doesn't go into po or CVS directories and only looks at files.
* components/music/nautilus-music-view.c:
(nautilus_music_view_background_changed): Turned the metadata saving
code back on. I think I fixed the problem that made Andy turn it off.
* libnautilus-extensions/nautilus-directory-metafile.c:
(set_metadata_eat_value): Fixed a double-delete problem. Oops.
(nautilus_directory_set_metadata): Fixed code that wasn't emitting the
metadata_changed signal enough.
* libnautilus-extensions/nautilus-gdk-extensions.c:
(nautilus_fill_rectangle_with_color): Fixed a crash in Gdk. It turns
out gdk_rgb needs to be initialized, even though I don't think that
was the intent.
2000-05-16 John Sullivan <sullivan@eazel.com>
Some work getting the menu items for "Open With" in place,
and some related cleanup. "Open With" submenus now appear
in the File and context menus, but filled with bogus
insensitive items.
* src/file-manager/fm-directory-view.h:
Add #defines for bonobo-style menu paths for "Open With"-related
items.
* src/file-manager/fm-directory-view.c:
(compute_menu_item_info): Added new cases.
(append_gtk_menu_item_with_view): Renamed from
"append_selection_menu_item" because it's now used more
generally; checks for view != NULL before using view.
(append_gtk_menu_item): New function, calls _with_view
with some default values.
(append_selection_menu_subtree): New function.
(fm_directory_view_real_create_background_context_menu_items):
Uses append_gtk_menu_item now instead of duplicating some code/data.
(add_open_with_gtk_menu_item), (create_open_with_gtk_menu):
New functions, used to create the "Open With" submenu in
the context menu.
(fm_directory_view_real_create_selection_context_menu_items):
Adds "Open With" submenu to context menu.
(insert_bonobo_menu_subtree), (add_open_with_bonobo_menu_item),
(reset_bonobo_open_with_menu): New functions, used to create
the "Open With" submenu in the File menu in the menu bar.
(fm_directory_view_real_merge_menus): Adds "Open With" submenu
to File menu.
(fm_directory_view_real_update_menus): Updates the "Open With"
submenu to match selection.
(fm_directory_view_get_context_menu_index): Updated to match
current reality.
2000-05-16 Andy Hertzfeld <andy@eazel.com>
* components/music/nautilus-music-view.c:
(nautilus_music_view_initialize),
(nautilus_music_view_background_changed),
(nautilus_music_view_update_from_uri):
Improved the layout of the music view, and pinned the size of the
album cover image, temporarily disabled background_changed since
it's not working with recent metadata changes
2000-05-16 Darin Adler <darin@eazel.com>
Quick cleanup pass on FIXMEs.
* check-FIXME.pl: Added the count of FIXMEs with bug numbers
as well as the count of FIXMEs without.
* components/services/trilobite/lib/helixcode-utils.c:
(xml_get_value), (prune_xml), (check_for_root_user),
(check_for_redhat), (determine_redhat_version),
(determine_mandrake_version), (determine_turbolinux_version),
(determine_suse_version), (determine_debian_version),
(determine_distribution_type), (get_distribution_name):
A tiny bit of cleanup on these functions. There was some really
bad code in here, including code that compared strings with ==.
Also a lot of code that does open and then no close, for no
good reason, so I added the close.
* libnautilus-extensions/nautilus-file.c: (rename_callback),
(nautilus_file_get_mapped_uri):
* libnautilus-extensions/nautilus-icon-container.c:
(nautilus_icon_container_update_icon):
* libnautilus-extensions/nautilus-icon-dnd.c:
(confirm_switch_to_manual_layout), (nautilus_icon_dnd_begin_drag):
* src/file-manager/fm-icon-view.c: (update_layout_menus),
(sort_callback), (manual_layout_callback):
* src/ntl-view.c: (nautilus_view_destroy_client):
Added bug numbers to some FIXMEs.
2000-05-16 Eskil Heyn Olsen <eskil@eazel.om>
* components/services/trilobite/sample/service/Makefile.am
(sample-service.h): Missed a -I on the orbit-idl
2000-05-16 Darin Adler <darin@eazel.com>
* libnautilus-extensions/nautilus-directory-async.c:
(metafile_read_done), (metafile_read_failed),
(metafile_read_complete): Factored out code that's common to failure
and success and made it call the new
nautilus_directory_metafile_apply_pending_changes function to take
care of changes made while reading the metafile.
* libnautilus-extensions/nautilus-directory-metafile.h:
* libnautilus-extensions/nautilus-directory-metafile.c:
(get_metadata_list_from_node), (get_file_node),
(get_metadata_string_from_metafile),
(get_metadata_list_from_metafile),
(set_metadata_string_in_metafile), (set_metadata_list_in_metafile),
(set_metadata_in_metafile), (get_metadata_string_from_table),
(get_metadata_list_from_table), (str_or_null_hash),
(str_or_null_equal), (set_metadata_eat_value),
(free_file_table_entry), (free_directory_table_entry),
(destroy_metadata_changes_hash_table),
(nautilus_directory_get_metadata),
(nautilus_directory_get_file_metadata),
(nautilus_directory_get_metadata_list),
(nautilus_directory_get_file_metadata_list),
(nautilus_directory_set_metadata),
(nautilus_directory_set_file_metadata),
(nautilus_directory_set_file_metadata_list),
(nautilus_directory_update_file_metadata), (apply_one_change),
(apply_file_changes),
(nautilus_directory_metafile_apply_pending_changes),
(nautilus_directory_get_boolean_metadata),
(nautilus_directory_set_boolean_metadata),
(nautilus_directory_get_integer_metadata),
(nautilus_directory_set_integer_metadata):
Redid everything to use two hash tables to hold metadata before the
metafile is read in.
* libnautilus-extensions/nautilus-directory-private.h:
Made the "NAME" XML tag be private again. It's now only used inside
the nautilus-directory-metafile.c code.
* libnautilus-extensions/nautilus-file.c:
(rename_update_info_and_metafile): Moved the code for this inside the
nautilus-directory-metafile.c code.
* libnautilus-extensions/nautilus-glib-extensions.c:
(nautilus_g_ptr_array_sort): Took out a FIXME comment now that my
question about the code is answered. We can't use qsort because it
does not take a context pointer.
* libnautilus-extensions/nautilus-string.h: Formatting.
2000-05-16 Eskil Heyn Olsen <eskil@eazel.om>
* components/services/trilobite/src/trilobite-service-public.h:
* components/services/trilobite/src/trilobite-service.c
Bonobonizing the trilobite interface (bugzille.eazel.com 899).
The service is broken right now.
* components/services/trilobite/sample/service/sample-service-impl.c
The sample service is aslo begin bonobonized, and is also broken.
* components/services/trilobite/sample/command-line/main.c
The sample client is (guess what) also being bonobonized.
2000-05-16 Jonathan Blandford <jrb@redhat.com>
* components/music/nautilus-music-view.c
(nautilus_music_view_initialize): minor repacking of widgets to
allow clist to be the dominant item, get rid of a gray band around
the outside due to the wrong container having it's border_width
set.
2000-05-16 Darin Adler <darin@eazel.com>
* libnautilus-extensions/Makefile.am:
* libnautilus-extensions/nautilus-directory-metafile.c:
(get_metadata_from_node), (get_metadata_list_from_node),
(create_metafile_root), (nautilus_directory_get_metadata),
(nautilus_directory_get_metadata_list),
(nautilus_directory_get_boolean_metadata),
(nautilus_directory_set_boolean_metadata),
(nautilus_directory_get_integer_metadata),
(nautilus_directory_set_integer_metadata),
(nautilus_directory_get_file_metadata_node),
(nautilus_directory_get_file_metadata),
(nautilus_directory_get_file_metadata_list), (real_set_metadata),
(real_set_metadata_list), (metadata_key_new),
(metadata_key_destroy), (metadata_key_hash),
(metadata_key_hash_equal), (metadata_value_new),
(metadata_value_new_list), (metadata_value_destroy),
(metadata_value_equal), (set_metadata_in_metafile),
(set_metadata_eat_parameters),
(free_metadata_changes_hash_table_entry),
(destroy_metadata_changes_hash_table),
(nautilus_directory_metafile_destroy),
(nautilus_directory_set_metadata),
(nautilus_directory_set_file_metadata),
(nautilus_directory_set_file_metadata_list):
* libnautilus-extensions/nautilus-directory-metafile.h:
* libnautilus-extensions/nautilus-directory-private.h:
* libnautilus-extensions/nautilus-directory.c:
(nautilus_directory_destroy):
* libnautilus-extensions/nautilus-file.c:
Moved metafile code into its own source file. Also worked on making
it all bottleneck so we can store it before we read in a metafile.
* src/file-manager/fm-list-view.c: (select_matching_name_callback):
* libnautilus-extensions/nautilus-glib-extensions.h:
Added nautilus_boolean_bit for use in bit fields where gboolean
results in a signed bitfield.
* libnautilus-extensions/nautilus-glib-extensions.c:
(nautilus_g_list_copy), (nautilus_g_str_list_equal),
(nautilus_g_str_list_copy): Added functions for dealing with a
list of C strings. Also got rid of const GList *. For GList we
don't use const because the functions in <glib.h> don't.
(nautilus_g_ptr_array_new_from_list), (nautilus_g_ptr_array_sort),
(nautilus_g_ptr_array_search): Renamed the new functions and types
to more closely match the standard. For example, the types must
have a Nautilus prefix.
* src/ntl-window.h:
* libnautilus-extensions/nautilus-icon-private.h:
* libnautilus-extensions/nautilus-icon-container.c:
(icon_set_selected), (rubberband_select):
Switched to use the nautilus_boolean_bit type.
* components/html/glibwww-callbacks.c:
Moved <config.h> include down to fix some warnings.
2000-05-16 Pavel Cisler <pavel@eazel.com>
Added keyboard type-ahead selection to the list view.
* libnautilus-extensions/nautilus-list.c:
(nautilus_list_initialize_class), (select_matching_name),
(select_next_name), (select_previous_name):
Add new signals to allow hooking in keyboard selection callbacks
from fm_list_view.
* libnautilus-extensions/nautilus-list.c:
(nautilus_list_initialize), (nautilus_list_destroy),
(nautilus_list_button_press), (nautilus_list_flush_typeselect_state),
(nautilus_list_handle_typeahead), (nautilus_list_key_press):
Setup/flush the typeselect state properly.
* libnautilus-extensions/nautilus-list.c:
* libnautilus-extensions/nautilus-list.h:
(nautilus_list_keyboard_move_to), (nautilus_list_select_row):
Add a convenience call to allow selecting an indexed row from
fm_list_view.
* libnautilus-extensions/nautilus-file.c
* libnautilus-extensions/nautilus-file.h:
(nautilus_file_compare_name):
Added a compare function that compares a file's name with a given
pattern.
* libnautilus-extensions/nautilus-glib-extensions.h:
* libnautilus-extensions/nautilus-glib-extensions.c
(nautilus_g_ptr_array_copy_list), (nautilus_g_ptr_array_sort),
(nautilus_g_ptr_array_search):
Add utility calls to enhance GPtrArray.
* libnautilus-extensions/nautilus-glib-extensions.c:
(nautilus_get_system_time):
Added more comments.
* src/file-manager/fm-list-view.c:
(fm_list_view_initialize_class),
(compare_rows_by_name), (match_row_name),
(select_matching_name_callback):
Connect to new NautilusList signals. Add calls for sorting and
searching a pointer array by NautilusFile name.
* src/file-manager/fm-list-view.c:
(create_list), (add_to_list):
Tweak some white space.
2000-05-16 Andy Hertzfeld <andy@eazel.com>
started work on cleaning up the music view, but it's still in an
interim state.
* components/music/nautilus-music-view.c:
(nautilus_music_view_initialize),
(nautilus_music_view_background_changed),
(nautilus_music_view_set_up_background),
(nautilus_music_view_update_from_uri),
(nautilus_music_view_drag_data_received):
made the view sizing more dynamic, made it receive colors and
backgrounds
* libnautilus-extensions/nautilus-gdk-pixbuf-extensions.c:
(nautilus_gdk_pixbuf_render_to_drawable_tiled),
(nautilus_gdk_pixbuf_scale_to_fit):
dded new nautilus_gdk_pixbuf_scale_to_fit routine, adapted from
the property browser since I need it in the Music view
* libnautilus-extensions/nautilus-gdk-pixbuf-extensions.h:
added new routine
* src/nautilus-property-browser.c: (make_drag_image),
(set_emblem_image_from_file),
(make_properties_from_directory_path):
made them use nautilus_gdk_pixbuf_scale_to_fit
2000-05-15 Darin Adler <darin@eazel.com>
* libnautilus-extensions/nautilus-icon-canvas-item.c:
(nautilus_icon_canvas_item_initialize_class),
(nautilus_icon_canvas_item_update), (gnome_icon_underline_text):
* libnautilus-extensions/nautilus-icon-container.c:
(bounds_changed_callback):
A long time ago I removed the parameter from the bounds_changed
signal of the canvas item and I did a half-assed job which left
the code broken. This made it crash a lot for Martin Baulig
<baulig@suse.de>. So I finished the job.
2000-05-15 J Shane Culpepper <pepper@eazel.com>
* HACKING: Added new gnome-http dep. Minor fixes to order to jive
with our current build env.
* components/services/startup/nautilus-view/Makefile.am: Removed
hardcoded -lghttp
* components/services/trilobite/sample/nautilus-view/Makefile.am:
Removed hardcoded -lghttp
* configure.in: Added test for ghttp since it is now a dependency.
2000-05-15 Darin Adler <darin@eazel.com>
First cut at metadata cleanup in preparation for fixing bug
with setting metadata before the metafile is read.
* libnautilus-extensions/nautilus-directory.h:
* libnautilus-extensions/nautilus-directory.c:
(get_metadata_list_from_node),
(nautilus_directory_get_metadata_list),
(nautilus_directory_set_boolean_metadata),
(nautilus_directory_set_integer_metadata),
(nautilus_directory_get_file_metadata_node),
(nautilus_directory_get_file_metadata_list),
(nautilus_directory_set_file_metadata),
(nautilus_directory_set_file_metadata_list),
* libnautilus-extensions/nautilus-file.h:
* libnautilus-extensions/nautilus-file.c:
(nautilus_file_get_metadata), (nautilus_file_get_metadata_list),
(nautilus_file_set_metadata), (nautilus_file_set_metadata_list),
(nautilus_file_get_keywords), (nautilus_file_set_keywords):
Unified code to deal with metadata lists and made both get and
set work the same way. Also got rid of the default value. For
lists, the default value is always NULL.
* components/notes/ntl-notes.c: (notes_load_metainfo):
* libnautilus-extensions/nautilus-directory-async.c:
(nautilus_directory_monitor_add_internal),
(nautilus_directory_call_when_ready_internal):
* libnautilus-extensions/nautilus-directory-private.h:
* libnautilus-extensions/nautilus-directory.h:
* libnautilus-extensions/nautilus-directory.c:
(nautilus_directory_call_when_ready),
(nautilus_directory_file_monitor_add),
(nautilus_self_check_directory):
* libnautilus-extensions/nautilus-file.h:
* libnautilus-extensions/nautilus-file.c:
(nautilus_file_monitor_add), (nautilus_file_call_when_ready):
* src/file-manager/fm-directory-view.c:
(fm_directory_view_load_uri), (finish_loading_uri):
* src/nautilus-index-title.c: (nautilus_index_title_set_uri):
* src/ntl-uri-map.c: (set_initial_content_iid),
(get_explicit_content_view_iids_from_metafile),
(nautilus_navigation_info_new):
Converted to use new API that specifies only that metadata is
needed, not which keys. Maciej and I agreed that it's no use
to specify which keys you are interested in when you can just
get it wrong and have everything work anyway. Also the old API
didn't work for metadata lists.
* components/services/trilobite/sample/command-line/.cvsignore:
Added generated files.
* libnautilus-extensions/nautilus-xml-extensions.c:
(nautilus_xml_get_property_for_children): Format tweak.
* src/file-manager/fm-directory-view.c:
(bonobo_menu_delete_callback), (bonobo_menu_duplicate_callback),
(bonobo_menu_open_properties_window_callback),
(display_selection_info), (notify_selection_change_callback),
(queue_pending_files), (append_uri_one),
(fm_directory_view_duplicate_selection),
(fm_directory_view_trash_selection): Formatting tweaks.
2000-05-14 Andy Hertzfeld <andy@eazel.com>
* src/nautilus-property-browser.c:
(nautilus_property_browser_initialize),
(nautilus_property_browser_destroy), (strip_extension),
(nautilus_property_browser_preferences_changed):
made the property browser respond to preference changes by setting
up a callback, removing it when we're destroyed, and updating the
contents when it's invoked
2000-05-14 J Shane Culpepper <pepper@eazel.com>
* components/services/trilobite/lib/helixcode-utils.c:
(determine_distribution_type), (get_distribution_name):
Beginning part of fix for Bug #860. Created the 2 functions
listed above to determine valid DistributionType and return a
printable string name of the DistributionType.
* components/services/trilobite/lib/helixcode-utils.h:
Minor fixes to DistributionType enum. Added declarations for
determine_distribution_type and get_distribution_name.
2000-05-13 Andy Hertzfeld <andy@eazel.com>
fixed bug 842, finish emblems UI in properties window
* src/file-manager/fm-properties-window.c:
removed hard-wired list of emblems
(get_property_names_from_uri), (get_property_names):
added routine to return a list of available keywords on the fly
(create_emblems_page):
used get_property_names instead of a hardwired list
* src/nautilus-property-browser.c: (element_clicked_callback):
fixed bug where it wasn't exiting remove mode properly after
removing an element
2000-05-13 J Shane Culpepper <pepper@eazel.com>
* configure.in
* components/services/startup/lib
* components/services/install/lib
Created a shared lib directory for the nautilus-view and
command-line. This allows an abstracion layer between each
individual service and libtrilobite.so so that we don't have to
link libtrilobite against libnautilus, etc. Also allows
abstraction of common functions in eazel-install that can now be
statically linked into nautilus-installer.
* components/services/trilobite/lib
Removed some useless templates that were checked in by accident.
2000-05-12 Andy Hertzfeld <andy@eazel.com>
fixed bug 620, when multiple files are selected, they all should
be opened when the user single or double click.
* libnautilus-extensions/nautilus-icon-private.h:
added last_selected_files field to icon_container details, so the
selection can be remembered through the double click process
* libnautilus-extensions/nautilus-icon-container.c: (destroy),
(forget_selected_files), (remember_selected_files),
(nautilus_icon_container_almost_drag), (handle_icon_button_press),
(activate_selected_items):
changed the activate signal to take a list of file objects instead
of a single one; added routines remember_selected_files and
forget_selected_files to build and release the list; called
remember and forget when appropriate, and used the list to pass to
the signal.
* src/file-manager/fm-icon-view.c (icon_container_activate_callback):
made the signal handler activate all the files in the list
2000-05-12 Andy Hertzfeld <andy@eazel.com>
* src/file-manager/fm-directory-view.c:
(notify_selection_change_callback), (display_pending_files):
some of Darin's recent changes wouldn't compile, so I fixed them
2000-05-12 Eskil Heyn Olsen <eskil@eazel.om>
* libnautilus/Makefile.am (BUILT_SOURCES): This is way people
should use a highlighting editor so you wouldn't have these broken
BUILT_SOURCES things.
* Makefile.am (SUBDIRS): Moved components and helper-utilies
downwards in the SUBDIRS so it builds again.
2000-05-12 Darin Adler <darin@eazel.com>
* components/services/trilobite/src/trilobite-service.c:
Format FIXME comments the way check-FIXME.pl recognizes.
* libnautilus-extensions/nautilus-file.c: (rename_callback):
Added a bug number to a FIXME.
* libnautilus-extensions/nautilus-list.c:
(nautilus_list_set_selection): Finished fixing bug 613.
I had marked it fixed but missed one FIXME.
* src/nautilus-property-browser.c:
(nautilus_property_browser_initialize): Added a bug number
to a FIXME.
(make_properties_from_directory_path),
(make_properties_from_xml_node), (make_category_link):
Fixed storage leaks I noticed earlier today.
* src/file-manager/fm-directory-view.c:
(fm_directory_view_initialize), (fm_directory_view_destroy),
(notify_selection_change_callback), (display_pending_files),
(fm_directory_view_can_accept_item): Fixed bug 440 by removing
the hash table that Maciej added. Each NautilusFile is already
unique because of how the class works.
* src/file-manager/fm-list-view.c: (create_list): Got rid of
the FIXME now that Pavel fixed bug 315.
2000-05-12 Eskil Heyn Olsen <eskil@eazel.om>
* components/services/trilobite/sample/service/Makefile.am
* components/services/trilobite/sample/nautilus-view/Makefile.am
* components/services/trilobite/sample/command-line/Makefile.am
Polishing the makefiles for the sample service build.
* components/services/trilobite/src/trilobite-service-private.h:
* components/services/trilobite/src/trilobite-service-public.h:
* components/services/trilobite/src/trilobite-service.c
Implemented the rest of the base object get_* methods. Moved the
corba activation into a seperate call. Need to look at the
destruction and possible use of bonobo for this sucker
(bugzilla.eazel.com 899 & 900). Also did the destroyer so the
servers can put themselves down.
* components/services/trilobite/sample/service/sample-service-impl.c
Implemented the most basic for the sample service. It's useless as
an example, since it does not add new features to the trilobite yet.
* components/services/trilobite/sample/command-line/main.c
Basic cli for the sample service tool. Currently connects to a
running nautilus-eazel-sample-service and lists the basic info for
it.
2000-05-12 Darin Adler <darin@eazel.com>
* Makefile.am: Added the idl directory.
* libnautilus-extensions/nautilus-gnome-extensions.h:
* libnautilus-extensions/nautilus-gnome-extensions.c:
(nautilus_simple_dialog): Turned on line wrapping for the label
in the simple dialog.
(turn_on_line_wrap_flag), (show_ok_box), (nautilus_error_dialog),
(nautilus_error_dialog_parented): Made alternate versions of
gnome_error_dialog and gnome_error_dialog_parented that turn on
line wrapping for the message label.
* libnautilus-extensions/nautilus-icon-canvas-item.c:
(draw_or_measure_label_text): Made the list of characters to break
lines on localizable.
* libnautilus-extensions/nautilus-icon-dnd.c:
(confirm_switch_to_manual_layout): Took newlines out of messages
since the dialog now does line wrapping.
* src/file-manager/dfos-xfer.c: (handle_xfer_vfs_error),
(handle_xfer_overwrite): Took out some extraneous spaces. I could
have also removed the newlines since the functions call something
that does line wrapping, but I decided not to.
* src/file-manager/fm-properties-window.c:
(name_field_update_to_match_file): Fixed a double delete bug.
This may have been what Ali was running into when he was clicking
quickly on all the emblems in succession.
* src/nautilus-property-browser.c:
Did a cleanup pass on the entire file. Marked things localizable
and marked some bugs with FIXME among other things.
* src/ntl-window-msgs.c: (nautilus_window_update_state): Added
code to check for NULL so that we won't core dump when trying
to "go back" from the first failed view.
(nautilus_window_progress_indicate),
(nautilus_window_end_location_change_callback): Got rid of newlines
from messages and called the function that now does line wrapping.
2000-05-12 Darin Adler <darin@eazel.com>
* HACKING: Get rid of obsolete requirement for "--without-bonobo"
for the gtkhtml module. The internal modules list at Eazel was
updated but someone forgot to update HACKING, as usual.
* components/services/trilobite/sample/command-line/.cvsignore:
* components/services/trilobite/sample/nautilus-view/.cvsignore:
* components/services/trilobite/sample/nautilus-view/icons/.cvsignore:
* components/services/trilobite/sample/service/.cvsignore:
Lots of generated files that need to be ignored for CVS happiness.
* libnautilus-extensions/nautilus-file.c: (rename_callback):
Fixed bug in handling error cases. I couldn't test this until Pavel
fixed the GNOME VFS bug that prevented any errors from being
reported, but he did and I am ready.
* libnautilus-extensions/nautilus-icon-canvas-item.c:
(draw_or_measure_label_text): Fixed a bug where you'd have a big
black box behind the text you are renaming by checking for rename
mode before drawing the black background.
* src/file-manager/fm-icon-view.c:
(set_sort_criterion), (get_sort_criterion_by_metadata_text),
(get_sort_criterion_by_menu_path), (fm_icon_view_begin_loading),
(sort_callback): Add code to save and load the "sort by" setting.
2000-05-12 Eskil Heyn Olsen <eskil@eazel.om>
* src/file-manager/Makefile.am (CLEANFILES): Fixed the CLEANFILES
so the corba generated file and the dfos_corba_stamp get's deleted
on make clean - thus build no longer breaks on missing files after
a few make all/clean iterations.
2000-05-11 J Shane Culpepper <pepper@eazel.com>
* components/services/trilobite/lib/*
* components/services/install/command-line
More file gymnastics to isolate generic service code into libtrilobite.
Revived some dead files in eazel-install for now until I can do some
more work to clean the current functions up.
Added a distribution type function to helixcode-utils.c so that we can
start determining distribution. This will be used by inventory and
eazel-install. Created several skeleton files that will be filled with
generic functionality like logging, networking, security, etc.
2000-05-11 Andy Hertzfeld <andy@eazel.com>
* libnautilus-extensions/nautilus-icon-canvas-item.c:
improved the look of the highlighting by adding more margins to
the box, and tightened things up vertically in the non-highlighted
case.
2000-05-11 Andy Hertzfeld <andy@eazel.com>
* libnautilus-extensions/nautilus-icon-canvas-item.c:
fixed bug #758, selected items difficult to see at a glance, by
going back to drawing a filled box around the text to indicate
selection. I kept the emboldening, since it improves
readability. This time it doesn't use XOR and has a settable
color, which I'll make a preference for soon.
2000-05-11 Pavel Cisler <pavel@eazel.com>
* libnautilus-extensions/nautilus-list-column-title.c:
(truncate_string), (nautilus_list_column_title_paint):
Fix 376 - Truncate text in columns. Clean up
nautilus_list_column_title_paint a little in the process.
* src/file-manager/fm-list-view.c: (create_list),
(fm_list_view_set_zoom_level):
Fix 315 - Icon columns are now fixed width. Fix a bug that this
uncovered where setting column width, column min width and column
max width have to be done in a predetermined order to not get
messed up by a bug in GtkCList.
2000-05-11 Darin Adler <darin@eazel.com>
* idl/Makefile.am:
* idl/fsextension.idl:
* libnautilus-extensions/Makefile.am:
* libnautilus-extensions/.cvsignore:
Removed the fsextension IDL, which was a work in progress that no
one is working on.
* libnautilus/.cvsignore:
Added the undo manager stuff.
* libnautilus-extensions/.cvsignore:
Removed the undo manager stuff.
* libnautilus-extensions/nautilus-directory-private.h:
* libnautilus-extensions/nautilus-file.c:
(nautilus_file_denies_access_permission): Handle deleted file case.
(nautilus_file_can_rename): Handle deleted file case.
(file_operation_state_new), (file_operation_state_free),
(file_operation_state_complete),
(rename_update_info_and_metafile), (rename_callback),
(nautilus_file_rename): Put in a basic framework for file
operations that can take a while. Used it to make renaming async.
(nautilus_file_can_get_permissions): Handle deleted file case.
(nautilus_file_set_permissions): Handle case where you can't get
permissions properly. I inadvertently deleted this last time.
* libnautilus-extensions/nautilus-metadata.h:
Added a metadata key for the icon view sort. Still need to write
the code to save this.
Thu May 11 16:52:14 2000 Raph Levien <raph@acm.org>
* librsvg/rsvg.c (rsvg_render_bpath): Added a check to avoid
zero-width stroke lines, which libart doesn't like. This is a
workaround for broken svg files. A separate commit will fix
ill2svg.pl to make it less likely to generate broken files.
2000-05-11 Andy Hertzfeld <andy@eazel.com>
* src/ntl-index-panel.c:
fixed bug #600, command buttons don't handle file names with spaces,
by quoting the file name. There's still a weakness for file names
containing single quotes, but we can address that later.
2000-05-11 Andy Hertzfeld <andy@eazel.com>
* src/nautilus-index-tabs.c:
fixed bug #858, index tabs pre-darken, instead of prelighten, by
making the lighten and switching to black text so the labels are
still readable.
Also, made it choose light or dark text on the fly when the tab
color is changed, so the labels are always readable
* components/services/trilobite/sample/nautilus-view/Makefile.am:
removed the icons subdir, since it had nothing in it and it was
breaking the build
2000-05-11 John Sullivan <sullivan@eazel.com>
* src/file-manager/fm-directory-view.h,
* src/file-manager/fm-directory-view.c: (compute_menu_item_info),
(fm_directory_view_real_create_selection_context_menu_items),
(insert_bonobo_menu_item), (fm_directory_view_real_merge_menus),
(fm_directory_view_real_update_menus),
(fm_directory_view_get_context_menu_index): Some more menu code
cleanup. Renamed FM_DIRECTORY_VIEW_MENU_PATH_SET_PROPERTIES
to _SHOW_PROPERTIES to match menu text; made new function
insert_bonobo_menu_item that calls compute_menu_item_info
to get name & sensitivity so that _real_merge_menus
doesn't have a separate and potentially diverging copy of
menu item names.
2000-05-11 John Sullivan <sullivan@eazel.com>
Some cleanup in directory view menu-handling code.
* src/file-manager/fm-directory-view.h,
* src/file-manager/fm-directory-view.c:
(fm_directory_view_initialize_class),
(fm_directory_view_real_create_background_context_menu_items),
(fm_directory_view_real_create_selection_context_menu_items),
(create_selection_context_menu),
(fm_directory_view_create_background_context_menu_items),
(create_background_context_menu): Renamed context-menu functions
and signals from using "append_" to using "create_" since they
don't necessarily append.
* src/file-manager/fm-icon-view.c: (insert_one_context_menu_item),
(append_one_context_menu_item): Made append_ call insert_ with
-1 for the position to eliminate duplicated code.
(fm_icon_view_create_selection_context_menu_items): Removed code
that passed a different position depending on whether or not
the Duplicate item was present. This subclass can assume that it
will always be present (or we'll rewrite the code here if we
change that assumption).
(fm_icon_view_create_background_context_menu_items),
(fm_icon_view_merge_menus), (fm_icon_view_initialize_class):
Renamed functions and signals to use create_ as above.
* src/file-manager/fm-list-view.c:
(fm_list_view_append_background_context_menu_items),
(fm_list_view_append_selection_context_menu_items),
(fm_list_view_merge_menus), (fm_list_view_update_menus),
(fm_list_view_compute_menu_item_info),
(append_one_context_menu_item), (insert_one_context_menu_item),
(rename_list_item_callback): Removed these functions, which were
all used only for Rename (which we won't have in 1.0) and
Undo (which the list view never interacts with).
(fm_list_view_initialize_class): Removed function overrides.
2000-05-11 John Sullivan <sullivan@eazel.com>
* src/file-manager/fm-icon-view.c: (fm_icon_view_merge_menus):
Moved the Layout menu to between Settings and Help.
2000-05-11 Gene Z. Ragan <gzr@eazel.com>
* helper-utilities/authenticate/Makefile.am:
* nautilus-widgets/Makefile.am:
* libnautilus-extensions/Makefile.am:
* libnautilus/Makefile.am:
Change makefiles to link against libnautilus. This is so calls
to the undo manager code resolve. There is probably a better way to
do this.
* libnautilus-extensions/nautilus-entry.c:
* libnautilus-extensions/nautilus-icon-container.c:
* libnautilus-extensions/nautilus-icon-text-item.c:
* src/nautilus-bookmarks-window.c:
* src/nautilus-location-bar.c:
* src/nautilus-window-menus.c:
* src/ntl-app.c:
Changed to #include <libnautilus-extensions/nautilus-undo-manager.h>
to #include <libnautilus/nautilus-undo-manager.h>
2000-05-10 Gene Z. Ragan <gzr@eazel.com>
* libnautilus/nautilus-undo-manager-component.idl:
* libnautilus/nautilus-undo-manager-private.h:
* libnautilus/nautilus-undo-manager.c:
* libnautilus/nautilus-undo-manager.h:
* libnautilus/nautilus-undo-transaction.c:
* libnautilus/nautilus-undo-transaction.h:
* libnautilus/nautilus-undoable.c:
* libnautilus/nautilus-undoable.h:
Moved files to libnautilus so IDL compilation would work properly
and at the suggestion of mjs.
* libnautilus-extensions/Makefile.am:
Removed undo files.
* libnautilus/Makefile.am:
Added undo files.
* libnautilus/nautilus-undo-manager-component.idl:
Additional fixes so a clean build would occuer properly.
2000-05-10 J Shane Culpepper <pepper@eazel.com>
* libnautilus-extensions/nautilus-undo-manger-component.idl:
Moved the includes to top of the file so that the idl would compile
correctly.
2000-05-10 Pavel Cisler <pavel@eazel.com>
* src/ntl-app.c:
* src/ntl-app.h:
(nautilus_app_destroy_window), (nautilus_app_real_quit),
(nautilus_app_quit)
Work in progress on fixing Nautilus deadlocking when quitting while
async file operations are in progress. Made it so that Nautilus
waits for gnome VFS threads to complete before it quits and takes
down the idle task. This only fixes part of the problem, Nautilus
still deadlocks on gnome vfs jobs that get cancelled right after
they were started.
2000-05-10 Gene Z. Ragan <gzr@eazel.com>
* libnautilus-extensions/nautilus-undo-manager-component.idl:
Added IDL entries to access undo manager functions.
* libnautilus/nautilus-view-component.idl:
Added Nautilus::UndoManager instance to Nautilus::Application
* libnautilus/nautilus-view-frame.c:
* libnautilus/nautilus-view-frame.h:
(nautilus_view_frame_get_main_window):
New function that returns Nautilus::ViewWindow instance
held by Nautilus::ViewFrame. Calls CORBA C utility function.
* src/ntl-app.c:
(impl_Nautilus_Application__get_undo_manager):
New function to return Nautilus::Application global
instance of Nautilus::UndoManager.
2000-05-10 John Sullivan <sullivan@eazel.com>
* libnautilus/nautilus-bonobo-ui.h: Added #define for path of
Nautilus's toolbar so components can use Bonobo merging without
secret inside information.
* components/sample/nautilus-sample-content-view.c:
(sample_merge_bonobo_items_callback): Replaced secret inside
information about menu & toolbar paths & positions with use of
#defines in nautilus-bonobo-ui.h.
2000-05-10 Darin Adler <darin@eazel.com>
* libnautilus-extensions/nautilus-file.h:
* libnautilus-extensions/nautilus-file.c: (nautilus_file_rename):
(nautilus_file_set_permissions): Changed to do both rename and set
permissions with an interface that will work for async. Also
improved the handling of deleted files, empty-string names, and
files you can't change permissions on: they are considering
runtime errors instead of coding mistakes now. Also send out
file_changed even if the call fails.
* src/file-manager/fm-error-reporting.h:
* src/file-manager/fm-error-reporting.c: (show_error_message_box),
(fm_report_error_renaming_file),
(fm_report_error_setting_permissions): Simplified interface to
these calls. Now we don't require the caller to pass anything we
can compute ourselves and you can call these with GNOME_VFS_OK
and they will do nothing. Also merged common code to put up the
error message box into a helper function.
* src/file-manager/fm-icon-view.c: (rename_callback),
(fm_icon_view_icon_text_changed_callback):
* src/file-manager/fm-properties-window.c: (rename_callback),
(name_field_done_editing), (permission_change_callback),
(permissions_check_button_toggled):
Updated callers to use the new calls.
2000-05-10 Darin Adler <darin@eazel.com>
* fm-icon-view.c: (update_layout_menus), (sort_callback),
(manual_layout_callback), (fm_icon_view_merge_menus),
(update_one_menu_item), (fm_icon_view_update_menus),
(icon_container_compare_icons_callback), (get_icon_text_callback),
(text_attribute_names_changed_callback),
(fm_icon_view_initialize_class), (fm_icon_view_initialize): Added
a Layout menu with a separate item for Manual Layout and for each
kind of auto-layout sort.
* libnautilus-extensions/nautilus-icon-container.c:
(idle_handler): Reinstated the call to relayout. It broke looking
at a sorted folder the first time.
Tons of gratuitous whitespace reformatting. I'm so sorry, but
I was listening to a talk by rms.
2000-05-10 John Sullivan <sullivan@eazel.com>
Fixed bug 853 (assert and weird window behavior in Properties)
* src/file-manager/fm-properties-window.c:
(remove_default_viewport_shadow): New function, sets the viewport
shadow to the no-shadow style.
(create_emblems_page): Call remove_default_viewport_shadow
at "realize" signal time, since Gtk bug causes trouble if
it's called before realizing.
2000-05-10 Darin Adler <darin@eazel.com>
* components/services/trilobite/src/.cvsignore:
Ignore the generated files in this new directory.
* libnautilus-extensions/nautilus-gnome-extensions.h:
* libnautilus-extensions/nautilus-gnome-extensions.c:
(convert_varargs_to_name_array), (nautilus_simple_dialog):
Moved simple-dialog function from dfos. It just calls
gnome_dialog with the right options.
* libnautilus-extensions/nautilus-gtk-extensions.h:
Added another marshal function.
* libnautilus-extensions/nautilus-icon-container.h:
* libnautilus-extensions/nautilus-icon-private.h:
* libnautilus-extensions/nautilus-icon-container.c:
(reload_icon_positions), (nautilus_icon_container_move_icon),
(nautilus_icon_container_initialize_class),
(nautilus_icon_container_add),
(nautilus_icon_container_request_update_all),
(nautilus_icon_container_set_auto_layout),
(nautilus_icon_container_freeze_icon_positions),
(nautilus_icon_container_sort),
(nautilus_icon_container_start_renaming_selected_item):
Reorganized signals. Added NautilusIconPosition to simplify
the interface for signals that deal with icon position. Removed the
now-unused icon_text_edit_occurred signal. Added the layout_changed
signal. Added nautilus_icon_container_sort function. Moved some code
out of the "omit self check" conditional.
* libnautilus-extensions/nautilus-icon-dnd.c:
(confirm_switch_to_manual_layout), (handle_local_move): Added code
that switches to manual layout if you move an icon within the window
and it's on auto layout.
* src/file-manager/dfos-xfer.h:
* src/file-manager/dfos-xfer.c: (handle_xfer_vfs_error),
(handle_xfer_overwrite), (dfos_xfer): Switch code to use the new
nautilus_simple_dialog instead of file_operation_alert, which I
removed from here.
* src/file-manager/fm-icon-view.c:
(get_stored_icon_position_callback), (update_layout_menus),
(fm_icon_view_begin_loading), (auto_layout_callback),
(manual_layout_callback), (layout_changed_callback),
(fm_icon_view_merge_menus), (icon_position_changed_callback),
(create_icon_container):
Added workaround for Bonobo bug where it calls the radio menu item
callback that was making it always use auto layout. Converted to use
the updated signal parameters. Added a signal handler to update the
layout menu to match the layout when the layout is changed elsewhere.
2000-05-10 John Sullivan <sullivan@eazel.com>
* src/file-manager/fm-properties-window.c: (create_emblems_page):
Commented out shadow-setting line that causes asserts and
strange window behavior for some people's builds (but not mine
when I checked this in). Will fix later.
2000-05-09 Andy Hertzfeld <andy@eazel.com>
* src/nautilus-window-toolbar.c:
restored standard Gnome toolbar icons, for now, while we figure
out how to make Susan's optional in some fashion
2000-05-09 Andy Hertzfeld <andy@eazel.com>
added Susan's toolbar icons; she still needs to do reload and stop
* icons/home.png
* icons/leftarrow.png
* icons/rightarrow.png
* icons/uparrow.png
* icons/Makefile.am:
Susan's new toolbar icons, except for uparrow, which was modified
* src/nautilus-window-toolbar.c:
used Susan's new toolbar icons
2000-05-09 J Shane Culpepper <pepper@eazel.com>
* components/services/install/command-line/eazel-install-metadata.c
* components/services/install/command-line/eazel-install-metadata.h
* components/services/install/command-line/eazel-install-protocols.h
* components/services/install/command-line/eazel-install-protocols.c
* components/services/install/command-line/eazel-install-rpm-glue.c
* components/services/install/command-line/eazel-install-rpm-glue.h
* components/services/install/command-line/eazel-install-tests.h
* components/services/install/command-line/eazel-install-tests.c
* components/services/install/command-line/eazel-install-types.h
* components/services/install/command-line/eazel-install-utils.h
* components/services/install/command-line/eazel-install-utils.c
* components/services/install/command-line/eazel-install-xml-package-list.c
* components/services/install/command-line/eazel-install-xml-package-list.h
* components/services/install/command-line/helixcode-install-utils.c
* components/services/install/command-line/helixcode-install-utils.h
* components/services/startup/nautilus-view/eazel-register.h
* components/services/startup/nautilus-view/eazel-register.c
Merged all of the listed files into:
components/services/trilobite/lib to create a shared library of common
service functions. These functions still need to made much more
generic in order to use them for common tasks.
2000-05-09 Andy Hertzfeld <andy@eazel.com>
* libnautilus-extensions/nautilus-icon-factory.c:
taught the icon factory to look in the user's home directory
for user-defined emblem images
2000-05-09 Andy Hertzfeld <andy@eazel.com>
* src/nautilus-property-browser.c:
added gnome warning messages when the user chooses non-image files
for backgrounds or emblems.
2000-05-09 Andy Hertzfeld <andy@eazel.com>
made the add and remove buttons in the content browser not
show up for novice-level users
* libnautilus-extensions/nautilus-global-preferences.h:
defined new preference for CAN_ADD_CONTENT
* libnautilus-extensions/nautilus-global-preferences.c:
turned CAN_ADD_CONTENT off for novices, on for other levels
* src/nautilus-property-browser.c:
respect CAN_ADD_CONTENT when deciding to show the buttons
2000-05-09 John Sullivan <sullivan@eazel.com>
fixed bug 843 (Emblem checkboxes in Properties window
don't react to external emblem changes)
* src/file-manager/fm-properties-window.c:
(create_emblems_page): Added file-changed signal
handler so checkboxes react to external emblem changes.
Also changed page to use a GtkTable rather than four
nested boxes; this keeps all the cells the same size
despite differing image sizes.
2000-05-09 Darin Adler <darin@eazel.com>
* libnautilus-extensions/nautilus-directory-async.c:
(nautilus_directory_call_when_ready_internal),
(nautilus_directory_cancel_callback_internal),
(directory_count_callback), (nautilus_async_destroying_file),
(start_getting_directory_counts), (top_left_read_done),
(start_getting_top_lefts):
Eliminated code that ref's files when they are the target of the
call_when_ready list or the current file being read for top left
text or the current directory being counted. Instead, cancel the
I/O when the file is destroyed (we already had the hook).
* libnautilus-extensions/nautilus-directory-async.c:
(lacks_top_left):
* libnautilus-extensions/nautilus-file-private.h:
* libnautilus-extensions/nautilus-file.c:
(nautilus_file_contains_text), (nautilus_file_get_top_left_text):
Change top left text reading to only read text files and other
regular files with unknown type.
* libnautilus-extensions/nautilus-gtk-extensions.c:
(nautilus_gtk_marshal_NONE__POINTER_POINTER_POINTER_POINTER_POINTER_POINTER):
* libnautilus-extensions/nautilus-gtk-extensions.h:
Needed a new marshal function.
* libnautilus-extensions/nautilus-icon-container.h:
* libnautilus-extensions/nautilus-icon-container.c:
(resort_and_clear), (auto_position_icon), (relayout):
Changed around to share more code.
(reload_icon_positions): Call to reload icon positions when you
switch from auto to manual layout.
(idle_handler): Get rid of relayout on idle.
(nautilus_icon_container_move_icon): Renamed icon_changed to
icon_position_changed.
(rubberband_select): Fixed bug where rubberband would never deselect.
(nautilus_icon_container_initialize_class): Add a new signal called
get_stored_icon_position and also renamed the icon_changed signal to
icon_position_changed.
(nautilus_icon_container_update_icon): Changed back the
get_icon_images interface to return NautilusScaledIcon objects
instead of actual pixbufs. This is made possible by the change to
include the embedded text as one of the parameters when creating
a NautilusScaledIcon.
(nautilus_icon_container_add): Merged the two flavors of add and
removed the extra parameters. Now the icon position and scale comes
from a callback (via signal).
(nautilus_icon_container_set_selection): Use a hash table (fixes
Bugzilla bug 613).
(nautilus_icon_container_select_list_unselect_others): Use a hash
table.
(nautilus_icon_container_set_auto_layout): Reload the previous
icon positions and "freeze" them (store them) when switching from
automatic layout to manual.
(nautilus_icon_container_freeze_icon_positions): Public function
to store all the icon psoitions. For use later with the dialog that
you get when you drag an icon.
* src/file-manager/fm-icon-view.c:
(get_stored_icon_position_callback): Support new interface for
getting the icon position. Also used setlocale so metadata always
uses a locale-independent format for floating point numbers.
(fm_icon_view_add_file), (fm_icon_view_done_adding_files):
New simplified interface for adding icons.
(auto_layout_callback), (manual_layout_callback): Fixed a bug where
we'd always switch to auto layout on startup. It's actually a bug
in Bonobo where new radio menu items get callbacks right away.
(icon_position_changed_callback): Used setlocale so metadata always
uses a locale-independent format for floating point numbers.
(get_icon_images_callback): Changed for new simpler embedded text
API. Moved the actual pixbuf stuff back into NautilusIconContainer.
(create_icon_container): New get_stored_icon_position callback and
renamed icon_position_changed callback.
* libnautilus-extensions/nautilus-icon-dnd.c: (handle_local_move),
(handle_nonlocal_move),
(nautilus_icon_container_receive_dropped_icons):
Restructured the drag code a little bit to make it easy to add the
dialog that you get when you drag an icon within an auto-layed-out
window (that I will add soon).
* libnautilus-extensions/nautilus-icon-factory.h:
* libnautilus-extensions/nautilus-icon-factory.c:
(nautilus_scalable_icon_get), (nautilus_scalable_icon_unref),
(nautilus_scalable_icon_hash), (nautilus_scalable_icon_equal),
(nautilus_icon_factory_get_icon_for_file),
(nautilus_icon_factory_get_emblem_icon_by_name),
(nautilus_icon_factory_get_emblem_icons_for_file),
(get_image_from_cache),
(nautilus_icon_factory_get_pixbuf_for_icon),
(nautilus_icon_factory_get_pixbuf_for_file), (embed_text),
(load_image_with_embedded_text):
* src/file-manager/fm-list-view.c:
(fm_list_view_get_emblem_pixbufs_for_file):
* src/file-manager/fm-properties-window.c:
(create_image_widget_for_emblem):
* src/nautilus-index-title.c: (nautilus_index_title_update_info):
Even though John talked me out of it, I talked myself back into it.
Redid the embedded text so it's done entirely inside the icon
factory. This keeps the interface simple.
* libnautilus-extensions/nautilus-icon-private.h: Add a missing
newline.
2000-05-09 Ramiro Estrugo <ramiro@eazel.com>
* components/mozilla/nautilus-mozilla-content-view.c:
(nautilus_mozilla_content_view_load_uri),
(mozilla_notify_location_change_callback),
(mozilla_location_changed_callback):
Notify nautilus when the location changes so that back/forward
navigation and history work as expected.
2000-05-09 John Sullivan <sullivan@eazel.com>
Work on task 842 (Finish emblems UI in property window)
* src/file-manager/fm-properties-window.c:
(create_image_widget_for_emblem): Finished this function
that I had checked in the beginnings for last time.
(create_emblems_page): Now displays images and puts
emblems into a scrolling area in case there are too
many to fit. Still need to get the real list of emblems
instead of a hard-wired one.
2000-05-09 Andy Hertzfeld <andy@eazel.com>
* src/nautilus-window-menus.c:
removed the color selector widget from the debug menu, since it's
no longer needed now that we have colors in the property browser.
Since there was nothing else in the menu, I removed it, too.
2000-05-09 Ramiro Estrugo <ramiro@eazel.com>
* acconfig.h,
* configure.in: Remove the MOZILLA_FIVE_HOME hack. I dont like
how this causes the whole of nautilus to rebuild. Its also
something that should be set in the user's environment.
* components/mozilla/main.c: (mozilla_check_environment), (main):
Remove the MOZILLA_FIVE_HOME hack from here too. Replace it with
a environment check instead.
* components/mozilla/nautilus-mozilla-content-view.c:
(nautilus_mozilla_content_view_initialize),
(nautilus_mozilla_content_view_destroy),
(nautilus_mozilla_content_view_load_uri),
(mozilla_content_view_set_busy_cursor),
(mozilla_content_view_send_progress_request),
(mozilla_content_view_clear_busy_cursor),
(mozilla_notify_location_change_callback),
(bonobo_mozilla_callback), (mozilla_merge_bonobo_items_callback),
(mozilla_title_changed_callback),
(mozilla_location_changed_callback), (mozilla_net_status_callback),
(mozilla_link_message_callback), (mozilla_progress_callback):
Add support for mousing over link status, progress notification,
title changed, location changed, busy cursor. Some of this still
needs work to get it right.
Factor the progress request sending code into its own function.
2000-05-09 Andy Hertzfeld <andy@eazel.com>
* src/nautilus-property-browser.c:
implemented adding new emblems and removing them
* icons/emblem-generic.png:
added image for generic emblems
* icons/Makefile.am:
added new icon
2000-05-09 John Sullivan <sullivan@eazel.com>
Checked in to fix silly problem from previous checkin:
I had left the sense of a check reversed for testing
purposes, and no permissions would ever appear in the
Properties window.
I've also got some new changes that have no visible
effect yet.
* libnautilus-extensions/nautilus-icon-factory.h,
* libnautilus-extensions/nautilus-icon-factory.c:
(nautilus_icon_factory_get_emblem_icon_by_name):
New function, gets a single emblem icon.
(add_emblem): Calls _get_emblem_icon_by_name now.
* src/file-manager/fm-properties-window.c:
(create_image_widget_for_emblem), (create_emblems_page):
Some preliminary work towards making emblem images appear.
(create_permissions_page): Took out a "!" so permissions
show up.
2000-05-09 J Shane Culpepper <pepper@eazel.com>
* components/services/ ALL
* nautilus-installer/ ALL
Massive reorganization of components/services. All service components
are now broken up into a command-line and a nautilus-view. Added
directories for trilobite, the core service framework. Added
directories for the proof of concept time sync service. Also added
nautilus-installer directory at the base level of nautilus which will
contain the bootstrap installer for nautilus and its dependencies. Most
these changes are in the build harness yet.
2000-05-09 John Sullivan <sullivan@eazel.com>
Finished task 547 (show and set permissions in
Properties window). It's kinda geeky as unix
permissions like to be. As always, I welcome feedback
about this UI.
* libnautilus-extensions/nautilus-file.h,
* libnautilus-extensions/nautilus-file.c:
(nautilus_file_can_get_permissions): New function, checks
whether the permissions of a file can be determined.
(nautilus_file_can_set_permissions): New function, checks
whether the current user is capable of changing the
permissions of a file.
(nautilus_file_denies_access_permission),
(nautilus_file_is_executable): Deploy _can_get_permissions.
(nautilus_file_get_permissions): New function, returns
permissions for file.
(nautilus_file_set_permissions): New function, changes
permissions for file. Returns GnomeVFSResult that reports
whether change succeeded.
* src/file-manager/fm-properties-window.c: (add_prompt),
(add_prompt_and_separator),
(get_pixmap_and_mask_for_properties_window), (install_value_field),
(install_title_value_pair), (create_page_with_vbox),
(apply_standard_table_padding), (create_attribute_value_table),
(create_page_with_table_in_vbox), (create_emblems_page),
(permissions_label_update), (add_permissions_row_label),
(add_permissions_column_label),
(update_permissions_check_button_state),
(permissions_check_button_toggled), (add_permissions_checkbox),
(create_permissions_page), (create_more_page): Lots of new code
and refactoring to display the permissions UI.
* src/file-manager/fm-error-reporting.h,
* src/file-manager/fm-error-reporting.c:
(fm_report_error_setting_permissions): New function to
complain to user if attempt to set permissions fails.
The UI won't let the user try to set the permissions if
nautilus_file_can_set_permissions returns FALSE, but there
can always be oddball failures for other reasons.
2000-05-08 Maciej Stachowiak <mjs@eazel.com>
* src/ntl-uri-map.c (get_lang_list),
(nautilus_view_identifier_new_from_oaf_server_info): Provide the
language from either the LANGUAGE or LANG environment variable,
for proper l10n of OAF name attributes,
2000-05-09 Christopher Blizzard <blizzard@redhat.com>
* components/mozilla/nautilus-mozilla-content-view.c
(nautilus_mozilla_content_view_load_uri): add GTK_MOZ_EMBED() cast
since the prototype for embed_load_url has changed on the Mozilla
tip.
(bonobo_mozilla_callback): Same.
2000-05-08 John Sullivan <sullivan@eazel.com>
* src/ntl-uri-map.c: DEBUG_MJS was accidentally checked in
defined. I commented it out. Also changed an #if DEBUG_MJS
to #ifdef to match the others.
2000-05-08 Pavel Cisler <pavel@eazel.com>
* libnautilus-extensions/nautilus-list.c
* libnautilus-extensions/nautilus-icon-container.c
(realize), (unrealize), (nautilus_list_realize),
(nautilus_list_unrealize),
(nautilus_icon_container_initialize_class),
(nautilus_list_initialize_class),
(nautilus_list_realize),
(nautilus_list_unrealize):
Fix 296 - properly set the default focus to the icon and
list views so that keyboard navigation works right away.
Properly defocus the icon and list view when switching
between the two views.
* libnautilus-extensions/nautilus-icon-container.c:
(keyboard_arrow_key), (keyboard_right), (keyboard_left),
(keyboard_down), (keyboard_up):
Properly handle the first keyboard arrow press when we have no selection
yet. To do this pass in a new empty_start predicate.
* libnautilus-extensions/nautilus-icon-container.c
* libnautilus-extensions/nautilus-list.c
(nautilus_list_initialize),
(select_row_from_mouse),
(nautilus_list_keyboard_navigation_key_press),
(nautilus_list_key_press):
Properly handle the first keyboard arrow press when we have no selection
yet (this will only start working when 454 gets fixed).
Make it so that the keyboard focus gets collapsed with the selection
when selecting an item with a mouse.
2000-05-08 Darin Adler <darin@eazel.com>
* check-FIXME.pl:
* check-config-h.pl: Added "." parameter to "find" so it works
with non-GNU versions of find. This was for Morten, who wanted
to run check-config-h.pl on Gnumeric.
* libnautilus-extensions/nautilus-directory-async.c:
(start_getting_top_lefts): Turn embedded text back on.
* libnautilus-extensions/nautilus-directory.c:
(nautilus_directory_get_metadata): Fixed a bug that was showing
up in "make check".
(nautilus_self_check_directory): Got rid of GNOME VFS tests,
since I moved the same tests into test-async-cancel in the
gnome-vfs module.
2000-05-08 Ramiro Estrugo <ramiro@eazel.com>
* libnautilus/nautilus-clipboard.c:
(nautilus_clipboard_info_destroy),
(nautilus_clipboard_info_set_view_frame):
Reference the view on set_view_frame() and unreference on
destruction. This fixes a problem where the clipboard code was
trying to use a view that has already been trashed.
Thanks to Carbamide <linuxfan@ionet.net> for finding the problem.
2000-05-08 Ramiro Estrugo <ramiro@eazel.com>
* configure.in,
* HACKING: Remove libglade check and hacking blurb. We don't
use libglade no more,
2000-05-08 Andy Hertzfeld <andy@eazel.com>
* src/nautilus-property-browser.c:
added an up arrow image in the property browser title bar, to act
as a "go-back" button.
Also, made the "add background" command check the mime-type of the
specified file and only add it if it's an image
* icons/uparrow.png:
new image to serve as goback button in browser title bar
* icons/Makefile.am:
added new image to Makefile
2000-05-08 Gene Z. Ragan <gzr@eazel.com>
* libnautilus-extensions/nautilus-icon-container.c:
(key_press_event):
Fixed bug introduced by Pavel's new super cool keyboard icon
selection feature. An icon in renaming mode no longer received
keyboard events. A check is now made to see if the icon container
is in renaming mode before processing event for icon selection.
2000-05-08 Maciej Stachowiak <mjs@eazel.com>
Fixed merging of explicitly specified components. Now the name is
properly determined from OAF, nonexistent ones are ignored, the
syntax for specifying then is improved, and they can be defined
for files as well as directories. In the process I defined some
new general-purpose metadata operations. These are
bugzilla.eazel.com tasks #763 and #673.
* libnautilus-extensions/nautilus-xml-extensions.h,
libnautilus-extensions/nautilus-xml-extensions.c
(nautilus_xml_get_property_for_children): New function. Get a
specific property for all children of a node that have a
particular name.
* libnautilus-extensions/nautilus-directory-private.h,
libnautilus-extensions/nautilus-directory.h,
libnautilus-extensions/nautilus-file.h,
libnautilus-extensions/nautilus-file.c
(nautilus_file_get_metadata_list),
libnautilus-extensions/nautilus-directory.c
(get_metadata_list_from_node), (nautilus_directory_get_metadata),
(nautilus_directory_get_metadata_list),
(nautilus_directory_get_file_metadata_list): NewFunctions to allow
getting lists of info for files or directories.
* libnautilus-extensions/nautilus-file.c
(nautilus_file_get_keywords): Use the new interface for getting
the keywords for a file.
* src/ntl-uri-map.h: Added explicit_iids field to
Nautilus_NavigationInfo struct.
* src/ntl-uri-map.c
(get_explicit_content_view_iids_from_metafile): New function to
get IIDs for explicitly selected views from the metafile.
(make_oaf_query_for_explicit_content_view_iids): Create a query
clause from the explicit IID list.
(make_oaf_query_with_known_mime_type),
(make_oaf_query_with_uri_scheme_only): Accept explicitly selected
IIDs whether or not they would otherwise apply.
(server_matches_content_requirements): Don't check content
requirements for explicitly selected servers.
(nautilus_navigation_info_new), (nautilus_navigation_info_free):
initialize and free the explicit_iids field.
2000-05-08 Maciej Stachowiak <mjs@eazel.com>
* libnautilus-extensions/nautilus-directory-async.c
(directory_count_callback): Improved the logic so it records the
fact that the directory count is complete earlier and more
cleanly. This stops an assertion failure I was seeing occasionally
from showing up, by fixing or at least hiding the underlying
problem.
2000-05-08 Maciej Stachowiak <mjs@eazel.com>
* src/ntl-uri-map.c (get_lang_list),
(nautilus_view_identifier_new_from_oaf_server_info): GSList, not
GList!
2000-05-07 Maciej Stachowiak <mjs@eazel.com>
* src/ntl-uri-map.c (get_lang_list),
(nautilus_view_identifier_new_from_oaf_server_info): fix
bugzilla.eazel.com task #694; pass the language to the oaf calls
that get a name so those attributes can be i18n'd.
2000-05-07 Maciej Stachowiak <mjs@eazel.com>
* nautilus-clean.sh: Added pdf component to list. Added -x option
to also kill oafd and gconfd.
2000-05-08 Pavel Cisler <pavel@eazel.com>
* libnautilus-extensions/nautilus-icon-container.c:
* libnautilus-extensions/nautilus-icon-private.h:
(match_best_name), (select_matching_name), (destroy),
(button_press_event), (nautilus_icon_container_almost_drag),
(nautilus_icon_container_flush_typeselect_state),
(nautilus_icon_container_handle_typeahead), (key_press_event),
(nautilus_icon_container_initialize):
Support for icon selection by typing the item's name. Initialize
and flush the new typeselect state properly. Rework key_press_event
a little bit to make it easier to call the inherited key_press call
when we did not handle the keyboard event ourselves.
* libnautilus-extensions/nautilus-icon-container.c:
(select_previous_or_next_name), (compare_icons_by_name),
(build_sorted_icon_list):
Support for selecting next/previous icon alphabetically using
Tab and Shift-Tab.
* libnautilus-extensions/nautilus-icon-container.c:
(find_best_icon), (find_best_selected_icon), (leftmost_in_top_row),
(rightmost_in_bottom_row), (same_row_right_side_leftmost),
(same_row_left_side_rightmost), (same_column_above_lowest),
(same_column_below_highest), (keyboard_home), (keyboard_end),
(keyboard_arrow_key):
Add data parameter to find_best_icon and find_best_selected_icon
to allow using more complicated match predicates.
* libnautilus-extensions/nautilus-glib-extensions.c:
* libnautilus-extensions/nautilus-glib-extensions.h:
(nautilus_g_list_copy):
Add a list shallow copy utility call.
* libnautilus-extensions/nautilus-glib-extensions.c:
* libnautilus-extensions/nautilus-glib-extensions.h:
(nautilus_get_system_time), (nautilus_self_check_glib_extensions)
Add a utility call to get the system time in microseconds.
* libnautilus-extensions/nautilus-icon-canvas-item.c:
Fix a typo.
* libnautilus-extensions/nautilus-icon-container.c:
(nautilus_icon_container_start_renaming_selected_item):
Fix white space.
2000-05-08 Andy Hertzfeld <andy@eazel.com>
src/nautilus-property-browser.c:
implemented adding and removing colors and backgrounds to the property browser
libnautilus-extensions/nautilus-icon-factory.c:
removed some code for making frames for non-standard format thumbnails that was
never being executed
data/browser.xml:
added another color so they line up better
2000-05-07 Maciej Stachowiak <mjs@eazel.com>
Fix bugzilla.eazel.com task 479:
* libnautilus/nautilus-clipboard.c
(nautilus_clipboard_info_destroy),
(nautilus_clipboard_info_set_view_frame): Do not ref and unref the
view_frame. Because the NautilusClipboardInfo will only be
destroyed when the view_frame is destroyed in the normal use case,
if it holds a ref on the view_frame it will prevent it from ever
being destroyed. This was causing the notes and history view
processes to stay around forever.
2000-05-06 John Sullivan <sullivan@eazel.com>
Fixed up code that limits how small icons are before they
stop showing embedded text. Too bad you can't see it in
action until embedded text is turned back on.
* icons/eazel/i-regular.xml: Added an embedded-text rectangle
for one size smaller icon than had one before.
* libnautilus-extensions/nautilus-icon-factory.c:
Added #defines for minimum embedded text rectangle width
and height.
(embedded_text_rect_usable): New function, ensures that the
embedded text rectangle is sufficiently large.
(nautilus_icon_factory_embed_text),
(nautilus_icon_factory_embed_file_text): Use new function to
skip embedded text if rectangle is nonexistent or too small.
* src/file-manager/fm-icon-view.c:
(get_icon_images_callback): Removed the text-rectangle size
limit here since now there's a universal one inside
nautilus_icon_factory.
2000-05-06 Darin Adler <darin@eazel.com>
* libnautilus-extensions/nautilus-directory-async.c:
(start_getting_top_lefts): Disabled the embedded text until I can
fix the file descriptor linking problem. It's easy to re-enable,
but then you quickly run out of FDs.
2000-05-06 Jesus Bravo Alvarez <jba@pobox.com>
* configure.in: Added Galician (gl) to ALL_LINGUAS
2000-05-05 Andy Hertzfeld <andy@eazel.com>
did some work at the request of Bud
* libnautilus-extensions/nautilus-global-preferences.h:
added preference NAUTILUS_PREFERENCES_SIDEBAR_WIDTH
* src/ntl-window.c:
set the initial sidebar width from NAUTILUS_PREFERENCES_SIDEBAR_WIDTH.
As a welcome side-effect, this allowed me to remove the old "sopwidth
hack". I also increased the default size.
* src/ntl-index-panel:
added old_width to details. Overrode size_allocate signal to get
in there when the size changes to record it in preferences when
it changes
* src/nautilus-index-title.c:
changed the font used for the title to helvetica, to match the other text
2000-05-05 Darin Adler <darin@eazel.com>
* libnautilus-extensions/.cvsignore: Ignore the new files that
are generated by Gene's new .idl.
* libnautilus-extensions/nautilus-debug.h:
* libnautilus-extensions/nautilus-debug.c:
(nautilus_get_available_file_descriptor_count):
Changed the interface on Pavel's excellent new debugging function.
* libnautilus-extensions/nautilus-directory.c:
(file_open_callback), (file_close_callback), (open_and_close_one),
(nautilus_self_check_directory): Added some checks for GNOME VFS
in here. This is a bad place for them but it's better than not
having them at all.
* libnautilus-extensions/nautilus-icon-factory.c:
(nautilus_self_check_icon_factory): Updated self checks so they
work again. John didn't notice that he needed to fix these when
he added the 20-pixel size icon to the standard sizes.
2000-05-05 Gene Z. Ragan <gzr@eazel.com>
* libnautilus-extensions/nautilus-undo-manager-component.idl:
New IDL file describing CORBA interface to the undo manager.
* libnautilus-extensions/Makefile.am:
Modified to include nautilus-undo-manager-component.idl
* libnautilus-extensions/nautilus-undo-manager.c
* libnautilus-extensions/nautilus-undo-manager-private.h:
(impl_Nautilus_UndoManager__destroy),
(impl_Nautilus_UndoManager__create),
(impl_Nautilus_UndoManager__begin_transaction),
(impl_Nautilus_UndoManager__end_transaction):
CORBA/Bonobo functions to access undo manager features.
* libnautilus-extensions/nautilus-undo-manager.h:
* src/file-manager/fm-list-view.c
(fm_list_view_append_background_context_menu_items),
(fm_list_view_merge_menus), (fm_list_view_update_menus),
(rename_list_item_callback):
Began the task of
* src/ntl-main.c
(main):
Removed intialization of undo manager from main,
* src/ntl-app.c
(nautilus_app_init):
Moved initialization of undo manager. A reference to the undo manager
is saved for easy access from components.
2000-05-05 Andy Hertzfeld <andy@eazel.com>
* src/nautilus-property-browser.c:
improved the appearance of color properties by putting them
in a frame
2000-05-05 Andy Hertzfeld <andy@eazel.com>
* icons/colors.png:
added icon for colors category
* icons/Makefile.am:
added new icon to Makefile
* data/backgrounds/ice.png:
added cool new background
* data/backgrounds/Makefile.am:
added new background to Makefile
2000-05-05 John Sullivan <sullivan@eazel.com>
* src/file-manager/fm-properties-window.c:
(install_title_value_pair), (create_page_with_table_in_vbox),
(create_basic_page), (create_emblems_page),
(create_permissions_page), (create_more_page),
(create_properties_window):
More early work on the Properties window. Nudging it into
shape one step at a time.
2000-05-05 Pavel Cisler <pavel@eazel.com>
* libnautilus-extensions/nautilus-debug.c,
libnautilus-extensions/nautilus-debug.h:
(nautilus_print_available_file_descriptor_count):
Added a debugging call to help locate file descriptor leaks.
2000-05-05 Darin Adler <darin@eazel.com>
Fix up the code for cancelling so we don't leave files open and
objects around so much. It was getting out of hand.
* libnautilus-extensions/nautilus-directory-async.c:
(empty_close_callback): Give a warning if we ever have a close
that fails.
(directory_count_callback): For easier debugging, NULL out the
file after unref'ing.
(start_getting_directory_counts): Unref the file when we cancel
a directory count part-way through (leak #1).
(start_getting_top_lefts): Close the file when we cancel a top
left read part-way through (leak #2). Unref the file when we
cancel a top left read part way thorugh (leak #3).
2005-05-05 Andy Hertzfeld <andy@eazel.com>
* src/nautilus-property-browser.c:
made color drag and drop work from the property browser.
2000-05-05 Darin Adler <darin@eazel.com>
* libnautilus-extensions/nautilus-icon-factory.c:
(nautilus_icon_factory_embed_text): The old code assumed that white
was == 0xFFFFFF. But that's not always true due to bugs (well maybe
not bugs but imperfections) in the code that converts 555 to 888 in
gdk-pixbuf. Fixed it now.
2000-05-05 Darin Adler <darin@eazel.com>
Moved the "embedded text" feature into the icon factory and
NautilusFile. Also fixed some FIXMEs that were in the modified
code along the way.
This code requires a new version of GdkPixbuf to work properly.
A bug in the old one makes embedded text look wrong.
* libnautilus-extensions/nautilus-directory-private.h:
* libnautilus-extensions/nautilus-directory-async.c:
(metafile_read_close), (nautilus_metafile_read_cancel),
(metafile_read_failed), (metafile_read_complete),
(metafile_read_callback), (metafile_read_some),
(metafile_read_open_callback), (metafile_read_start),
(nautilus_directory_request_read_metafile), (metafile_write_done),
(metafile_write_failed), (metafile_write_callback),
(metafile_write_create_callback), (nautilus_metafile_write_start),
(metafile_write), (lacks_top_left), (wants_top_left),
(has_problem), (select_needy_file), (count_lines),
(top_left_read_done), (top_left_read_failed),
(top_left_read_complete), (top_left_read_close),
(top_left_read_callback), (top_left_read_some),
(top_left_open_callback), (start_getting_top_lefts),
(state_changed):
Added code to read top lefts of files in the background.
Restructured things to accomodate this new code nicely with
a minimum of copy and paste (there still was plenty of copy
and paste so there's room for improvement).
* libnautilus-extensions/nautilus-directory.c:
(nautilus_directory_destroy):
Name changes from above required revising some asserts.
* libnautilus-extensions/nautilus-file-private.h:
* libnautilus-extensions/nautilus-file.c:
(nautilus_file_get_top_left_text): Now it returns something
besides just NULL.
(nautilus_extract_top_left_text): Function that remembers only
the part of the top left text that we want to keep around.
* libnautilus-extensions/nautilus-gtk-extensions.h:
* libnautilus-extensions/nautilus-gtk-extensions.c:
(nautilus_gtk_marshal_NONE__POINTER_POINTER_POINTER),
(nautilus_gtk_marshal_POINTER__POINTER_INT_INT_POINTER_POINTER):
Needed some new marshal functions.
* libnautilus-extensions/nautilus-icon-canvas-item.h:
* libnautilus-extensions/nautilus-icon-canvas-item.c:
(nautilus_icon_canvas_item_initialize_class),
(nautilus_icon_canvas_item_destroy),
(nautilus_icon_canvas_item_set_arg),
(nautilus_icon_canvas_item_get_arg),
(nautilus_icon_canvas_item_get_image),
(nautilus_icon_canvas_item_set_image),
(nautilus_icon_canvas_item_draw):
Removed the old embedded text support. It came with a whole lot
of baggage, also removed.
* libnautilus-extensions/nautilus-icon-container.h:
* libnautilus-extensions/nautilus-icon-container.c:
(nautilus_icon_container_update_icon): Moved pixbuf computing code
into the FMIconView class. We might decide later to move it back
again, but for now the embedded text makes it easier to do it
this way.
(nautilus_icon_container_initialize_class): Merged
get_icon_editable_text and get_icon_additional_text back into
a single signal that gets both.
* libnautilus-extensions/nautilus-icon-dnd.c:
(nautilus_icon_dnd_begin_drag): Updated for change in icon factory
API.
* src/file-manager/fm-directory-view.c: (finish_loading_uri):
Ask for top-left text attribute for all directories.
* src/file-manager/fm-icon-view.c: (get_icon_images_callback):
Moved pixbuf computing code into the FMIconView class. We might
decide later to move it back again, but for now the embedded text
makes it easier to do it this way.
(get_icon_text_callback): Merged get_icon_editable_text and
get_icon_additional_text back into a single signal that gets both.
2000-05-04 Andy Hertzeld
added colors to the property browser. Dragging isn't quite working yet.
* src/nautilus-property-browser.c:
added inline xml mode for the property browser and used it to add color properties
* data/browser.xml:
added some color definitions.
2000-05-04 John Sullivan <sullivan@eazel.com>
* src/ntl-index-panel.c (nautilus_index_panel_initialize):
Added a nice little GNOME_PAD worth of space above (and
below, but who could tell?) the index-title. Now that icon
isn't jammed up against the top of the sidebar.
2000-05-04 John Sullivan <sullivan@eazel.com>
Some work on the Properties window. It now shows some
more properties (location, type, size, date).
* libnautilus-extensions/nautilus-file.c:
(nautilus_file_get_parent_uri_as_string): New function, returns
the URI of the enclosing directory.
(nautilus_file_get_string_attribute): Now supports attributes
"uri" and "parent_uri".
* src/file-manager/fm-directory-view.c: (compute_menu_item_info),
(fm_directory_view_real_merge_menus): Changed menu name from
"Set Properties..." to "Show Properties" since the read-only ones
now outnumber the changeable ones.
* src/file-manager/fm-properties-window.c:
(create_pixmap_widget_for_file), (value_field_update),
(install_title_value_pair), (create_basic_page),
(create_emblems_page), (create_properties_window): Broke up
huge create_properties_window into smaller functions, and
added location, type, size, and date to Basic page.
2000-05-04 J Shane Culpepper <pepper@eazel.com>
* components/services/install/Makefile.am
* components/services/startup/main.c
* components/services/startup/eazel-register.c
* components/services/startup/eazel-register.h
* components/services/startup/nautilus-services-startup-view.h
* components/services/startup/nautilus-services-startup-view.c
Code cleanup to conform to eazel hacking standards.
2000-05-04 Andy Hertzfeld <andy@eazel.com>
now you can drop emblems from the property browser onto
icons in the icon view.
* libnautilus-extensions/nautilus-icon-dnd.h:
added definitions for the "property/keyword" drag type
* libnautilus-extensions/nautilus-icon-dnd.c:
added receive_dropped_keyword and integrated it;
made it highlight by testing for keywords in
nautilus_icon_dnd_update_drop_target;
also, with Pavel's help, fixed a long-standing drag and drop bug
by calling nautilus_icon_container_free_drag_data in the
drag_leave_callback.
* data/backgrounds/Makefile.am:
added another background image
* data/backgrounds/beige_tile.jpg:
new background image
2000-05-04 Darin Adler <darin@eazel.com>
* src/ntl-uri-map.c: (file_list_to_mime_type_hash_table),
(free_key), (mime_type_hash_table_destroy),
(got_file_info_callback): Fixed bug I introduced earlier.
Now MIME types are just like other text -- potentially
dynamically computed and all.
Special thank-you fix for Carbamide. With all his testing he deserves
some special treatment.
2000-05-04 Ramiro Estrugo <ramiro@eazel.com>
* src/run-nautilus: Pass command line arguments on to the script.
2000-05-04 J Shane Culpepper <pepper@eazel.com>
*components/eazel/services/install/eazel-install-xml-package-list.c
Making minor fixes. Changed gint reference to int. Made
parse_package_template function static.
2000-05-04 Darin Adler <darin@eazel.com>
* HACKING: Some more instructions and cleanup.
* RENAMING: Removed one gratuitous renaming we won't do.
* components/html/ntl-web-browser.c:
Removed stray "#include <config.h>" that I added by accident.
* components/hardware/main.c: (main):
* components/help/hyperbola-main.c: (main):
* components/html/ntl-web-browser.c: (main):
* components/music/main.c: (main):
* components/notes/ntl-notes.c: (main):
* components/rpmview/main.c: (main):
* components/websearch/ntl-web-search.c: (main):
* src/file-manager/gnome-desktop.c (main):
* src/ntl-main.c (main):
Added ifdefs so you don't get warnings when building with
localization turned off. Ugly, but needed I think.
* components/help/converters/gnome-db2html2/gdb3html.c:
(ulink_start_element), (start_element):
* components/help/converters/gnome-db2html2/sect-elements.c:
(sect_sect_start_element), (sect_sect_end_element),
(sect_title_start_element), (sect_xref_start_element),
(sect_graphic_start_element), (sect_get_infobox_logo):
* components/help/converters/gnome-db2html2/sect-preparse.c:
(sect_preparse_sect_start_element),
(sect_preparse_title_characters):
* components/help/converters/gnome-db2html2/toc-elements.c:
(toc_sect_start_element), (toc_title_start_element):
* components/help/converters/gnome-info2html2/html.c:
(write_node_link_html):
* components/help/hyperbola-filefmt.c: (tree_key_compare):
* components/help/hyperbola-nav-index.c: (start_element),
(end_element), (hyperbola_navigation_index_new):
* components/html/ntl-web-browser.c: (browser_submit):
Replaced all uses of strcasecmp with g_strcasecmp.
Why? Because Michael Meeks said so and that's good enough
for me (in this case :-).
* components/music/nautilus-music-view.c:
(nautilus_music_view_update_from_uri):
* libnautilus-extensions/nautilus-file.c:
(nautilus_file_get_mime_type_as_string_attribute),
(nautilus_file_get_mime_type):
* libnautilus-extensions/nautilus-icon-factory.c:
(nautilus_icon_factory_get_icon_name_for_regular_file):
* src/file-manager/fm-icon-view.c (get_icon_property_callback):
* src/ntl-index-panel.c (nautilus_index_panel_update_buttons):
* src/ntl-uri-map.c (file_list_to_mime_type_hash_table):
Changed get_mime_type to be like all other text functions and
return a strdup'd string. John said it was a good idea.
* libnautilus-extensions/nautilus-file-private.h:
* libnautilus-extensions/nautilus-directory-async.c:
(metafile_read_callback), (metafile_read_some),
(set_up_request_by_file_attributes),
(nautilus_directory_monitor_add_internal),
(directory_list_get_next_position), (directory_load_callback),
(ready_callback_call),
(nautilus_directory_call_when_ready_internal),
(wants_directory_count), (has_problem),
(ready_callback_is_satisfied), (is_anyone_monitoring_file_list),
(is_anyone_waiting_for_metafile), (is_wanted), (select_needy_file),
(start_getting_directory_counts):
Reorganize to get ready for adding code to read the top left text.
* libnautilus-extensions/nautilus-file-attributes.h:
Added name for the "top left text" attribute.
* libnautilus-extensions/nautilus-file.h:
* libnautilus-extensions/nautilus-file.c:
(nautilus_file_get_top_left_text):
Added call to get the top left text.
* libnautilus-extensions/nautilus-icon-canvas-item.c:
(draw_embedded_text): Tiny format tweak.
* libnautilus-extensions/nautilus-icon-container.c:
(nautilus_icon_container_update_icon): Tiny format tweak.
* libnautilus-extensions/nautilus-icon-factory.h:
* libnautilus-extensions/nautilus-icon-factory.c:
(nautilus_icon_factory_get_pixbuf_for_file),
(nautilus_icon_factory_get_pixmap_and_mask_for_file),
(nautilus_icon_factory_embed_text),
(nautilus_icon_factory_embed_file_text):
Added support for embedded text. Not completely deployed yet.
2000-05-03 Pavel Cisler <pavel@eazel.com>
* src/file-manager/dfos-xfer.c (create_xfer_dialog),
(handle_xfer_ok), (handle_xfer_vfs_error), (fs_xfer),
(fs_move_to_trash), (fs_empty_trash):
Add a simple heuristic to only show the progress dialog
for file operations that are likely to take a non-trivial
ammount of time in which case the progress dialog flashed
on the screen for a split of a second.
* libnautilus-extensions/nautilus-icon-dnd.c
(nautilus_icon_dnd_modifier_based_action):
Switch the modifier key for copy to Control. This is a better
modifier because Alt had to be held down after the drag started
otherwise one would move the window instead of starting a drag.
2000-05-03 Andy Hertzfeld <andy@eazel.com>
* src/nautilus-property-browser.c:
at John's suggestion, made the property browser stay open if you
drag with the shift key held down. Also, changed the format of
the data accompanying the "property/keyword" item to just be the
keyword instead of a file uri.
* src/ntl-index-panel.c:
adjusted the index panel to accept the new "property/keyword" format,
removing the hack to extract the keyword from the uri.
2000-05-03 Eskil Heyn Olsen <eskil@eazel.com>
* components/services/install/eazel-install-xml-package-list.c:
parse_pkg_template checks the fopen return val. Also changed the
arguments, so it returns the number of lines, thus loosing the
hardcoded 500 lines in generate_xml_package_list.
2000-05-03 Gene Z. Ragan <gzr@eazel.com>
* libnautilus-extensions/nautilus-entry.c
* libnautilus-extensions/nautilus-entry.h:
Refined undo support.
(nautilus_entry_enable_undo_key):
New function to set internal handling of ctl-z for undo.
* libnautilus-extensions/nautilus-icon-container.c
(hide_rename_widget):
Removed deletion of undo transaction. This is now handled
by the owner of the widget.
* libnautilus-extensions/nautilus-undo-manager.c
(nautilus_undo_manager_unregister_object):
New function to unregister a GtkObject from the undo manager.
Any transaction that contains the object is removed from the
undo and redo lists. This should be called for any object that
is no longer available for user interaction.
* libnautilus-extensions/nautilus-undo-transaction.c
(nautilus_undo_transaction_contains_object):
Function added to support nautilus_undo_manager_unregister_object()
call in the undo manager. Each NautilusUndoable in a transaction
is checked for the object to be removed.
* src/file-manager/fm-icon-view.c:
* src/file-manager/fm-properties-window.c
(create_properties_window):
Added call to unregister rename widget from undo manager.
* src/nautilus-bookmarks-window.c
Added undo support for entry widgets.
* src/nautilus-location-bar.c
Changed to support modified undo manager APIs.
2000-05-03 Kjartan Maraas <kmaraas@online.no>
* components/html/Makefile.am: Added -DGNOMELOCALEDIR
* components/html/ntl-web-browser.c: Added bindtextdomain()
and textdomain() to initialize the i18n support.
* components/music/Makefile.am: Same as above.
* components/music/main.c: Same as above.
* components/music/nautilus-music-view.c: Marked strings.
* components/notes/Makefile.am: Same as above.
* components/notes/ntl-notes.c: Same as above.
* components/rpmview/Makefile.am: Same as above.
* components/rpmview/main.c: Same here too.
* components/rpmview/nautilus-rpm-view.c: Marked strings.
* components/sample/nautilus-sample-content-view.c: Same here too.
* components/websearch/Makefile.am: Same as above.
* components/websearch/ntl-web-search.c: Again.
2000-05-03 Fatih Demir <kabalak@gmx.net>
* nautilus.desktop: Yes, yes, nautilus can be such a
typotic word (nautlius->nautilus in Name entry...)
* configure.in: Added ko to ALL_LINGUAS .
2000-05-02 Andy Hertzfeld <andy@eazel.com>
* src/nautilus-index-title.c,h:
made it display the emblems associated with a file. Also, added a
routine to return the current title.
* src/ntl-index-panel.c:
made dropping emblems on the index panel work by adding a new
receive_dropped_keyword routine
* src/nautilus-property-browser.c:
fixed bug where the title background image wasn't being set correctly
* data/browser.xml:
changed drop type for emblems to "property/keyword"
* data/backgrounds/Makefile.am:
added new background image
* data/backgrounds/white_ribs.png:
added new "white_ribs" background image
2000-05-02 Gene Z. Ragan <gzr@eazel.com>
* libnautilus-extensions/nautilus-entry.c
Connected widget to undo manager.
(nautilus_entry_initialize),
(nautilus_entry_destroy),
(nautilus_entry_key_press):
Added check for ctl-z. An undo is requested when the key combination
is triggered.
(nautilus_entry_changed):
Added undo registration when text is modified.
(save_undo_snapshot_callback),
(restore_from_undo_snapshot_callback):
Standard undo manager callbacks
(nautilus_entry_enable_undo):
Added new function. Pass in boolean value to enable or disable
undo functionality.
2000-05-02 John Sullivan <sullivan@eazel.com>
* libnautilus-extensions/nautilus-icon-factory.c
(nautilus_icon_factory_get_icon_name_for_regular_file):
Removed special case for "core" files, which are now
handled by the MIME type database used in gnome-vfs.
2000-05-02 Andy Hertzfeld <andy@eazel.com>
1st cut at property browser for drag and drop customization;
Backgrounds are fully implemented, emblems are only partially there,
more coming soon
* src/Makefile.am: added property browser source files
* src/nautilus-property-browser.c,h:
new class that implements the property browser
* src/nautilus-window-menus.c:
added "customize" menu item and a callback that brings up
the property browser
* src/ntl-index-panel.c:
changed index panel to accept "property/bgimage" drag type and
change the background image accordingly
* libnautilus-extensions/nautilus-icon-dnd.c:
changed icon canvas to accept "property/bgimage" drag type and
change the background image accordingly; removed the old shift key hack
* libnautilus-extensions/nautilus-icon-dnd.h:
defined constants for the new drag type
* configure.in: two new data directories for backgrounds and emblems
* data/Makefile.am: added two new directories
* data/browser.xml: xml file that defines the categories
added some background images to play with:
* data/backgrounds/.cvsignore
* data/backgrounds/Makefile.am
* data/backgrounds/baize.png
* data/backgrounds/bricks.jpg
* data/backgrounds/bubbles.png
* data/backgrounds/buffedwood.jpg
* data/backgrounds/burlap.jpg
* data/backgrounds/chalk.jpg
* data/backgrounds/cherrywood.jpg
* data/backgrounds/cork.png
* data/backgrounds/dark-gnome.jpg
* data/backgrounds/darkwood.png
* data/backgrounds/frost.jpg
* data/backgrounds/gnome.jpg
* data/backgrounds/gold.jpg
* data/backgrounds/grass.png
* data/backgrounds/gray_fabric.png
* data/backgrounds/greenery.jpg
* data/backgrounds/manila.jpg
* data/backgrounds/pink_fabric.png
* data/backgrounds/puzzle.jpg
* data/backgrounds/raindrops.png
* data/backgrounds/sky.jpg
* data/backgrounds/stucco.jpg
* data/backgrounds/white_marble.jpg
* data/backgrounds/white_paper.jpg
* data/backgrounds/yellow_paper.jpg
added some emblem images:
* data/emblems/.cvsignore
* data/emblems/Makefile.am
* data/emblems/certified.gif
* data/emblems/changed.gif
* data/emblems/confidential.gif
* data/emblems/encrypted.gif
* data/emblems/important.gif
* data/emblems/new.gif
* data/emblems/personal.gif
* data/emblems/remote.gif
added images for the top-level categories
* icons/Makefile.am: added 2 images to Makefile
* icons/backgrounds.png
* icons/emblems.png
2000-05-02 Maciej Stachowiak <mjs@eazel.com>
* RENAMING: Added some idl-related renamings.
2000-05-02 Darin Adler <darin@eazel.com>
* HACKING: Added a mention of "killall oafd" and "killall gconfd".
* libnautilus-extensions/nautilus-list.c (nautilus_list_destroy):
Fixed a bug where we'd free the details structure and then write
to it afterwards. This was torturing John today. It happens when
you leave a page that's set to list view.
* src/file-manager/fm-icon-view.c
(fm_icon_view_icon_changed_callback): Fixed bug 663 that was
about the issue of similar but not identical floating point
numbers and also bug 661 that wasn't a bug at all!
* src/file-manager/fm-properties-window.c
(get_pixmap_and_mask_for_properties_window):
Removed the FIXME from this file, since the bug is fixed.
2000-05-02 Cody Russell <car0969@gamma2.uta.edu>
* src/ntl-window.c: Respect the user's GNOME preferences. Lock
down the "Location" toolbar if the user has "Can detach and
move toolbars" disabled in gnomecc.
2000-05-02 Darin Adler <darin@eazel.com>
* libnautilus-extensions/nautilus-icon-factory.c:
(load_specific_image_svg): Open .svg file in binary mode.
(load_specific_image): Factor out some shared code.
* src/file-manager/fm-directory-view.h:
* src/file-manager/fm-directory-view.c:
Renamed *_cb to *_callback.
(remove_custom_icon), (files_have_any_custom_images),
(remove_custom_icons_callback), (finish_adding_menu_item),
(fm_directory_view_real_append_background_context_menu_items):
(append_selection_menu_item),
(fm_directory_view_real_append_selection_context_menu_items),
(fm_directory_view_real_merge_menus), (update_one_menu_item),
(fm_directory_view_real_update_menus),
(create_selection_context_menu):
Added the "Remove Custom Image" command.
(compute_menu_item_info): Made more similar to the one in
FMIconView.
* src/file-manager/fm-icon-view.c (compute_menu_item_info),
(append_one_context_menu_item), (insert_one_context_menu_item),
(fm_icon_view_append_selection_context_menu_items),
(append_bonobo_menu_item), (fm_icon_view_merge_menus),
(update_one_menu_item), (fm_icon_view_update_menus):
Made more similar to code in FMDirectoryView.
2000-05-02 Pavel Cisler <pavel@eazel.com>
* libnautilus-extensions/nautilus-icon-container.c
(motion_notify_event):
Get rid of FIXME 623 - the problem was already fixed, I just
forgot to remove the FIXME.
* src/file-manager/dfos-xfer.c (handle_xfer_ok):
Fix FIXME 676 - the particular switch case doesn't need any
handling, took it out.
* libnautilus-extensions/nautilus-list-column-title.c
(nautilus_list_column_title_paint),
(nautilus_list_column_title_leave),
(nautilus_list_column_title_button_press),
(nautilus_list_column_title_button_release):
Fix bug 423 - Double-clicking Header boundary in List View
fails assertion.
Fix a column press tracking bug Gene found - the coulumn would
stay pressed if you tracked out of the column and let go of the
mouse button - made it so that when tracking a column press the
cursor gets grabbed.
Fix FIXME 618 - used offscreen bitmap draws instead of invalidates
during the different mouse tracking state changes.
* file-manager/fm-directory-view.c:
Added comments to some #if 0 code that I left behind and will use
later.
2000-05-02 John Sullivan <sullivan@eazel.com>
Fixed bug 641: should check MIME type for SVG files.
Fixed bug 438: Bookmark menu items need to limit icon size
* libnautilus-extensions/nautilus-icon-factory.h:
Defined a new standard icon size, NAUTILUS_ICON_SIZE_FOR_MENUS.
None of the existing standard sizes look good in menus.
* libnautilus-extensions/nautilus-file.h,
* libnautilus-extensions/nautilus-file.c
(nautilus_file_is_mime_type): New function, compares against
a particular MIME type so the caller doesn't have to get the
MIME type and worry about whether to free it or not.
* libnautilus-extensions/nautilus-icon-factory.c:
(get_larger_icon_size),
(get_smaller_icon_size): Include NAUTILUS_ICON_SIZE_FOR_MENUS
when looking for the next size.
(str_has_svg_suffix): Removed this function.
(nautilus_icon_factory_get_icon_for_file): Use
nautilus_file_is_mime_type to check for SVG instead
of checking file suffix.
(path_represents_svg_image): New function.
(load_specific_image): Use path_represents_svg_image to
check for SVG instead of checking file suffix.
* libnautilus-extensions/nautilus-bookmark.c:
(create_pixmap_widget_for_bookmark): Use
NAUTILUS_ICON_SIZE_FOR_MENUS.
* src/nautilus-window-menus.c (append_bookmark_to_menu):
Use NAUTILUS_ICON_SIZE_FOR_MENUS.
2000-05-02 Darin Adler <darin@eazel.com>
* libnautilus-extensions/nautilus-icon-container.c (icon_new),
(nautilus_icon_container_update_icon):
Got rid of the old maximum size hack and use the new maximum size
parameter instead.
* src/nautilus-index-title.c (nautilus_index_title_update_icon):
Took out maximum size hack and use the maximum size parameter
instead.
* libnautilus-extensions/nautilus-icon-factory.c
(str_has_svg_suffix), (nautilus_icon_factory_get_icon_for_file),
(load_specific_image): Renamed suffix_is_scalable to
str_has_svg_suffix to make it clearer what it does.
2000-05-02 Darin Adler <darin@eazel.com>
* check-FIXME.pl: Added -print as suggested by Morten Welinder
<terra@diku.dk>.
* check-config-h.pl: Added -print and fixed broken message as
suggested by Morten Welinder <terra@diku.dk>.
* libnautilus-extensions/nautilus-icon-factory.h:
* libnautilus-extensions/nautilus-icon-factory.c
(suffix_is_scalable): Simpler implementation.
(get_themed_icon_file_path): Look for size-specific version of
even .svg files. Although not so useful, it's not ridiculous to do so.
(nautilus_icon_factory_get_icon_for_file): Fixed the twisted logic to
be less twisted. Also changed the ".svg" extension check to use the
common function suffix_is_scalable.
(load_specific_image): Untwist logic here too, and note in the FIXME
that both the .svg library and gdk-pixbuf are limiting us to file:
URIs, although the gdk-pixbuf case is fixable without redoing the
library by just using our utility functions.
(load_image_for_scaling): Update for new size request structure which
contains maximum sizes as well as nominal ones.
(scale_image_and_rectangle), (revise_scale_factors_if_too_big),
(scale_image_down_if_too_big): New helper functions for scaling.
(load_image_scale_if_necessary): Take the maximum size into account.
(get_image_from_cache): Use new size request structure and take the
maximum size into account.
(nautilus_icon_factory_get_pixbuf_for_icon): Changed to take maximum
size parameters and pass them in to the underlying function.
(icon_cache_key_hash): Include the maximum size in the hash.
(icon_cache_key_equal): Check the maximum size too.
(nautilus_icon_factory_get_pixbuf_for_file): Pass new max. size
parameters to the nautilus_icon_factory_get_pixbuf_for_icon
function.
* libnautilus-extensions/nautilus-icon-container.c
(nautilus_icon_container_update_icon): Pass new max. size
parameters to the nautilus_icon_factory_get_pixbuf_for_icon
function.
* src/file-manager/fm-list-view.c
(fm_list_view_get_emblem_pixbufs_for_file): Pass new max. size
parameters to the nautilus_icon_factory_get_pixbuf_for_icon
function.
2000-05-02 John Sullivan <sullivan@eazel.com>
* data/mime/.cvsignore,
* data/mime/Makefile.am:,
* data/mime/nautilus.keys: Removed files. Nautilus
doesn't need to install the human-readable MIME
descriptions any more because gnome-vfs does it.
* configure.in,
* data/Makefile.am: Removed build system fu that
was installing nautilus.keys.
2000-05-01 Kjartan Maraas <kmaraas@gnu.org>
* libnautilus/nautilus-clipboard.c: Cosmetic change.
* src/Makefile.am: Added -DGNOMELOCALEDIR to $INCLUDES.
* src/ntl-main.c: Added calls to bindtextdomain() and
textdomain() to make the translations work.
* components/help/hyperbola-main.c: Same here.
* components/help/Makefile.am: Here as well. This should be
done for any main() function in any module containing text
to be translated.
2000-05-01 Pavel Cisler <pavel@eazel.com>
* libnautilus-extensions/nautilus-file-changes-queue.c:
(nautilus_file_changes_consume_changes):
Temporary workaround for an apparent codegen bug Carbamide
was running into. (I'll need to track this down some more,
this change makes the crash go away.)
* src/file-manager/dfos-xfer-progress-dialog.c:
* src/file-manager/dfos-xfer-progress-dialog.h:
* src/file-manager/dfos-xfer.c:
(dfos_xfer_progress_dialog_get_type),
(dfos_xfer_progress_dialog_new),
(dfos_xfer_progress_dialog_new_file),
(create_xfer_dialog),
(fs_xfer), (handle_xfer_ok):
Fix up the progress dialog so that it displays meaningful
information while emptying the trash and moving files to
trash.
2000-05-01 Ramiro Estrugo <ramiro@eazel.com>
* src/nautilus-gconf.c,
src/nautilus-gconf.h: Retired. Not used or needed no more.
2000-05-01 Darin Adler <darin@eazel.com>
* check-config-h.pl: Wrote a script to check for files that forget
to include <config.h> and optionally edit to add it.
* src/nautilus-zoom-control.c (set_zoom_level): Fixed the bug
number in a FIXME.
* docs/style-guide.html: Added one more tip.
* check-FIXME.pl: Use my newfound Perl knowledge to spruce it up.
* components/help/converters/gnome-db2html2/gdb3html.c:
* components/help/converters/gnome-db2html2/sect-elements.c:
* components/help/converters/gnome-db2html2/sect-preparse.c:
* components/help/converters/gnome-db2html2/toc-elements.c:
* components/help/converters/gnome-info2html2/html.c:
* components/help/converters/gnome-info2html2/main.c:
* components/help/converters/gnome-info2html2/parse.c:
* components/help/converters/gnome-info2html2/utils.c:
* components/help/converters/gnome-man2html2/gnome-man2html.c:
* components/help/hyperbola-filefmt.c:
* components/help/hyperbola-nav-index.c:
* components/help/hyperbola-nav-search.c:
* components/help/hyperbola-nav-tree.c:
* components/html/glibwww-callbacks.c:
* components/html/glibwww-init.c:
* components/html/glibwww-trans.c:
* components/html/gnome-dialogs.c:
* components/html/ntl-web-browser.c:
* components/services/install/eazel-install-metadata.c:
* components/services/install/eazel-install-protocols.c:
* components/services/install/eazel-install-rpm-glue.c:
* components/services/install/eazel-install-tests.c:
* components/services/install/eazel-install-utils.c:
* components/services/install/eazel-install-xml-package-list.c:
* components/services/install/eazel-install.c:
* components/services/install/helixcode-install-utils.c:
* components/services/startup/eazel-register.c:
* components/websearch/ntl-web-search.c:
* helper-utilities/authenticate/nautilus-authenticate-fork.c:
* helper-utilities/authenticate/nautilus-authenticate-pam.c:
* helper-utilities/authenticate/nautilus-authenticate.c:
* libnautilus-extensions/nautilus-bonobo-extensions.c:
* libnautilus-extensions/nautilus-file-utilities.c:
* libnautilus-extensions/nautilus-glib-extensions.c:
* libnautilus-extensions/nautilus-link.c:
* libnautilus-extensions/nautilus-mime-type.c:
* libnautilus-extensions/nautilus-undo-transaction.c:
* librsvg/art_rgba.c:
* librsvg/art_rgba_svp.c:
* librsvg/rsvg-bpath-util.c:
* librsvg/rsvg-path.c:
* librsvg/rsvg.c:
* librsvg/test-rsvg.c:
* nautilus-widgets/nautilus-caption-table.c:
* nautilus-widgets/nautilus-password-dialog.c:
* nautilus-widgets/nautilus-preferences-box.c:
* nautilus-widgets/nautilus-preferences-dialog.c:
* nautilus-widgets/nautilus-preferences-group.c:
* nautilus-widgets/nautilus-preferences-item.c:
* nautilus-widgets/nautilus-preferences-pane.c:
* nautilus-widgets/nautilus-radio-button-group.c:
* nautilus-widgets/test-nautilus-widgets.c:
* nautilus-widgets/test-preferences.c:
* src/file-manager/desktop-item.c:
* src/file-manager/desktop-layout.c:
* src/file-manager/desktop-menu.c:
* src/nautilus-bookmarks-window.c:
* src/nautilus-gconf.c:
* src/nautilus-window-menus.c:
* src/nautilus-window-toolbars.c:
* src/nautilus-zoom-control.c
* src/nautilus-zoomable-frame-svr.c:
* src/ntl-app.c:
* src/ntl-content-view.c:
* src/ntl-main.c:
* src/ntl-meta-view.c:
* src/ntl-miniicon.c:
* src/ntl-uri-map.c:
* src/ntl-view-frame-svr.c:
* src/ntl-view.c:
* src/ntl-window-state.c:
Added includes of <config.h>.
2000-05-01 Gene Z. Ragan <gzr@eazel.com>
* libnautilus-extensions/nautilus-icon-text-item.c
* libnautilus-extensions/nautilus-icon-private.h
(iti_event),
(nautilus_icon_text_item_configure),
(nautilus_icon_text_item_start_editing),
(save_undo_snapshot_callback),
(restore_from_undo_snapshot_callback):
* libnautilus-extensions/nautilus-undo-manager.c
(nautilus_undo_manager_remove_transaction),
(nautilus_undo_manager_add_undo_transaction),
(nautilus_undo_manager_add_redo_transaction),
(prune_undo_manager_list):
Fixed bug in above functions where GList was not getting properly updated
after an insert or remove operation.
* src/nautilus-location-bar.c
(nautilus_location_bar_initialize_class):
Added signal connection to the "changed" signal of the GtkEntry item.
(editable_changed_callback):
Added undo operation functionality.
Original location text is cached in anticipation of an undo operation.
(nautilus_location_bar_initialize):
Added two new memeber variables, undo_text and undo_registered. undo_text is
a char * that keeps a cache of the location text before editing.
undo_registered is a boolean that is set when an undo can be registered.
(nautilus_location_bar_set_location):
undo_registered is set to FALSE and undo_text is updated.
(save_undo_snapshot_callback):
Callback called to create undo transaction
(restore_from_undo_snapshot_callback):
Callback called to restore the location bar text.
(destroy):
undo_text is freed if it has been allocated.
2000-05-01 John Sullivan <sullivan@eazel.com>
Fixed bug 575 (Make Nautilus use gnome-vfs-mime)
Converted all the (few) places where Nautilus code was
using the old gnome-libs MIME API to use the new gnome-vfs
MIME API.
* components/help/help-method.c (convert_file_to_uri):
Use gnome_vfs_mime_type_of_file. This function should
probably use NautilusFile rather than calling the MIME
stuff directly, but I just couldn't get distracted into
trying to improve it.
* libnautilus-extensions/nautilus-file.c
(nautilus_file_get_type_as_string):
Use gnome_vfs_mime_description.
* libnautilus-extensions/nautilus-icon-factory.c
(nautilus_icon_factory_get_icon_name_for_regular_file):
Use gnome_vfs_mime_get_value.
* data/mime/nautilus.keys: Added a translation for
"special/symlink" because it now starts showing up when
using ftp:// locations. Perhaps we need to fix something
in ftp also.
2000-05-01 Darin Adler <darin@eazel.com>
* HACKING: Added option for eog. (Sorry Maciej, I had done it
before I got your mail.)
* src/ntl-uri-map.c (make_oaf_query_with_known_mime_type),
(make_oaf_query_with_uri_scheme_only): Improved comments and
formatting a little bit more. (Sorry again, Maciej. You can
merge it however you want!)
2000-05-01 Maciej Stachowiak <mjs@eazel.com>
* libnautilus/nautilus-zoomable.c: Remove FIXME comment for #681;
everything wrong with this file seems to be separately recorded.
2000-05-01 Darin Adler <darin@eazel.com>
Another cut at icon positioning. Still much tweaking needed.
* libnautilus-extensions/nautilus-icon-canvas-item.c
(nautilus_icon_canvas_item_bounds): Got rid of "slop".
* libnautilus-extensions/nautilus-icon-grid.c
(get_icon_size_power_from_bounds), (get_icon_size_power):
Get more grid space per icon now that slop is gone.
(nautilus_icon_grid_add): Base grid space occupied on the size of
the icon, not the side of the grid.
(nautilus_icon_grid_get_position): Position icons horizontally
centered in the space, but vertically at the top.
Made the OAF queries more readable as I discussed with Maciej.
* src/ntl-uri-map.c (extract_prefix_add_suffix),
(mime_type_get_supertype), (uri_string_get_scheme):
Make special-purpose string routines use common function instead.
We must not optimize this kind of thing for speed, but rather for
ease of reading the code. This can be whittled down a little more
and put into nautilus-string.h
(make_oaf_query_with_known_mime_type),
(make_oaf_query_with_uri_scheme_only):
Reformatted and commented the OAF queries so they are easy to read.
2000-04-30 Darin Adler <darin@eazel.com>
* src/file-manager/fm-icon-view.c:
Fixed a typo that prevented my Bonobo bug fix from working.
We were still getting crashes when we switched views because
the radio group was in "Setings", not "Settings".
2000-04-29 Christopher Blizzard <blizzard@redhat.com>
* components/mozilla/Makefile.am (INCLUDES): Add $(BONOBO_CFLAGS)
so that we can pick up the path to the bonobo includes in case
they are built somewhere else than the standard location.
2000-04-29 Ramiro Estrugo <ramiro@eazel.com>
* configure.in:
* librsvg/Makefile.am:
Check in patch suggested by Roberto Zunino
<zunino@cli.di.unipi.it>. Check for gdk-pixbuf in configure and
use the flags set by that in the rsvg makefile.
2000-04-28 Gene Z. Ragan <gzr@eazel.com>
* libnautilus-extensions/nautilus-icon-text-item.c
* libnautilus-extensions/nautilus-icon-text-item.h
* libnautilus-extensions/nautilus-undo-manager-private.h
Fixed the following FIXME bugs: 684 686 687
Hooked up the undo mechanism to work properly with
the renaming widget.
* libnautilus-extensions/nautilus-undo-manager.c
* libnautilus-extensions/nautilus-undo-manager.h
Add configuration defaults to sets the UndoManager to
not use the redo functionality and sets the depth of
the undo list to one transaction.
(nautilus_undo_manager_enable_redo):
Function to toggle on or off the ability to redo undone transactions.
(nautilus_undo_manager_set_queue_depth):
Function to set the max depth of the undo/redo queues
(free_undo_manager_list_data):
New utility function to clean up data in undo/redo list
(prune_undo_manager_list):
New utility function that prunes a set number of items from
either the undo or redo list.
(nautilus_undo_manager_add_undo_transaction):
Manually insert an externally created undo transaction into
the undo queue.
(nautilus_undo_manager_add_redo_transaction):
Manually insert an externally created undo transaction into
the redo queue.
* libnautilus-extensions/nautilus-undo-transaction.c
* libnautilus-extensions/nautilus-undo-transaction.h
(nautilus_undo_transaction_destroy):
Added destructor function for a NautilusUndoTransaction object
* src/nautilus-window-menus.c
(update_undo_menu_item):
Fixed bug 755. Connected to signal sent by undo manager that informs
Undo menu item sensitivity to be set.
2000-04-28 Darin Adler <darin@eazel.com>
* libnautilus-extensions/nautilus-directory-background.c
(background_destroyed_callback),
(nautilus_connect_background_to_directory):
gtk_signal_connect_while_alive wasn't quite up to the task,
so I had to redo the fix from my last check-in.
2000-04-28 Ramiro Estrugo <ramiro@eazel.com>
* libnautilus-extensions/Makefile.am:
Add missing .h files to SOURCES.
2000-04-28 Darin Adler <darin@eazel.com>
* libnautilus-extensions/nautilus-directory-background.c
(nautilus_connect_background_to_directory):
Added code to disconnect when the background is destroyed.
This was exposed by our lack of leaking now!
2000-04-28 Darin Adler <darin@eazel.com>
* ntl-window-msgs.c (nautilus_window_has_really_changed):
Quick, kinda-hacky fix for the bug you'd see when you
switch to "hardware:" and then do go-back.
2000-04-28 Darin Adler <darin@eazel.com>
* src/ntl-uri-map.c (async_get_file_info_text):
Fix bug that prevents non-vfs URIs from working.
Just need to initialize the async. handle to NULL.
2000-04-28 Darin Adler <darin@eazel.com>
This little check-in fixes the last April bug and maybe one or
two leaks in Nautilus.
* src/ntl-view.c (nautilus_view_destroy_client): To work around
the circular reference problem in Bonobo, change a call to
bonobo_object_unref to bonobo_object_destroy. This fixes the leak
of the entire viewer each time.
* src/file-manager/fm-directory-view.c (fm_directory_view_destroy):
The FMDirectoryView does not own its view_frame. This is confusing
and needs some reorganization, but it should not unref. It's actually
the view_frame that owns the directory view despite the fact that
it's created by the directory view and the directory view holds a
reference to it! This bug prevented Maciej from doing the workaround
the last time he tried it.
* libnautilus-extensions/nautilus-file-changes-queue.c
(nautilus_file_changes_queue_get),
(nautilus_file_changes_consume_changes):
A small cleanup. The global variable was getting in the way.
2000-04-27 Ramiro Estrugo <ramiro@eazel.com>
* src/ntl-main.c (main): Fix a dumbass mistake. Take out some
real code from inside an assert.
2000-04-28 Darin Adler <darin@eazel.com>
Some cleanup inspired by Maciej's check-in.
* libnautilus-extensions/nautilus-directory-async.c
(ready_callback_call),
(nautilus_directory_call_when_ready_internal),
(call_ready_callbacks):
Made the fix so that call_when_ready works properly when a NULL
directory is passed in.
* libnautilus-extensions/nautilus-file.h:
* libnautilus-extensions/nautilus-file.c
(nautilus_file_call_when_ready): Fix for call_when_ready with
a NULL file.
(nautilus_file_ref), (nautilus_file_list_ref),
(nautilus_file_list_copy): Filled out the operations on lists.
* libnautilus-extensions/nautilus-gtk-extensions.h:
* libnautilus-extensions/nautilus-gtk-extensions.c
(nautilus_gtk_object_list_ref), (nautilus_gtk_object_list_copy):
Filled out the operations on lists.
* src/ntl-uri-map.c (got_metadata_callback): Factored out the
call to async get_file_info to simplify the logic.
(nautilus_navigation_info_new): Took out the check for NULL that
Maciej mentioned in his notes below now that call_when_ready can
handle things.
(nautilus_navigation_info_cancel),
(nautilus_navigation_info_free): Took out some excessive NULL
checks when calling routines that work with NULL.
2000-04-28 Maciej Stachowiak <mjs@eazel.com>
* src/ntl-content-view.c (nautilus_content_view_set_active): Fix a
refcounting problem; make sure to unref the interface we
query_local_interface for.
* components/music/nautilus-music-view.oafinfo: Add "audio/x-mp3"
as directory content type that satisfies the requirement so the
music view activates automatically (the point of the below
excercise). Netscape thinks the mime type for mp3's should be
"audio/x-mpeg" but I am not going to argue.
Achieved bugzilla tasks #701 and #108, plus did some refactoring
of the big hairy `got_file_info_callback' function.
* src/ntl-uri-map.h: add a `files' member to the
NautilusNavigationInfo struct, a GList of NautilusFiles it
contains in case it is a directory.
* src/ntl-uri-map.c (got_file_info_callback): Factored out some
code into separate functions and simplified the control flow. For
each potential component, test if it matches the content
requirements before adding it to the list of available content
view components.
(make_oaf_query_with_known_mime_type,
make_oaf_query_with_uri_scheme_only): New function; breaks out the
logic of constructing an oaf query when the mime type is known and
unknown repsectively from `got_file_info_callback'.
(make_oaf_query_with_known_mime_type): Remove the hack to try to
explicitly exclude the music view.
(file_list_to_mime_type_hash_table): New utility function; takes a
GList of NautilusFiles and returns a hash table which has an entry
for each mime type that at least one of thse files has. This is so
that we can susequently test if any of the files on the list has a
particular mime type in constant time.
(server_matches_content_requirements): New fucntion. Returns true
if the server record does not require specific content mime types,
or if it does and the passed hash table contains at least one of
those.
(nautilus_view_identifier_new_from_oaf_server_info): New helper
function to create a NautilusViewIdentifier directly from an
OAF_ServerInfo record.
(got_metadata_callback): Initialize the `files' field of the
navinfo struct to a copy of the file list that
`nautilus_directory_call_when_ready' gave us; ref all the
NautilusFiles in this copy.
(nautilus_navigation_info_new): Ask for the mime types of files in
the directory as well as for the metadata keys we need.
(nautilus_navigation_info_cancel): Only try to cancel if the
navinfo actually has a directory, to avoid segfaulting.
(nautilus_navigation_info_free): Free the files list. Free both
this and the directory if and only if they are not NULL.
* src/ntl-uri-map.c (nautilus_navigation_info_new): When
navinfo->directory is null, call got_metadata_callback directly
instead of calling `nautilus_directory_call_when_ready' to avoid
segfaulting on protocols that gnome-vfs does not understand like
`hardware:'. There is probably a way to fix this in
`nautilus_directory_call_when_ready' but I did not want to mess
with it.
(got_file_info_callback): Renamed from `my_notify_when_ready'.
2000-04-27 Maciej Stachowiak <mjs@eazel.com>
* libnautilus-extensions/nautilus-directory-async.c: include
<stdlib.h>, my compiler insists on it.
2000-04-27 Ramiro Estrugo <ramiro@eazel.com>
Add a real check for pam.
* acconfig.h:
Add HAVE_PAM.
* configure.in:
Check for pam.
* helper-utilities/authenticate/Makefile.am:
Use $(PAM_LIBS) instead of hardcoding.
2000-04-27 John Sullivan <sullivan@eazel.com>
Fixed bug 660 (Need to publish menu positions for components to use)
* libnautilus/nautilus-bonobo-ui.h:
New file, contains #defines for Bonobo-style menu paths for all
the menus & menu items in Nautilus that we promise components
will exist.
* libnautilus/Makefile.am: Include this new header file in library.
* src/nautilus-window-menus.c: Extensive changes, too many to list
every function. Replaced all the GnomeUIInfo mechanism with
Bonobo-style menu creation, using the menu paths from
nautilus-bonobo-ui.h. While I was in here, I also renamed some
functions (especially xxx_cb -> xxx_callback), tweaked some text,
and used some more standard Gnome menu item pixmaps (not sure if I
like them or not yet).
* src/ntl-window-private.h,
* src/ntl-window.c:
(nautilus_window_back_cb), (nautilus_window_forward_cb),
(nautilus_window_up_cb), (nautilus_window_home_cb): Replaced
these GtkWidget-callback style functions (formerly used
by both menu items and toolbar buttons) with new NautilusWindow
oriented ones nautilus_window_go_back, nautilus_window_go_forward,
nautilus_window_go_up, and nautilus_window_go_home.
(nautilus_window_allow_back), (nautilus_window_allow_forward),
(nautilus_window_allow_up): replaced hardwired Bonobo menu paths
with the new #defines.
* src/nautilus-window-toolbars.c:
Renamed some functions xxx_cb -> xxx_callback.
(toolbar_back_callback), (toolbar_forward_callback),
(toolbar_up_callback), (toolbar_home_callback): New GtkWidget-callback
style functions used exclusively by the toolbar.
* src/file-manager/fm-directory-view.h:
Removed FM_DIRECTORY_VIEW_PATH_CLOSE and
FM_DIRECTORY_VIEW_PATH_SELECT_ALL, since callers should use
the paths defined by Nautilus for these.
* src/file-manager/fm-directory-view.c:
(fm_directory_view_real_merge_menus): Replaced special insider knowledge
of menu positions with use of the new #defines. Also tweaked with the
keyboard underscore shortcuts for some items.
2000-04-27 Darin Adler <darin@eazel.com>
* libnautilus-extensions/nautilus-directory-async.c:
Rewrite of the state machine. This adds the new feature that Maciej
needs where you can call "call_when_ready" to get file attributes.
* libnautilus-extensions/nautilus-directory-private.h:
Added a file_list_monitored boolean to simplify the logic.
* libnautilus-extensions/nautilus-directory.c
(nautilus_directory_destroy): Took advantage of file_list_monitored
simplification.
(nautilus_directory_call_when_ready),
(nautilus_directory_cancel_callback): Tweaked the return_if_fail
calls to match changes in the async.c file.
(got_files_callback), (nautilus_self_check_directory):
Added self-check code to test the new feature.
* libnautilus-extensions/nautilus-string.h:
* libnautilus-extensions/nautilus-string.c (nautilus_str_compare):
Added a new function for use with things that take a GCompareFunc
to avoid a function type cast.
2000-04-27 Gene Z. Ragan <gzr@eazel.com>
* libnautilus-extensions/nautilus-undoable.c
* libnautilus-extensions/nautilus-undoable.h
* libnautilus-extensions/nautilus-undo-manager.c
* libnautilus-extensions/nautilus-undo-manager.h
* libnautilus-extensions/nautilus-undo-transaction.c
* libnautilus-extensions/nautilus-undo-transaction.h
* libnautilus-extensions/nautilus-undo-manager-private.h
Added architecture for undo mechanism.
NautilusUndoManager maintains undo and redo queues of
NautilusUndoTransactions as well as maintaining various state
information pertinant to the user interface.
NautilusUndoTransaction contains a transaction name and a list of
NautilusUndoables. NautilusUndoable is a object that contains a
pointer to an object and a GData object. The GData object
contains named data that can be added and retrieved during an
undo/ redo operation. The NautilusUndoable also emits signals to
the object that enables it to perform the undo and redo
operations. I will write up more complete documents when the code
has matured.
* libnautilus-extensions/nautilus-icon-container.c
* libnautilus-extensions/nautilus-icon-container.h
* src/file-manager/fm-icon-view.c
Removed obsolete undo functions and callbacks. These were
invalidated by the new undo mechanism.
* src/ntl-main.c
Added call to nautilus_undo_manager_initialize_global_manager() in
main. This call initializes a Nautilus global undo manager. Also
fixed some minor coding style issues.
* nautilus-window-menus.c (edit_menu_undo_callback):
Added callback to handle selection of Undo item form edit menu.
Callback checks with Undo Manager for a current undo transaction
and asks manager to perform an undo if there is one.
2000-04-27 Darin Adler <darin@eazel.com>
* MAINTAINERS: Changed to the new Nautilus list instead of the
old secret list.
* components/notes/ntl-notes.c (notes_load_metainfo):
* src/file-manager/fm-directory-view.c
(fm_directory_view_load_uri), (metadata_ready_callback):
* src/ntl-uri-map.c (got_metadata_callback),
(nautilus_navigation_info_new):
Change calls to use new API, but not to use any of the new features,
which are not yet implemented.
* libnautilus-extensions/nautilus-directory.h:
* libnautilus-extensions/nautilus-directory.c
* libnautilus-extensions/nautilus-directory-private.h:
* libnautilus-extensions/nautilus-directory-async.c
* libnautilus-extensions/nautilus-file.c
* libnautilus-extensions/nautilus-file.h:
Added the new API and moved functions around a bit to prepare
for the new feature needed by Maciej for getting a list of files.
* libnautilus-extensions/nautilus-file-attributes.h:
Added an attribute constant for MIME type.
2000-04-27 J. Shane Culpepper <pepper@eazel.com>
* components/services/install/genpkg_list.example
* components/services/install/eazel-install.c
* components/services/install/eazel-install-protocols.c
* components/services/install/eazel-install-rpm-glue.c
* components/services/install/eazel-install-types.h
* components/services/install/eazel-install-xml-package-list.h
* components/services/install/eazel-install-xml-package-list.c
Cleaned up invalid variable names to conform to eazel coding standards.
Added the genpkg_list option to create a package-list.xml from a
colon delimited input file. Created an example file of the input
called genpkg_list.example.
2000-04-27 Darin Adler <darin@eazel.com>
More FIXME-to-bug work.
* check-FIXME.pl: Fixed bug that happens when there are no
outstanding FIXMEs (hooray!).
* components/hardware/nautilus-hardware-view.c
(get_RAM_description):
* components/help/help-method.c (convert_file_to_uri),
(transform_absolute_file):
* components/history/ntl-history-view.c
(hyperbola_navigation_history_select_row), (make_obj), (int):
* components/html/Makefile.am:
* components/html/main.c (pdsink_start), (url_requested_cb),
(view_size_query_cb):
* components/mozilla/nautilus-mozilla-content-view.c
(nautilus_mozilla_content_view_load_uri):
* components/music/nautilus-music-view.c
(nautilus_music_view_initialize), (nautilus_music_view_destroy),
(is_mp3_file), (fetch_song_info), (determine_attribute):
* components/rpmview/nautilus-rpm-view.c
(nautilus_rpm_view_initialize), (check_installed):
* components/services/install/eazel-install-rpm-glue.c
(install_new_packages):
* components/services/install/eazel-install-types.h:
* components/services/startup/eazel-register.c (xmlDoc):
Added bug numbers to FIXMEs, writing bug reports as needed.
2000-04-27 John Sullivan <sullivan@eazel.com>
More FIXME-to-bug work.
* configure.in
* components/services/startup/nautilus-service-startup-view.c,
* libnautilus-extensions/nautilus-directory-async.c,
* libnautilus-extensions/nautilus-global-preferences.c,
* libnautilus-extensions/nautilus-icon-canvas-item.c,
* src/ntl-uri-map.c:
Wrote bug reports for all FIXMEs in these files. With
this checkin and Darin's next one, there should be no
more FIXMEs in Nautilus without a bug report.
2000-04-27 Joe Shaw <joe@helixcode.com>
* components/rpmview/nautilus-rpm-view.c
(nautilus_rpm_view_update_from_uri): Changed call of fdValidb
to checking to ensure that file_descriptor != NULL. fdValid was
removed from RPM 3.0.4 and this bit of code provides the same
functionality. It'll build on 3.0.4-based systems now (like Red
Hat 6.2). Bad Red Hat for breaking reverse compatibility on a
minor upgrade.
2000-04-27 Ramiro Estrugo <ramiro@eazel.com>
* src/ntl-uri-map.c (my_notify_when_ready): Quiet down the mjs
debug noise for us mortals.
2000-04-27 Ramiro Estrugo <ramiro@eazel.com>
Add authenticate helper utility to build.
* Makefile.am:
Add helper-utilities to build.
* configure.in:
Add helper-utilities and helper-utilities/authenticate to build
using a conditional flag until better pam detection voodoo can be
written.
* helper-utilities: New dir.
* helper-utilities/authenticate: New dir. A simple utility to
authenticate a user using PAM and execute a command on their
behalf. Still needs some work to be more useful.
* helper-utilities/authenticate/nautilus-authenticate.h,
helper-utilities/authenticate/nautilus-authenticate.c,
helper-utilities/authenticate/nautilus-authenticate-pam.c,
helper-utilities/authenticate/nautilus-authenticate-fork.c:
New files. Code for authenticate helper utility.
2000-04-27 Ramiro Estrugo <ramiro@eazel.com>
More 'make dist' fixes. I missed the services dir.
* components/services/install/Makefile.am:
Add missing .h files SOURCES.
* components/services/startup/Makefile.am:
Add missing .h files SOURCES.
* Makefile.am:
Add nautilus.png to EXTRA_DIST.
2000-04-27 Ramiro Estrugo <ramiro@eazel.com>
Add gnome panel .desktop file and logo.
* nautilus.desktop: New panel .desktop file.
* nautilus.png: New panel nautilus icon.
* Makefile.am: Install the above 2. Also install the
nautilus-clean.sh script.
* src/run-nautilus: Add dumb script to run nautilus while we work
on the rogue process bugs.
* src/Makefile.am: Install the above script.
2000-04-27 Ramiro Estrugo <ramiro@eazel.com>
More 'make dist' fixes. Let automake know about private headers
so that the dist tarball will contain them.
* components/help/Makefile.am,
* components/mozilla/Makefile.am,
* components/rpmview/Makefile.am,
* components/sample/Makefile.am:
Add .h files to SOURCES.
* libnautilus/Makefile.am:
Add missing nautilus-zoomable.h to HEADERS.
Add missing private .h files SOURCES.
* libnautilus-extensions/Makefile.am:
Add missing .h files to HEADERS.
Add missing private .h files SOURCES.
Add missing idl sources top EXTRA_DIST.
* nautilus-widgets/Makefile.am:
Add missing nautilus-widgets-self-check-functions.h to SOURCES.
* src/Makefile.am:
Add missing nautilus.h to SOURCES.
2000-04-27 Ramiro Estrugo <ramiro@eazel.com>
* librsvg/Makefile.am:
Add .h files to la_SOURCES to make 'make dist' happy.
2000-04-27 Maciej Stachowiak <mjs@eazel.com>
Fix bugzilla task #106:
* src/ntl-uri-map.c (mime_type_get_supertype,
uri_string_get_scheme): Helper functions for generating the
OAF queries.
(my_notify_when_ready): Replaced the hardcoded mess with calls to
a couple of OAF queries. This function still needs major
additional refactoring. I have also introduced some FIXMEs which
call attention to problems that were already there in the code in
most cases.
* components/hardware/nautilus-hardware-view.oafinfo,
components/help/hyperbola.oafinfo,
components/html/ntl-web-browser.oafinfo,
components/mozilla/nautilus-mozilla-content-view.oafinfo,
components/music/nautilus-music-view.oafinfo,
components/notes/ntl-notes.oafinfo,
components/rpmview/nautilus-rpm-view.oafinfo,
components/sample/nautilus-sample-content-view.oafinfo,
components/services/startup/nautilus-service-startup-view.oafinfo,
components/websearch/ntl-web-search.oafinfo, src/nautilus.oafinfo:
Added all relevant general, bonobo and nautilus properties to
content views; some to meta views.
2000-04-26 Andy Hertzfeld <andy@eazel.com>
added an "About Nautilus" HTML file to the novice home directory
* data/top/About.html: new about file
* data/top/Makefile.am: added new file
* libnautilus-extensions/nautilus-file-utilities:
installed a custom icon for the about file
2000-04-26 Pavel Cisler <pavel@eazel.com>
* src/file-manager/dfos-xfer.c:
(fs_xfer):
Fixed a memory thrasher Darin ran into.
The code in question was just asking for trouble to begin with.
2000-04-26 Andy Hertzfeld <andy@eazel.com>
fixed bug #683, experts shouldn't get suffix stripped from link file
* libnautilus-extensions/nautilus-global-preferences.h:
added preference for show_real_file_names
* libnautilus-extensions/nautilus-global-preferences.c:
made the user level code set show_real_file_names appropriately
* libnautilus-extensions/nautilus-link.c:
use the above preference to control suffix stripping
2000-04-26 Darin Adler <darin@eazel.com>
* libnautilus-extensions/nautilus-directory.c
(make_uri_canonical), (is_canonical_uri),
(nautilus_directory_get), (get_parent_directory_if_exists),
(nautilus_self_check_directory):
Added hack for handling "file:/" vs. "file:///" and put a little
framework in place to help us deal with caonical URIs later.
* src/file-manager/fm-directory-view.c (display_pending_files):
Fixed a FIXME bug #.
2000-04-26 Darin Adler <darin@eazel.com>
* libnautilus-extensions/nautilus-directory-async.c
(nautilus_directory_schedule_dequeue_pending_idle),
(new_files_callback), (nautilus_directory_get_info_for_new_files):
* libnautilus-extensions/nautilus-directory-private.h:
* libnautilus-extensions/nautilus-directory.c (call_files_added),
(call_files_added_free_list) (call_files_changed),
(call_fiels_changed_free_list), (call_get_file_info_free_list),
(nautilus_directory_notify_files_added),
(nautilus_directory_notify_files_removed),
(nautilus_directory_notify_files_moved):
Implemented async. lookup of information about newly arrived
files. Changed moved files to work without a new call to get
file information. Fixed some storage leaks.
* libnautilus-extensions/nautilus-directory-async.c
(empty_close_callback), (metafile_read_close),
(nautilus_metafile_read_cancel), (metafile_read_callback),
(metafile_read_some), (metafile_read_open_callback),
(metafile_write_callback): Fixed bug where we were not closing
files when cancelling. This requires a bug fix in GNOME VFS to be
effective.
* libnautilus-extensions/nautilus-directory-async.c
(dequeue_pending_idle_callback):
* libnautilus-extensions/nautilus-directory-private.h:
* libnautilus-extensions/nautilus-directory.c
(nautilus_directory_destroy):
Use new functions in GNOME VFS instead of our own.
* components/html/ntl-web-browser.c (main): Fixed a warning.
* docs/nautilus.faq: Tweak.
2000-04-26 John Sullivan <sullivan@eazel.com>
More FIXME-to-bug work.
* libnautilus/nautilus-view-frame.c,
* libnautilus/nautilus-zoomable.c,
* libnautilus-extensions/nautilus-icon-text-item.c,
* libnautilus-extensions/nautilus-link.c,
* libnautilus-extensions/nautilus-mime-type.c:
Wrote bug reports for all FIXMEs in these files. Down to
45 in Nautilus with no bug report.
2000-04-26 Rebecca Schulman <rebecka@eazel.com>
Fixed bug #99: Implemented copy, paste, clear, and cut for text
Added new files nautilus-clipboard.c,h which contains clipboard
functionality. All components with text widgets should use this
code. It can just be copied from any existing sample code
(see ntl-notes.c in the notes component)
The frame cut, copy and paste stuff is now happy when there is a
widget in focus.
Added
* libnautilus/nautilus-clipboard.c
* libnautilus/nautilus-clipboard.h
Modified
* src/nautilus-window-menus.c (turned on clear, fixed up callbacks for
cut, copy, and paste buttons)
* components/notes/ntl-notes.c (Clipboard activated notes text box)
* components/websearch/ntl-web-search.c (Clipboard activated the search box)
2000-04-26 John Sullivan <sullivan@eazel.com>
More FIXME-to-bug work.
* check-FIXME.pl: Added the three desktop-drawing files
that aren't included in the build to the list of files
in which to ignore FIXMEs.
* nautilus-widgets/nautilus-caption-table.c,
* nautilus-widgets/nautilus-preferences-group.c,
* nautilus-widgets/nautilus-preferences.c,
* src/file-manager/dfos-xfer-progress-dialog.c,
* src/file-manager/dfos-xfer.c:
Wrote bug reports for all FIXMEs in these files. Down to
54 in Nautilus with no bug report.
2000-04-26 Andy Hertzfeld <andy@eazel.com>
fixed bug #603, set index panel background image via drag and drop
* libnautilus-extensions/nautilus-background.c:
fixed bug in nautilus_background_draw_flat_box, where it wasn't
checking for the image case when deciding to let the parent do
the drawing.
* src/ntl-index-panel.c:
fixed bug where it was losing the background image metadata when
setting the background color. Fixed by reading both before
setting either.
2000-04-26 John Sullivan <sullivan@eazel.com>
More FIXME-to-bug work.
* src/nautilus-bookmarks-window.c,
* src/nautilus-location-bar.c,
* src/nautilus-window-menus.c,
* src/nautilus-zoom-control.c,
* src/ntl-main.c,
* src/ntl-uri-map.c:
Wrote bug reports for all FIXMEs in these files. Down to
71 in Nautilus with no bug report.
2000-04-26 John Sullivan <sullivan@eazel.com>
More FIXME-to-bug work.
* src/nautilus-index-title.c,
* libnautilus-extensions/nautilus-gdk-extensions.h,
* libnautilus-extensions/nautilus-gdk-extensions.c:
(select_font): Moved this function to gdk_extensions
and renamed it nautilus_get_largest_fitting_font.
* src/nautilus-index-tabs.c,
* src/nautilus-index-title.c,
* src/file-manager/fm-list-view.c,
* src/file-manager/fm-properties-window.c:
Wrote bug reports for all (other) FIXMEs in these files. Down to
81 in Nautilus with no bug report.
2000-04-26 Andy Hertzfeld <andy@eazel.com>
* src/ntl-index-panel.c:
made dropping images on the index panel set the background tile to
the dropped image. There's an underlying bug in nautilus-background
that prevents it from drawing unless a gradient background has been
previously set up; Darin or I will fix that soon.
2000-04-26 John Sullivan <sullivan@eazel.com>
More FIXME-to-bug work.
* src/file-manager/fm-directory-list.c: Removed this
unused file rather than dealing with its FIXMEs (at
Darin's suggestion).
* src/file-manager/fm-directory-view.c,
* src/file-manager/fm-icon-view.c:
Wrote bug reports for all FIXMEs in these files. Down to 90
in Nautilus with no bug report.
2000-04-26 Ramiro Estrugo <ramiro@eazel.com>
* doc/nautilus.faq: Added faq.
2000-04-26 Pavel Cisler <pavel@eazel.com>
* src/file-manager/fm-directory-view.c:
Change a FIXME bug number after getting rid of a duplicate bug.
2000-04-26 Ramiro Estrugo <ramiro@eazel.com>
* libnautilus-extensions/Makefile.am: Install .h files in the
right place.
* nautilus.spec.in: New file. First try at a rpm spec. Not
expected to quite work yet.
* .cvsignore: Ignore the generated spec.
* Makefile.am,
configure.in: Add nautilus.spec file to build.
2000-04-26 Darin Adler <darin@eazel.com>
* libnautilus-extensions/nautilus-directory-async.c
(nautilus_directory_file_monitor_add):
Fixed an assert that was breaking "make check".
* libnautilus-extensions/nautilus-directory.c
(nautilus_directory_notify_files_added),
(nautilus_directory_notify_files_moved):
Updated bug numbers on FIXMEs in here.
2000-04-26 John Sullivan <sullivan@eazel.com>
More FIXME-to-bug work.
* libnautilus-extensions/nautilus-directory.c,
* libnautilus-extensions/nautilus-file-utilities.c,
* libnautilus-extensions/nautilus-file.c,
* libnautilus-extensions/nautilus-icon-factory.c:
Wrote bug reports for all FIXMEs in these files.
2000-04-26 Ramiro Estrugo <ramiro@eazel.com>
* nautilus-widgets/nautilus-password-dialog.c,
nautilus-widgets/nautilus-password-dialog.h,
test-nautilus-widgets.c: Add a password dialog widget. It
doesnt do the actual authentication, just the widgetry.
* nautilus-widgets/test-nautilus-widgets.c: Add new test for
password dialog, and properly call gnome_init() instead of
gtk_init() to prevent imlib braindamage.
* nautilus-widgets/nautilus-caption-table.c: Style dumbness.
2000-04-26 Ian McKellar <yakk@yakk.net>
* components/hardware/nautilus-hardware-view.c:
Made the hardware view detect all the CPUs in the system and
display an icon for each.
2000-04-26 Ramiro Estrugo <ramiro@eazel.com>
* nautilus-widgets/nautilus-caption-table.c,
nautilus-widgets/nautilus-caption-table.h,
test-nautilus-widgets.c: Add a caption table widget which i will
later use for a password prompt dialog.
2000-04-26 Pavel Cisler <pavel@eazel.com>
* librsvg/test-rsvg.c:
Make it build:
Add a workaround const cast for poptGetContext that thinks it's using
const properly.
2000-04-26 Pavel Cisler <pavel@eazel.com>
* src/file-manager/fm-directory-view.c
* src/file-manager/fm-directory-view.h:
(bonobo_menu_open_in_new_window_cb), (bonobo_menu_delete_cb),
(bonobo_menu_duplicate_cb), (fm_directory_view_get_model),
(fm_directory_view_delete_with_confirm), (append_uri_one),
(fm_directory_duplicate_selection), (compute_menu_item_info),
(fm_directory_view_real_append_selection_),
(fm_directory_view_real_merge_menus),
(fm_directory_view_real_update_menus), (free_file_by_uri_map),
(fm_directory_view_get_context_menu_index):
Added "Move to Trash" and "Empty Trash" menu items.
Disabled the existing Delete code (I'll scavenge it later to implement
Delete as a fallback.)
* src/file-manager/dfos-xfer.h:
* src/file-manager/dfos-xfer.c (file_operation_alert), (fs_xfer),
(get_parent_make_name_list), (fs_move_to_trash):
Add move to trash and empty trash calls.
* libnautilus-extensions/nautilus-file-changes-queue.c
(nautilus_file_changes_queue_get_change),
(nautilus_file_changes_consume_changes):
Fix a problem with nautilus_file_changes_consume_changes getting called
when there is no change allocated yet.
* libnautilus-extensions/nautilus-directory.c
(nautilus_directory_notify_files_added),
(nautilus_directory_notify_files_removed),
(nautilus_directory_notify_files_moved):
Got rid of old debugging code.
2000-04-26 Ramiro Estrugo <ramiro@eazel.com>
* nautilus-clean.sh: Give this thing a -q flag to quiet down noise.
2000-04-26 J. Shane Culpepper <pepper@eazel.com>
*components/services/install/eazel-install.c
*components/services/install/Makefile.am
*components/services/install/eazel-install-metadata.c
*components/services/install/eazel-install-metadata.h
*components/services/install/eazel-install-protocols.h
*components/services/install/eazel-install-protocols.c
*components/services/install/eazel-install-rpm-glue.c
*components/services/install/eazel-install-rpm-glue.h
*components/services/install/eazel-install-tests.h
*components/services/install/eazel-install-tests.c
*components/services/install/eazel-install-utils.c
*components/services/install/eazel-install-utils.h
*components/services/install/eazel-install-xml-package-list.h
*components/services/install/eazel-install-xml-package-list.c
*components/services/install/helixcode-install-utils.c
*components/services/install/helixcode-install-utils.h
Adding the new files for eazel-install. Basically the same as before
but broken up better for further development.
2000-04-26 J. Shane Culpepper <pepper@eazel.com>
* components/services/install/eazel-install-lib.h
* components/services/install/eazel-install-lib-xml.c
* components/services/install/eazel-install-lib-xml.h
* components/services/install/eazel-install-lib-rpm.c
* components/services/install/eazel-install-lib-rpm.h
* components/services/install/eazel-install-lib-debug.c
* components/services/install/eazel-install-lib-debug.h
* components/services/install/eazel-install-lib-util.h
* components/services/install/eazel-install-lib-util.c
Removing current installer in order to checkin the new structure
2000-04-25 Ramiro Estrugo <ramiro@eazel.com>
Simplified preferences api by letting gconf do most of the work.
Removed usage of global preferences from everywhere. There is no
longer a global preferences object. All preference peek/poke
operations are done through a gconf client thing.
* components/history/ntl-history-view.c:
(main): Call nautilus_preferences_initialize()
* libnautilus-extensions/nautilus-global-preferences.c:
Removed usage of global preferences.
* libnautilus-extensions/nautilus-icon-container.c:
Remove usage of unneeded global preferences.
* libnautilus-extensions/nautilus-icon-factory.c
Remove usage of unneeded global preferences.
* libnautilus-extensions/nautilus-list.c:
Remove usage of unneeded global preferences.
* nautilus-widgets/nautilus-preference.c
nautilus-widgets/nautilus-preference.h:
Remove all default_value related crap. Not needed no more. Let
gconf worry about default values.
* nautilus-widgets/nautilus-preferences-group.c,
nautilus-widgets/nautilus-preferences-group.h:
(nautilus_preferences_group_add_item):
No longer need to pass in preferences.
* nautilus-widgets/nautilus-preferences-item.c,
nautilus-widgets/nautilus-preferences-item.h:
No longer need to store a reference to a preferences object in our
class. Also, no longer need to pass in preferences to any
function.
* nautilus-widgets/nautilus-preferences-pane.c,
nautilus-widgets/nautilus-preferences-pane.h:
(nautilus_preferences_pane_add_item_to_nth_group): No longer need
to pass in preferences.
* nautilus-widgets/nautilus-preferences.c,
nautilus-widgets/nautilus-preferences.h:
Remove the NautilusPreferences class. Gconf does the thinking for
preferences now and there is no need to divide things up by
domain - thus no need for multiple preference objects. The api
was changed to reflect this. All preferences peek/poke operations
go through a global gconf_client thing.
Removed the storing and usage of a value. Gconf and only it
stores values for preferences.
Use gconf for callback notifications.
* nautilus-widgets/test-nautilus-widgets.c: Update for the above
changes.
2000-04-25 Ramiro Estrugo <ramiro@eazel.com>
* nautilus-clean.sh: Return 0 at the end of the script so that it
can be used like this: nautilus-clean.sh && ./src/nautilus
* src/nautilus-window-menus.c:
(use_eazel_theme_icons_cb): No longer need to use global
preferences.
* src/ntl-main.c:
(main): Call nautilus_preferences_initialize, not
nautilus_preferences_init.
* src/ntl-uri-map.c:
(add_meta_view_iids_from_preferences): No longer need to use
global preferences. Also, changed the default value passed in to
FALSE so that only meta views that are explicitly turned on
(somewhere else) show up.
* src/ntl-window-state.c:
(nautilus_window_set_initial_state): No longer need to use
global preferences.
* src/file-manager/fm-directory-view.c:
(fm_directory_view_initialize): No longer need to use
global preferences.
* src/file-manager/fm-icon-text-window.c:
(changed_attributes_option_menu_cb), (create_icon_text),
(fm_icon_text_window_destroy_cb),
(fm_get_text_attribute_names_preference_or_default): No longer
need to use global preferences.
* src/file-manager/fm-icon-view.c:
(fm_icon_view_initialize), (fm_icon_view_destroy), : No longer
need to use global preferences.
2000-04-25 Darin Adler <darin@eazel.com>
This change requires a new gnome-vfs.
* HACKING: Updated URL for popt.
* components/rpmview/nautilus-rpm-view.c:
(nautilus_rpm_view_update_from_uri):
Changed to use FD_t for real instead of casting a pointer to a
raw file descriptor to it.
* libnautilus-extensions/nautilus-directory-async.c:
Told it to load 32 items at a time instead of 1.
I think it's time we try this. It seems to work.
* src/ntl-uri-map.c (my_notify_when_ready),
(got_metadata_callback): Change to use the new version of
async. get_file_info.
2000-04-25 Andy Hertzfeld <andy@eazel.com>
made drag and drop to and from the location bar work properly
* src/nautilus-location-bar.c:
changed the exported drag action to GDK_ACTION_LINK, as well as making
it accept links. Fixed crashes in drag_data_get by referencing the
actual location bar instead of the event box, and by not destroying
the result from gtk_entry_get_text, since it's not a copy. Made it
actually go to the dropped in uri by emitting the location changed
signal.
2000-04-25 John Sullivan <sullivan@eazel.com>
* data/mime/nautilus.keys
Removed [en_US] from file-type human-readable descriptions.
Added text explaining how to add a localized description.
This fixes problem where if your language variable isn't
set you get raw MIME types instead of human-readable descriptions.
2000-04-25 John Sullivan <sullivan@eazel.com>
More FIXME-to-bug work.
* libnautilus-extensions/nautilus-icon-container.c,
* libnautilus-extensions/nautilus-icon-dnd.c:
Wrote bug reports for all FIXMEs in these files.
2000-04-25 J. Shane Culpepper <pepper@eazel.com>
* components/services/install/eazel-install.c
* components/services/install/eazel-install-lib.h
* components/services/install/eazel-install-lib-xml.c
* components/services/install/eazel-install-lib-rpm.c
* components/services/install/eazel-install-lib-debug.c
Added command line otions to set remote server and local download
directory. Did more cleaning and testing of the automatic http
download options.
2000-04-25 John Sullivan <sullivan@eazel.com>
More FIXME-to-bug work.
* libnautilus-extensions/nautilus-list.c,
* libnautilus-extensions/nautilus-list-column-title.c:
Wrote bug reports for all FIXMEs in these files.
2000-04-25 John Sullivan <sullivan@eazel.com>
Started going through the FIXMEs adding bug reports
and fixing some trivial ones. 14 down, 152 Nautilus
FIXMEs to go.
* src/ntl-index-panel.c:
Wrote bug reports for all FIXMEs in this file.
* src/ntl-window-msgs.c,
* src/ntl-window-private.h,
* src/ntl-window.c:
(view_menu_switch_views_callback),
(nautilus_window_load_content_view_menu): Moved functions from
ntl-window-msgs.c to ntl-window.c. Updated private header file
as necessary.
Wrote bug reports for all other FIXMEs in these files.
2000-04-25 Andy Hertzfeld <andy@eazel.com>
* src/ntl-index-panel.c:
removed debugging statement that was accidentally checked in and
fixed glitch where the title tab was a bit separated from the view
2000-04-25 Andy Hertzfeld <andy@eazel.com>
fixed bug 519: dead space in sidebar
* src/ntl-index-panel.c:
removed set_usize call that was setting the meta-views to a fixed size;
instead, set the expand and fill parameters to the box pack call to
true, so the metaview is sized to fill the available space
fixed bug 362: tab color is settable but not remembered
* libnautilus-extensions/nautilus-metadata.h:
added new metadata tags for the main tab and title tab colors
* src/nautilus-index-tabs.c,h:
added nautilus_index_tabs_set_color to set the tab color
* src/ntl-index-panel.c:
set the metadata in receive_dropped_color and set the tab color
from the stored metadata in index_panel_update_info
2000-04-25 J. Shane Culpepper <pepper@eazel.com>
* components/services/install/eazel-install.c
* components/services/install/eazel-install-lib-rpm.c
* components/services/install/eazel-install-lib-rpm.h
* components/services/install/eazel-install-lib-xml.c
* components/services/install/eazel-install-lib-xml.h
* components/services/install/eazel-install-lib.h
* components/services/install/eazel-install-lib-util.h
* components/services/install/eazel-install-lib-util.c
* components/services/install/eazel-install-lib-debug.c
* components/services/install/eazel-install-lib-debug.h
Adding http fetch of remote rpm files. Minor cleanups. Adding credit
to Joe Shaw <joe@helixcode.com> for portions of the current prototype.
This should have been done at the very beginning. The idea for using
gnet and large chunks of the current xml parsing come from his work on
the Helix Code install/updater.
2000-04-25 John Sullivan <sullivan@eazel.com>
Fixed part of bug 556 (nautilus_file_can_rename returns
TRUE for /root, but shouldn't). Only remaining issue is
the no-nautilus-file-for-/ problem, which is already written
up separately.
Fixed bug 546 (Folders/files without read permissions should
not be viewable).
* libnautilus-extensions/nautilus-file.h,
* libnautilus-extensions/nautilus-file.c:
(nautilus_file_denies_access_permission): New private
function that checks permissions, including checking
whether the current user is the owner or in the group
of the queried file. If permissions aren't valid, returns
FALSE.
(nautilus_file_can_read), (nautilus_file_can_write),
(nautilus_file_can_execute): New public functions that
use nautilus_file_denies_access_permission to determine
which access permissions the current user has. They return
TRUE if permissions aren't valid, so callers still have to
be prepared to handle failures.
(nautilus_file_can_rename): Now calls nautilus_file_can_write
on the parent directory. Formerly it was just checking the
permission flags directly, ignoring whether the current user
was the owner or not. This fixes part of bug 556.
* src/ntl-window-msgs.c:
(handle_unreadable_location): New private function, puts up
an alert if the user tries to switch to an unreadable location.
(nautilus_window_request_location_change): Try
handle_unreadable_location before starting up the state transition.
This fixes bug 546.
* src/file-manager/fm-error-reporting.c:
(fm_report_error_renaming_file): Add missing _()'s around messages.
2000-04-25 Darin Adler <darin@eazel.com>
* libnautilus-extensions/nautilus-directory-async.c
(metafile_read_complete): Re-removed mismerged assert
from Andy's change.
* libnautilus-extensions/nautilus-directory-private.h:
Organized the header a bit.
2000-04-25 Ettore Perazzoli <ettore@helixcode.com>
* libnautilus/Makefile.am
(nautilus_view_component_idl_stamp): Use `$(srcdir)' in
`nautilus_view_component_idl_sources' to make sure compilation
works with builddir != srcdir.
2000-04-24 Maciej Stachowiak <mjs@eazel.com>
* src/ntl-uri-map.c (my_notify_when_ready): Updated for OAF-ized
EOG.
2000-04-24 Darin Adler <darin@eazel.com>
* components/music/nautilus-music-view.c
(nautilus_music_view_update_from_uri): Spacing tweak.
* libnautilus-extensions/Makefile.am:
* libnautilus-extensions/nautilus-directory-private.h:
* libnautilus-extensions/nautilus-directory.c:
* libnautilus-extensions/nautilus-directory-async.c:
* libnautilus-extensions/nautilus-file.c:
Moved half of nautilus-directory.c into a new file as a first step
in cleaning up the state machine a bit.
2000-04-24 Andy Hertzfeld <andy@eazel.com>
changed the location of the novice home directory, and gave it
a custom icon
* libnautilus-extensions/nautilus-file-utilities.c:
renamed routines from "top" to "main", and changed the install location
from ~/.nautilus/top to ~/Nautilus, and set a custom icon for it
* libnautilus-extensions/nautilus-file-utilities.h:
changed nautilus_user_top_directory to nautilus_user_main_directory
* libnautilus-extensions/nautilus-directory.c
disabled assert that was firing due to async metadata reading, but
tagged it with a FIXME so we can put it back when the framework is
completed
* libnautilus-extensions/nautilus-global-preferences.c:
made it use newly renamed routine to access directory
* icons/nautilus-logo.png:
added new icon for the novice home directory
* icons/Makefile.am:
added new icon to build
2000-04-24 J. Shane Culpepper <pepper@eazel.com>
* configure.in
* components/services/install/Makefile.am
Adding a gnet configure option to remove hardcoded makefile references.
2000-04-24 Darin Adler <darin@eazel.com>
* libnautilus-extensions/nautilus-icon-grid.c:
Refactored the grid to use a variable-size grid that sizes itself
to the items in the grid.
* libnautilus-extensions/nautilus-file-utilities.c
(nautilus_user_top_directory): Formatting tweak.
* libnautilus-extensions/nautilus-gtk-extensions.c
(nautilus_pop_up_context_menu): Got rid of gpointer cast, since
George's "find bad casts" grep found it and it's not needed.
* nautilus-widgets/test-preferences.c: Got rid of gpointer cast,
since George's "find bad casts" grep found it and it's not needed.
2000-04-24 Darin Adler <darin@eazel.com>
* components/rpmview/Makefile.am:
* components/services/install/Makefile.am:
Fixed a few things in these make files. There's still a lot to be fixed.
The most important fix was to add OAF_CFLAGS and OAF_LIBS. Without that
the build was failing. But these files still have a hard-coded
/usr/include path for librpm.
2000-04-24 J. Shane Culpepper <pepper@eazel.com>
* HACKING
Updating hacking to reflect the new gnet dependency.
2000-04-24 Andy Hertzfeld <andy@eazel.com>
changed link file suffix to .link
* data/top/Computer-ntl.xml: removed file
* data/top/Computer.link: new file
* data/top/Makefile.am: adjusted accordingly
* data/top/Services-ntl.xml: removed file
* data/top/Services.link: added file
* libnautilus-extensions/nautilus-link.c,h:
changed suffix from "ntl-link" to "link"
made links more transparent in list view
* libnautilus-extensions/nautilus-file.c:
make nautilus_file_get_string_attribute know about links
* src/file-manager/fm-directory-view.c:
map filename for links in status bar
added hardware view component for novice home directory. Use /proc as source of info,
but will probably move to libgtop
* configure.in: added hardware view component's directories
* nautilus-clean.sh: added component to list to be cleaned
* components/Makefile.am: added hardware view component
* components/hardware/.cvsignore: ignore generated files
* components/hardware/Makefile.am: makefile for new component
* components/hardware/main.c: standard component bonobo glue
* components/hardware/nautilus-hardware-view.c: the actual code
* components/hardware/nautilus-hardware-view.h: definitions for the component
* components/hardware/nautilus-hardware-view.oafinfo: activation file
* components/hardware/icons/.cvsignore: ignore generate files
* components/hardware/icons/Makefile.am: icons to use in the hardware view
* components/hardware/icons/cpu.png: cpu image
* components/hardware/icons/memory_chip.gif: memory image
* src/ntl-uri-map.c: we still have to kludge here to add new protocols
* components/rpmview/nautilus-rpm-view.c:
changed default background color of package view
2000-04-23 J. Shane Culpepper <pepper@eazel.com>
* components/services/install/eazel-install.c
* components/services/install/Makefile.am
* components/services/install/eazel-install-lib-rpm.c
* components/services/install/eazel-install-lib-xml.c
* components/services/install/eazel-install-lib-xml.h
Added the http fetch of a package list from a remote server. Still
need to add http fetch of the rpm files.
2000-04-23 J. Shane Culpepper <pepper@eazel.com>
* components/services/install/eazel-install.c
* components/services/install/eazel-install-lib.h
* components/services/install/eazel-install-lib-xml.h
* components/services/install/eazel-install-lib-xml.c
* components/services/install/eazel-install-lib-debug.h
* components/services/install/eazel-install-lib-debug.c
* components/services/install/eazel-install-lib-rpm.h
* components/services/install/eazel-install-lib-rpm.c
* components/services/install/eazel-install-lib-util.h
* components/services/install/eazel-install-lib-util.c
Broke up eazel-install-lib.h to appropriate headers for each source
file. Did a little cleaning so that functions are more modular.
Setting everything up so that lib functions can be moved to a separate
services library down the road.
2000-04-23 Martin Baulig <martin@home-of-linux.org>
* configure.in: Check for -lrpm and its dependency libs.
On success, define HAVE_RPM and AC_SUBST(RPM_LIBS).
Added BUILD_RPMVIEW_COMPONENT automake conditional.
* acconfig.h (HAVE_RPM): Added.
* components/Makefile.am: Conditionally compile rpmview.
* components/rpmview/Makefile.am: Use $(RPM_LIBS) rather than
-lrpm so we get the correct dependency libs such as -lgz2.
2000-04-22 J. Shane Culpepper <pepper@eazel.com>
* libnautilus-extensions/libnautilus-extensions.h
Fixing build bustage in components/help. The header was pointing to
files in libnautilus instead of libnautilus-extensions.
2000-04-21 Gene Z. Ragan <gzr@eazel.com>
* libnautilus-extensions/nautilus-icon-canvas-item.c
* libnautilus-extensions/nautilus-icon-canvas-item.h
(nautilus_icon_canvas_item_get_max_text_width):
Return value of MAX_TEXT_WIDTH constant. Used is positoning the rename
text widget.
* libnautilus-extensions/nautilus-icon-container.c
Added signal "icon_text_edit_occurred" called when the text rename widget
recieves some sort of edit, such as a keyboard entry.
(rename_text_dirty): Returns boolean indicating edit state of
text in rename widget. Used in undo operation.
(text_edited_callback): Signal callback called when NautilusIconTextItem
text is edited.
(nautilus_icon_container_start_renaming_selected_item): Fixed positioning
code to address bug #543
(nautilus_icon_container_undo_renaming_selected_item): Added simple undo
code. This needs to be replaced with a global undo system.
* libnautilus-extensions/nautilus-icon-text-item.c
(iti_paint_text): Fixed drawing of i-beam to address bug #506
(iti_event): Added keyboard handling for simple undo
(nautilus_icon_text_item_get_margins): Returns values of MARGIN_X and
MARGIN_X constants. Used when positioning text item in canvas.
* src/file-manager/fm-directory-view.c
Moved menu item title constants to header file. This is needed so
FMIconView can get menu position paths when placing items in the
bonobo and contect menus. Renamed the constants to be specific to
FMDirectoryView.
(fm_directory_view_get_context_menu_index): Added function to return
index of requested menu item.
* src/file-manager/fm-icon-view.c
(fm_icon_view_icon_text_edit_callback): Callback that connect to
NautilusIconContainer signal.
(undo_rename_icon_callback): Added simple undo functionality.
(insert_one_context_menu_item): Added function to insert context menu
add a specific index.
Fixed bug #499, Rename menu in bad place in context menu.
2000-04-21 Ramiro Estrugo <ramiro@eazel.com>
* components/history/ntl-history-view.c:
Yank rogue puts()
2000-04-21 Ramiro Estrugo <ramiro@eazel.com>
* components/history/ntl-history-view.c:
Call nautilus_preferences_init to make sure gconf is in business
before we call it.
2000-04-21 Ramiro Estrugo <ramiro@eazel.com>
Switched us to use gconf instead of gnome_config. There is still
lots of crufty preferences code that can be simplified a lot,
since gconf does a lot of work for us.
* components/help/Makefile.am
* components/history/Makefile.am
* components/html/Makefile.am
* components/music/Makefile.am
* components/notes/Makefile.am
* components/rpmview/Makefile.am
* components/sample/Makefile.am
* components/services/install/Makefile.am
* components/services/startup/Makefile.am
* components/websearch/Makefile.am
* nautilus-widgets/Makefile.am
Add GCONF_CFLAGS and GCONF_LIBS where needed.
* nautilus-widgets/nautilus-preference.c:
Removed a rogue unused include.
* nautilus-widgets/nautilus-preferences.c,
nautilus-widgets/nautilus-preferences.h:
Straight forward switch from gnome_config api to gconf api.
(gnome_config_make_string): Retired, cause thankfully we dont
need to make up dumb strings with a default value appened to the
end. All praise gconf.
(nautilus_preferences_init): Add a init function to make sure
gconf is properly initialized. This needs some cleanup wrt the
global preferences crap. Im planning to clean that up in my next
checkin.
* nautilus-widgets/test-nautilus-widgets.c:
Fixed for gconf changes.
* src/ntl-main.c:
Call nautilus_preferences_init to make sure gconf is in business
before we call it.
2000-04-21 Ramiro Estrugo <ramiro@eazel.com>
* src/ntl-window-state.h,
src/ntl-window-state.c: (nautilus_window_save_state)
(nautilus_window_load_state): Retired these two old and unused
functions. We dont use gnome_config to store metaview state no
more.
2000-04-20 Darin Adler <darin@eazel.com>
* components/history/ntl-history-view.c
(hyperbola_navigation_history_notify_location_change):
Fixed a typo that was causing the history view to fail.
* components/music/nautilus-music-view.c
(nautilus_music_view_initialize_class),
(nautilus_music_view_initialize), (setup_title_font),
(nautilus_music_view_realize):
Changed to use new nautilus_gtk_widget_set_font_by_name
and got rid of the old realize hack.
* components/rpmview/nautilus-rpm-view.c
(nautilus_rpm_view_initialize):
Added a FIXME about how it's bad to hard-wire a font.
* components/services/startup/nautilus-service-startup-view.c
(setup_title_font), (setup_form_title),
(nautilus_service_startup_view_initialize),
(nautilus_service_startup_view_realize),
(nautilus_service_startup_view_load_uri):
Changed to use new nautilus_gtk_widget_set_font_by_name
and got rid of the old realize hack.
* libnautilus-extensions/nautilus-gtk-extensions.h:
* libnautilus-extensions/nautilus-gtk-extensions.c
(nautilus_gtk_style_set_font): Made public.
(nautilus_gtk_widget_set_font): Added comments and checks on
the parameters.
* libnautilus-extensions/nautilus-icon-container.c (relayout),
(idle_handler), (nautilus_icon_container_move_icon),
(world_width_changed), (end_stretching), (button_release_event),
(handle_icon_button_press), (nautilus_icon_container_add_auto),
(nautilus_icon_container_remove),
(nautilus_icon_container_set_auto_layout):
Some tweaks for auto-layout mode. Made it work better with
stretching by not laying out the currently-stretched icon,
simplified the code a bit, and made it relayout when an icon
is removed.
* src/file-manager/fm-directory-view.c (compute_menu_item_info),
(fm_directory_view_real_merge_menus):
Got rid of the "..." from "Delete...". On Macintosh, at least,
the "..." is only used when the dialog is something that adds
parameters to the command, not when it's just a confirmation.
* src/nautilus-index-title.c (update_font),
(nautilus_index_title_update_label),
(nautilus_index_title_update_info):
Changed to use new nautilus_gtk_widget_set_font and
nautilus_gtk_widget_set_font_by_name.
* src/ntl-index-panel.c (nautilus_index_panel_remove_meta_view):
Made the index panel do *slightly* better when a meta view
fails to load.
* components/help/hyperbola-main.c (main):
Fixed a warning.
2000-04-20 Maciej Stachowiak <mjs@eazel.com>
* configure.in: Add back tests erroneously removed in the last
checkin.
2000-04-20 Pavel Cisler <pavel@eazel.com>
* libnautilus-extensions/nautilus-directory.c:
(nautilus_directory_notify_files_moved):
Darin helped me finish implementing the missing parts of the call,
including updating the reference to the new directory object,
updating the file info structure to match the file's new location.
Fixed a silly bug in an if statement.
* libnautilus-extensions/nautilus-file-changes-queue.c:
Fixed another silly bug where 'file moved' notifications were
misinterpreted as file-removed ones.
2000-04-20 Andy Hertzfeld <andy@eazel.com>
* libnautilus-extensions/nautilus-gtk-extensions.c,h:
added utility routines (written by Darin on my machine) to set the
font associated with a widget
* components/rpm-view/nautilus-rpmview.c:
used the new routine to set the font of the package title.
2000-04-20 Andreas Hyden <a.hyden@cyberpoint.se>
* configure.in: Added sv to ALL_LINGUAS.
2000-04-19 Darin as Andy <darin@eazel.com>
* libnautilus-extensions/nautilus-graphic-effects.c:
(nautilus_make_semi_transparent), (create_new_pixbuf_with_alpha):
Create a new pixbuf that has an alpha channel even if the original
pixbuf didn't!
2000-04-19 Pavel Cisler <pavel@eazel.com>
* libnautilus-extensions/nautilus-directory.c:
(nautilus_directory_notify_files_added):
Work on making new files show up during copy. This is a simple
version using sync gnome_vfs_get_file_info calls, we'll need a
version that uses a new async get_file_info call that takes a list
of URIs and produces a list of file info structs.
* libnautilus-extensions/nautilus-directory.c:
* libnautilus-extensions/nautilus-file.c:
* libnautilus-extensions/nautilus-file.h:
(update_file_info_in_list_if_needed), (dequeue_pending_idle_callback),
(nautilus_file_update):
Made dequeue_pending_idle_callback deal with getting duplicate
file info structures or file info structures for files we already
know about. This also fixes 395.
* libnautilus-extensions/nautilus-file-changes-queue.c
Added some better comments and removed a fixme that didn't really
need fixing.
2000-04-19 John Sullivan <sullivan@eazel.com>
Darin and I started out thinking we were going to start entering
bugs for the FIXME items but we were distracted into fixing bugs
and tweaking code that we found while doing so.
* check-FIXME.pl: Won't search old ChangeLogs for FIXMEs either;
changed FIXME format from "FIXME bug xxx" to "FIXME bugzilla.eazel.com xxx"
* components/history/ntl-history-view.c:
(hyperbola_navigation_history_notify_location_change): Moved bookmark
naming hack here and added FIXME explaining it.
* libnautilus-extensions/nautilus-bookmark.h,
* libnautilus-extensions/nautilus-bookmark.c:
(nautilus_bookmark_new), (nautilus_bookmark_new_with_name):
Combined these two into one routine that takes both the uri and
title; removed hack for trying to come up with good name for
bookmark here.
(nautilus_bookmark_get_pixmap_and_mask): Changed to call
_get_pixbuf instead of duplicating code.
(nautilus_bookmark_get_pixbuf): Changed interface to return
pixbuf or NULL instead of boolean result & "out" parameter.
* src/nautilus-bookmark-list.c,
* src/nautilus-bookmarks-window.c,
* src/nautilus-window-menus.c,
* src/ntl-window-msgs.c:
Updated callers of nautilus_bookmark_new and _new_with_name.
2000-04-19 John Sullivan <sullivan@eazel.com>
Fixed bug 540 (need specific error message for "access denied"
when renaming)
* src/file-manager/fm-error-reporting.c:
(fm_report_error_renaming_file): Added case for
GNOME_VFS_ERROR_ACCESSDENIED
2000-04-19 Shane Culpepper <pepper@eazel.com>
* components/services/install/eazel-install-lib-rpm.c
Fixed Uninstall to work as advertised. Uninstall will also skip
source packages now since they are not stored in the rpmdb.
2000-04-19 Shane Culpepper <pepper@eazel.com>
* components/services/install/eazel-install-lib-xml.c
* components/services/install/eazel-install-lib-debug.c
* components/services/install/eazel-install-lib-rpm.c
* components/services/install/eazel-install-lib.h
* components/services/install/eazel-install.c
Tweaked the packages struct so that rpm names are no longer
hardcoded. Added a the option to do dry runs without actually
installing anything. Good for testing.
2000-04-19 John Sullivan <sullivan@eazel.com>
* libnautilus-extensions/nautilus-icon-container.c:
(world_width_changed): New function, extracted from size_allocate.
(size_allocate): Call world-width-changed.
(nautilus_icon_container_set_zoom_level): Call world_width_changed.
This makes zooming relayout when in auto-layout mode.
* src/nautilus-window-menus.c:
(append_bookmark_to_menu): Added line where bookmark is set in
BookmarkHolder. This had been accidentally deleted, breaking all
bookmarks.
2000-04-19 Pablo Saratxaga <pablo@mandrakesoft.com>
* configure.in (ALL_LINGUAS): Added Danish language
2000-04-19 Shane Culpepper <pepper@eazel.com>
* components/services/install/eazel-install-lib-xml.c
* components/services/install/eazel-install-lib.h
* components/services/install/eazel-install.c
Adding configuration file generator and creating a metadata directory.
A directory called /etc/eazel/services will be created to store
cofiguration options and uninstall data now.
2000-04-19 Maciej Stachowiak <mjs@eazel.com>
* src/ntl-view.c (nautilus_view_destroy_client): Reverted the last
change, it caused serious crashage in some cases.
* src/ntl-view.c (nautilus_view_destroy_client): Destroy the
ViewFrame instead of unreffing. This is the only way to be sure
the Control is fully unref()d. Ideally Bonobo would let us unbind
the frame from the control to break the circular refs.
* configure.in: Check for OAF the oficially approved way. Check
for GConf.
* src/ntl-uri-map.c (my_notify_when_ready): Fix fallback_iid for
moz protocol.
* components/mozilla/main.c (main): Remove ev variable to shut up gcc.
* src/ntl-app.c, components/notes/ntl-notes.c: Remove some
spurious debugging statements I accidentally left in.
OAF conversion. You must now build bonobo and gnome-vfs with --enable-oaf
* configure.in: Check for OAF
* libnautilus/nautilus-view-component.idl: Inherit from
Bonobo::Unknown instead of GNOME::Unknown.
* libnautilus-extensions/nautilus-global-preferences.c,
libnautilus-extensions/nautilus-global-preferences.h: Refer to
meta views by OAFIID, not GOAD ID.
* src/ntl-uri-map.c (my_notify_when_ready): Replaced hardcoded
list of GOAD IDs with a hardcoded list of OAFIIDs.
(add_components_from_metadata): Changed the expected format; it is
now label=component instead of component:label since OAFIIDs
contain colons.
* src/ntl-view.c (nautilus_view_destroy_client): unref the
Zoomable interface of the View, if any.
* src/file-manager/dfos-corba.c, src/file-manager/dfos.c: replace
GOAD calls with OAF ones; untested since this code is not really
used right now.
* src/ntl-main.c: Use OAF calls to intialize CORBA.
* src/ntl-app.c: Replace GOAD IDs with OAFIIDs. Use
Bonobo_Generic_Factory instead of GNOME_Generic_Factory to make
the linker happy. Register the factory server with OAF, not GOAD.
* src/nautilus.h: Include <liboaf/liboaf.h> instead of <libgnorba/gnorba.h>
* components/help/Makefile.am, components/history/Makefile.am,
components/html/Makefile.am, components/mozilla/Makefile.am,
components/music/Makefile.am, components/notes/Makefile.am,
components/rpmview/Makefile.am, components/sample/Makefile.am,
components/services/startup/Makefile.am,
components/websearch/Makefile.am, libnautilus/Makefile.am,
libnautilus-extensions/Makefile.am, src/Makefile.am,
src/file-manager/Makefile.am: Updated for OAF; install .oafinfo
files instead of .gnorba.
* components/help/hyperbola-main.c,
components/history/ntl-history-view.c,
components/html/ntl-web-browser.c, components/mozilla/main.c,
components/music/main.c, components/notes/ntl-notes.c,
components/rpmview/main.c, components/sample/main.c,
components/services/startup/main.c,
components/websearch/ntl-web-search.c: Convert to OAF; use OAFIIDs
and oaf intialization functions.
* src/nautilus.oafinfo, components/help/hyperbola.oafinfo,
components/history/ntl-history-view.oafinfo,
components/html/ntl-web-browser.oafinfo,
components/music/nautilus-music-view.oafinfo,
components/notes/ntl-notes.oafinfo,
components/rpmview/nautilus-rpm-view.oafinfo,
components/services/startup/nautilus-service-startup-view.oafinfo,
components/websearch/ntl-web-search.oafinfo,
components/sample/nautilus-sample-content-view.oafinfo,
components/mozilla/nautilus-mozilla-content-view.oafinfo: New OAF
activation records.
* src/nautilus.goad, components/help/hyperbola.goad,
components/history/ntl-history-view.goad,
components/html/ntl-web-browser.goad,
components/music/nautilus-music-view.goad,
components/notes/ntl-notes.goad,
components/rpmview/nautilus-rpm-view.goad,
components/services/startup/nautilus-service-startup-view.goad,
components/websearch/ntl-web-search.goad,
components/sample/nautilus-sample-content-view.goad,
components/mozilla/nautilus-mozilla-content-view.goad: Removed.
2000-04-18 Ramiro Estrugo <ramiro@eazel.com>
* configure.in,
acconfig.h: Add support for setting a reasonable default for
MOZILLA_FIVE_HOME - which mozilla needs to survie.
* components/mozilla/main.c: (mozilla_setup_environment) Add a
function to hack the mozilla environment into something that might
have a chance of working by default.
* src/ntl-uri-map.c: Add a temporary hack protocol moz:// to test
mozilla in isolation from gnome-vfs trying to do http stuff.
* components/mozilla/nautilus-mozilla-content-view.c: Match the
above.
2000-04-18 Ramiro Estrugo <ramiro@eazel.com>
* configure.in: Add voodoo to support --with-mozilla.
* components/Makefile.am: Add conditional build of mozilla subdir.
* components/mozilla/Makefile.am: Un-hardcode cflags and libs.
Use the values set in configure instead.
2000-04-18 Ramiro Estrugo <ramiro@eazel.com>
* nautilus-clean.sh: Grep out "emacs" so that this nice script
doesnt kill my editor when i happen to be editting the source to
component in question.
2000-04-18 Andy Hertzfeld
made link files control the additional text displayed beneath them.
* libnautilus/nautilus-link.c,.h:
added nautilus_link_get_additional_text, which returns text specified
in the xml file, if any,
* libnautilus/nautilus-metadata.h:
added tag to use for the additional text in the link file
* src/file-manager/fm-icon-view.c:
made it get additional text for link files using the new
routines in nautilus-link
* data/top/Makefile.am:
removed the placeholder "Welcome" file from the novice home directory
2000-04-18 Ramiro Estrugo <ramiro@eazel.com>
* components/mozilla/.cvsignore: Ignore built binary
* components/mozilla/Makefile.am: Link with the right stuff. Link
only against libnautilus to be legit.
* components/mozilla/nautilus-mozilla-content-view.h,
components/mozilla/nautilus-mozilla-content-view.c: Dont use
code from libnautilus-extensions. Fix struct tag names.
2000-04-18 Ramiro Estrugo <ramiro@eazel.com>
* nautilus-widgets/nautilus-preferences.c,
nautilus-widgets/nautilus-preferences.h:
Simplify be removing all arguments from callbacks save for the
user data.
(nautilus_preferences_add_string_callback): Rename to
nautilus_preferences_add_callback since string preferences are the
default.
* libnautilus-extensions/nautilus-global-preferences.c:
(user_level_changed_callback): Simplify a bit. Update for new
simple preference callbacks.
libnautilus-extensions/nautilus-icon-container.c,
libnautilus-extensions/nautilus-icon-factory.c,
libnautilus-extensions/nautilus-list.c: Update for new simple
preference callbacks.
* src/file-manager/fm-directory-view.c,
src/file-manager/fm-icon-view.c: Update for new simple
preference callbacks.
src/file-manager/fm-icon-text-window.c: Update for new
simple preference callbacks and removed unecessary usage of
icon_view_text_attribute_changed_callback. Use
synch_menus_with_preference directly instead.
2000-04-18 Ramiro Estrugo <ramiro@eazel.com>
* nautilus-widgets/nautilus-preferences.c:
(nautilus_preferences_get): If the stored default value is null,
use the given one. Do this only for strings, since integral types
can legally have a value of zero.
* nautilus-widgets/nautilus-preferences-item.c:
(preferences_item_create_enum), (enum_radio_group_changed_cb):
Deal with the enumeration values. Before it was assuming it
started at ZERO.
* libnautilus-extensions/nautilus-global-preferences.c:
NAUTILUS_USER_LEVEL_*: Make this enum begin with a non zero
value. The zero value can be misintepreted by preferences as a
default leading to confusion.
(user_level_changed_callback): Add a default case just in case!
(nautilus_global_preferences_startup): Invoke
user_level_changed_callback once to make sure stuff is properly
setup.
2000-04-18 Pavel Cisler <pavel@eazel.com>
* src/file-manager/dfos-xfer.c:
(handle_xfer_overwrite):
Only offer "Replace All" in an overwrite conflict error dialog if
there is more than one conflicting item to deal with.
2000-04-18 Andy Hertzfeld <andy@eazel.com>
* components/services/startup/nautilus-service-startup-view.c:
added placeholder summary page, plus used a larger font for
the title
2000-04-18 Shane Culpepper <pepper@eazel.com>
* components/services/install/eazel-install-lib-rpm.c
* components/services/install/eazel-install.c
Adding the uninstall feature to eazel-install.
2000-04-18 Darin Adler <darin@eazel.com>
* libnautilus-extensions/nautilus-icon-container.c:
* libnautilus-extensions/nautilus-icon-container.h:
(compare_icons), (idle_handler), (nautilus_icon_container_move_icon),
(size_allocate), (nautilus_icon_container_initialize_class),
(nautilus_icon_container_set_auto_layout):
First cut at the auto-layout feature. It just does a lot of
re-laying things out.
* libnautilus-extensions/nautilus-icon-container.h:
* libnautilus-extensions/nautilus-list.h:
Added interfaces for telling whether to use single-click mode or
not. A first step in moving preferences code out of here and
into the file-manager classes.
* libnautilus-extensions/fm-icon-view.c:
(create_icon_container), (icon_container_compare_icons_callback):
Provide a sorting order for the auto-layout mode.
* librsvg/test-rsvg.c:
Rolled out the change to work with the old popt that Pavel
accidentally checked as Gene in when he was helping me.
2000-04-18 Gene Z. Ragan <gzr@eazel.com>
* libnautilus-extensions/nautilus-icon-canvas-item.c:
* libnautilus-extensions/nautilus-icon-canvas-item.h:
Renamed several public functions to use proper nomenclature.
An example would be changing nautilus_icon_canvas_get_editable_text_bounds
to nautilus_icon_canvas_item_get_editable_text_bounds. A few of
these misnaming were in my last submission.
* libnautilus-extensions/nautilus-icon-container.c:
* libnautilus-extensions/nautilus-icon-container.h:
Renamed nautilus_icon_container_show_rename_widget to
nautilus_icon_container_start_renaming_selected_item
* libnautilus-extensions/nautilus-icon-text-item.c:
Fixed the following bugs:
487 Trying to rename an icon to empty string should revert to original
498 Renaming text field looks silly when empty
500 text-editing box too narrow when renaming files with short names
508 Icon text appears and disappears incorrectly when zooming
2000-04-18 Shane Culpepper <pepper@eazel.com>
* components/services/install/eazel-install-lib-xml.c
* components/services/install/eazel-install-lib.h
* components/services/install/eazel-install-lib-rpm.c
* components/services/install/eazel-install.c
Fixed a few memory leaks, removed some debugging code,
and added interfaceFlags, installFlags, and probFilter
in order to remove some hardcoded options and make use
of the configuration files.
2000-04-18 Darin Adler <darin@eazel.com>
* libnautilus-extensions/nautilus-directory.c:
(uri_get_directory_part), (uri_get_basename),
(get_parent_directory), (get_parent_directory_if_exists),
(call_files_added), (call_files_changed),
(hash_table_list_prepend),
(nautilus_directory_notify_files_added),
(nautilus_directory_notify_files_removed),
(nautilus_directory_notify_files_moved):
Another cut at the notify code.
* libnautilus-extensions/nautilus-file-private.h:
* libnautilus-extensions/nautilus-file.c:
(nautilus_file_mark_gone): Made part of the deleted code
accessible for the notify code.
* libnautilus-extensions/nautilus-directory-private.h:
Renamed remove_file_monitor_link to add a nautilus
prefix since it's no longer a local function.
2000-04-18 John Sullivan <sullivan@eazel.com>
Distinguished the item count for unreadable directories
from the "not yet known" item count. Unreadable directories
show "xxx" and "not yet known" show "--". This fixes bug 513.
* libnautilus-extensions/nautilus-file.h,
* libnautilus-extensions/nautilus-file.c:
(nautilus_file_compare_directories_by_size): Put unreadable
counts before unknown counts before known counts.
(nautilus_file_get_directory_item_count): New result parameter
that callers can use to distinguish unreadable case from
unknown case.
(nautilus_file_get_size_as_string): return different string
if unreadable.
* libnautilus-extensions/nautilus-directory.c:
(directory_count_callback): Call nautilus_file_changed
even when we discover that the count is unreadable.
* src/file-manager/fm-directory-view.c:
(display_selection_info): Pass NULL for unreadable parameter
because this caller doesn't care why it's not known.
2000-04-18 Pavel Cisler <pavel@eazel.com>
* src/file-manager/dfos-xfer.c:
(handle_xfer_vfs_error):
The function of the Abort and Retry buttons in the file operation error
alert was inverted.
2000-04-18 Ramiro Estrugo <ramiro@eazel.com>
* nautilus-widgets/nautilus-preferences.c:
(preference_get): If the stored default_value is NULL, then used
the provided one.
2000-04-18 Andy Hertzfeld <andy@eazel.com>
added better abstraction for the xml-based links introduced yesterday
* libnautilus/nautilus-link.h,c:
new routines to access xml-based link files
* libnautilus/Makefile.am:
added nautilus-link.c,h to build
* libnautilus/nautilus-file.c:
use nautilus_link_get_link_uri in nautilus-link instead of
accessing link files directly
* libnautilus/nautilus-icon-factory.c:
use nautilus_link_get_image_uri in nautilus-link instead of
accessing directly
* src/file-manager/fm-icon-view.c:
use nautilus_link_get_display_name to suppress display of
identifying suffix
* src/file-manager/fm-icon-text-window.c:
fixed bug that caused crash when preference file is deleted
by checking for NULL
and using default in fm_get_text_attribute_names_preference_or_default
* icons/computer.png:
new icon for novice home
* icons/hand.svg:
new icon for novice home
* icons/Makefile.am:
added new icons
* data/top/Computer-ntl.xml:
added xml link for novice home
* data/top/Services-ntl.xml:
added link to novice home:
* data/Makefile.am:
added new files
2000-04-18 John Sullivan <sullivan@eazel.com>
Yet more tweakery to the file-monitoring code.
* libnautilus-extensions/nautilus-directory.c:
(stop_monitoring_files): Renamed to stop_monitoring_file_list.
(nautilus_directory_destroy): Only stop monitoring list if we
were monitoring list, but always complain about non-NULL
file_monitors.
(nautilus_directory_file_monitor_remove_internal): Only
stop monitoring list if we had been monitoring it. This fixes
CRITICAL when you launch and immediately quit.
2000-04-18 Shane Culpepper <pepper@eazel.com>
* components/services/install/eazel-install-lib-rpm.c - fixing the
segfault in rpmInstall.
2000-04-18 John Sullivan <sullivan@eazel.com>
* libnautilus-extensions/nautilus-directory.c:
(dequeue_pending_idle_callback),
(nautilus_directory_file_monitor_remove_internal),
(nautilus_directory_notify_files_added): Deployed
new is_file_list_monitored function in three places.
Two of these were bugs, one was code duplication.
2000-04-18 John Sullivan <sullivan@eazel.com>
Fixed bug 494 (initial directory count never appears in sidebar).
This was a missing pieces of the async framework. Darin helped
me finish it up.
* libnautilus-extensions/nautilus-directory-private.h:
Put FileMonitor struct here so NautilusFile can use it.
(nautilus_directory_file_monitor_add_internal),
(nautilus_directory_file_monitor_remove_internal),
(remove_file_monitor_link): New functions, shared between
NautilusDirectory and NautilusFile.
* libnautilus-extensions/nautilus-file.c:
(destroy): Complain about then clean up any remaining FileMonitors.
(nautilus_file_monitor_add), (nautilus_file_monitor_remove): Fill
in the implementation for these formerly-empty routines.
* libnautilus-extensions/nautilus-directory.c:
Moved FileMonitor struct out.
(nautilus_directory_destroy): assert that there's no count_in_progress.
(compare_file_monitor_with_client): changed name to
compare_file_monitor_by_client_and_file and behavior to match.
(find_file_monitor): Now takes a file and uses it in search.
(cancel_unneeded_file_attribute_requests): New function, cleans up
no-longer-needed gnome vfs async calls.
(remove_file_monitor_link): New function, removes a file monitor
and cleans up storage.
(remove_file_monitor): Uses remove_file_monitor_link to fix
storage leak.
(is_file_list_monitored): New function, checks whether anyone is
monitoring all files in this directory.
(nautilus_directory_file_monitor_add_internal),
(nautilus_directory_file_monitor_remove): New functions,
generalized from old non-internal versions to handle the single-file
case too.
(nautilus_directory_file_monitor_add),
(nautilus_directory_file_monitor_remove): Now calls _internal function.
(process_pending_file_attribute_requests): Now handles single-file
case as well as all-files case.
* src/nautilus-index-title.c:
(nautilus_index_title_set_uri): Move the item-count-monitoring
code inside the file != NULL check so it doesn't fail at the
root (where, due to a bug, file is NULL).
2000-04-18 Darin Adler <darin@eazel.com>
Fixed bug where you'd see the name twice under each icon.
Did some work for the new notify hooks that Pavel made.
I'll finish those hooks soon.
* src/file-manager/fm-icon-view.h:
* src/file-manager/fm-icon-text-window.h:
* src/file-manager/fm-icon-text-window.c:
(set_preference_string), (synch_menus_with_preference),
(icon_view_text_attribute_changed_callback),
(fm_get_text_attribute_names_preference_or_default):
* src/file-manager/fm-icon-view.c: (fm_icon_view_initialize),
(fm_icon_view_get_icon_text_attribute_names),
(text_attribute_names_changed_callback):
Moved attribute names default into FMIconTextWindow and made
the callers use a new call that gets either the preference or
the default if the preference is invalid. Also simplified the
code since we don't need to cache the preference in either the
FMIconTextWindow or the FMIconView.
* libnautilus-extensions/nautilus-directory.c:
(is_canonical_uri): Added a function for use in asserts.
(nautilus_directory_get): Assert that we successfully
made the URI canonical.
(parent_directory_if_exists), (file_if_exists): Helper
functions for implementing the notify calls.
(nautilus_directory_notify_files_added),
(nautilus_directory_notify_files_removed),
(nautilus_directory_notify_files_moved):
Fleshed out the bones of these routines a bit more.
They are still not done. Also changed their interfaces
so they are not responsible for freeing their parameters.
* libnautilus-extensions/nautilus-directory.h:
* libnautilus-extensions/nautilus-directory.c:
* libnautilus-extensions/nautilus-file.h:
(nautilus_directory_contains_file):
New call to be used instead of nautilus_file_is_gone
for callers that are monitoring a directory.
* libnautilus-extensions/nautilus-file-changes-queue.c:
(pairs_list_free), (nautilus_file_changes_consume_changes):
Make the caller free the list instead of the called function
Also reordered the changes so deletions come before additions.
* src/file-manager/fm-directory-view.c: (display_pending_files):
* src/file-manager/fm-list-view.c: (fm_list_view_file_changed):
* src/file-manager/fm-icon-view.c: (fm_icon_view_file_changed):
Changed to use nautilus_directory_contains_file instead of
nautilus_file_is_gone.
2000-04-18 Ramiro Estrugo <ramiro@eazel.com>
* components/services/install/.cvsignore: Ignore more generated
files.
2000-04-18 Ramiro Estrugo <ramiro@eazel.com>
Hook up click policy preference. Bug 374.
* libnautilus-extensions/nautilus-global-preferences.h,
libnautilus-extensions/nautilus-global-preferences.c:
Rename CLICK_ACTIVATION_TYPE to CLICK_POLICY.
* libnautilus-extensions/nautilus-icon-container.c:
(click_policy_changed_callback): New preferences callback to keep
track of click policy changes.
(destroy): Unregister click_policy_changed callback on destroy.
(nautilus_icon_container_initialize): Initialize the
single_click_mode from preferences and register callback to keep
track of changes in click policy.
Also anal gtk style formatting of the private prototypes and
sophisticated alphabetization of libnautilus-extensions headers.
* libnautilus-extensions/nautilus-list.c:
(click_policy_changed_callback): New preferences callback to keep
track of click policy changes.
(nautilus_list_initialize): Initialize the single_click_mode from
preferences and register callback to keep track of changes in
click policy.
(nautilus_list_destroy): Unregister click_policy_changed callback
on destroy.
Also anal gtk style formatting of the private prototypes and
sophisticated alphabetization of libnautilus-extensions headers.
2000-04-18 Ramiro Estrugo <ramiro@eazel.com>
* nautilus-widgets/nautilus-preferences.c,
nautilus-widgets/nautilus-preferences.h: Dont expose the
preference/enum info structure. Remove these and use the
NautilusPreference object instead to describe preferences.
Add usage of default values to get_* api. So now callers can
provide a default which will be given back to them if no default
exists. For example, no default will exist for the preference
when it was implicitly pulled out of someone's ass.
The callback function no longer passes along the value. Instead
the caller is expected to use the get_ functions.
Rename nautilus_preferences_{get,set}_string() to
nautilus_preferences_{get,set}. This matches the
NautilusDirectory metadata api which uses strings for metadata by
default.
Also constify the get functions.
(nautilus_preferneces_get_info): Renamed to
nautilus_preferneces_get_preference which returns a referenced
pointer to the preference description object. Perhaps this could
have a better name.
(nautilus_preferences_enum_add_entry): New function to add entries
to enumerated preferences.
* nautilus-widgets/nautilus-preferences-group.c,
nautilus-widgets/nautilus-preferences-group.h:
(nautilus_preferences_group_add): Retire.
(nautilus_preferences_group_add_item): New function that does all
the work of creating an item based on a given item_type.
* nautilus-widgets/nautilus-preferences-item.c,
nautilus-widgets/nautilus-preferences-item.h: Use
NautilusPreferences directly instead of GtkObject.
Ref/unref the preference object properly.
Use more consistent identifiers. Fix some stupid style things.
Update for NautilusPreference usage instead of the info struct
hack).
* nautilus-widgets/nautilus-preferences-pane.c,
nautilus-widgets/nautilus-preferences-pane.h:
(nautilus_preferences_pane_add_item_to_nth_group) : New function
to do all the work of adding and managing an item based on a given
type.
* nautilus-widgets/test-nautilus-widgets.c: Update for all the
api changes.
* nautilus-widgets/Makefile.am: Add building of
nautilus-preference.[ch] and the self test driver.
* libnautilus-extensions/nautilus-global-preferences.c,
libnautilus-extensions/nautilus-global-preferences.h: Add
CLICK_ACTIVATION_TYPE preferences. Add HOME_URI preference. Add
SHOW_HIDDEN_FILES preference.
Make all the user level stuff private. Dont expose either the
user level preference or the user level values at all. Instead,
track user level changes in a callback and set corresponsing
preferences accordingly.
(nautilus_global_preferences_startup): Hook to make the above work
properly.
Cleanup the creation of the preferences dialog.
* libnautilus-extensions/nautilus-icon-factory.c:
(icon_theme_changed_callback): Preference changed callback no
longer passes in the value. Value needs to be manually fetched.
(nautilus_get_current_icon_factory): No need to call
nautilus_preferences_set_info. Instead give
nautilus_preferences_get a default value. This way, we can always
get something reasonable back.
* src/nautilus-window-menus.c:
(use_eazel_theme_icons_cb): Update for pref api changes. Feed the
get function a default value.
* src/ntl-app.c:
(nautilus_app_class_init): Call
nautilus_global_preferences_startup so that user level callbacks
always works. Also, allows preferences exposed in the ui to have
nice defaults.
* src/ntl-main.c:
(main): Add nautilus-widgets self checks.
* src/ntl-uri-map.c:
(add_meta_view_iids_from_preferences): Feed the pref api function
a default value.
* src/ntl-window-state.c:
(nautilus_window_set_initial_state): User level is no longer
publicly exposed over here. Determine the home uri, instead by
fetching the HOME_URI preference.
* src/file-manager/fm-directory-view.c:
(use_new_window_changed_callback): Retired. Instead check
preference when needed. There really is not need to go to the
trouble of installing a callback for this specific preference.
Its just as easy (and not a performance issues) to check it
directly.
Also retired the 'use_new_window' member.
(user_level_changed_callback): Retired. User level no longer
publically exposed.
(show_hidden_files_changed_callback): Check SHOW_HIDDEN_FILES
preference to determine if hidden files should be filtered.
Add a 'show_hidden_files' member that keeps track of changes in
this preference.
(fm_directory_view_initialize): Initialize 'show_hidden_files'.
Update for callback name change.
(nautilus_preferences_remove_callback): Remove uneeded unregister
call for retired use_new_window callback.
(queue_pending_files): Do hidden file filtering based on
'show_hidden_files' instead of using the user level.
(fm_directory_view_activate_file): Check USE_NEW_WINDOW preference
to determine if a new window is requested.
* src/file-manager/fm-icon-text-window.c: #include fm-icon-virw.h
and use DEFAULT_ICON_VIEW_TEXT_ATTRIBUTE_NAMES from it instead of
ATTRIBUTE_NAMES_DEFAULT. This makes sure the default is not out
of whack. This define should probably be placed in a better place.
NOTE: This seems to be one of the drawbacks of passing in defaults
to fetch functions - that is out-of-whackness in 2 or more callers
in difference places.
(synch_menus_with_preference),
(changed_attributes_option_menu_cb): Update for preference api changes.
(preference_changed_callback): Rename to
icon_view_text_attribute_changed_callback for clarity.
(icon_view_text_attribute_changed_callback): Value no longer
passed into callback. Need to check preferences manually.
* src/file-manager/fm-icon-view.h:
Add DEFAULT_ICON_VIEW_TEXT_ATTRIBUTE_NAMES to share with
fm-icon-text-window.
* src/file-manager/fm-icon-view.c:
(fm_icon_view_icon_text_changed_callback): Update for preference
api changes.
Minor anal style formatting of the private prototypes.
(fm_icon_view_initialize_class): Yank
nautilus_preferences_set_info call. No longer needed for there to
be proper defaults.
(text_attribute_names_changed_callback): Value no longer
passed into callback. Need to check preferences manually. Also,
feed the get function a reasonable default.
* components/help/Makefile.am: Needs to link with
libnautilus-extensions.
* components/websearch/Makefile.am: Needs to link with
libnautilus-extensions.
2000-04-18 Ramiro Estrugo <ramiro@eazel.com>
* libnautilus-extensions/nautilus-string-list.c,
libnautilus/nautilus-string-list.h: Dumb underscore fix the struct tags.
2000-04-18 Ramiro Estrugo <ramiro@eazel.com>
Factor out the code that describes a preference from the big messy
preferences into a class.
* nautilus-widgets/nautilus-preference.c,
nautilus-widgets/nautilus-preference.h: New files. A class that
describes a nautilus preference.
nautilus-widgets/nautilus-widgets-self-check-functions.c,
nautilus-widgets/nautilus-widgets-self-check-functions.h: New
files . Self check code driver nautilus-widgets.
2000-04-17 Pavel Cisler <pavel@eazel.com>
This checkin requires new gnome-vfs.
Plumbing for making copied/moved/deleted files show up update
in their respective new locations.
* libnautilus-extensions/nautilus-file-changes-queue.h
* libnautilus-extensions/nautilus-file-changes-queue.c
* libnautilus-extensions/Makefile.am
Shared queue used by the copy engine to send update notification
requests to NautilusDirectory during file copy/move/delete operations.
* libnautilus-extensions/nautilus-directory-private.h:
* libnautilus-extensions/nautilus-directory.c:
(nautilus_directory_notify_files_added),
(nautilus_directory_notify_files_removed),
(nautilus_directory_notify_files_moved):
Stub calls that will be hooked up to the NautilusDirectory
notification calls to dispatch the notification updates.
* src/file-manager/dfos-xfer.c:
(sync_xfer_callback):
New callback that gets called in the async copy engine context
and produces change entries stuffing them into the file changes
queue.
* src/file-manager/dfos-xfer.c:
(handle_xfer_ok):
Added calls to the new nautilus_file_changes_consume_changes
from the progress update callback. This callback is called in
the user interface context and consumes the change entries
from the file changes queue, sending them in chunks to be
dispatched by to the individual Nautilus directory objects.
* src/file-manager/dfos-xfer.c:
(handle_xfer_ok):
Updated to use new progress enum values.
* src/file-manager/dfos-xfer.c:
(update_xfer_callback):
Renamed from sync_xfer_callback.
* src/file-manager/dfos-xfer.c:
(gnome_vfs_async_xfer):
Pass in new sync_xfer_callback parameters.
2000-04-17 Darin Adler <darin@eazel.com>
* components/services/install/.cvsignore: Generated files.
2000-04-17 Darin Adler <darin@eazel.com>
Added commands for Auto vs. Manual layout, but the guts behind
them is not yet implemented.
Did some cleanup on the new renaming code.
* nautilus-glib-extensions.c:
* nautilus-glib-extensions.h:
Added nautilus_g_list_exactly_one_item and
nautilus_g_list_more_than_one_item. These are more-efficient
versions of g_list_length (x) == 1 and g_list_length (x) > 1.
* nautilus-icon-canvas-item.c:
(draw_or_measure_label_text): Add a line break between the
editable text and the additional text.
(nautilus_icon_canvas_get_text_bounds),
(nautilus_icon_canvas_get_editable_text_bounds),
(nautilus_icon_canvas_get_editable_text),
(nautilus_icon_canvas_set_renaming):
Replaced g_assert with g_return_if_fail calls, and added the
complete set of g_return_if_fail.
(nautilus_icon_canvas_set_renaming): Don't update the item
unless the renaming state has actually changed.
* nautilus-icon-canvas-item.h: Fixed formatting.
* nautilus-icon-container.c:
* nautilus-icon-container.h:
Added nautilus_icon_container_set_auto_layout and
nautilus_icon_container_is_auto_layout. For now they are
placeholders that just modify a boolean.
* nautilus-icon-private.h:
Added the auto_layout boolean.
* nautilus-icon-text-item.c:
* nautilus-icon-text-item.h:
Just some formatting and other minor cleanup.
* nautilus-metadata.h:
Added NAUTILUS_METADATA_KEY_ICON_VIEW_AUTO_LAYOUT.
* nautilus-location-bar.c (drag_data_received_cb): Use the new
nautilus_g_list_more_than_one_item function.
* fm-directory-view.c (bonobo_menu_open_cb), (open_cb): Use the
new nautilus_g_list_exactly_one_item.
* fm-icon-text-window.c (attribute_names_string_is_good),
(set_preference_string), (synch_menus_with_preference),
(preference_changed_callback),
(changed_attributes_option_menu_cb): Got rid of the hard-coded
first item "name" which is no longer needed. Also changed to
handle bad data in the preferences.
* fm-icon-view.c (fm_icon_view_initialize_class): Updated since
there's no "name" item needed any more.
(fm_icon_view_compute_menu_item_info): Merged MENU_PATH_RENAME
with MENU_RENAME_TEXT and simplified the logic.
(fm_icon_view_append_selection_context_menu_items): Merged
MENU_PATH_RENAME with MENU_RENAME_TEXT.
(update_layout_menus), (auto_layout_callback),
(manual_layout_callback), (fm_icon_view_merge_menus): Added menu
items for auto layout and for manual layout.
(fm_icon_view_begin_loading): Load setting for auto layout from
metadata.
(fm_icon_view_get_icon_text_attribute_names): Changed to get rid
of the "name" first item from the list of text attributes.
(get_icon_editable_text_callback): Simplified since the editable text
is always the icon name. Also got rid of copied and pasted code that's
no longer needed for this case.
(get_icon_additional_text_callback): Got rid of special case for name,
since the name is no longer treated as an attribute.
2000-04-19 Andy Hertzfeld <andy@eazel.com>
Added a new, xml-based type of link file that can specify it's own
icon and other behavior. Soon they will be used for the novice
home directory.
* libnautilus-extensions.nautilus-file.c:
Check for the new file type in nautilus_directory_mapped_uri, and
return the link contained in the file if present.
* libnautilus-icon-factory.c:
Check for the new file type in
nautilus_icon_factory_get_icon_for_file and return the specified
image as appropriate.
2000-04-18 Shane Culpepper <pepper@eazel.com>
adding the eazel-installer skelton. very rough prototype right now
but it works with my local configuration data. Will be updated alot
over the next few days.
Location is components/services/install. It is not part of the default
build right now.
2000-04-18 Andy Hertzfeld <andy@eazel.com>
made clicking on gmc-style URL files redirect to the specified URL.
* libnautilus-extensions/nautilus-file.c,h:
added nautilus_file_get_mapped_uri, which checks for gmc-style URL files
and returns the URL they reference in that case; otherwise, just return
the file's URI.
* src/file-manager/fm-directory-view.c:
called nautilus_file_get_mapped_uri in fm_directory_view_activate_file_internal
* data/mime/nautilus.keys:
added icons to a few MIME types that I forgot last time. Also, just
use relative paths to reference the icons.
2000-04-18 Kjartan Maraas <kmaraas@online.no>
* configure.in: Added "no" to ALL_LINGUAS.
2000-04-18 Gene Z. Ragan <gzr@eazel.com>
Added functionality to allow files to be renamed in icon view.
This feature is available by either context click on the icon or
selecting a single file and choosing "Rename" form the File menu.
* libnautilus-extensions/nautilus-icon-text-item.c
* libnautilus-extensions/nautilus-icon-text-item.h: New files.
This is an editable icon text item used in the renaming feature.
It is based on GnomeIconTextItem but modified to fix bugs in the
original code and add extended functionality need by nautilus. If
thse changes were rolled into the current GnomeIconTextItem, it
would break gmc.
* libnautilus-extensions/Makefile.am
Modified file so that the two new files listed above would properly
be included in generated makefiles.
* libnautilus-extensions/nautilus-icon-canvas-item.c
Split text class variable into two variables, editable_text and
additonal_text. editable_text refers to attributes that the user
can change via rename in place. additional_text is any other text
that the user cannot edit via the rename in place feature. Added
a boolean flag, is_renaming, to check against during various
operations that effect the renaming feature. Removed ARG_TEXT
argument ID and replaced with ARG_EDITABLE_TEXT and
ARG_ADDITIONAL_TEXT.
(nautilus_icon_canvas_item_initialize_class): Function now check
for both ARG_EDITABLE_TEXT and ARG_ADDITIONAL_TEXT. Removed check
for ARG_TEXT.
(nautilus_icon_canvas_item_destroy): Both editable_text and
additonal_text are freed.
(nautilus_icon_canvas_item_set_arg): Removed ARG_TEXT and added
handling of ARG_EDITABLE_TEXT and ARG_ADDITIONAL_TEXT.
(nautilus_icon_canvas_item_get_arg): Removed ARG_TEXT and added
handling of ARG_EDITABLE_TEXT and ARG_ADDITIONAL_TEXT.
(draw_or_measure_label_text): Modified function to not draw the
label icon text if we are renaming in place.
(draw_or_measure_label_text): Function now combines editable and
additional text when performing the measuring operation.
(compute_editable_text_rectangle): Added function to compute
bounds of editable text. This is used to determine size and
placement of editable text item when in renaming mode.
(nautilus_icon_canvas_get_text_bounds): Public API to get bounds
of icon label text.
(nautilus_icon_canvas_get_editable_text_bounds): Public API to get
bounds of editable icon label text.
(hit_test_pixbuf): Added check against is_renaming flag.
(nautilus_icon_canvas_get_editable_text): Public API to get
editable text string.
(nautilus_icon_canvas_item_set_renaming): Public API to toggle
is_renaming flag.
* libnautilus-extensions/nautilus-icon-canvas-item.h
Added public API prototypes to functions described above.
* libnautilus-extensions/nautilus-icon-container.c
Added GET_ICON_EDITABLE_TEXT and GET_ICON_ADDITONAL_TEXT signals.
Removed GET_ICON_TEXT signal. Added ICON_TEXT_CHANGED signal.
(icon_toggle_selected): Renaming mode is now exited when a
selection/deselection occurs.
(key_press_event): GDK_Return ends rename mode and attempts to
accept modification. GDK_Escape ends rename mode and reverts
modification to original.
(nautilus_icon_container_initialize_class): icon_text_changed,
get_icon_editable_text and get_icon_additional_text signals are
registered.
(editing_started): New function. Called when an edit begins.
Inits class member variables for edit mode.
(editing_stopped): New function. Called when edit ends. Cleans
up edit mode.
(nautilus_icon_container_initialize): rename_widget and original_text private variables
are set to NULL.
(icon_toggle_selected): Added call to end_renaming_mode.
(nautilus_icon_container_update_icon): Added emitting of
GET_ICON_EDITABLE_TEXT and GET_ICON_ADDITIONAL_TEXT
signals. Updated gnome_canvas_item_set to use new arguments
defined in nautilus-icon-text-item.
(nautilus_icon_container_show_rename_widget): New
function. Creates and displays renaming_widget. Creates cached
copy of original editable text for later compare, connects signals
and enters renaming mode.
(end_renaming_mode): New function. Cleans up and end renaming
mode.
(hide_rename_widget): Called by end_renaming_mode to hide and free
renaming_widget.
* libnautilus-extensions/nautilus-icon-container.h
Added prototypes for public functions described above.
* libnautilus-extensions/nautilus-icon-private.h
Added boolean for renaming. Added a NautilusIconTextItem variable
for the renaiming widget.
* src/file-manager/fm-icon-view.c
Added defines MENU_PATH_RENAME. Added a char * to hold original
editable text for a later compare. Removed get_icon_text_callback
and added get_icon_editable_text_callback and
get_icon_additonal_text_callback. These return the editable and
additonal text of the icon view.
(rename_icon_callback): Added callback that attempts to rename the
NautilusFile the icon view represents. Action in not taken if
there has been no change to the editable text. If the operation
fails, the user is notified.
(fm_icon_view_append_selection_context_menu_items): Added Rename
menu item.
(append_bonobo_menu_item): Added Rename menu item and callback.
(update_bonobo_menu_item): Added sensitivity check for the Rename
item. It is enabled only if a single item is selected.
(fm_icon_view_icon_text_changed_callback): Added function to
attempt to change the filename to the new text. Notify user if
operation fails.
(get_icon_editable_text_callback): This callback returns the text
items that are editable by the user using the "Rename" command. In
the case of FMIconView, this would be the attribute with the name
"name".
(get_icon_additional_text_callback): This callback returns the
text items that are not editable by the user using the "Rename"
command.
2000-04-17 John Sullivan <sullivan@eazel.com>
* libnautilus-extensions/nautilus-file.c:
(nautilus_file_monitor_add), (nautilus_file_monitor_remove):
Added empty implementations for these two routines. Will
fill in with actual code later after talking to Darin.
* src/nautilus-index-title.c:
(nautilus_index_title_set_uri): Monitor file for changes
in directory item count.
(release_file): Remove monitoring of file.
* src/file-manager/fm-properties-window.c:
(name_field_done_editing), (name_field_focus_out),
(name_field_focus_in), (create_properties_window):
Made focusing away from the name field in the Properties
window deselect the text, and focusing in select it.
2000-04-17 John Sullivan <sullivan@eazel.com>
Fixed bugs, mostly related to editable text fields.
* README: Made the contents of this file slightly helpful.
* data/mime/nautilus.keys: Added an obscure MIME type that
someone reported running into.
* libnautilus-extensions/nautilus-entry.h,
* libnautilus-extensions/nautilus-entry.c: New files. Define a
subclass of GtkEntry (one-line text editing field) that fixes
bugs and adds convenience functions.
(nautilus_entry_key_press): Override key_press handler to treat
the keypad Enter key the same as the other Enter key (in GtkEntry
it inserts a "/r" into the text).
(nautilus_entry_select_all): Select all text, and move the text
cursor position to the end.
(nautilus_entry_select_all_at_idle): Same, but do it at the next
idle opportunity. Useful since nautilus_entry_select_all won't
work right if called in a key_press signal handler.
* libnautilus-extensions/Makefile.am: Build these two new files.
* src/file-manager/fm-properties-window.c:
(name_field_activate): New function, updates file name and
selects all text.
(create_properties_window): Make name_field be a NautilusEntry.
This fixes half of bug 433 (Enter keys don't work properly in
properties window). Also attach to "activate" signal and update
name change then. This fixes other half of bug 433. Also start
with name field selected & focused. This fixes bug 432 (properties
window should appear with name text selected).
(name_field_update_to_match_file): Only update the displayed text
if the new name coming in is different. This was needed to make
select-all-on-activate work.
(name_field_done_editing): Don't accept empty string as name;
silently revert back to original name.
* src/nautilus-bookmarks-window.c:
(create_bookmarks_window): Change name & uri text fields to
NautilusEntry; this causes keypad Enter key to behave like other
Enter key. Also connect to focus_in and activate signals.
(update_bookmark_from_text): New function, extracted from
on_text_field_focus_out_event.
(on_text_field_focus_out_event): Deselect all text after updating
bookmark.
(on_text_field_focus_in_event): New function, select all text.
(name_or_uri_field_activate): New function, update bookmark and
select all text.
* src/nautilus-location-bar.c:
(nautilus_location_bar_initialize): Use NautilusEntry instead of
GtkEntry. This makes keypad Enter act like other Enter in uri-entry
field.
* src/ntl-window-msgs.c:
(nautilus_window_end_location_change_callback): Make "Nautilus can't
handle this type of file" message mention (human-readable version of)
file type.
2000-04-17 Andy Hertzfeld <andy@eazel.com>
fixed bug involving making thumbnails for directories where we don't
have write permissions by making them in $HOME/.nautilus/thumbnails.
* libnautilus/nautilus-directory.c:
moved escape_slashes routine to nautilus-strings so it can be shared
* libnautilus/nautilus-string.c,h:
added nautilus_str_escape_slashes, copies from nautilus-directory
* libnautilus/nautilus-icon-factory.c:
added boolean to make_thumbnail_path to make the thumbnails in
$HOME/.nautilus/thumbnails instead of in the local directory, and
then used it when we can't write to the local one.
2000-04-16 Andy Hertzfeld <andy@eazel.com>
* src/ntl-index-panel.c:
fixed problem where the command buttons in the index panel were overlapping
the metaview. They are not supposed to be showing if a metaview is selected.
Fixed by hiding them in nautilus_index_panel_update_buttons if a metaview
is selected.
2000-04-15 Andy Hertzfeld <andy@eazel.com>
installed some icons for common file types, purloined from gmc
* icons/Makefile.am:
added a bunch of icons
* icons/gnome-icon-x-mp3.png: new icon for mp3s
* icons/gnome-compressed.png: new icon for gzips
* icons/gnome-library.png: new icon for shared libraries
* icons/gnome-manpage.png: new icon for man pages
* icons/gnome-objectfile.png: new icon for object code files
* icons/gnome-pack-deb.png: new icon for debian packages
* icons/gnome-pack-rpm.png: new icon for rpm packages
* icons/gnome-package: new icon for tar archives
* data/mime/nautilus.keys:
added icon-filename entries to appropriate mime-types
2000-04-14 Darin Adler <darin@eazel.com>
* libnautilus-extensions/nautilus-string.c:
* libnautilus-extensions/nautilus-string.h:
After a chat with Rebecca, named nautilus_str_underscore_escape to
nautilus_str_double_underscores since the latter name more
accurately describes what it does.
(nautilus_str_double_underscores): Changed the function to allow
NULL and return NULL instead of doing g_return_val_if_fail.
(Also reformatted a bit and made a few gratuitous changes.)
* libnautilus-extensions/nautilus-bookmark.c:
* libnautilus-extensions/nautilus-bookmark.h:
(nautilus_bookmark_get_menu_display_name):
Moved the logic about escaping menu characters up one level so
the bookmark class doesn't have to know about it. This removes
the function from NautilusBookmark completely.
* src/nautilus-window-menus.c:
(append_bookmark_to_menu): Fixed a storage leak and moved the
double-underscore escaping in here.
2000-04-14 Rebecca Schulman <rebecka@eazel.com>
Fixed test cases on nautilus-string.c to be correct
2000-04-14 Rebecca Schulman <rebecka@eazel.com>
Bookmarks with '_' characters display
correctly now on menus
* libnautilus-extensions/nautilus-string.c
New function to escape '_' characters in strings
for menu display
* libnautilus-extensions/nautilus-bookmark.c
New function to take bookmarks and return
'_' escaped names
* src/nautilus-window-menus.c
Calls function to escape bookmark names
2000-04-14 Darin Adler <darin@eazel.com>
Finished task 174 (Use deferred calculation to compute directory
counts).
* libnautilus-extensions/Makefile.am:
* libnautilus-extensions/nautilus-file-attributes.h:
Added a header file for names of file attributes.
* libnautilus-extensions/nautilus-directory-private.h:
* libnautilus-extensions/nautilus-directory.c:
* libnautilus-extensions/nautilus-directory.h:
* libnautilus-extensions/nautilus-file-private.h:
* libnautilus-extensions/nautilus-file.c:
* libnautilus-extensions/nautilus-file.h:
Added background computation of the "directory item count"
attribute. This is serving as a test case for the API for
requesting additional information.
* src/file-manager/fm-directory-view.c:
(display_selection_info): Changed to use the new interface that
can sometimes return "I don't know" for the number of items in
a particular directory.
(stop_load), (done_loading), (display_pending_files),
(fm_directory_view_stop): Fixed a mistake in the old code where
we stopped monitoring once the files were discovered. We need to
keep monitoring.
(finish_loading_uri): Pass in an attribute that we want to monitor:
NAUTILUS_FILE_ATTRIBUTE_DIRECTORY_ITEM_COUNT.
2000-04-14 Rebecca Schulman <rebecka@eazel.com>
Bookmarks with '_' characters display
correctly now on menus
* libnautilus-extensions/nautilus-string.c
New function to escape '_' characters in strings
for menu display
* libnautilus-extensions/nautilus-bookmark.c
New function to take bookmarks and return
'_' escaped names
* src/nautilus-window-menus.c
Calls function to escape bookmark names
Fri Apr 14 16:35:32 2000 Raph Levien <raph@acm.org>
* librsvg/test-rsvg.c: Added a command line tester for rsvg, which
outputs alpha-transparent PNG's from SVG input files. The PNG save
code is lifted from similar code in nautilus-icon-factory, and
should be deleted when this functionality appears in gdk-pixbuf.
* librsvg/Makefile.am: Build test-rsvg.
2000-04-14 Andy Hertzfeld <andy@eazel.com>
* libnautilus-extensions/nautilus-icon-factory.c:
using Raph's new machinery, made icons for .svg files use
a rendering of the file itself.
2000-04-14 Christopher James Lahey <clahey@helixcode.com>
* src/ntl-window.c (nautilus_window_constructed): Change the
packing of the first pane so that it doesn't autoresize.
* libnautilus-extensions/nautilus-file-utilities.c
(nautilus_user_top_directory): Change this routine to use
gnome_datadir_file to get the share directory. Also, change to
using g_strdup_printf.
2000-04-14 Darin Adler <darin@eazel.com>
* libnautilus-extensions/.cvsignore: Fixed to match new directory
contents.
2000-04-14 Ramiro Estrugo <ramiro@eazel.com>
Split libnautilus into two pieces.
libnautilus now only contains the view interfaces needed by nautilus
components.
These are the interfaces defined in nautilus-view-component.idl.
libnautilus-extensions containes the remainder of the stuff.
Also used the cvs repository munging opportunity to do some of the
ntl-* renaming outlined in the RENAIMING file.
* libnautilus/bonobo-stream-vfs.c
libnautilus/bonobo-stream-vfs.h,
libnautilus/gtkscrollframe.c,
libnautilus/gtkscrollframe.h,
libnautilus/nautilus-alloc.h,
libnautilus/nautilus-background-canvas-group.c,
libnautilus/nautilus-background-canvas-group.h,
libnautilus/nautilus-background.c,
libnautilus/nautilus-background.h,
libnautilus/nautilus-bonobo-extensions.c,
libnautilus/nautilus-bonobo-extensions.h,
libnautilus/nautilus-bookmark.c,
libnautilus/nautilus-bookmark.h,
libnautilus/nautilus-debug.c,
libnautilus/nautilus-debug.h,
libnautilus/nautilus-default-file-icon.c,
libnautilus/nautilus-default-file-icon.h,
libnautilus/nautilus-directory-background.c,
libnautilus/nautilus-directory-background.h,
libnautilus/nautilus-directory-private.h,
libnautilus/nautilus-directory.c,
libnautilus/nautilus-directory.h,
libnautilus/nautilus-file-private.h,
libnautilus/nautilus-file-utilities.c,
libnautilus/nautilus-file-utilities.h,
libnautilus/nautilus-file.c,
libnautilus/nautilus-file.h,
libnautilus/nautilus-gdk-extensions.c,
libnautilus/nautilus-gdk-extensions.h,
libnautilus/nautilus-gdk-pixbuf-extensions.c,
libnautilus/nautilus-gdk-pixbuf-extensions.h,
libnautilus/nautilus-glib-extensions.c,
libnautilus/nautilus-glib-extensions.h,
libnautilus/nautilus-global-preferences.c,
libnautilus/nautilus-global-preferences.h,
libnautilus/nautilus-gnome-extensions.c,
libnautilus/nautilus-gnome-extensions.h,
libnautilus/nautilus-graphic-effects.c,
libnautilus/nautilus-graphic-effects.h,
libnautilus/nautilus-gtk-extensions.c,
libnautilus/nautilus-gtk-extensions.h,
libnautilus/nautilus-gtk-macros.h,
libnautilus/nautilus-icon-canvas-item.c,
libnautilus/nautilus-icon-canvas-item.h,
libnautilus/nautilus-icon-container.c,
libnautilus/nautilus-icon-container.h,
libnautilus/nautilus-icon-dnd.c,
libnautilus/nautilus-icon-dnd.h,
libnautilus/nautilus-icon-factory.c,
libnautilus/nautilus-icon-factory.h,
libnautilus/nautilus-icon-grid.c,
libnautilus/nautilus-icon-grid.h,
libnautilus/nautilus-icon-private.h,
libnautilus/nautilus-lib-self-check-functions.c,
libnautilus/nautilus-lib-self-check-functions.h,
libnautilus/nautilus-list-column-title.c,
libnautilus/nautilus-list-column-title.h,
libnautilus/nautilus-list.c,
libnautilus/nautilus-list.h,
libnautilus/nautilus-metadata.h,
libnautilus/nautilus-mime-type.c,
libnautilus/nautilus-mime-type.h,
libnautilus/nautilus-self-checks.c,
libnautilus/nautilus-self-checks.h,
libnautilus/nautilus-string-list.c,
libnautilus/nautilus-string-list.h,
libnautilus/nautilus-string.c,
libnautilus/nautilus-string.h,
libnautilus/nautilus-xml-extensions.c,
libnautilus/nautilus-xml-extensions.h: moved to
libnautilus-extensions.
libnautilus/ntl-content-view-frame.c,
libnautilus/ntl-content-view-frame.h,
libnautilus/ntl-meta-view-frame.c,
libnautilus/ntl-meta-view-frame.h,
libnautilus/ntl-view-frame.c,
libnautilus/ntl-view-frame.h: moved to
libnautilus-extensions and renamed from "ntl-*" to "nautilus-*"
* Makefile.am,
configure.in: added libnautilus-extensions to the build.
* libnautilus/.cvsignore,
libnautilus/Makefile.am,
libnautilus/libnautilus.h,
libnautilus/nautilus-content-view-frame.c,
libnautilus/nautilus-content-view-frame.h,
libnautilus/nautilus-meta-view-frame.c,
libnautilus/nautilus-meta-view-frame.h,
libnautilus/nautilus-view-frame-private.h,
libnautilus/nautilus-view-frame.c,
libnautilus/nautilus-view-frame.h,
libnautilus/nautilus-zoomable.c: Updated for libnautilus ->
libnautilus-extensions changes.
* libnautilus-extensions/Makefile.am,
libnautilus-extensions/nautilus-global-preferences.c,
libnautilus-extensions/nautilus-global-preferences.h,
libnautilus-extensions/nautilus-icon-factory.h: Updated for libnautilus ->
libnautilus-extensions changes.
* nautilus-widgets/nautilus-preferences-box.c,
nautilus-widgets/nautilus-preferences-dialog.c,
nautilus-widgets/nautilus-preferences-group.c,
nautilus-widgets/nautilus-preferences-item.c,
nautilus-widgets/nautilus-preferences-pane.c,
nautilus-widgets/nautilus-preferences.c,
nautilus-widgets/nautilus-radio-button-group.c: Updated for libnautilus ->
libnautilus-extensions changes.
* src/Makefile.am,
src/nautilus-bookmark-list.c,
src/nautilus-bookmark-list.h,
src/nautilus-bookmarks-window.c,
src/nautilus-index-tabs.c,
src/nautilus-index-title.c,
src/nautilus-location-bar.c,
src/nautilus-signaller.c,
src/nautilus-window-menus.c,
src/nautilus-window-toolbars.c,
src/nautilus-zoom-control.c,
src/ntl-app.c,
src/ntl-index-panel.c,
src/ntl-main.c,
src/ntl-meta-view.c,
src/ntl-uri-map.c,
src/ntl-uri-map.h,
src/ntl-view-bonobo-subdoc.c,
src/ntl-view.c,
src/ntl-window-msgs.c,
src/ntl-window-state.c,
src/ntl-window.c,
src/ntl-window.h: Updated for libnautilus ->
libnautilus-extensions changes.
* src/file-manager/fm-directory-view.c,
src/file-manager/fm-directory-view.h,
src/file-manager/fm-icon-text-window.c,
src/file-manager/fm-icon-view.c,
src/file-manager/fm-list-view.c,
src/file-manager/fm-properties-window.c,
src/file-manager/fm-properties-window.h: Updated for libnautilus ->
libnautilus-extensions changes.
* components/history/Makefile.am,
components/history/ntl-history-view.c,
components/html/Makefile.am,
components/html/ntl-web-browser.c,
components/music/Makefile.am,
components/music/nautilus-music-view.c,
components/music/nautilus-music-view.h,
components/notes/Makefile.am,
components/notes/ntl-notes.c,
components/rpmview/Makefile.am,
components/rpmview/nautilus-rpm-view.c,
components/rpmview/nautilus-rpm-view.h,
components/sample/Makefile.am,
components/sample/nautilus-sample-content-view.c,
components/sample/nautilus-sample-content-view.h,
components/services/startup/Makefile.am,
components/services/startup/eazel-register.c,
components/services/startup/nautilus-service-startup-view.c,
components/services/startup/nautilus-service-startup-view.h:
Updated components for libnautilus -> libnautilus-extensions changes.
2000-04-14 Fatih Demir <kabalak@gmx.net>
* configure.in : Added tr to ALL_LINGUAS .
2000-04-14 Ramiro Estrugo <ramiro@eazel.com>
* po/ChangeLog: Added this thing to make 'make dist' happy.
Use that from now on for changes in po/. Seems to be the standard
thing to do.
2000-04-14 Ramiro Estrugo <ramiro@eazel.com>
* libnautilus/libnautilus.h
libnautilus/nautilus-zoomable.h
libnautilus/ntl-view-frame.h:
Include the new <nautilus-view-component.h> instead of
<nautilus.h>
src/ntl-uri-map.h
src/ntl-view.h:
Same.
2000-04-14 Ramiro Estrugo <ramiro@eazel.com>
* components/rpmview/nautilus-rpm-view.c:
Did not build on redhat 5.2 because RPMTAG_FILENAMES has been
obseleted in the version of rpm that ships with 5.2 apparently.
I added a dumb hack to define RPMTAG_FILENAMES to
RPMTAG_OLDFILENAMES which is almost surely the wrong thing to do,
but i really need to have nautilus building while i do the
nautilus view changes. I gave myself a bug to properly address
this soon (472).
2000-04-14 Maciej Stachowiak <mjs@eazel.com>
* ChangeLog-20000414: rolled over from ChangeLog.
|