summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorraveit65 (via Travis CI) <[email protected]>2021-01-07 21:40:10 +0000
committerraveit65 (via Travis CI) <[email protected]>2021-01-07 21:40:10 +0000
commit691a5502a141b5d0df47a7b95d6cecdd10be39e1 (patch)
tree6038d29b7feea43c01b9fd8d0c48cf81f8431e46
downloadmate-settings-daemon-gh-pages.tar.bz2
mate-settings-daemon-gh-pages.tar.xz
Deploy mate-desktop/mate-settings-daemon to github.com/mate-desktop/mate-settings-daemon.git:gh-pagesgh-pages
-rw-r--r--[email protected]_USE_MATE2_MACROS/index.html230
-rw-r--r--[email protected]_USE_MATE2_MACROS/report-03eb16.html469
-rw-r--r--[email protected]_USE_MATE2_MACROS/report-079a94.html3109
-rw-r--r--[email protected]_USE_MATE2_MACROS/report-0bd1b6.html3109
-rw-r--r--[email protected]_USE_MATE2_MACROS/report-107291.html3109
-rw-r--r--2020-11-17-0505[email protected]_USE_MATE2_MACROS/report-10bd95.html637
-rw-r--r--[email protected]_USE_MATE2_MACROS/report-1137b1.html784
-rw-r--r--[email protected]_USE_MATE2_MACROS/report-1342cb.html1000
-rw-r--r--[email protected]_USE_MATE2_MACROS/report-151382.html2013
-rw-r--r--[email protected]_USE_MATE2_MACROS/report-16d941.html1372
-rw-r--r--[email protected]_USE_MATE2_MACROS/report-1f92cb.html2213
-rw-r--r--[email protected]_USE_MATE2_MACROS/report-2d0f85.html3109
-rw-r--r--[email protected]_USE_MATE2_MACROS/report-2d1351.html3109
-rw-r--r--[email protected]_USE_MATE2_MACROS/report-36aa98.html930
-rw-r--r--[email protected]_USE_MATE2_MACROS/report-4517ca.html776
-rw-r--r--[email protected]_USE_MATE2_MACROS/report-588639.html616
-rw-r--r--[email protected]_USE_MATE2_MACROS/report-60d044.html1372
-rw-r--r--[email protected]_USE_MATE2_MACROS/report-674e03.html2213
-rw-r--r--[email protected]_USE_MATE2_MACROS/report-698d22.html2213
-rw-r--r--[email protected]_USE_MATE2_MACROS/report-738d15.html469
-rw-r--r--[email protected]_USE_MATE2_MACROS/report-7cfa51.html3109
-rw-r--r--[email protected]_USE_MATE2_MACROS/report-7f5640.html616
-rw-r--r--[email protected]_USE_MATE2_MACROS/report-8ad431.html2013
-rw-r--r--[email protected]_USE_MATE2_MACROS/report-8bc4dd.html1372
-rw-r--r--[email protected]_USE_MATE2_MACROS/report-8e4c02.html783
-rw-r--r--[email protected]_USE_MATE2_MACROS/report-90fd1f.html637
-rw-r--r--[email protected]_USE_MATE2_MACROS/report-a0ed6a.html1012
-rw-r--r--[email protected]_USE_MATE2_MACROS/report-a5873d.html3109
-rw-r--r--[email protected]_USE_MATE2_MACROS/report-b1b4dd.html776
-rw-r--r--[email protected]_USE_MATE2_MACROS/report-c1363c.html781
-rw-r--r--2020-11-17-0505[email protected]_USE_MATE2_MACROS/report-ca4621.html616
-rw-r--r--[email protected]_USE_MATE2_MACROS/report-cec444.html784
-rw-r--r--[email protected]_USE_MATE2_MACROS/report-d0fb65.html1372
-rw-r--r--[email protected]_USE_MATE2_MACROS/report-d1b275.html2213
-rw-r--r--[email protected]_USE_MATE2_MACROS/report-d4dfba.html930
-rw-r--r--[email protected]_USE_MATE2_MACROS/report-dc4b89.html1359
-rw-r--r--[email protected]_USE_MATE2_MACROS/report-dd95e2.html783
-rw-r--r--[email protected]_USE_MATE2_MACROS/report-ddf2bb.html1013
-rw-r--r--[email protected]_USE_MATE2_MACROS/report-e41687.html1359
-rw-r--r--[email protected]_USE_MATE2_MACROS/report-ea73c2.html1012
-rw-r--r--[email protected]_USE_MATE2_MACROS/report-ea7975.html616
-rw-r--r--[email protected]_USE_MATE2_MACROS/report-eb49da.html781
-rw-r--r--[email protected]_USE_MATE2_MACROS/report-f35766.html1013
-rw-r--r--[email protected]_USE_MATE2_MACROS/report-f77251.html3109
-rw-r--r--[email protected]_USE_MATE2_MACROS/scanview.css62
-rw-r--r--[email protected]_USE_MATE2_MACROS/sorttable.js492
-rw-r--r--[email protected]_USE_MATE2_MACROS/0.html1338
-rw-r--r--[email protected]_USE_MATE2_MACROS/1.html1144
-rw-r--r--[email protected]_USE_MATE2_MACROS/10.html2266
-rw-r--r--[email protected]_USE_MATE2_MACROS/11.html1618
-rw-r--r--[email protected]_USE_MATE2_MACROS/12.html1176
-rw-r--r--[email protected]_USE_MATE2_MACROS/13.html980
-rw-r--r--[email protected]_USE_MATE2_MACROS/14.html944
-rw-r--r--[email protected]_USE_MATE2_MACROS/15.html1568
-rw-r--r--[email protected]_USE_MATE2_MACROS/16.html3516
-rw-r--r--[email protected]_USE_MATE2_MACROS/17.html1352
-rw-r--r--[email protected]_USE_MATE2_MACROS/18.html3904
-rw-r--r--[email protected]_USE_MATE2_MACROS/19.html1852
-rw-r--r--[email protected]_USE_MATE2_MACROS/2.html312
-rw-r--r--[email protected]_USE_MATE2_MACROS/20.html1660
-rw-r--r--[email protected]_USE_MATE2_MACROS/21.html2886
-rw-r--r--[email protected]_USE_MATE2_MACROS/22.html932
-rw-r--r--[email protected]_USE_MATE2_MACROS/23.html5720
-rw-r--r--[email protected]_USE_MATE2_MACROS/24.html2288
-rw-r--r--[email protected]_USE_MATE2_MACROS/3.html2818
-rw-r--r--[email protected]_USE_MATE2_MACROS/4.html1934
-rw-r--r--[email protected]_USE_MATE2_MACROS/5.html2208
-rw-r--r--[email protected]_USE_MATE2_MACROS/6.html1524
-rw-r--r--[email protected]_USE_MATE2_MACROS/7.html424
-rw-r--r--[email protected]_USE_MATE2_MACROS/8.html662
-rw-r--r--[email protected]_USE_MATE2_MACROS/9.html1466
-rw-r--r--[email protected]_USE_MATE2_MACROS/index.html202
-rw-r--r--[email protected]_USE_MATE2_MACROS/stats.html125
-rw-r--r--[email protected]_USE_MATE2_MACROS/style.css137
-rw-r--r--[email protected]_master/index.html230
-rw-r--r--[email protected]_master/report-0544db.html1012
-rw-r--r--[email protected]_master/report-07c4ed.html2213
-rw-r--r--[email protected]_master/report-09978e.html2213
-rw-r--r--[email protected]_master/report-191d63.html2013
-rw-r--r--[email protected]_master/report-1aa9c2.html784
-rw-r--r--[email protected]_master/report-203d50.html3109
-rw-r--r--2[email protected]_master/report-25d5f7.html3109
-rw-r--r--[email protected]_master/report-2913c8.html1013
-rw-r--r--[email protected]_master/report-2ac882.html930
-rw-r--r--[email protected]_master/report-2e0885.html469
-rw-r--r--[email protected]_master/report-422e10.html3109
-rw-r--r--[email protected]_master/report-42b8f6.html637
-rw-r--r--[email protected]_master/report-4706b5.html1000
-rw-r--r--[email protected]_master/report-525c1d.html3109
-rw-r--r--[email protected]_master/report-56304b.html616
-rw-r--r--[email protected]_master/report-65e393.html781
-rw-r--r--[email protected]_master/report-6d7e92.html1372
-rw-r--r--[email protected]_master/report-6dbc30.html1372
-rw-r--r--[email protected]_master/report-72aeda.html3109
-rw-r--r--[email protected]_master/report-8a30ef.html776
-rw-r--r--[email protected]_master/report-8dace1.html3109
-rw-r--r--[email protected]_master/report-92c2a3.html1372
-rw-r--r--[email protected]_master/report-a37f71.html1359
-rw-r--r--[email protected]_master/report-a5d244.html2213
-rw-r--r--[email protected]_master/report-aad057.html784
-rw-r--r--[email protected]_master/report-aca91d.html1359
-rw-r--r--[email protected]_master/report-aeecd7.html3109
-rw-r--r--[email protected]_master/report-bb0e76.html616
-rw-r--r--[email protected]_master/report-c31e75.html776
-rw-r--r--[email protected]_master/report-c32a6a.html1013
-rw-r--r--[email protected]_master/report-c72970.html2013
-rw-r--r--[email protected]_master/report-cd2b44.html616
-rw-r--r--[email protected]2805096e92_master/report-daa997.html616
-rw-r--r--[email protected]_master/report-dbcbe4.html637
-rw-r--r--[email protected]_master/report-dc4b84.html930
-rw-r--r--[email protected]_master/report-de8dda.html783
-rw-r--r--[email protected]_master/report-df5fc1.html2213
-rw-r--r--[email protected]_master/report-e970b6.html1372
-rw-r--r--[email protected]_master/report-f34192.html3109
-rw-r--r--[email protected]_master/report-f438be.html783
-rw-r--r--[email protected]_master/report-f43ac8.html781
-rw-r--r--[email protected]_master/report-f67c74.html1012
-rw-r--r--[email protected]_master/report-f74154.html469
-rw-r--r--[email protected]_master/scanview.css62
-rw-r--r--[email protected]_master/sorttable.js492
-rw-r--r--[email protected]_master/0.html1338
-rw-r--r--[email protected]_master/1.html1144
-rw-r--r--[email protected]_master/10.html2266
-rw-r--r--[email protected]_master/11.html1618
-rw-r--r--[email protected]_master/12.html1176
-rw-r--r--[email protected]_master/13.html980
-rw-r--r--[email protected]_master/14.html944
-rw-r--r--[email protected]_master/15.html1568
-rw-r--r--[email protected]_master/16.html3516
-rw-r--r--[email protected]_master/17.html1352
-rw-r--r--[email protected]_master/18.html3904
-rw-r--r--[email protected]_master/19.html1852
-rw-r--r--[email protected]_master/2.html312
-rw-r--r--[email protected]_master/20.html1660
-rw-r--r--[email protected]_master/21.html2886
-rw-r--r--[email protected]_master/22.html932
-rw-r--r--[email protected]_master/23.html5720
-rw-r--r--[email protected]_master/24.html2288
-rw-r--r--[email protected]_master/3.html2818
-rw-r--r--[email protected]_master/4.html1934
-rw-r--r--[email protected]_master/5.html2208
-rw-r--r--[email protected]_master/6.html1524
-rw-r--r--[email protected]_master/7.html424
-rw-r--r--[email protected]_master/8.html662
-rw-r--r--[email protected]_master/9.html1466
-rw-r--r--[email protected]_master/index.html202
-rw-r--r--[email protected]_master/stats.html125
-rw-r--r--[email protected]_master/style.css137
-rw-r--r--[email protected]_master/index.html230
-rw-r--r--[email protected]_master/report-016df8.html1359
-rw-r--r--[email protected]_master/report-0594f2.html3109
-rw-r--r--[email protected]_master/report-08236f.html2013
-rw-r--r--[email protected]_master/report-13fa80.html469
-rw-r--r--[email protected]_master/report-15e577.html616
-rw-r--r--[email protected]_master/report-1c44bc.html2013
-rw-r--r--[email protected]_master/report-40f3b7.html616
-rw-r--r--[email protected]_master/report-4285aa.html3109
-rw-r--r--[email protected]_master/report-5000ff.html1000
-rw-r--r--[email protected]_master/report-5174ef.html2213
-rw-r--r--[email protected]_master/report-69dac9.html469
-rw-r--r--[email protected]_master/report-6df923.html616
-rw-r--r--[email protected]_master/report-7363f9.html637
-rw-r--r--[email protected]_master/report-78949c.html776
-rw-r--r--[email protected]_master/report-843904.html1372
-rw-r--r--[email protected]_master/report-879aa8.html2213
-rw-r--r--[email protected]_master/report-87a20e.html2213
-rw-r--r--[email protected]_master/report-8ac806.html2213
-rw-r--r--[email protected]_master/report-9796c6.html781
-rw-r--r--[email protected]_master/report-9a8601.html781
-rw-r--r--[email protected]_master/report-9f3579.html1013
-rw-r--r--[email protected]_master/report-a015ac.html930
-rw-r--r--[email protected]_master/report-a1c692.html616
-rw-r--r--[email protected]_master/report-a92860.html1012
-rw-r--r--[email protected]_master/report-b3bfc0.html1013
-rw-r--r--[email protected]_master/report-b99c4f.html784
-rw-r--r--[email protected]_master/report-bca481.html1359
-rw-r--r--[email protected]_master/report-bcca5f.html3109
-rw-r--r--[email protected]_master/report-c90fac.html783
-rw-r--r--[email protected]_master/report-ccc086.html637
-rw-r--r--[email protected]_master/report-ce6c7e.html3109
-rw-r--r--[email protected]_master/report-d74856.html776
-rw-r--r--[email protected]_master/report-d95c9f.html784
-rw-r--r--[email protected]_master/report-d9c211.html930
-rw-r--r--[email protected]_master/report-dce526.html1372
-rw-r--r--[email protected]_master/report-dd2d9d.html3109
-rw-r--r--[email protected]_master/report-e4f567.html3109
-rw-r--r--[email protected]_master/report-e5bbaf.html1372
-rw-r--r--[email protected]_master/report-e5be59.html1372
-rw-r--r--[email protected]_master/report-f3b084.html1012
-rw-r--r--[email protected]_master/report-fb6c31.html3109
-rw-r--r--[email protected]_master/report-fc276f.html3109
-rw-r--r--[email protected]_master/report-ff1367.html783
-rw-r--r--[email protected]_master/scanview.css62
-rw-r--r--[email protected]_master/sorttable.js492
-rw-r--r--[email protected]_master/0.html1338
-rw-r--r--[email protected]_master/1.html1144
-rw-r--r--[email protected]_master/10.html2266
-rw-r--r--[email protected]_master/11.html1618
-rw-r--r--[email protected]_master/12.html1176
-rw-r--r--[email protected]_master/13.html980
-rw-r--r--[email protected]_master/14.html944
-rw-r--r--[email protected]_master/15.html1568
-rw-r--r--[email protected]_master/16.html3516
-rw-r--r--[email protected]_master/17.html1352
-rw-r--r--[email protected]_master/18.html3904
-rw-r--r--[email protected]_master/19.html1852
-rw-r--r--[email protected]_master/2.html312
-rw-r--r--[email protected]_master/20.html1660
-rw-r--r--[email protected]_master/21.html2886
-rw-r--r--[email protected]_master/22.html932
-rw-r--r--[email protected]_master/23.html5720
-rw-r--r--[email protected]_master/24.html2288
-rw-r--r--[email protected]_master/3.html2818
-rw-r--r--[email protected]_master/4.html1934
-rw-r--r--[email protected]_master/5.html2208
-rw-r--r--[email protected]_master/6.html1524
-rw-r--r--[email protected]_master/7.html424
-rw-r--r--[email protected]_master/8.html662
-rw-r--r--[email protected]_master/9.html1466
-rw-r--r--[email protected]_master/index.html202
-rw-r--r--[email protected]_master/stats.html125
-rw-r--r--[email protected]_master/style.css137
-rw-r--r--[email protected]_g_list_free_full/index.html230
-rw-r--r--[email protected]_g_list_free_full/report-02b36c.html776
-rw-r--r--[email protected]_g_list_free_full/report-0caf77.html637
-rw-r--r--[email protected]_g_list_free_full/report-2290df.html616
-rw-r--r--[email protected]_g_list_free_full/report-28597a.html1000
-rw-r--r--[email protected]_g_list_free_full/report-28f5a2.html1359
-rw-r--r--[email protected]_g_list_free_full/report-312d26.html783
-rw-r--r--[email protected]_g_list_free_full/report-3410a5.html2013
-rw-r--r--[email protected]_g_list_free_full/report-37a7d1.html1372
-rw-r--r--[email protected]_g_list_free_full/report-37fb24.html1372
-rw-r--r--[email protected]_g_list_free_full/report-410e25.html3109
-rw-r--r--[email protected]_g_list_free_full/report-442fc6.html616
-rw-r--r--[email protected]_g_list_free_full/report-4b4cda.html3109
-rw-r--r--[email protected]_g_list_free_full/report-4eed65.html3109
-rw-r--r--[email protected]_g_list_free_full/report-547ed7.html3109
-rw-r--r--[email protected]_g_list_free_full/report-5a187d.html616
-rw-r--r--[email protected]75397882_g_list_free_full/report-6572c5.html1013
-rw-r--r--[email protected]_g_list_free_full/report-675c07.html1012
-rw-r--r--[email protected]_g_list_free_full/report-6ad748.html2213
-rw-r--r--[email protected]_g_list_free_full/report-6e423c.html616
-rw-r--r--[email protected]_g_list_free_full/report-738585.html1372
-rw-r--r--[email protected]_g_list_free_full/report-7680e5.html930
-rw-r--r--[email protected]_g_list_free_full/report-79def5.html637
-rw-r--r--[email protected]_g_list_free_full/report-83fb55.html3109
-rw-r--r--[email protected]_g_list_free_full/report-84b42e.html781
-rw-r--r--[email protected]_g_list_free_full/report-8be59c.html2213
-rw-r--r--[email protected]_g_list_free_full/report-9b490f.html781
-rw-r--r--[email protected]_g_list_free_full/report-9bb3f8.html2013
-rw-r--r--[email protected]_g_list_free_full/report-9d335c.html1372
-rw-r--r--[email protected]_g_list_free_full/report-9f5cf2.html2213
-rw-r--r--[email protected]_g_list_free_full/report-abd093.html3109
-rw-r--r--[email protected]_g_list_free_full/report-b832a1.html1359
-rw-r--r--[email protected]_g_list_free_full/report-c425df.html3109
-rw-r--r--[email protected]_g_list_free_full/report-c46161.html2213
-rw-r--r--[email protected]_g_list_free_full/report-ca56f4.html784
-rw-r--r--[email protected]_g_list_free_full/report-d23d31.html469
-rw-r--r--[email protected]_g_list_free_full/report-d429db.html3109
-rw-r--r--[email protected]_g_list_free_full/report-d692f5.html469
-rw-r--r--[email protected]_g_list_free_full/report-deb296.html1013
-rw-r--r--[email protected]_g_list_free_full/report-e569de.html776
-rw-r--r--[email protected]_g_list_free_full/report-ec4b09.html784
-rw-r--r--[email protected]75397882_g_list_free_full/report-f047f3.html930
-rw-r--r--[email protected]_g_list_free_full/report-f2a49a.html1012
-rw-r--r--[email protected]_g_list_free_full/report-fcbd19.html783
-rw-r--r--[email protected]_g_list_free_full/scanview.css62
-rw-r--r--[email protected]_g_list_free_full/sorttable.js492
-rw-r--r--[email protected]_g_list_free_full/0.html1338
-rw-r--r--[email protected]_g_list_free_full/1.html1144
-rw-r--r--[email protected]_g_list_free_full/10.html2266
-rw-r--r--[email protected]_g_list_free_full/11.html1618
-rw-r--r--[email protected]_g_list_free_full/12.html1176
-rw-r--r--[email protected]_g_list_free_full/13.html980
-rw-r--r--[email protected]_g_list_free_full/14.html944
-rw-r--r--[email protected]_g_list_free_full/15.html1568
-rw-r--r--[email protected]_g_list_free_full/16.html3516
-rw-r--r--[email protected]_g_list_free_full/17.html1352
-rw-r--r--[email protected]_g_list_free_full/18.html3904
-rw-r--r--[email protected]_g_list_free_full/19.html1852
-rw-r--r--2020-11-26-152142-085[email protected]_g_list_free_full/2.html312
-rw-r--r--[email protected]_g_list_free_full/20.html1660
-rw-r--r--[email protected]_g_list_free_full/21.html2886
-rw-r--r--[email protected]_g_list_free_full/22.html932
-rw-r--r--[email protected]_g_list_free_full/23.html5720
-rw-r--r--[email protected]_g_list_free_full/24.html2288
-rw-r--r--[email protected]_g_list_free_full/3.html2818
-rw-r--r--[email protected]_g_list_free_full/4.html1934
-rw-r--r--[email protected]_g_list_free_full/5.html2208
-rw-r--r--[email protected]_g_list_free_full/6.html1524
-rw-r--r--[email protected]_g_list_free_full/7.html424
-rw-r--r--[email protected]_g_list_free_full/8.html662
-rw-r--r--[email protected]_g_list_free_full/9.html1466
-rw-r--r--[email protected]_g_list_free_full/index.html202
-rw-r--r--[email protected]_g_list_free_full/stats.html125
-rw-r--r--[email protected]_g_list_free_full/style.css137
-rw-r--r--[email protected]_g_slist_free_full/index.html230
-rw-r--r--[email protected]28a8e44f_g_slist_free_full/report-0ed87c.html783
-rw-r--r--[email protected]_g_slist_free_full/report-111936.html2213
-rw-r--r--[email protected]_g_slist_free_full/report-1440f2.html930
-rw-r--r--[email protected]_g_slist_free_full/report-172aa1.html1013
-rw-r--r--[email protected]_g_slist_free_full/report-203ffb.html616
-rw-r--r--[email protected]_g_slist_free_full/report-20d9c3.html616
-rw-r--r--[email protected]_g_slist_free_full/report-340c59.html1012
-rw-r--r--[email protected]_g_slist_free_full/report-3d34e5.html2213
-rw-r--r--[email protected]_g_slist_free_full/report-3dd942.html783
-rw-r--r--[email protected]_g_slist_free_full/report-3e6837.html2013
-rw-r--r--[email protected]_g_slist_free_full/report-3ed666.html3109
-rw-r--r--[email protected]_g_slist_free_full/report-45356c.html1372
-rw-r--r--[email protected]_g_slist_free_full/report-48906d.html784
-rw-r--r--[email protected]_g_slist_free_full/report-4a88d7.html3109
-rw-r--r--[email protected]_g_slist_free_full/report-56c62b.html1359
-rw-r--r--[email protected]_g_slist_free_full/report-5f62be.html3109
-rw-r--r--[email protected]_g_slist_free_full/report-62422e.html2213
-rw-r--r--[email protected]_g_slist_free_full/report-65eb9e.html469
-rw-r--r--[email protected]_g_slist_free_full/report-736743.html616
-rw-r--r--[email protected]_g_slist_free_full/report-73ec9c.html781
-rw-r--r--[email protected]_g_slist_free_full/report-79e9bb.html1000
-rw-r--r--[email protected]_g_slist_free_full/report-814fcc.html2213
-rw-r--r--[email protected]_g_slist_free_full/report-8c79ad.html3109
-rw-r--r--[email protected]_g_slist_free_full/report-8f0aff.html637
-rw-r--r--[email protected]_g_slist_free_full/report-9031b6.html3109
-rw-r--r--[email protected]_g_slist_free_full/report-904882.html1012
-rw-r--r--[email protected]_g_slist_free_full/report-95849c.html616
-rw-r--r--[email protected]_g_slist_free_full/report-9971b9.html930
-rw-r--r--[email protected]_g_slist_free_full/report-9c674d.html3109
-rw-r--r--[email protected]_g_slist_free_full/report-a4c7db.html1372
-rw-r--r--[email protected]_g_slist_free_full/report-a5782c.html469
-rw-r--r--[email protected]_g_slist_free_full/report-a96a70.html3109
-rw-r--r--[email protected]_g_slist_free_full/report-accbca.html1359
-rw-r--r--[email protected]_g_slist_free_full/report-adc02b.html781
-rw-r--r--[email protected]_g_slist_free_full/report-b9a08e.html1372
-rw-r--r--[email protected]_g_slist_free_full/report-bc9710.html776
-rw-r--r--[email protected]_g_slist_free_full/report-c3be34.html637
-rw-r--r--[email protected]_g_slist_free_full/report-cbbd84.html776
-rw-r--r--[email protected]_g_slist_free_full/report-cc8452.html1013
-rw-r--r--[email protected]_g_slist_free_full/report-f2dc1a.html784
-rw-r--r--[email protected]_g_slist_free_full/report-f5c7d9.html2013
-rw-r--r--[email protected]_g_slist_free_full/report-fbdb52.html1372
-rw-r--r--[email protected]_g_slist_free_full/report-fe96c8.html3109
-rw-r--r--[email protected]_g_slist_free_full/scanview.css62
-rw-r--r--[email protected]_g_slist_free_full/sorttable.js492
-rw-r--r--[email protected]_g_slist_free_full/0.html1338
-rw-r--r--[email protected]_g_slist_free_full/1.html1144
-rw-r--r--[email protected]_g_slist_free_full/10.html2266
-rw-r--r--[email protected]_g_slist_free_full/11.html1614
-rw-r--r--[email protected]_g_slist_free_full/12.html1174
-rw-r--r--2020-11-26-211[email protected]_g_slist_free_full/13.html980
-rw-r--r--[email protected]_g_slist_free_full/14.html944
-rw-r--r--[email protected]_g_slist_free_full/15.html1568
-rw-r--r--[email protected]_g_slist_free_full/16.html3516
-rw-r--r--[email protected]_g_slist_free_full/17.html1352
-rw-r--r--[email protected]_g_slist_free_full/18.html3904
-rw-r--r--[email protected]_g_slist_free_full/19.html1852
-rw-r--r--[email protected]_g_slist_free_full/2.html312
-rw-r--r--[email protected]_g_slist_free_full/20.html1660
-rw-r--r--[email protected]_g_slist_free_full/21.html2886
-rw-r--r--[email protected]_g_slist_free_full/22.html932
-rw-r--r--[email protected]_g_slist_free_full/23.html5720
-rw-r--r--[email protected]_g_slist_free_full/24.html2288
-rw-r--r--[email protected]_g_slist_free_full/3.html2818
-rw-r--r--[email protected]_g_slist_free_full/4.html1934
-rw-r--r--[email protected]_g_slist_free_full/5.html2208
-rw-r--r--[email protected]_g_slist_free_full/6.html1524
-rw-r--r--[email protected]_g_slist_free_full/7.html424
-rw-r--r--[email protected]_g_slist_free_full/8.html662
-rw-r--r--[email protected]_g_slist_free_full/9.html1466
-rw-r--r--[email protected]_g_slist_free_full/index.html202
-rw-r--r--[email protected]_g_slist_free_full/stats.html125
-rw-r--r--[email protected]_g_slist_free_full/style.css137
-rw-r--r--[email protected]_master/index.html230
-rw-r--r--[email protected]_master/report-00c95d.html469
-rw-r--r--[email protected]_master/report-040c59.html1372
-rw-r--r--[email protected]_master/report-0b405b.html3109
-rw-r--r--[email protected]_master/report-17ddf0.html2013
-rw-r--r--[email protected]_master/report-1f9a0f.html469
-rw-r--r--[email protected]_master/report-215adb.html616
-rw-r--r--[email protected]_master/report-2277bf.html616
-rw-r--r--[email protected]_master/report-2d129f.html616
-rw-r--r--[email protected]_master/report-35d0b6.html1012
-rw-r--r--[email protected]_master/report-3ba024.html3109
-rw-r--r--[email protected]_master/report-4a9aaf.html1372
-rw-r--r--[email protected]_master/report-544c7a.html3109
-rw-r--r--[email protected]_master/report-55faca.html776
-rw-r--r--[email protected]_master/report-5b3d2f.html1013
-rw-r--r--[email protected]_master/report-637786.html781
-rw-r--r--[email protected]_master/report-6b30f6.html930
-rw-r--r--[email protected]_master/report-6fdf7d.html930
-rw-r--r--[email protected]_master/report-72de34.html1359
-rw-r--r--[email protected]_master/report-7519fb.html3109
-rw-r--r--[email protected]_master/report-7a30fc.html784
-rw-r--r--[email protected]_master/report-7e3667.html3109
-rw-r--r--[email protected]_master/report-83f568.html776
-rw-r--r--[email protected]_master/report-8c3abf.html2213
-rw-r--r--[email protected]_master/report-90a648.html2213
-rw-r--r--[email protected]_master/report-939df0.html2013
-rw-r--r--[email protected]_master/report-9805cc.html3109
-rw-r--r--[email protected]_master/report-9c4281.html616
-rw-r--r--[email protected]_master/report-a2c7fc.html1359
-rw-r--r--[email protected]_master/report-b18413.html783
-rw-r--r--[email protected]_master/report-b4b99b.html781
-rw-r--r--[email protected]_master/report-b93d98.html1013
-rw-r--r--[email protected]_master/report-c09ffc.html637
-rw-r--r--[email protected]_master/report-c6f10e.html1012
-rw-r--r--[email protected]_master/report-ca59c9.html3109
-rw-r--r--[email protected]_master/report-cf3c35.html784
-rw-r--r--[email protected]_master/report-db7907.html1000
-rw-r--r--[email protected]_master/report-e2259a.html1372
-rw-r--r--[email protected]_master/report-e30bf4.html1372
-rw-r--r--[email protected]_master/report-e9647b.html2213
-rw-r--r--[email protected]_master/report-efbaaf.html3109
-rw-r--r--[email protected]_master/report-f51c7b.html2213
-rw-r--r--[email protected]_master/report-fad5a1.html637
-rw-r--r--[email protected]_master/report-fecacb.html783
-rw-r--r--[email protected]_master/scanview.css62
-rw-r--r--[email protected]_master/sorttable.js492
-rw-r--r--2020-12-05-025310-7327-cppcheck[email protected]_master/0.html1338
-rw-r--r--[email protected]_master/1.html1144
-rw-r--r--[email protected]_master/10.html2266
-rw-r--r--[email protected]_master/11.html1618
-rw-r--r--[email protected]_master/12.html1176
-rw-r--r--[email protected]_master/13.html980
-rw-r--r--[email protected]_master/14.html944
-rw-r--r--[email protected]_master/15.html1568
-rw-r--r--2020-12-05-02[email protected]_master/16.html3516
-rw-r--r--[email protected]_master/17.html1352
-rw-r--r--[email protected]_master/18.html3904
-rw-r--r--[email protected]_master/19.html1852
-rw-r--r--[email protected]_master/2.html312
-rw-r--r--[email protected]_master/20.html1660
-rw-r--r--[email protected]_master/21.html2886
-rw-r--r--[email protected]_master/22.html932
-rw-r--r--[email protected]_master/23.html5720
-rw-r--r--[email protected]_master/24.html2288
-rw-r--r--[email protected]_master/3.html2818
-rw-r--r--[email protected]_master/4.html1934
-rw-r--r--[email protected]_master/5.html2208
-rw-r--r--[email protected]_master/6.html1524
-rw-r--r--[email protected]_master/7.html424
-rw-r--r--[email protected]_master/8.html662
-rw-r--r--[email protected]_master/9.html1466
-rw-r--r--[email protected]_master/index.html202
-rw-r--r--[email protected]_master/stats.html125
-rw-r--r--[email protected]_master/style.css137
-rw-r--r--[email protected]_master/index.html230
-rw-r--r--[email protected]_master/report-00fdcb.html1372
-rw-r--r--[email protected]_master/report-031ab7.html1013
-rw-r--r--[email protected]_master/report-097706.html930
-rw-r--r--[email protected]_master/report-0a33c4.html1372
-rw-r--r--[email protected]_master/report-128819.html616
-rw-r--r--[email protected]_master/report-16368b.html1359
-rw-r--r--[email protected]_master/report-163b23.html1012
-rw-r--r--[email protected]_master/report-1cd49c.html637
-rw-r--r--[email protected]_master/report-1ead1b.html1372
-rw-r--r--[email protected]_master/report-1f5cce.html1372
-rw-r--r--[email protected]_master/report-1f9268.html469
-rw-r--r--[email protected]_master/report-21e3f4.html781
-rw-r--r--[email protected]_master/report-241b29.html2213
-rw-r--r--[email protected]_master/report-274235.html2213
-rw-r--r--[email protected]_master/report-2e247e.html3109
-rw-r--r--[email protected]_master/report-302a90.html2013
-rw-r--r--[email protected]_master/report-3b06fc.html2013
-rw-r--r--[email protected]_master/report-44e8f6.html3109
-rw-r--r--[email protected]_master/report-45b8ba.html784
-rw-r--r--[email protected]_master/report-4820a1.html616
-rw-r--r--[email protected]_master/report-4833be.html3109
-rw-r--r--[email protected]_master/report-51f574.html930
-rw-r--r--[email protected]_master/report-5ca990.html3109
-rw-r--r--[email protected]_master/report-700105.html783
-rw-r--r--[email protected]_master/report-72fb5c.html1012
-rw-r--r--[email protected]_master/report-786db7.html616
-rw-r--r--[email protected]_master/report-7e6f54.html784
-rw-r--r--[email protected]_master/report-847847.html1000
-rw-r--r--[email protected]_master/report-85a45f.html3109
-rw-r--r--[email protected]_master/report-94b96e.html616
-rw-r--r--[email protected]_master/report-95d84d.html3109
-rw-r--r--[email protected]_master/report-97cb08.html776
-rw-r--r--[email protected]_master/report-a79cf7.html3109
-rw-r--r--[email protected]_master/report-a81462.html2213
-rw-r--r--[email protected]_master/report-a8c879.html469
-rw-r--r--[email protected]_master/report-ab0569.html1013
-rw-r--r--[email protected]_master/report-abc288.html2213
-rw-r--r--[email protected]_master/report-c226e4.html3109
-rw-r--r--[email protected]_master/report-c82975.html781
-rw-r--r--[email protected]_master/report-ccc9bf.html783
-rw-r--r--[email protected]_master/report-e3660e.html776
-rw-r--r--[email protected]_master/report-f65e4b.html637
-rw-r--r--[email protected]_master/report-fe7607.html1359
-rw-r--r--[email protected]_master/scanview.css62
-rw-r--r--[email protected]_master/sorttable.js492
-rw-r--r--[email protected]_master/0.html1338
-rw-r--r--[email protected]_master/1.html1144
-rw-r--r--[email protected]_master/10.html2266
-rw-r--r--[email protected]_master/11.html1614
-rw-r--r--[email protected]_master/12.html1174
-rw-r--r--[email protected]_master/13.html980
-rw-r--r--[email protected]_master/14.html944
-rw-r--r--[email protected]_master/15.html1568
-rw-r--r--[email protected]_master/16.html3516
-rw-r--r--[email protected]_master/17.html1352
-rw-r--r--[email protected]_master/18.html3904
-rw-r--r--[email protected]_master/19.html1852
-rw-r--r--[email protected]_master/2.html312
-rw-r--r--2020-12-[email protected]_master/20.html1660
-rw-r--r--[email protected]_master/21.html2886
-rw-r--r--[email protected]_master/22.html932
-rw-r--r--[email protected]_master/23.html5720
-rw-r--r--[email protected]_master/24.html2288
-rw-r--r--[email protected]_master/3.html2818
-rw-r--r--[email protected]_master/4.html1934
-rw-r--r--[email protected]_master/5.html2208
-rw-r--r--[email protected]_master/6.html1524
-rw-r--r--[email protected]_master/7.html424
-rw-r--r--[email protected]_master/8.html662
-rw-r--r--[email protected]_master/9.html1466
-rw-r--r--[email protected]_master/index.html202
-rw-r--r--[email protected]_master/stats.html125
-rw-r--r--[email protected]_master/style.css137
-rw-r--r--[email protected]_master/index.html230
-rw-r--r--[email protected]_master/report-00da99.html616
-rw-r--r--[email protected]_master/report-120596.html616
-rw-r--r--[email protected]_master/report-214b46.html783
-rw-r--r--[email protected]_master/report-2153bd.html2213
-rw-r--r--[email protected]_master/report-321819.html930
-rw-r--r--[email protected]_master/report-373fc1.html3109
-rw-r--r--[email protected]_master/report-3ef429.html1372
-rw-r--r--[email protected]_master/report-462c36.html3109
-rw-r--r--[email protected]_master/report-4d7437.html781
-rw-r--r--[email protected]_master/report-544142.html637
-rw-r--r--[email protected]_master/report-5f84de.html637
-rw-r--r--[email protected]_master/report-607f96.html3109
-rw-r--r--[email protected]_master/report-60cd6c.html784
-rw-r--r--[email protected]_master/report-65e439.html3109
-rw-r--r--[email protected]_master/report-66428f.html781
-rw-r--r--[email protected]_master/report-7ef764.html616
-rw-r--r--[email protected]_master/report-888e23.html783
-rw-r--r--[email protected]_master/report-8df374.html1359
-rw-r--r--[email protected]_master/report-92d4b7.html2213
-rw-r--r--[email protected]_master/report-962fa8.html469
-rw-r--r--[email protected]_master/report-9b729d.html3109
-rw-r--r--[email protected]_master/report-9d9dfd.html2013
-rw-r--r--[email protected]_master/report-a4842b.html1000
-rw-r--r--[email protected]_master/report-a5fdc5.html616
-rw-r--r--[email protected]_master/report-aaabf2.html1013
-rw-r--r--[email protected]_master/report-aae78f.html776
-rw-r--r--[email protected]_master/report-ab3404.html2213
-rw-r--r--[email protected]_master/report-acbd9c.html1372
-rw-r--r--[email protected]_master/report-b970a8.html1359
-rw-r--r--[email protected]_master/report-b9c891.html2013
-rw-r--r--[email protected]_master/report-bd2fb6.html3109
-rw-r--r--[email protected]_master/report-c567e2.html1013
-rw-r--r--[email protected]_master/report-c8ed7d.html3109
-rw-r--r--[email protected]_master/report-cbd8c8.html3109
-rw-r--r--[email protected]_master/report-cc789d.html776
-rw-r--r--[email protected]_master/report-e56421.html930
-rw-r--r--[email protected]_master/report-ee710c.html1012
-rw-r--r--[email protected]_master/report-f040ca.html2213
-rw-r--r--[email protected]_master/report-f62e89.html1012
-rw-r--r--[email protected]_master/report-f7ebd2.html469
-rw-r--r--[email protected]_master/report-fe9339.html1372
-rw-r--r--[email protected]_master/report-fefab6.html1372
-rw-r--r--[email protected]_master/report-fffa3f.html784
-rw-r--r--[email protected]_master/scanview.css62
-rw-r--r--[email protected]_master/sorttable.js492
-rw-r--r--[email protected]_master/0.html1338
-rw-r--r--[email protected]_master/1.html1144
-rw-r--r--[email protected]_master/10.html2266
-rw-r--r--[email protected]_master/11.html1614
-rw-r--r--[email protected]_master/12.html1174
-rw-r--r--[email protected]_master/13.html980
-rw-r--r--[email protected]_master/14.html944
-rw-r--r--[email protected]_master/15.html1568
-rw-r--r--[email protected]_master/16.html3516
-rw-r--r--[email protected]_master/17.html1352
-rw-r--r--[email protected]_master/18.html3904
-rw-r--r--[email protected]_master/19.html1852
-rw-r--r--[email protected]_master/2.html312
-rw-r--r--[email protected]_master/20.html1660
-rw-r--r--[email protected]_master/21.html2886
-rw-r--r--[email protected]_master/22.html932
-rw-r--r--[email protected]_master/23.html5720
-rw-r--r--[email protected]_master/24.html2288
-rw-r--r--[email protected]_master/3.html2818
-rw-r--r--[email protected]_master/4.html1934
-rw-r--r--[email protected]_master/5.html2208
-rw-r--r--[email protected]_master/6.html1524
-rw-r--r--[email protected]_master/7.html424
-rw-r--r--[email protected]_master/8.html662
-rw-r--r--[email protected]_master/9.html1466
-rw-r--r--[email protected]_master/index.html202
-rw-r--r--[email protected]_master/stats.html125
-rw-r--r--[email protected]_master/style.css137
-rw-r--r--[email protected]_shadow/index.html230
-rw-r--r--[email protected]_shadow/report-068d69.html930
-rw-r--r--[email protected]_shadow/report-0b7548.html3109
-rw-r--r--[email protected]_shadow/report-0bfb4f.html2213
-rw-r--r--[email protected]_shadow/report-0ee4a8.html1013
-rw-r--r--[email protected]_shadow/report-145b41.html776
-rw-r--r--[email protected]_shadow/report-279efc.html3109
-rw-r--r--[email protected]_shadow/report-2f30d9.html3109
-rw-r--r--[email protected]_shadow/report-32ac62.html781
-rw-r--r--[email protected]_shadow/report-334daa.html1373
-rw-r--r--[email protected]_shadow/report-3d997f.html469
-rw-r--r--[email protected]_shadow/report-42900c.html616
-rw-r--r--[email protected]_shadow/report-47530a.html1360
-rw-r--r--[email protected]_shadow/report-4d6bde.html2213
-rw-r--r--[email protected]_shadow/report-57e7f5.html784
-rw-r--r--[email protected]_shadow/report-5a2b12.html637
-rw-r--r--[email protected]_shadow/report-5fb058.html1012
-rw-r--r--[email protected]_shadow/report-62f509.html2013
-rw-r--r--[email protected]_shadow/report-68a3ac.html3109
-rw-r--r--[email protected]_shadow/report-85c689.html616
-rw-r--r--[email protected]_shadow/report-8689a4.html3109
-rw-r--r--[email protected]_shadow/report-876cca.html1373
-rw-r--r--[email protected]_shadow/report-8ed460.html776
-rw-r--r--[email protected]_shadow/report-9156e7.html930
-rw-r--r--[email protected]_shadow/report-96c3a3.html3109
-rw-r--r--[email protected]_shadow/report-a0de0b.html2213
-rw-r--r--[email protected]_shadow/report-a5587b.html1012
-rw-r--r--[email protected]_shadow/report-a6e1e5.html616
-rw-r--r--[email protected]_shadow/report-aa4bd9.html3109
-rw-r--r--[email protected]_shadow/report-abff53.html783
-rw-r--r--[email protected]_shadow/report-adf163.html3109
-rw-r--r--[email protected]_shadow/report-b6ca9f.html1373
-rw-r--r--[email protected]_shadow/report-ba99a4.html2213
-rw-r--r--[email protected]_shadow/report-c173ce.html1373
-rw-r--r--[email protected]_shadow/report-c8e17b.html1360
-rw-r--r--[email protected]_shadow/report-ca29c6.html783
-rw-r--r--[email protected]_shadow/report-d69b1e.html784
-rw-r--r--[email protected]_shadow/report-dd0294.html469
-rw-r--r--[email protected]_shadow/report-df858d.html616
-rw-r--r--[email protected]_shadow/report-dfaa21.html637
-rw-r--r--[email protected]_shadow/report-e1a7e6.html2013
-rw-r--r--[email protected]_shadow/report-e96f72.html781
-rw-r--r--[email protected]_shadow/report-f94a7b.html1013
-rw-r--r--[email protected]_shadow/report-f9595d.html1000
-rw-r--r--[email protected]_shadow/scanview.css62
-rw-r--r--[email protected]_shadow/sorttable.js492
-rw-r--r--[email protected]_shadow/0.html1338
-rw-r--r--[email protected]_shadow/1.html1144
-rw-r--r--[email protected]_shadow/10.html2266
-rw-r--r--[email protected]_shadow/11.html1614
-rw-r--r--[email protected]_shadow/12.html1174
-rw-r--r--[email protected]_shadow/13.html980
-rw-r--r--[email protected]_shadow/14.html944
-rw-r--r--[email protected]_shadow/15.html1572
-rw-r--r--[email protected]_shadow/16.html3516
-rw-r--r--[email protected]_shadow/17.html3904
-rw-r--r--[email protected]_shadow/18.html1852
-rw-r--r--[email protected]_shadow/19.html1660
-rw-r--r--[email protected]_shadow/2.html312
-rw-r--r--[email protected]_shadow/20.html2886
-rw-r--r--[email protected]_shadow/21.html932
-rw-r--r--[email protected]_shadow/22.html5720
-rw-r--r--[email protected]_shadow/23.html2288
-rw-r--r--[email protected]_shadow/3.html2818
-rw-r--r--[email protected]_shadow/4.html1934
-rw-r--r--[email protected]_shadow/5.html2210
-rw-r--r--[email protected]_shadow/6.html1524
-rw-r--r--[email protected]_shadow/7.html424
-rw-r--r--[email protected]_shadow/8.html662
-rw-r--r--[email protected]_shadow/9.html1466
-rw-r--r--[email protected]_shadow/index.html192
-rw-r--r--[email protected]_shadow/stats.html125
-rw-r--r--[email protected]_shadow/style.css137
-rw-r--r--[email protected]_master/index.html230
-rw-r--r--[email protected]f27_master/report-108433.html3109
-rw-r--r--[email protected]_master/report-1be3af.html2213
-rw-r--r--[email protected]_master/report-224398.html469
-rw-r--r--[email protected]_master/report-279b6f.html783
-rw-r--r--[email protected]_master/report-2e173d.html616
-rw-r--r--[email protected]_master/report-32dc21.html3109
-rw-r--r--[email protected]_master/report-355f6c.html1360
-rw-r--r--[email protected]_master/report-37edbd.html1373
-rw-r--r--[email protected]_master/report-385191.html3109
-rw-r--r--[email protected]_master/report-40b9e2.html781
-rw-r--r--[email protected]_master/report-42969a.html2213
-rw-r--r--[email protected]_master/report-43df28.html784
-rw-r--r--[email protected]_master/report-45a02e.html1013
-rw-r--r--[email protected]_master/report-45b21c.html469
-rw-r--r--[email protected]_master/report-4677dc.html3109
-rw-r--r--[email protected]_master/report-48b152.html3109
-rw-r--r--[email protected]_master/report-49dc37.html2213
-rw-r--r--[email protected]_master/report-4fd865.html776
-rw-r--r--[email protected]_master/report-536889.html1000
-rw-r--r--[email protected]_master/report-5988e4.html2213
-rw-r--r--[email protected]_master/report-5cf061.html1013
-rw-r--r--[email protected]_master/report-681094.html2013
-rw-r--r--[email protected]_master/report-6bd945.html1373
-rw-r--r--[email protected]_master/report-6fd5ec.html637
-rw-r--r--[email protected]_master/report-768d4d.html3109
-rw-r--r--[email protected]_master/report-7c5507.html616
-rw-r--r--[email protected]_master/report-809d5b.html776
-rw-r--r--[email protected]_master/report-830c87.html637
-rw-r--r--[email protected]_master/report-838e87.html616
-rw-r--r--[email protected]_master/report-869a9b.html930
-rw-r--r--[email protected]_master/report-87f5b0.html616
-rw-r--r--[email protected]_master/report-8b00a7.html781
-rw-r--r--[email protected]_master/report-91696d.html784
-rw-r--r--[email protected]_master/report-b62b5e.html783
-rw-r--r--[email protected]_master/report-bfcdf3.html3109
-rw-r--r--[email protected]_master/report-c0d43d.html3109
-rw-r--r--[email protected]_master/report-c4dc7c.html930
-rw-r--r--[email protected]_master/report-d48794.html2013
-rw-r--r--[email protected]_master/report-e53224.html1012
-rw-r--r--[email protected]_master/report-e98028.html1360
-rw-r--r--[email protected]_master/report-ed47ee.html1373
-rw-r--r--[email protected]_master/report-f33795.html1012
-rw-r--r--[email protected]_master/report-fd01f3.html1373
-rw-r--r--[email protected]_master/scanview.css62
-rw-r--r--[email protected]_master/sorttable.js492
-rw-r--r--[email protected]_master/0.html1338
-rw-r--r--[email protected]_master/1.html1144
-rw-r--r--[email protected]_master/10.html2266
-rw-r--r--[email protected]_master/11.html1614
-rw-r--r--[email protected]_master/12.html1174
-rw-r--r--[email protected]_master/13.html980
-rw-r--r--[email protected]_master/14.html944
-rw-r--r--[email protected]_master/15.html1572
-rw-r--r--[email protected]_master/16.html3516
-rw-r--r--[email protected]_master/17.html3904
-rw-r--r--[email protected]_master/18.html1852
-rw-r--r--[email protected]_master/19.html1660
-rw-r--r--[email protected]_master/2.html312
-rw-r--r--[email protected]_master/20.html2886
-rw-r--r--[email protected]_master/21.html932
-rw-r--r--[email protected]_master/22.html5720
-rw-r--r--[email protected]_master/23.html2288
-rw-r--r--[email protected]_master/3.html2818
-rw-r--r--[email protected]_master/4.html1934
-rw-r--r--[email protected]_master/5.html2210
-rw-r--r--[email protected]79f27_master/6.html1524
-rw-r--r--[email protected]_master/7.html424
-rw-r--r--[email protected]_master/8.html662
-rw-r--r--[email protected]_master/9.html1466
-rw-r--r--[email protected]_master/index.html192
-rw-r--r--[email protected]_master/stats.html125
-rw-r--r--[email protected]_master/style.css137
-rw-r--r--CNAME1
-rw-r--r--index.html47
740 files changed, 1112618 insertions, 0 deletions
diff --git a/[email protected]_USE_MATE2_MACROS/index.html b/[email protected]_USE_MATE2_MACROS/index.html
new file mode 100644
index 0000000..24e0ae6
--- /dev/null
+++ b/[email protected]_USE_MATE2_MACROS/index.html
@@ -0,0 +1,230 @@
+<html>
+<head>
+<title>rootdir - scan-build results</title>
+<link type="text/css" rel="stylesheet" href="scanview.css"/>
+<script src="sorttable.js"></script>
+<script language='javascript' type="text/javascript">
+function SetDisplay(RowClass, DisplayVal)
+{
+ var Rows = document.getElementsByTagName("tr");
+ for ( var i = 0 ; i < Rows.length; ++i ) {
+ if (Rows[i].className == RowClass) {
+ Rows[i].style.display = DisplayVal;
+ }
+ }
+}
+
+function CopyCheckedStateToCheckButtons(SummaryCheckButton) {
+ var Inputs = document.getElementsByTagName("input");
+ for ( var i = 0 ; i < Inputs.length; ++i ) {
+ if (Inputs[i].type == "checkbox") {
+ if(Inputs[i] != SummaryCheckButton) {
+ Inputs[i].checked = SummaryCheckButton.checked;
+ Inputs[i].onclick();
+ }
+ }
+ }
+}
+
+function returnObjById( id ) {
+ if (document.getElementById)
+ var returnVar = document.getElementById(id);
+ else if (document.all)
+ var returnVar = document.all[id];
+ else if (document.layers)
+ var returnVar = document.layers[id];
+ return returnVar;
+}
+
+var NumUnchecked = 0;
+
+function ToggleDisplay(CheckButton, ClassName) {
+ if (CheckButton.checked) {
+ SetDisplay(ClassName, "");
+ if (--NumUnchecked == 0) {
+ returnObjById("AllBugsCheck").checked = true;
+ }
+ }
+ else {
+ SetDisplay(ClassName, "none");
+ NumUnchecked++;
+ returnObjById("AllBugsCheck").checked = false;
+ }
+}
+</script>
+<!-- SUMMARYENDHEAD -->
+</head>
+<body>
+<h1>rootdir - scan-build results</h1>
+
+<table>
+<tr><th>User:</th><td>[email protected]</td></tr>
+<tr><th>Working Directory:</th><td>/rootdir</td></tr>
+<tr><th>Command Line:</th><td>make -j 2</td></tr>
+<tr><th>Clang Version:</th><td>clang version 11.0.0 (Fedora 11.0.0-2.fc33)
+</td></tr>
+<tr><th>Date:</th><td>Tue Nov 17 05:05:38 2020</td></tr>
+</table>
+<h2>Bug Summary</h2><table>
+<thead><tr><td>Bug Type</td><td>Quantity</td><td class="sorttable_nosort">Display?</td></tr></thead>
+<tr style="font-weight:bold"><td class="SUMM_DESC">All Bugs</td><td class="Q">43</td><td><center><input type="checkbox" id="AllBugsCheck" onClick="CopyCheckedStateToCheckButtons(this);" checked/></center></td></tr>
+<tr><th>Dead code</th><th colspan=2></th></tr>
+<tr><td class="SUMM_DESC">Unreachable code</td><td class="Q">7</td><td><center><input type="checkbox" onClick="ToggleDisplay(this,'bt_dead_code_unreachable_code');" checked/></center></td></tr>
+<tr><th>Dead store</th><th colspan=2></th></tr>
+<tr><td class="SUMM_DESC">Dead assignment</td><td class="Q">6</td><td><center><input type="checkbox" onClick="ToggleDisplay(this,'bt_dead_store_dead_assignment');" checked/></center></td></tr>
+<tr><td class="SUMM_DESC">Dead nested assignment</td><td class="Q">4</td><td><center><input type="checkbox" onClick="ToggleDisplay(this,'bt_dead_store_dead_nested_assignment');" checked/></center></td></tr>
+<tr><th>Logic error</th><th colspan=2></th></tr>
+<tr><td class="SUMM_DESC">Assigned value is garbage or undefined</td><td class="Q">2</td><td><center><input type="checkbox" onClick="ToggleDisplay(this,'bt_logic_error_assigned_value_is_garbage_or_undefined');" checked/></center></td></tr>
+<tr><td class="SUMM_DESC">Cast from non-struct type to struct type</td><td class="Q">8</td><td><center><input type="checkbox" onClick="ToggleDisplay(this,'bt_logic_error_cast_from_non-struct_type_to_struct_type');" checked/></center></td></tr>
+<tr><td class="SUMM_DESC">Division by zero</td><td class="Q">4</td><td><center><input type="checkbox" onClick="ToggleDisplay(this,'bt_logic_error_division_by_zero');" checked/></center></td></tr>
+<tr><td class="SUMM_DESC">Out-of-bound access</td><td class="Q">10</td><td><center><input type="checkbox" onClick="ToggleDisplay(this,'bt_logic_error_out-of-bound_access');" checked/></center></td></tr>
+<tr><th>Unix API</th><th colspan=2></th></tr>
+<tr><td class="SUMM_DESC">malloc() size overflow</td><td class="Q">2</td><td><center><input type="checkbox" onClick="ToggleDisplay(this,'bt_unix_api_malloc_size_overflow');" checked/></center></td></tr>
+</table>
+<h2>Reports</h2>
+
+<table class="sortable" style="table-layout:automatic">
+<thead><tr>
+ <td>Bug Group</td>
+ <td class="sorttable_sorted">Bug Type<span id="sorttable_sortfwdind">&nbsp;&#x25BE;</span></td>
+ <td>File</td>
+ <td>Function/Method</td>
+ <td class="Q">Line</td>
+ <td class="Q">Path Length</td>
+ <td class="sorttable_nosort"></td>
+ <!-- REPORTBUGCOL -->
+</tr></thead>
+<tbody>
+<tr class="bt_logic_error_assigned_value_is_garbage_or_undefined"><td class="DESC">Logic error</td><td class="DESC">Assigned value is garbage or undefined</td><td>plugins/xsettings/xsettings-common.c</td><td class="DESC">xsettings_list_free</td><td class="Q">162</td><td class="Q">24</td><td><a href="report-10bd95.html#EndPath">View Report</a></td>
+<!-- REPORTBUG id="report-10bd95.html" -->
+</tr>
+<tr class="bt_logic_error_assigned_value_is_garbage_or_undefined"><td class="DESC">Logic error</td><td class="DESC">Assigned value is garbage or undefined</td><td>plugins/xsettings/xsettings-common.c</td><td class="DESC">xsettings_list_free</td><td class="Q">162</td><td class="Q">24</td><td><a href="report-90fd1f.html#EndPath">View Report</a></td>
+<!-- REPORTBUG id="report-90fd1f.html" -->
+</tr>
+<tr class="bt_logic_error_cast_from_non-struct_type_to_struct_type"><td class="DESC">Logic error</td><td class="DESC">Cast from non-struct type to struct type</td><td>plugins/clipboard/xutils.c</td><td class="DESC">timestamp_predicate</td><td class="Q">87</td><td class="Q">1</td><td><a href="report-03eb16.html#EndPath">View Report</a></td>
+<!-- REPORTBUG id="report-03eb16.html" -->
+</tr>
+<tr class="bt_logic_error_cast_from_non-struct_type_to_struct_type"><td class="DESC">Logic error</td><td class="DESC">Cast from non-struct type to struct type</td><td>plugins/mouse/msd-mouse-manager.c</td><td class="DESC">set_motion_legacy_driver</td><td class="Q">689</td><td class="Q">1</td><td><a href="report-1f92cb.html#EndPath">View Report</a></td>
+<!-- REPORTBUG id="report-1f92cb.html" -->
+</tr>
+<tr class="bt_logic_error_cast_from_non-struct_type_to_struct_type"><td class="DESC">Logic error</td><td class="DESC">Cast from non-struct type to struct type</td><td>plugins/xsettings/xsettings-manager.c</td><td class="DESC">timestamp_predicate</td><td class="Q">61</td><td class="Q">1</td><td><a href="report-4517ca.html#EndPath">View Report</a></td>
+<!-- REPORTBUG id="report-4517ca.html" -->
+</tr>
+<tr class="bt_logic_error_cast_from_non-struct_type_to_struct_type"><td class="DESC">Logic error</td><td class="DESC">Cast from non-struct type to struct type</td><td>plugins/mouse/msd-mouse-manager.c</td><td class="DESC">xinput_device_has_buttons</td><td class="Q">206</td><td class="Q">1</td><td><a href="report-674e03.html#EndPath">View Report</a></td>
+<!-- REPORTBUG id="report-674e03.html" -->
+</tr>
+<tr class="bt_logic_error_cast_from_non-struct_type_to_struct_type"><td class="DESC">Logic error</td><td class="DESC">Cast from non-struct type to struct type</td><td>plugins/mouse/msd-mouse-manager.c</td><td class="DESC">set_motion_legacy_driver</td><td class="Q">689</td><td class="Q">1</td><td><a href="report-698d22.html#EndPath">View Report</a></td>
+<!-- REPORTBUG id="report-698d22.html" -->
+</tr>
+<tr class="bt_logic_error_cast_from_non-struct_type_to_struct_type"><td class="DESC">Logic error</td><td class="DESC">Cast from non-struct type to struct type</td><td>plugins/clipboard/xutils.c</td><td class="DESC">timestamp_predicate</td><td class="Q">87</td><td class="Q">1</td><td><a href="report-738d15.html#EndPath">View Report</a></td>
+<!-- REPORTBUG id="report-738d15.html" -->
+</tr>
+<tr class="bt_logic_error_cast_from_non-struct_type_to_struct_type"><td class="DESC">Logic error</td><td class="DESC">Cast from non-struct type to struct type</td><td>plugins/xsettings/xsettings-manager.c</td><td class="DESC">timestamp_predicate</td><td class="Q">61</td><td class="Q">1</td><td><a href="report-b1b4dd.html#EndPath">View Report</a></td>
+<!-- REPORTBUG id="report-b1b4dd.html" -->
+</tr>
+<tr class="bt_logic_error_cast_from_non-struct_type_to_struct_type"><td class="DESC">Logic error</td><td class="DESC">Cast from non-struct type to struct type</td><td>plugins/mouse/msd-mouse-manager.c</td><td class="DESC">xinput_device_has_buttons</td><td class="Q">206</td><td class="Q">1</td><td><a href="report-d1b275.html#EndPath">View Report</a></td>
+<!-- REPORTBUG id="report-d1b275.html" -->
+</tr>
+<tr class="bt_dead_store_dead_assignment"><td class="DESC">Dead store</td><td class="DESC">Dead assignment</td><td>plugins/xrandr/msd-xrandr-manager.c</td><td class="DESC">find_best_mode</td><td class="Q">815</td><td class="Q">1</td><td><a href="report-0bd1b6.html#EndPath">View Report</a></td>
+<!-- REPORTBUG id="report-0bd1b6.html" -->
+</tr>
+<tr class="bt_dead_store_dead_assignment"><td class="DESC">Dead store</td><td class="DESC">Dead assignment</td><td>plugins/xrandr/msd-xrandr-manager.c</td><td class="DESC">find_best_mode</td><td class="Q">816</td><td class="Q">1</td><td><a href="report-107291.html#EndPath">View Report</a></td>
+<!-- REPORTBUG id="report-107291.html" -->
+</tr>
+<tr class="bt_dead_store_dead_assignment"><td class="DESC">Dead store</td><td class="DESC">Dead assignment</td><td>plugins/media-keys/msd-media-keys-manager.c</td><td class="DESC">do_eject_action</td><td class="Q">603</td><td class="Q">1</td><td><a href="report-151382.html#EndPath">View Report</a></td>
+<!-- REPORTBUG id="report-151382.html" -->
+</tr>
+<tr class="bt_dead_store_dead_assignment"><td class="DESC">Dead store</td><td class="DESC">Dead assignment</td><td>plugins/xrandr/msd-xrandr-manager.c</td><td class="DESC">find_best_mode</td><td class="Q">816</td><td class="Q">1</td><td><a href="report-2d1351.html#EndPath">View Report</a></td>
+<!-- REPORTBUG id="report-2d1351.html" -->
+</tr>
+<tr class="bt_dead_store_dead_assignment"><td class="DESC">Dead store</td><td class="DESC">Dead assignment</td><td>plugins/media-keys/msd-media-keys-manager.c</td><td class="DESC">do_eject_action</td><td class="Q">603</td><td class="Q">1</td><td><a href="report-8ad431.html#EndPath">View Report</a></td>
+<!-- REPORTBUG id="report-8ad431.html" -->
+</tr>
+<tr class="bt_dead_store_dead_assignment"><td class="DESC">Dead store</td><td class="DESC">Dead assignment</td><td>plugins/xrandr/msd-xrandr-manager.c</td><td class="DESC">find_best_mode</td><td class="Q">815</td><td class="Q">1</td><td><a href="report-f77251.html#EndPath">View Report</a></td>
+<!-- REPORTBUG id="report-f77251.html" -->
+</tr>
+<tr class="bt_dead_store_dead_nested_assignment"><td class="DESC">Dead store</td><td class="DESC">Dead nested assignment</td><td>plugins/xrandr/msd-xrandr-manager.c</td><td class="DESC">find_best_mode</td><td class="Q">800</td><td class="Q">1</td><td><a href="report-079a94.html#EndPath">View Report</a></td>
+<!-- REPORTBUG id="report-079a94.html" -->
+</tr>
+<tr class="bt_dead_store_dead_nested_assignment"><td class="DESC">Dead store</td><td class="DESC">Dead nested assignment</td><td>plugins/xrandr/msd-xrandr-manager.c</td><td class="DESC">find_best_mode</td><td class="Q">800</td><td class="Q">1</td><td><a href="report-2d0f85.html#EndPath">View Report</a></td>
+<!-- REPORTBUG id="report-2d0f85.html" -->
+</tr>
+<tr class="bt_dead_store_dead_nested_assignment"><td class="DESC">Dead store</td><td class="DESC">Dead nested assignment</td><td>plugins/xrandr/msd-xrandr-manager.c</td><td class="DESC">find_best_mode</td><td class="Q">800</td><td class="Q">1</td><td><a href="report-7cfa51.html#EndPath">View Report</a></td>
+<!-- REPORTBUG id="report-7cfa51.html" -->
+</tr>
+<tr class="bt_dead_store_dead_nested_assignment"><td class="DESC">Dead store</td><td class="DESC">Dead nested assignment</td><td>plugins/xrandr/msd-xrandr-manager.c</td><td class="DESC">find_best_mode</td><td class="Q">800</td><td class="Q">1</td><td><a href="report-a5873d.html#EndPath">View Report</a></td>
+<!-- REPORTBUG id="report-a5873d.html" -->
+</tr>
+<tr class="bt_logic_error_division_by_zero"><td class="DESC">Logic error</td><td class="DESC">Division by zero</td><td>plugins/clipboard/msd-clipboard-manager.c</td><td class="DESC">convert_clipboard_target</td><td class="Q">539</td><td class="Q">14</td><td><a href="report-16d941.html#EndPath">View Report</a></td>
+<!-- REPORTBUG id="report-16d941.html" -->
+</tr>
+<tr class="bt_logic_error_division_by_zero"><td class="DESC">Logic error</td><td class="DESC">Division by zero</td><td>plugins/clipboard/msd-clipboard-manager.c</td><td class="DESC">convert_clipboard_target</td><td class="Q">539</td><td class="Q">14</td><td><a href="report-60d044.html#EndPath">View Report</a></td>
+<!-- REPORTBUG id="report-60d044.html" -->
+</tr>
+<tr class="bt_logic_error_division_by_zero"><td class="DESC">Logic error</td><td class="DESC">Division by zero</td><td>plugins/clipboard/msd-clipboard-manager.c</td><td class="DESC">send_incrementally</td><td class="Q">384</td><td class="Q">14</td><td><a href="report-8bc4dd.html#EndPath">View Report</a></td>
+<!-- REPORTBUG id="report-8bc4dd.html" -->
+</tr>
+<tr class="bt_logic_error_division_by_zero"><td class="DESC">Logic error</td><td class="DESC">Division by zero</td><td>plugins/clipboard/msd-clipboard-manager.c</td><td class="DESC">send_incrementally</td><td class="Q">384</td><td class="Q">14</td><td><a href="report-d0fb65.html#EndPath">View Report</a></td>
+<!-- REPORTBUG id="report-d0fb65.html" -->
+</tr>
+<tr class="bt_logic_error_out-of-bound_access"><td class="DESC">Logic error</td><td class="DESC">Out-of-bound access</td><td>plugins/xsettings/xsettings-manager.c</td><td class="DESC">setting_store</td><td class="Q">341</td><td class="Q">9</td><td><a href="report-1137b1.html#EndPath">View Report</a></td>
+<!-- REPORTBUG id="report-1137b1.html" -->
+</tr>
+<tr class="bt_logic_error_out-of-bound_access"><td class="DESC">Logic error</td><td class="DESC">Out-of-bound access</td><td>plugins/xsettings/xsettings-manager.c</td><td class="DESC">setting_store</td><td class="Q">327</td><td class="Q">8</td><td><a href="report-8e4c02.html#EndPath">View Report</a></td>
+<!-- REPORTBUG id="report-8e4c02.html" -->
+</tr>
+<tr class="bt_logic_error_out-of-bound_access"><td class="DESC">Logic error</td><td class="DESC">Out-of-bound access</td><td>plugins/keybindings/msd-keybindings-manager.c</td><td class="DESC">get_exec_environment</td><td class="Q">436</td><td class="Q">30</td><td><a href="report-a0ed6a.html#EndPath">View Report</a></td>
+<!-- REPORTBUG id="report-a0ed6a.html" -->
+</tr>
+<tr class="bt_logic_error_out-of-bound_access"><td class="DESC">Logic error</td><td class="DESC">Out-of-bound access</td><td>plugins/xsettings/xsettings-manager.c</td><td class="DESC">setting_store</td><td class="Q">327</td><td class="Q">6</td><td><a href="report-c1363c.html#EndPath">View Report</a></td>
+<!-- REPORTBUG id="report-c1363c.html" -->
+</tr>
+<tr class="bt_logic_error_out-of-bound_access"><td class="DESC">Logic error</td><td class="DESC">Out-of-bound access</td><td>plugins/xsettings/xsettings-manager.c</td><td class="DESC">setting_store</td><td class="Q">341</td><td class="Q">9</td><td><a href="report-cec444.html#EndPath">View Report</a></td>
+<!-- REPORTBUG id="report-cec444.html" -->
+</tr>
+<tr class="bt_logic_error_out-of-bound_access"><td class="DESC">Logic error</td><td class="DESC">Out-of-bound access</td><td>plugins/xsettings/xsettings-manager.c</td><td class="DESC">setting_store</td><td class="Q">327</td><td class="Q">8</td><td><a href="report-dd95e2.html#EndPath">View Report</a></td>
+<!-- REPORTBUG id="report-dd95e2.html" -->
+</tr>
+<tr class="bt_logic_error_out-of-bound_access"><td class="DESC">Logic error</td><td class="DESC">Out-of-bound access</td><td>plugins/keybindings/msd-keybindings-manager.c</td><td class="DESC">get_exec_environment</td><td class="Q">432</td><td class="Q">32</td><td><a href="report-ddf2bb.html#EndPath">View Report</a></td>
+<!-- REPORTBUG id="report-ddf2bb.html" -->
+</tr>
+<tr class="bt_logic_error_out-of-bound_access"><td class="DESC">Logic error</td><td class="DESC">Out-of-bound access</td><td>plugins/keybindings/msd-keybindings-manager.c</td><td class="DESC">get_exec_environment</td><td class="Q">436</td><td class="Q">30</td><td><a href="report-ea73c2.html#EndPath">View Report</a></td>
+<!-- REPORTBUG id="report-ea73c2.html" -->
+</tr>
+<tr class="bt_logic_error_out-of-bound_access"><td class="DESC">Logic error</td><td class="DESC">Out-of-bound access</td><td>plugins/xsettings/xsettings-manager.c</td><td class="DESC">setting_store</td><td class="Q">327</td><td class="Q">6</td><td><a href="report-eb49da.html#EndPath">View Report</a></td>
+<!-- REPORTBUG id="report-eb49da.html" -->
+</tr>
+<tr class="bt_logic_error_out-of-bound_access"><td class="DESC">Logic error</td><td class="DESC">Out-of-bound access</td><td>plugins/keybindings/msd-keybindings-manager.c</td><td class="DESC">get_exec_environment</td><td class="Q">432</td><td class="Q">32</td><td><a href="report-f35766.html#EndPath">View Report</a></td>
+<!-- REPORTBUG id="report-f35766.html" -->
+</tr>
+<tr class="bt_dead_code_unreachable_code"><td class="DESC">Dead code</td><td class="DESC">Unreachable code</td><td>plugins/datetime/msd-datetime-mechanism.c</td><td class="DESC">do_exit</td><td class="Q">52</td><td class="Q">1</td><td><a href="report-1342cb.html#EndPath">View Report</a></td>
+<!-- REPORTBUG id="report-1342cb.html" -->
+</tr>
+<tr class="bt_dead_code_unreachable_code"><td class="DESC">Dead code</td><td class="DESC">Unreachable code</td><td>mate-settings-daemon/main.c</td><td class="DESC">main</td><td class="Q">550</td><td class="Q">1</td><td><a href="report-36aa98.html#EndPath">View Report</a></td>
+<!-- REPORTBUG id="report-36aa98.html" -->
+</tr>
+<tr class="bt_dead_code_unreachable_code"><td class="DESC">Dead code</td><td class="DESC">Unreachable code</td><td>plugins/xsettings/xsettings-common.c</td><td class="DESC">xsettings_byte_order</td><td class="Q">263</td><td class="Q">1</td><td><a href="report-588639.html#EndPath">View Report</a></td>
+<!-- REPORTBUG id="report-588639.html" -->
+</tr>
+<tr class="bt_dead_code_unreachable_code"><td class="DESC">Dead code</td><td class="DESC">Unreachable code</td><td>plugins/xsettings/xsettings-common.c</td><td class="DESC">xsettings_byte_order</td><td class="Q">263</td><td class="Q">1</td><td><a href="report-7f5640.html#EndPath">View Report</a></td>
+<!-- REPORTBUG id="report-7f5640.html" -->
+</tr>
+<tr class="bt_dead_code_unreachable_code"><td class="DESC">Dead code</td><td class="DESC">Unreachable code</td><td>plugins/xsettings/xsettings-common.c</td><td class="DESC">xsettings_setting_equal</td><td class="Q">142</td><td class="Q">1</td><td><a href="report-ca4621.html#EndPath">View Report</a></td>
+<!-- REPORTBUG id="report-ca4621.html" -->
+</tr>
+<tr class="bt_dead_code_unreachable_code"><td class="DESC">Dead code</td><td class="DESC">Unreachable code</td><td>mate-settings-daemon/main.c</td><td class="DESC">main</td><td class="Q">489</td><td class="Q">1</td><td><a href="report-d4dfba.html#EndPath">View Report</a></td>
+<!-- REPORTBUG id="report-d4dfba.html" -->
+</tr>
+<tr class="bt_dead_code_unreachable_code"><td class="DESC">Dead code</td><td class="DESC">Unreachable code</td><td>plugins/xsettings/xsettings-common.c</td><td class="DESC">xsettings_setting_equal</td><td class="Q">142</td><td class="Q">1</td><td><a href="report-ea7975.html#EndPath">View Report</a></td>
+<!-- REPORTBUG id="report-ea7975.html" -->
+</tr>
+<tr class="bt_unix_api_malloc_size_overflow"><td class="DESC">Unix API</td><td class="DESC">malloc() size overflow</td><td>plugins/clipboard/msd-clipboard-manager.c</td><td class="DESC">save_targets</td><td class="Q">205</td><td class="Q">1</td><td><a href="report-dc4b89.html#EndPath">View Report</a></td>
+<!-- REPORTBUG id="report-dc4b89.html" -->
+</tr>
+<tr class="bt_unix_api_malloc_size_overflow"><td class="DESC">Unix API</td><td class="DESC">malloc() size overflow</td><td>plugins/clipboard/msd-clipboard-manager.c</td><td class="DESC">save_targets</td><td class="Q">205</td><td class="Q">1</td><td><a href="report-e41687.html#EndPath">View Report</a></td>
+<!-- REPORTBUG id="report-e41687.html" -->
+</tr>
+</tbody>
+</table>
+
+</body></html>
diff --git a/[email protected]_USE_MATE2_MACROS/report-03eb16.html b/[email protected]_USE_MATE2_MACROS/report-03eb16.html
new file mode 100644
index 0000000..387e1d5
--- /dev/null
+++ b/[email protected]_USE_MATE2_MACROS/report-03eb16.html
@@ -0,0 +1,469 @@
+<!doctype html>
+<html>
+<head>
+<title>xutils.c</title>
+
+<style type="text/css">
+body { color:#000000; background-color:#ffffff }
+body { font-family:Helvetica, sans-serif; font-size:10pt }
+h1 { font-size:14pt }
+.FileName { margin-top: 5px; margin-bottom: 5px; display: inline; }
+.FileNav { margin-left: 5px; margin-right: 5px; display: inline; }
+.FileNav a { text-decoration:none; font-size: larger; }
+.divider { margin-top: 30px; margin-bottom: 30px; height: 15px; }
+.divider { background-color: gray; }
+.code { border-collapse:collapse; width:100%; }
+.code { font-family: "Monospace", monospace; font-size:10pt }
+.code { line-height: 1.2em }
+.comment { color: green; font-style: oblique }
+.keyword { color: blue }
+.string_literal { color: red }
+.directive { color: darkmagenta }
+
+/* Macros and variables could have pop-up notes hidden by default.
+ - Macro pop-up: expansion of the macro
+ - Variable pop-up: value (table) of the variable */
+.macro_popup, .variable_popup { display: none; }
+
+/* Pop-up appears on mouse-hover event. */
+.macro:hover .macro_popup, .variable:hover .variable_popup {
+ display: block;
+ padding: 2px;
+ -webkit-border-radius:5px;
+ -webkit-box-shadow:1px 1px 7px #000;
+ border-radius:5px;
+ box-shadow:1px 1px 7px #000;
+ position: absolute;
+ top: -1em;
+ left:10em;
+ z-index: 1
+}
+
+.macro_popup {
+ border: 2px solid red;
+ background-color:#FFF0F0;
+ font-weight: normal;
+}
+
+.variable_popup {
+ border: 2px solid blue;
+ background-color:#F0F0FF;
+ font-weight: bold;
+ font-family: Helvetica, sans-serif;
+ font-size: 9pt;
+}
+
+/* Pop-up notes needs a relative position as a base where they pops up. */
+.macro, .variable {
+ background-color: PaleGoldenRod;
+ position: relative;
+}
+.macro { color: DarkMagenta; }
+
+#tooltiphint {
+ position: fixed;
+ width: 50em;
+ margin-left: -25em;
+ left: 50%;
+ padding: 10px;
+ border: 1px solid #b0b0b0;
+ border-radius: 2px;
+ box-shadow: 1px 1px 7px black;
+ background-color: #c0c0c0;
+ z-index: 2;
+}
+
+.num { width:2.5em; padding-right:2ex; background-color:#eeeeee }
+.num { text-align:right; font-size:8pt }
+.num { color:#444444 }
+.line { padding-left: 1ex; border-left: 3px solid #ccc }
+.line { white-space: pre }
+.msg { -webkit-box-shadow:1px 1px 7px #000 }
+.msg { box-shadow:1px 1px 7px #000 }
+.msg { -webkit-border-radius:5px }
+.msg { border-radius:5px }
+.msg { font-family:Helvetica, sans-serif; font-size:8pt }
+.msg { float:left }
+.msg { padding:0.25em 1ex 0.25em 1ex }
+.msg { margin-top:10px; margin-bottom:10px }
+.msg { font-weight:bold }
+.msg { max-width:60em; word-wrap: break-word; white-space: pre-wrap }
+.msgT { padding:0x; spacing:0x }
+.msgEvent { background-color:#fff8b4; color:#000000 }
+.msgControl { background-color:#bbbbbb; color:#000000 }
+.msgNote { background-color:#ddeeff; color:#000000 }
+.mrange { background-color:#dfddf3 }
+.mrange { border-bottom:1px solid #6F9DBE }
+.PathIndex { font-weight: bold; padding:0px 5px; margin-right:5px; }
+.PathIndex { -webkit-border-radius:8px }
+.PathIndex { border-radius:8px }
+.PathIndexEvent { background-color:#bfba87 }
+.PathIndexControl { background-color:#8c8c8c }
+.PathIndexPopUp { background-color: #879abc; }
+.PathNav a { text-decoration:none; font-size: larger }
+.CodeInsertionHint { font-weight: bold; background-color: #10dd10 }
+.CodeRemovalHint { background-color:#de1010 }
+.CodeRemovalHint { border-bottom:1px solid #6F9DBE }
+.selected{ background-color:orange !important; }
+
+table.simpletable {
+ padding: 5px;
+ font-size:12pt;
+ margin:20px;
+ border-collapse: collapse; border-spacing: 0px;
+}
+td.rowname {
+ text-align: right;
+ vertical-align: top;
+ font-weight: bold;
+ color:#444444;
+ padding-right:2ex;
+}
+
+/* Hidden text. */
+input.spoilerhider + label {
+ cursor: pointer;
+ text-decoration: underline;
+ display: block;
+}
+input.spoilerhider {
+ display: none;
+}
+input.spoilerhider ~ .spoiler {
+ overflow: hidden;
+ margin: 10px auto 0;
+ height: 0;
+ opacity: 0;
+}
+input.spoilerhider:checked + label + .spoiler{
+ height: auto;
+ opacity: 1;
+}
+</style>
+</head>
+<body>
+<!-- BUGDESC Casting a non-structure type to a structure type and accessing a field can lead to memory access errors or data corruption -->
+
+<!-- BUGTYPE Cast from non-struct type to struct type -->
+
+<!-- BUGCATEGORY Logic error -->
+
+<!-- BUGFILE /rootdir/plugins/clipboard/xutils.c -->
+
+<!-- FILENAME xutils.c -->
+
+<!-- FUNCTIONNAME timestamp_predicate -->
+
+<!-- ISSUEHASHCONTENTOFLINEINCONTEXT de3178685e5dbf1ef6e3aaa54e44e5e7 -->
+
+<!-- BUGLINE 87 -->
+
+<!-- BUGCOLUMN 25 -->
+
+<!-- BUGPATHLENGTH 1 -->
+
+<!-- BUGMETAEND -->
+<!-- REPORTHEADER -->
+<h3>Bug Summary</h3>
+<table class="simpletable">
+<tr><td class="rowname">File:</td><td>plugins/clipboard/xutils.c</td></tr>
+<tr><td class="rowname">Warning:</td><td><a href="#EndPath">line 87, column 25</a><br />Casting a non-structure type to a structure type and accessing a field can lead to memory access errors or data corruption</td></tr>
+
+</table>
+<!-- REPORTSUMMARYEXTRA -->
+<h3>Annotated Source Code</h3>
+<p>Press <a href="#" onclick="toggleHelp(); return false;">'?'</a>
+ to see keyboard shortcuts</p>
+<input type="checkbox" class="spoilerhider" id="showinvocation" />
+<label for="showinvocation" >Show analyzer invocation</label>
+<div class="spoiler">clang -cc1 -cc1 -triple x86_64-unknown-linux-gnu -analyze -disable-free -disable-llvm-verifier -discard-value-names -main-file-name xutils.c -analyzer-store=region -analyzer-opt-analyze-nested-blocks -analyzer-checker=core -analyzer-checker=apiModeling -analyzer-checker=unix -analyzer-checker=deadcode -analyzer-checker=security.insecureAPI.UncheckedReturn -analyzer-checker=security.insecureAPI.getpw -analyzer-checker=security.insecureAPI.gets -analyzer-checker=security.insecureAPI.mktemp -analyzer-checker=security.insecureAPI.mkstemp -analyzer-checker=security.insecureAPI.vfork -analyzer-checker=nullability.NullPassedToNonnull -analyzer-checker=nullability.NullReturnedFromNonnull -analyzer-output plist -w -setup-static-analyzer -mrelocation-model pic -pic-level 2 -mframe-pointer=all -fmath-errno -fno-rounding-math -mconstructor-aliases -munwind-tables -target-cpu x86-64 -fno-split-dwarf-inlining -debugger-tuning=gdb -resource-dir /usr/lib64/clang/11.0.0 -D HAVE_CONFIG_H -I . -I ../.. -I ../../mate-settings-daemon -D MATE_SETTINGS_LOCALEDIR="/usr/share/locale" -I /usr/include/gtk-3.0 -I /usr/include/pango-1.0 -I /usr/include/glib-2.0 -I /usr/lib64/glib-2.0/include -I /usr/include/harfbuzz -I /usr/include/freetype2 -I /usr/include/libpng16 -I /usr/include/libmount -I /usr/include/blkid -I /usr/include/fribidi -I /usr/include/libxml2 -I /usr/include/cairo -I /usr/include/pixman-1 -I /usr/include/gdk-pixbuf-2.0 -I /usr/include/gio-unix-2.0 -I /usr/include/atk-1.0 -I /usr/include/at-spi2-atk/2.0 -I /usr/include/dbus-1.0 -I /usr/lib64/dbus-1.0/include -I /usr/include/at-spi-2.0 -D PIC -internal-isystem /usr/local/include -internal-isystem /usr/lib64/clang/11.0.0/include -internal-externc-isystem /include -internal-externc-isystem /usr/include -Wno-unused-parameter -Wno-sign-compare -fdebug-compilation-dir /rootdir/plugins/clipboard -ferror-limit 19 -fgnuc-version=4.2.1 -analyzer-checker deadcode.DeadStores -analyzer-checker alpha.deadcode.UnreachableCode -analyzer-checker alpha.core.CastSize -analyzer-checker alpha.core.CastToStruct -analyzer-checker alpha.core.IdenticalExpr -analyzer-checker alpha.core.SizeofPtr -analyzer-checker alpha.security.ArrayBoundV2 -analyzer-checker alpha.security.MallocOverflow -analyzer-checker alpha.security.ReturnPtrRange -analyzer-checker alpha.unix.SimpleStream -analyzer-checker alpha.unix.cstring.BufferOverlap -analyzer-checker alpha.unix.cstring.NotNullTerminated -analyzer-checker alpha.unix.cstring.OutOfBounds -analyzer-checker alpha.core.FixedAddr -analyzer-checker security.insecureAPI.strcpy -analyzer-output=html -faddrsig -o /rootdir/html-report/2020-11-17-050538-14785-1 -x c xutils.c
+</div>
+<div id='tooltiphint' hidden="true">
+ <p>Keyboard shortcuts: </p>
+ <ul>
+ <li>Use 'j/k' keys for keyboard navigation</li>
+ <li>Use 'Shift+S' to show/hide relevant lines</li>
+ <li>Use '?' to toggle this window</li>
+ </ul>
+ <a href="#" onclick="toggleHelp(); return false;">Close</a>
+</div>
+<script type='text/javascript'>
+var relevant_lines = {"1": {"87": 1}};
+
+var filterCounterexample = function (hide) {
+ var tables = document.getElementsByClassName("code");
+ for (var t=0; t<tables.length; t++) {
+ var table = tables[t];
+ var file_id = table.getAttribute("data-fileid");
+ var lines_in_fid = relevant_lines[file_id];
+ if (!lines_in_fid) {
+ lines_in_fid = {};
+ }
+ var lines = table.getElementsByClassName("codeline");
+ for (var i=0; i<lines.length; i++) {
+ var el = lines[i];
+ var lineNo = el.getAttribute("data-linenumber");
+ if (!lines_in_fid[lineNo]) {
+ if (hide) {
+ el.setAttribute("hidden", "");
+ } else {
+ el.removeAttribute("hidden");
+ }
+ }
+ }
+ }
+}
+
+window.addEventListener("keydown", function (event) {
+ if (event.defaultPrevented) {
+ return;
+ }
+ if (event.key == "S") {
+ var checked = document.getElementsByName("showCounterexample")[0].checked;
+ filterCounterexample(!checked);
+ document.getElementsByName("showCounterexample")[0].checked = !checked;
+ } else {
+ return;
+ }
+ event.preventDefault();
+}, true);
+
+document.addEventListener("DOMContentLoaded", function() {
+ document.querySelector('input[name="showCounterexample"]').onchange=
+ function (event) {
+ filterCounterexample(this.checked);
+ };
+});
+</script>
+
+<form>
+ <input type="checkbox" name="showCounterexample" id="showCounterexample" />
+ <label for="showCounterexample">
+ Show only relevant lines
+ </label>
+</form>
+
+<script type='text/javascript'>
+var digitMatcher = new RegExp("[0-9]+");
+
+var querySelectorAllArray = function(selector) {
+ return Array.prototype.slice.call(
+ document.querySelectorAll(selector));
+}
+
+document.addEventListener("DOMContentLoaded", function() {
+ querySelectorAllArray(".PathNav > a").forEach(
+ function(currentValue, currentIndex) {
+ var hrefValue = currentValue.getAttribute("href");
+ currentValue.onclick = function() {
+ scrollTo(document.querySelector(hrefValue));
+ return false;
+ };
+ });
+});
+
+var findNum = function() {
+ var s = document.querySelector(".selected");
+ if (!s || s.id == "EndPath") {
+ return 0;
+ }
+ var out = parseInt(digitMatcher.exec(s.id)[0]);
+ return out;
+};
+
+var scrollTo = function(el) {
+ querySelectorAllArray(".selected").forEach(function(s) {
+ s.classList.remove("selected");
+ });
+ el.classList.add("selected");
+ window.scrollBy(0, el.getBoundingClientRect().top -
+ (window.innerHeight / 2));
+}
+
+var move = function(num, up, numItems) {
+ if (num == 1 && up || num == numItems - 1 && !up) {
+ return 0;
+ } else if (num == 0 && up) {
+ return numItems - 1;
+ } else if (num == 0 && !up) {
+ return 1 % numItems;
+ }
+ return up ? num - 1 : num + 1;
+}
+
+var numToId = function(num) {
+ if (num == 0) {
+ return document.getElementById("EndPath")
+ }
+ return document.getElementById("Path" + num);
+};
+
+var navigateTo = function(up) {
+ var numItems = document.querySelectorAll(
+ ".line > .msgEvent, .line > .msgControl").length;
+ var currentSelected = findNum();
+ var newSelected = move(currentSelected, up, numItems);
+ var newEl = numToId(newSelected, numItems);
+
+ // Scroll element into center.
+ scrollTo(newEl);
+};
+
+window.addEventListener("keydown", function (event) {
+ if (event.defaultPrevented) {
+ return;
+ }
+ if (event.key == "j") {
+ navigateTo(/*up=*/false);
+ } else if (event.key == "k") {
+ navigateTo(/*up=*/true);
+ } else {
+ return;
+ }
+ event.preventDefault();
+}, true);
+</script>
+
+<script type='text/javascript'>
+
+var toggleHelp = function() {
+ var hint = document.querySelector("#tooltiphint");
+ var attributeName = "hidden";
+ if (hint.hasAttribute(attributeName)) {
+ hint.removeAttribute(attributeName);
+ } else {
+ hint.setAttribute("hidden", "true");
+ }
+};
+window.addEventListener("keydown", function (event) {
+ if (event.defaultPrevented) {
+ return;
+ }
+ if (event.key == "?") {
+ toggleHelp();
+ } else {
+ return;
+ }
+ event.preventDefault();
+});
+</script>
+<table class="code" data-fileid="1">
+<tr class="codeline" data-linenumber="1"><td class="num" id="LN1">1</td><td class="line"><span class='comment'>/*</span></td></tr>
+<tr class="codeline" data-linenumber="2"><td class="num" id="LN2">2</td><td class="line"> <span class='comment'>* Copyright © 2004 Red Hat, Inc.</span></td></tr>
+<tr class="codeline" data-linenumber="3"><td class="num" id="LN3">3</td><td class="line"> <span class='comment'>*</span></td></tr>
+<tr class="codeline" data-linenumber="4"><td class="num" id="LN4">4</td><td class="line"> <span class='comment'>* Permission to use, copy, modify, distribute, and sell this software and its</span></td></tr>
+<tr class="codeline" data-linenumber="5"><td class="num" id="LN5">5</td><td class="line"> <span class='comment'>* documentation for any purpose is hereby granted without fee, provided that</span></td></tr>
+<tr class="codeline" data-linenumber="6"><td class="num" id="LN6">6</td><td class="line"> <span class='comment'>* the above copyright notice appear in all copies and that both that</span></td></tr>
+<tr class="codeline" data-linenumber="7"><td class="num" id="LN7">7</td><td class="line"> <span class='comment'>* copyright notice and this permission notice appear in supporting</span></td></tr>
+<tr class="codeline" data-linenumber="8"><td class="num" id="LN8">8</td><td class="line"> <span class='comment'>* documentation, and that the name of Red Hat not be used in advertising or</span></td></tr>
+<tr class="codeline" data-linenumber="9"><td class="num" id="LN9">9</td><td class="line"> <span class='comment'>* publicity pertaining to distribution of the software without specific,</span></td></tr>
+<tr class="codeline" data-linenumber="10"><td class="num" id="LN10">10</td><td class="line"> <span class='comment'>* written prior permission. Red Hat makes no representations about the</span></td></tr>
+<tr class="codeline" data-linenumber="11"><td class="num" id="LN11">11</td><td class="line"> <span class='comment'>* suitability of this software for any purpose. It is provided "as is"</span></td></tr>
+<tr class="codeline" data-linenumber="12"><td class="num" id="LN12">12</td><td class="line"> <span class='comment'>* without express or implied warranty.</span></td></tr>
+<tr class="codeline" data-linenumber="13"><td class="num" id="LN13">13</td><td class="line"> <span class='comment'>*</span></td></tr>
+<tr class="codeline" data-linenumber="14"><td class="num" id="LN14">14</td><td class="line"> <span class='comment'>* RED HAT DISCLAIMS ALL WARRANTIES WITH REGARD TO THIS SOFTWARE, INCLUDING ALL</span></td></tr>
+<tr class="codeline" data-linenumber="15"><td class="num" id="LN15">15</td><td class="line"> <span class='comment'>* IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS, IN NO EVENT SHALL RED HAT</span></td></tr>
+<tr class="codeline" data-linenumber="16"><td class="num" id="LN16">16</td><td class="line"> <span class='comment'>* BE LIABLE FOR ANY SPECIAL, INDIRECT OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES</span></td></tr>
+<tr class="codeline" data-linenumber="17"><td class="num" id="LN17">17</td><td class="line"> <span class='comment'>* WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION</span></td></tr>
+<tr class="codeline" data-linenumber="18"><td class="num" id="LN18">18</td><td class="line"> <span class='comment'>* OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN</span></td></tr>
+<tr class="codeline" data-linenumber="19"><td class="num" id="LN19">19</td><td class="line"> <span class='comment'>* CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.</span></td></tr>
+<tr class="codeline" data-linenumber="20"><td class="num" id="LN20">20</td><td class="line"> <span class='comment'>*</span></td></tr>
+<tr class="codeline" data-linenumber="21"><td class="num" id="LN21">21</td><td class="line"> <span class='comment'>* Author: Matthias Clasen, Red Hat, Inc.</span></td></tr>
+<tr class="codeline" data-linenumber="22"><td class="num" id="LN22">22</td><td class="line"> <span class='comment'>*/</span></td></tr>
+<tr class="codeline" data-linenumber="23"><td class="num" id="LN23">23</td><td class="line"> </td></tr>
+<tr class="codeline" data-linenumber="24"><td class="num" id="LN24">24</td><td class="line"><span class='directive'>#include &lt;stdlib.h&gt;</span></td></tr>
+<tr class="codeline" data-linenumber="25"><td class="num" id="LN25">25</td><td class="line"> </td></tr>
+<tr class="codeline" data-linenumber="26"><td class="num" id="LN26">26</td><td class="line"><span class='directive'>#include "xutils.h"</span></td></tr>
+<tr class="codeline" data-linenumber="27"><td class="num" id="LN27">27</td><td class="line"> </td></tr>
+<tr class="codeline" data-linenumber="28"><td class="num" id="LN28">28</td><td class="line">Atom XA_ATOM_PAIR;</td></tr>
+<tr class="codeline" data-linenumber="29"><td class="num" id="LN29">29</td><td class="line">Atom XA_CLIPBOARD_MANAGER;</td></tr>
+<tr class="codeline" data-linenumber="30"><td class="num" id="LN30">30</td><td class="line">Atom XA_CLIPBOARD;</td></tr>
+<tr class="codeline" data-linenumber="31"><td class="num" id="LN31">31</td><td class="line">Atom XA_DELETE;</td></tr>
+<tr class="codeline" data-linenumber="32"><td class="num" id="LN32">32</td><td class="line">Atom XA_INCR;</td></tr>
+<tr class="codeline" data-linenumber="33"><td class="num" id="LN33">33</td><td class="line">Atom XA_INSERT_PROPERTY;</td></tr>
+<tr class="codeline" data-linenumber="34"><td class="num" id="LN34">34</td><td class="line">Atom XA_INSERT_SELECTION;</td></tr>
+<tr class="codeline" data-linenumber="35"><td class="num" id="LN35">35</td><td class="line">Atom XA_MANAGER;</td></tr>
+<tr class="codeline" data-linenumber="36"><td class="num" id="LN36">36</td><td class="line">Atom XA_MULTIPLE;</td></tr>
+<tr class="codeline" data-linenumber="37"><td class="num" id="LN37">37</td><td class="line">Atom XA_NULL;</td></tr>
+<tr class="codeline" data-linenumber="38"><td class="num" id="LN38">38</td><td class="line">Atom XA_SAVE_TARGETS;</td></tr>
+<tr class="codeline" data-linenumber="39"><td class="num" id="LN39">39</td><td class="line">Atom XA_TARGETS;</td></tr>
+<tr class="codeline" data-linenumber="40"><td class="num" id="LN40">40</td><td class="line">Atom XA_TIMESTAMP;</td></tr>
+<tr class="codeline" data-linenumber="41"><td class="num" id="LN41">41</td><td class="line"> </td></tr>
+<tr class="codeline" data-linenumber="42"><td class="num" id="LN42">42</td><td class="line"><span class='keyword'>unsigned</span> <span class='keyword'>long</span> SELECTION_MAX_SIZE = 0;</td></tr>
+<tr class="codeline" data-linenumber="43"><td class="num" id="LN43">43</td><td class="line"> </td></tr>
+<tr class="codeline" data-linenumber="44"><td class="num" id="LN44">44</td><td class="line"> </td></tr>
+<tr class="codeline" data-linenumber="45"><td class="num" id="LN45">45</td><td class="line"><span class='keyword'>void</span></td></tr>
+<tr class="codeline" data-linenumber="46"><td class="num" id="LN46">46</td><td class="line">init_atoms (Display *display)</td></tr>
+<tr class="codeline" data-linenumber="47"><td class="num" id="LN47">47</td><td class="line">{</td></tr>
+<tr class="codeline" data-linenumber="48"><td class="num" id="LN48">48</td><td class="line"> <span class='keyword'>unsigned</span> <span class='keyword'>long</span> max_request_size;</td></tr>
+<tr class="codeline" data-linenumber="49"><td class="num" id="LN49">49</td><td class="line"> </td></tr>
+<tr class="codeline" data-linenumber="50"><td class="num" id="LN50">50</td><td class="line"> <span class='keyword'>if</span> (SELECTION_MAX_SIZE &gt; 0)</td></tr>
+<tr class="codeline" data-linenumber="51"><td class="num" id="LN51">51</td><td class="line"> <span class='keyword'>return</span>;</td></tr>
+<tr class="codeline" data-linenumber="52"><td class="num" id="LN52">52</td><td class="line"> </td></tr>
+<tr class="codeline" data-linenumber="53"><td class="num" id="LN53">53</td><td class="line"> XA_ATOM_PAIR = XInternAtom (display, <span class='string_literal'>"ATOM_PAIR"</span>, <span class='macro'>False<span class='macro_popup'>0</span></span>);</td></tr>
+<tr class="codeline" data-linenumber="54"><td class="num" id="LN54">54</td><td class="line"> XA_CLIPBOARD_MANAGER = XInternAtom (display, <span class='string_literal'>"CLIPBOARD_MANAGER"</span>, <span class='macro'>False<span class='macro_popup'>0</span></span>);</td></tr>
+<tr class="codeline" data-linenumber="55"><td class="num" id="LN55">55</td><td class="line"> XA_CLIPBOARD = XInternAtom (display, <span class='string_literal'>"CLIPBOARD"</span>, <span class='macro'>False<span class='macro_popup'>0</span></span>);</td></tr>
+<tr class="codeline" data-linenumber="56"><td class="num" id="LN56">56</td><td class="line"> XA_DELETE = XInternAtom (display, <span class='string_literal'>"DELETE"</span>, <span class='macro'>False<span class='macro_popup'>0</span></span>);</td></tr>
+<tr class="codeline" data-linenumber="57"><td class="num" id="LN57">57</td><td class="line"> XA_INCR = XInternAtom (display, <span class='string_literal'>"INCR"</span>, <span class='macro'>False<span class='macro_popup'>0</span></span>);</td></tr>
+<tr class="codeline" data-linenumber="58"><td class="num" id="LN58">58</td><td class="line"> XA_INSERT_PROPERTY = XInternAtom (display, <span class='string_literal'>"INSERT_PROPERTY"</span>, <span class='macro'>False<span class='macro_popup'>0</span></span>);</td></tr>
+<tr class="codeline" data-linenumber="59"><td class="num" id="LN59">59</td><td class="line"> XA_INSERT_SELECTION = XInternAtom (display, <span class='string_literal'>"INSERT_SELECTION"</span>, <span class='macro'>False<span class='macro_popup'>0</span></span>);</td></tr>
+<tr class="codeline" data-linenumber="60"><td class="num" id="LN60">60</td><td class="line"> XA_MANAGER = XInternAtom (display, <span class='string_literal'>"MANAGER"</span>, <span class='macro'>False<span class='macro_popup'>0</span></span>);</td></tr>
+<tr class="codeline" data-linenumber="61"><td class="num" id="LN61">61</td><td class="line"> XA_MULTIPLE = XInternAtom (display, <span class='string_literal'>"MULTIPLE"</span>, <span class='macro'>False<span class='macro_popup'>0</span></span>);</td></tr>
+<tr class="codeline" data-linenumber="62"><td class="num" id="LN62">62</td><td class="line"> XA_NULL = XInternAtom (display, <span class='string_literal'>"NULL"</span>, <span class='macro'>False<span class='macro_popup'>0</span></span>);</td></tr>
+<tr class="codeline" data-linenumber="63"><td class="num" id="LN63">63</td><td class="line"> XA_SAVE_TARGETS = XInternAtom (display, <span class='string_literal'>"SAVE_TARGETS"</span>, <span class='macro'>False<span class='macro_popup'>0</span></span>);</td></tr>
+<tr class="codeline" data-linenumber="64"><td class="num" id="LN64">64</td><td class="line"> XA_TARGETS = XInternAtom (display, <span class='string_literal'>"TARGETS"</span>, <span class='macro'>False<span class='macro_popup'>0</span></span>);</td></tr>
+<tr class="codeline" data-linenumber="65"><td class="num" id="LN65">65</td><td class="line"> XA_TIMESTAMP = XInternAtom (display, <span class='string_literal'>"TIMESTAMP"</span>, <span class='macro'>False<span class='macro_popup'>0</span></span>);</td></tr>
+<tr class="codeline" data-linenumber="66"><td class="num" id="LN66">66</td><td class="line"> </td></tr>
+<tr class="codeline" data-linenumber="67"><td class="num" id="LN67">67</td><td class="line"> max_request_size = XExtendedMaxRequestSize (display);</td></tr>
+<tr class="codeline" data-linenumber="68"><td class="num" id="LN68">68</td><td class="line"> <span class='keyword'>if</span> (max_request_size == 0)</td></tr>
+<tr class="codeline" data-linenumber="69"><td class="num" id="LN69">69</td><td class="line"> max_request_size = XMaxRequestSize (display);</td></tr>
+<tr class="codeline" data-linenumber="70"><td class="num" id="LN70">70</td><td class="line"> </td></tr>
+<tr class="codeline" data-linenumber="71"><td class="num" id="LN71">71</td><td class="line"> SELECTION_MAX_SIZE = max_request_size - 100;</td></tr>
+<tr class="codeline" data-linenumber="72"><td class="num" id="LN72">72</td><td class="line"> <span class='keyword'>if</span> (SELECTION_MAX_SIZE &gt; 262144)</td></tr>
+<tr class="codeline" data-linenumber="73"><td class="num" id="LN73">73</td><td class="line"> SELECTION_MAX_SIZE = 262144;</td></tr>
+<tr class="codeline" data-linenumber="74"><td class="num" id="LN74">74</td><td class="line">}</td></tr>
+<tr class="codeline" data-linenumber="75"><td class="num" id="LN75">75</td><td class="line"> </td></tr>
+<tr class="codeline" data-linenumber="76"><td class="num" id="LN76">76</td><td class="line"><span class='keyword'>typedef</span> <span class='keyword'>struct</span></td></tr>
+<tr class="codeline" data-linenumber="77"><td class="num" id="LN77">77</td><td class="line">{</td></tr>
+<tr class="codeline" data-linenumber="78"><td class="num" id="LN78">78</td><td class="line"> Window window;</td></tr>
+<tr class="codeline" data-linenumber="79"><td class="num" id="LN79">79</td><td class="line"> Atom timestamp_prop_atom;</td></tr>
+<tr class="codeline" data-linenumber="80"><td class="num" id="LN80">80</td><td class="line">} TimeStampInfo;</td></tr>
+<tr class="codeline" data-linenumber="81"><td class="num" id="LN81">81</td><td class="line"> </td></tr>
+<tr class="codeline" data-linenumber="82"><td class="num" id="LN82">82</td><td class="line"><span class='keyword'>static</span> <span class='macro'>Bool<span class='macro_popup'>int</span></span></td></tr>
+<tr class="codeline" data-linenumber="83"><td class="num" id="LN83">83</td><td class="line">timestamp_predicate (Display *display,</td></tr>
+<tr class="codeline" data-linenumber="84"><td class="num" id="LN84">84</td><td class="line"> XEvent *xevent,</td></tr>
+<tr class="codeline" data-linenumber="85"><td class="num" id="LN85">85</td><td class="line"> XPointer arg)</td></tr>
+<tr class="codeline" data-linenumber="86"><td class="num" id="LN86">86</td><td class="line">{</td></tr>
+<tr class="codeline" data-linenumber="87"><td class="num" id="LN87">87</td><td class="line"> TimeStampInfo *info = <span class="mrange"><span class="mrange">(TimeStampInfo *)arg</span></span>;</td></tr>
+<tr><td class="num"></td><td class="line"><div id="EndPath" class="msg msgEvent" style="margin-left:25ex; max-width:31em">Casting a non-structure type to a structure type and accessing a field can lead to memory access errors or data corruption</div></td></tr>
+<tr class="codeline" data-linenumber="88"><td class="num" id="LN88">88</td><td class="line"> </td></tr>
+<tr class="codeline" data-linenumber="89"><td class="num" id="LN89">89</td><td class="line"> <span class='keyword'>if</span> (xevent-&gt;type == <span class='macro'>PropertyNotify<span class='macro_popup'>28</span></span> &amp;&amp;</td></tr>
+<tr class="codeline" data-linenumber="90"><td class="num" id="LN90">90</td><td class="line"> xevent-&gt;xproperty.window == info-&gt;window &amp;&amp;</td></tr>
+<tr class="codeline" data-linenumber="91"><td class="num" id="LN91">91</td><td class="line"> xevent-&gt;xproperty.atom == info-&gt;timestamp_prop_atom)</td></tr>
+<tr class="codeline" data-linenumber="92"><td class="num" id="LN92">92</td><td class="line"> <span class='keyword'>return</span> <span class='macro'>True<span class='macro_popup'>1</span></span>;</td></tr>
+<tr class="codeline" data-linenumber="93"><td class="num" id="LN93">93</td><td class="line"> </td></tr>
+<tr class="codeline" data-linenumber="94"><td class="num" id="LN94">94</td><td class="line"> <span class='keyword'>return</span> <span class='macro'>False<span class='macro_popup'>0</span></span>;</td></tr>
+<tr class="codeline" data-linenumber="95"><td class="num" id="LN95">95</td><td class="line">}</td></tr>
+<tr class="codeline" data-linenumber="96"><td class="num" id="LN96">96</td><td class="line"> </td></tr>
+<tr class="codeline" data-linenumber="97"><td class="num" id="LN97">97</td><td class="line">Time</td></tr>
+<tr class="codeline" data-linenumber="98"><td class="num" id="LN98">98</td><td class="line">get_server_time (Display *display,</td></tr>
+<tr class="codeline" data-linenumber="99"><td class="num" id="LN99">99</td><td class="line"> Window window)</td></tr>
+<tr class="codeline" data-linenumber="100"><td class="num" id="LN100">100</td><td class="line">{</td></tr>
+<tr class="codeline" data-linenumber="101"><td class="num" id="LN101">101</td><td class="line"> <span class='keyword'>unsigned</span> <span class='keyword'>char</span> c = 'a';</td></tr>
+<tr class="codeline" data-linenumber="102"><td class="num" id="LN102">102</td><td class="line"> XEvent xevent;</td></tr>
+<tr class="codeline" data-linenumber="103"><td class="num" id="LN103">103</td><td class="line"> TimeStampInfo info;</td></tr>
+<tr class="codeline" data-linenumber="104"><td class="num" id="LN104">104</td><td class="line"> </td></tr>
+<tr class="codeline" data-linenumber="105"><td class="num" id="LN105">105</td><td class="line"> info.timestamp_prop_atom = XInternAtom (display, <span class='string_literal'>"_TIMESTAMP_PROP"</span>, <span class='macro'>False<span class='macro_popup'>0</span></span>);</td></tr>
+<tr class="codeline" data-linenumber="106"><td class="num" id="LN106">106</td><td class="line"> info.window = window;</td></tr>
+<tr class="codeline" data-linenumber="107"><td class="num" id="LN107">107</td><td class="line"> </td></tr>
+<tr class="codeline" data-linenumber="108"><td class="num" id="LN108">108</td><td class="line"> XChangeProperty (display, window,</td></tr>
+<tr class="codeline" data-linenumber="109"><td class="num" id="LN109">109</td><td class="line"> info.timestamp_prop_atom, info.timestamp_prop_atom,</td></tr>
+<tr class="codeline" data-linenumber="110"><td class="num" id="LN110">110</td><td class="line"> 8, <span class='macro'>PropModeReplace<span class='macro_popup'>0</span></span>, &amp;c, 1);</td></tr>
+<tr class="codeline" data-linenumber="111"><td class="num" id="LN111">111</td><td class="line"> </td></tr>
+<tr class="codeline" data-linenumber="112"><td class="num" id="LN112">112</td><td class="line"> XIfEvent (display, &amp;xevent,</td></tr>
+<tr class="codeline" data-linenumber="113"><td class="num" id="LN113">113</td><td class="line"> timestamp_predicate, (XPointer)&amp;info);</td></tr>
+<tr class="codeline" data-linenumber="114"><td class="num" id="LN114">114</td><td class="line"> </td></tr>
+<tr class="codeline" data-linenumber="115"><td class="num" id="LN115">115</td><td class="line"> <span class='keyword'>return</span> xevent.xproperty.time;</td></tr>
+<tr class="codeline" data-linenumber="116"><td class="num" id="LN116">116</td><td class="line">}</td></tr>
+<tr class="codeline" data-linenumber="117"><td class="num" id="LN117">117</td><td class="line"> </td></tr>
+</table></body></html>
diff --git a/[email protected]_USE_MATE2_MACROS/report-079a94.html b/[email protected]_USE_MATE2_MACROS/report-079a94.html
new file mode 100644
index 0000000..e53ac2d
--- /dev/null
+++ b/[email protected]_USE_MATE2_MACROS/report-079a94.html
@@ -0,0 +1,3109 @@
+<!doctype html>
+<html>
+<head>
+<title>msd-xrandr-manager.c</title>
+
+<style type="text/css">
+body { color:#000000; background-color:#ffffff }
+body { font-family:Helvetica, sans-serif; font-size:10pt }
+h1 { font-size:14pt }
+.FileName { margin-top: 5px; margin-bottom: 5px; display: inline; }
+.FileNav { margin-left: 5px; margin-right: 5px; display: inline; }
+.FileNav a { text-decoration:none; font-size: larger; }
+.divider { margin-top: 30px; margin-bottom: 30px; height: 15px; }
+.divider { background-color: gray; }
+.code { border-collapse:collapse; width:100%; }
+.code { font-family: "Monospace", monospace; font-size:10pt }
+.code { line-height: 1.2em }
+.comment { color: green; font-style: oblique }
+.keyword { color: blue }
+.string_literal { color: red }
+.directive { color: darkmagenta }
+
+/* Macros and variables could have pop-up notes hidden by default.
+ - Macro pop-up: expansion of the macro
+ - Variable pop-up: value (table) of the variable */
+.macro_popup, .variable_popup { display: none; }
+
+/* Pop-up appears on mouse-hover event. */
+.macro:hover .macro_popup, .variable:hover .variable_popup {
+ display: block;
+ padding: 2px;
+ -webkit-border-radius:5px;
+ -webkit-box-shadow:1px 1px 7px #000;
+ border-radius:5px;
+ box-shadow:1px 1px 7px #000;
+ position: absolute;
+ top: -1em;
+ left:10em;
+ z-index: 1
+}
+
+.macro_popup {
+ border: 2px solid red;
+ background-color:#FFF0F0;
+ font-weight: normal;
+}
+
+.variable_popup {
+ border: 2px solid blue;
+ background-color:#F0F0FF;
+ font-weight: bold;
+ font-family: Helvetica, sans-serif;
+ font-size: 9pt;
+}
+
+/* Pop-up notes needs a relative position as a base where they pops up. */
+.macro, .variable {
+ background-color: PaleGoldenRod;
+ position: relative;
+}
+.macro { color: DarkMagenta; }
+
+#tooltiphint {
+ position: fixed;
+ width: 50em;
+ margin-left: -25em;
+ left: 50%;
+ padding: 10px;
+ border: 1px solid #b0b0b0;
+ border-radius: 2px;
+ box-shadow: 1px 1px 7px black;
+ background-color: #c0c0c0;
+ z-index: 2;
+}
+
+.num { width:2.5em; padding-right:2ex; background-color:#eeeeee }
+.num { text-align:right; font-size:8pt }
+.num { color:#444444 }
+.line { padding-left: 1ex; border-left: 3px solid #ccc }
+.line { white-space: pre }
+.msg { -webkit-box-shadow:1px 1px 7px #000 }
+.msg { box-shadow:1px 1px 7px #000 }
+.msg { -webkit-border-radius:5px }
+.msg { border-radius:5px }
+.msg { font-family:Helvetica, sans-serif; font-size:8pt }
+.msg { float:left }
+.msg { padding:0.25em 1ex 0.25em 1ex }
+.msg { margin-top:10px; margin-bottom:10px }
+.msg { font-weight:bold }
+.msg { max-width:60em; word-wrap: break-word; white-space: pre-wrap }
+.msgT { padding:0x; spacing:0x }
+.msgEvent { background-color:#fff8b4; color:#000000 }
+.msgControl { background-color:#bbbbbb; color:#000000 }
+.msgNote { background-color:#ddeeff; color:#000000 }
+.mrange { background-color:#dfddf3 }
+.mrange { border-bottom:1px solid #6F9DBE }
+.PathIndex { font-weight: bold; padding:0px 5px; margin-right:5px; }
+.PathIndex { -webkit-border-radius:8px }
+.PathIndex { border-radius:8px }
+.PathIndexEvent { background-color:#bfba87 }
+.PathIndexControl { background-color:#8c8c8c }
+.PathIndexPopUp { background-color: #879abc; }
+.PathNav a { text-decoration:none; font-size: larger }
+.CodeInsertionHint { font-weight: bold; background-color: #10dd10 }
+.CodeRemovalHint { background-color:#de1010 }
+.CodeRemovalHint { border-bottom:1px solid #6F9DBE }
+.selected{ background-color:orange !important; }
+
+table.simpletable {
+ padding: 5px;
+ font-size:12pt;
+ margin:20px;
+ border-collapse: collapse; border-spacing: 0px;
+}
+td.rowname {
+ text-align: right;
+ vertical-align: top;
+ font-weight: bold;
+ color:#444444;
+ padding-right:2ex;
+}
+
+/* Hidden text. */
+input.spoilerhider + label {
+ cursor: pointer;
+ text-decoration: underline;
+ display: block;
+}
+input.spoilerhider {
+ display: none;
+}
+input.spoilerhider ~ .spoiler {
+ overflow: hidden;
+ margin: 10px auto 0;
+ height: 0;
+ opacity: 0;
+}
+input.spoilerhider:checked + label + .spoiler{
+ height: auto;
+ opacity: 1;
+}
+</style>
+</head>
+<body>
+<!-- BUGDESC Although the value stored to 'best_height' is used in the enclosing expression, the value is never actually read from 'best_height' -->
+
+<!-- BUGTYPE Dead nested assignment -->
+
+<!-- BUGCATEGORY Dead store -->
+
+<!-- BUGFILE /rootdir/plugins/xrandr/msd-xrandr-manager.c -->
+
+<!-- FILENAME msd-xrandr-manager.c -->
+
+<!-- FUNCTIONNAME find_best_mode -->
+
+<!-- ISSUEHASHCONTENTOFLINEINCONTEXT 59dc0c2f967587ecf0648e7396cd57db -->
+
+<!-- BUGLINE 800 -->
+
+<!-- BUGCOLUMN 34 -->
+
+<!-- BUGPATHLENGTH 1 -->
+
+<!-- BUGMETAEND -->
+<!-- REPORTHEADER -->
+<h3>Bug Summary</h3>
+<table class="simpletable">
+<tr><td class="rowname">File:</td><td>plugins/xrandr/msd-xrandr-manager.c</td></tr>
+<tr><td class="rowname">Warning:</td><td><a href="#EndPath">line 800, column 34</a><br />Although the value stored to 'best_height' is used in the enclosing expression, the value is never actually read from 'best_height'</td></tr>
+
+</table>
+<!-- REPORTSUMMARYEXTRA -->
+<h3>Annotated Source Code</h3>
+<p>Press <a href="#" onclick="toggleHelp(); return false;">'?'</a>
+ to see keyboard shortcuts</p>
+<input type="checkbox" class="spoilerhider" id="showinvocation" />
+<label for="showinvocation" >Show analyzer invocation</label>
+<div class="spoiler">clang -cc1 -cc1 -triple x86_64-unknown-linux-gnu -analyze -disable-free -disable-llvm-verifier -discard-value-names -main-file-name msd-xrandr-manager.c -analyzer-store=region -analyzer-opt-analyze-nested-blocks -analyzer-checker=core -analyzer-checker=apiModeling -analyzer-checker=unix -analyzer-checker=deadcode -analyzer-checker=security.insecureAPI.UncheckedReturn -analyzer-checker=security.insecureAPI.getpw -analyzer-checker=security.insecureAPI.gets -analyzer-checker=security.insecureAPI.mktemp -analyzer-checker=security.insecureAPI.mkstemp -analyzer-checker=security.insecureAPI.vfork -analyzer-checker=nullability.NullPassedToNonnull -analyzer-checker=nullability.NullReturnedFromNonnull -analyzer-output plist -w -setup-static-analyzer -mrelocation-model pic -pic-level 2 -mframe-pointer=all -fmath-errno -fno-rounding-math -mconstructor-aliases -munwind-tables -target-cpu x86-64 -fno-split-dwarf-inlining -debugger-tuning=gdb -resource-dir /usr/lib64/clang/11.0.0 -D HAVE_CONFIG_H -I . -I ../.. -I ../../mate-settings-daemon -D BINDIR="/usr/bin" -D MATE_SETTINGS_LOCALEDIR="/usr/share/locale" -I /usr/include/gtk-3.0 -I /usr/include/pango-1.0 -I /usr/include/glib-2.0 -I /usr/lib64/glib-2.0/include -I /usr/include/harfbuzz -I /usr/include/freetype2 -I /usr/include/libpng16 -I /usr/include/libmount -I /usr/include/blkid -I /usr/include/fribidi -I /usr/include/libxml2 -I /usr/include/cairo -I /usr/include/pixman-1 -I /usr/include/gdk-pixbuf-2.0 -I /usr/include/gio-unix-2.0 -I /usr/include/atk-1.0 -I /usr/include/at-spi2-atk/2.0 -I /usr/include/dbus-1.0 -I /usr/lib64/dbus-1.0/include -I /usr/include/at-spi-2.0 -I /usr/include/gdk-pixbuf-2.0 -I /usr/include/glib-2.0 -I /usr/lib64/glib-2.0/include -I /usr/include/libmount -I /usr/include/blkid -I /usr/include/mate-desktop-2.0 -I /usr/include/gtk-3.0 -I /usr/include/pango-1.0 -I /usr/include/glib-2.0 -I /usr/lib64/glib-2.0/include -I /usr/include/harfbuzz -I /usr/include/freetype2 -I /usr/include/libpng16 -I /usr/include/libmount -I /usr/include/blkid -I /usr/include/fribidi -I /usr/include/libxml2 -I /usr/include/cairo -I /usr/include/pixman-1 -I /usr/include/gdk-pixbuf-2.0 -I /usr/include/gio-unix-2.0 -I /usr/include/atk-1.0 -I /usr/include/at-spi2-atk/2.0 -I /usr/include/dbus-1.0 -I /usr/lib64/dbus-1.0/include -I /usr/include/at-spi-2.0 -I /usr/include/startup-notification-1.0 -I /usr/include/dconf -D PIC -internal-isystem /usr/local/include -internal-isystem /usr/lib64/clang/11.0.0/include -internal-externc-isystem /include -internal-externc-isystem /usr/include -Wno-unused-parameter -Wno-sign-compare -fdebug-compilation-dir /rootdir/plugins/xrandr -ferror-limit 19 -fgnuc-version=4.2.1 -analyzer-checker deadcode.DeadStores -analyzer-checker alpha.deadcode.UnreachableCode -analyzer-checker alpha.core.CastSize -analyzer-checker alpha.core.CastToStruct -analyzer-checker alpha.core.IdenticalExpr -analyzer-checker alpha.core.SizeofPtr -analyzer-checker alpha.security.ArrayBoundV2 -analyzer-checker alpha.security.MallocOverflow -analyzer-checker alpha.security.ReturnPtrRange -analyzer-checker alpha.unix.SimpleStream -analyzer-checker alpha.unix.cstring.BufferOverlap -analyzer-checker alpha.unix.cstring.NotNullTerminated -analyzer-checker alpha.unix.cstring.OutOfBounds -analyzer-checker alpha.core.FixedAddr -analyzer-checker security.insecureAPI.strcpy -analyzer-output=html -faddrsig -o /rootdir/html-report/2020-11-17-050538-14785-1 -x c msd-xrandr-manager.c
+</div>
+<div id='tooltiphint' hidden="true">
+ <p>Keyboard shortcuts: </p>
+ <ul>
+ <li>Use 'j/k' keys for keyboard navigation</li>
+ <li>Use 'Shift+S' to show/hide relevant lines</li>
+ <li>Use '?' to toggle this window</li>
+ </ul>
+ <a href="#" onclick="toggleHelp(); return false;">Close</a>
+</div>
+<script type='text/javascript'>
+var relevant_lines = {"1": {"800": 1}};
+
+var filterCounterexample = function (hide) {
+ var tables = document.getElementsByClassName("code");
+ for (var t=0; t<tables.length; t++) {
+ var table = tables[t];
+ var file_id = table.getAttribute("data-fileid");
+ var lines_in_fid = relevant_lines[file_id];
+ if (!lines_in_fid) {
+ lines_in_fid = {};
+ }
+ var lines = table.getElementsByClassName("codeline");
+ for (var i=0; i<lines.length; i++) {
+ var el = lines[i];
+ var lineNo = el.getAttribute("data-linenumber");
+ if (!lines_in_fid[lineNo]) {
+ if (hide) {
+ el.setAttribute("hidden", "");
+ } else {
+ el.removeAttribute("hidden");
+ }
+ }
+ }
+ }
+}
+
+window.addEventListener("keydown", function (event) {
+ if (event.defaultPrevented) {
+ return;
+ }
+ if (event.key == "S") {
+ var checked = document.getElementsByName("showCounterexample")[0].checked;
+ filterCounterexample(!checked);
+ document.getElementsByName("showCounterexample")[0].checked = !checked;
+ } else {
+ return;
+ }
+ event.preventDefault();
+}, true);
+
+document.addEventListener("DOMContentLoaded", function() {
+ document.querySelector('input[name="showCounterexample"]').onchange=
+ function (event) {
+ filterCounterexample(this.checked);
+ };
+});
+</script>
+
+<form>
+ <input type="checkbox" name="showCounterexample" id="showCounterexample" />
+ <label for="showCounterexample">
+ Show only relevant lines
+ </label>
+</form>
+
+<script type='text/javascript'>
+var digitMatcher = new RegExp("[0-9]+");
+
+var querySelectorAllArray = function(selector) {
+ return Array.prototype.slice.call(
+ document.querySelectorAll(selector));
+}
+
+document.addEventListener("DOMContentLoaded", function() {
+ querySelectorAllArray(".PathNav > a").forEach(
+ function(currentValue, currentIndex) {
+ var hrefValue = currentValue.getAttribute("href");
+ currentValue.onclick = function() {
+ scrollTo(document.querySelector(hrefValue));
+ return false;
+ };
+ });
+});
+
+var findNum = function() {
+ var s = document.querySelector(".selected");
+ if (!s || s.id == "EndPath") {
+ return 0;
+ }
+ var out = parseInt(digitMatcher.exec(s.id)[0]);
+ return out;
+};
+
+var scrollTo = function(el) {
+ querySelectorAllArray(".selected").forEach(function(s) {
+ s.classList.remove("selected");
+ });
+ el.classList.add("selected");
+ window.scrollBy(0, el.getBoundingClientRect().top -
+ (window.innerHeight / 2));
+}
+
+var move = function(num, up, numItems) {
+ if (num == 1 && up || num == numItems - 1 && !up) {
+ return 0;
+ } else if (num == 0 && up) {
+ return numItems - 1;
+ } else if (num == 0 && !up) {
+ return 1 % numItems;
+ }
+ return up ? num - 1 : num + 1;
+}
+
+var numToId = function(num) {
+ if (num == 0) {
+ return document.getElementById("EndPath")
+ }
+ return document.getElementById("Path" + num);
+};
+
+var navigateTo = function(up) {
+ var numItems = document.querySelectorAll(
+ ".line > .msgEvent, .line > .msgControl").length;
+ var currentSelected = findNum();
+ var newSelected = move(currentSelected, up, numItems);
+ var newEl = numToId(newSelected, numItems);
+
+ // Scroll element into center.
+ scrollTo(newEl);
+};
+
+window.addEventListener("keydown", function (event) {
+ if (event.defaultPrevented) {
+ return;
+ }
+ if (event.key == "j") {
+ navigateTo(/*up=*/false);
+ } else if (event.key == "k") {
+ navigateTo(/*up=*/true);
+ } else {
+ return;
+ }
+ event.preventDefault();
+}, true);
+</script>
+
+<script type='text/javascript'>
+
+var toggleHelp = function() {
+ var hint = document.querySelector("#tooltiphint");
+ var attributeName = "hidden";
+ if (hint.hasAttribute(attributeName)) {
+ hint.removeAttribute(attributeName);
+ } else {
+ hint.setAttribute("hidden", "true");
+ }
+};
+window.addEventListener("keydown", function (event) {
+ if (event.defaultPrevented) {
+ return;
+ }
+ if (event.key == "?") {
+ toggleHelp();
+ } else {
+ return;
+ }
+ event.preventDefault();
+});
+</script>
+<table class="code" data-fileid="1">
+<tr class="codeline" data-linenumber="1"><td class="num" id="LN1">1</td><td class="line"><span class='comment'>/* -*- Mode: C; tab-width: 8; indent-tabs-mode: nil; c-basic-offset: 8 -*-</span></td></tr>
+<tr class="codeline" data-linenumber="2"><td class="num" id="LN2">2</td><td class="line"> <span class='comment'>*</span></td></tr>
+<tr class="codeline" data-linenumber="3"><td class="num" id="LN3">3</td><td class="line"> <span class='comment'>* Copyright (C) 2007 William Jon McCann &lt;[email protected]&gt;</span></td></tr>
+<tr class="codeline" data-linenumber="4"><td class="num" id="LN4">4</td><td class="line"> <span class='comment'>* Copyright (C) 2007, 2008 Red Hat, Inc</span></td></tr>
+<tr class="codeline" data-linenumber="5"><td class="num" id="LN5">5</td><td class="line"> <span class='comment'>*</span></td></tr>
+<tr class="codeline" data-linenumber="6"><td class="num" id="LN6">6</td><td class="line"> <span class='comment'>* This program is free software; you can redistribute it and/or modify</span></td></tr>
+<tr class="codeline" data-linenumber="7"><td class="num" id="LN7">7</td><td class="line"> <span class='comment'>* it under the terms of the GNU General Public License as published by</span></td></tr>
+<tr class="codeline" data-linenumber="8"><td class="num" id="LN8">8</td><td class="line"> <span class='comment'>* the Free Software Foundation; either version 2 of the License, or</span></td></tr>
+<tr class="codeline" data-linenumber="9"><td class="num" id="LN9">9</td><td class="line"> <span class='comment'>* (at your option) any later version.</span></td></tr>
+<tr class="codeline" data-linenumber="10"><td class="num" id="LN10">10</td><td class="line"> <span class='comment'>*</span></td></tr>
+<tr class="codeline" data-linenumber="11"><td class="num" id="LN11">11</td><td class="line"> <span class='comment'>* This program is distributed in the hope that it will be useful,</span></td></tr>
+<tr class="codeline" data-linenumber="12"><td class="num" id="LN12">12</td><td class="line"> <span class='comment'>* but WITHOUT ANY WARRANTY; without even the implied warranty of</span></td></tr>
+<tr class="codeline" data-linenumber="13"><td class="num" id="LN13">13</td><td class="line"> <span class='comment'>* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the</span></td></tr>
+<tr class="codeline" data-linenumber="14"><td class="num" id="LN14">14</td><td class="line"> <span class='comment'>* GNU General Public License for more details.</span></td></tr>
+<tr class="codeline" data-linenumber="15"><td class="num" id="LN15">15</td><td class="line"> <span class='comment'>*</span></td></tr>
+<tr class="codeline" data-linenumber="16"><td class="num" id="LN16">16</td><td class="line"> <span class='comment'>* You should have received a copy of the GNU General Public License</span></td></tr>
+<tr class="codeline" data-linenumber="17"><td class="num" id="LN17">17</td><td class="line"> <span class='comment'>* along with this program; if not, write to the Free Software</span></td></tr>
+<tr class="codeline" data-linenumber="18"><td class="num" id="LN18">18</td><td class="line"> <span class='comment'>* Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA.</span></td></tr>
+<tr class="codeline" data-linenumber="19"><td class="num" id="LN19">19</td><td class="line"> <span class='comment'>*</span></td></tr>
+<tr class="codeline" data-linenumber="20"><td class="num" id="LN20">20</td><td class="line"> <span class='comment'>*/</span></td></tr>
+<tr class="codeline" data-linenumber="21"><td class="num" id="LN21">21</td><td class="line"> </td></tr>
+<tr class="codeline" data-linenumber="22"><td class="num" id="LN22">22</td><td class="line"><span class='directive'>#include "config.h"</span></td></tr>
+<tr class="codeline" data-linenumber="23"><td class="num" id="LN23">23</td><td class="line"> </td></tr>
+<tr class="codeline" data-linenumber="24"><td class="num" id="LN24">24</td><td class="line"><span class='directive'>#include &lt;sys/types.h&gt;</span></td></tr>
+<tr class="codeline" data-linenumber="25"><td class="num" id="LN25">25</td><td class="line"><span class='directive'>#include &lt;sys/wait.h&gt;</span></td></tr>
+<tr class="codeline" data-linenumber="26"><td class="num" id="LN26">26</td><td class="line"><span class='directive'>#include &lt;sys/stat.h&gt;</span></td></tr>
+<tr class="codeline" data-linenumber="27"><td class="num" id="LN27">27</td><td class="line"><span class='directive'>#include &lt;stdlib.h&gt;</span></td></tr>
+<tr class="codeline" data-linenumber="28"><td class="num" id="LN28">28</td><td class="line"><span class='directive'>#include &lt;stdio.h&gt;</span></td></tr>
+<tr class="codeline" data-linenumber="29"><td class="num" id="LN29">29</td><td class="line"><span class='directive'>#include &lt;unistd.h&gt;</span></td></tr>
+<tr class="codeline" data-linenumber="30"><td class="num" id="LN30">30</td><td class="line"><span class='directive'>#include &lt;string.h&gt;</span></td></tr>
+<tr class="codeline" data-linenumber="31"><td class="num" id="LN31">31</td><td class="line"><span class='directive'>#include &lt;<span class='macro'>errno<span class='macro_popup'>(*__errno_location ())</span></span>.h&gt;</span></td></tr>
+<tr class="codeline" data-linenumber="32"><td class="num" id="LN32">32</td><td class="line"> </td></tr>
+<tr class="codeline" data-linenumber="33"><td class="num" id="LN33">33</td><td class="line"><span class='directive'>#include &lt;locale.h&gt;</span></td></tr>
+<tr class="codeline" data-linenumber="34"><td class="num" id="LN34">34</td><td class="line"> </td></tr>
+<tr class="codeline" data-linenumber="35"><td class="num" id="LN35">35</td><td class="line"><span class='directive'>#include &lt;glib.h&gt;</span></td></tr>
+<tr class="codeline" data-linenumber="36"><td class="num" id="LN36">36</td><td class="line"><span class='directive'>#include &lt;glib/gi18n.h&gt;</span></td></tr>
+<tr class="codeline" data-linenumber="37"><td class="num" id="LN37">37</td><td class="line"><span class='directive'>#include &lt;gdk/gdk.h&gt;</span></td></tr>
+<tr class="codeline" data-linenumber="38"><td class="num" id="LN38">38</td><td class="line"><span class='directive'>#include &lt;gdk/gdkx.h&gt;</span></td></tr>
+<tr class="codeline" data-linenumber="39"><td class="num" id="LN39">39</td><td class="line"><span class='directive'>#include &lt;gtk/gtk.h&gt;</span></td></tr>
+<tr class="codeline" data-linenumber="40"><td class="num" id="LN40">40</td><td class="line"><span class='directive'>#include &lt;gio/gio.h&gt;</span></td></tr>
+<tr class="codeline" data-linenumber="41"><td class="num" id="LN41">41</td><td class="line"><span class='directive'>#include &lt;dbus/dbus-glib.h&gt;</span></td></tr>
+<tr class="codeline" data-linenumber="42"><td class="num" id="LN42">42</td><td class="line"> </td></tr>
+<tr class="codeline" data-linenumber="43"><td class="num" id="LN43">43</td><td class="line"><span class='directive'>#define MATE_DESKTOP_USE_UNSTABLE_API</span></td></tr>
+<tr class="codeline" data-linenumber="44"><td class="num" id="LN44">44</td><td class="line"><span class='directive'>#include &lt;libmate-desktop/mate-rr-config.h&gt;</span></td></tr>
+<tr class="codeline" data-linenumber="45"><td class="num" id="LN45">45</td><td class="line"><span class='directive'>#include &lt;libmate-desktop/mate-rr.h&gt;</span></td></tr>
+<tr class="codeline" data-linenumber="46"><td class="num" id="LN46">46</td><td class="line"><span class='directive'>#include &lt;libmate-desktop/mate-rr-labeler.h&gt;</span></td></tr>
+<tr class="codeline" data-linenumber="47"><td class="num" id="LN47">47</td><td class="line"><span class='directive'>#include &lt;libmate-desktop/mate-desktop-utils.h&gt;</span></td></tr>
+<tr class="codeline" data-linenumber="48"><td class="num" id="LN48">48</td><td class="line"> </td></tr>
+<tr class="codeline" data-linenumber="49"><td class="num" id="LN49">49</td><td class="line"><span class='directive'>#ifdef <span class='macro'>HAVE_LIBNOTIFY<span class='macro_popup'>1</span></span></span></td></tr>
+<tr class="codeline" data-linenumber="50"><td class="num" id="LN50">50</td><td class="line"><span class='directive'>#include &lt;libnotify/notify.h&gt;</span></td></tr>
+<tr class="codeline" data-linenumber="51"><td class="num" id="LN51">51</td><td class="line"><span class='directive'>#endif</span></td></tr>
+<tr class="codeline" data-linenumber="52"><td class="num" id="LN52">52</td><td class="line"> </td></tr>
+<tr class="codeline" data-linenumber="53"><td class="num" id="LN53">53</td><td class="line"><span class='directive'>#include "mate-settings-profile.h"</span></td></tr>
+<tr class="codeline" data-linenumber="54"><td class="num" id="LN54">54</td><td class="line"><span class='directive'>#include "msd-xrandr-manager.h"</span></td></tr>
+<tr class="codeline" data-linenumber="55"><td class="num" id="LN55">55</td><td class="line"> </td></tr>
+<tr class="codeline" data-linenumber="56"><td class="num" id="LN56">56</td><td class="line"><span class='directive'>#define <span class='macro'>CONF_SCHEMA<span class='macro_popup'>"org.mate.SettingsDaemon.plugins.xrandr"</span></span> "org.mate.SettingsDaemon.plugins.xrandr"</span></td></tr>
+<tr class="codeline" data-linenumber="57"><td class="num" id="LN57">57</td><td class="line"><span class='directive'>#define <span class='macro'>CONF_KEY_SHOW_NOTIFICATION_ICON<span class='macro_popup'>"show-notification-icon"</span></span> "show-notification-icon"</span></td></tr>
+<tr class="codeline" data-linenumber="58"><td class="num" id="LN58">58</td><td class="line"><span class='directive'>#define <span class='macro'>CONF_KEY_USE_XORG_MONITOR_SETTINGS<span class='macro_popup'>"use-xorg-monitor-settings"</span></span> "use-xorg-monitor-settings"</span></td></tr>
+<tr class="codeline" data-linenumber="59"><td class="num" id="LN59">59</td><td class="line"><span class='directive'>#define <span class='macro'>CONF_KEY_TURN_ON_EXTERNAL_MONITORS_AT_STARTUP<span class='macro_popup'>"turn-on-external-monitors-at-startup"</span></span> "turn-on-external-monitors-at-startup"</span></td></tr>
+<tr class="codeline" data-linenumber="60"><td class="num" id="LN60">60</td><td class="line"><span class='directive'>#define <span class='macro'>CONF_KEY_TURN_ON_LAPTOP_MONITOR_AT_STARTUP<span class='macro_popup'>"turn-on-laptop-monitor-at-startup"</span></span> "turn-on-laptop-monitor-at-startup"</span></td></tr>
+<tr class="codeline" data-linenumber="61"><td class="num" id="LN61">61</td><td class="line"><span class='directive'>#define <span class='macro'>CONF_KEY_DEFAULT_CONFIGURATION_FILE<span class='macro_popup'>"default-configuration-file"</span></span> "default-configuration-file"</span></td></tr>
+<tr class="codeline" data-linenumber="62"><td class="num" id="LN62">62</td><td class="line"> </td></tr>
+<tr class="codeline" data-linenumber="63"><td class="num" id="LN63">63</td><td class="line"><span class='directive'>#define <span class='macro'>VIDEO_KEYSYM<span class='macro_popup'>"XF86Display"</span></span> "XF86Display"</span></td></tr>
+<tr class="codeline" data-linenumber="64"><td class="num" id="LN64">64</td><td class="line"><span class='directive'>#define <span class='macro'>ROTATE_KEYSYM<span class='macro_popup'>"XF86RotateWindows"</span></span> "XF86RotateWindows"</span></td></tr>
+<tr class="codeline" data-linenumber="65"><td class="num" id="LN65">65</td><td class="line"> </td></tr>
+<tr class="codeline" data-linenumber="66"><td class="num" id="LN66">66</td><td class="line"><span class='comment'>/* Number of seconds that the confirmation dialog will last before it resets the</span></td></tr>
+<tr class="codeline" data-linenumber="67"><td class="num" id="LN67">67</td><td class="line"> <span class='comment'>* RANDR configuration to its old state.</span></td></tr>
+<tr class="codeline" data-linenumber="68"><td class="num" id="LN68">68</td><td class="line"> <span class='comment'>*/</span></td></tr>
+<tr class="codeline" data-linenumber="69"><td class="num" id="LN69">69</td><td class="line"><span class='directive'>#define <span class='macro'>CONFIRMATION_DIALOG_SECONDS<span class='macro_popup'>30</span></span> 30</span></td></tr>
+<tr class="codeline" data-linenumber="70"><td class="num" id="LN70">70</td><td class="line"> </td></tr>
+<tr class="codeline" data-linenumber="71"><td class="num" id="LN71">71</td><td class="line"><span class='comment'>/* name of the icon files (msd-xrandr.svg, etc.) */</span></td></tr>
+<tr class="codeline" data-linenumber="72"><td class="num" id="LN72">72</td><td class="line"><span class='directive'>#define <span class='macro'>MSD_XRANDR_ICON_NAME<span class='macro_popup'>"msd-xrandr"</span></span> "msd-xrandr"</span></td></tr>
+<tr class="codeline" data-linenumber="73"><td class="num" id="LN73">73</td><td class="line"> </td></tr>
+<tr class="codeline" data-linenumber="74"><td class="num" id="LN74">74</td><td class="line"><span class='comment'>/* executable of the control center's display configuration capplet */</span></td></tr>
+<tr class="codeline" data-linenumber="75"><td class="num" id="LN75">75</td><td class="line"><span class='directive'>#define <span class='macro'>MSD_XRANDR_DISPLAY_CAPPLET<span class='macro_popup'>"mate-display-properties"</span></span> "mate-display-properties"</span></td></tr>
+<tr class="codeline" data-linenumber="76"><td class="num" id="LN76">76</td><td class="line"> </td></tr>
+<tr class="codeline" data-linenumber="77"><td class="num" id="LN77">77</td><td class="line"><span class='directive'>#define <span class='macro'>MSD_DBUS_PATH<span class='macro_popup'>"/org/mate/SettingsDaemon"</span></span> "/org/mate/SettingsDaemon"</span></td></tr>
+<tr class="codeline" data-linenumber="78"><td class="num" id="LN78">78</td><td class="line"><span class='directive'>#define <span class='macro'>MSD_DBUS_NAME<span class='macro_popup'>"org.mate.SettingsDaemon"</span></span> "org.mate.SettingsDaemon"</span></td></tr>
+<tr class="codeline" data-linenumber="79"><td class="num" id="LN79">79</td><td class="line"><span class='directive'>#define <span class='macro'>MSD_XRANDR_DBUS_PATH<span class='macro_popup'>"/org/mate/SettingsDaemon" "/XRANDR"</span></span> <span class='macro'>MSD_DBUS_PATH<span class='macro_popup'>"/org/mate/SettingsDaemon"</span></span> "/XRANDR"</span></td></tr>
+<tr class="codeline" data-linenumber="80"><td class="num" id="LN80">80</td><td class="line"><span class='directive'>#define <span class='macro'>MSD_XRANDR_DBUS_NAME<span class='macro_popup'>"org.mate.SettingsDaemon" ".XRANDR"</span></span> <span class='macro'>MSD_DBUS_NAME<span class='macro_popup'>"org.mate.SettingsDaemon"</span></span> ".XRANDR"</span></td></tr>
+<tr class="codeline" data-linenumber="81"><td class="num" id="LN81">81</td><td class="line"> </td></tr>
+<tr class="codeline" data-linenumber="82"><td class="num" id="LN82">82</td><td class="line"><span class='keyword'>struct</span> MsdXrandrManagerPrivate</td></tr>
+<tr class="codeline" data-linenumber="83"><td class="num" id="LN83">83</td><td class="line">{</td></tr>
+<tr class="codeline" data-linenumber="84"><td class="num" id="LN84">84</td><td class="line"> DBusGConnection *dbus_connection;</td></tr>
+<tr class="codeline" data-linenumber="85"><td class="num" id="LN85">85</td><td class="line"> </td></tr>
+<tr class="codeline" data-linenumber="86"><td class="num" id="LN86">86</td><td class="line"> <span class='comment'>/* Key code of the XF86Display key (Fn-F7 on Thinkpads, Fn-F4 on HP machines, etc.) */</span></td></tr>
+<tr class="codeline" data-linenumber="87"><td class="num" id="LN87">87</td><td class="line"> guint switch_video_mode_keycode;</td></tr>
+<tr class="codeline" data-linenumber="88"><td class="num" id="LN88">88</td><td class="line"> </td></tr>
+<tr class="codeline" data-linenumber="89"><td class="num" id="LN89">89</td><td class="line"> <span class='comment'>/* Key code of the XF86RotateWindows key (present on some tablets) */</span></td></tr>
+<tr class="codeline" data-linenumber="90"><td class="num" id="LN90">90</td><td class="line"> guint rotate_windows_keycode;</td></tr>
+<tr class="codeline" data-linenumber="91"><td class="num" id="LN91">91</td><td class="line"> </td></tr>
+<tr class="codeline" data-linenumber="92"><td class="num" id="LN92">92</td><td class="line"> MateRRScreen *rw_screen;</td></tr>
+<tr class="codeline" data-linenumber="93"><td class="num" id="LN93">93</td><td class="line"> gboolean running;</td></tr>
+<tr class="codeline" data-linenumber="94"><td class="num" id="LN94">94</td><td class="line"> </td></tr>
+<tr class="codeline" data-linenumber="95"><td class="num" id="LN95">95</td><td class="line"> GtkStatusIcon *status_icon;</td></tr>
+<tr class="codeline" data-linenumber="96"><td class="num" id="LN96">96</td><td class="line"> GtkWidget *popup_menu;</td></tr>
+<tr class="codeline" data-linenumber="97"><td class="num" id="LN97">97</td><td class="line"> MateRRConfig *configuration;</td></tr>
+<tr class="codeline" data-linenumber="98"><td class="num" id="LN98">98</td><td class="line"> MateRRLabeler *labeler;</td></tr>
+<tr class="codeline" data-linenumber="99"><td class="num" id="LN99">99</td><td class="line"> GSettings *settings;</td></tr>
+<tr class="codeline" data-linenumber="100"><td class="num" id="LN100">100</td><td class="line"> </td></tr>
+<tr class="codeline" data-linenumber="101"><td class="num" id="LN101">101</td><td class="line"> <span class='comment'>/* fn-F7 status */</span></td></tr>
+<tr class="codeline" data-linenumber="102"><td class="num" id="LN102">102</td><td class="line"> <span class='keyword'>int</span> current_fn_f7_config; <span class='comment'>/* -1 if no configs */</span></td></tr>
+<tr class="codeline" data-linenumber="103"><td class="num" id="LN103">103</td><td class="line"> MateRRConfig **fn_f7_configs; <span class='comment'>/* NULL terminated, NULL if there are no configs */</span></td></tr>
+<tr class="codeline" data-linenumber="104"><td class="num" id="LN104">104</td><td class="line"> </td></tr>
+<tr class="codeline" data-linenumber="105"><td class="num" id="LN105">105</td><td class="line"> <span class='comment'>/* Last time at which we got a "screen got reconfigured" event; see on_randr_event() */</span></td></tr>
+<tr class="codeline" data-linenumber="106"><td class="num" id="LN106">106</td><td class="line"> guint32 last_config_timestamp;</td></tr>
+<tr class="codeline" data-linenumber="107"><td class="num" id="LN107">107</td><td class="line">};</td></tr>
+<tr class="codeline" data-linenumber="108"><td class="num" id="LN108">108</td><td class="line"> </td></tr>
+<tr class="codeline" data-linenumber="109"><td class="num" id="LN109">109</td><td class="line"><span class='keyword'>static</span> <span class='keyword'>const</span> MateRRRotation possible_rotations[] = {</td></tr>
+<tr class="codeline" data-linenumber="110"><td class="num" id="LN110">110</td><td class="line"> MATE_RR_ROTATION_0,</td></tr>
+<tr class="codeline" data-linenumber="111"><td class="num" id="LN111">111</td><td class="line"> MATE_RR_ROTATION_90,</td></tr>
+<tr class="codeline" data-linenumber="112"><td class="num" id="LN112">112</td><td class="line"> MATE_RR_ROTATION_180,</td></tr>
+<tr class="codeline" data-linenumber="113"><td class="num" id="LN113">113</td><td class="line"> MATE_RR_ROTATION_270</td></tr>
+<tr class="codeline" data-linenumber="114"><td class="num" id="LN114">114</td><td class="line"> <span class='comment'>/* We don't allow REFLECT_X or REFLECT_Y for now, as mate-display-properties doesn't allow them, either */</span></td></tr>
+<tr class="codeline" data-linenumber="115"><td class="num" id="LN115">115</td><td class="line">};</td></tr>
+<tr class="codeline" data-linenumber="116"><td class="num" id="LN116">116</td><td class="line"> </td></tr>
+<tr class="codeline" data-linenumber="117"><td class="num" id="LN117">117</td><td class="line"><span class='keyword'>static</span> <span class='keyword'>void</span> msd_xrandr_manager_finalize (GObject *object);</td></tr>
+<tr class="codeline" data-linenumber="118"><td class="num" id="LN118">118</td><td class="line"> </td></tr>
+<tr class="codeline" data-linenumber="119"><td class="num" id="LN119">119</td><td class="line"><span class='keyword'>static</span> <span class='keyword'>void</span> error_message (MsdXrandrManager *mgr, <span class='keyword'>const</span> <span class='keyword'>char</span> *primary_text, GError *error_to_display, <span class='keyword'>const</span> <span class='keyword'>char</span> *secondary_text);</td></tr>
+<tr class="codeline" data-linenumber="120"><td class="num" id="LN120">120</td><td class="line"> </td></tr>
+<tr class="codeline" data-linenumber="121"><td class="num" id="LN121">121</td><td class="line"><span class='keyword'>static</span> <span class='keyword'>void</span> status_icon_popup_menu (MsdXrandrManager *manager, guint button, guint32 timestamp);</td></tr>
+<tr class="codeline" data-linenumber="122"><td class="num" id="LN122">122</td><td class="line"><span class='keyword'>static</span> <span class='keyword'>void</span> run_display_capplet (GtkWidget *widget);</td></tr>
+<tr class="codeline" data-linenumber="123"><td class="num" id="LN123">123</td><td class="line"><span class='keyword'>static</span> <span class='keyword'>void</span> get_allowed_rotations_for_output (MateRRConfig *config,</td></tr>
+<tr class="codeline" data-linenumber="124"><td class="num" id="LN124">124</td><td class="line"> MateRRScreen *rr_screen,</td></tr>
+<tr class="codeline" data-linenumber="125"><td class="num" id="LN125">125</td><td class="line"> MateRROutputInfo *output,</td></tr>
+<tr class="codeline" data-linenumber="126"><td class="num" id="LN126">126</td><td class="line"> <span class='keyword'>int</span> *out_num_rotations,</td></tr>
+<tr class="codeline" data-linenumber="127"><td class="num" id="LN127">127</td><td class="line"> MateRRRotation *out_rotations);</td></tr>
+<tr class="codeline" data-linenumber="128"><td class="num" id="LN128">128</td><td class="line"> </td></tr>
+<tr class="codeline" data-linenumber="129"><td class="num" id="LN129">129</td><td class="line"><span class='macro'>G_DEFINE_TYPE_WITH_PRIVATE (MsdXrandrManager, msd_xrandr_manager, G_TYPE_OBJECT)<span class='macro_popup'>static void msd_xrandr_manager_init (MsdXrandrManager *self);<br> static void msd_xrandr_manager_class_init (MsdXrandrManagerClass<br> *klass); static GType msd_xrandr_manager_get_type_once (void<br>); static gpointer msd_xrandr_manager_parent_class = ((void*)<br>0); static gint MsdXrandrManager_private_offset; static void msd_xrandr_manager_class_intern_init<br> (gpointer klass) { msd_xrandr_manager_parent_class = g_type_class_peek_parent<br> (klass); if (MsdXrandrManager_private_offset != 0) g_type_class_adjust_private_offset<br> (klass, &amp;MsdXrandrManager_private_offset); msd_xrandr_manager_class_init<br> ((MsdXrandrManagerClass*) klass); } __attribute__((__unused__<br>)) static inline gpointer msd_xrandr_manager_get_instance_private<br> (MsdXrandrManager *self) { return (((gpointer) ((guint8*) (self<br>) + (glong) (MsdXrandrManager_private_offset)))); } GType msd_xrandr_manager_get_type<br> (void) { static volatile gsize g_define_type_id__volatile = 0<br>; if ((__extension__ ({ _Static_assert (sizeof *(&amp;g_define_type_id__volatile<br>) == sizeof (gpointer), "Expression evaluates to false"); (void<br>) (0 ? (gpointer) *(&amp;g_define_type_id__volatile) : ((void<br>*)0)); (!(__extension__ ({ _Static_assert (sizeof *(&amp;g_define_type_id__volatile<br>) == sizeof (gpointer), "Expression evaluates to false"); gpointer<br> gapg_temp_newval; gpointer *gapg_temp_atomic = (gpointer *)(<br>&amp;g_define_type_id__volatile); __atomic_load (gapg_temp_atomic<br>, &amp;gapg_temp_newval, 5); gapg_temp_newval; })) &amp;&amp;<br> g_once_init_enter (&amp;g_define_type_id__volatile)); }))) {<br> GType g_define_type_id = msd_xrandr_manager_get_type_once ()<br>; (__extension__ ({ _Static_assert (sizeof *(&amp;g_define_type_id__volatile<br>) == sizeof (gpointer), "Expression evaluates to false"); 0 ?<br> (void) (*(&amp;g_define_type_id__volatile) = (g_define_type_id<br>)) : (void) 0; g_once_init_leave ((&amp;g_define_type_id__volatile<br>), (gsize) (g_define_type_id)); })); } return g_define_type_id__volatile<br>; } __attribute__((noinline)) static GType msd_xrandr_manager_get_type_once<br> (void) { GType g_define_type_id = g_type_register_static_simple<br> (((GType) ((20) &lt;&lt; (2))), g_intern_static_string ("MsdXrandrManager"<br>), sizeof (MsdXrandrManagerClass), (GClassInitFunc)(void (*)(<br>void)) msd_xrandr_manager_class_intern_init, sizeof (MsdXrandrManager<br>), (GInstanceInitFunc)(void (*)(void)) msd_xrandr_manager_init<br>, (GTypeFlags) 0); { {{ MsdXrandrManager_private_offset = g_type_add_instance_private<br> (g_define_type_id, sizeof (MsdXrandrManagerPrivate)); };} } return<br> g_define_type_id; }</span></span></td></tr>
+<tr class="codeline" data-linenumber="130"><td class="num" id="LN130">130</td><td class="line"> </td></tr>
+<tr class="codeline" data-linenumber="131"><td class="num" id="LN131">131</td><td class="line"><span class='keyword'>static</span> gpointer manager_object = <span class='macro'>NULL<span class='macro_popup'>((void*)0)</span></span>;</td></tr>
+<tr class="codeline" data-linenumber="132"><td class="num" id="LN132">132</td><td class="line"> </td></tr>
+<tr class="codeline" data-linenumber="133"><td class="num" id="LN133">133</td><td class="line"><span class='keyword'>static</span> FILE *log_file;</td></tr>
+<tr class="codeline" data-linenumber="134"><td class="num" id="LN134">134</td><td class="line"> </td></tr>
+<tr class="codeline" data-linenumber="135"><td class="num" id="LN135">135</td><td class="line"><span class='keyword'>static</span> <span class='keyword'>void</span></td></tr>
+<tr class="codeline" data-linenumber="136"><td class="num" id="LN136">136</td><td class="line">log_open (<span class='keyword'>void</span>)</td></tr>
+<tr class="codeline" data-linenumber="137"><td class="num" id="LN137">137</td><td class="line">{</td></tr>
+<tr class="codeline" data-linenumber="138"><td class="num" id="LN138">138</td><td class="line"> <span class='keyword'>char</span> *toggle_filename;</td></tr>
+<tr class="codeline" data-linenumber="139"><td class="num" id="LN139">139</td><td class="line"> <span class='keyword'>char</span> *log_filename;</td></tr>
+<tr class="codeline" data-linenumber="140"><td class="num" id="LN140">140</td><td class="line"> <span class='keyword'>struct</span> stat st;</td></tr>
+<tr class="codeline" data-linenumber="141"><td class="num" id="LN141">141</td><td class="line"> </td></tr>
+<tr class="codeline" data-linenumber="142"><td class="num" id="LN142">142</td><td class="line"> <span class='keyword'>if</span> (log_file)</td></tr>
+<tr class="codeline" data-linenumber="143"><td class="num" id="LN143">143</td><td class="line"> <span class='keyword'>return</span>;</td></tr>
+<tr class="codeline" data-linenumber="144"><td class="num" id="LN144">144</td><td class="line"> </td></tr>
+<tr class="codeline" data-linenumber="145"><td class="num" id="LN145">145</td><td class="line"> toggle_filename = g_build_filename (g_get_home_dir (), <span class='string_literal'>"msd-debug-randr"</span>, <span class='macro'>NULL<span class='macro_popup'>((void*)0)</span></span>);</td></tr>
+<tr class="codeline" data-linenumber="146"><td class="num" id="LN146">146</td><td class="line"> log_filename = g_build_filename (g_get_home_dir (), <span class='string_literal'>"msd-debug-randr.log"</span>, <span class='macro'>NULL<span class='macro_popup'>((void*)0)</span></span>);</td></tr>
+<tr class="codeline" data-linenumber="147"><td class="num" id="LN147">147</td><td class="line"> </td></tr>
+<tr class="codeline" data-linenumber="148"><td class="num" id="LN148">148</td><td class="line"> <span class='keyword'>if</span> (stat (toggle_filename, &amp;st) != 0)</td></tr>
+<tr class="codeline" data-linenumber="149"><td class="num" id="LN149">149</td><td class="line"> <span class='keyword'>goto</span> out;</td></tr>
+<tr class="codeline" data-linenumber="150"><td class="num" id="LN150">150</td><td class="line"> </td></tr>
+<tr class="codeline" data-linenumber="151"><td class="num" id="LN151">151</td><td class="line"> log_file = fopen (log_filename, <span class='string_literal'>"a"</span>);</td></tr>
+<tr class="codeline" data-linenumber="152"><td class="num" id="LN152">152</td><td class="line"> </td></tr>
+<tr class="codeline" data-linenumber="153"><td class="num" id="LN153">153</td><td class="line"> <span class='keyword'>if</span> (log_file &amp;&amp; ftell (log_file) == 0)</td></tr>
+<tr class="codeline" data-linenumber="154"><td class="num" id="LN154">154</td><td class="line"> fprintf (log_file, <span class='string_literal'>"To keep this log from being created, please rm ~/msd-debug-randr\n"</span>);</td></tr>
+<tr class="codeline" data-linenumber="155"><td class="num" id="LN155">155</td><td class="line"> </td></tr>
+<tr class="codeline" data-linenumber="156"><td class="num" id="LN156">156</td><td class="line">out:</td></tr>
+<tr class="codeline" data-linenumber="157"><td class="num" id="LN157">157</td><td class="line"> g_free (toggle_filename);</td></tr>
+<tr class="codeline" data-linenumber="158"><td class="num" id="LN158">158</td><td class="line"> g_free (log_filename);</td></tr>
+<tr class="codeline" data-linenumber="159"><td class="num" id="LN159">159</td><td class="line">}</td></tr>
+<tr class="codeline" data-linenumber="160"><td class="num" id="LN160">160</td><td class="line"> </td></tr>
+<tr class="codeline" data-linenumber="161"><td class="num" id="LN161">161</td><td class="line"><span class='keyword'>static</span> <span class='keyword'>void</span></td></tr>
+<tr class="codeline" data-linenumber="162"><td class="num" id="LN162">162</td><td class="line">log_close (<span class='keyword'>void</span>)</td></tr>
+<tr class="codeline" data-linenumber="163"><td class="num" id="LN163">163</td><td class="line">{</td></tr>
+<tr class="codeline" data-linenumber="164"><td class="num" id="LN164">164</td><td class="line"> <span class='keyword'>if</span> (log_file) {</td></tr>
+<tr class="codeline" data-linenumber="165"><td class="num" id="LN165">165</td><td class="line"> fclose (log_file);</td></tr>
+<tr class="codeline" data-linenumber="166"><td class="num" id="LN166">166</td><td class="line"> log_file = <span class='macro'>NULL<span class='macro_popup'>((void*)0)</span></span>;</td></tr>
+<tr class="codeline" data-linenumber="167"><td class="num" id="LN167">167</td><td class="line"> }</td></tr>
+<tr class="codeline" data-linenumber="168"><td class="num" id="LN168">168</td><td class="line">}</td></tr>
+<tr class="codeline" data-linenumber="169"><td class="num" id="LN169">169</td><td class="line"> </td></tr>
+<tr class="codeline" data-linenumber="170"><td class="num" id="LN170">170</td><td class="line"><span class='keyword'>static</span> <span class='keyword'>void</span></td></tr>
+<tr class="codeline" data-linenumber="171"><td class="num" id="LN171">171</td><td class="line">log_msg (<span class='keyword'>const</span> <span class='keyword'>char</span> *format, ...)</td></tr>
+<tr class="codeline" data-linenumber="172"><td class="num" id="LN172">172</td><td class="line">{</td></tr>
+<tr class="codeline" data-linenumber="173"><td class="num" id="LN173">173</td><td class="line"> <span class='keyword'>if</span> (log_file) {</td></tr>
+<tr class="codeline" data-linenumber="174"><td class="num" id="LN174">174</td><td class="line"> va_list args;</td></tr>
+<tr class="codeline" data-linenumber="175"><td class="num" id="LN175">175</td><td class="line"> </td></tr>
+<tr class="codeline" data-linenumber="176"><td class="num" id="LN176">176</td><td class="line"> <span class='macro'>va_start (args, format)<span class='macro_popup'>__builtin_va_start(args, format)</span></span>;</td></tr>
+<tr class="codeline" data-linenumber="177"><td class="num" id="LN177">177</td><td class="line"> vfprintf (log_file, format, args);</td></tr>
+<tr class="codeline" data-linenumber="178"><td class="num" id="LN178">178</td><td class="line"> <span class='macro'>va_end (args)<span class='macro_popup'>__builtin_va_end(args)</span></span>;</td></tr>
+<tr class="codeline" data-linenumber="179"><td class="num" id="LN179">179</td><td class="line"> }</td></tr>
+<tr class="codeline" data-linenumber="180"><td class="num" id="LN180">180</td><td class="line">}</td></tr>
+<tr class="codeline" data-linenumber="181"><td class="num" id="LN181">181</td><td class="line"> </td></tr>
+<tr class="codeline" data-linenumber="182"><td class="num" id="LN182">182</td><td class="line"><span class='keyword'>static</span> <span class='keyword'>void</span></td></tr>
+<tr class="codeline" data-linenumber="183"><td class="num" id="LN183">183</td><td class="line">log_output (MateRROutputInfo *output)</td></tr>
+<tr class="codeline" data-linenumber="184"><td class="num" id="LN184">184</td><td class="line">{</td></tr>
+<tr class="codeline" data-linenumber="185"><td class="num" id="LN185">185</td><td class="line"> gchar *name = mate_rr_output_info_get_name (output);</td></tr>
+<tr class="codeline" data-linenumber="186"><td class="num" id="LN186">186</td><td class="line"> gchar *display_name = mate_rr_output_info_get_display_name (output);</td></tr>
+<tr class="codeline" data-linenumber="187"><td class="num" id="LN187">187</td><td class="line"> </td></tr>
+<tr class="codeline" data-linenumber="188"><td class="num" id="LN188">188</td><td class="line"> log_msg (<span class='string_literal'>" %s: "</span>, name ? name : <span class='string_literal'>"unknown"</span>);</td></tr>
+<tr class="codeline" data-linenumber="189"><td class="num" id="LN189">189</td><td class="line"> </td></tr>
+<tr class="codeline" data-linenumber="190"><td class="num" id="LN190">190</td><td class="line"> <span class='keyword'>if</span> (mate_rr_output_info_is_connected (output)) {</td></tr>
+<tr class="codeline" data-linenumber="191"><td class="num" id="LN191">191</td><td class="line"> <span class='keyword'>if</span> (mate_rr_output_info_is_active (output)) {</td></tr>
+<tr class="codeline" data-linenumber="192"><td class="num" id="LN192">192</td><td class="line"> <span class='keyword'>int</span> x, y, width, height;</td></tr>
+<tr class="codeline" data-linenumber="193"><td class="num" id="LN193">193</td><td class="line"> mate_rr_output_info_get_geometry (output, &amp;x, &amp;y, &amp;width, &amp;height);</td></tr>
+<tr class="codeline" data-linenumber="194"><td class="num" id="LN194">194</td><td class="line"> log_msg (<span class='string_literal'>"%dx%[email protected]%d +%d+%d"</span>,</td></tr>
+<tr class="codeline" data-linenumber="195"><td class="num" id="LN195">195</td><td class="line"> width,</td></tr>
+<tr class="codeline" data-linenumber="196"><td class="num" id="LN196">196</td><td class="line"> height,</td></tr>
+<tr class="codeline" data-linenumber="197"><td class="num" id="LN197">197</td><td class="line"> mate_rr_output_info_get_refresh_rate (output),</td></tr>
+<tr class="codeline" data-linenumber="198"><td class="num" id="LN198">198</td><td class="line"> x,</td></tr>
+<tr class="codeline" data-linenumber="199"><td class="num" id="LN199">199</td><td class="line"> y);</td></tr>
+<tr class="codeline" data-linenumber="200"><td class="num" id="LN200">200</td><td class="line"> } <span class='keyword'>else</span></td></tr>
+<tr class="codeline" data-linenumber="201"><td class="num" id="LN201">201</td><td class="line"> log_msg (<span class='string_literal'>"off"</span>);</td></tr>
+<tr class="codeline" data-linenumber="202"><td class="num" id="LN202">202</td><td class="line"> } <span class='keyword'>else</span></td></tr>
+<tr class="codeline" data-linenumber="203"><td class="num" id="LN203">203</td><td class="line"> log_msg (<span class='string_literal'>"disconnected"</span>);</td></tr>
+<tr class="codeline" data-linenumber="204"><td class="num" id="LN204">204</td><td class="line"> </td></tr>
+<tr class="codeline" data-linenumber="205"><td class="num" id="LN205">205</td><td class="line"> <span class='keyword'>if</span> (display_name)</td></tr>
+<tr class="codeline" data-linenumber="206"><td class="num" id="LN206">206</td><td class="line"> log_msg (<span class='string_literal'>" (%s)"</span>, display_name);</td></tr>
+<tr class="codeline" data-linenumber="207"><td class="num" id="LN207">207</td><td class="line"> </td></tr>
+<tr class="codeline" data-linenumber="208"><td class="num" id="LN208">208</td><td class="line"> <span class='keyword'>if</span> (mate_rr_output_info_get_primary (output))</td></tr>
+<tr class="codeline" data-linenumber="209"><td class="num" id="LN209">209</td><td class="line"> log_msg (<span class='string_literal'>" (primary output)"</span>);</td></tr>
+<tr class="codeline" data-linenumber="210"><td class="num" id="LN210">210</td><td class="line"> </td></tr>
+<tr class="codeline" data-linenumber="211"><td class="num" id="LN211">211</td><td class="line"> log_msg (<span class='string_literal'>"\n"</span>);</td></tr>
+<tr class="codeline" data-linenumber="212"><td class="num" id="LN212">212</td><td class="line">}</td></tr>
+<tr class="codeline" data-linenumber="213"><td class="num" id="LN213">213</td><td class="line"> </td></tr>
+<tr class="codeline" data-linenumber="214"><td class="num" id="LN214">214</td><td class="line"><span class='keyword'>static</span> <span class='keyword'>void</span></td></tr>
+<tr class="codeline" data-linenumber="215"><td class="num" id="LN215">215</td><td class="line">log_configuration (MateRRConfig *config)</td></tr>
+<tr class="codeline" data-linenumber="216"><td class="num" id="LN216">216</td><td class="line">{</td></tr>
+<tr class="codeline" data-linenumber="217"><td class="num" id="LN217">217</td><td class="line"> <span class='keyword'>int</span> i;</td></tr>
+<tr class="codeline" data-linenumber="218"><td class="num" id="LN218">218</td><td class="line"> MateRROutputInfo **outputs = mate_rr_config_get_outputs (config);</td></tr>
+<tr class="codeline" data-linenumber="219"><td class="num" id="LN219">219</td><td class="line"> </td></tr>
+<tr class="codeline" data-linenumber="220"><td class="num" id="LN220">220</td><td class="line"> log_msg (<span class='string_literal'>" cloned: %s\n"</span>, mate_rr_config_get_clone (config) ? <span class='string_literal'>"yes"</span> : <span class='string_literal'>"no"</span>);</td></tr>
+<tr class="codeline" data-linenumber="221"><td class="num" id="LN221">221</td><td class="line"> </td></tr>
+<tr class="codeline" data-linenumber="222"><td class="num" id="LN222">222</td><td class="line"> <span class='keyword'>for</span> (i = 0; outputs[i] != <span class='macro'>NULL<span class='macro_popup'>((void*)0)</span></span>; i++)</td></tr>
+<tr class="codeline" data-linenumber="223"><td class="num" id="LN223">223</td><td class="line"> log_output (outputs[i]);</td></tr>
+<tr class="codeline" data-linenumber="224"><td class="num" id="LN224">224</td><td class="line"> </td></tr>
+<tr class="codeline" data-linenumber="225"><td class="num" id="LN225">225</td><td class="line"> <span class='keyword'>if</span> (i == 0)</td></tr>
+<tr class="codeline" data-linenumber="226"><td class="num" id="LN226">226</td><td class="line"> log_msg (<span class='string_literal'>" no outputs!\n"</span>);</td></tr>
+<tr class="codeline" data-linenumber="227"><td class="num" id="LN227">227</td><td class="line">}</td></tr>
+<tr class="codeline" data-linenumber="228"><td class="num" id="LN228">228</td><td class="line"> </td></tr>
+<tr class="codeline" data-linenumber="229"><td class="num" id="LN229">229</td><td class="line"><span class='keyword'>static</span> <span class='keyword'>char</span></td></tr>
+<tr class="codeline" data-linenumber="230"><td class="num" id="LN230">230</td><td class="line">timestamp_relationship (guint32 a, guint32 b)</td></tr>
+<tr class="codeline" data-linenumber="231"><td class="num" id="LN231">231</td><td class="line">{</td></tr>
+<tr class="codeline" data-linenumber="232"><td class="num" id="LN232">232</td><td class="line"> <span class='keyword'>if</span> (a &lt; b)</td></tr>
+<tr class="codeline" data-linenumber="233"><td class="num" id="LN233">233</td><td class="line"> <span class='keyword'>return</span> '&lt;';</td></tr>
+<tr class="codeline" data-linenumber="234"><td class="num" id="LN234">234</td><td class="line"> <span class='keyword'>else</span> <span class='keyword'>if</span> (a &gt; b)</td></tr>
+<tr class="codeline" data-linenumber="235"><td class="num" id="LN235">235</td><td class="line"> <span class='keyword'>return</span> '&gt;';</td></tr>
+<tr class="codeline" data-linenumber="236"><td class="num" id="LN236">236</td><td class="line"> <span class='keyword'>else</span></td></tr>
+<tr class="codeline" data-linenumber="237"><td class="num" id="LN237">237</td><td class="line"> <span class='keyword'>return</span> '=';</td></tr>
+<tr class="codeline" data-linenumber="238"><td class="num" id="LN238">238</td><td class="line">}</td></tr>
+<tr class="codeline" data-linenumber="239"><td class="num" id="LN239">239</td><td class="line"> </td></tr>
+<tr class="codeline" data-linenumber="240"><td class="num" id="LN240">240</td><td class="line"><span class='keyword'>static</span> <span class='keyword'>void</span></td></tr>
+<tr class="codeline" data-linenumber="241"><td class="num" id="LN241">241</td><td class="line">log_screen (MateRRScreen *screen)</td></tr>
+<tr class="codeline" data-linenumber="242"><td class="num" id="LN242">242</td><td class="line">{</td></tr>
+<tr class="codeline" data-linenumber="243"><td class="num" id="LN243">243</td><td class="line"> MateRRConfig *config;</td></tr>
+<tr class="codeline" data-linenumber="244"><td class="num" id="LN244">244</td><td class="line"> <span class='keyword'>int</span> min_w, min_h, max_w, max_h;</td></tr>
+<tr class="codeline" data-linenumber="245"><td class="num" id="LN245">245</td><td class="line"> guint32 change_timestamp, config_timestamp;</td></tr>
+<tr class="codeline" data-linenumber="246"><td class="num" id="LN246">246</td><td class="line"> </td></tr>
+<tr class="codeline" data-linenumber="247"><td class="num" id="LN247">247</td><td class="line"> <span class='keyword'>if</span> (!log_file)</td></tr>
+<tr class="codeline" data-linenumber="248"><td class="num" id="LN248">248</td><td class="line"> <span class='keyword'>return</span>;</td></tr>
+<tr class="codeline" data-linenumber="249"><td class="num" id="LN249">249</td><td class="line"> </td></tr>
+<tr class="codeline" data-linenumber="250"><td class="num" id="LN250">250</td><td class="line"> config = mate_rr_config_new_current (screen, <span class='macro'>NULL<span class='macro_popup'>((void*)0)</span></span>);</td></tr>
+<tr class="codeline" data-linenumber="251"><td class="num" id="LN251">251</td><td class="line"> </td></tr>
+<tr class="codeline" data-linenumber="252"><td class="num" id="LN252">252</td><td class="line"> mate_rr_screen_get_ranges (screen, &amp;min_w, &amp;max_w, &amp;min_h, &amp;max_h);</td></tr>
+<tr class="codeline" data-linenumber="253"><td class="num" id="LN253">253</td><td class="line"> mate_rr_screen_get_timestamps (screen, &amp;change_timestamp, &amp;config_timestamp);</td></tr>
+<tr class="codeline" data-linenumber="254"><td class="num" id="LN254">254</td><td class="line"> </td></tr>
+<tr class="codeline" data-linenumber="255"><td class="num" id="LN255">255</td><td class="line"> log_msg (<span class='string_literal'>" Screen min(%d, %d), max(%d, %d), change=%u %c config=%u\n"</span>,</td></tr>
+<tr class="codeline" data-linenumber="256"><td class="num" id="LN256">256</td><td class="line"> min_w, min_h,</td></tr>
+<tr class="codeline" data-linenumber="257"><td class="num" id="LN257">257</td><td class="line"> max_w, max_h,</td></tr>
+<tr class="codeline" data-linenumber="258"><td class="num" id="LN258">258</td><td class="line"> change_timestamp,</td></tr>
+<tr class="codeline" data-linenumber="259"><td class="num" id="LN259">259</td><td class="line"> timestamp_relationship (change_timestamp, config_timestamp),</td></tr>
+<tr class="codeline" data-linenumber="260"><td class="num" id="LN260">260</td><td class="line"> config_timestamp);</td></tr>
+<tr class="codeline" data-linenumber="261"><td class="num" id="LN261">261</td><td class="line"> </td></tr>
+<tr class="codeline" data-linenumber="262"><td class="num" id="LN262">262</td><td class="line"> log_configuration (config);</td></tr>
+<tr class="codeline" data-linenumber="263"><td class="num" id="LN263">263</td><td class="line"> g_object_unref (config);</td></tr>
+<tr class="codeline" data-linenumber="264"><td class="num" id="LN264">264</td><td class="line">}</td></tr>
+<tr class="codeline" data-linenumber="265"><td class="num" id="LN265">265</td><td class="line"> </td></tr>
+<tr class="codeline" data-linenumber="266"><td class="num" id="LN266">266</td><td class="line"><span class='keyword'>static</span> <span class='keyword'>void</span></td></tr>
+<tr class="codeline" data-linenumber="267"><td class="num" id="LN267">267</td><td class="line">log_configurations (MateRRConfig **configs)</td></tr>
+<tr class="codeline" data-linenumber="268"><td class="num" id="LN268">268</td><td class="line">{</td></tr>
+<tr class="codeline" data-linenumber="269"><td class="num" id="LN269">269</td><td class="line"> <span class='keyword'>int</span> i;</td></tr>
+<tr class="codeline" data-linenumber="270"><td class="num" id="LN270">270</td><td class="line"> </td></tr>
+<tr class="codeline" data-linenumber="271"><td class="num" id="LN271">271</td><td class="line"> <span class='keyword'>if</span> (!configs) {</td></tr>
+<tr class="codeline" data-linenumber="272"><td class="num" id="LN272">272</td><td class="line"> log_msg (<span class='string_literal'>" No configurations\n"</span>);</td></tr>
+<tr class="codeline" data-linenumber="273"><td class="num" id="LN273">273</td><td class="line"> <span class='keyword'>return</span>;</td></tr>
+<tr class="codeline" data-linenumber="274"><td class="num" id="LN274">274</td><td class="line"> }</td></tr>
+<tr class="codeline" data-linenumber="275"><td class="num" id="LN275">275</td><td class="line"> </td></tr>
+<tr class="codeline" data-linenumber="276"><td class="num" id="LN276">276</td><td class="line"> <span class='keyword'>for</span> (i = 0; configs[i]; i++) {</td></tr>
+<tr class="codeline" data-linenumber="277"><td class="num" id="LN277">277</td><td class="line"> log_msg (<span class='string_literal'>" Configuration %d\n"</span>, i);</td></tr>
+<tr class="codeline" data-linenumber="278"><td class="num" id="LN278">278</td><td class="line"> log_configuration (configs[i]);</td></tr>
+<tr class="codeline" data-linenumber="279"><td class="num" id="LN279">279</td><td class="line"> }</td></tr>
+<tr class="codeline" data-linenumber="280"><td class="num" id="LN280">280</td><td class="line">}</td></tr>
+<tr class="codeline" data-linenumber="281"><td class="num" id="LN281">281</td><td class="line"> </td></tr>
+<tr class="codeline" data-linenumber="282"><td class="num" id="LN282">282</td><td class="line"><span class='keyword'>static</span> <span class='keyword'>void</span></td></tr>
+<tr class="codeline" data-linenumber="283"><td class="num" id="LN283">283</td><td class="line">show_timestamps_dialog (MsdXrandrManager *manager, <span class='keyword'>const</span> <span class='keyword'>char</span> *msg)</td></tr>
+<tr class="codeline" data-linenumber="284"><td class="num" id="LN284">284</td><td class="line">{</td></tr>
+<tr class="codeline" data-linenumber="285"><td class="num" id="LN285">285</td><td class="line"><span class='directive'>#if 1</span></td></tr>
+<tr class="codeline" data-linenumber="286"><td class="num" id="LN286">286</td><td class="line"> <span class='keyword'>return</span>;</td></tr>
+<tr class="codeline" data-linenumber="287"><td class="num" id="LN287">287</td><td class="line"><span class='directive'>#else</span></td></tr>
+<tr class="codeline" data-linenumber="288"><td class="num" id="LN288">288</td><td class="line"> <span class='keyword'>struct</span> MsdXrandrManagerPrivate *priv = manager-&gt;priv;</td></tr>
+<tr class="codeline" data-linenumber="289"><td class="num" id="LN289">289</td><td class="line"> GtkWidget *dialog;</td></tr>
+<tr class="codeline" data-linenumber="290"><td class="num" id="LN290">290</td><td class="line"> guint32 change_timestamp, config_timestamp;</td></tr>
+<tr class="codeline" data-linenumber="291"><td class="num" id="LN291">291</td><td class="line"> <span class='keyword'>static</span> <span class='keyword'>int</span> serial;</td></tr>
+<tr class="codeline" data-linenumber="292"><td class="num" id="LN292">292</td><td class="line"> </td></tr>
+<tr class="codeline" data-linenumber="293"><td class="num" id="LN293">293</td><td class="line"> mate_rr_screen_get_timestamps (priv-&gt;rw_screen, &amp;change_timestamp, &amp;config_timestamp);</td></tr>
+<tr class="codeline" data-linenumber="294"><td class="num" id="LN294">294</td><td class="line"> </td></tr>
+<tr class="codeline" data-linenumber="295"><td class="num" id="LN295">295</td><td class="line"> dialog = gtk_message_dialog_new (<span class='macro'>NULL<span class='macro_popup'>((void*)0)</span></span>,</td></tr>
+<tr class="codeline" data-linenumber="296"><td class="num" id="LN296">296</td><td class="line"> 0,</td></tr>
+<tr class="codeline" data-linenumber="297"><td class="num" id="LN297">297</td><td class="line"> GTK_MESSAGE_INFO,</td></tr>
+<tr class="codeline" data-linenumber="298"><td class="num" id="LN298">298</td><td class="line"> GTK_BUTTONS_CLOSE,</td></tr>
+<tr class="codeline" data-linenumber="299"><td class="num" id="LN299">299</td><td class="line"> <span class='string_literal'>"RANDR timestamps (%d):\n%s\nchange: %u\nconfig: %u"</span>,</td></tr>
+<tr class="codeline" data-linenumber="300"><td class="num" id="LN300">300</td><td class="line"> serial++,</td></tr>
+<tr class="codeline" data-linenumber="301"><td class="num" id="LN301">301</td><td class="line"> msg,</td></tr>
+<tr class="codeline" data-linenumber="302"><td class="num" id="LN302">302</td><td class="line"> change_timestamp,</td></tr>
+<tr class="codeline" data-linenumber="303"><td class="num" id="LN303">303</td><td class="line"> config_timestamp);</td></tr>
+<tr class="codeline" data-linenumber="304"><td class="num" id="LN304">304</td><td class="line"> <span class='macro'>g_signal_connect (dialog, <span class='string_literal'>"response"</span>,<span class='macro_popup'>g_signal_connect_data ((dialog), ("response"), (((GCallback) (<br>gtk_widget_destroy))), (((void*)0)), ((void*)0), (GConnectFlags<br>) 0)</span></span></td></tr>
+<tr class="codeline" data-linenumber="305"><td class="num" id="LN305">305</td><td class="line"> <span class='macro'>G_CALLBACK (gtk_widget_destroy), NULL)<span class='macro_popup'>g_signal_connect_data ((dialog), ("response"), (((GCallback) (<br>gtk_widget_destroy))), (((void*)0)), ((void*)0), (GConnectFlags<br>) 0)</span></span>;</td></tr>
+<tr class="codeline" data-linenumber="306"><td class="num" id="LN306">306</td><td class="line"> gtk_widget_show (dialog);</td></tr>
+<tr class="codeline" data-linenumber="307"><td class="num" id="LN307">307</td><td class="line"><span class='directive'>#endif</span></td></tr>
+<tr class="codeline" data-linenumber="308"><td class="num" id="LN308">308</td><td class="line">}</td></tr>
+<tr class="codeline" data-linenumber="309"><td class="num" id="LN309">309</td><td class="line"> </td></tr>
+<tr class="codeline" data-linenumber="310"><td class="num" id="LN310">310</td><td class="line"><span class='comment'>/* This function centralizes the use of mate_rr_config_apply_from_filename_with_time().</span></td></tr>
+<tr class="codeline" data-linenumber="311"><td class="num" id="LN311">311</td><td class="line"> <span class='comment'>*</span></td></tr>
+<tr class="codeline" data-linenumber="312"><td class="num" id="LN312">312</td><td class="line"> <span class='comment'>* Optionally filters out MATE_RR_ERROR_NO_MATCHING_CONFIG from</span></td></tr>
+<tr class="codeline" data-linenumber="313"><td class="num" id="LN313">313</td><td class="line"> <span class='comment'>* mate_rr_config_apply_from_filename_with_time(), since that is not usually an error.</span></td></tr>
+<tr class="codeline" data-linenumber="314"><td class="num" id="LN314">314</td><td class="line"> <span class='comment'>*/</span></td></tr>
+<tr class="codeline" data-linenumber="315"><td class="num" id="LN315">315</td><td class="line"><span class='keyword'>static</span> gboolean</td></tr>
+<tr class="codeline" data-linenumber="316"><td class="num" id="LN316">316</td><td class="line">apply_configuration_from_filename (MsdXrandrManager *manager,</td></tr>
+<tr class="codeline" data-linenumber="317"><td class="num" id="LN317">317</td><td class="line"> <span class='keyword'>const</span> <span class='keyword'>char</span> *filename,</td></tr>
+<tr class="codeline" data-linenumber="318"><td class="num" id="LN318">318</td><td class="line"> gboolean no_matching_config_is_an_error,</td></tr>
+<tr class="codeline" data-linenumber="319"><td class="num" id="LN319">319</td><td class="line"> guint32 timestamp,</td></tr>
+<tr class="codeline" data-linenumber="320"><td class="num" id="LN320">320</td><td class="line"> GError **error)</td></tr>
+<tr class="codeline" data-linenumber="321"><td class="num" id="LN321">321</td><td class="line">{</td></tr>
+<tr class="codeline" data-linenumber="322"><td class="num" id="LN322">322</td><td class="line"> <span class='keyword'>struct</span> MsdXrandrManagerPrivate *priv = manager-&gt;priv;</td></tr>
+<tr class="codeline" data-linenumber="323"><td class="num" id="LN323">323</td><td class="line"> GError *my_error;</td></tr>
+<tr class="codeline" data-linenumber="324"><td class="num" id="LN324">324</td><td class="line"> gboolean success;</td></tr>
+<tr class="codeline" data-linenumber="325"><td class="num" id="LN325">325</td><td class="line"> <span class='keyword'>char</span> *str;</td></tr>
+<tr class="codeline" data-linenumber="326"><td class="num" id="LN326">326</td><td class="line"> </td></tr>
+<tr class="codeline" data-linenumber="327"><td class="num" id="LN327">327</td><td class="line"> str = g_strdup_printf (<span class='string_literal'>"Applying %s with timestamp %d"</span>, filename, timestamp);</td></tr>
+<tr class="codeline" data-linenumber="328"><td class="num" id="LN328">328</td><td class="line"> show_timestamps_dialog (manager, str);</td></tr>
+<tr class="codeline" data-linenumber="329"><td class="num" id="LN329">329</td><td class="line"> g_free (str);</td></tr>
+<tr class="codeline" data-linenumber="330"><td class="num" id="LN330">330</td><td class="line"> </td></tr>
+<tr class="codeline" data-linenumber="331"><td class="num" id="LN331">331</td><td class="line"> my_error = <span class='macro'>NULL<span class='macro_popup'>((void*)0)</span></span>;</td></tr>
+<tr class="codeline" data-linenumber="332"><td class="num" id="LN332">332</td><td class="line"> success = mate_rr_config_apply_from_filename_with_time (priv-&gt;rw_screen, filename, timestamp, &amp;my_error);</td></tr>
+<tr class="codeline" data-linenumber="333"><td class="num" id="LN333">333</td><td class="line"> <span class='keyword'>if</span> (success)</td></tr>
+<tr class="codeline" data-linenumber="334"><td class="num" id="LN334">334</td><td class="line"> <span class='keyword'>return</span> <span class='macro'>TRUE<span class='macro_popup'>(!(0))</span></span>;</td></tr>
+<tr class="codeline" data-linenumber="335"><td class="num" id="LN335">335</td><td class="line"> </td></tr>
+<tr class="codeline" data-linenumber="336"><td class="num" id="LN336">336</td><td class="line"> <span class='keyword'>if</span> (g_error_matches (my_error, <span class='macro'>MATE_RR_ERROR<span class='macro_popup'>(mate_rr_error_quark ())</span></span>, MATE_RR_ERROR_NO_MATCHING_CONFIG)) {</td></tr>
+<tr class="codeline" data-linenumber="337"><td class="num" id="LN337">337</td><td class="line"> <span class='keyword'>if</span> (no_matching_config_is_an_error)</td></tr>
+<tr class="codeline" data-linenumber="338"><td class="num" id="LN338">338</td><td class="line"> <span class='keyword'>goto</span> fail;</td></tr>
+<tr class="codeline" data-linenumber="339"><td class="num" id="LN339">339</td><td class="line"> </td></tr>
+<tr class="codeline" data-linenumber="340"><td class="num" id="LN340">340</td><td class="line"> <span class='comment'>/* This is not an error; the user probably changed his monitors</span></td></tr>
+<tr class="codeline" data-linenumber="341"><td class="num" id="LN341">341</td><td class="line"> <span class='comment'>* and so they don't match any of the stored configurations.</span></td></tr>
+<tr class="codeline" data-linenumber="342"><td class="num" id="LN342">342</td><td class="line"> <span class='comment'>*/</span></td></tr>
+<tr class="codeline" data-linenumber="343"><td class="num" id="LN343">343</td><td class="line"> g_error_free (my_error);</td></tr>
+<tr class="codeline" data-linenumber="344"><td class="num" id="LN344">344</td><td class="line"> <span class='keyword'>return</span> <span class='macro'>TRUE<span class='macro_popup'>(!(0))</span></span>;</td></tr>
+<tr class="codeline" data-linenumber="345"><td class="num" id="LN345">345</td><td class="line"> }</td></tr>
+<tr class="codeline" data-linenumber="346"><td class="num" id="LN346">346</td><td class="line"> </td></tr>
+<tr class="codeline" data-linenumber="347"><td class="num" id="LN347">347</td><td class="line">fail:</td></tr>
+<tr class="codeline" data-linenumber="348"><td class="num" id="LN348">348</td><td class="line"> g_propagate_error (error, my_error);</td></tr>
+<tr class="codeline" data-linenumber="349"><td class="num" id="LN349">349</td><td class="line"> <span class='keyword'>return</span> <span class='macro'>FALSE<span class='macro_popup'>(0)</span></span>;</td></tr>
+<tr class="codeline" data-linenumber="350"><td class="num" id="LN350">350</td><td class="line">}</td></tr>
+<tr class="codeline" data-linenumber="351"><td class="num" id="LN351">351</td><td class="line"> </td></tr>
+<tr class="codeline" data-linenumber="352"><td class="num" id="LN352">352</td><td class="line"><span class='comment'>/* This function centralizes the use of mate_rr_config_apply_with_time().</span></td></tr>
+<tr class="codeline" data-linenumber="353"><td class="num" id="LN353">353</td><td class="line"> <span class='comment'>*</span></td></tr>
+<tr class="codeline" data-linenumber="354"><td class="num" id="LN354">354</td><td class="line"> <span class='comment'>* Applies a configuration and displays an error message if an error happens.</span></td></tr>
+<tr class="codeline" data-linenumber="355"><td class="num" id="LN355">355</td><td class="line"> <span class='comment'>* We just return whether setting the configuration succeeded.</span></td></tr>
+<tr class="codeline" data-linenumber="356"><td class="num" id="LN356">356</td><td class="line"> <span class='comment'>*/</span></td></tr>
+<tr class="codeline" data-linenumber="357"><td class="num" id="LN357">357</td><td class="line"><span class='keyword'>static</span> gboolean</td></tr>
+<tr class="codeline" data-linenumber="358"><td class="num" id="LN358">358</td><td class="line">apply_configuration_and_display_error (MsdXrandrManager *manager, MateRRConfig *config, guint32 timestamp)</td></tr>
+<tr class="codeline" data-linenumber="359"><td class="num" id="LN359">359</td><td class="line">{</td></tr>
+<tr class="codeline" data-linenumber="360"><td class="num" id="LN360">360</td><td class="line"> MsdXrandrManagerPrivate *priv = manager-&gt;priv;</td></tr>
+<tr class="codeline" data-linenumber="361"><td class="num" id="LN361">361</td><td class="line"> GError *error;</td></tr>
+<tr class="codeline" data-linenumber="362"><td class="num" id="LN362">362</td><td class="line"> gboolean success;</td></tr>
+<tr class="codeline" data-linenumber="363"><td class="num" id="LN363">363</td><td class="line"> </td></tr>
+<tr class="codeline" data-linenumber="364"><td class="num" id="LN364">364</td><td class="line"> error = <span class='macro'>NULL<span class='macro_popup'>((void*)0)</span></span>;</td></tr>
+<tr class="codeline" data-linenumber="365"><td class="num" id="LN365">365</td><td class="line"> success = mate_rr_config_apply_with_time (config, priv-&gt;rw_screen, timestamp, &amp;error);</td></tr>
+<tr class="codeline" data-linenumber="366"><td class="num" id="LN366">366</td><td class="line"> <span class='keyword'>if</span> (!success) {</td></tr>
+<tr class="codeline" data-linenumber="367"><td class="num" id="LN367">367</td><td class="line"> log_msg (<span class='string_literal'>"Could not switch to the following configuration (timestamp %u): %s\n"</span>, timestamp, error-&gt;message);</td></tr>
+<tr class="codeline" data-linenumber="368"><td class="num" id="LN368">368</td><td class="line"> log_configuration (config);</td></tr>
+<tr class="codeline" data-linenumber="369"><td class="num" id="LN369">369</td><td class="line"> error_message (manager, <span class='macro'>_(<span class='string_literal'>"Could not switch the monitor configuration"</span>)<span class='macro_popup'>gettext ("Could not switch the monitor configuration")</span></span>, error, <span class='macro'>NULL<span class='macro_popup'>((void*)0)</span></span>);</td></tr>
+<tr class="codeline" data-linenumber="370"><td class="num" id="LN370">370</td><td class="line"> g_error_free (error);</td></tr>
+<tr class="codeline" data-linenumber="371"><td class="num" id="LN371">371</td><td class="line"> }</td></tr>
+<tr class="codeline" data-linenumber="372"><td class="num" id="LN372">372</td><td class="line"> </td></tr>
+<tr class="codeline" data-linenumber="373"><td class="num" id="LN373">373</td><td class="line"> <span class='keyword'>return</span> success;</td></tr>
+<tr class="codeline" data-linenumber="374"><td class="num" id="LN374">374</td><td class="line">}</td></tr>
+<tr class="codeline" data-linenumber="375"><td class="num" id="LN375">375</td><td class="line"> </td></tr>
+<tr class="codeline" data-linenumber="376"><td class="num" id="LN376">376</td><td class="line"><span class='keyword'>static</span> <span class='keyword'>void</span></td></tr>
+<tr class="codeline" data-linenumber="377"><td class="num" id="LN377">377</td><td class="line">restore_backup_configuration_without_messages (<span class='keyword'>const</span> <span class='keyword'>char</span> *backup_filename, <span class='keyword'>const</span> <span class='keyword'>char</span> *intended_filename)</td></tr>
+<tr class="codeline" data-linenumber="378"><td class="num" id="LN378">378</td><td class="line">{</td></tr>
+<tr class="codeline" data-linenumber="379"><td class="num" id="LN379">379</td><td class="line"> backup_filename = mate_rr_config_get_backup_filename ();</td></tr>
+<tr class="codeline" data-linenumber="380"><td class="num" id="LN380">380</td><td class="line"> rename (backup_filename, intended_filename);</td></tr>
+<tr class="codeline" data-linenumber="381"><td class="num" id="LN381">381</td><td class="line">}</td></tr>
+<tr class="codeline" data-linenumber="382"><td class="num" id="LN382">382</td><td class="line"> </td></tr>
+<tr class="codeline" data-linenumber="383"><td class="num" id="LN383">383</td><td class="line"><span class='keyword'>static</span> <span class='keyword'>void</span></td></tr>
+<tr class="codeline" data-linenumber="384"><td class="num" id="LN384">384</td><td class="line">restore_backup_configuration (MsdXrandrManager *manager, <span class='keyword'>const</span> <span class='keyword'>char</span> *backup_filename, <span class='keyword'>const</span> <span class='keyword'>char</span> *intended_filename, guint32 timestamp)</td></tr>
+<tr class="codeline" data-linenumber="385"><td class="num" id="LN385">385</td><td class="line">{</td></tr>
+<tr class="codeline" data-linenumber="386"><td class="num" id="LN386">386</td><td class="line"> <span class='keyword'>int</span> saved_errno;</td></tr>
+<tr class="codeline" data-linenumber="387"><td class="num" id="LN387">387</td><td class="line"> </td></tr>
+<tr class="codeline" data-linenumber="388"><td class="num" id="LN388">388</td><td class="line"> <span class='keyword'>if</span> (rename (backup_filename, intended_filename) == 0) {</td></tr>
+<tr class="codeline" data-linenumber="389"><td class="num" id="LN389">389</td><td class="line"> GError *error;</td></tr>
+<tr class="codeline" data-linenumber="390"><td class="num" id="LN390">390</td><td class="line"> </td></tr>
+<tr class="codeline" data-linenumber="391"><td class="num" id="LN391">391</td><td class="line"> error = <span class='macro'>NULL<span class='macro_popup'>((void*)0)</span></span>;</td></tr>
+<tr class="codeline" data-linenumber="392"><td class="num" id="LN392">392</td><td class="line"> <span class='keyword'>if</span> (!apply_configuration_from_filename (manager, intended_filename, <span class='macro'>FALSE<span class='macro_popup'>(0)</span></span>, timestamp, &amp;error)) {</td></tr>
+<tr class="codeline" data-linenumber="393"><td class="num" id="LN393">393</td><td class="line"> error_message (manager, <span class='macro'>_(<span class='string_literal'>"Could not restore the display's configuration"</span>)<span class='macro_popup'>gettext ("Could not restore the display's configuration")</span></span>, error, <span class='macro'>NULL<span class='macro_popup'>((void*)0)</span></span>);</td></tr>
+<tr class="codeline" data-linenumber="394"><td class="num" id="LN394">394</td><td class="line"> </td></tr>
+<tr class="codeline" data-linenumber="395"><td class="num" id="LN395">395</td><td class="line"> <span class='keyword'>if</span> (error)</td></tr>
+<tr class="codeline" data-linenumber="396"><td class="num" id="LN396">396</td><td class="line"> g_error_free (error);</td></tr>
+<tr class="codeline" data-linenumber="397"><td class="num" id="LN397">397</td><td class="line"> }</td></tr>
+<tr class="codeline" data-linenumber="398"><td class="num" id="LN398">398</td><td class="line"> </td></tr>
+<tr class="codeline" data-linenumber="399"><td class="num" id="LN399">399</td><td class="line"> <span class='keyword'>return</span>;</td></tr>
+<tr class="codeline" data-linenumber="400"><td class="num" id="LN400">400</td><td class="line"> }</td></tr>
+<tr class="codeline" data-linenumber="401"><td class="num" id="LN401">401</td><td class="line"> </td></tr>
+<tr class="codeline" data-linenumber="402"><td class="num" id="LN402">402</td><td class="line"> saved_errno = <span class='macro'>errno<span class='macro_popup'>(*__errno_location ())</span></span>;</td></tr>
+<tr class="codeline" data-linenumber="403"><td class="num" id="LN403">403</td><td class="line"> </td></tr>
+<tr class="codeline" data-linenumber="404"><td class="num" id="LN404">404</td><td class="line"> <span class='comment'>/* ENOENT means the original file didn't exist. That is *not* an error;</span></td></tr>
+<tr class="codeline" data-linenumber="405"><td class="num" id="LN405">405</td><td class="line"> <span class='comment'>* the backup was not created because there wasn't even an original</span></td></tr>
+<tr class="codeline" data-linenumber="406"><td class="num" id="LN406">406</td><td class="line"> <span class='comment'>* monitors.xml (such as on a first-time login). Note that *here* there</span></td></tr>
+<tr class="codeline" data-linenumber="407"><td class="num" id="LN407">407</td><td class="line"> <span class='comment'>* is a "didn't work" monitors.xml, so we must delete that one.</span></td></tr>
+<tr class="codeline" data-linenumber="408"><td class="num" id="LN408">408</td><td class="line"> <span class='comment'>*/</span></td></tr>
+<tr class="codeline" data-linenumber="409"><td class="num" id="LN409">409</td><td class="line"> <span class='keyword'>if</span> (saved_errno == <span class='macro'>ENOENT<span class='macro_popup'>2</span></span>)</td></tr>
+<tr class="codeline" data-linenumber="410"><td class="num" id="LN410">410</td><td class="line"> unlink (intended_filename);</td></tr>
+<tr class="codeline" data-linenumber="411"><td class="num" id="LN411">411</td><td class="line"> <span class='keyword'>else</span> {</td></tr>
+<tr class="codeline" data-linenumber="412"><td class="num" id="LN412">412</td><td class="line"> <span class='keyword'>char</span> *msg;</td></tr>
+<tr class="codeline" data-linenumber="413"><td class="num" id="LN413">413</td><td class="line"> </td></tr>
+<tr class="codeline" data-linenumber="414"><td class="num" id="LN414">414</td><td class="line"> msg = g_strdup_printf (<span class='string_literal'>"Could not rename %s to %s: %s"</span>,</td></tr>
+<tr class="codeline" data-linenumber="415"><td class="num" id="LN415">415</td><td class="line"> backup_filename, intended_filename,</td></tr>
+<tr class="codeline" data-linenumber="416"><td class="num" id="LN416">416</td><td class="line"> g_strerror (saved_errno));</td></tr>
+<tr class="codeline" data-linenumber="417"><td class="num" id="LN417">417</td><td class="line"> error_message (manager,</td></tr>
+<tr class="codeline" data-linenumber="418"><td class="num" id="LN418">418</td><td class="line"> <span class='macro'>_(<span class='string_literal'>"Could not restore the display's configuration from a backup"</span>)<span class='macro_popup'>gettext ("Could not restore the display's configuration from a backup"<br>)</span></span>,</td></tr>
+<tr class="codeline" data-linenumber="419"><td class="num" id="LN419">419</td><td class="line"> <span class='macro'>NULL<span class='macro_popup'>((void*)0)</span></span>,</td></tr>
+<tr class="codeline" data-linenumber="420"><td class="num" id="LN420">420</td><td class="line"> msg);</td></tr>
+<tr class="codeline" data-linenumber="421"><td class="num" id="LN421">421</td><td class="line"> g_free (msg);</td></tr>
+<tr class="codeline" data-linenumber="422"><td class="num" id="LN422">422</td><td class="line"> }</td></tr>
+<tr class="codeline" data-linenumber="423"><td class="num" id="LN423">423</td><td class="line"> </td></tr>
+<tr class="codeline" data-linenumber="424"><td class="num" id="LN424">424</td><td class="line"> unlink (backup_filename);</td></tr>
+<tr class="codeline" data-linenumber="425"><td class="num" id="LN425">425</td><td class="line">}</td></tr>
+<tr class="codeline" data-linenumber="426"><td class="num" id="LN426">426</td><td class="line"> </td></tr>
+<tr class="codeline" data-linenumber="427"><td class="num" id="LN427">427</td><td class="line"><span class='keyword'>typedef</span> <span class='keyword'>struct</span> {</td></tr>
+<tr class="codeline" data-linenumber="428"><td class="num" id="LN428">428</td><td class="line"> MsdXrandrManager *manager;</td></tr>
+<tr class="codeline" data-linenumber="429"><td class="num" id="LN429">429</td><td class="line"> GtkWidget *dialog;</td></tr>
+<tr class="codeline" data-linenumber="430"><td class="num" id="LN430">430</td><td class="line"> </td></tr>
+<tr class="codeline" data-linenumber="431"><td class="num" id="LN431">431</td><td class="line"> <span class='keyword'>int</span> countdown;</td></tr>
+<tr class="codeline" data-linenumber="432"><td class="num" id="LN432">432</td><td class="line"> <span class='keyword'>int</span> response_id;</td></tr>
+<tr class="codeline" data-linenumber="433"><td class="num" id="LN433">433</td><td class="line">} TimeoutDialog;</td></tr>
+<tr class="codeline" data-linenumber="434"><td class="num" id="LN434">434</td><td class="line"> </td></tr>
+<tr class="codeline" data-linenumber="435"><td class="num" id="LN435">435</td><td class="line"><span class='keyword'>static</span> <span class='keyword'>void</span></td></tr>
+<tr class="codeline" data-linenumber="436"><td class="num" id="LN436">436</td><td class="line">print_countdown_text (TimeoutDialog *timeout)</td></tr>
+<tr class="codeline" data-linenumber="437"><td class="num" id="LN437">437</td><td class="line">{</td></tr>
+<tr class="codeline" data-linenumber="438"><td class="num" id="LN438">438</td><td class="line"> gtk_message_dialog_format_secondary_text (<span class='macro'>GTK_MESSAGE_DIALOG (timeout-&gt;dialog)<span class='macro_popup'>((((GtkMessageDialog*) g_type_check_instance_cast ((GTypeInstance<br>*) ((timeout-&gt;dialog)), ((gtk_message_dialog_get_type ()))<br>))))</span></span>,</td></tr>
+<tr class="codeline" data-linenumber="439"><td class="num" id="LN439">439</td><td class="line"> ngettext (<span class='string_literal'>"The display will be reset to its previous configuration in %d second"</span>,</td></tr>
+<tr class="codeline" data-linenumber="440"><td class="num" id="LN440">440</td><td class="line"> <span class='string_literal'>"The display will be reset to its previous configuration in %d seconds"</span>,</td></tr>
+<tr class="codeline" data-linenumber="441"><td class="num" id="LN441">441</td><td class="line"> timeout-&gt;countdown),</td></tr>
+<tr class="codeline" data-linenumber="442"><td class="num" id="LN442">442</td><td class="line"> timeout-&gt;countdown);</td></tr>
+<tr class="codeline" data-linenumber="443"><td class="num" id="LN443">443</td><td class="line">}</td></tr>
+<tr class="codeline" data-linenumber="444"><td class="num" id="LN444">444</td><td class="line"> </td></tr>
+<tr class="codeline" data-linenumber="445"><td class="num" id="LN445">445</td><td class="line"><span class='keyword'>static</span> gboolean</td></tr>
+<tr class="codeline" data-linenumber="446"><td class="num" id="LN446">446</td><td class="line">timeout_cb (gpointer data)</td></tr>
+<tr class="codeline" data-linenumber="447"><td class="num" id="LN447">447</td><td class="line">{</td></tr>
+<tr class="codeline" data-linenumber="448"><td class="num" id="LN448">448</td><td class="line"> TimeoutDialog *timeout = data;</td></tr>
+<tr class="codeline" data-linenumber="449"><td class="num" id="LN449">449</td><td class="line"> </td></tr>
+<tr class="codeline" data-linenumber="450"><td class="num" id="LN450">450</td><td class="line"> timeout-&gt;countdown--;</td></tr>
+<tr class="codeline" data-linenumber="451"><td class="num" id="LN451">451</td><td class="line"> </td></tr>
+<tr class="codeline" data-linenumber="452"><td class="num" id="LN452">452</td><td class="line"> <span class='keyword'>if</span> (timeout-&gt;countdown == 0) {</td></tr>
+<tr class="codeline" data-linenumber="453"><td class="num" id="LN453">453</td><td class="line"> timeout-&gt;response_id = GTK_RESPONSE_CANCEL;</td></tr>
+<tr class="codeline" data-linenumber="454"><td class="num" id="LN454">454</td><td class="line"> gtk_main_quit ();</td></tr>
+<tr class="codeline" data-linenumber="455"><td class="num" id="LN455">455</td><td class="line"> } <span class='keyword'>else</span> {</td></tr>
+<tr class="codeline" data-linenumber="456"><td class="num" id="LN456">456</td><td class="line"> print_countdown_text (timeout);</td></tr>
+<tr class="codeline" data-linenumber="457"><td class="num" id="LN457">457</td><td class="line"> }</td></tr>
+<tr class="codeline" data-linenumber="458"><td class="num" id="LN458">458</td><td class="line"> </td></tr>
+<tr class="codeline" data-linenumber="459"><td class="num" id="LN459">459</td><td class="line"> <span class='keyword'>return</span> <span class='macro'>TRUE<span class='macro_popup'>(!(0))</span></span>;</td></tr>
+<tr class="codeline" data-linenumber="460"><td class="num" id="LN460">460</td><td class="line">}</td></tr>
+<tr class="codeline" data-linenumber="461"><td class="num" id="LN461">461</td><td class="line"> </td></tr>
+<tr class="codeline" data-linenumber="462"><td class="num" id="LN462">462</td><td class="line"><span class='keyword'>static</span> <span class='keyword'>void</span></td></tr>
+<tr class="codeline" data-linenumber="463"><td class="num" id="LN463">463</td><td class="line">timeout_response_cb (GtkDialog *dialog <span class='macro'>G_GNUC_UNUSED<span class='macro_popup'>__attribute__((__unused__))</span></span>,</td></tr>
+<tr class="codeline" data-linenumber="464"><td class="num" id="LN464">464</td><td class="line"> <span class='keyword'>int</span> response_id,</td></tr>
+<tr class="codeline" data-linenumber="465"><td class="num" id="LN465">465</td><td class="line"> gpointer data)</td></tr>
+<tr class="codeline" data-linenumber="466"><td class="num" id="LN466">466</td><td class="line">{</td></tr>
+<tr class="codeline" data-linenumber="467"><td class="num" id="LN467">467</td><td class="line"> TimeoutDialog *timeout = data;</td></tr>
+<tr class="codeline" data-linenumber="468"><td class="num" id="LN468">468</td><td class="line"> </td></tr>
+<tr class="codeline" data-linenumber="469"><td class="num" id="LN469">469</td><td class="line"> <span class='keyword'>if</span> (response_id == GTK_RESPONSE_DELETE_EVENT) {</td></tr>
+<tr class="codeline" data-linenumber="470"><td class="num" id="LN470">470</td><td class="line"> <span class='comment'>/* The user closed the dialog or pressed ESC, revert */</span></td></tr>
+<tr class="codeline" data-linenumber="471"><td class="num" id="LN471">471</td><td class="line"> timeout-&gt;response_id = GTK_RESPONSE_CANCEL;</td></tr>
+<tr class="codeline" data-linenumber="472"><td class="num" id="LN472">472</td><td class="line"> } <span class='keyword'>else</span></td></tr>
+<tr class="codeline" data-linenumber="473"><td class="num" id="LN473">473</td><td class="line"> timeout-&gt;response_id = response_id;</td></tr>
+<tr class="codeline" data-linenumber="474"><td class="num" id="LN474">474</td><td class="line"> </td></tr>
+<tr class="codeline" data-linenumber="475"><td class="num" id="LN475">475</td><td class="line"> gtk_main_quit ();</td></tr>
+<tr class="codeline" data-linenumber="476"><td class="num" id="LN476">476</td><td class="line">}</td></tr>
+<tr class="codeline" data-linenumber="477"><td class="num" id="LN477">477</td><td class="line"> </td></tr>
+<tr class="codeline" data-linenumber="478"><td class="num" id="LN478">478</td><td class="line"><span class='keyword'>static</span> gboolean</td></tr>
+<tr class="codeline" data-linenumber="479"><td class="num" id="LN479">479</td><td class="line">user_says_things_are_ok (MsdXrandrManager *manager, GdkWindow *parent_window)</td></tr>
+<tr class="codeline" data-linenumber="480"><td class="num" id="LN480">480</td><td class="line">{</td></tr>
+<tr class="codeline" data-linenumber="481"><td class="num" id="LN481">481</td><td class="line"> TimeoutDialog timeout;</td></tr>
+<tr class="codeline" data-linenumber="482"><td class="num" id="LN482">482</td><td class="line"> guint timeout_id;</td></tr>
+<tr class="codeline" data-linenumber="483"><td class="num" id="LN483">483</td><td class="line"> </td></tr>
+<tr class="codeline" data-linenumber="484"><td class="num" id="LN484">484</td><td class="line"> timeout.manager = manager;</td></tr>
+<tr class="codeline" data-linenumber="485"><td class="num" id="LN485">485</td><td class="line"> </td></tr>
+<tr class="codeline" data-linenumber="486"><td class="num" id="LN486">486</td><td class="line"> timeout.dialog = gtk_message_dialog_new (<span class='macro'>NULL<span class='macro_popup'>((void*)0)</span></span>,</td></tr>
+<tr class="codeline" data-linenumber="487"><td class="num" id="LN487">487</td><td class="line"> GTK_DIALOG_MODAL,</td></tr>
+<tr class="codeline" data-linenumber="488"><td class="num" id="LN488">488</td><td class="line"> GTK_MESSAGE_QUESTION,</td></tr>
+<tr class="codeline" data-linenumber="489"><td class="num" id="LN489">489</td><td class="line"> GTK_BUTTONS_NONE,</td></tr>
+<tr class="codeline" data-linenumber="490"><td class="num" id="LN490">490</td><td class="line"> <span class='macro'>_(<span class='string_literal'>"Does the display look OK?"</span>)<span class='macro_popup'>gettext ("Does the display look OK?")</span></span>);</td></tr>
+<tr class="codeline" data-linenumber="491"><td class="num" id="LN491">491</td><td class="line"> </td></tr>
+<tr class="codeline" data-linenumber="492"><td class="num" id="LN492">492</td><td class="line"> timeout.countdown = <span class='macro'>CONFIRMATION_DIALOG_SECONDS<span class='macro_popup'>30</span></span>;</td></tr>
+<tr class="codeline" data-linenumber="493"><td class="num" id="LN493">493</td><td class="line"> </td></tr>
+<tr class="codeline" data-linenumber="494"><td class="num" id="LN494">494</td><td class="line"> print_countdown_text (&amp;timeout);</td></tr>
+<tr class="codeline" data-linenumber="495"><td class="num" id="LN495">495</td><td class="line"> </td></tr>
+<tr class="codeline" data-linenumber="496"><td class="num" id="LN496">496</td><td class="line"> gtk_window_set_icon_name (<span class='macro'>GTK_WINDOW (timeout.dialog)<span class='macro_popup'>((((GtkWindow*) g_type_check_instance_cast ((GTypeInstance*) (<br>(timeout.dialog)), ((gtk_window_get_type ()))))))</span></span>, <span class='string_literal'>"preferences-desktop-display"</span>);</td></tr>
+<tr class="codeline" data-linenumber="497"><td class="num" id="LN497">497</td><td class="line"> gtk_dialog_add_button (<span class='macro'>GTK_DIALOG (timeout.dialog)<span class='macro_popup'>((((GtkDialog*) g_type_check_instance_cast ((GTypeInstance*) (<br>(timeout.dialog)), ((gtk_dialog_get_type ()))))))</span></span>, <span class='macro'>_(<span class='string_literal'>"_Restore Previous Configuration"</span>)<span class='macro_popup'>gettext ("_Restore Previous Configuration")</span></span>, GTK_RESPONSE_CANCEL);</td></tr>
+<tr class="codeline" data-linenumber="498"><td class="num" id="LN498">498</td><td class="line"> gtk_dialog_add_button (<span class='macro'>GTK_DIALOG (timeout.dialog)<span class='macro_popup'>((((GtkDialog*) g_type_check_instance_cast ((GTypeInstance*) (<br>(timeout.dialog)), ((gtk_dialog_get_type ()))))))</span></span>, <span class='macro'>_(<span class='string_literal'>"_Keep This Configuration"</span>)<span class='macro_popup'>gettext ("_Keep This Configuration")</span></span>, GTK_RESPONSE_ACCEPT);</td></tr>
+<tr class="codeline" data-linenumber="499"><td class="num" id="LN499">499</td><td class="line"> gtk_dialog_set_default_response (<span class='macro'>GTK_DIALOG (timeout.dialog)<span class='macro_popup'>((((GtkDialog*) g_type_check_instance_cast ((GTypeInstance*) (<br>(timeout.dialog)), ((gtk_dialog_get_type ()))))))</span></span>, GTK_RESPONSE_ACCEPT); <span class='comment'>/* ah, the optimism */</span></td></tr>
+<tr class="codeline" data-linenumber="500"><td class="num" id="LN500">500</td><td class="line"> </td></tr>
+<tr class="codeline" data-linenumber="501"><td class="num" id="LN501">501</td><td class="line"> <span class='macro'>g_signal_connect (timeout.dialog, <span class='string_literal'>"response"</span>,<span class='macro_popup'>g_signal_connect_data ((timeout.dialog), ("response"), (((GCallback<br>) (timeout_response_cb))), (&amp;timeout), ((void*)0), (GConnectFlags<br>) 0)</span></span></td></tr>
+<tr class="codeline" data-linenumber="502"><td class="num" id="LN502">502</td><td class="line"> <span class='macro'>G_CALLBACK (timeout_response_cb),<span class='macro_popup'>g_signal_connect_data ((timeout.dialog), ("response"), (((GCallback<br>) (timeout_response_cb))), (&amp;timeout), ((void*)0), (GConnectFlags<br>) 0)</span></span></td></tr>
+<tr class="codeline" data-linenumber="503"><td class="num" id="LN503">503</td><td class="line"> <span class='macro'>&amp;timeout)<span class='macro_popup'>g_signal_connect_data ((timeout.dialog), ("response"), (((GCallback<br>) (timeout_response_cb))), (&amp;timeout), ((void*)0), (GConnectFlags<br>) 0)</span></span>;</td></tr>
+<tr class="codeline" data-linenumber="504"><td class="num" id="LN504">504</td><td class="line"> </td></tr>
+<tr class="codeline" data-linenumber="505"><td class="num" id="LN505">505</td><td class="line"> gtk_widget_realize (timeout.dialog);</td></tr>
+<tr class="codeline" data-linenumber="506"><td class="num" id="LN506">506</td><td class="line"> </td></tr>
+<tr class="codeline" data-linenumber="507"><td class="num" id="LN507">507</td><td class="line"> <span class='keyword'>if</span> (parent_window)</td></tr>
+<tr class="codeline" data-linenumber="508"><td class="num" id="LN508">508</td><td class="line"> gdk_window_set_transient_for (gtk_widget_get_window (timeout.dialog), parent_window);</td></tr>
+<tr class="codeline" data-linenumber="509"><td class="num" id="LN509">509</td><td class="line"> </td></tr>
+<tr class="codeline" data-linenumber="510"><td class="num" id="LN510">510</td><td class="line"> gtk_widget_show_all (timeout.dialog);</td></tr>
+<tr class="codeline" data-linenumber="511"><td class="num" id="LN511">511</td><td class="line"> <span class='comment'>/* We don't use g_timeout_add_seconds() since we actually care that the user sees "real" second ticks in the dialog */</span></td></tr>
+<tr class="codeline" data-linenumber="512"><td class="num" id="LN512">512</td><td class="line"> timeout_id = g_timeout_add (1000,</td></tr>
+<tr class="codeline" data-linenumber="513"><td class="num" id="LN513">513</td><td class="line"> timeout_cb,</td></tr>
+<tr class="codeline" data-linenumber="514"><td class="num" id="LN514">514</td><td class="line"> &amp;timeout);</td></tr>
+<tr class="codeline" data-linenumber="515"><td class="num" id="LN515">515</td><td class="line"> gtk_main ();</td></tr>
+<tr class="codeline" data-linenumber="516"><td class="num" id="LN516">516</td><td class="line"> </td></tr>
+<tr class="codeline" data-linenumber="517"><td class="num" id="LN517">517</td><td class="line"> gtk_widget_destroy (timeout.dialog);</td></tr>
+<tr class="codeline" data-linenumber="518"><td class="num" id="LN518">518</td><td class="line"> g_source_remove (timeout_id);</td></tr>
+<tr class="codeline" data-linenumber="519"><td class="num" id="LN519">519</td><td class="line"> </td></tr>
+<tr class="codeline" data-linenumber="520"><td class="num" id="LN520">520</td><td class="line"> <span class='keyword'>if</span> (timeout.response_id == GTK_RESPONSE_ACCEPT)</td></tr>
+<tr class="codeline" data-linenumber="521"><td class="num" id="LN521">521</td><td class="line"> <span class='keyword'>return</span> <span class='macro'>TRUE<span class='macro_popup'>(!(0))</span></span>;</td></tr>
+<tr class="codeline" data-linenumber="522"><td class="num" id="LN522">522</td><td class="line"> <span class='keyword'>else</span></td></tr>
+<tr class="codeline" data-linenumber="523"><td class="num" id="LN523">523</td><td class="line"> <span class='keyword'>return</span> <span class='macro'>FALSE<span class='macro_popup'>(0)</span></span>;</td></tr>
+<tr class="codeline" data-linenumber="524"><td class="num" id="LN524">524</td><td class="line">}</td></tr>
+<tr class="codeline" data-linenumber="525"><td class="num" id="LN525">525</td><td class="line"> </td></tr>
+<tr class="codeline" data-linenumber="526"><td class="num" id="LN526">526</td><td class="line"><span class='keyword'>struct</span> confirmation {</td></tr>
+<tr class="codeline" data-linenumber="527"><td class="num" id="LN527">527</td><td class="line"> MsdXrandrManager *manager;</td></tr>
+<tr class="codeline" data-linenumber="528"><td class="num" id="LN528">528</td><td class="line"> GdkWindow *parent_window;</td></tr>
+<tr class="codeline" data-linenumber="529"><td class="num" id="LN529">529</td><td class="line"> guint32 timestamp;</td></tr>
+<tr class="codeline" data-linenumber="530"><td class="num" id="LN530">530</td><td class="line">};</td></tr>
+<tr class="codeline" data-linenumber="531"><td class="num" id="LN531">531</td><td class="line"> </td></tr>
+<tr class="codeline" data-linenumber="532"><td class="num" id="LN532">532</td><td class="line"><span class='keyword'>static</span> gboolean</td></tr>
+<tr class="codeline" data-linenumber="533"><td class="num" id="LN533">533</td><td class="line">confirm_with_user_idle_cb (gpointer data)</td></tr>
+<tr class="codeline" data-linenumber="534"><td class="num" id="LN534">534</td><td class="line">{</td></tr>
+<tr class="codeline" data-linenumber="535"><td class="num" id="LN535">535</td><td class="line"> <span class='keyword'>struct</span> confirmation *confirmation = data;</td></tr>
+<tr class="codeline" data-linenumber="536"><td class="num" id="LN536">536</td><td class="line"> <span class='keyword'>char</span> *backup_filename;</td></tr>
+<tr class="codeline" data-linenumber="537"><td class="num" id="LN537">537</td><td class="line"> <span class='keyword'>char</span> *intended_filename;</td></tr>
+<tr class="codeline" data-linenumber="538"><td class="num" id="LN538">538</td><td class="line"> </td></tr>
+<tr class="codeline" data-linenumber="539"><td class="num" id="LN539">539</td><td class="line"> backup_filename = mate_rr_config_get_backup_filename ();</td></tr>
+<tr class="codeline" data-linenumber="540"><td class="num" id="LN540">540</td><td class="line"> intended_filename = mate_rr_config_get_intended_filename ();</td></tr>
+<tr class="codeline" data-linenumber="541"><td class="num" id="LN541">541</td><td class="line"> </td></tr>
+<tr class="codeline" data-linenumber="542"><td class="num" id="LN542">542</td><td class="line"> <span class='keyword'>if</span> (user_says_things_are_ok (confirmation-&gt;manager, confirmation-&gt;parent_window))</td></tr>
+<tr class="codeline" data-linenumber="543"><td class="num" id="LN543">543</td><td class="line"> unlink (backup_filename);</td></tr>
+<tr class="codeline" data-linenumber="544"><td class="num" id="LN544">544</td><td class="line"> <span class='keyword'>else</span></td></tr>
+<tr class="codeline" data-linenumber="545"><td class="num" id="LN545">545</td><td class="line"> restore_backup_configuration (confirmation-&gt;manager, backup_filename, intended_filename, confirmation-&gt;timestamp);</td></tr>
+<tr class="codeline" data-linenumber="546"><td class="num" id="LN546">546</td><td class="line"> </td></tr>
+<tr class="codeline" data-linenumber="547"><td class="num" id="LN547">547</td><td class="line"> g_free (confirmation);</td></tr>
+<tr class="codeline" data-linenumber="548"><td class="num" id="LN548">548</td><td class="line"> </td></tr>
+<tr class="codeline" data-linenumber="549"><td class="num" id="LN549">549</td><td class="line"> <span class='keyword'>return</span> <span class='macro'>FALSE<span class='macro_popup'>(0)</span></span>;</td></tr>
+<tr class="codeline" data-linenumber="550"><td class="num" id="LN550">550</td><td class="line">}</td></tr>
+<tr class="codeline" data-linenumber="551"><td class="num" id="LN551">551</td><td class="line"> </td></tr>
+<tr class="codeline" data-linenumber="552"><td class="num" id="LN552">552</td><td class="line"><span class='keyword'>static</span> <span class='keyword'>void</span></td></tr>
+<tr class="codeline" data-linenumber="553"><td class="num" id="LN553">553</td><td class="line">queue_confirmation_by_user (MsdXrandrManager *manager, GdkWindow *parent_window, guint32 timestamp)</td></tr>
+<tr class="codeline" data-linenumber="554"><td class="num" id="LN554">554</td><td class="line">{</td></tr>
+<tr class="codeline" data-linenumber="555"><td class="num" id="LN555">555</td><td class="line"> <span class='keyword'>struct</span> confirmation *confirmation;</td></tr>
+<tr class="codeline" data-linenumber="556"><td class="num" id="LN556">556</td><td class="line"> </td></tr>
+<tr class="codeline" data-linenumber="557"><td class="num" id="LN557">557</td><td class="line"> confirmation = <span class='macro'>g_new (<span class='keyword'>struct</span> confirmation, 1)<span class='macro_popup'>((struct confirmation *) g_malloc_n ((1), sizeof (struct confirmation<br>)))</span></span>;</td></tr>
+<tr class="codeline" data-linenumber="558"><td class="num" id="LN558">558</td><td class="line"> confirmation-&gt;manager = manager;</td></tr>
+<tr class="codeline" data-linenumber="559"><td class="num" id="LN559">559</td><td class="line"> confirmation-&gt;parent_window = parent_window;</td></tr>
+<tr class="codeline" data-linenumber="560"><td class="num" id="LN560">560</td><td class="line"> confirmation-&gt;timestamp = timestamp;</td></tr>
+<tr class="codeline" data-linenumber="561"><td class="num" id="LN561">561</td><td class="line"> </td></tr>
+<tr class="codeline" data-linenumber="562"><td class="num" id="LN562">562</td><td class="line"> g_idle_add (confirm_with_user_idle_cb, confirmation);</td></tr>
+<tr class="codeline" data-linenumber="563"><td class="num" id="LN563">563</td><td class="line">}</td></tr>
+<tr class="codeline" data-linenumber="564"><td class="num" id="LN564">564</td><td class="line"> </td></tr>
+<tr class="codeline" data-linenumber="565"><td class="num" id="LN565">565</td><td class="line"><span class='keyword'>static</span> gboolean</td></tr>
+<tr class="codeline" data-linenumber="566"><td class="num" id="LN566">566</td><td class="line">try_to_apply_intended_configuration (MsdXrandrManager *manager, GdkWindow *parent_window, guint32 timestamp, GError **error)</td></tr>
+<tr class="codeline" data-linenumber="567"><td class="num" id="LN567">567</td><td class="line">{</td></tr>
+<tr class="codeline" data-linenumber="568"><td class="num" id="LN568">568</td><td class="line"> <span class='keyword'>char</span> *backup_filename;</td></tr>
+<tr class="codeline" data-linenumber="569"><td class="num" id="LN569">569</td><td class="line"> <span class='keyword'>char</span> *intended_filename;</td></tr>
+<tr class="codeline" data-linenumber="570"><td class="num" id="LN570">570</td><td class="line"> gboolean result;</td></tr>
+<tr class="codeline" data-linenumber="571"><td class="num" id="LN571">571</td><td class="line"> </td></tr>
+<tr class="codeline" data-linenumber="572"><td class="num" id="LN572">572</td><td class="line"> <span class='comment'>/* Try to apply the intended configuration */</span></td></tr>
+<tr class="codeline" data-linenumber="573"><td class="num" id="LN573">573</td><td class="line"> </td></tr>
+<tr class="codeline" data-linenumber="574"><td class="num" id="LN574">574</td><td class="line"> backup_filename = mate_rr_config_get_backup_filename ();</td></tr>
+<tr class="codeline" data-linenumber="575"><td class="num" id="LN575">575</td><td class="line"> intended_filename = mate_rr_config_get_intended_filename ();</td></tr>
+<tr class="codeline" data-linenumber="576"><td class="num" id="LN576">576</td><td class="line"> </td></tr>
+<tr class="codeline" data-linenumber="577"><td class="num" id="LN577">577</td><td class="line"> result = apply_configuration_from_filename (manager, intended_filename, <span class='macro'>FALSE<span class='macro_popup'>(0)</span></span>, timestamp, error);</td></tr>
+<tr class="codeline" data-linenumber="578"><td class="num" id="LN578">578</td><td class="line"> <span class='keyword'>if</span> (!result) {</td></tr>
+<tr class="codeline" data-linenumber="579"><td class="num" id="LN579">579</td><td class="line"> error_message (manager, <span class='macro'>_(<span class='string_literal'>"The selected configuration for displays could not be applied"</span>)<span class='macro_popup'>gettext ("The selected configuration for displays could not be applied"<br>)</span></span>, error ? *error : <span class='macro'>NULL<span class='macro_popup'>((void*)0)</span></span>, <span class='macro'>NULL<span class='macro_popup'>((void*)0)</span></span>);</td></tr>
+<tr class="codeline" data-linenumber="580"><td class="num" id="LN580">580</td><td class="line"> restore_backup_configuration_without_messages (backup_filename, intended_filename);</td></tr>
+<tr class="codeline" data-linenumber="581"><td class="num" id="LN581">581</td><td class="line"> <span class='keyword'>goto</span> out;</td></tr>
+<tr class="codeline" data-linenumber="582"><td class="num" id="LN582">582</td><td class="line"> } <span class='keyword'>else</span> {</td></tr>
+<tr class="codeline" data-linenumber="583"><td class="num" id="LN583">583</td><td class="line"> <span class='comment'>/* We need to return as quickly as possible, so instead of</span></td></tr>
+<tr class="codeline" data-linenumber="584"><td class="num" id="LN584">584</td><td class="line"> <span class='comment'>* confirming with the user right here, we do it in an idle</span></td></tr>
+<tr class="codeline" data-linenumber="585"><td class="num" id="LN585">585</td><td class="line"> <span class='comment'>* handler. The caller only expects a status for "could you</span></td></tr>
+<tr class="codeline" data-linenumber="586"><td class="num" id="LN586">586</td><td class="line"> <span class='comment'>* change the RANDR configuration?", not "is the user OK with it</span></td></tr>
+<tr class="codeline" data-linenumber="587"><td class="num" id="LN587">587</td><td class="line"> <span class='comment'>* as well?".</span></td></tr>
+<tr class="codeline" data-linenumber="588"><td class="num" id="LN588">588</td><td class="line"> <span class='comment'>*/</span></td></tr>
+<tr class="codeline" data-linenumber="589"><td class="num" id="LN589">589</td><td class="line"> queue_confirmation_by_user (manager, parent_window, timestamp);</td></tr>
+<tr class="codeline" data-linenumber="590"><td class="num" id="LN590">590</td><td class="line"> }</td></tr>
+<tr class="codeline" data-linenumber="591"><td class="num" id="LN591">591</td><td class="line"> </td></tr>
+<tr class="codeline" data-linenumber="592"><td class="num" id="LN592">592</td><td class="line">out:</td></tr>
+<tr class="codeline" data-linenumber="593"><td class="num" id="LN593">593</td><td class="line"> g_free (backup_filename);</td></tr>
+<tr class="codeline" data-linenumber="594"><td class="num" id="LN594">594</td><td class="line"> g_free (intended_filename);</td></tr>
+<tr class="codeline" data-linenumber="595"><td class="num" id="LN595">595</td><td class="line"> </td></tr>
+<tr class="codeline" data-linenumber="596"><td class="num" id="LN596">596</td><td class="line"> <span class='keyword'>return</span> result;</td></tr>
+<tr class="codeline" data-linenumber="597"><td class="num" id="LN597">597</td><td class="line">}</td></tr>
+<tr class="codeline" data-linenumber="598"><td class="num" id="LN598">598</td><td class="line"> </td></tr>
+<tr class="codeline" data-linenumber="599"><td class="num" id="LN599">599</td><td class="line"><span class='comment'>/* DBus method for org.mate.SettingsDaemon.XRANDR ApplyConfiguration; see msd-xrandr-manager.xml for the interface definition */</span></td></tr>
+<tr class="codeline" data-linenumber="600"><td class="num" id="LN600">600</td><td class="line"><span class='keyword'>static</span> gboolean</td></tr>
+<tr class="codeline" data-linenumber="601"><td class="num" id="LN601">601</td><td class="line">msd_xrandr_manager_apply_configuration (MsdXrandrManager *manager,</td></tr>
+<tr class="codeline" data-linenumber="602"><td class="num" id="LN602">602</td><td class="line"> GError **error)</td></tr>
+<tr class="codeline" data-linenumber="603"><td class="num" id="LN603">603</td><td class="line">{</td></tr>
+<tr class="codeline" data-linenumber="604"><td class="num" id="LN604">604</td><td class="line"> <span class='keyword'>return</span> try_to_apply_intended_configuration (manager, <span class='macro'>NULL<span class='macro_popup'>((void*)0)</span></span>, <span class='macro'>GDK_CURRENT_TIME<span class='macro_popup'>0L</span></span>, error);</td></tr>
+<tr class="codeline" data-linenumber="605"><td class="num" id="LN605">605</td><td class="line">}</td></tr>
+<tr class="codeline" data-linenumber="606"><td class="num" id="LN606">606</td><td class="line"> </td></tr>
+<tr class="codeline" data-linenumber="607"><td class="num" id="LN607">607</td><td class="line"><span class='comment'>/* DBus method for org.mate.SettingsDaemon.XRANDR_2 ApplyConfiguration; see msd-xrandr-manager.xml for the interface definition */</span></td></tr>
+<tr class="codeline" data-linenumber="608"><td class="num" id="LN608">608</td><td class="line"><span class='keyword'>static</span> gboolean</td></tr>
+<tr class="codeline" data-linenumber="609"><td class="num" id="LN609">609</td><td class="line">msd_xrandr_manager_2_apply_configuration (MsdXrandrManager *manager,</td></tr>
+<tr class="codeline" data-linenumber="610"><td class="num" id="LN610">610</td><td class="line"> gint64 parent_window_id,</td></tr>
+<tr class="codeline" data-linenumber="611"><td class="num" id="LN611">611</td><td class="line"> gint64 timestamp,</td></tr>
+<tr class="codeline" data-linenumber="612"><td class="num" id="LN612">612</td><td class="line"> GError **error)</td></tr>
+<tr class="codeline" data-linenumber="613"><td class="num" id="LN613">613</td><td class="line">{</td></tr>
+<tr class="codeline" data-linenumber="614"><td class="num" id="LN614">614</td><td class="line"> GdkWindow *parent_window;</td></tr>
+<tr class="codeline" data-linenumber="615"><td class="num" id="LN615">615</td><td class="line"> gboolean result;</td></tr>
+<tr class="codeline" data-linenumber="616"><td class="num" id="LN616">616</td><td class="line"> </td></tr>
+<tr class="codeline" data-linenumber="617"><td class="num" id="LN617">617</td><td class="line"> <span class='keyword'>if</span> (parent_window_id != 0)</td></tr>
+<tr class="codeline" data-linenumber="618"><td class="num" id="LN618">618</td><td class="line"> parent_window = gdk_x11_window_foreign_new_for_display (gdk_display_get_default (), (Window) parent_window_id);</td></tr>
+<tr class="codeline" data-linenumber="619"><td class="num" id="LN619">619</td><td class="line"> <span class='keyword'>else</span></td></tr>
+<tr class="codeline" data-linenumber="620"><td class="num" id="LN620">620</td><td class="line"> parent_window = <span class='macro'>NULL<span class='macro_popup'>((void*)0)</span></span>;</td></tr>
+<tr class="codeline" data-linenumber="621"><td class="num" id="LN621">621</td><td class="line"> </td></tr>
+<tr class="codeline" data-linenumber="622"><td class="num" id="LN622">622</td><td class="line"> result = try_to_apply_intended_configuration (manager, parent_window, (guint32) timestamp, error);</td></tr>
+<tr class="codeline" data-linenumber="623"><td class="num" id="LN623">623</td><td class="line"> </td></tr>
+<tr class="codeline" data-linenumber="624"><td class="num" id="LN624">624</td><td class="line"> <span class='keyword'>if</span> (parent_window)</td></tr>
+<tr class="codeline" data-linenumber="625"><td class="num" id="LN625">625</td><td class="line"> g_object_unref (parent_window);</td></tr>
+<tr class="codeline" data-linenumber="626"><td class="num" id="LN626">626</td><td class="line"> </td></tr>
+<tr class="codeline" data-linenumber="627"><td class="num" id="LN627">627</td><td class="line"> <span class='keyword'>return</span> result;</td></tr>
+<tr class="codeline" data-linenumber="628"><td class="num" id="LN628">628</td><td class="line">}</td></tr>
+<tr class="codeline" data-linenumber="629"><td class="num" id="LN629">629</td><td class="line"> </td></tr>
+<tr class="codeline" data-linenumber="630"><td class="num" id="LN630">630</td><td class="line"><span class='comment'>/* We include this after the definition of msd_xrandr_manager_apply_configuration() so the prototype will already exist */</span></td></tr>
+<tr class="codeline" data-linenumber="631"><td class="num" id="LN631">631</td><td class="line"><span class='directive'>#include "msd-xrandr-manager-glue.h"</span></td></tr>
+<tr class="codeline" data-linenumber="632"><td class="num" id="LN632">632</td><td class="line"> </td></tr>
+<tr class="codeline" data-linenumber="633"><td class="num" id="LN633">633</td><td class="line"><span class='keyword'>static</span> gboolean</td></tr>
+<tr class="codeline" data-linenumber="634"><td class="num" id="LN634">634</td><td class="line">is_laptop (MateRRScreen *screen, MateRROutputInfo *output)</td></tr>
+<tr class="codeline" data-linenumber="635"><td class="num" id="LN635">635</td><td class="line">{</td></tr>
+<tr class="codeline" data-linenumber="636"><td class="num" id="LN636">636</td><td class="line"> MateRROutput *rr_output;</td></tr>
+<tr class="codeline" data-linenumber="637"><td class="num" id="LN637">637</td><td class="line"> </td></tr>
+<tr class="codeline" data-linenumber="638"><td class="num" id="LN638">638</td><td class="line"> rr_output = mate_rr_screen_get_output_by_name (screen, mate_rr_output_info_get_name (output));</td></tr>
+<tr class="codeline" data-linenumber="639"><td class="num" id="LN639">639</td><td class="line"> <span class='keyword'>return</span> mate_rr_output_is_laptop (rr_output);</td></tr>
+<tr class="codeline" data-linenumber="640"><td class="num" id="LN640">640</td><td class="line">}</td></tr>
+<tr class="codeline" data-linenumber="641"><td class="num" id="LN641">641</td><td class="line"> </td></tr>
+<tr class="codeline" data-linenumber="642"><td class="num" id="LN642">642</td><td class="line"><span class='keyword'>static</span> gboolean</td></tr>
+<tr class="codeline" data-linenumber="643"><td class="num" id="LN643">643</td><td class="line">get_clone_size (MateRRScreen *screen, <span class='keyword'>int</span> *width, <span class='keyword'>int</span> *height)</td></tr>
+<tr class="codeline" data-linenumber="644"><td class="num" id="LN644">644</td><td class="line">{</td></tr>
+<tr class="codeline" data-linenumber="645"><td class="num" id="LN645">645</td><td class="line"> MateRRMode **modes = mate_rr_screen_list_clone_modes (screen);</td></tr>
+<tr class="codeline" data-linenumber="646"><td class="num" id="LN646">646</td><td class="line"> <span class='keyword'>int</span> best_w, best_h;</td></tr>
+<tr class="codeline" data-linenumber="647"><td class="num" id="LN647">647</td><td class="line"> <span class='keyword'>int</span> i;</td></tr>
+<tr class="codeline" data-linenumber="648"><td class="num" id="LN648">648</td><td class="line"> </td></tr>
+<tr class="codeline" data-linenumber="649"><td class="num" id="LN649">649</td><td class="line"> best_w = 0;</td></tr>
+<tr class="codeline" data-linenumber="650"><td class="num" id="LN650">650</td><td class="line"> best_h = 0;</td></tr>
+<tr class="codeline" data-linenumber="651"><td class="num" id="LN651">651</td><td class="line"> </td></tr>
+<tr class="codeline" data-linenumber="652"><td class="num" id="LN652">652</td><td class="line"> <span class='keyword'>for</span> (i = 0; modes[i] != <span class='macro'>NULL<span class='macro_popup'>((void*)0)</span></span>; ++i) {</td></tr>
+<tr class="codeline" data-linenumber="653"><td class="num" id="LN653">653</td><td class="line"> MateRRMode *mode = modes[i];</td></tr>
+<tr class="codeline" data-linenumber="654"><td class="num" id="LN654">654</td><td class="line"> <span class='keyword'>int</span> w, h;</td></tr>
+<tr class="codeline" data-linenumber="655"><td class="num" id="LN655">655</td><td class="line"> </td></tr>
+<tr class="codeline" data-linenumber="656"><td class="num" id="LN656">656</td><td class="line"> w = mate_rr_mode_get_width (mode);</td></tr>
+<tr class="codeline" data-linenumber="657"><td class="num" id="LN657">657</td><td class="line"> h = mate_rr_mode_get_height (mode);</td></tr>
+<tr class="codeline" data-linenumber="658"><td class="num" id="LN658">658</td><td class="line"> </td></tr>
+<tr class="codeline" data-linenumber="659"><td class="num" id="LN659">659</td><td class="line"> <span class='keyword'>if</span> (w * h &gt; best_w * best_h) {</td></tr>
+<tr class="codeline" data-linenumber="660"><td class="num" id="LN660">660</td><td class="line"> best_w = w;</td></tr>
+<tr class="codeline" data-linenumber="661"><td class="num" id="LN661">661</td><td class="line"> best_h = h;</td></tr>
+<tr class="codeline" data-linenumber="662"><td class="num" id="LN662">662</td><td class="line"> }</td></tr>
+<tr class="codeline" data-linenumber="663"><td class="num" id="LN663">663</td><td class="line"> }</td></tr>
+<tr class="codeline" data-linenumber="664"><td class="num" id="LN664">664</td><td class="line"> </td></tr>
+<tr class="codeline" data-linenumber="665"><td class="num" id="LN665">665</td><td class="line"> <span class='keyword'>if</span> (best_w &gt; 0 &amp;&amp; best_h &gt; 0) {</td></tr>
+<tr class="codeline" data-linenumber="666"><td class="num" id="LN666">666</td><td class="line"> <span class='keyword'>if</span> (width)</td></tr>
+<tr class="codeline" data-linenumber="667"><td class="num" id="LN667">667</td><td class="line"> *width = best_w;</td></tr>
+<tr class="codeline" data-linenumber="668"><td class="num" id="LN668">668</td><td class="line"> <span class='keyword'>if</span> (height)</td></tr>
+<tr class="codeline" data-linenumber="669"><td class="num" id="LN669">669</td><td class="line"> *height = best_h;</td></tr>
+<tr class="codeline" data-linenumber="670"><td class="num" id="LN670">670</td><td class="line"> </td></tr>
+<tr class="codeline" data-linenumber="671"><td class="num" id="LN671">671</td><td class="line"> <span class='keyword'>return</span> <span class='macro'>TRUE<span class='macro_popup'>(!(0))</span></span>;</td></tr>
+<tr class="codeline" data-linenumber="672"><td class="num" id="LN672">672</td><td class="line"> }</td></tr>
+<tr class="codeline" data-linenumber="673"><td class="num" id="LN673">673</td><td class="line"> </td></tr>
+<tr class="codeline" data-linenumber="674"><td class="num" id="LN674">674</td><td class="line"> <span class='keyword'>return</span> <span class='macro'>FALSE<span class='macro_popup'>(0)</span></span>;</td></tr>
+<tr class="codeline" data-linenumber="675"><td class="num" id="LN675">675</td><td class="line">}</td></tr>
+<tr class="codeline" data-linenumber="676"><td class="num" id="LN676">676</td><td class="line"> </td></tr>
+<tr class="codeline" data-linenumber="677"><td class="num" id="LN677">677</td><td class="line"><span class='keyword'>static</span> <span class='keyword'>void</span></td></tr>
+<tr class="codeline" data-linenumber="678"><td class="num" id="LN678">678</td><td class="line">print_output (MateRROutputInfo *info)</td></tr>
+<tr class="codeline" data-linenumber="679"><td class="num" id="LN679">679</td><td class="line">{</td></tr>
+<tr class="codeline" data-linenumber="680"><td class="num" id="LN680">680</td><td class="line"> <span class='keyword'>int</span> x, y, width, height;</td></tr>
+<tr class="codeline" data-linenumber="681"><td class="num" id="LN681">681</td><td class="line"> </td></tr>
+<tr class="codeline" data-linenumber="682"><td class="num" id="LN682">682</td><td class="line"> g_print (<span class='string_literal'>" Output: %s attached to %s\n"</span>, mate_rr_output_info_get_display_name (info), mate_rr_output_info_get_name (info));</td></tr>
+<tr class="codeline" data-linenumber="683"><td class="num" id="LN683">683</td><td class="line"> g_print (<span class='string_literal'>" status: %s\n"</span>, mate_rr_output_info_is_active (info) ? <span class='string_literal'>"on"</span> : <span class='string_literal'>"off"</span>);</td></tr>
+<tr class="codeline" data-linenumber="684"><td class="num" id="LN684">684</td><td class="line"> </td></tr>
+<tr class="codeline" data-linenumber="685"><td class="num" id="LN685">685</td><td class="line"> mate_rr_output_info_get_geometry (info, &amp;x, &amp;y, &amp;width, &amp;height);</td></tr>
+<tr class="codeline" data-linenumber="686"><td class="num" id="LN686">686</td><td class="line"> g_print (<span class='string_literal'>" width: %d\n"</span>, width);</td></tr>
+<tr class="codeline" data-linenumber="687"><td class="num" id="LN687">687</td><td class="line"> g_print (<span class='string_literal'>" height: %d\n"</span>, height);</td></tr>
+<tr class="codeline" data-linenumber="688"><td class="num" id="LN688">688</td><td class="line"> g_print (<span class='string_literal'>" rate: %d\n"</span>, mate_rr_output_info_get_refresh_rate (info));</td></tr>
+<tr class="codeline" data-linenumber="689"><td class="num" id="LN689">689</td><td class="line"> g_print (<span class='string_literal'>" position: %d %d\n"</span>, x, y);</td></tr>
+<tr class="codeline" data-linenumber="690"><td class="num" id="LN690">690</td><td class="line">}</td></tr>
+<tr class="codeline" data-linenumber="691"><td class="num" id="LN691">691</td><td class="line"> </td></tr>
+<tr class="codeline" data-linenumber="692"><td class="num" id="LN692">692</td><td class="line"><span class='keyword'>static</span> <span class='keyword'>void</span></td></tr>
+<tr class="codeline" data-linenumber="693"><td class="num" id="LN693">693</td><td class="line">print_configuration (MateRRConfig *config, <span class='keyword'>const</span> <span class='keyword'>char</span> *header)</td></tr>
+<tr class="codeline" data-linenumber="694"><td class="num" id="LN694">694</td><td class="line">{</td></tr>
+<tr class="codeline" data-linenumber="695"><td class="num" id="LN695">695</td><td class="line"> <span class='keyword'>int</span> i;</td></tr>
+<tr class="codeline" data-linenumber="696"><td class="num" id="LN696">696</td><td class="line"> MateRROutputInfo **outputs;</td></tr>
+<tr class="codeline" data-linenumber="697"><td class="num" id="LN697">697</td><td class="line"> </td></tr>
+<tr class="codeline" data-linenumber="698"><td class="num" id="LN698">698</td><td class="line"> g_print (<span class='string_literal'>"=== %s Configuration ===\n"</span>, header);</td></tr>
+<tr class="codeline" data-linenumber="699"><td class="num" id="LN699">699</td><td class="line"> <span class='keyword'>if</span> (!config) {</td></tr>
+<tr class="codeline" data-linenumber="700"><td class="num" id="LN700">700</td><td class="line"> g_print (<span class='string_literal'>" none\n"</span>);</td></tr>
+<tr class="codeline" data-linenumber="701"><td class="num" id="LN701">701</td><td class="line"> <span class='keyword'>return</span>;</td></tr>
+<tr class="codeline" data-linenumber="702"><td class="num" id="LN702">702</td><td class="line"> }</td></tr>
+<tr class="codeline" data-linenumber="703"><td class="num" id="LN703">703</td><td class="line"> </td></tr>
+<tr class="codeline" data-linenumber="704"><td class="num" id="LN704">704</td><td class="line"> outputs = mate_rr_config_get_outputs (config);</td></tr>
+<tr class="codeline" data-linenumber="705"><td class="num" id="LN705">705</td><td class="line"> <span class='keyword'>for</span> (i = 0; outputs[i] != <span class='macro'>NULL<span class='macro_popup'>((void*)0)</span></span>; ++i)</td></tr>
+<tr class="codeline" data-linenumber="706"><td class="num" id="LN706">706</td><td class="line"> print_output (outputs[i]);</td></tr>
+<tr class="codeline" data-linenumber="707"><td class="num" id="LN707">707</td><td class="line">}</td></tr>
+<tr class="codeline" data-linenumber="708"><td class="num" id="LN708">708</td><td class="line"> </td></tr>
+<tr class="codeline" data-linenumber="709"><td class="num" id="LN709">709</td><td class="line"><span class='keyword'>static</span> gboolean</td></tr>
+<tr class="codeline" data-linenumber="710"><td class="num" id="LN710">710</td><td class="line">config_is_all_off (MateRRConfig *config)</td></tr>
+<tr class="codeline" data-linenumber="711"><td class="num" id="LN711">711</td><td class="line">{</td></tr>
+<tr class="codeline" data-linenumber="712"><td class="num" id="LN712">712</td><td class="line"> <span class='keyword'>int</span> j;</td></tr>
+<tr class="codeline" data-linenumber="713"><td class="num" id="LN713">713</td><td class="line"> MateRROutputInfo **outputs;</td></tr>
+<tr class="codeline" data-linenumber="714"><td class="num" id="LN714">714</td><td class="line"> </td></tr>
+<tr class="codeline" data-linenumber="715"><td class="num" id="LN715">715</td><td class="line"> outputs = mate_rr_config_get_outputs (config);</td></tr>
+<tr class="codeline" data-linenumber="716"><td class="num" id="LN716">716</td><td class="line"> </td></tr>
+<tr class="codeline" data-linenumber="717"><td class="num" id="LN717">717</td><td class="line"> <span class='keyword'>for</span> (j = 0; outputs[j] != <span class='macro'>NULL<span class='macro_popup'>((void*)0)</span></span>; ++j) {</td></tr>
+<tr class="codeline" data-linenumber="718"><td class="num" id="LN718">718</td><td class="line"> <span class='keyword'>if</span> (mate_rr_output_info_is_active (outputs[j])) {</td></tr>
+<tr class="codeline" data-linenumber="719"><td class="num" id="LN719">719</td><td class="line"> <span class='keyword'>return</span> <span class='macro'>FALSE<span class='macro_popup'>(0)</span></span>;</td></tr>
+<tr class="codeline" data-linenumber="720"><td class="num" id="LN720">720</td><td class="line"> }</td></tr>
+<tr class="codeline" data-linenumber="721"><td class="num" id="LN721">721</td><td class="line"> }</td></tr>
+<tr class="codeline" data-linenumber="722"><td class="num" id="LN722">722</td><td class="line"> </td></tr>
+<tr class="codeline" data-linenumber="723"><td class="num" id="LN723">723</td><td class="line"> <span class='keyword'>return</span> <span class='macro'>TRUE<span class='macro_popup'>(!(0))</span></span>;</td></tr>
+<tr class="codeline" data-linenumber="724"><td class="num" id="LN724">724</td><td class="line">}</td></tr>
+<tr class="codeline" data-linenumber="725"><td class="num" id="LN725">725</td><td class="line"> </td></tr>
+<tr class="codeline" data-linenumber="726"><td class="num" id="LN726">726</td><td class="line"><span class='keyword'>static</span> MateRRConfig *</td></tr>
+<tr class="codeline" data-linenumber="727"><td class="num" id="LN727">727</td><td class="line">make_clone_setup (MateRRScreen *screen)</td></tr>
+<tr class="codeline" data-linenumber="728"><td class="num" id="LN728">728</td><td class="line">{</td></tr>
+<tr class="codeline" data-linenumber="729"><td class="num" id="LN729">729</td><td class="line"> MateRRConfig *result;</td></tr>
+<tr class="codeline" data-linenumber="730"><td class="num" id="LN730">730</td><td class="line"> MateRROutputInfo **outputs;</td></tr>
+<tr class="codeline" data-linenumber="731"><td class="num" id="LN731">731</td><td class="line"> <span class='keyword'>int</span> width, height;</td></tr>
+<tr class="codeline" data-linenumber="732"><td class="num" id="LN732">732</td><td class="line"> <span class='keyword'>int</span> i;</td></tr>
+<tr class="codeline" data-linenumber="733"><td class="num" id="LN733">733</td><td class="line"> </td></tr>
+<tr class="codeline" data-linenumber="734"><td class="num" id="LN734">734</td><td class="line"> <span class='keyword'>if</span> (!get_clone_size (screen, &amp;width, &amp;height))</td></tr>
+<tr class="codeline" data-linenumber="735"><td class="num" id="LN735">735</td><td class="line"> <span class='keyword'>return</span> <span class='macro'>NULL<span class='macro_popup'>((void*)0)</span></span>;</td></tr>
+<tr class="codeline" data-linenumber="736"><td class="num" id="LN736">736</td><td class="line"> </td></tr>
+<tr class="codeline" data-linenumber="737"><td class="num" id="LN737">737</td><td class="line"> result = mate_rr_config_new_current (screen, <span class='macro'>NULL<span class='macro_popup'>((void*)0)</span></span>);</td></tr>
+<tr class="codeline" data-linenumber="738"><td class="num" id="LN738">738</td><td class="line"> outputs = mate_rr_config_get_outputs (result);</td></tr>
+<tr class="codeline" data-linenumber="739"><td class="num" id="LN739">739</td><td class="line"> </td></tr>
+<tr class="codeline" data-linenumber="740"><td class="num" id="LN740">740</td><td class="line"> <span class='keyword'>for</span> (i = 0; outputs[i] != <span class='macro'>NULL<span class='macro_popup'>((void*)0)</span></span>; ++i) {</td></tr>
+<tr class="codeline" data-linenumber="741"><td class="num" id="LN741">741</td><td class="line"> MateRROutputInfo *info = outputs[i];</td></tr>
+<tr class="codeline" data-linenumber="742"><td class="num" id="LN742">742</td><td class="line"> </td></tr>
+<tr class="codeline" data-linenumber="743"><td class="num" id="LN743">743</td><td class="line"> mate_rr_output_info_set_active (info, <span class='macro'>FALSE<span class='macro_popup'>(0)</span></span>);</td></tr>
+<tr class="codeline" data-linenumber="744"><td class="num" id="LN744">744</td><td class="line"> <span class='keyword'>if</span> (mate_rr_output_info_is_connected (info)) {</td></tr>
+<tr class="codeline" data-linenumber="745"><td class="num" id="LN745">745</td><td class="line"> MateRROutput *output =</td></tr>
+<tr class="codeline" data-linenumber="746"><td class="num" id="LN746">746</td><td class="line"> mate_rr_screen_get_output_by_name (screen, mate_rr_output_info_get_name (info));</td></tr>
+<tr class="codeline" data-linenumber="747"><td class="num" id="LN747">747</td><td class="line"> MateRRMode **modes = mate_rr_output_list_modes (output);</td></tr>
+<tr class="codeline" data-linenumber="748"><td class="num" id="LN748">748</td><td class="line"> <span class='keyword'>int</span> j;</td></tr>
+<tr class="codeline" data-linenumber="749"><td class="num" id="LN749">749</td><td class="line"> <span class='keyword'>int</span> best_rate = 0;</td></tr>
+<tr class="codeline" data-linenumber="750"><td class="num" id="LN750">750</td><td class="line"> </td></tr>
+<tr class="codeline" data-linenumber="751"><td class="num" id="LN751">751</td><td class="line"> <span class='keyword'>for</span> (j = 0; modes[j] != <span class='macro'>NULL<span class='macro_popup'>((void*)0)</span></span>; ++j) {</td></tr>
+<tr class="codeline" data-linenumber="752"><td class="num" id="LN752">752</td><td class="line"> MateRRMode *mode = modes[j];</td></tr>
+<tr class="codeline" data-linenumber="753"><td class="num" id="LN753">753</td><td class="line"> <span class='keyword'>int</span> w, h;</td></tr>
+<tr class="codeline" data-linenumber="754"><td class="num" id="LN754">754</td><td class="line"> </td></tr>
+<tr class="codeline" data-linenumber="755"><td class="num" id="LN755">755</td><td class="line"> w = mate_rr_mode_get_width (mode);</td></tr>
+<tr class="codeline" data-linenumber="756"><td class="num" id="LN756">756</td><td class="line"> h = mate_rr_mode_get_height (mode);</td></tr>
+<tr class="codeline" data-linenumber="757"><td class="num" id="LN757">757</td><td class="line"> </td></tr>
+<tr class="codeline" data-linenumber="758"><td class="num" id="LN758">758</td><td class="line"> <span class='keyword'>if</span> (w == width &amp;&amp; h == height) {</td></tr>
+<tr class="codeline" data-linenumber="759"><td class="num" id="LN759">759</td><td class="line"> best_rate = mate_rr_mode_get_freq (mode);</td></tr>
+<tr class="codeline" data-linenumber="760"><td class="num" id="LN760">760</td><td class="line"> }</td></tr>
+<tr class="codeline" data-linenumber="761"><td class="num" id="LN761">761</td><td class="line"> }</td></tr>
+<tr class="codeline" data-linenumber="762"><td class="num" id="LN762">762</td><td class="line"> </td></tr>
+<tr class="codeline" data-linenumber="763"><td class="num" id="LN763">763</td><td class="line"> <span class='keyword'>if</span> (best_rate &gt; 0) {</td></tr>
+<tr class="codeline" data-linenumber="764"><td class="num" id="LN764">764</td><td class="line"> mate_rr_output_info_set_active (info, <span class='macro'>TRUE<span class='macro_popup'>(!(0))</span></span>);</td></tr>
+<tr class="codeline" data-linenumber="765"><td class="num" id="LN765">765</td><td class="line"> mate_rr_output_info_set_rotation (info, MATE_RR_ROTATION_0);</td></tr>
+<tr class="codeline" data-linenumber="766"><td class="num" id="LN766">766</td><td class="line"> mate_rr_output_info_set_refresh_rate (info, best_rate);</td></tr>
+<tr class="codeline" data-linenumber="767"><td class="num" id="LN767">767</td><td class="line"> mate_rr_output_info_set_geometry (info, 0, 0, width, height);</td></tr>
+<tr class="codeline" data-linenumber="768"><td class="num" id="LN768">768</td><td class="line"> }</td></tr>
+<tr class="codeline" data-linenumber="769"><td class="num" id="LN769">769</td><td class="line"> }</td></tr>
+<tr class="codeline" data-linenumber="770"><td class="num" id="LN770">770</td><td class="line"> }</td></tr>
+<tr class="codeline" data-linenumber="771"><td class="num" id="LN771">771</td><td class="line"> </td></tr>
+<tr class="codeline" data-linenumber="772"><td class="num" id="LN772">772</td><td class="line"> <span class='keyword'>if</span> (config_is_all_off (result)) {</td></tr>
+<tr class="codeline" data-linenumber="773"><td class="num" id="LN773">773</td><td class="line"> g_object_unref (result);</td></tr>
+<tr class="codeline" data-linenumber="774"><td class="num" id="LN774">774</td><td class="line"> result = <span class='macro'>NULL<span class='macro_popup'>((void*)0)</span></span>;</td></tr>
+<tr class="codeline" data-linenumber="775"><td class="num" id="LN775">775</td><td class="line"> }</td></tr>
+<tr class="codeline" data-linenumber="776"><td class="num" id="LN776">776</td><td class="line"> </td></tr>
+<tr class="codeline" data-linenumber="777"><td class="num" id="LN777">777</td><td class="line"> print_configuration (result, <span class='string_literal'>"clone setup"</span>);</td></tr>
+<tr class="codeline" data-linenumber="778"><td class="num" id="LN778">778</td><td class="line"> </td></tr>
+<tr class="codeline" data-linenumber="779"><td class="num" id="LN779">779</td><td class="line"> <span class='keyword'>return</span> result;</td></tr>
+<tr class="codeline" data-linenumber="780"><td class="num" id="LN780">780</td><td class="line">}</td></tr>
+<tr class="codeline" data-linenumber="781"><td class="num" id="LN781">781</td><td class="line"> </td></tr>
+<tr class="codeline" data-linenumber="782"><td class="num" id="LN782">782</td><td class="line"><span class='keyword'>static</span> MateRRMode *</td></tr>
+<tr class="codeline" data-linenumber="783"><td class="num" id="LN783">783</td><td class="line">find_best_mode (MateRROutput *output)</td></tr>
+<tr class="codeline" data-linenumber="784"><td class="num" id="LN784">784</td><td class="line">{</td></tr>
+<tr class="codeline" data-linenumber="785"><td class="num" id="LN785">785</td><td class="line"> MateRRMode *preferred;</td></tr>
+<tr class="codeline" data-linenumber="786"><td class="num" id="LN786">786</td><td class="line"> MateRRMode **modes;</td></tr>
+<tr class="codeline" data-linenumber="787"><td class="num" id="LN787">787</td><td class="line"> <span class='keyword'>int</span> best_size;</td></tr>
+<tr class="codeline" data-linenumber="788"><td class="num" id="LN788">788</td><td class="line"> <span class='keyword'>int</span> best_width, best_height, best_rate;</td></tr>
+<tr class="codeline" data-linenumber="789"><td class="num" id="LN789">789</td><td class="line"> <span class='keyword'>int</span> i;</td></tr>
+<tr class="codeline" data-linenumber="790"><td class="num" id="LN790">790</td><td class="line"> MateRRMode *best_mode;</td></tr>
+<tr class="codeline" data-linenumber="791"><td class="num" id="LN791">791</td><td class="line"> </td></tr>
+<tr class="codeline" data-linenumber="792"><td class="num" id="LN792">792</td><td class="line"> preferred = mate_rr_output_get_preferred_mode (output);</td></tr>
+<tr class="codeline" data-linenumber="793"><td class="num" id="LN793">793</td><td class="line"> <span class='keyword'>if</span> (preferred)</td></tr>
+<tr class="codeline" data-linenumber="794"><td class="num" id="LN794">794</td><td class="line"> <span class='keyword'>return</span> preferred;</td></tr>
+<tr class="codeline" data-linenumber="795"><td class="num" id="LN795">795</td><td class="line"> </td></tr>
+<tr class="codeline" data-linenumber="796"><td class="num" id="LN796">796</td><td class="line"> modes = mate_rr_output_list_modes (output);</td></tr>
+<tr class="codeline" data-linenumber="797"><td class="num" id="LN797">797</td><td class="line"> <span class='keyword'>if</span> (!modes)</td></tr>
+<tr class="codeline" data-linenumber="798"><td class="num" id="LN798">798</td><td class="line"> <span class='keyword'>return</span> <span class='macro'>NULL<span class='macro_popup'>((void*)0)</span></span>;</td></tr>
+<tr class="codeline" data-linenumber="799"><td class="num" id="LN799">799</td><td class="line"> </td></tr>
+<tr class="codeline" data-linenumber="800"><td class="num" id="LN800">800</td><td class="line"> best_size = best_width = best_height = <span class="mrange">best_rate = 0</span>;</td></tr>
+<tr><td class="num"></td><td class="line"><div id="EndPath" class="msg msgEvent" style="margin-left:34ex; max-width:33em">Although the value stored to 'best_height' is used in the enclosing expression, the value is never actually read from 'best_height'</div></td></tr>
+<tr class="codeline" data-linenumber="801"><td class="num" id="LN801">801</td><td class="line"> best_mode = <span class='macro'>NULL<span class='macro_popup'>((void*)0)</span></span>;</td></tr>
+<tr class="codeline" data-linenumber="802"><td class="num" id="LN802">802</td><td class="line"> </td></tr>
+<tr class="codeline" data-linenumber="803"><td class="num" id="LN803">803</td><td class="line"> <span class='keyword'>for</span> (i = 0; modes[i] != <span class='macro'>NULL<span class='macro_popup'>((void*)0)</span></span>; i++) {</td></tr>
+<tr class="codeline" data-linenumber="804"><td class="num" id="LN804">804</td><td class="line"> <span class='keyword'>int</span> w, h, r;</td></tr>
+<tr class="codeline" data-linenumber="805"><td class="num" id="LN805">805</td><td class="line"> <span class='keyword'>int</span> size;</td></tr>
+<tr class="codeline" data-linenumber="806"><td class="num" id="LN806">806</td><td class="line"> </td></tr>
+<tr class="codeline" data-linenumber="807"><td class="num" id="LN807">807</td><td class="line"> w = mate_rr_mode_get_width (modes[i]);</td></tr>
+<tr class="codeline" data-linenumber="808"><td class="num" id="LN808">808</td><td class="line"> h = mate_rr_mode_get_height (modes[i]);</td></tr>
+<tr class="codeline" data-linenumber="809"><td class="num" id="LN809">809</td><td class="line"> r = mate_rr_mode_get_freq (modes[i]);</td></tr>
+<tr class="codeline" data-linenumber="810"><td class="num" id="LN810">810</td><td class="line"> </td></tr>
+<tr class="codeline" data-linenumber="811"><td class="num" id="LN811">811</td><td class="line"> size = w * h;</td></tr>
+<tr class="codeline" data-linenumber="812"><td class="num" id="LN812">812</td><td class="line"> </td></tr>
+<tr class="codeline" data-linenumber="813"><td class="num" id="LN813">813</td><td class="line"> <span class='keyword'>if</span> (size &gt; best_size) {</td></tr>
+<tr class="codeline" data-linenumber="814"><td class="num" id="LN814">814</td><td class="line"> best_size = size;</td></tr>
+<tr class="codeline" data-linenumber="815"><td class="num" id="LN815">815</td><td class="line"> best_width = w;</td></tr>
+<tr class="codeline" data-linenumber="816"><td class="num" id="LN816">816</td><td class="line"> best_height = h;</td></tr>
+<tr class="codeline" data-linenumber="817"><td class="num" id="LN817">817</td><td class="line"> best_rate = r;</td></tr>
+<tr class="codeline" data-linenumber="818"><td class="num" id="LN818">818</td><td class="line"> best_mode = modes[i];</td></tr>
+<tr class="codeline" data-linenumber="819"><td class="num" id="LN819">819</td><td class="line"> } <span class='keyword'>else</span> <span class='keyword'>if</span> (size == best_size) {</td></tr>
+<tr class="codeline" data-linenumber="820"><td class="num" id="LN820">820</td><td class="line"> <span class='keyword'>if</span> (r &gt; best_rate) {</td></tr>
+<tr class="codeline" data-linenumber="821"><td class="num" id="LN821">821</td><td class="line"> best_rate = r;</td></tr>
+<tr class="codeline" data-linenumber="822"><td class="num" id="LN822">822</td><td class="line"> best_mode = modes[i];</td></tr>
+<tr class="codeline" data-linenumber="823"><td class="num" id="LN823">823</td><td class="line"> }</td></tr>
+<tr class="codeline" data-linenumber="824"><td class="num" id="LN824">824</td><td class="line"> }</td></tr>
+<tr class="codeline" data-linenumber="825"><td class="num" id="LN825">825</td><td class="line"> }</td></tr>
+<tr class="codeline" data-linenumber="826"><td class="num" id="LN826">826</td><td class="line"> </td></tr>
+<tr class="codeline" data-linenumber="827"><td class="num" id="LN827">827</td><td class="line"> <span class='keyword'>return</span> best_mode;</td></tr>
+<tr class="codeline" data-linenumber="828"><td class="num" id="LN828">828</td><td class="line">}</td></tr>
+<tr class="codeline" data-linenumber="829"><td class="num" id="LN829">829</td><td class="line"> </td></tr>
+<tr class="codeline" data-linenumber="830"><td class="num" id="LN830">830</td><td class="line"><span class='keyword'>static</span> gboolean</td></tr>
+<tr class="codeline" data-linenumber="831"><td class="num" id="LN831">831</td><td class="line">turn_on (MateRRScreen *screen,</td></tr>
+<tr class="codeline" data-linenumber="832"><td class="num" id="LN832">832</td><td class="line"> MateRROutputInfo *info,</td></tr>
+<tr class="codeline" data-linenumber="833"><td class="num" id="LN833">833</td><td class="line"> <span class='keyword'>int</span> x, <span class='keyword'>int</span> y)</td></tr>
+<tr class="codeline" data-linenumber="834"><td class="num" id="LN834">834</td><td class="line">{</td></tr>
+<tr class="codeline" data-linenumber="835"><td class="num" id="LN835">835</td><td class="line"> MateRROutput *output = mate_rr_screen_get_output_by_name (screen, mate_rr_output_info_get_name (info));</td></tr>
+<tr class="codeline" data-linenumber="836"><td class="num" id="LN836">836</td><td class="line"> MateRRMode *mode = find_best_mode (output);</td></tr>
+<tr class="codeline" data-linenumber="837"><td class="num" id="LN837">837</td><td class="line"> </td></tr>
+<tr class="codeline" data-linenumber="838"><td class="num" id="LN838">838</td><td class="line"> <span class='keyword'>if</span> (mode) {</td></tr>
+<tr class="codeline" data-linenumber="839"><td class="num" id="LN839">839</td><td class="line"> mate_rr_output_info_set_active (info, <span class='macro'>TRUE<span class='macro_popup'>(!(0))</span></span>);</td></tr>
+<tr class="codeline" data-linenumber="840"><td class="num" id="LN840">840</td><td class="line"> mate_rr_output_info_set_geometry (info, x, y, mate_rr_mode_get_width (mode), mate_rr_mode_get_height (mode));</td></tr>
+<tr class="codeline" data-linenumber="841"><td class="num" id="LN841">841</td><td class="line"> mate_rr_output_info_set_rotation (info, MATE_RR_ROTATION_0);</td></tr>
+<tr class="codeline" data-linenumber="842"><td class="num" id="LN842">842</td><td class="line"> mate_rr_output_info_set_refresh_rate (info, mate_rr_mode_get_freq (mode));</td></tr>
+<tr class="codeline" data-linenumber="843"><td class="num" id="LN843">843</td><td class="line"> </td></tr>
+<tr class="codeline" data-linenumber="844"><td class="num" id="LN844">844</td><td class="line"> <span class='keyword'>return</span> <span class='macro'>TRUE<span class='macro_popup'>(!(0))</span></span>;</td></tr>
+<tr class="codeline" data-linenumber="845"><td class="num" id="LN845">845</td><td class="line"> }</td></tr>
+<tr class="codeline" data-linenumber="846"><td class="num" id="LN846">846</td><td class="line"> </td></tr>
+<tr class="codeline" data-linenumber="847"><td class="num" id="LN847">847</td><td class="line"> <span class='keyword'>return</span> <span class='macro'>FALSE<span class='macro_popup'>(0)</span></span>;</td></tr>
+<tr class="codeline" data-linenumber="848"><td class="num" id="LN848">848</td><td class="line">}</td></tr>
+<tr class="codeline" data-linenumber="849"><td class="num" id="LN849">849</td><td class="line"> </td></tr>
+<tr class="codeline" data-linenumber="850"><td class="num" id="LN850">850</td><td class="line"><span class='keyword'>static</span> MateRRConfig *</td></tr>
+<tr class="codeline" data-linenumber="851"><td class="num" id="LN851">851</td><td class="line">make_primary_only_setup (MateRRScreen *screen)</td></tr>
+<tr class="codeline" data-linenumber="852"><td class="num" id="LN852">852</td><td class="line">{</td></tr>
+<tr class="codeline" data-linenumber="853"><td class="num" id="LN853">853</td><td class="line"> <span class='comment'>/*Leave all of the monitors turned on, just change from mirror to xinerama layout*/</span></td></tr>
+<tr class="codeline" data-linenumber="854"><td class="num" id="LN854">854</td><td class="line"> MateRRConfig *result = mate_rr_config_new_current (screen, <span class='macro'>NULL<span class='macro_popup'>((void*)0)</span></span>);</td></tr>
+<tr class="codeline" data-linenumber="855"><td class="num" id="LN855">855</td><td class="line"> MateRROutputInfo **outputs = mate_rr_config_get_outputs (result);</td></tr>
+<tr class="codeline" data-linenumber="856"><td class="num" id="LN856">856</td><td class="line"> <span class='keyword'>int</span> i, x, width,height;</td></tr>
+<tr class="codeline" data-linenumber="857"><td class="num" id="LN857">857</td><td class="line"> x = 0;</td></tr>
+<tr class="codeline" data-linenumber="858"><td class="num" id="LN858">858</td><td class="line"> </td></tr>
+<tr class="codeline" data-linenumber="859"><td class="num" id="LN859">859</td><td class="line"> <span class='keyword'>for</span> (i = 0; outputs[i] != <span class='macro'>NULL<span class='macro_popup'>((void*)0)</span></span>; ++i) {</td></tr>
+<tr class="codeline" data-linenumber="860"><td class="num" id="LN860">860</td><td class="line"> MateRROutputInfo *info = outputs[i];</td></tr>
+<tr class="codeline" data-linenumber="861"><td class="num" id="LN861">861</td><td class="line"> width = mate_rr_output_info_get_preferred_width (info);</td></tr>
+<tr class="codeline" data-linenumber="862"><td class="num" id="LN862">862</td><td class="line"> height = mate_rr_output_info_get_preferred_height (info);</td></tr>
+<tr class="codeline" data-linenumber="863"><td class="num" id="LN863">863</td><td class="line"> mate_rr_output_info_set_geometry (info, x, 0, width, height);</td></tr>
+<tr class="codeline" data-linenumber="864"><td class="num" id="LN864">864</td><td class="line"> mate_rr_output_info_set_active (info, <span class='macro'>TRUE<span class='macro_popup'>(!(0))</span></span>);</td></tr>
+<tr class="codeline" data-linenumber="865"><td class="num" id="LN865">865</td><td class="line"> x = x + width;</td></tr>
+<tr class="codeline" data-linenumber="866"><td class="num" id="LN866">866</td><td class="line"> }</td></tr>
+<tr class="codeline" data-linenumber="867"><td class="num" id="LN867">867</td><td class="line"> </td></tr>
+<tr class="codeline" data-linenumber="868"><td class="num" id="LN868">868</td><td class="line"> <span class='keyword'>if</span> (result &amp;&amp; config_is_all_off (result)) {</td></tr>
+<tr class="codeline" data-linenumber="869"><td class="num" id="LN869">869</td><td class="line"> g_object_unref (<span class='macro'>G_OBJECT (result)<span class='macro_popup'>((((GObject*) g_type_check_instance_cast ((GTypeInstance*) ((<br>result)), (((GType) ((20) &lt;&lt; (2))))))))</span></span>);</td></tr>
+<tr class="codeline" data-linenumber="870"><td class="num" id="LN870">870</td><td class="line"> result = <span class='macro'>NULL<span class='macro_popup'>((void*)0)</span></span>;</td></tr>
+<tr class="codeline" data-linenumber="871"><td class="num" id="LN871">871</td><td class="line"> }</td></tr>
+<tr class="codeline" data-linenumber="872"><td class="num" id="LN872">872</td><td class="line"> </td></tr>
+<tr class="codeline" data-linenumber="873"><td class="num" id="LN873">873</td><td class="line"> mate_rr_config_set_clone (result, <span class='macro'>FALSE<span class='macro_popup'>(0)</span></span>);</td></tr>
+<tr class="codeline" data-linenumber="874"><td class="num" id="LN874">874</td><td class="line"> print_configuration (result, <span class='string_literal'>"Primary only setup"</span>);</td></tr>
+<tr class="codeline" data-linenumber="875"><td class="num" id="LN875">875</td><td class="line"> </td></tr>
+<tr class="codeline" data-linenumber="876"><td class="num" id="LN876">876</td><td class="line"> <span class='keyword'>return</span> result;</td></tr>
+<tr class="codeline" data-linenumber="877"><td class="num" id="LN877">877</td><td class="line">}</td></tr>
+<tr class="codeline" data-linenumber="878"><td class="num" id="LN878">878</td><td class="line"> </td></tr>
+<tr class="codeline" data-linenumber="879"><td class="num" id="LN879">879</td><td class="line"><span class='keyword'>static</span> MateRRConfig *</td></tr>
+<tr class="codeline" data-linenumber="880"><td class="num" id="LN880">880</td><td class="line">make_laptop_setup (MateRRScreen *screen)</td></tr>
+<tr class="codeline" data-linenumber="881"><td class="num" id="LN881">881</td><td class="line">{</td></tr>
+<tr class="codeline" data-linenumber="882"><td class="num" id="LN882">882</td><td class="line"> <span class='comment'>/* Turn on the laptop, disable everything else */</span></td></tr>
+<tr class="codeline" data-linenumber="883"><td class="num" id="LN883">883</td><td class="line"> MateRRConfig *result = mate_rr_config_new_current (screen, <span class='macro'>NULL<span class='macro_popup'>((void*)0)</span></span>);</td></tr>
+<tr class="codeline" data-linenumber="884"><td class="num" id="LN884">884</td><td class="line"> MateRROutputInfo **outputs = mate_rr_config_get_outputs (result);</td></tr>
+<tr class="codeline" data-linenumber="885"><td class="num" id="LN885">885</td><td class="line"> <span class='keyword'>int</span> i;</td></tr>
+<tr class="codeline" data-linenumber="886"><td class="num" id="LN886">886</td><td class="line"> </td></tr>
+<tr class="codeline" data-linenumber="887"><td class="num" id="LN887">887</td><td class="line"> <span class='keyword'>for</span> (i = 0; outputs[i] != <span class='macro'>NULL<span class='macro_popup'>((void*)0)</span></span>; ++i) {</td></tr>
+<tr class="codeline" data-linenumber="888"><td class="num" id="LN888">888</td><td class="line"> MateRROutputInfo *info = outputs[i];</td></tr>
+<tr class="codeline" data-linenumber="889"><td class="num" id="LN889">889</td><td class="line"> </td></tr>
+<tr class="codeline" data-linenumber="890"><td class="num" id="LN890">890</td><td class="line"> <span class='keyword'>if</span> (is_laptop (screen, info)) {</td></tr>
+<tr class="codeline" data-linenumber="891"><td class="num" id="LN891">891</td><td class="line"> <span class='keyword'>if</span> (!turn_on (screen, info, 0, 0)) {</td></tr>
+<tr class="codeline" data-linenumber="892"><td class="num" id="LN892">892</td><td class="line"> g_object_unref (<span class='macro'>G_OBJECT (result)<span class='macro_popup'>((((GObject*) g_type_check_instance_cast ((GTypeInstance*) ((<br>result)), (((GType) ((20) &lt;&lt; (2))))))))</span></span>);</td></tr>
+<tr class="codeline" data-linenumber="893"><td class="num" id="LN893">893</td><td class="line"> result = <span class='macro'>NULL<span class='macro_popup'>((void*)0)</span></span>;</td></tr>
+<tr class="codeline" data-linenumber="894"><td class="num" id="LN894">894</td><td class="line"> <span class='keyword'>break</span>;</td></tr>
+<tr class="codeline" data-linenumber="895"><td class="num" id="LN895">895</td><td class="line"> }</td></tr>
+<tr class="codeline" data-linenumber="896"><td class="num" id="LN896">896</td><td class="line"> }</td></tr>
+<tr class="codeline" data-linenumber="897"><td class="num" id="LN897">897</td><td class="line"> <span class='keyword'>else</span> {</td></tr>
+<tr class="codeline" data-linenumber="898"><td class="num" id="LN898">898</td><td class="line"> mate_rr_output_info_set_active (info, <span class='macro'>FALSE<span class='macro_popup'>(0)</span></span>);</td></tr>
+<tr class="codeline" data-linenumber="899"><td class="num" id="LN899">899</td><td class="line"> }</td></tr>
+<tr class="codeline" data-linenumber="900"><td class="num" id="LN900">900</td><td class="line"> }</td></tr>
+<tr class="codeline" data-linenumber="901"><td class="num" id="LN901">901</td><td class="line"> </td></tr>
+<tr class="codeline" data-linenumber="902"><td class="num" id="LN902">902</td><td class="line"> <span class='keyword'>if</span> (result &amp;&amp; config_is_all_off (result)) {</td></tr>
+<tr class="codeline" data-linenumber="903"><td class="num" id="LN903">903</td><td class="line"> g_object_unref (<span class='macro'>G_OBJECT (result)<span class='macro_popup'>((((GObject*) g_type_check_instance_cast ((GTypeInstance*) ((<br>result)), (((GType) ((20) &lt;&lt; (2))))))))</span></span>);</td></tr>
+<tr class="codeline" data-linenumber="904"><td class="num" id="LN904">904</td><td class="line"> result = <span class='macro'>NULL<span class='macro_popup'>((void*)0)</span></span>;</td></tr>
+<tr class="codeline" data-linenumber="905"><td class="num" id="LN905">905</td><td class="line"> }</td></tr>
+<tr class="codeline" data-linenumber="906"><td class="num" id="LN906">906</td><td class="line"> </td></tr>
+<tr class="codeline" data-linenumber="907"><td class="num" id="LN907">907</td><td class="line"> print_configuration (result, <span class='string_literal'>"Laptop setup"</span>);</td></tr>
+<tr class="codeline" data-linenumber="908"><td class="num" id="LN908">908</td><td class="line"> </td></tr>
+<tr class="codeline" data-linenumber="909"><td class="num" id="LN909">909</td><td class="line"> <span class='comment'>/* FIXME - Maybe we should return NULL if there is more than</span></td></tr>
+<tr class="codeline" data-linenumber="910"><td class="num" id="LN910">910</td><td class="line"> <span class='comment'>* one connected "laptop" screen?</span></td></tr>
+<tr class="codeline" data-linenumber="911"><td class="num" id="LN911">911</td><td class="line"> <span class='comment'>*/</span></td></tr>
+<tr class="codeline" data-linenumber="912"><td class="num" id="LN912">912</td><td class="line"> <span class='keyword'>return</span> result;</td></tr>
+<tr class="codeline" data-linenumber="913"><td class="num" id="LN913">913</td><td class="line">}</td></tr>
+<tr class="codeline" data-linenumber="914"><td class="num" id="LN914">914</td><td class="line"> </td></tr>
+<tr class="codeline" data-linenumber="915"><td class="num" id="LN915">915</td><td class="line"><span class='keyword'>static</span> <span class='keyword'>int</span></td></tr>
+<tr class="codeline" data-linenumber="916"><td class="num" id="LN916">916</td><td class="line">turn_on_and_get_rightmost_offset (MateRRScreen *screen, MateRROutputInfo *info, <span class='keyword'>int</span> x)</td></tr>
+<tr class="codeline" data-linenumber="917"><td class="num" id="LN917">917</td><td class="line">{</td></tr>
+<tr class="codeline" data-linenumber="918"><td class="num" id="LN918">918</td><td class="line"> <span class='keyword'>if</span> (turn_on (screen, info, x, 0)) {</td></tr>
+<tr class="codeline" data-linenumber="919"><td class="num" id="LN919">919</td><td class="line"> <span class='keyword'>int</span> width;</td></tr>
+<tr class="codeline" data-linenumber="920"><td class="num" id="LN920">920</td><td class="line"> mate_rr_output_info_get_geometry (info, <span class='macro'>NULL<span class='macro_popup'>((void*)0)</span></span>, <span class='macro'>NULL<span class='macro_popup'>((void*)0)</span></span>, &amp;width, <span class='macro'>NULL<span class='macro_popup'>((void*)0)</span></span>);</td></tr>
+<tr class="codeline" data-linenumber="921"><td class="num" id="LN921">921</td><td class="line"> x += width;</td></tr>
+<tr class="codeline" data-linenumber="922"><td class="num" id="LN922">922</td><td class="line"> }</td></tr>
+<tr class="codeline" data-linenumber="923"><td class="num" id="LN923">923</td><td class="line"> </td></tr>
+<tr class="codeline" data-linenumber="924"><td class="num" id="LN924">924</td><td class="line"> <span class='keyword'>return</span> x;</td></tr>
+<tr class="codeline" data-linenumber="925"><td class="num" id="LN925">925</td><td class="line">}</td></tr>
+<tr class="codeline" data-linenumber="926"><td class="num" id="LN926">926</td><td class="line"> </td></tr>
+<tr class="codeline" data-linenumber="927"><td class="num" id="LN927">927</td><td class="line"><span class='keyword'>static</span> MateRRConfig *</td></tr>
+<tr class="codeline" data-linenumber="928"><td class="num" id="LN928">928</td><td class="line">make_xinerama_setup (MateRRScreen *screen)</td></tr>
+<tr class="codeline" data-linenumber="929"><td class="num" id="LN929">929</td><td class="line">{</td></tr>
+<tr class="codeline" data-linenumber="930"><td class="num" id="LN930">930</td><td class="line"> <span class='comment'>/* Turn on everything that has a preferred mode, and</span></td></tr>
+<tr class="codeline" data-linenumber="931"><td class="num" id="LN931">931</td><td class="line"> <span class='comment'>* position it from left to right</span></td></tr>
+<tr class="codeline" data-linenumber="932"><td class="num" id="LN932">932</td><td class="line"> <span class='comment'>*/</span></td></tr>
+<tr class="codeline" data-linenumber="933"><td class="num" id="LN933">933</td><td class="line"> MateRRConfig *result = mate_rr_config_new_current (screen, <span class='macro'>NULL<span class='macro_popup'>((void*)0)</span></span>);</td></tr>
+<tr class="codeline" data-linenumber="934"><td class="num" id="LN934">934</td><td class="line"> MateRROutputInfo **outputs = mate_rr_config_get_outputs (result);</td></tr>
+<tr class="codeline" data-linenumber="935"><td class="num" id="LN935">935</td><td class="line"> <span class='keyword'>int</span> i;</td></tr>
+<tr class="codeline" data-linenumber="936"><td class="num" id="LN936">936</td><td class="line"> <span class='keyword'>int</span> x;</td></tr>
+<tr class="codeline" data-linenumber="937"><td class="num" id="LN937">937</td><td class="line"> </td></tr>
+<tr class="codeline" data-linenumber="938"><td class="num" id="LN938">938</td><td class="line"> x = 0;</td></tr>
+<tr class="codeline" data-linenumber="939"><td class="num" id="LN939">939</td><td class="line"> <span class='keyword'>for</span> (i = 0; outputs[i] != <span class='macro'>NULL<span class='macro_popup'>((void*)0)</span></span>; ++i) {</td></tr>
+<tr class="codeline" data-linenumber="940"><td class="num" id="LN940">940</td><td class="line"> MateRROutputInfo *info = outputs[i];</td></tr>
+<tr class="codeline" data-linenumber="941"><td class="num" id="LN941">941</td><td class="line"> </td></tr>
+<tr class="codeline" data-linenumber="942"><td class="num" id="LN942">942</td><td class="line"> <span class='keyword'>if</span> (is_laptop (screen, info))</td></tr>
+<tr class="codeline" data-linenumber="943"><td class="num" id="LN943">943</td><td class="line"> x = turn_on_and_get_rightmost_offset (screen, info, x);</td></tr>
+<tr class="codeline" data-linenumber="944"><td class="num" id="LN944">944</td><td class="line"> }</td></tr>
+<tr class="codeline" data-linenumber="945"><td class="num" id="LN945">945</td><td class="line"> </td></tr>
+<tr class="codeline" data-linenumber="946"><td class="num" id="LN946">946</td><td class="line"> <span class='keyword'>for</span> (i = 0; outputs[i] != <span class='macro'>NULL<span class='macro_popup'>((void*)0)</span></span>; ++i) {</td></tr>
+<tr class="codeline" data-linenumber="947"><td class="num" id="LN947">947</td><td class="line"> MateRROutputInfo *info = outputs[i];</td></tr>
+<tr class="codeline" data-linenumber="948"><td class="num" id="LN948">948</td><td class="line"> </td></tr>
+<tr class="codeline" data-linenumber="949"><td class="num" id="LN949">949</td><td class="line"> <span class='keyword'>if</span> (mate_rr_output_info_is_connected (info) &amp;&amp; !is_laptop (screen, info))</td></tr>
+<tr class="codeline" data-linenumber="950"><td class="num" id="LN950">950</td><td class="line"> x = turn_on_and_get_rightmost_offset (screen, info, x);</td></tr>
+<tr class="codeline" data-linenumber="951"><td class="num" id="LN951">951</td><td class="line"> }</td></tr>
+<tr class="codeline" data-linenumber="952"><td class="num" id="LN952">952</td><td class="line"> </td></tr>
+<tr class="codeline" data-linenumber="953"><td class="num" id="LN953">953</td><td class="line"> <span class='keyword'>if</span> (config_is_all_off (result)) {</td></tr>
+<tr class="codeline" data-linenumber="954"><td class="num" id="LN954">954</td><td class="line"> g_object_unref (<span class='macro'>G_OBJECT (result)<span class='macro_popup'>((((GObject*) g_type_check_instance_cast ((GTypeInstance*) ((<br>result)), (((GType) ((20) &lt;&lt; (2))))))))</span></span>);</td></tr>
+<tr class="codeline" data-linenumber="955"><td class="num" id="LN955">955</td><td class="line"> result = <span class='macro'>NULL<span class='macro_popup'>((void*)0)</span></span>;</td></tr>
+<tr class="codeline" data-linenumber="956"><td class="num" id="LN956">956</td><td class="line"> }</td></tr>
+<tr class="codeline" data-linenumber="957"><td class="num" id="LN957">957</td><td class="line"> </td></tr>
+<tr class="codeline" data-linenumber="958"><td class="num" id="LN958">958</td><td class="line"> print_configuration (result, <span class='string_literal'>"xinerama setup"</span>);</td></tr>
+<tr class="codeline" data-linenumber="959"><td class="num" id="LN959">959</td><td class="line"> </td></tr>
+<tr class="codeline" data-linenumber="960"><td class="num" id="LN960">960</td><td class="line"> <span class='keyword'>return</span> result;</td></tr>
+<tr class="codeline" data-linenumber="961"><td class="num" id="LN961">961</td><td class="line">}</td></tr>
+<tr class="codeline" data-linenumber="962"><td class="num" id="LN962">962</td><td class="line"> </td></tr>
+<tr class="codeline" data-linenumber="963"><td class="num" id="LN963">963</td><td class="line"><span class='keyword'>static</span> MateRRConfig *</td></tr>
+<tr class="codeline" data-linenumber="964"><td class="num" id="LN964">964</td><td class="line">make_other_setup (MateRRScreen *screen)</td></tr>
+<tr class="codeline" data-linenumber="965"><td class="num" id="LN965">965</td><td class="line">{</td></tr>
+<tr class="codeline" data-linenumber="966"><td class="num" id="LN966">966</td><td class="line"> <span class='comment'>/* Turn off all laptops, and make all external monitors clone</span></td></tr>
+<tr class="codeline" data-linenumber="967"><td class="num" id="LN967">967</td><td class="line"> <span class='comment'>* from (0, 0)</span></td></tr>
+<tr class="codeline" data-linenumber="968"><td class="num" id="LN968">968</td><td class="line"> <span class='comment'>*/</span></td></tr>
+<tr class="codeline" data-linenumber="969"><td class="num" id="LN969">969</td><td class="line"> </td></tr>
+<tr class="codeline" data-linenumber="970"><td class="num" id="LN970">970</td><td class="line"> MateRRConfig *result = mate_rr_config_new_current (screen, <span class='macro'>NULL<span class='macro_popup'>((void*)0)</span></span>);</td></tr>
+<tr class="codeline" data-linenumber="971"><td class="num" id="LN971">971</td><td class="line"> MateRROutputInfo **outputs = mate_rr_config_get_outputs (result);</td></tr>
+<tr class="codeline" data-linenumber="972"><td class="num" id="LN972">972</td><td class="line"> <span class='keyword'>int</span> i;</td></tr>
+<tr class="codeline" data-linenumber="973"><td class="num" id="LN973">973</td><td class="line"> </td></tr>
+<tr class="codeline" data-linenumber="974"><td class="num" id="LN974">974</td><td class="line"> <span class='keyword'>for</span> (i = 0; outputs[i] != <span class='macro'>NULL<span class='macro_popup'>((void*)0)</span></span>; ++i) {</td></tr>
+<tr class="codeline" data-linenumber="975"><td class="num" id="LN975">975</td><td class="line"> MateRROutputInfo *info = outputs[i];</td></tr>
+<tr class="codeline" data-linenumber="976"><td class="num" id="LN976">976</td><td class="line"> </td></tr>
+<tr class="codeline" data-linenumber="977"><td class="num" id="LN977">977</td><td class="line"> <span class='keyword'>if</span> (is_laptop (screen, info)) {</td></tr>
+<tr class="codeline" data-linenumber="978"><td class="num" id="LN978">978</td><td class="line"> mate_rr_output_info_set_active (info, <span class='macro'>FALSE<span class='macro_popup'>(0)</span></span>);</td></tr>
+<tr class="codeline" data-linenumber="979"><td class="num" id="LN979">979</td><td class="line"> }</td></tr>
+<tr class="codeline" data-linenumber="980"><td class="num" id="LN980">980</td><td class="line"> <span class='keyword'>else</span> {</td></tr>
+<tr class="codeline" data-linenumber="981"><td class="num" id="LN981">981</td><td class="line"> <span class='keyword'>if</span> (mate_rr_output_info_is_connected (info))</td></tr>
+<tr class="codeline" data-linenumber="982"><td class="num" id="LN982">982</td><td class="line"> turn_on (screen, info, 0, 0);</td></tr>
+<tr class="codeline" data-linenumber="983"><td class="num" id="LN983">983</td><td class="line"> }</td></tr>
+<tr class="codeline" data-linenumber="984"><td class="num" id="LN984">984</td><td class="line"> }</td></tr>
+<tr class="codeline" data-linenumber="985"><td class="num" id="LN985">985</td><td class="line"> </td></tr>
+<tr class="codeline" data-linenumber="986"><td class="num" id="LN986">986</td><td class="line"> <span class='keyword'>if</span> (config_is_all_off (result)) {</td></tr>
+<tr class="codeline" data-linenumber="987"><td class="num" id="LN987">987</td><td class="line"> g_object_unref (<span class='macro'>G_OBJECT (result)<span class='macro_popup'>((((GObject*) g_type_check_instance_cast ((GTypeInstance*) ((<br>result)), (((GType) ((20) &lt;&lt; (2))))))))</span></span>);</td></tr>
+<tr class="codeline" data-linenumber="988"><td class="num" id="LN988">988</td><td class="line"> result = <span class='macro'>NULL<span class='macro_popup'>((void*)0)</span></span>;</td></tr>
+<tr class="codeline" data-linenumber="989"><td class="num" id="LN989">989</td><td class="line"> }</td></tr>
+<tr class="codeline" data-linenumber="990"><td class="num" id="LN990">990</td><td class="line"> </td></tr>
+<tr class="codeline" data-linenumber="991"><td class="num" id="LN991">991</td><td class="line"> print_configuration (result, <span class='string_literal'>"other setup"</span>);</td></tr>
+<tr class="codeline" data-linenumber="992"><td class="num" id="LN992">992</td><td class="line"> </td></tr>
+<tr class="codeline" data-linenumber="993"><td class="num" id="LN993">993</td><td class="line"> <span class='keyword'>return</span> result;</td></tr>
+<tr class="codeline" data-linenumber="994"><td class="num" id="LN994">994</td><td class="line">}</td></tr>
+<tr class="codeline" data-linenumber="995"><td class="num" id="LN995">995</td><td class="line"> </td></tr>
+<tr class="codeline" data-linenumber="996"><td class="num" id="LN996">996</td><td class="line"><span class='keyword'>static</span> GPtrArray *</td></tr>
+<tr class="codeline" data-linenumber="997"><td class="num" id="LN997">997</td><td class="line">sanitize (MsdXrandrManager *manager, GPtrArray *array)</td></tr>
+<tr class="codeline" data-linenumber="998"><td class="num" id="LN998">998</td><td class="line">{</td></tr>
+<tr class="codeline" data-linenumber="999"><td class="num" id="LN999">999</td><td class="line"> <span class='keyword'>int</span> i;</td></tr>
+<tr class="codeline" data-linenumber="1000"><td class="num" id="LN1000">1000</td><td class="line"> GPtrArray *new;</td></tr>
+<tr class="codeline" data-linenumber="1001"><td class="num" id="LN1001">1001</td><td class="line"> </td></tr>
+<tr class="codeline" data-linenumber="1002"><td class="num" id="LN1002">1002</td><td class="line"> g_debug (<span class='string_literal'>"before sanitizing"</span>);</td></tr>
+<tr class="codeline" data-linenumber="1003"><td class="num" id="LN1003">1003</td><td class="line"> </td></tr>
+<tr class="codeline" data-linenumber="1004"><td class="num" id="LN1004">1004</td><td class="line"> <span class='keyword'>for</span> (i = 0; i &lt; array-&gt;len; ++i) {</td></tr>
+<tr class="codeline" data-linenumber="1005"><td class="num" id="LN1005">1005</td><td class="line"> <span class='keyword'>if</span> (array-&gt;pdata[i]) {</td></tr>
+<tr class="codeline" data-linenumber="1006"><td class="num" id="LN1006">1006</td><td class="line"> print_configuration (array-&gt;pdata[i], <span class='string_literal'>"before"</span>);</td></tr>
+<tr class="codeline" data-linenumber="1007"><td class="num" id="LN1007">1007</td><td class="line"> }</td></tr>
+<tr class="codeline" data-linenumber="1008"><td class="num" id="LN1008">1008</td><td class="line"> }</td></tr>
+<tr class="codeline" data-linenumber="1009"><td class="num" id="LN1009">1009</td><td class="line"> </td></tr>
+<tr class="codeline" data-linenumber="1010"><td class="num" id="LN1010">1010</td><td class="line"> </td></tr>
+<tr class="codeline" data-linenumber="1011"><td class="num" id="LN1011">1011</td><td class="line"> <span class='comment'>/* Remove configurations that are duplicates of</span></td></tr>
+<tr class="codeline" data-linenumber="1012"><td class="num" id="LN1012">1012</td><td class="line"> <span class='comment'>* configurations earlier in the cycle</span></td></tr>
+<tr class="codeline" data-linenumber="1013"><td class="num" id="LN1013">1013</td><td class="line"> <span class='comment'>*/</span></td></tr>
+<tr class="codeline" data-linenumber="1014"><td class="num" id="LN1014">1014</td><td class="line"> <span class='keyword'>for</span> (i = 0; i &lt; array-&gt;len; i++) {</td></tr>
+<tr class="codeline" data-linenumber="1015"><td class="num" id="LN1015">1015</td><td class="line"> <span class='keyword'>int</span> j;</td></tr>
+<tr class="codeline" data-linenumber="1016"><td class="num" id="LN1016">1016</td><td class="line"> </td></tr>
+<tr class="codeline" data-linenumber="1017"><td class="num" id="LN1017">1017</td><td class="line"> <span class='keyword'>for</span> (j = i + 1; j &lt; array-&gt;len; j++) {</td></tr>
+<tr class="codeline" data-linenumber="1018"><td class="num" id="LN1018">1018</td><td class="line"> MateRRConfig *this = array-&gt;pdata[j];</td></tr>
+<tr class="codeline" data-linenumber="1019"><td class="num" id="LN1019">1019</td><td class="line"> MateRRConfig *other = array-&gt;pdata[i];</td></tr>
+<tr class="codeline" data-linenumber="1020"><td class="num" id="LN1020">1020</td><td class="line"> </td></tr>
+<tr class="codeline" data-linenumber="1021"><td class="num" id="LN1021">1021</td><td class="line"> <span class='keyword'>if</span> (this &amp;&amp; other &amp;&amp; mate_rr_config_equal (this, other)) {</td></tr>
+<tr class="codeline" data-linenumber="1022"><td class="num" id="LN1022">1022</td><td class="line"> g_debug (<span class='string_literal'>"removing duplicate configuration"</span>);</td></tr>
+<tr class="codeline" data-linenumber="1023"><td class="num" id="LN1023">1023</td><td class="line"> g_object_unref (this);</td></tr>
+<tr class="codeline" data-linenumber="1024"><td class="num" id="LN1024">1024</td><td class="line"> array-&gt;pdata[j] = <span class='macro'>NULL<span class='macro_popup'>((void*)0)</span></span>;</td></tr>
+<tr class="codeline" data-linenumber="1025"><td class="num" id="LN1025">1025</td><td class="line"> <span class='keyword'>break</span>;</td></tr>
+<tr class="codeline" data-linenumber="1026"><td class="num" id="LN1026">1026</td><td class="line"> }</td></tr>
+<tr class="codeline" data-linenumber="1027"><td class="num" id="LN1027">1027</td><td class="line"> }</td></tr>
+<tr class="codeline" data-linenumber="1028"><td class="num" id="LN1028">1028</td><td class="line"> }</td></tr>
+<tr class="codeline" data-linenumber="1029"><td class="num" id="LN1029">1029</td><td class="line"> </td></tr>
+<tr class="codeline" data-linenumber="1030"><td class="num" id="LN1030">1030</td><td class="line"> <span class='keyword'>for</span> (i = 0; i &lt; array-&gt;len; ++i) {</td></tr>
+<tr class="codeline" data-linenumber="1031"><td class="num" id="LN1031">1031</td><td class="line"> MateRRConfig *config = array-&gt;pdata[i];</td></tr>
+<tr class="codeline" data-linenumber="1032"><td class="num" id="LN1032">1032</td><td class="line"> </td></tr>
+<tr class="codeline" data-linenumber="1033"><td class="num" id="LN1033">1033</td><td class="line"> <span class='keyword'>if</span> (config &amp;&amp; config_is_all_off (config)) {</td></tr>
+<tr class="codeline" data-linenumber="1034"><td class="num" id="LN1034">1034</td><td class="line"> g_debug (<span class='string_literal'>"removing configuration as all outputs are off"</span>);</td></tr>
+<tr class="codeline" data-linenumber="1035"><td class="num" id="LN1035">1035</td><td class="line"> g_object_unref (array-&gt;pdata[i]);</td></tr>
+<tr class="codeline" data-linenumber="1036"><td class="num" id="LN1036">1036</td><td class="line"> array-&gt;pdata[i] = <span class='macro'>NULL<span class='macro_popup'>((void*)0)</span></span>;</td></tr>
+<tr class="codeline" data-linenumber="1037"><td class="num" id="LN1037">1037</td><td class="line"> }</td></tr>
+<tr class="codeline" data-linenumber="1038"><td class="num" id="LN1038">1038</td><td class="line"> }</td></tr>
+<tr class="codeline" data-linenumber="1039"><td class="num" id="LN1039">1039</td><td class="line"> </td></tr>
+<tr class="codeline" data-linenumber="1040"><td class="num" id="LN1040">1040</td><td class="line"> <span class='comment'>/* Do a final sanitization pass. This will remove configurations that</span></td></tr>
+<tr class="codeline" data-linenumber="1041"><td class="num" id="LN1041">1041</td><td class="line"> <span class='comment'>* don't fit in the framebuffer's Virtual size.</span></td></tr>
+<tr class="codeline" data-linenumber="1042"><td class="num" id="LN1042">1042</td><td class="line"> <span class='comment'>*/</span></td></tr>
+<tr class="codeline" data-linenumber="1043"><td class="num" id="LN1043">1043</td><td class="line"> </td></tr>
+<tr class="codeline" data-linenumber="1044"><td class="num" id="LN1044">1044</td><td class="line"> <span class='keyword'>for</span> (i = 0; i &lt; array-&gt;len; i++) {</td></tr>
+<tr class="codeline" data-linenumber="1045"><td class="num" id="LN1045">1045</td><td class="line"> MateRRConfig *config = array-&gt;pdata[i];</td></tr>
+<tr class="codeline" data-linenumber="1046"><td class="num" id="LN1046">1046</td><td class="line"> </td></tr>
+<tr class="codeline" data-linenumber="1047"><td class="num" id="LN1047">1047</td><td class="line"> <span class='keyword'>if</span> (config) {</td></tr>
+<tr class="codeline" data-linenumber="1048"><td class="num" id="LN1048">1048</td><td class="line"> GError *error;</td></tr>
+<tr class="codeline" data-linenumber="1049"><td class="num" id="LN1049">1049</td><td class="line"> </td></tr>
+<tr class="codeline" data-linenumber="1050"><td class="num" id="LN1050">1050</td><td class="line"> error = <span class='macro'>NULL<span class='macro_popup'>((void*)0)</span></span>;</td></tr>
+<tr class="codeline" data-linenumber="1051"><td class="num" id="LN1051">1051</td><td class="line"> <span class='keyword'>if</span> (!mate_rr_config_applicable (config, manager-&gt;priv-&gt;rw_screen, &amp;error)) { <span class='comment'>/* NULL-GError */</span></td></tr>
+<tr class="codeline" data-linenumber="1052"><td class="num" id="LN1052">1052</td><td class="line"> g_debug (<span class='string_literal'>"removing configuration which is not applicable because %s"</span>, error-&gt;message);</td></tr>
+<tr class="codeline" data-linenumber="1053"><td class="num" id="LN1053">1053</td><td class="line"> g_error_free (error);</td></tr>
+<tr class="codeline" data-linenumber="1054"><td class="num" id="LN1054">1054</td><td class="line"> </td></tr>
+<tr class="codeline" data-linenumber="1055"><td class="num" id="LN1055">1055</td><td class="line"> g_object_unref (config);</td></tr>
+<tr class="codeline" data-linenumber="1056"><td class="num" id="LN1056">1056</td><td class="line"> array-&gt;pdata[i] = <span class='macro'>NULL<span class='macro_popup'>((void*)0)</span></span>;</td></tr>
+<tr class="codeline" data-linenumber="1057"><td class="num" id="LN1057">1057</td><td class="line"> }</td></tr>
+<tr class="codeline" data-linenumber="1058"><td class="num" id="LN1058">1058</td><td class="line"> }</td></tr>
+<tr class="codeline" data-linenumber="1059"><td class="num" id="LN1059">1059</td><td class="line"> }</td></tr>
+<tr class="codeline" data-linenumber="1060"><td class="num" id="LN1060">1060</td><td class="line"> </td></tr>
+<tr class="codeline" data-linenumber="1061"><td class="num" id="LN1061">1061</td><td class="line"> <span class='comment'>/* Remove NULL configurations */</span></td></tr>
+<tr class="codeline" data-linenumber="1062"><td class="num" id="LN1062">1062</td><td class="line"> new = g_ptr_array_new ();</td></tr>
+<tr class="codeline" data-linenumber="1063"><td class="num" id="LN1063">1063</td><td class="line"> </td></tr>
+<tr class="codeline" data-linenumber="1064"><td class="num" id="LN1064">1064</td><td class="line"> <span class='keyword'>for</span> (i = 0; i &lt; array-&gt;len; ++i) {</td></tr>
+<tr class="codeline" data-linenumber="1065"><td class="num" id="LN1065">1065</td><td class="line"> <span class='keyword'>if</span> (array-&gt;pdata[i]) {</td></tr>
+<tr class="codeline" data-linenumber="1066"><td class="num" id="LN1066">1066</td><td class="line"> g_ptr_array_add (new, array-&gt;pdata[i]);</td></tr>
+<tr class="codeline" data-linenumber="1067"><td class="num" id="LN1067">1067</td><td class="line"> print_configuration (array-&gt;pdata[i], <span class='string_literal'>"Final"</span>);</td></tr>
+<tr class="codeline" data-linenumber="1068"><td class="num" id="LN1068">1068</td><td class="line"> }</td></tr>
+<tr class="codeline" data-linenumber="1069"><td class="num" id="LN1069">1069</td><td class="line"> }</td></tr>
+<tr class="codeline" data-linenumber="1070"><td class="num" id="LN1070">1070</td><td class="line"> </td></tr>
+<tr class="codeline" data-linenumber="1071"><td class="num" id="LN1071">1071</td><td class="line"> <span class='keyword'>if</span> (new-&gt;len &gt; 0) {</td></tr>
+<tr class="codeline" data-linenumber="1072"><td class="num" id="LN1072">1072</td><td class="line"> g_ptr_array_add (new, <span class='macro'>NULL<span class='macro_popup'>((void*)0)</span></span>);</td></tr>
+<tr class="codeline" data-linenumber="1073"><td class="num" id="LN1073">1073</td><td class="line"> } <span class='keyword'>else</span> {</td></tr>
+<tr class="codeline" data-linenumber="1074"><td class="num" id="LN1074">1074</td><td class="line"> g_ptr_array_free (new, <span class='macro'>TRUE<span class='macro_popup'>(!(0))</span></span>);</td></tr>
+<tr class="codeline" data-linenumber="1075"><td class="num" id="LN1075">1075</td><td class="line"> new = <span class='macro'>NULL<span class='macro_popup'>((void*)0)</span></span>;</td></tr>
+<tr class="codeline" data-linenumber="1076"><td class="num" id="LN1076">1076</td><td class="line"> }</td></tr>
+<tr class="codeline" data-linenumber="1077"><td class="num" id="LN1077">1077</td><td class="line"> </td></tr>
+<tr class="codeline" data-linenumber="1078"><td class="num" id="LN1078">1078</td><td class="line"> g_ptr_array_free (array, <span class='macro'>TRUE<span class='macro_popup'>(!(0))</span></span>);</td></tr>
+<tr class="codeline" data-linenumber="1079"><td class="num" id="LN1079">1079</td><td class="line"> </td></tr>
+<tr class="codeline" data-linenumber="1080"><td class="num" id="LN1080">1080</td><td class="line"> <span class='keyword'>return</span> new;</td></tr>
+<tr class="codeline" data-linenumber="1081"><td class="num" id="LN1081">1081</td><td class="line">}</td></tr>
+<tr class="codeline" data-linenumber="1082"><td class="num" id="LN1082">1082</td><td class="line"> </td></tr>
+<tr class="codeline" data-linenumber="1083"><td class="num" id="LN1083">1083</td><td class="line"><span class='keyword'>static</span> <span class='keyword'>void</span></td></tr>
+<tr class="codeline" data-linenumber="1084"><td class="num" id="LN1084">1084</td><td class="line">generate_fn_f7_configs (MsdXrandrManager *mgr)</td></tr>
+<tr class="codeline" data-linenumber="1085"><td class="num" id="LN1085">1085</td><td class="line">{</td></tr>
+<tr class="codeline" data-linenumber="1086"><td class="num" id="LN1086">1086</td><td class="line"> GPtrArray *array = g_ptr_array_new ();</td></tr>
+<tr class="codeline" data-linenumber="1087"><td class="num" id="LN1087">1087</td><td class="line"> MateRRScreen *screen = mgr-&gt;priv-&gt;rw_screen;</td></tr>
+<tr class="codeline" data-linenumber="1088"><td class="num" id="LN1088">1088</td><td class="line"> </td></tr>
+<tr class="codeline" data-linenumber="1089"><td class="num" id="LN1089">1089</td><td class="line"> g_debug (<span class='string_literal'>"Generating configurations"</span>);</td></tr>
+<tr class="codeline" data-linenumber="1090"><td class="num" id="LN1090">1090</td><td class="line"> </td></tr>
+<tr class="codeline" data-linenumber="1091"><td class="num" id="LN1091">1091</td><td class="line"> <span class='comment'>/* Free any existing list of configurations */</span></td></tr>
+<tr class="codeline" data-linenumber="1092"><td class="num" id="LN1092">1092</td><td class="line"> <span class='keyword'>if</span> (mgr-&gt;priv-&gt;fn_f7_configs) {</td></tr>
+<tr class="codeline" data-linenumber="1093"><td class="num" id="LN1093">1093</td><td class="line"> <span class='keyword'>int</span> i;</td></tr>
+<tr class="codeline" data-linenumber="1094"><td class="num" id="LN1094">1094</td><td class="line"> </td></tr>
+<tr class="codeline" data-linenumber="1095"><td class="num" id="LN1095">1095</td><td class="line"> <span class='keyword'>for</span> (i = 0; mgr-&gt;priv-&gt;fn_f7_configs[i] != <span class='macro'>NULL<span class='macro_popup'>((void*)0)</span></span>; ++i)</td></tr>
+<tr class="codeline" data-linenumber="1096"><td class="num" id="LN1096">1096</td><td class="line"> g_object_unref (mgr-&gt;priv-&gt;fn_f7_configs[i]);</td></tr>
+<tr class="codeline" data-linenumber="1097"><td class="num" id="LN1097">1097</td><td class="line"> g_free (mgr-&gt;priv-&gt;fn_f7_configs);</td></tr>
+<tr class="codeline" data-linenumber="1098"><td class="num" id="LN1098">1098</td><td class="line"> </td></tr>
+<tr class="codeline" data-linenumber="1099"><td class="num" id="LN1099">1099</td><td class="line"> mgr-&gt;priv-&gt;fn_f7_configs = <span class='macro'>NULL<span class='macro_popup'>((void*)0)</span></span>;</td></tr>
+<tr class="codeline" data-linenumber="1100"><td class="num" id="LN1100">1100</td><td class="line"> mgr-&gt;priv-&gt;current_fn_f7_config = -1;</td></tr>
+<tr class="codeline" data-linenumber="1101"><td class="num" id="LN1101">1101</td><td class="line"> }</td></tr>
+<tr class="codeline" data-linenumber="1102"><td class="num" id="LN1102">1102</td><td class="line"> </td></tr>
+<tr class="codeline" data-linenumber="1103"><td class="num" id="LN1103">1103</td><td class="line"> g_ptr_array_add (array, mate_rr_config_new_current (screen, <span class='macro'>NULL<span class='macro_popup'>((void*)0)</span></span>));</td></tr>
+<tr class="codeline" data-linenumber="1104"><td class="num" id="LN1104">1104</td><td class="line"> g_ptr_array_add (array, make_clone_setup (screen));</td></tr>
+<tr class="codeline" data-linenumber="1105"><td class="num" id="LN1105">1105</td><td class="line"> g_ptr_array_add (array, make_xinerama_setup (screen));</td></tr>
+<tr class="codeline" data-linenumber="1106"><td class="num" id="LN1106">1106</td><td class="line"> g_ptr_array_add (array, make_laptop_setup (screen));</td></tr>
+<tr class="codeline" data-linenumber="1107"><td class="num" id="LN1107">1107</td><td class="line"> g_ptr_array_add (array, make_other_setup (screen));</td></tr>
+<tr class="codeline" data-linenumber="1108"><td class="num" id="LN1108">1108</td><td class="line"> </td></tr>
+<tr class="codeline" data-linenumber="1109"><td class="num" id="LN1109">1109</td><td class="line"> array = sanitize (mgr, array);</td></tr>
+<tr class="codeline" data-linenumber="1110"><td class="num" id="LN1110">1110</td><td class="line"> </td></tr>
+<tr class="codeline" data-linenumber="1111"><td class="num" id="LN1111">1111</td><td class="line"> <span class='keyword'>if</span> (array) {</td></tr>
+<tr class="codeline" data-linenumber="1112"><td class="num" id="LN1112">1112</td><td class="line"> mgr-&gt;priv-&gt;fn_f7_configs = (MateRRConfig **)g_ptr_array_free (array, <span class='macro'>FALSE<span class='macro_popup'>(0)</span></span>);</td></tr>
+<tr class="codeline" data-linenumber="1113"><td class="num" id="LN1113">1113</td><td class="line"> mgr-&gt;priv-&gt;current_fn_f7_config = 0;</td></tr>
+<tr class="codeline" data-linenumber="1114"><td class="num" id="LN1114">1114</td><td class="line"> }</td></tr>
+<tr class="codeline" data-linenumber="1115"><td class="num" id="LN1115">1115</td><td class="line">}</td></tr>
+<tr class="codeline" data-linenumber="1116"><td class="num" id="LN1116">1116</td><td class="line"> </td></tr>
+<tr class="codeline" data-linenumber="1117"><td class="num" id="LN1117">1117</td><td class="line"><span class='keyword'>static</span> <span class='keyword'>void</span></td></tr>
+<tr class="codeline" data-linenumber="1118"><td class="num" id="LN1118">1118</td><td class="line">error_message (MsdXrandrManager *mgr, <span class='keyword'>const</span> <span class='keyword'>char</span> *primary_text, GError *error_to_display, <span class='keyword'>const</span> <span class='keyword'>char</span> *secondary_text)</td></tr>
+<tr class="codeline" data-linenumber="1119"><td class="num" id="LN1119">1119</td><td class="line">{</td></tr>
+<tr class="codeline" data-linenumber="1120"><td class="num" id="LN1120">1120</td><td class="line"><span class='directive'>#ifdef <span class='macro'>HAVE_LIBNOTIFY<span class='macro_popup'>1</span></span></span></td></tr>
+<tr class="codeline" data-linenumber="1121"><td class="num" id="LN1121">1121</td><td class="line"> MsdXrandrManagerPrivate *priv = mgr-&gt;priv;</td></tr>
+<tr class="codeline" data-linenumber="1122"><td class="num" id="LN1122">1122</td><td class="line"> NotifyNotification *notification;</td></tr>
+<tr class="codeline" data-linenumber="1123"><td class="num" id="LN1123">1123</td><td class="line"> </td></tr>
+<tr class="codeline" data-linenumber="1124"><td class="num" id="LN1124">1124</td><td class="line"> <span class='macro'>g_assert (error_to_display == NULL || secondary_text == NULL)<span class='macro_popup'>do { if (error_to_display == ((void*)0) || secondary_text == (<br>(void*)0)) ; else g_assertion_message_expr (((gchar*) 0), "msd-xrandr-manager.c"<br>, 1124, ((const char*) (__func__)), "error_to_display == NULL || secondary_text == NULL"<br>); } while (0)</span></span>;</td></tr>
+<tr class="codeline" data-linenumber="1125"><td class="num" id="LN1125">1125</td><td class="line"> </td></tr>
+<tr class="codeline" data-linenumber="1126"><td class="num" id="LN1126">1126</td><td class="line"> <span class='keyword'>if</span> (priv-&gt;status_icon)</td></tr>
+<tr class="codeline" data-linenumber="1127"><td class="num" id="LN1127">1127</td><td class="line"> notification = notify_notification_new (primary_text,</td></tr>
+<tr class="codeline" data-linenumber="1128"><td class="num" id="LN1128">1128</td><td class="line"> error_to_display ? error_to_display-&gt;message : secondary_text,</td></tr>
+<tr class="codeline" data-linenumber="1129"><td class="num" id="LN1129">1129</td><td class="line"> gtk_status_icon_get_icon_name(priv-&gt;status_icon));</td></tr>
+<tr class="codeline" data-linenumber="1130"><td class="num" id="LN1130">1130</td><td class="line"> <span class='keyword'>else</span></td></tr>
+<tr class="codeline" data-linenumber="1131"><td class="num" id="LN1131">1131</td><td class="line"> notification = notify_notification_new (primary_text,</td></tr>
+<tr class="codeline" data-linenumber="1132"><td class="num" id="LN1132">1132</td><td class="line"> error_to_display ? error_to_display-&gt;message : secondary_text,</td></tr>
+<tr class="codeline" data-linenumber="1133"><td class="num" id="LN1133">1133</td><td class="line"> <span class='macro'>MSD_XRANDR_ICON_NAME<span class='macro_popup'>"msd-xrandr"</span></span>);</td></tr>
+<tr class="codeline" data-linenumber="1134"><td class="num" id="LN1134">1134</td><td class="line"> </td></tr>
+<tr class="codeline" data-linenumber="1135"><td class="num" id="LN1135">1135</td><td class="line"> notify_notification_show (notification, <span class='macro'>NULL<span class='macro_popup'>((void*)0)</span></span>); <span class='comment'>/* NULL-GError */</span></td></tr>
+<tr class="codeline" data-linenumber="1136"><td class="num" id="LN1136">1136</td><td class="line"><span class='directive'>#else</span></td></tr>
+<tr class="codeline" data-linenumber="1137"><td class="num" id="LN1137">1137</td><td class="line"> GtkWidget *dialog;</td></tr>
+<tr class="codeline" data-linenumber="1138"><td class="num" id="LN1138">1138</td><td class="line"> </td></tr>
+<tr class="codeline" data-linenumber="1139"><td class="num" id="LN1139">1139</td><td class="line"> dialog = gtk_message_dialog_new (<span class='macro'>NULL<span class='macro_popup'>((void*)0)</span></span>, GTK_DIALOG_MODAL, GTK_MESSAGE_ERROR, GTK_BUTTONS_CLOSE,</td></tr>
+<tr class="codeline" data-linenumber="1140"><td class="num" id="LN1140">1140</td><td class="line"> <span class='string_literal'>"%s"</span>, primary_text);</td></tr>
+<tr class="codeline" data-linenumber="1141"><td class="num" id="LN1141">1141</td><td class="line"> gtk_message_dialog_format_secondary_text (<span class='macro'>GTK_MESSAGE_DIALOG (dialog)<span class='macro_popup'>((((GtkMessageDialog*) g_type_check_instance_cast ((GTypeInstance<br>*) ((dialog)), ((gtk_message_dialog_get_type ()))))))</span></span>, <span class='string_literal'>"%s"</span>,</td></tr>
+<tr class="codeline" data-linenumber="1142"><td class="num" id="LN1142">1142</td><td class="line"> error_to_display ? error_to_display-&gt;message : secondary_text);</td></tr>
+<tr class="codeline" data-linenumber="1143"><td class="num" id="LN1143">1143</td><td class="line"> </td></tr>
+<tr class="codeline" data-linenumber="1144"><td class="num" id="LN1144">1144</td><td class="line"> gtk_dialog_run (<span class='macro'>GTK_DIALOG (dialog)<span class='macro_popup'>((((GtkDialog*) g_type_check_instance_cast ((GTypeInstance*) (<br>(dialog)), ((gtk_dialog_get_type ()))))))</span></span>);</td></tr>
+<tr class="codeline" data-linenumber="1145"><td class="num" id="LN1145">1145</td><td class="line"> gtk_widget_destroy (dialog);</td></tr>
+<tr class="codeline" data-linenumber="1146"><td class="num" id="LN1146">1146</td><td class="line"><span class='directive'>#endif /* HAVE_LIBNOTIFY */</span></td></tr>
+<tr class="codeline" data-linenumber="1147"><td class="num" id="LN1147">1147</td><td class="line">}</td></tr>
+<tr class="codeline" data-linenumber="1148"><td class="num" id="LN1148">1148</td><td class="line"> </td></tr>
+<tr class="codeline" data-linenumber="1149"><td class="num" id="LN1149">1149</td><td class="line"><span class='keyword'>static</span> <span class='keyword'>void</span></td></tr>
+<tr class="codeline" data-linenumber="1150"><td class="num" id="LN1150">1150</td><td class="line">handle_fn_f7 (MsdXrandrManager *mgr, guint32 timestamp)</td></tr>
+<tr class="codeline" data-linenumber="1151"><td class="num" id="LN1151">1151</td><td class="line">{</td></tr>
+<tr class="codeline" data-linenumber="1152"><td class="num" id="LN1152">1152</td><td class="line"> MsdXrandrManagerPrivate *priv = mgr-&gt;priv;</td></tr>
+<tr class="codeline" data-linenumber="1153"><td class="num" id="LN1153">1153</td><td class="line"> MateRRScreen *screen = priv-&gt;rw_screen;</td></tr>
+<tr class="codeline" data-linenumber="1154"><td class="num" id="LN1154">1154</td><td class="line"> MateRRConfig *current;</td></tr>
+<tr class="codeline" data-linenumber="1155"><td class="num" id="LN1155">1155</td><td class="line"> GError *error;</td></tr>
+<tr class="codeline" data-linenumber="1156"><td class="num" id="LN1156">1156</td><td class="line"> </td></tr>
+<tr class="codeline" data-linenumber="1157"><td class="num" id="LN1157">1157</td><td class="line"> <span class='comment'>/* Theory of fn-F7 operation</span></td></tr>
+<tr class="codeline" data-linenumber="1158"><td class="num" id="LN1158">1158</td><td class="line"> <span class='comment'>*</span></td></tr>
+<tr class="codeline" data-linenumber="1159"><td class="num" id="LN1159">1159</td><td class="line"> <span class='comment'>* We maintain a datastructure "fn_f7_status", that contains</span></td></tr>
+<tr class="codeline" data-linenumber="1160"><td class="num" id="LN1160">1160</td><td class="line"> <span class='comment'>* a list of MateRRConfig's. Each of the MateRRConfigs has a</span></td></tr>
+<tr class="codeline" data-linenumber="1161"><td class="num" id="LN1161">1161</td><td class="line"> <span class='comment'>* mode (or "off") for each connected output.</span></td></tr>
+<tr class="codeline" data-linenumber="1162"><td class="num" id="LN1162">1162</td><td class="line"> <span class='comment'>*</span></td></tr>
+<tr class="codeline" data-linenumber="1163"><td class="num" id="LN1163">1163</td><td class="line"> <span class='comment'>* When the user hits fn-F7, we cycle to the next MateRRConfig</span></td></tr>
+<tr class="codeline" data-linenumber="1164"><td class="num" id="LN1164">1164</td><td class="line"> <span class='comment'>* in the data structure. If the data structure does not exist, it</span></td></tr>
+<tr class="codeline" data-linenumber="1165"><td class="num" id="LN1165">1165</td><td class="line"> <span class='comment'>* is generated. If the configs in the data structure do not match</span></td></tr>
+<tr class="codeline" data-linenumber="1166"><td class="num" id="LN1166">1166</td><td class="line"> <span class='comment'>* the current hardware reality, it is regenerated.</span></td></tr>
+<tr class="codeline" data-linenumber="1167"><td class="num" id="LN1167">1167</td><td class="line"> <span class='comment'>*</span></td></tr>
+<tr class="codeline" data-linenumber="1168"><td class="num" id="LN1168">1168</td><td class="line"> <span class='comment'>*/</span></td></tr>
+<tr class="codeline" data-linenumber="1169"><td class="num" id="LN1169">1169</td><td class="line"> g_debug (<span class='string_literal'>"Handling fn-f7"</span>);</td></tr>
+<tr class="codeline" data-linenumber="1170"><td class="num" id="LN1170">1170</td><td class="line"> </td></tr>
+<tr class="codeline" data-linenumber="1171"><td class="num" id="LN1171">1171</td><td class="line"> log_open ();</td></tr>
+<tr class="codeline" data-linenumber="1172"><td class="num" id="LN1172">1172</td><td class="line"> log_msg (<span class='string_literal'>"Handling XF86Display hotkey - timestamp %u\n"</span>, timestamp);</td></tr>
+<tr class="codeline" data-linenumber="1173"><td class="num" id="LN1173">1173</td><td class="line"> </td></tr>
+<tr class="codeline" data-linenumber="1174"><td class="num" id="LN1174">1174</td><td class="line"> error = <span class='macro'>NULL<span class='macro_popup'>((void*)0)</span></span>;</td></tr>
+<tr class="codeline" data-linenumber="1175"><td class="num" id="LN1175">1175</td><td class="line"> <span class='keyword'>if</span> (!mate_rr_screen_refresh (screen, &amp;error) &amp;&amp; error) {</td></tr>
+<tr class="codeline" data-linenumber="1176"><td class="num" id="LN1176">1176</td><td class="line"> <span class='keyword'>char</span> *str;</td></tr>
+<tr class="codeline" data-linenumber="1177"><td class="num" id="LN1177">1177</td><td class="line"> </td></tr>
+<tr class="codeline" data-linenumber="1178"><td class="num" id="LN1178">1178</td><td class="line"> str = g_strdup_printf (<span class='macro'>_(<span class='string_literal'>"Could not refresh the screen information: %s"</span>)<span class='macro_popup'>gettext ("Could not refresh the screen information: %s")</span></span>, error-&gt;message);</td></tr>
+<tr class="codeline" data-linenumber="1179"><td class="num" id="LN1179">1179</td><td class="line"> g_error_free (error);</td></tr>
+<tr class="codeline" data-linenumber="1180"><td class="num" id="LN1180">1180</td><td class="line"> </td></tr>
+<tr class="codeline" data-linenumber="1181"><td class="num" id="LN1181">1181</td><td class="line"> log_msg (<span class='string_literal'>"%s\n"</span>, str);</td></tr>
+<tr class="codeline" data-linenumber="1182"><td class="num" id="LN1182">1182</td><td class="line"> error_message (mgr, str, <span class='macro'>NULL<span class='macro_popup'>((void*)0)</span></span>, <span class='macro'>_(<span class='string_literal'>"Trying to switch the monitor configuration anyway."</span>)<span class='macro_popup'>gettext ("Trying to switch the monitor configuration anyway."<br>)</span></span>);</td></tr>
+<tr class="codeline" data-linenumber="1183"><td class="num" id="LN1183">1183</td><td class="line"> g_free (str);</td></tr>
+<tr class="codeline" data-linenumber="1184"><td class="num" id="LN1184">1184</td><td class="line"> }</td></tr>
+<tr class="codeline" data-linenumber="1185"><td class="num" id="LN1185">1185</td><td class="line"> </td></tr>
+<tr class="codeline" data-linenumber="1186"><td class="num" id="LN1186">1186</td><td class="line"> <span class='keyword'>if</span> (!priv-&gt;fn_f7_configs) {</td></tr>
+<tr class="codeline" data-linenumber="1187"><td class="num" id="LN1187">1187</td><td class="line"> log_msg (<span class='string_literal'>"Generating stock configurations:\n"</span>);</td></tr>
+<tr class="codeline" data-linenumber="1188"><td class="num" id="LN1188">1188</td><td class="line"> generate_fn_f7_configs (mgr);</td></tr>
+<tr class="codeline" data-linenumber="1189"><td class="num" id="LN1189">1189</td><td class="line"> log_configurations (priv-&gt;fn_f7_configs);</td></tr>
+<tr class="codeline" data-linenumber="1190"><td class="num" id="LN1190">1190</td><td class="line"> }</td></tr>
+<tr class="codeline" data-linenumber="1191"><td class="num" id="LN1191">1191</td><td class="line"> </td></tr>
+<tr class="codeline" data-linenumber="1192"><td class="num" id="LN1192">1192</td><td class="line"> current = mate_rr_config_new_current (screen, <span class='macro'>NULL<span class='macro_popup'>((void*)0)</span></span>);</td></tr>
+<tr class="codeline" data-linenumber="1193"><td class="num" id="LN1193">1193</td><td class="line"> </td></tr>
+<tr class="codeline" data-linenumber="1194"><td class="num" id="LN1194">1194</td><td class="line"> <span class='keyword'>if</span> (priv-&gt;fn_f7_configs &amp;&amp;</td></tr>
+<tr class="codeline" data-linenumber="1195"><td class="num" id="LN1195">1195</td><td class="line"> (!mate_rr_config_match (current, priv-&gt;fn_f7_configs[0]) ||</td></tr>
+<tr class="codeline" data-linenumber="1196"><td class="num" id="LN1196">1196</td><td class="line"> !mate_rr_config_equal (current, priv-&gt;fn_f7_configs[mgr-&gt;priv-&gt;current_fn_f7_config]))) {</td></tr>
+<tr class="codeline" data-linenumber="1197"><td class="num" id="LN1197">1197</td><td class="line"> <span class='comment'>/* Our view of the world is incorrect, so regenerate the</span></td></tr>
+<tr class="codeline" data-linenumber="1198"><td class="num" id="LN1198">1198</td><td class="line"> <span class='comment'>* configurations</span></td></tr>
+<tr class="codeline" data-linenumber="1199"><td class="num" id="LN1199">1199</td><td class="line"> <span class='comment'>*/</span></td></tr>
+<tr class="codeline" data-linenumber="1200"><td class="num" id="LN1200">1200</td><td class="line"> generate_fn_f7_configs (mgr);</td></tr>
+<tr class="codeline" data-linenumber="1201"><td class="num" id="LN1201">1201</td><td class="line"> log_msg (<span class='string_literal'>"Regenerated stock configurations:\n"</span>);</td></tr>
+<tr class="codeline" data-linenumber="1202"><td class="num" id="LN1202">1202</td><td class="line"> log_configurations (priv-&gt;fn_f7_configs);</td></tr>
+<tr class="codeline" data-linenumber="1203"><td class="num" id="LN1203">1203</td><td class="line"> }</td></tr>
+<tr class="codeline" data-linenumber="1204"><td class="num" id="LN1204">1204</td><td class="line"> </td></tr>
+<tr class="codeline" data-linenumber="1205"><td class="num" id="LN1205">1205</td><td class="line"> g_object_unref (current);</td></tr>
+<tr class="codeline" data-linenumber="1206"><td class="num" id="LN1206">1206</td><td class="line"> </td></tr>
+<tr class="codeline" data-linenumber="1207"><td class="num" id="LN1207">1207</td><td class="line"> <span class='keyword'>if</span> (priv-&gt;fn_f7_configs) {</td></tr>
+<tr class="codeline" data-linenumber="1208"><td class="num" id="LN1208">1208</td><td class="line"> guint32 server_timestamp;</td></tr>
+<tr class="codeline" data-linenumber="1209"><td class="num" id="LN1209">1209</td><td class="line"> gboolean success;</td></tr>
+<tr class="codeline" data-linenumber="1210"><td class="num" id="LN1210">1210</td><td class="line"> </td></tr>
+<tr class="codeline" data-linenumber="1211"><td class="num" id="LN1211">1211</td><td class="line"> mgr-&gt;priv-&gt;current_fn_f7_config++;</td></tr>
+<tr class="codeline" data-linenumber="1212"><td class="num" id="LN1212">1212</td><td class="line"> </td></tr>
+<tr class="codeline" data-linenumber="1213"><td class="num" id="LN1213">1213</td><td class="line"> <span class='keyword'>if</span> (priv-&gt;fn_f7_configs[mgr-&gt;priv-&gt;current_fn_f7_config] == <span class='macro'>NULL<span class='macro_popup'>((void*)0)</span></span>)</td></tr>
+<tr class="codeline" data-linenumber="1214"><td class="num" id="LN1214">1214</td><td class="line"> mgr-&gt;priv-&gt;current_fn_f7_config = 0;</td></tr>
+<tr class="codeline" data-linenumber="1215"><td class="num" id="LN1215">1215</td><td class="line"> </td></tr>
+<tr class="codeline" data-linenumber="1216"><td class="num" id="LN1216">1216</td><td class="line"> g_debug (<span class='string_literal'>"cycling to next configuration (%d)"</span>, mgr-&gt;priv-&gt;current_fn_f7_config);</td></tr>
+<tr class="codeline" data-linenumber="1217"><td class="num" id="LN1217">1217</td><td class="line"> </td></tr>
+<tr class="codeline" data-linenumber="1218"><td class="num" id="LN1218">1218</td><td class="line"> print_configuration (priv-&gt;fn_f7_configs[mgr-&gt;priv-&gt;current_fn_f7_config], <span class='string_literal'>"new config"</span>);</td></tr>
+<tr class="codeline" data-linenumber="1219"><td class="num" id="LN1219">1219</td><td class="line"> </td></tr>
+<tr class="codeline" data-linenumber="1220"><td class="num" id="LN1220">1220</td><td class="line"> g_debug (<span class='string_literal'>"applying"</span>);</td></tr>
+<tr class="codeline" data-linenumber="1221"><td class="num" id="LN1221">1221</td><td class="line"> </td></tr>
+<tr class="codeline" data-linenumber="1222"><td class="num" id="LN1222">1222</td><td class="line"> <span class='comment'>/* See https://bugzilla.gnome.org/show_bug.cgi?id=610482</span></td></tr>
+<tr class="codeline" data-linenumber="1223"><td class="num" id="LN1223">1223</td><td class="line"> <span class='comment'>*</span></td></tr>
+<tr class="codeline" data-linenumber="1224"><td class="num" id="LN1224">1224</td><td class="line"> <span class='comment'>* Sometimes we'll get two rapid XF86Display keypress events,</span></td></tr>
+<tr class="codeline" data-linenumber="1225"><td class="num" id="LN1225">1225</td><td class="line"> <span class='comment'>* but their timestamps will be out of order with respect to the</span></td></tr>
+<tr class="codeline" data-linenumber="1226"><td class="num" id="LN1226">1226</td><td class="line"> <span class='comment'>* RANDR timestamps. This *may* be due to stupid BIOSes sending</span></td></tr>
+<tr class="codeline" data-linenumber="1227"><td class="num" id="LN1227">1227</td><td class="line"> <span class='comment'>* out display-switch keystrokes "to make Windows work".</span></td></tr>
+<tr class="codeline" data-linenumber="1228"><td class="num" id="LN1228">1228</td><td class="line"> <span class='comment'>*</span></td></tr>
+<tr class="codeline" data-linenumber="1229"><td class="num" id="LN1229">1229</td><td class="line"> <span class='comment'>* The X server will error out if the timestamp provided is</span></td></tr>
+<tr class="codeline" data-linenumber="1230"><td class="num" id="LN1230">1230</td><td class="line"> <span class='comment'>* older than a previous change configuration timestamp. We</span></td></tr>
+<tr class="codeline" data-linenumber="1231"><td class="num" id="LN1231">1231</td><td class="line"> <span class='comment'>* assume here that we do want this event to go through still,</span></td></tr>
+<tr class="codeline" data-linenumber="1232"><td class="num" id="LN1232">1232</td><td class="line"> <span class='comment'>* since kernel timestamps may be skewed wrt the X server.</span></td></tr>
+<tr class="codeline" data-linenumber="1233"><td class="num" id="LN1233">1233</td><td class="line"> <span class='comment'>*/</span></td></tr>
+<tr class="codeline" data-linenumber="1234"><td class="num" id="LN1234">1234</td><td class="line"> mate_rr_screen_get_timestamps (screen, <span class='macro'>NULL<span class='macro_popup'>((void*)0)</span></span>, &amp;server_timestamp);</td></tr>
+<tr class="codeline" data-linenumber="1235"><td class="num" id="LN1235">1235</td><td class="line"> <span class='keyword'>if</span> (timestamp &lt; server_timestamp)</td></tr>
+<tr class="codeline" data-linenumber="1236"><td class="num" id="LN1236">1236</td><td class="line"> timestamp = server_timestamp;</td></tr>
+<tr class="codeline" data-linenumber="1237"><td class="num" id="LN1237">1237</td><td class="line"> </td></tr>
+<tr class="codeline" data-linenumber="1238"><td class="num" id="LN1238">1238</td><td class="line"> success = apply_configuration_and_display_error (mgr, priv-&gt;fn_f7_configs[mgr-&gt;priv-&gt;current_fn_f7_config], timestamp);</td></tr>
+<tr class="codeline" data-linenumber="1239"><td class="num" id="LN1239">1239</td><td class="line"> </td></tr>
+<tr class="codeline" data-linenumber="1240"><td class="num" id="LN1240">1240</td><td class="line"> <span class='keyword'>if</span> (success) {</td></tr>
+<tr class="codeline" data-linenumber="1241"><td class="num" id="LN1241">1241</td><td class="line"> log_msg (<span class='string_literal'>"Successfully switched to configuration (timestamp %u):\n"</span>, timestamp);</td></tr>
+<tr class="codeline" data-linenumber="1242"><td class="num" id="LN1242">1242</td><td class="line"> log_configuration (priv-&gt;fn_f7_configs[mgr-&gt;priv-&gt;current_fn_f7_config]);</td></tr>
+<tr class="codeline" data-linenumber="1243"><td class="num" id="LN1243">1243</td><td class="line"> }</td></tr>
+<tr class="codeline" data-linenumber="1244"><td class="num" id="LN1244">1244</td><td class="line"> }</td></tr>
+<tr class="codeline" data-linenumber="1245"><td class="num" id="LN1245">1245</td><td class="line"> <span class='keyword'>else</span> {</td></tr>
+<tr class="codeline" data-linenumber="1246"><td class="num" id="LN1246">1246</td><td class="line"> g_debug (<span class='string_literal'>"no configurations generated"</span>);</td></tr>
+<tr class="codeline" data-linenumber="1247"><td class="num" id="LN1247">1247</td><td class="line"> }</td></tr>
+<tr class="codeline" data-linenumber="1248"><td class="num" id="LN1248">1248</td><td class="line"> </td></tr>
+<tr class="codeline" data-linenumber="1249"><td class="num" id="LN1249">1249</td><td class="line"> log_close ();</td></tr>
+<tr class="codeline" data-linenumber="1250"><td class="num" id="LN1250">1250</td><td class="line"> </td></tr>
+<tr class="codeline" data-linenumber="1251"><td class="num" id="LN1251">1251</td><td class="line"> g_debug (<span class='string_literal'>"done handling fn-f7"</span>);</td></tr>
+<tr class="codeline" data-linenumber="1252"><td class="num" id="LN1252">1252</td><td class="line">}</td></tr>
+<tr class="codeline" data-linenumber="1253"><td class="num" id="LN1253">1253</td><td class="line"> </td></tr>
+<tr class="codeline" data-linenumber="1254"><td class="num" id="LN1254">1254</td><td class="line"><span class='keyword'>static</span> MateRROutputInfo *</td></tr>
+<tr class="codeline" data-linenumber="1255"><td class="num" id="LN1255">1255</td><td class="line">get_laptop_output_info (MateRRScreen *screen, MateRRConfig *config)</td></tr>
+<tr class="codeline" data-linenumber="1256"><td class="num" id="LN1256">1256</td><td class="line">{</td></tr>
+<tr class="codeline" data-linenumber="1257"><td class="num" id="LN1257">1257</td><td class="line"> <span class='keyword'>int</span> i;</td></tr>
+<tr class="codeline" data-linenumber="1258"><td class="num" id="LN1258">1258</td><td class="line"> MateRROutputInfo **outputs = mate_rr_config_get_outputs (config);</td></tr>
+<tr class="codeline" data-linenumber="1259"><td class="num" id="LN1259">1259</td><td class="line"> </td></tr>
+<tr class="codeline" data-linenumber="1260"><td class="num" id="LN1260">1260</td><td class="line"> <span class='keyword'>for</span> (i = 0; outputs[i] != <span class='macro'>NULL<span class='macro_popup'>((void*)0)</span></span>; i++) {</td></tr>
+<tr class="codeline" data-linenumber="1261"><td class="num" id="LN1261">1261</td><td class="line"> <span class='keyword'>if</span> (is_laptop (screen, outputs[i]))</td></tr>
+<tr class="codeline" data-linenumber="1262"><td class="num" id="LN1262">1262</td><td class="line"> <span class='keyword'>return</span> outputs[i];</td></tr>
+<tr class="codeline" data-linenumber="1263"><td class="num" id="LN1263">1263</td><td class="line"> }</td></tr>
+<tr class="codeline" data-linenumber="1264"><td class="num" id="LN1264">1264</td><td class="line"> </td></tr>
+<tr class="codeline" data-linenumber="1265"><td class="num" id="LN1265">1265</td><td class="line"> <span class='keyword'>return</span> <span class='macro'>NULL<span class='macro_popup'>((void*)0)</span></span>;</td></tr>
+<tr class="codeline" data-linenumber="1266"><td class="num" id="LN1266">1266</td><td class="line"> </td></tr>
+<tr class="codeline" data-linenumber="1267"><td class="num" id="LN1267">1267</td><td class="line">}</td></tr>
+<tr class="codeline" data-linenumber="1268"><td class="num" id="LN1268">1268</td><td class="line"> </td></tr>
+<tr class="codeline" data-linenumber="1269"><td class="num" id="LN1269">1269</td><td class="line"><span class='keyword'>static</span> MateRRRotation</td></tr>
+<tr class="codeline" data-linenumber="1270"><td class="num" id="LN1270">1270</td><td class="line">get_next_rotation (MateRRRotation allowed_rotations, MateRRRotation current_rotation)</td></tr>
+<tr class="codeline" data-linenumber="1271"><td class="num" id="LN1271">1271</td><td class="line">{</td></tr>
+<tr class="codeline" data-linenumber="1272"><td class="num" id="LN1272">1272</td><td class="line"> <span class='keyword'>int</span> i;</td></tr>
+<tr class="codeline" data-linenumber="1273"><td class="num" id="LN1273">1273</td><td class="line"> <span class='keyword'>int</span> current_index;</td></tr>
+<tr class="codeline" data-linenumber="1274"><td class="num" id="LN1274">1274</td><td class="line"> </td></tr>
+<tr class="codeline" data-linenumber="1275"><td class="num" id="LN1275">1275</td><td class="line"> <span class='comment'>/* First, find the index of the current rotation */</span></td></tr>
+<tr class="codeline" data-linenumber="1276"><td class="num" id="LN1276">1276</td><td class="line"> </td></tr>
+<tr class="codeline" data-linenumber="1277"><td class="num" id="LN1277">1277</td><td class="line"> current_index = -1;</td></tr>
+<tr class="codeline" data-linenumber="1278"><td class="num" id="LN1278">1278</td><td class="line"> </td></tr>
+<tr class="codeline" data-linenumber="1279"><td class="num" id="LN1279">1279</td><td class="line"> <span class='keyword'>for</span> (i = 0; i &lt; <span class='macro'>G_N_ELEMENTS (possible_rotations)<span class='macro_popup'>(sizeof (possible_rotations) / sizeof ((possible_rotations)[0<br>]))</span></span>; i++) {</td></tr>
+<tr class="codeline" data-linenumber="1280"><td class="num" id="LN1280">1280</td><td class="line"> MateRRRotation r;</td></tr>
+<tr class="codeline" data-linenumber="1281"><td class="num" id="LN1281">1281</td><td class="line"> </td></tr>
+<tr class="codeline" data-linenumber="1282"><td class="num" id="LN1282">1282</td><td class="line"> r = possible_rotations[i];</td></tr>
+<tr class="codeline" data-linenumber="1283"><td class="num" id="LN1283">1283</td><td class="line"> <span class='keyword'>if</span> (r == current_rotation) {</td></tr>
+<tr class="codeline" data-linenumber="1284"><td class="num" id="LN1284">1284</td><td class="line"> current_index = i;</td></tr>
+<tr class="codeline" data-linenumber="1285"><td class="num" id="LN1285">1285</td><td class="line"> <span class='keyword'>break</span>;</td></tr>
+<tr class="codeline" data-linenumber="1286"><td class="num" id="LN1286">1286</td><td class="line"> }</td></tr>
+<tr class="codeline" data-linenumber="1287"><td class="num" id="LN1287">1287</td><td class="line"> }</td></tr>
+<tr class="codeline" data-linenumber="1288"><td class="num" id="LN1288">1288</td><td class="line"> </td></tr>
+<tr class="codeline" data-linenumber="1289"><td class="num" id="LN1289">1289</td><td class="line"> <span class='keyword'>if</span> (current_index == -1) {</td></tr>
+<tr class="codeline" data-linenumber="1290"><td class="num" id="LN1290">1290</td><td class="line"> <span class='comment'>/* Huh, the current_rotation was not one of the supported rotations. Bail out. */</span></td></tr>
+<tr class="codeline" data-linenumber="1291"><td class="num" id="LN1291">1291</td><td class="line"> <span class='keyword'>return</span> current_rotation;</td></tr>
+<tr class="codeline" data-linenumber="1292"><td class="num" id="LN1292">1292</td><td class="line"> }</td></tr>
+<tr class="codeline" data-linenumber="1293"><td class="num" id="LN1293">1293</td><td class="line"> </td></tr>
+<tr class="codeline" data-linenumber="1294"><td class="num" id="LN1294">1294</td><td class="line"> <span class='comment'>/* Then, find the next rotation that is allowed */</span></td></tr>
+<tr class="codeline" data-linenumber="1295"><td class="num" id="LN1295">1295</td><td class="line"> </td></tr>
+<tr class="codeline" data-linenumber="1296"><td class="num" id="LN1296">1296</td><td class="line"> i = (current_index + 1) % <span class='macro'>G_N_ELEMENTS (possible_rotations)<span class='macro_popup'>(sizeof (possible_rotations) / sizeof ((possible_rotations)[0<br>]))</span></span>;</td></tr>
+<tr class="codeline" data-linenumber="1297"><td class="num" id="LN1297">1297</td><td class="line"> </td></tr>
+<tr class="codeline" data-linenumber="1298"><td class="num" id="LN1298">1298</td><td class="line"> <span class='keyword'>while</span> (1) {</td></tr>
+<tr class="codeline" data-linenumber="1299"><td class="num" id="LN1299">1299</td><td class="line"> MateRRRotation r;</td></tr>
+<tr class="codeline" data-linenumber="1300"><td class="num" id="LN1300">1300</td><td class="line"> </td></tr>
+<tr class="codeline" data-linenumber="1301"><td class="num" id="LN1301">1301</td><td class="line"> r = possible_rotations[i];</td></tr>
+<tr class="codeline" data-linenumber="1302"><td class="num" id="LN1302">1302</td><td class="line"> <span class='keyword'>if</span> (r == current_rotation) {</td></tr>
+<tr class="codeline" data-linenumber="1303"><td class="num" id="LN1303">1303</td><td class="line"> <span class='comment'>/* We wrapped around and no other rotation is suported. Bummer. */</span></td></tr>
+<tr class="codeline" data-linenumber="1304"><td class="num" id="LN1304">1304</td><td class="line"> <span class='keyword'>return</span> current_rotation;</td></tr>
+<tr class="codeline" data-linenumber="1305"><td class="num" id="LN1305">1305</td><td class="line"> } <span class='keyword'>else</span> <span class='keyword'>if</span> (r &amp; allowed_rotations)</td></tr>
+<tr class="codeline" data-linenumber="1306"><td class="num" id="LN1306">1306</td><td class="line"> <span class='keyword'>return</span> r;</td></tr>
+<tr class="codeline" data-linenumber="1307"><td class="num" id="LN1307">1307</td><td class="line"> </td></tr>
+<tr class="codeline" data-linenumber="1308"><td class="num" id="LN1308">1308</td><td class="line"> i = (i + 1) % <span class='macro'>G_N_ELEMENTS (possible_rotations)<span class='macro_popup'>(sizeof (possible_rotations) / sizeof ((possible_rotations)[0<br>]))</span></span>;</td></tr>
+<tr class="codeline" data-linenumber="1309"><td class="num" id="LN1309">1309</td><td class="line"> }</td></tr>
+<tr class="codeline" data-linenumber="1310"><td class="num" id="LN1310">1310</td><td class="line">}</td></tr>
+<tr class="codeline" data-linenumber="1311"><td class="num" id="LN1311">1311</td><td class="line"> </td></tr>
+<tr class="codeline" data-linenumber="1312"><td class="num" id="LN1312">1312</td><td class="line"><span class='comment'>/* We use this when the XF86RotateWindows key is pressed. That key is present</span></td></tr>
+<tr class="codeline" data-linenumber="1313"><td class="num" id="LN1313">1313</td><td class="line"> <span class='comment'>* on some tablet PCs; they use it so that the user can rotate the tablet</span></td></tr>
+<tr class="codeline" data-linenumber="1314"><td class="num" id="LN1314">1314</td><td class="line"> <span class='comment'>* easily.</span></td></tr>
+<tr class="codeline" data-linenumber="1315"><td class="num" id="LN1315">1315</td><td class="line"> <span class='comment'>*/</span></td></tr>
+<tr class="codeline" data-linenumber="1316"><td class="num" id="LN1316">1316</td><td class="line"><span class='keyword'>static</span> <span class='keyword'>void</span></td></tr>
+<tr class="codeline" data-linenumber="1317"><td class="num" id="LN1317">1317</td><td class="line">handle_rotate_windows (MsdXrandrManager *mgr, guint32 timestamp)</td></tr>
+<tr class="codeline" data-linenumber="1318"><td class="num" id="LN1318">1318</td><td class="line">{</td></tr>
+<tr class="codeline" data-linenumber="1319"><td class="num" id="LN1319">1319</td><td class="line"> MsdXrandrManagerPrivate *priv = mgr-&gt;priv;</td></tr>
+<tr class="codeline" data-linenumber="1320"><td class="num" id="LN1320">1320</td><td class="line"> MateRRScreen *screen = priv-&gt;rw_screen;</td></tr>
+<tr class="codeline" data-linenumber="1321"><td class="num" id="LN1321">1321</td><td class="line"> MateRRConfig *current;</td></tr>
+<tr class="codeline" data-linenumber="1322"><td class="num" id="LN1322">1322</td><td class="line"> MateRROutputInfo *rotatable_output_info;</td></tr>
+<tr class="codeline" data-linenumber="1323"><td class="num" id="LN1323">1323</td><td class="line"> <span class='keyword'>int</span> num_allowed_rotations;</td></tr>
+<tr class="codeline" data-linenumber="1324"><td class="num" id="LN1324">1324</td><td class="line"> MateRRRotation allowed_rotations;</td></tr>
+<tr class="codeline" data-linenumber="1325"><td class="num" id="LN1325">1325</td><td class="line"> MateRRRotation next_rotation;</td></tr>
+<tr class="codeline" data-linenumber="1326"><td class="num" id="LN1326">1326</td><td class="line"> </td></tr>
+<tr class="codeline" data-linenumber="1327"><td class="num" id="LN1327">1327</td><td class="line"> g_debug (<span class='string_literal'>"Handling XF86RotateWindows"</span>);</td></tr>
+<tr class="codeline" data-linenumber="1328"><td class="num" id="LN1328">1328</td><td class="line"> </td></tr>
+<tr class="codeline" data-linenumber="1329"><td class="num" id="LN1329">1329</td><td class="line"> <span class='comment'>/* Which output? */</span></td></tr>
+<tr class="codeline" data-linenumber="1330"><td class="num" id="LN1330">1330</td><td class="line"> </td></tr>
+<tr class="codeline" data-linenumber="1331"><td class="num" id="LN1331">1331</td><td class="line"> current = mate_rr_config_new_current (screen, <span class='macro'>NULL<span class='macro_popup'>((void*)0)</span></span>);</td></tr>
+<tr class="codeline" data-linenumber="1332"><td class="num" id="LN1332">1332</td><td class="line"> </td></tr>
+<tr class="codeline" data-linenumber="1333"><td class="num" id="LN1333">1333</td><td class="line"> rotatable_output_info = get_laptop_output_info (screen, current);</td></tr>
+<tr class="codeline" data-linenumber="1334"><td class="num" id="LN1334">1334</td><td class="line"> <span class='keyword'>if</span> (rotatable_output_info == <span class='macro'>NULL<span class='macro_popup'>((void*)0)</span></span>) {</td></tr>
+<tr class="codeline" data-linenumber="1335"><td class="num" id="LN1335">1335</td><td class="line"> g_debug (<span class='string_literal'>"No laptop outputs found to rotate; XF86RotateWindows key will do nothing"</span>);</td></tr>
+<tr class="codeline" data-linenumber="1336"><td class="num" id="LN1336">1336</td><td class="line"> <span class='keyword'>goto</span> out;</td></tr>
+<tr class="codeline" data-linenumber="1337"><td class="num" id="LN1337">1337</td><td class="line"> }</td></tr>
+<tr class="codeline" data-linenumber="1338"><td class="num" id="LN1338">1338</td><td class="line"> </td></tr>
+<tr class="codeline" data-linenumber="1339"><td class="num" id="LN1339">1339</td><td class="line"> <span class='comment'>/* Which rotation? */</span></td></tr>
+<tr class="codeline" data-linenumber="1340"><td class="num" id="LN1340">1340</td><td class="line"> </td></tr>
+<tr class="codeline" data-linenumber="1341"><td class="num" id="LN1341">1341</td><td class="line"> get_allowed_rotations_for_output (current, priv-&gt;rw_screen, rotatable_output_info, &amp;num_allowed_rotations, &amp;allowed_rotations);</td></tr>
+<tr class="codeline" data-linenumber="1342"><td class="num" id="LN1342">1342</td><td class="line"> next_rotation = get_next_rotation (allowed_rotations, mate_rr_output_info_get_rotation (rotatable_output_info));</td></tr>
+<tr class="codeline" data-linenumber="1343"><td class="num" id="LN1343">1343</td><td class="line"> </td></tr>
+<tr class="codeline" data-linenumber="1344"><td class="num" id="LN1344">1344</td><td class="line"> <span class='keyword'>if</span> (next_rotation == mate_rr_output_info_get_rotation (rotatable_output_info)) {</td></tr>
+<tr class="codeline" data-linenumber="1345"><td class="num" id="LN1345">1345</td><td class="line"> g_debug (<span class='string_literal'>"No rotations are supported other than the current one; XF86RotateWindows key will do nothing"</span>);</td></tr>
+<tr class="codeline" data-linenumber="1346"><td class="num" id="LN1346">1346</td><td class="line"> <span class='keyword'>goto</span> out;</td></tr>
+<tr class="codeline" data-linenumber="1347"><td class="num" id="LN1347">1347</td><td class="line"> }</td></tr>
+<tr class="codeline" data-linenumber="1348"><td class="num" id="LN1348">1348</td><td class="line"> </td></tr>
+<tr class="codeline" data-linenumber="1349"><td class="num" id="LN1349">1349</td><td class="line"> <span class='comment'>/* Rotate */</span></td></tr>
+<tr class="codeline" data-linenumber="1350"><td class="num" id="LN1350">1350</td><td class="line"> </td></tr>
+<tr class="codeline" data-linenumber="1351"><td class="num" id="LN1351">1351</td><td class="line"> mate_rr_output_info_set_rotation (rotatable_output_info, next_rotation);</td></tr>
+<tr class="codeline" data-linenumber="1352"><td class="num" id="LN1352">1352</td><td class="line"> </td></tr>
+<tr class="codeline" data-linenumber="1353"><td class="num" id="LN1353">1353</td><td class="line"> apply_configuration_and_display_error (mgr, current, timestamp);</td></tr>
+<tr class="codeline" data-linenumber="1354"><td class="num" id="LN1354">1354</td><td class="line"> </td></tr>
+<tr class="codeline" data-linenumber="1355"><td class="num" id="LN1355">1355</td><td class="line">out:</td></tr>
+<tr class="codeline" data-linenumber="1356"><td class="num" id="LN1356">1356</td><td class="line"> g_object_unref (current);</td></tr>
+<tr class="codeline" data-linenumber="1357"><td class="num" id="LN1357">1357</td><td class="line">}</td></tr>
+<tr class="codeline" data-linenumber="1358"><td class="num" id="LN1358">1358</td><td class="line"> </td></tr>
+<tr class="codeline" data-linenumber="1359"><td class="num" id="LN1359">1359</td><td class="line"><span class='keyword'>static</span> GdkFilterReturn</td></tr>
+<tr class="codeline" data-linenumber="1360"><td class="num" id="LN1360">1360</td><td class="line">event_filter (GdkXEvent *xevent,</td></tr>
+<tr class="codeline" data-linenumber="1361"><td class="num" id="LN1361">1361</td><td class="line"> GdkEvent *event,</td></tr>
+<tr class="codeline" data-linenumber="1362"><td class="num" id="LN1362">1362</td><td class="line"> gpointer data)</td></tr>
+<tr class="codeline" data-linenumber="1363"><td class="num" id="LN1363">1363</td><td class="line">{</td></tr>
+<tr class="codeline" data-linenumber="1364"><td class="num" id="LN1364">1364</td><td class="line"> MsdXrandrManager *manager = data;</td></tr>
+<tr class="codeline" data-linenumber="1365"><td class="num" id="LN1365">1365</td><td class="line"> XEvent *xev = (XEvent *) xevent;</td></tr>
+<tr class="codeline" data-linenumber="1366"><td class="num" id="LN1366">1366</td><td class="line"> </td></tr>
+<tr class="codeline" data-linenumber="1367"><td class="num" id="LN1367">1367</td><td class="line"> <span class='keyword'>if</span> (!manager-&gt;priv-&gt;running)</td></tr>
+<tr class="codeline" data-linenumber="1368"><td class="num" id="LN1368">1368</td><td class="line"> <span class='keyword'>return</span> GDK_FILTER_CONTINUE;</td></tr>
+<tr class="codeline" data-linenumber="1369"><td class="num" id="LN1369">1369</td><td class="line"> </td></tr>
+<tr class="codeline" data-linenumber="1370"><td class="num" id="LN1370">1370</td><td class="line"> <span class='comment'>/* verify we have a key event */</span></td></tr>
+<tr class="codeline" data-linenumber="1371"><td class="num" id="LN1371">1371</td><td class="line"> <span class='keyword'>if</span> (xev-&gt;xany.type != <span class='macro'>KeyPress<span class='macro_popup'>2</span></span> &amp;&amp; xev-&gt;xany.type != <span class='macro'>KeyRelease<span class='macro_popup'>3</span></span>)</td></tr>
+<tr class="codeline" data-linenumber="1372"><td class="num" id="LN1372">1372</td><td class="line"> <span class='keyword'>return</span> GDK_FILTER_CONTINUE;</td></tr>
+<tr class="codeline" data-linenumber="1373"><td class="num" id="LN1373">1373</td><td class="line"> </td></tr>
+<tr class="codeline" data-linenumber="1374"><td class="num" id="LN1374">1374</td><td class="line"> <span class='keyword'>if</span> (xev-&gt;xany.type == <span class='macro'>KeyPress<span class='macro_popup'>2</span></span>) {</td></tr>
+<tr class="codeline" data-linenumber="1375"><td class="num" id="LN1375">1375</td><td class="line"> <span class='keyword'>if</span> (xev-&gt;xkey.keycode == manager-&gt;priv-&gt;switch_video_mode_keycode)</td></tr>
+<tr class="codeline" data-linenumber="1376"><td class="num" id="LN1376">1376</td><td class="line"> handle_fn_f7 (manager, xev-&gt;xkey.time);</td></tr>
+<tr class="codeline" data-linenumber="1377"><td class="num" id="LN1377">1377</td><td class="line"> <span class='keyword'>else</span> <span class='keyword'>if</span> (xev-&gt;xkey.keycode == manager-&gt;priv-&gt;rotate_windows_keycode)</td></tr>
+<tr class="codeline" data-linenumber="1378"><td class="num" id="LN1378">1378</td><td class="line"> handle_rotate_windows (manager, xev-&gt;xkey.time);</td></tr>
+<tr class="codeline" data-linenumber="1379"><td class="num" id="LN1379">1379</td><td class="line"> </td></tr>
+<tr class="codeline" data-linenumber="1380"><td class="num" id="LN1380">1380</td><td class="line"> <span class='keyword'>return</span> GDK_FILTER_CONTINUE;</td></tr>
+<tr class="codeline" data-linenumber="1381"><td class="num" id="LN1381">1381</td><td class="line"> }</td></tr>
+<tr class="codeline" data-linenumber="1382"><td class="num" id="LN1382">1382</td><td class="line"> </td></tr>
+<tr class="codeline" data-linenumber="1383"><td class="num" id="LN1383">1383</td><td class="line"> <span class='keyword'>return</span> GDK_FILTER_CONTINUE;</td></tr>
+<tr class="codeline" data-linenumber="1384"><td class="num" id="LN1384">1384</td><td class="line">}</td></tr>
+<tr class="codeline" data-linenumber="1385"><td class="num" id="LN1385">1385</td><td class="line"> </td></tr>
+<tr class="codeline" data-linenumber="1386"><td class="num" id="LN1386">1386</td><td class="line"><span class='keyword'>static</span> <span class='keyword'>void</span></td></tr>
+<tr class="codeline" data-linenumber="1387"><td class="num" id="LN1387">1387</td><td class="line">refresh_tray_icon_menu_if_active (MsdXrandrManager *manager, guint32 timestamp)</td></tr>
+<tr class="codeline" data-linenumber="1388"><td class="num" id="LN1388">1388</td><td class="line">{</td></tr>
+<tr class="codeline" data-linenumber="1389"><td class="num" id="LN1389">1389</td><td class="line"> MsdXrandrManagerPrivate *priv = manager-&gt;priv;</td></tr>
+<tr class="codeline" data-linenumber="1390"><td class="num" id="LN1390">1390</td><td class="line"> </td></tr>
+<tr class="codeline" data-linenumber="1391"><td class="num" id="LN1391">1391</td><td class="line"> <span class='keyword'>if</span> (priv-&gt;popup_menu) {</td></tr>
+<tr class="codeline" data-linenumber="1392"><td class="num" id="LN1392">1392</td><td class="line"> gtk_menu_shell_cancel (<span class='macro'>GTK_MENU_SHELL (priv-&gt;popup_menu)<span class='macro_popup'>((((GtkMenuShell*) g_type_check_instance_cast ((GTypeInstance<br>*) ((priv-&gt;popup_menu)), ((gtk_menu_shell_get_type ())))))<br>)</span></span>); <span class='comment'>/* status_icon_popup_menu_selection_done_cb() will free everything */</span></td></tr>
+<tr class="codeline" data-linenumber="1393"><td class="num" id="LN1393">1393</td><td class="line"> status_icon_popup_menu (manager, 0, timestamp);</td></tr>
+<tr class="codeline" data-linenumber="1394"><td class="num" id="LN1394">1394</td><td class="line"> }</td></tr>
+<tr class="codeline" data-linenumber="1395"><td class="num" id="LN1395">1395</td><td class="line">}</td></tr>
+<tr class="codeline" data-linenumber="1396"><td class="num" id="LN1396">1396</td><td class="line"> </td></tr>
+<tr class="codeline" data-linenumber="1397"><td class="num" id="LN1397">1397</td><td class="line"><span class='keyword'>static</span> <span class='keyword'>void</span></td></tr>
+<tr class="codeline" data-linenumber="1398"><td class="num" id="LN1398">1398</td><td class="line">auto_configure_outputs (MsdXrandrManager *manager, guint32 timestamp)</td></tr>
+<tr class="codeline" data-linenumber="1399"><td class="num" id="LN1399">1399</td><td class="line">{</td></tr>
+<tr class="codeline" data-linenumber="1400"><td class="num" id="LN1400">1400</td><td class="line"> MsdXrandrManagerPrivate *priv = manager-&gt;priv;</td></tr>
+<tr class="codeline" data-linenumber="1401"><td class="num" id="LN1401">1401</td><td class="line"> MateRRConfig *config;</td></tr>
+<tr class="codeline" data-linenumber="1402"><td class="num" id="LN1402">1402</td><td class="line"> MateRROutputInfo **outputs;</td></tr>
+<tr class="codeline" data-linenumber="1403"><td class="num" id="LN1403">1403</td><td class="line"> <span class='keyword'>int</span> i;</td></tr>
+<tr class="codeline" data-linenumber="1404"><td class="num" id="LN1404">1404</td><td class="line"> GList *just_turned_on;</td></tr>
+<tr class="codeline" data-linenumber="1405"><td class="num" id="LN1405">1405</td><td class="line"> GList *l;</td></tr>
+<tr class="codeline" data-linenumber="1406"><td class="num" id="LN1406">1406</td><td class="line"> <span class='keyword'>int</span> x;</td></tr>
+<tr class="codeline" data-linenumber="1407"><td class="num" id="LN1407">1407</td><td class="line"> GError *error;</td></tr>
+<tr class="codeline" data-linenumber="1408"><td class="num" id="LN1408">1408</td><td class="line"> gboolean applicable;</td></tr>
+<tr class="codeline" data-linenumber="1409"><td class="num" id="LN1409">1409</td><td class="line"> </td></tr>
+<tr class="codeline" data-linenumber="1410"><td class="num" id="LN1410">1410</td><td class="line"> config = mate_rr_config_new_current (priv-&gt;rw_screen, <span class='macro'>NULL<span class='macro_popup'>((void*)0)</span></span>);</td></tr>
+<tr class="codeline" data-linenumber="1411"><td class="num" id="LN1411">1411</td><td class="line"> </td></tr>
+<tr class="codeline" data-linenumber="1412"><td class="num" id="LN1412">1412</td><td class="line"> <span class='comment'>/* For outputs that are connected and on (i.e. they have a CRTC assigned</span></td></tr>
+<tr class="codeline" data-linenumber="1413"><td class="num" id="LN1413">1413</td><td class="line"> <span class='comment'>* to them, so they are getting a signal), we leave them as they are</span></td></tr>
+<tr class="codeline" data-linenumber="1414"><td class="num" id="LN1414">1414</td><td class="line"> <span class='comment'>* with their current modes.</span></td></tr>
+<tr class="codeline" data-linenumber="1415"><td class="num" id="LN1415">1415</td><td class="line"> <span class='comment'>*</span></td></tr>
+<tr class="codeline" data-linenumber="1416"><td class="num" id="LN1416">1416</td><td class="line"> <span class='comment'>* For other outputs, we will turn on connected-but-off outputs and turn</span></td></tr>
+<tr class="codeline" data-linenumber="1417"><td class="num" id="LN1417">1417</td><td class="line"> <span class='comment'>* off disconnected-but-on outputs.</span></td></tr>
+<tr class="codeline" data-linenumber="1418"><td class="num" id="LN1418">1418</td><td class="line"> <span class='comment'>*</span></td></tr>
+<tr class="codeline" data-linenumber="1419"><td class="num" id="LN1419">1419</td><td class="line"> <span class='comment'>* FIXME: If an output remained connected+on, it would be nice to ensure</span></td></tr>
+<tr class="codeline" data-linenumber="1420"><td class="num" id="LN1420">1420</td><td class="line"> <span class='comment'>* that the output's CRTCs still has a reasonable mode (think of</span></td></tr>
+<tr class="codeline" data-linenumber="1421"><td class="num" id="LN1421">1421</td><td class="line"> <span class='comment'>* changing one monitor for another with different capabilities).</span></td></tr>
+<tr class="codeline" data-linenumber="1422"><td class="num" id="LN1422">1422</td><td class="line"> <span class='comment'>*/</span></td></tr>
+<tr class="codeline" data-linenumber="1423"><td class="num" id="LN1423">1423</td><td class="line"> </td></tr>
+<tr class="codeline" data-linenumber="1424"><td class="num" id="LN1424">1424</td><td class="line"> just_turned_on = <span class='macro'>NULL<span class='macro_popup'>((void*)0)</span></span>;</td></tr>
+<tr class="codeline" data-linenumber="1425"><td class="num" id="LN1425">1425</td><td class="line"> outputs = mate_rr_config_get_outputs (config);</td></tr>
+<tr class="codeline" data-linenumber="1426"><td class="num" id="LN1426">1426</td><td class="line"> </td></tr>
+<tr class="codeline" data-linenumber="1427"><td class="num" id="LN1427">1427</td><td class="line"> <span class='keyword'>for</span> (i = 0; outputs[i] != <span class='macro'>NULL<span class='macro_popup'>((void*)0)</span></span>; i++) {</td></tr>
+<tr class="codeline" data-linenumber="1428"><td class="num" id="LN1428">1428</td><td class="line"> MateRROutputInfo *output = outputs[i];</td></tr>
+<tr class="codeline" data-linenumber="1429"><td class="num" id="LN1429">1429</td><td class="line"> </td></tr>
+<tr class="codeline" data-linenumber="1430"><td class="num" id="LN1430">1430</td><td class="line"> <span class='keyword'>if</span> (mate_rr_output_info_is_connected (output) &amp;&amp; !mate_rr_output_info_is_active (output)) {</td></tr>
+<tr class="codeline" data-linenumber="1431"><td class="num" id="LN1431">1431</td><td class="line"> mate_rr_output_info_set_active (output, <span class='macro'>TRUE<span class='macro_popup'>(!(0))</span></span>);</td></tr>
+<tr class="codeline" data-linenumber="1432"><td class="num" id="LN1432">1432</td><td class="line"> mate_rr_output_info_set_rotation (output, MATE_RR_ROTATION_0);</td></tr>
+<tr class="codeline" data-linenumber="1433"><td class="num" id="LN1433">1433</td><td class="line"> just_turned_on = g_list_prepend (just_turned_on, <span class='macro'>GINT_TO_POINTER (i)<span class='macro_popup'>((gpointer) (glong) (i))</span></span>);</td></tr>
+<tr class="codeline" data-linenumber="1434"><td class="num" id="LN1434">1434</td><td class="line"> } <span class='keyword'>else</span> <span class='keyword'>if</span> (!mate_rr_output_info_is_connected (output) &amp;&amp; mate_rr_output_info_is_active (output))</td></tr>
+<tr class="codeline" data-linenumber="1435"><td class="num" id="LN1435">1435</td><td class="line"> mate_rr_output_info_set_active (output, <span class='macro'>FALSE<span class='macro_popup'>(0)</span></span>);</td></tr>
+<tr class="codeline" data-linenumber="1436"><td class="num" id="LN1436">1436</td><td class="line"> }</td></tr>
+<tr class="codeline" data-linenumber="1437"><td class="num" id="LN1437">1437</td><td class="line"> </td></tr>
+<tr class="codeline" data-linenumber="1438"><td class="num" id="LN1438">1438</td><td class="line"> <span class='comment'>/* Now, lay out the outputs from left to right. Put first the outputs</span></td></tr>
+<tr class="codeline" data-linenumber="1439"><td class="num" id="LN1439">1439</td><td class="line"> <span class='comment'>* which remained on; put last the outputs that were newly turned on.</span></td></tr>
+<tr class="codeline" data-linenumber="1440"><td class="num" id="LN1440">1440</td><td class="line"> <span class='comment'>*/</span></td></tr>
+<tr class="codeline" data-linenumber="1441"><td class="num" id="LN1441">1441</td><td class="line"> </td></tr>
+<tr class="codeline" data-linenumber="1442"><td class="num" id="LN1442">1442</td><td class="line"> x = 0;</td></tr>
+<tr class="codeline" data-linenumber="1443"><td class="num" id="LN1443">1443</td><td class="line"> </td></tr>
+<tr class="codeline" data-linenumber="1444"><td class="num" id="LN1444">1444</td><td class="line"> <span class='comment'>/* First, outputs that remained on */</span></td></tr>
+<tr class="codeline" data-linenumber="1445"><td class="num" id="LN1445">1445</td><td class="line"> </td></tr>
+<tr class="codeline" data-linenumber="1446"><td class="num" id="LN1446">1446</td><td class="line"> <span class='keyword'>for</span> (i = 0; outputs[i] != <span class='macro'>NULL<span class='macro_popup'>((void*)0)</span></span>; i++) {</td></tr>
+<tr class="codeline" data-linenumber="1447"><td class="num" id="LN1447">1447</td><td class="line"> MateRROutputInfo *output = outputs[i];</td></tr>
+<tr class="codeline" data-linenumber="1448"><td class="num" id="LN1448">1448</td><td class="line"> </td></tr>
+<tr class="codeline" data-linenumber="1449"><td class="num" id="LN1449">1449</td><td class="line"> <span class='keyword'>if</span> (g_list_find (just_turned_on, <span class='macro'>GINT_TO_POINTER (i)<span class='macro_popup'>((gpointer) (glong) (i))</span></span>))</td></tr>
+<tr class="codeline" data-linenumber="1450"><td class="num" id="LN1450">1450</td><td class="line"> <span class='keyword'>continue</span>;</td></tr>
+<tr class="codeline" data-linenumber="1451"><td class="num" id="LN1451">1451</td><td class="line"> </td></tr>
+<tr class="codeline" data-linenumber="1452"><td class="num" id="LN1452">1452</td><td class="line"> <span class='keyword'>if</span> (mate_rr_output_info_is_active (output)) {</td></tr>
+<tr class="codeline" data-linenumber="1453"><td class="num" id="LN1453">1453</td><td class="line"> <span class='keyword'>int</span> width, height;</td></tr>
+<tr class="codeline" data-linenumber="1454"><td class="num" id="LN1454">1454</td><td class="line"> <span class='macro'>g_assert (mate_rr_output_info_is_connected (output))<span class='macro_popup'>do { if (mate_rr_output_info_is_connected (output)) ; else g_assertion_message_expr<br> (((gchar*) 0), "msd-xrandr-manager.c", 1454, ((const char*) (<br>__func__)), "mate_rr_output_info_is_connected (output)"); } while<br> (0)</span></span>;</td></tr>
+<tr class="codeline" data-linenumber="1455"><td class="num" id="LN1455">1455</td><td class="line"> </td></tr>
+<tr class="codeline" data-linenumber="1456"><td class="num" id="LN1456">1456</td><td class="line"> mate_rr_output_info_get_geometry (output, <span class='macro'>NULL<span class='macro_popup'>((void*)0)</span></span>, <span class='macro'>NULL<span class='macro_popup'>((void*)0)</span></span>, &amp;width, &amp;height);</td></tr>
+<tr class="codeline" data-linenumber="1457"><td class="num" id="LN1457">1457</td><td class="line"> mate_rr_output_info_set_geometry (output, x, 0, width, height);</td></tr>
+<tr class="codeline" data-linenumber="1458"><td class="num" id="LN1458">1458</td><td class="line"> </td></tr>
+<tr class="codeline" data-linenumber="1459"><td class="num" id="LN1459">1459</td><td class="line"> x += width;</td></tr>
+<tr class="codeline" data-linenumber="1460"><td class="num" id="LN1460">1460</td><td class="line"> }</td></tr>
+<tr class="codeline" data-linenumber="1461"><td class="num" id="LN1461">1461</td><td class="line"> }</td></tr>
+<tr class="codeline" data-linenumber="1462"><td class="num" id="LN1462">1462</td><td class="line"> </td></tr>
+<tr class="codeline" data-linenumber="1463"><td class="num" id="LN1463">1463</td><td class="line"> <span class='comment'>/* Second, outputs that were newly-turned on */</span></td></tr>
+<tr class="codeline" data-linenumber="1464"><td class="num" id="LN1464">1464</td><td class="line"> </td></tr>
+<tr class="codeline" data-linenumber="1465"><td class="num" id="LN1465">1465</td><td class="line"> <span class='keyword'>for</span> (l = just_turned_on; l; l = l-&gt;next) {</td></tr>
+<tr class="codeline" data-linenumber="1466"><td class="num" id="LN1466">1466</td><td class="line"> MateRROutputInfo *output;</td></tr>
+<tr class="codeline" data-linenumber="1467"><td class="num" id="LN1467">1467</td><td class="line"> <span class='keyword'>int</span> width;</td></tr>
+<tr class="codeline" data-linenumber="1468"><td class="num" id="LN1468">1468</td><td class="line"> </td></tr>
+<tr class="codeline" data-linenumber="1469"><td class="num" id="LN1469">1469</td><td class="line"> i = <span class='macro'>GPOINTER_TO_INT (l-&gt;data)<span class='macro_popup'>((gint) (glong) (l-&gt;data))</span></span>;</td></tr>
+<tr class="codeline" data-linenumber="1470"><td class="num" id="LN1470">1470</td><td class="line"> output = outputs[i];</td></tr>
+<tr class="codeline" data-linenumber="1471"><td class="num" id="LN1471">1471</td><td class="line"> </td></tr>
+<tr class="codeline" data-linenumber="1472"><td class="num" id="LN1472">1472</td><td class="line"> <span class='macro'>g_assert (mate_rr_output_info_is_active (output) &amp;&amp; mate_rr_output_info_is_connected (output))<span class='macro_popup'>do { if (mate_rr_output_info_is_active (output) &amp;&amp; mate_rr_output_info_is_connected<br> (output)) ; else g_assertion_message_expr (((gchar*) 0), "msd-xrandr-manager.c"<br>, 1472, ((const char*) (__func__)), "mate_rr_output_info_is_active (output) &amp;&amp; mate_rr_output_info_is_connected (output)"<br>); } while (0)</span></span>;</td></tr>
+<tr class="codeline" data-linenumber="1473"><td class="num" id="LN1473">1473</td><td class="line"> </td></tr>
+<tr class="codeline" data-linenumber="1474"><td class="num" id="LN1474">1474</td><td class="line"> <span class='comment'>/* since the output was off, use its preferred width/height (it doesn't have a real width/height yet) */</span></td></tr>
+<tr class="codeline" data-linenumber="1475"><td class="num" id="LN1475">1475</td><td class="line"> width = mate_rr_output_info_get_preferred_width (output);</td></tr>
+<tr class="codeline" data-linenumber="1476"><td class="num" id="LN1476">1476</td><td class="line"> mate_rr_output_info_set_geometry (output, x, 0, width, mate_rr_output_info_get_preferred_height (output));</td></tr>
+<tr class="codeline" data-linenumber="1477"><td class="num" id="LN1477">1477</td><td class="line"> </td></tr>
+<tr class="codeline" data-linenumber="1478"><td class="num" id="LN1478">1478</td><td class="line"> x += width;</td></tr>
+<tr class="codeline" data-linenumber="1479"><td class="num" id="LN1479">1479</td><td class="line"> }</td></tr>
+<tr class="codeline" data-linenumber="1480"><td class="num" id="LN1480">1480</td><td class="line"> </td></tr>
+<tr class="codeline" data-linenumber="1481"><td class="num" id="LN1481">1481</td><td class="line"> <span class='comment'>/* Check if we have a large enough framebuffer size. If not, turn off</span></td></tr>
+<tr class="codeline" data-linenumber="1482"><td class="num" id="LN1482">1482</td><td class="line"> <span class='comment'>* outputs from right to left until we reach a usable size.</span></td></tr>
+<tr class="codeline" data-linenumber="1483"><td class="num" id="LN1483">1483</td><td class="line"> <span class='comment'>*/</span></td></tr>
+<tr class="codeline" data-linenumber="1484"><td class="num" id="LN1484">1484</td><td class="line"> </td></tr>
+<tr class="codeline" data-linenumber="1485"><td class="num" id="LN1485">1485</td><td class="line"> just_turned_on = g_list_reverse (just_turned_on); <span class='comment'>/* now the outputs here are from right to left */</span></td></tr>
+<tr class="codeline" data-linenumber="1486"><td class="num" id="LN1486">1486</td><td class="line"> </td></tr>
+<tr class="codeline" data-linenumber="1487"><td class="num" id="LN1487">1487</td><td class="line"> l = just_turned_on;</td></tr>
+<tr class="codeline" data-linenumber="1488"><td class="num" id="LN1488">1488</td><td class="line"> <span class='keyword'>while</span> (1) {</td></tr>
+<tr class="codeline" data-linenumber="1489"><td class="num" id="LN1489">1489</td><td class="line"> MateRROutputInfo *output;</td></tr>
+<tr class="codeline" data-linenumber="1490"><td class="num" id="LN1490">1490</td><td class="line"> gboolean is_bounds_error;</td></tr>
+<tr class="codeline" data-linenumber="1491"><td class="num" id="LN1491">1491</td><td class="line"> </td></tr>
+<tr class="codeline" data-linenumber="1492"><td class="num" id="LN1492">1492</td><td class="line"> error = <span class='macro'>NULL<span class='macro_popup'>((void*)0)</span></span>;</td></tr>
+<tr class="codeline" data-linenumber="1493"><td class="num" id="LN1493">1493</td><td class="line"> applicable = mate_rr_config_applicable (config, priv-&gt;rw_screen, &amp;error);</td></tr>
+<tr class="codeline" data-linenumber="1494"><td class="num" id="LN1494">1494</td><td class="line"> </td></tr>
+<tr class="codeline" data-linenumber="1495"><td class="num" id="LN1495">1495</td><td class="line"> <span class='keyword'>if</span> (applicable)</td></tr>
+<tr class="codeline" data-linenumber="1496"><td class="num" id="LN1496">1496</td><td class="line"> <span class='keyword'>break</span>;</td></tr>
+<tr class="codeline" data-linenumber="1497"><td class="num" id="LN1497">1497</td><td class="line"> </td></tr>
+<tr class="codeline" data-linenumber="1498"><td class="num" id="LN1498">1498</td><td class="line"> is_bounds_error = g_error_matches (error, <span class='macro'>MATE_RR_ERROR<span class='macro_popup'>(mate_rr_error_quark ())</span></span>, MATE_RR_ERROR_BOUNDS_ERROR);</td></tr>
+<tr class="codeline" data-linenumber="1499"><td class="num" id="LN1499">1499</td><td class="line"> g_error_free (error);</td></tr>
+<tr class="codeline" data-linenumber="1500"><td class="num" id="LN1500">1500</td><td class="line"> </td></tr>
+<tr class="codeline" data-linenumber="1501"><td class="num" id="LN1501">1501</td><td class="line"> <span class='keyword'>if</span> (!is_bounds_error)</td></tr>
+<tr class="codeline" data-linenumber="1502"><td class="num" id="LN1502">1502</td><td class="line"> <span class='keyword'>break</span>;</td></tr>
+<tr class="codeline" data-linenumber="1503"><td class="num" id="LN1503">1503</td><td class="line"> </td></tr>
+<tr class="codeline" data-linenumber="1504"><td class="num" id="LN1504">1504</td><td class="line"> <span class='keyword'>if</span> (l) {</td></tr>
+<tr class="codeline" data-linenumber="1505"><td class="num" id="LN1505">1505</td><td class="line"> i = <span class='macro'>GPOINTER_TO_INT (l-&gt;data)<span class='macro_popup'>((gint) (glong) (l-&gt;data))</span></span>;</td></tr>
+<tr class="codeline" data-linenumber="1506"><td class="num" id="LN1506">1506</td><td class="line"> l = l-&gt;next;</td></tr>
+<tr class="codeline" data-linenumber="1507"><td class="num" id="LN1507">1507</td><td class="line"> </td></tr>
+<tr class="codeline" data-linenumber="1508"><td class="num" id="LN1508">1508</td><td class="line"> output = outputs[i];</td></tr>
+<tr class="codeline" data-linenumber="1509"><td class="num" id="LN1509">1509</td><td class="line"> mate_rr_output_info_set_active (output, <span class='macro'>FALSE<span class='macro_popup'>(0)</span></span>);</td></tr>
+<tr class="codeline" data-linenumber="1510"><td class="num" id="LN1510">1510</td><td class="line"> } <span class='keyword'>else</span></td></tr>
+<tr class="codeline" data-linenumber="1511"><td class="num" id="LN1511">1511</td><td class="line"> <span class='keyword'>break</span>;</td></tr>
+<tr class="codeline" data-linenumber="1512"><td class="num" id="LN1512">1512</td><td class="line"> }</td></tr>
+<tr class="codeline" data-linenumber="1513"><td class="num" id="LN1513">1513</td><td class="line"> </td></tr>
+<tr class="codeline" data-linenumber="1514"><td class="num" id="LN1514">1514</td><td class="line"> <span class='comment'>/* Apply the configuration! */</span></td></tr>
+<tr class="codeline" data-linenumber="1515"><td class="num" id="LN1515">1515</td><td class="line"> </td></tr>
+<tr class="codeline" data-linenumber="1516"><td class="num" id="LN1516">1516</td><td class="line"> <span class='keyword'>if</span> (applicable)</td></tr>
+<tr class="codeline" data-linenumber="1517"><td class="num" id="LN1517">1517</td><td class="line"> apply_configuration_and_display_error (manager, config, timestamp);</td></tr>
+<tr class="codeline" data-linenumber="1518"><td class="num" id="LN1518">1518</td><td class="line"> </td></tr>
+<tr class="codeline" data-linenumber="1519"><td class="num" id="LN1519">1519</td><td class="line"> g_list_free (just_turned_on);</td></tr>
+<tr class="codeline" data-linenumber="1520"><td class="num" id="LN1520">1520</td><td class="line"> g_object_unref (config);</td></tr>
+<tr class="codeline" data-linenumber="1521"><td class="num" id="LN1521">1521</td><td class="line"> </td></tr>
+<tr class="codeline" data-linenumber="1522"><td class="num" id="LN1522">1522</td><td class="line"> <span class='comment'>/* Finally, even though we did a best-effort job in sanitizing the</span></td></tr>
+<tr class="codeline" data-linenumber="1523"><td class="num" id="LN1523">1523</td><td class="line"> <span class='comment'>* outputs, we don't know the physical layout of the monitors. We'll</span></td></tr>
+<tr class="codeline" data-linenumber="1524"><td class="num" id="LN1524">1524</td><td class="line"> <span class='comment'>* start the display capplet so that the user can tweak things to his</span></td></tr>
+<tr class="codeline" data-linenumber="1525"><td class="num" id="LN1525">1525</td><td class="line"> <span class='comment'>* liking.</span></td></tr>
+<tr class="codeline" data-linenumber="1526"><td class="num" id="LN1526">1526</td><td class="line"> <span class='comment'>*/</span></td></tr>
+<tr class="codeline" data-linenumber="1527"><td class="num" id="LN1527">1527</td><td class="line"> </td></tr>
+<tr class="codeline" data-linenumber="1528"><td class="num" id="LN1528">1528</td><td class="line"><span class='directive'>#if 0</span></td></tr>
+<tr class="codeline" data-linenumber="1529"><td class="num" id="LN1529">1529</td><td class="line"> <span class='comment'>/* FIXME: This is disabled for now. The capplet is not a single-instance application.</span></td></tr>
+<tr class="codeline" data-linenumber="1530"><td class="num" id="LN1530">1530</td><td class="line"> <span class='comment'>* If you do this:</span></td></tr>
+<tr class="codeline" data-linenumber="1531"><td class="num" id="LN1531">1531</td><td class="line"> <span class='comment'>*</span></td></tr>
+<tr class="codeline" data-linenumber="1532"><td class="num" id="LN1532">1532</td><td class="line"> <span class='comment'>* 1. Start the display capplet</span></td></tr>
+<tr class="codeline" data-linenumber="1533"><td class="num" id="LN1533">1533</td><td class="line"> <span class='comment'>*</span></td></tr>
+<tr class="codeline" data-linenumber="1534"><td class="num" id="LN1534">1534</td><td class="line"> <span class='comment'>* 2. Plug an extra monitor</span></td></tr>
+<tr class="codeline" data-linenumber="1535"><td class="num" id="LN1535">1535</td><td class="line"> <span class='comment'>*</span></td></tr>
+<tr class="codeline" data-linenumber="1536"><td class="num" id="LN1536">1536</td><td class="line"> <span class='comment'>* 3. Hit the "Detect displays" button</span></td></tr>
+<tr class="codeline" data-linenumber="1537"><td class="num" id="LN1537">1537</td><td class="line"> <span class='comment'>*</span></td></tr>
+<tr class="codeline" data-linenumber="1538"><td class="num" id="LN1538">1538</td><td class="line"> <span class='comment'>* Then we will get a RANDR event because X re-probes the outputs. We don't want to</span></td></tr>
+<tr class="codeline" data-linenumber="1539"><td class="num" id="LN1539">1539</td><td class="line"> <span class='comment'>* start up a second display capplet right there!</span></td></tr>
+<tr class="codeline" data-linenumber="1540"><td class="num" id="LN1540">1540</td><td class="line"> <span class='comment'>*/</span></td></tr>
+<tr class="codeline" data-linenumber="1541"><td class="num" id="LN1541">1541</td><td class="line"> </td></tr>
+<tr class="codeline" data-linenumber="1542"><td class="num" id="LN1542">1542</td><td class="line"> run_display_capplet (<span class='macro'>NULL<span class='macro_popup'>((void*)0)</span></span>);</td></tr>
+<tr class="codeline" data-linenumber="1543"><td class="num" id="LN1543">1543</td><td class="line"><span class='directive'>#endif</span></td></tr>
+<tr class="codeline" data-linenumber="1544"><td class="num" id="LN1544">1544</td><td class="line">}</td></tr>
+<tr class="codeline" data-linenumber="1545"><td class="num" id="LN1545">1545</td><td class="line"> </td></tr>
+<tr class="codeline" data-linenumber="1546"><td class="num" id="LN1546">1546</td><td class="line"><span class='keyword'>static</span> <span class='keyword'>void</span></td></tr>
+<tr class="codeline" data-linenumber="1547"><td class="num" id="LN1547">1547</td><td class="line">apply_color_profiles (<span class='keyword'>void</span>)</td></tr>
+<tr class="codeline" data-linenumber="1548"><td class="num" id="LN1548">1548</td><td class="line">{</td></tr>
+<tr class="codeline" data-linenumber="1549"><td class="num" id="LN1549">1549</td><td class="line"> gboolean ret;</td></tr>
+<tr class="codeline" data-linenumber="1550"><td class="num" id="LN1550">1550</td><td class="line"> GError *error = <span class='macro'>NULL<span class='macro_popup'>((void*)0)</span></span>;</td></tr>
+<tr class="codeline" data-linenumber="1551"><td class="num" id="LN1551">1551</td><td class="line"> </td></tr>
+<tr class="codeline" data-linenumber="1552"><td class="num" id="LN1552">1552</td><td class="line"> <span class='comment'>/* run the mate-color-manager apply program */</span></td></tr>
+<tr class="codeline" data-linenumber="1553"><td class="num" id="LN1553">1553</td><td class="line"> ret = g_spawn_command_line_async (<span class='macro'>BINDIR<span class='macro_popup'>"/usr/bin"</span></span> <span class='string_literal'>"/gcm-apply"</span>, &amp;error);</td></tr>
+<tr class="codeline" data-linenumber="1554"><td class="num" id="LN1554">1554</td><td class="line"> <span class='keyword'>if</span> (!ret) {</td></tr>
+<tr class="codeline" data-linenumber="1555"><td class="num" id="LN1555">1555</td><td class="line"> <span class='comment'>/* only print the warning if the binary is installed */</span></td></tr>
+<tr class="codeline" data-linenumber="1556"><td class="num" id="LN1556">1556</td><td class="line"> <span class='keyword'>if</span> (error-&gt;code != G_SPAWN_ERROR_NOENT) {</td></tr>
+<tr class="codeline" data-linenumber="1557"><td class="num" id="LN1557">1557</td><td class="line"> g_warning (<span class='string_literal'>"failed to apply color profiles: %s"</span>, error-&gt;message);</td></tr>
+<tr class="codeline" data-linenumber="1558"><td class="num" id="LN1558">1558</td><td class="line"> }</td></tr>
+<tr class="codeline" data-linenumber="1559"><td class="num" id="LN1559">1559</td><td class="line"> g_error_free (error);</td></tr>
+<tr class="codeline" data-linenumber="1560"><td class="num" id="LN1560">1560</td><td class="line"> }</td></tr>
+<tr class="codeline" data-linenumber="1561"><td class="num" id="LN1561">1561</td><td class="line">}</td></tr>
+<tr class="codeline" data-linenumber="1562"><td class="num" id="LN1562">1562</td><td class="line"> </td></tr>
+<tr class="codeline" data-linenumber="1563"><td class="num" id="LN1563">1563</td><td class="line"><span class='keyword'>static</span> <span class='keyword'>void</span></td></tr>
+<tr class="codeline" data-linenumber="1564"><td class="num" id="LN1564">1564</td><td class="line">on_randr_event (MateRRScreen *screen, gpointer data)</td></tr>
+<tr class="codeline" data-linenumber="1565"><td class="num" id="LN1565">1565</td><td class="line">{</td></tr>
+<tr class="codeline" data-linenumber="1566"><td class="num" id="LN1566">1566</td><td class="line"> MsdXrandrManager *manager = <span class='macro'>MSD_XRANDR_MANAGER (data)<span class='macro_popup'>((((MsdXrandrManager*) g_type_check_instance_cast ((GTypeInstance<br>*) ((data)), ((msd_xrandr_manager_get_type ()))))))</span></span>;</td></tr>
+<tr class="codeline" data-linenumber="1567"><td class="num" id="LN1567">1567</td><td class="line"> MsdXrandrManagerPrivate *priv = manager-&gt;priv;</td></tr>
+<tr class="codeline" data-linenumber="1568"><td class="num" id="LN1568">1568</td><td class="line"> guint32 change_timestamp, config_timestamp;</td></tr>
+<tr class="codeline" data-linenumber="1569"><td class="num" id="LN1569">1569</td><td class="line"> </td></tr>
+<tr class="codeline" data-linenumber="1570"><td class="num" id="LN1570">1570</td><td class="line"> <span class='keyword'>if</span> (!priv-&gt;running)</td></tr>
+<tr class="codeline" data-linenumber="1571"><td class="num" id="LN1571">1571</td><td class="line"> <span class='keyword'>return</span>;</td></tr>
+<tr class="codeline" data-linenumber="1572"><td class="num" id="LN1572">1572</td><td class="line"> </td></tr>
+<tr class="codeline" data-linenumber="1573"><td class="num" id="LN1573">1573</td><td class="line"> mate_rr_screen_get_timestamps (screen, &amp;change_timestamp, &amp;config_timestamp);</td></tr>
+<tr class="codeline" data-linenumber="1574"><td class="num" id="LN1574">1574</td><td class="line"> </td></tr>
+<tr class="codeline" data-linenumber="1575"><td class="num" id="LN1575">1575</td><td class="line"> log_open ();</td></tr>
+<tr class="codeline" data-linenumber="1576"><td class="num" id="LN1576">1576</td><td class="line"> log_msg (<span class='string_literal'>"Got RANDR event with timestamps change=%u %c config=%u\n"</span>,</td></tr>
+<tr class="codeline" data-linenumber="1577"><td class="num" id="LN1577">1577</td><td class="line"> change_timestamp,</td></tr>
+<tr class="codeline" data-linenumber="1578"><td class="num" id="LN1578">1578</td><td class="line"> timestamp_relationship (change_timestamp, config_timestamp),</td></tr>
+<tr class="codeline" data-linenumber="1579"><td class="num" id="LN1579">1579</td><td class="line"> config_timestamp);</td></tr>
+<tr class="codeline" data-linenumber="1580"><td class="num" id="LN1580">1580</td><td class="line"> </td></tr>
+<tr class="codeline" data-linenumber="1581"><td class="num" id="LN1581">1581</td><td class="line"> <span class='keyword'>if</span> (change_timestamp &gt;= config_timestamp) {</td></tr>
+<tr class="codeline" data-linenumber="1582"><td class="num" id="LN1582">1582</td><td class="line"> <span class='comment'>/* The event is due to an explicit configuration change.</span></td></tr>
+<tr class="codeline" data-linenumber="1583"><td class="num" id="LN1583">1583</td><td class="line"> <span class='comment'>*</span></td></tr>
+<tr class="codeline" data-linenumber="1584"><td class="num" id="LN1584">1584</td><td class="line"> <span class='comment'>* If the change was performed by us, then we need to do nothing.</span></td></tr>
+<tr class="codeline" data-linenumber="1585"><td class="num" id="LN1585">1585</td><td class="line"> <span class='comment'>*</span></td></tr>
+<tr class="codeline" data-linenumber="1586"><td class="num" id="LN1586">1586</td><td class="line"> <span class='comment'>* If the change was done by some other X client, we don't need</span></td></tr>
+<tr class="codeline" data-linenumber="1587"><td class="num" id="LN1587">1587</td><td class="line"> <span class='comment'>* to do anything, either; the screen is already configured.</span></td></tr>
+<tr class="codeline" data-linenumber="1588"><td class="num" id="LN1588">1588</td><td class="line"> <span class='comment'>*/</span></td></tr>
+<tr class="codeline" data-linenumber="1589"><td class="num" id="LN1589">1589</td><td class="line"> show_timestamps_dialog (manager, <span class='string_literal'>"ignoring since change &gt; config"</span>);</td></tr>
+<tr class="codeline" data-linenumber="1590"><td class="num" id="LN1590">1590</td><td class="line"> log_msg (<span class='string_literal'>" Ignoring event since change &gt;= config\n"</span>);</td></tr>
+<tr class="codeline" data-linenumber="1591"><td class="num" id="LN1591">1591</td><td class="line"> } <span class='keyword'>else</span> {</td></tr>
+<tr class="codeline" data-linenumber="1592"><td class="num" id="LN1592">1592</td><td class="line"> <span class='comment'>/* Here, config_timestamp &gt; change_timestamp. This means that</span></td></tr>
+<tr class="codeline" data-linenumber="1593"><td class="num" id="LN1593">1593</td><td class="line"> <span class='comment'>* the screen got reconfigured because of hotplug/unplug; the X</span></td></tr>
+<tr class="codeline" data-linenumber="1594"><td class="num" id="LN1594">1594</td><td class="line"> <span class='comment'>* server is just notifying us, and we need to configure the</span></td></tr>
+<tr class="codeline" data-linenumber="1595"><td class="num" id="LN1595">1595</td><td class="line"> <span class='comment'>* outputs in a sane way.</span></td></tr>
+<tr class="codeline" data-linenumber="1596"><td class="num" id="LN1596">1596</td><td class="line"> <span class='comment'>*/</span></td></tr>
+<tr class="codeline" data-linenumber="1597"><td class="num" id="LN1597">1597</td><td class="line"> </td></tr>
+<tr class="codeline" data-linenumber="1598"><td class="num" id="LN1598">1598</td><td class="line"> <span class='keyword'>char</span> *intended_filename;</td></tr>
+<tr class="codeline" data-linenumber="1599"><td class="num" id="LN1599">1599</td><td class="line"> GError *error;</td></tr>
+<tr class="codeline" data-linenumber="1600"><td class="num" id="LN1600">1600</td><td class="line"> gboolean success;</td></tr>
+<tr class="codeline" data-linenumber="1601"><td class="num" id="LN1601">1601</td><td class="line"> </td></tr>
+<tr class="codeline" data-linenumber="1602"><td class="num" id="LN1602">1602</td><td class="line"> show_timestamps_dialog (manager, <span class='string_literal'>"need to deal with reconfiguration, as config &gt; change"</span>);</td></tr>
+<tr class="codeline" data-linenumber="1603"><td class="num" id="LN1603">1603</td><td class="line"> </td></tr>
+<tr class="codeline" data-linenumber="1604"><td class="num" id="LN1604">1604</td><td class="line"> intended_filename = mate_rr_config_get_intended_filename ();</td></tr>
+<tr class="codeline" data-linenumber="1605"><td class="num" id="LN1605">1605</td><td class="line"> </td></tr>
+<tr class="codeline" data-linenumber="1606"><td class="num" id="LN1606">1606</td><td class="line"> error = <span class='macro'>NULL<span class='macro_popup'>((void*)0)</span></span>;</td></tr>
+<tr class="codeline" data-linenumber="1607"><td class="num" id="LN1607">1607</td><td class="line"> success = apply_configuration_from_filename (manager, intended_filename, <span class='macro'>TRUE<span class='macro_popup'>(!(0))</span></span>, config_timestamp, &amp;error);</td></tr>
+<tr class="codeline" data-linenumber="1608"><td class="num" id="LN1608">1608</td><td class="line"> g_free (intended_filename);</td></tr>
+<tr class="codeline" data-linenumber="1609"><td class="num" id="LN1609">1609</td><td class="line"> </td></tr>
+<tr class="codeline" data-linenumber="1610"><td class="num" id="LN1610">1610</td><td class="line"> <span class='keyword'>if</span> (!success) {</td></tr>
+<tr class="codeline" data-linenumber="1611"><td class="num" id="LN1611">1611</td><td class="line"> <span class='comment'>/* We don't bother checking the error type.</span></td></tr>
+<tr class="codeline" data-linenumber="1612"><td class="num" id="LN1612">1612</td><td class="line"> <span class='comment'>*</span></td></tr>
+<tr class="codeline" data-linenumber="1613"><td class="num" id="LN1613">1613</td><td class="line"> <span class='comment'>* Both G_FILE_ERROR_NOENT and</span></td></tr>
+<tr class="codeline" data-linenumber="1614"><td class="num" id="LN1614">1614</td><td class="line"> <span class='comment'>* MATE_RR_ERROR_NO_MATCHING_CONFIG would mean, "there</span></td></tr>
+<tr class="codeline" data-linenumber="1615"><td class="num" id="LN1615">1615</td><td class="line"> <span class='comment'>* was no configuration to apply, or none that matched</span></td></tr>
+<tr class="codeline" data-linenumber="1616"><td class="num" id="LN1616">1616</td><td class="line"> <span class='comment'>* the current outputs", and in that case we need to run</span></td></tr>
+<tr class="codeline" data-linenumber="1617"><td class="num" id="LN1617">1617</td><td class="line"> <span class='comment'>* our fallback.</span></td></tr>
+<tr class="codeline" data-linenumber="1618"><td class="num" id="LN1618">1618</td><td class="line"> <span class='comment'>*</span></td></tr>
+<tr class="codeline" data-linenumber="1619"><td class="num" id="LN1619">1619</td><td class="line"> <span class='comment'>* Any other error means "we couldn't do the smart thing</span></td></tr>
+<tr class="codeline" data-linenumber="1620"><td class="num" id="LN1620">1620</td><td class="line"> <span class='comment'>* of using a previously- saved configuration, anyway,</span></td></tr>
+<tr class="codeline" data-linenumber="1621"><td class="num" id="LN1621">1621</td><td class="line"> <span class='comment'>* for some other reason. In that case, we also need to</span></td></tr>
+<tr class="codeline" data-linenumber="1622"><td class="num" id="LN1622">1622</td><td class="line"> <span class='comment'>* run our fallback to avoid leaving the user with a</span></td></tr>
+<tr class="codeline" data-linenumber="1623"><td class="num" id="LN1623">1623</td><td class="line"> <span class='comment'>* bogus configuration.</span></td></tr>
+<tr class="codeline" data-linenumber="1624"><td class="num" id="LN1624">1624</td><td class="line"> <span class='comment'>*/</span></td></tr>
+<tr class="codeline" data-linenumber="1625"><td class="num" id="LN1625">1625</td><td class="line"> </td></tr>
+<tr class="codeline" data-linenumber="1626"><td class="num" id="LN1626">1626</td><td class="line"> <span class='keyword'>if</span> (error)</td></tr>
+<tr class="codeline" data-linenumber="1627"><td class="num" id="LN1627">1627</td><td class="line"> g_error_free (error);</td></tr>
+<tr class="codeline" data-linenumber="1628"><td class="num" id="LN1628">1628</td><td class="line"> </td></tr>
+<tr class="codeline" data-linenumber="1629"><td class="num" id="LN1629">1629</td><td class="line"> <span class='keyword'>if</span> (config_timestamp != priv-&gt;last_config_timestamp) {</td></tr>
+<tr class="codeline" data-linenumber="1630"><td class="num" id="LN1630">1630</td><td class="line"> priv-&gt;last_config_timestamp = config_timestamp;</td></tr>
+<tr class="codeline" data-linenumber="1631"><td class="num" id="LN1631">1631</td><td class="line"> auto_configure_outputs (manager, config_timestamp);</td></tr>
+<tr class="codeline" data-linenumber="1632"><td class="num" id="LN1632">1632</td><td class="line"> log_msg (<span class='string_literal'>" Automatically configured outputs to deal with event\n"</span>);</td></tr>
+<tr class="codeline" data-linenumber="1633"><td class="num" id="LN1633">1633</td><td class="line"> } <span class='keyword'>else</span></td></tr>
+<tr class="codeline" data-linenumber="1634"><td class="num" id="LN1634">1634</td><td class="line"> log_msg (<span class='string_literal'>" Ignored event as old and new config timestamps are the same\n"</span>);</td></tr>
+<tr class="codeline" data-linenumber="1635"><td class="num" id="LN1635">1635</td><td class="line"> } <span class='keyword'>else</span></td></tr>
+<tr class="codeline" data-linenumber="1636"><td class="num" id="LN1636">1636</td><td class="line"> log_msg (<span class='string_literal'>"Applied stored configuration to deal with event\n"</span>);</td></tr>
+<tr class="codeline" data-linenumber="1637"><td class="num" id="LN1637">1637</td><td class="line"> }</td></tr>
+<tr class="codeline" data-linenumber="1638"><td class="num" id="LN1638">1638</td><td class="line"> </td></tr>
+<tr class="codeline" data-linenumber="1639"><td class="num" id="LN1639">1639</td><td class="line"> <span class='comment'>/* poke mate-color-manager */</span></td></tr>
+<tr class="codeline" data-linenumber="1640"><td class="num" id="LN1640">1640</td><td class="line"> apply_color_profiles ();</td></tr>
+<tr class="codeline" data-linenumber="1641"><td class="num" id="LN1641">1641</td><td class="line"> </td></tr>
+<tr class="codeline" data-linenumber="1642"><td class="num" id="LN1642">1642</td><td class="line"> refresh_tray_icon_menu_if_active (manager, <span class='macro'>MAX (change_timestamp, config_timestamp)<span class='macro_popup'>(((change_timestamp) &gt; (config_timestamp)) ? (change_timestamp<br>) : (config_timestamp))</span></span>);</td></tr>
+<tr class="codeline" data-linenumber="1643"><td class="num" id="LN1643">1643</td><td class="line"> </td></tr>
+<tr class="codeline" data-linenumber="1644"><td class="num" id="LN1644">1644</td><td class="line"> log_close ();</td></tr>
+<tr class="codeline" data-linenumber="1645"><td class="num" id="LN1645">1645</td><td class="line">}</td></tr>
+<tr class="codeline" data-linenumber="1646"><td class="num" id="LN1646">1646</td><td class="line"> </td></tr>
+<tr class="codeline" data-linenumber="1647"><td class="num" id="LN1647">1647</td><td class="line"><span class='keyword'>static</span> <span class='keyword'>void</span></td></tr>
+<tr class="codeline" data-linenumber="1648"><td class="num" id="LN1648">1648</td><td class="line">run_display_capplet (GtkWidget *widget)</td></tr>
+<tr class="codeline" data-linenumber="1649"><td class="num" id="LN1649">1649</td><td class="line">{</td></tr>
+<tr class="codeline" data-linenumber="1650"><td class="num" id="LN1650">1650</td><td class="line"> GdkScreen *screen;</td></tr>
+<tr class="codeline" data-linenumber="1651"><td class="num" id="LN1651">1651</td><td class="line"> GError *error;</td></tr>
+<tr class="codeline" data-linenumber="1652"><td class="num" id="LN1652">1652</td><td class="line"> </td></tr>
+<tr class="codeline" data-linenumber="1653"><td class="num" id="LN1653">1653</td><td class="line"> <span class='keyword'>if</span> (widget)</td></tr>
+<tr class="codeline" data-linenumber="1654"><td class="num" id="LN1654">1654</td><td class="line"> screen = gtk_widget_get_screen (widget);</td></tr>
+<tr class="codeline" data-linenumber="1655"><td class="num" id="LN1655">1655</td><td class="line"> <span class='keyword'>else</span></td></tr>
+<tr class="codeline" data-linenumber="1656"><td class="num" id="LN1656">1656</td><td class="line"> screen = gdk_screen_get_default ();</td></tr>
+<tr class="codeline" data-linenumber="1657"><td class="num" id="LN1657">1657</td><td class="line"> </td></tr>
+<tr class="codeline" data-linenumber="1658"><td class="num" id="LN1658">1658</td><td class="line"> error = <span class='macro'>NULL<span class='macro_popup'>((void*)0)</span></span>;</td></tr>
+<tr class="codeline" data-linenumber="1659"><td class="num" id="LN1659">1659</td><td class="line"> <span class='keyword'>if</span> (!mate_gdk_spawn_command_line_on_screen (screen, <span class='macro'>MSD_XRANDR_DISPLAY_CAPPLET<span class='macro_popup'>"mate-display-properties"</span></span>, &amp;error)) {</td></tr>
+<tr class="codeline" data-linenumber="1660"><td class="num" id="LN1660">1660</td><td class="line"> GtkWidget *dialog;</td></tr>
+<tr class="codeline" data-linenumber="1661"><td class="num" id="LN1661">1661</td><td class="line"> </td></tr>
+<tr class="codeline" data-linenumber="1662"><td class="num" id="LN1662">1662</td><td class="line"> dialog = gtk_message_dialog_new_with_markup (<span class='macro'>NULL<span class='macro_popup'>((void*)0)</span></span>, 0, GTK_MESSAGE_ERROR, GTK_BUTTONS_OK,</td></tr>
+<tr class="codeline" data-linenumber="1663"><td class="num" id="LN1663">1663</td><td class="line"> <span class='string_literal'>"&lt;span weight=\"bold\" size=\"larger\"&gt;"</span></td></tr>
+<tr class="codeline" data-linenumber="1664"><td class="num" id="LN1664">1664</td><td class="line"> <span class='string_literal'>"Display configuration could not be run"</span></td></tr>
+<tr class="codeline" data-linenumber="1665"><td class="num" id="LN1665">1665</td><td class="line"> <span class='string_literal'>"&lt;/span&gt;\n\n"</span></td></tr>
+<tr class="codeline" data-linenumber="1666"><td class="num" id="LN1666">1666</td><td class="line"> <span class='string_literal'>"%s"</span>, error-&gt;message);</td></tr>
+<tr class="codeline" data-linenumber="1667"><td class="num" id="LN1667">1667</td><td class="line"> gtk_dialog_run (<span class='macro'>GTK_DIALOG (dialog)<span class='macro_popup'>((((GtkDialog*) g_type_check_instance_cast ((GTypeInstance*) (<br>(dialog)), ((gtk_dialog_get_type ()))))))</span></span>);</td></tr>
+<tr class="codeline" data-linenumber="1668"><td class="num" id="LN1668">1668</td><td class="line"> gtk_widget_destroy (dialog);</td></tr>
+<tr class="codeline" data-linenumber="1669"><td class="num" id="LN1669">1669</td><td class="line"> </td></tr>
+<tr class="codeline" data-linenumber="1670"><td class="num" id="LN1670">1670</td><td class="line"> g_error_free (error);</td></tr>
+<tr class="codeline" data-linenumber="1671"><td class="num" id="LN1671">1671</td><td class="line"> }</td></tr>
+<tr class="codeline" data-linenumber="1672"><td class="num" id="LN1672">1672</td><td class="line">}</td></tr>
+<tr class="codeline" data-linenumber="1673"><td class="num" id="LN1673">1673</td><td class="line"> </td></tr>
+<tr class="codeline" data-linenumber="1674"><td class="num" id="LN1674">1674</td><td class="line"><span class='keyword'>static</span> <span class='keyword'>void</span></td></tr>
+<tr class="codeline" data-linenumber="1675"><td class="num" id="LN1675">1675</td><td class="line">popup_menu_configure_display_cb (GtkMenuItem *item, gpointer data <span class='macro'>G_GNUC_UNUSED<span class='macro_popup'>__attribute__((__unused__))</span></span>)</td></tr>
+<tr class="codeline" data-linenumber="1676"><td class="num" id="LN1676">1676</td><td class="line">{</td></tr>
+<tr class="codeline" data-linenumber="1677"><td class="num" id="LN1677">1677</td><td class="line"> run_display_capplet (<span class='macro'>GTK_WIDGET (item)<span class='macro_popup'>((((GtkWidget*) g_type_check_instance_cast ((GTypeInstance*) (<br>(item)), ((gtk_widget_get_type ()))))))</span></span>);</td></tr>
+<tr class="codeline" data-linenumber="1678"><td class="num" id="LN1678">1678</td><td class="line">}</td></tr>
+<tr class="codeline" data-linenumber="1679"><td class="num" id="LN1679">1679</td><td class="line"> </td></tr>
+<tr class="codeline" data-linenumber="1680"><td class="num" id="LN1680">1680</td><td class="line"><span class='keyword'>static</span> <span class='keyword'>void</span></td></tr>
+<tr class="codeline" data-linenumber="1681"><td class="num" id="LN1681">1681</td><td class="line">status_icon_popup_menu_selection_done_cb (GtkMenuShell *menu_shell <span class='macro'>G_GNUC_UNUSED<span class='macro_popup'>__attribute__((__unused__))</span></span>,</td></tr>
+<tr class="codeline" data-linenumber="1682"><td class="num" id="LN1682">1682</td><td class="line"> gpointer data)</td></tr>
+<tr class="codeline" data-linenumber="1683"><td class="num" id="LN1683">1683</td><td class="line">{</td></tr>
+<tr class="codeline" data-linenumber="1684"><td class="num" id="LN1684">1684</td><td class="line"> MsdXrandrManager *manager = <span class='macro'>MSD_XRANDR_MANAGER (data)<span class='macro_popup'>((((MsdXrandrManager*) g_type_check_instance_cast ((GTypeInstance<br>*) ((data)), ((msd_xrandr_manager_get_type ()))))))</span></span>;</td></tr>
+<tr class="codeline" data-linenumber="1685"><td class="num" id="LN1685">1685</td><td class="line"> <span class='keyword'>struct</span> MsdXrandrManagerPrivate *priv = manager-&gt;priv;</td></tr>
+<tr class="codeline" data-linenumber="1686"><td class="num" id="LN1686">1686</td><td class="line"> </td></tr>
+<tr class="codeline" data-linenumber="1687"><td class="num" id="LN1687">1687</td><td class="line"> gtk_widget_destroy (priv-&gt;popup_menu);</td></tr>
+<tr class="codeline" data-linenumber="1688"><td class="num" id="LN1688">1688</td><td class="line"> priv-&gt;popup_menu = <span class='macro'>NULL<span class='macro_popup'>((void*)0)</span></span>;</td></tr>
+<tr class="codeline" data-linenumber="1689"><td class="num" id="LN1689">1689</td><td class="line"> </td></tr>
+<tr class="codeline" data-linenumber="1690"><td class="num" id="LN1690">1690</td><td class="line"> mate_rr_labeler_hide (priv-&gt;labeler);</td></tr>
+<tr class="codeline" data-linenumber="1691"><td class="num" id="LN1691">1691</td><td class="line"> g_object_unref (priv-&gt;labeler);</td></tr>
+<tr class="codeline" data-linenumber="1692"><td class="num" id="LN1692">1692</td><td class="line"> priv-&gt;labeler = <span class='macro'>NULL<span class='macro_popup'>((void*)0)</span></span>;</td></tr>
+<tr class="codeline" data-linenumber="1693"><td class="num" id="LN1693">1693</td><td class="line"> </td></tr>
+<tr class="codeline" data-linenumber="1694"><td class="num" id="LN1694">1694</td><td class="line"> g_object_unref (priv-&gt;configuration);</td></tr>
+<tr class="codeline" data-linenumber="1695"><td class="num" id="LN1695">1695</td><td class="line"> priv-&gt;configuration = <span class='macro'>NULL<span class='macro_popup'>((void*)0)</span></span>;</td></tr>
+<tr class="codeline" data-linenumber="1696"><td class="num" id="LN1696">1696</td><td class="line">}</td></tr>
+<tr class="codeline" data-linenumber="1697"><td class="num" id="LN1697">1697</td><td class="line"> </td></tr>
+<tr class="codeline" data-linenumber="1698"><td class="num" id="LN1698">1698</td><td class="line"><span class='directive'>#define <span class='macro'>OUTPUT_TITLE_ITEM_BORDER<span class='macro_popup'>2</span></span> 2</span></td></tr>
+<tr class="codeline" data-linenumber="1699"><td class="num" id="LN1699">1699</td><td class="line"><span class='directive'>#define <span class='macro'>OUTPUT_TITLE_ITEM_PADDING<span class='macro_popup'>4</span></span> 4</span></td></tr>
+<tr class="codeline" data-linenumber="1700"><td class="num" id="LN1700">1700</td><td class="line"> </td></tr>
+<tr class="codeline" data-linenumber="1701"><td class="num" id="LN1701">1701</td><td class="line"><span class='keyword'>static</span> <span class='keyword'>void</span></td></tr>
+<tr class="codeline" data-linenumber="1702"><td class="num" id="LN1702">1702</td><td class="line">title_item_size_allocate_cb (GtkWidget *widget, GtkAllocation *allocation, gpointer data <span class='macro'>G_GNUC_UNUSED<span class='macro_popup'>__attribute__((__unused__))</span></span>)</td></tr>
+<tr class="codeline" data-linenumber="1703"><td class="num" id="LN1703">1703</td><td class="line">{</td></tr>
+<tr class="codeline" data-linenumber="1704"><td class="num" id="LN1704">1704</td><td class="line"> <span class='comment'>/* When GtkMenu does size_request on its items, it asks them for their "toggle size",</span></td></tr>
+<tr class="codeline" data-linenumber="1705"><td class="num" id="LN1705">1705</td><td class="line"> <span class='comment'>* which will be non-zero when there are check/radio items. GtkMenu remembers</span></td></tr>
+<tr class="codeline" data-linenumber="1706"><td class="num" id="LN1706">1706</td><td class="line"> <span class='comment'>* the largest of those sizes. During the size_allocate pass, GtkMenu calls</span></td></tr>
+<tr class="codeline" data-linenumber="1707"><td class="num" id="LN1707">1707</td><td class="line"> <span class='comment'>* gtk_menu_item_toggle_size_allocate() with that value, to tell the menu item</span></td></tr>
+<tr class="codeline" data-linenumber="1708"><td class="num" id="LN1708">1708</td><td class="line"> <span class='comment'>* that it should later paint its child a bit to the right of its edge.</span></td></tr>
+<tr class="codeline" data-linenumber="1709"><td class="num" id="LN1709">1709</td><td class="line"> <span class='comment'>*</span></td></tr>
+<tr class="codeline" data-linenumber="1710"><td class="num" id="LN1710">1710</td><td class="line"> <span class='comment'>* However, we want the "title" menu items for each RANDR output to span the *whole*</span></td></tr>
+<tr class="codeline" data-linenumber="1711"><td class="num" id="LN1711">1711</td><td class="line"> <span class='comment'>* allocation of the menu item, not just the "allocation minus toggle" area.</span></td></tr>
+<tr class="codeline" data-linenumber="1712"><td class="num" id="LN1712">1712</td><td class="line"> <span class='comment'>*</span></td></tr>
+<tr class="codeline" data-linenumber="1713"><td class="num" id="LN1713">1713</td><td class="line"> <span class='comment'>* So, we let the menu item size_allocate itself as usual, but this</span></td></tr>
+<tr class="codeline" data-linenumber="1714"><td class="num" id="LN1714">1714</td><td class="line"> <span class='comment'>* callback gets run afterward. Here we hack a toggle size of 0 into</span></td></tr>
+<tr class="codeline" data-linenumber="1715"><td class="num" id="LN1715">1715</td><td class="line"> <span class='comment'>* the menu item, and size_allocate it by hand *again*. We also need to</span></td></tr>
+<tr class="codeline" data-linenumber="1716"><td class="num" id="LN1716">1716</td><td class="line"> <span class='comment'>* avoid recursing into this function.</span></td></tr>
+<tr class="codeline" data-linenumber="1717"><td class="num" id="LN1717">1717</td><td class="line"> <span class='comment'>*/</span></td></tr>
+<tr class="codeline" data-linenumber="1718"><td class="num" id="LN1718">1718</td><td class="line"> </td></tr>
+<tr class="codeline" data-linenumber="1719"><td class="num" id="LN1719">1719</td><td class="line"> <span class='macro'>g_assert (GTK_IS_MENU_ITEM (widget))<span class='macro_popup'>do { if ((((__extension__ ({ GTypeInstance *__inst = (GTypeInstance<br>*) ((widget)); GType __t = ((gtk_menu_item_get_type ())); gboolean<br> __r; if (!__inst) __r = (0); else if (__inst-&gt;g_class &amp;&amp;<br> __inst-&gt;g_class-&gt;g_type == __t) __r = (!(0)); else __r<br> = g_type_check_instance_is_a (__inst, __t); __r; }))))) ; else<br> g_assertion_message_expr (((gchar*) 0), "msd-xrandr-manager.c"<br>, 1719, ((const char*) (__func__)), "GTK_IS_MENU_ITEM (widget)"<br>); } while (0)</span></span>;</td></tr>
+<tr class="codeline" data-linenumber="1720"><td class="num" id="LN1720">1720</td><td class="line"> </td></tr>
+<tr class="codeline" data-linenumber="1721"><td class="num" id="LN1721">1721</td><td class="line"> gtk_menu_item_toggle_size_allocate (<span class='macro'>GTK_MENU_ITEM (widget)<span class='macro_popup'>((((GtkMenuItem*) g_type_check_instance_cast ((GTypeInstance*<br>) ((widget)), ((gtk_menu_item_get_type ()))))))</span></span>, 0);</td></tr>
+<tr class="codeline" data-linenumber="1722"><td class="num" id="LN1722">1722</td><td class="line"> </td></tr>
+<tr class="codeline" data-linenumber="1723"><td class="num" id="LN1723">1723</td><td class="line"> <span class='macro'>g_signal_handlers_block_by_func (widget, title_item_size_allocate_cb, NULL)<span class='macro_popup'>g_signal_handlers_block_matched ((widget), (GSignalMatchType)<br> (G_SIGNAL_MATCH_FUNC | G_SIGNAL_MATCH_DATA), 0, 0, ((void*)0<br>), (title_item_size_allocate_cb), (((void*)0)))</span></span>;</td></tr>
+<tr class="codeline" data-linenumber="1724"><td class="num" id="LN1724">1724</td><td class="line"> </td></tr>
+<tr class="codeline" data-linenumber="1725"><td class="num" id="LN1725">1725</td><td class="line"> <span class='comment'>/* Sigh. There is no way to turn on GTK_ALLOC_NEEDED outside of GTK+</span></td></tr>
+<tr class="codeline" data-linenumber="1726"><td class="num" id="LN1726">1726</td><td class="line"> <span class='comment'>* itself; also, since calling size_allocate on a widget with the same</span></td></tr>
+<tr class="codeline" data-linenumber="1727"><td class="num" id="LN1727">1727</td><td class="line"> <span class='comment'>* allcation is a no-op, we need to allocate with a "different" size</span></td></tr>
+<tr class="codeline" data-linenumber="1728"><td class="num" id="LN1728">1728</td><td class="line"> <span class='comment'>* first.</span></td></tr>
+<tr class="codeline" data-linenumber="1729"><td class="num" id="LN1729">1729</td><td class="line"> <span class='comment'>*/</span></td></tr>
+<tr class="codeline" data-linenumber="1730"><td class="num" id="LN1730">1730</td><td class="line"> </td></tr>
+<tr class="codeline" data-linenumber="1731"><td class="num" id="LN1731">1731</td><td class="line"> allocation-&gt;width++;</td></tr>
+<tr class="codeline" data-linenumber="1732"><td class="num" id="LN1732">1732</td><td class="line"> gtk_widget_size_allocate (widget, allocation);</td></tr>
+<tr class="codeline" data-linenumber="1733"><td class="num" id="LN1733">1733</td><td class="line"> </td></tr>
+<tr class="codeline" data-linenumber="1734"><td class="num" id="LN1734">1734</td><td class="line"> allocation-&gt;width--;</td></tr>
+<tr class="codeline" data-linenumber="1735"><td class="num" id="LN1735">1735</td><td class="line"> gtk_widget_size_allocate (widget, allocation);</td></tr>
+<tr class="codeline" data-linenumber="1736"><td class="num" id="LN1736">1736</td><td class="line"> </td></tr>
+<tr class="codeline" data-linenumber="1737"><td class="num" id="LN1737">1737</td><td class="line"> <span class='macro'>g_signal_handlers_unblock_by_func (widget, title_item_size_allocate_cb, NULL)<span class='macro_popup'>g_signal_handlers_unblock_matched ((widget), (GSignalMatchType<br>) (G_SIGNAL_MATCH_FUNC | G_SIGNAL_MATCH_DATA), 0, 0, ((void*)<br>0), (title_item_size_allocate_cb), (((void*)0)))</span></span>;</td></tr>
+<tr class="codeline" data-linenumber="1738"><td class="num" id="LN1738">1738</td><td class="line">}</td></tr>
+<tr class="codeline" data-linenumber="1739"><td class="num" id="LN1739">1739</td><td class="line"> </td></tr>
+<tr class="codeline" data-linenumber="1740"><td class="num" id="LN1740">1740</td><td class="line"><span class='keyword'>static</span> GtkWidget *</td></tr>
+<tr class="codeline" data-linenumber="1741"><td class="num" id="LN1741">1741</td><td class="line">make_menu_item_for_output_title (MsdXrandrManager *manager, MateRROutputInfo *output)</td></tr>
+<tr class="codeline" data-linenumber="1742"><td class="num" id="LN1742">1742</td><td class="line">{</td></tr>
+<tr class="codeline" data-linenumber="1743"><td class="num" id="LN1743">1743</td><td class="line"> GtkWidget *item;</td></tr>
+<tr class="codeline" data-linenumber="1744"><td class="num" id="LN1744">1744</td><td class="line"> GtkStyleContext *context;</td></tr>
+<tr class="codeline" data-linenumber="1745"><td class="num" id="LN1745">1745</td><td class="line"> GtkCssProvider *provider, *provider2;</td></tr>
+<tr class="codeline" data-linenumber="1746"><td class="num" id="LN1746">1746</td><td class="line"> GtkWidget *label;</td></tr>
+<tr class="codeline" data-linenumber="1747"><td class="num" id="LN1747">1747</td><td class="line"> GtkWidget *image;</td></tr>
+<tr class="codeline" data-linenumber="1748"><td class="num" id="LN1748">1748</td><td class="line"> GtkWidget *box;</td></tr>
+<tr class="codeline" data-linenumber="1749"><td class="num" id="LN1749">1749</td><td class="line"> <span class='keyword'>char</span> *str;</td></tr>
+<tr class="codeline" data-linenumber="1750"><td class="num" id="LN1750">1750</td><td class="line"> GString *string;</td></tr>
+<tr class="codeline" data-linenumber="1751"><td class="num" id="LN1751">1751</td><td class="line"> GdkRGBA color;</td></tr>
+<tr class="codeline" data-linenumber="1752"><td class="num" id="LN1752">1752</td><td class="line"> gchar *css, *color_string, *theme_name;</td></tr>
+<tr class="codeline" data-linenumber="1753"><td class="num" id="LN1753">1753</td><td class="line"> GtkSettings *settings;</td></tr>
+<tr class="codeline" data-linenumber="1754"><td class="num" id="LN1754">1754</td><td class="line"> GSettings *icon_settings;</td></tr>
+<tr class="codeline" data-linenumber="1755"><td class="num" id="LN1755">1755</td><td class="line"> </td></tr>
+<tr class="codeline" data-linenumber="1756"><td class="num" id="LN1756">1756</td><td class="line"> <span class='keyword'>struct</span> MsdXrandrManagerPrivate *priv = manager-&gt;priv;</td></tr>
+<tr class="codeline" data-linenumber="1757"><td class="num" id="LN1757">1757</td><td class="line"> </td></tr>
+<tr class="codeline" data-linenumber="1758"><td class="num" id="LN1758">1758</td><td class="line"> item = gtk_menu_item_new ();</td></tr>
+<tr class="codeline" data-linenumber="1759"><td class="num" id="LN1759">1759</td><td class="line"> box = gtk_box_new (GTK_ORIENTATION_HORIZONTAL, 6);</td></tr>
+<tr class="codeline" data-linenumber="1760"><td class="num" id="LN1760">1760</td><td class="line"> image = gtk_image_new_from_icon_name (<span class='string_literal'>"computer"</span>, GTK_ICON_SIZE_MENU);</td></tr>
+<tr class="codeline" data-linenumber="1761"><td class="num" id="LN1761">1761</td><td class="line"> context = gtk_widget_get_style_context (item);</td></tr>
+<tr class="codeline" data-linenumber="1762"><td class="num" id="LN1762">1762</td><td class="line"> gtk_style_context_add_class (context, <span class='string_literal'>"xrandr-applet"</span>);</td></tr>
+<tr class="codeline" data-linenumber="1763"><td class="num" id="LN1763">1763</td><td class="line"> </td></tr>
+<tr class="codeline" data-linenumber="1764"><td class="num" id="LN1764">1764</td><td class="line"> <span class='macro'>g_signal_connect (item, <span class='string_literal'>"size-allocate"</span>,<span class='macro_popup'>g_signal_connect_data ((item), ("size-allocate"), (((GCallback<br>) (title_item_size_allocate_cb))), (((void*)0)), ((void*)0), (<br>GConnectFlags) 0)</span></span></td></tr>
+<tr class="codeline" data-linenumber="1765"><td class="num" id="LN1765">1765</td><td class="line"> <span class='macro'>G_CALLBACK (title_item_size_allocate_cb), NULL)<span class='macro_popup'>g_signal_connect_data ((item), ("size-allocate"), (((GCallback<br>) (title_item_size_allocate_cb))), (((void*)0)), ((void*)0), (<br>GConnectFlags) 0)</span></span>;</td></tr>
+<tr class="codeline" data-linenumber="1766"><td class="num" id="LN1766">1766</td><td class="line"> </td></tr>
+<tr class="codeline" data-linenumber="1767"><td class="num" id="LN1767">1767</td><td class="line"> str = g_markup_printf_escaped (<span class='string_literal'>"&lt;b&gt;%s&lt;/b&gt;"</span>, mate_rr_output_info_get_display_name (output));</td></tr>
+<tr class="codeline" data-linenumber="1768"><td class="num" id="LN1768">1768</td><td class="line"> label = gtk_label_new (<span class='macro'>NULL<span class='macro_popup'>((void*)0)</span></span>);</td></tr>
+<tr class="codeline" data-linenumber="1769"><td class="num" id="LN1769">1769</td><td class="line"> gtk_label_set_markup (<span class='macro'>GTK_LABEL (label)<span class='macro_popup'>((((GtkLabel*) g_type_check_instance_cast ((GTypeInstance*) (<br>(label)), ((gtk_label_get_type ()))))))</span></span>, str);</td></tr>
+<tr class="codeline" data-linenumber="1770"><td class="num" id="LN1770">1770</td><td class="line"> g_free (str);</td></tr>
+<tr class="codeline" data-linenumber="1771"><td class="num" id="LN1771">1771</td><td class="line"> </td></tr>
+<tr class="codeline" data-linenumber="1772"><td class="num" id="LN1772">1772</td><td class="line"> <span class='comment'>/* Add padding around the label to fit the box that we'll draw for color-coding */</span></td></tr>
+<tr class="codeline" data-linenumber="1773"><td class="num" id="LN1773">1773</td><td class="line"> gtk_label_set_xalign (<span class='macro'>GTK_LABEL (label)<span class='macro_popup'>((((GtkLabel*) g_type_check_instance_cast ((GTypeInstance*) (<br>(label)), ((gtk_label_get_type ()))))))</span></span>, 0.0);</td></tr>
+<tr class="codeline" data-linenumber="1774"><td class="num" id="LN1774">1774</td><td class="line"> gtk_label_set_yalign (<span class='macro'>GTK_LABEL (label)<span class='macro_popup'>((((GtkLabel*) g_type_check_instance_cast ((GTypeInstance*) (<br>(label)), ((gtk_label_get_type ()))))))</span></span>, 0.5);</td></tr>
+<tr class="codeline" data-linenumber="1775"><td class="num" id="LN1775">1775</td><td class="line"> gtk_widget_set_margin_start (label, <span class='macro'>OUTPUT_TITLE_ITEM_BORDER<span class='macro_popup'>2</span></span> + <span class='macro'>OUTPUT_TITLE_ITEM_PADDING<span class='macro_popup'>4</span></span>);</td></tr>
+<tr class="codeline" data-linenumber="1776"><td class="num" id="LN1776">1776</td><td class="line"> gtk_widget_set_margin_end (label, <span class='macro'>OUTPUT_TITLE_ITEM_BORDER<span class='macro_popup'>2</span></span> + <span class='macro'>OUTPUT_TITLE_ITEM_PADDING<span class='macro_popup'>4</span></span>);</td></tr>
+<tr class="codeline" data-linenumber="1777"><td class="num" id="LN1777">1777</td><td class="line"> gtk_widget_set_margin_top (label, <span class='macro'>OUTPUT_TITLE_ITEM_BORDER<span class='macro_popup'>2</span></span> + <span class='macro'>OUTPUT_TITLE_ITEM_PADDING<span class='macro_popup'>4</span></span>);</td></tr>
+<tr class="codeline" data-linenumber="1778"><td class="num" id="LN1778">1778</td><td class="line"> gtk_widget_set_margin_bottom (label, <span class='macro'>OUTPUT_TITLE_ITEM_BORDER<span class='macro_popup'>2</span></span> + <span class='macro'>OUTPUT_TITLE_ITEM_PADDING<span class='macro_popup'>4</span></span>);</td></tr>
+<tr class="codeline" data-linenumber="1779"><td class="num" id="LN1779">1779</td><td class="line"> </td></tr>
+<tr class="codeline" data-linenumber="1780"><td class="num" id="LN1780">1780</td><td class="line"> <span class='comment'>/*Load the icon unless the user has icons in menus turned off*/</span></td></tr>
+<tr class="codeline" data-linenumber="1781"><td class="num" id="LN1781">1781</td><td class="line"> icon_settings = g_settings_new (<span class='string_literal'>"org.mate.interface"</span>);</td></tr>
+<tr class="codeline" data-linenumber="1782"><td class="num" id="LN1782">1782</td><td class="line"> <span class='keyword'>if</span> (g_settings_get_boolean (icon_settings, <span class='string_literal'>"menus-have-icons"</span>)){</td></tr>
+<tr class="codeline" data-linenumber="1783"><td class="num" id="LN1783">1783</td><td class="line"> gtk_container_add (<span class='macro'>GTK_CONTAINER (box)<span class='macro_popup'>((((GtkContainer*) g_type_check_instance_cast ((GTypeInstance<br>*) ((box)), ((gtk_container_get_type ()))))))</span></span>, image);</td></tr>
+<tr class="codeline" data-linenumber="1784"><td class="num" id="LN1784">1784</td><td class="line"> }</td></tr>
+<tr class="codeline" data-linenumber="1785"><td class="num" id="LN1785">1785</td><td class="line"> gtk_container_add (<span class='macro'>GTK_CONTAINER (box)<span class='macro_popup'>((((GtkContainer*) g_type_check_instance_cast ((GTypeInstance<br>*) ((box)), ((gtk_container_get_type ()))))))</span></span>, label);</td></tr>
+<tr class="codeline" data-linenumber="1786"><td class="num" id="LN1786">1786</td><td class="line"> gtk_container_add (<span class='macro'>GTK_CONTAINER (item)<span class='macro_popup'>((((GtkContainer*) g_type_check_instance_cast ((GTypeInstance<br>*) ((item)), ((gtk_container_get_type ()))))))</span></span>, box);</td></tr>
+<tr class="codeline" data-linenumber="1787"><td class="num" id="LN1787">1787</td><td class="line"> </td></tr>
+<tr class="codeline" data-linenumber="1788"><td class="num" id="LN1788">1788</td><td class="line"> mate_rr_labeler_get_rgba_for_output (priv-&gt;labeler, output, &amp;color);</td></tr>
+<tr class="codeline" data-linenumber="1789"><td class="num" id="LN1789">1789</td><td class="line"> </td></tr>
+<tr class="codeline" data-linenumber="1790"><td class="num" id="LN1790">1790</td><td class="line"> color_string = gdk_rgba_to_string (&amp;color);</td></tr>
+<tr class="codeline" data-linenumber="1791"><td class="num" id="LN1791">1791</td><td class="line"> </td></tr>
+<tr class="codeline" data-linenumber="1792"><td class="num" id="LN1792">1792</td><td class="line"> <span class='comment'>/*This can be overriden by themes, check all label:insensitive entries if it does not show up*/</span></td></tr>
+<tr class="codeline" data-linenumber="1793"><td class="num" id="LN1793">1793</td><td class="line"> string = g_string_new(<span class='macro'>NULL<span class='macro_popup'>((void*)0)</span></span>);</td></tr>
+<tr class="codeline" data-linenumber="1794"><td class="num" id="LN1794">1794</td><td class="line"> g_string_append (string, <span class='string_literal'>".mate-panel-menu-bar menuitem.xrandr-applet:disabled&gt;box&gt;label{\n"</span>);</td></tr>
+<tr class="codeline" data-linenumber="1795"><td class="num" id="LN1795">1795</td><td class="line"> <span class='comment'>/*g_string_append (string, "color: black;"); Does not work-overridden in all themes*/</span></td></tr>
+<tr class="codeline" data-linenumber="1796"><td class="num" id="LN1796">1796</td><td class="line"> g_string_append (string, <span class='string_literal'>"padding-left: 4px; padding-right: 4px;"</span>);</td></tr>
+<tr class="codeline" data-linenumber="1797"><td class="num" id="LN1797">1797</td><td class="line"> g_string_append (string, <span class='string_literal'>"border-color: gray;"</span>);</td></tr>
+<tr class="codeline" data-linenumber="1798"><td class="num" id="LN1798">1798</td><td class="line"> g_string_append (string, <span class='string_literal'>"border-width: 1px;"</span>);</td></tr>
+<tr class="codeline" data-linenumber="1799"><td class="num" id="LN1799">1799</td><td class="line"> g_string_append (string, <span class='string_literal'>"border-style: inset;"</span>);</td></tr>
+<tr class="codeline" data-linenumber="1800"><td class="num" id="LN1800">1800</td><td class="line"> g_string_append (string, <span class='string_literal'>"background-image: none;"</span>);</td></tr>
+<tr class="codeline" data-linenumber="1801"><td class="num" id="LN1801">1801</td><td class="line"> <span class='comment'>/*Bright color for active monitor, dimmed for inactive monitor*/</span></td></tr>
+<tr class="codeline" data-linenumber="1802"><td class="num" id="LN1802">1802</td><td class="line"> <span class='keyword'>if</span> (mate_rr_output_info_is_active (output)){</td></tr>
+<tr class="codeline" data-linenumber="1803"><td class="num" id="LN1803">1803</td><td class="line"> g_string_append (string, <span class='string_literal'>"background-color:"</span>);</td></tr>
+<tr class="codeline" data-linenumber="1804"><td class="num" id="LN1804">1804</td><td class="line"> g_string_append (string, color_string);</td></tr>
+<tr class="codeline" data-linenumber="1805"><td class="num" id="LN1805">1805</td><td class="line"> g_string_append (string, <span class='string_literal'>";"</span>);</td></tr>
+<tr class="codeline" data-linenumber="1806"><td class="num" id="LN1806">1806</td><td class="line"> g_string_append (string,<span class='string_literal'>" }"</span>);</td></tr>
+<tr class="codeline" data-linenumber="1807"><td class="num" id="LN1807">1807</td><td class="line"> }</td></tr>
+<tr class="codeline" data-linenumber="1808"><td class="num" id="LN1808">1808</td><td class="line"> <span class='keyword'>else</span>{</td></tr>
+<tr class="codeline" data-linenumber="1809"><td class="num" id="LN1809">1809</td><td class="line"> g_string_append (string, <span class='string_literal'>"background-color: alpha("</span>);</td></tr>
+<tr class="codeline" data-linenumber="1810"><td class="num" id="LN1810">1810</td><td class="line"> g_string_append (string, color_string);</td></tr>
+<tr class="codeline" data-linenumber="1811"><td class="num" id="LN1811">1811</td><td class="line"> g_string_append (string, <span class='string_literal'>", 0.4);"</span>);</td></tr>
+<tr class="codeline" data-linenumber="1812"><td class="num" id="LN1812">1812</td><td class="line"> g_string_append (string,<span class='string_literal'>" }"</span>);</td></tr>
+<tr class="codeline" data-linenumber="1813"><td class="num" id="LN1813">1813</td><td class="line"> gtk_style_context_add_class (context, <span class='string_literal'>"monitor-off"</span>);</td></tr>
+<tr class="codeline" data-linenumber="1814"><td class="num" id="LN1814">1814</td><td class="line"> }</td></tr>
+<tr class="codeline" data-linenumber="1815"><td class="num" id="LN1815">1815</td><td class="line"> </td></tr>
+<tr class="codeline" data-linenumber="1816"><td class="num" id="LN1816">1816</td><td class="line"> css = g_string_free (string, <span class='macro'>FALSE<span class='macro_popup'>(0)</span></span>);</td></tr>
+<tr class="codeline" data-linenumber="1817"><td class="num" id="LN1817">1817</td><td class="line"> </td></tr>
+<tr class="codeline" data-linenumber="1818"><td class="num" id="LN1818">1818</td><td class="line"> context = gtk_widget_get_style_context (label);</td></tr>
+<tr class="codeline" data-linenumber="1819"><td class="num" id="LN1819">1819</td><td class="line"> provider = gtk_css_provider_new ();</td></tr>
+<tr class="codeline" data-linenumber="1820"><td class="num" id="LN1820">1820</td><td class="line"> gtk_css_provider_load_from_data (provider,css, -1, <span class='macro'>NULL<span class='macro_popup'>((void*)0)</span></span>);</td></tr>
+<tr class="codeline" data-linenumber="1821"><td class="num" id="LN1821">1821</td><td class="line"> </td></tr>
+<tr class="codeline" data-linenumber="1822"><td class="num" id="LN1822">1822</td><td class="line"> gtk_style_context_add_provider (context,</td></tr>
+<tr class="codeline" data-linenumber="1823"><td class="num" id="LN1823">1823</td><td class="line"> <span class='macro'>GTK_STYLE_PROVIDER (provider)<span class='macro_popup'>((((GtkStyleProvider*) g_type_check_instance_cast ((GTypeInstance<br>*) ((provider)), ((gtk_style_provider_get_type ()))))))</span></span>,</td></tr>
+<tr class="codeline" data-linenumber="1824"><td class="num" id="LN1824">1824</td><td class="line"> <span class='macro'>GTK_STYLE_PROVIDER_PRIORITY_FALLBACK<span class='macro_popup'>1</span></span>);</td></tr>
+<tr class="codeline" data-linenumber="1825"><td class="num" id="LN1825">1825</td><td class="line"> </td></tr>
+<tr class="codeline" data-linenumber="1826"><td class="num" id="LN1826">1826</td><td class="line"> g_object_unref (provider);</td></tr>
+<tr class="codeline" data-linenumber="1827"><td class="num" id="LN1827">1827</td><td class="line"> g_free (color_string);</td></tr>
+<tr class="codeline" data-linenumber="1828"><td class="num" id="LN1828">1828</td><td class="line"> g_free (css);</td></tr>
+<tr class="codeline" data-linenumber="1829"><td class="num" id="LN1829">1829</td><td class="line"> </td></tr>
+<tr class="codeline" data-linenumber="1830"><td class="num" id="LN1830">1830</td><td class="line"> <span class='comment'>/*This is NOT overrridden by themes as FALLBACK won't work here</span></td></tr>
+<tr class="codeline" data-linenumber="1831"><td class="num" id="LN1831">1831</td><td class="line"> <span class='comment'>*Disable dim/opacity effects applied to icons in an insensitive menu item</span></td></tr>
+<tr class="codeline" data-linenumber="1832"><td class="num" id="LN1832">1832</td><td class="line"> <span class='comment'>*/</span></td></tr>
+<tr class="codeline" data-linenumber="1833"><td class="num" id="LN1833">1833</td><td class="line"> </td></tr>
+<tr class="codeline" data-linenumber="1834"><td class="num" id="LN1834">1834</td><td class="line"> context = gtk_widget_get_style_context (image);</td></tr>
+<tr class="codeline" data-linenumber="1835"><td class="num" id="LN1835">1835</td><td class="line"> provider = gtk_css_provider_new ();</td></tr>
+<tr class="codeline" data-linenumber="1836"><td class="num" id="LN1836">1836</td><td class="line"> </td></tr>
+<tr class="codeline" data-linenumber="1837"><td class="num" id="LN1837">1837</td><td class="line"> gtk_css_provider_load_from_data (provider,</td></tr>
+<tr class="codeline" data-linenumber="1838"><td class="num" id="LN1838">1838</td><td class="line"> <span class='string_literal'>".mate-panel-menu-bar menuitem.xrandr-applet:disabled&gt;box&gt;image{\n"</span></td></tr>
+<tr class="codeline" data-linenumber="1839"><td class="num" id="LN1839">1839</td><td class="line"> <span class='string_literal'>"opacity: 1.0; \n"</span></td></tr>
+<tr class="codeline" data-linenumber="1840"><td class="num" id="LN1840">1840</td><td class="line"> <span class='string_literal'>"-gtk-icon-style:regular; \n"</span> <span class='comment'>/* symbolic icons would get the disabled color*/</span></td></tr>
+<tr class="codeline" data-linenumber="1841"><td class="num" id="LN1841">1841</td><td class="line"> <span class='string_literal'>"-gtk-icon-effect: none; \n"</span></td></tr>
+<tr class="codeline" data-linenumber="1842"><td class="num" id="LN1842">1842</td><td class="line"> <span class='string_literal'>"}"</span>,</td></tr>
+<tr class="codeline" data-linenumber="1843"><td class="num" id="LN1843">1843</td><td class="line"> -1, <span class='macro'>NULL<span class='macro_popup'>((void*)0)</span></span>);</td></tr>
+<tr class="codeline" data-linenumber="1844"><td class="num" id="LN1844">1844</td><td class="line"> gtk_style_context_add_provider (context,</td></tr>
+<tr class="codeline" data-linenumber="1845"><td class="num" id="LN1845">1845</td><td class="line"> <span class='macro'>GTK_STYLE_PROVIDER (provider)<span class='macro_popup'>((((GtkStyleProvider*) g_type_check_instance_cast ((GTypeInstance<br>*) ((provider)), ((gtk_style_provider_get_type ()))))))</span></span>,</td></tr>
+<tr class="codeline" data-linenumber="1846"><td class="num" id="LN1846">1846</td><td class="line"> <span class='macro'>GTK_STYLE_PROVIDER_PRIORITY_APPLICATION<span class='macro_popup'>600</span></span>);</td></tr>
+<tr class="codeline" data-linenumber="1847"><td class="num" id="LN1847">1847</td><td class="line"> </td></tr>
+<tr class="codeline" data-linenumber="1848"><td class="num" id="LN1848">1848</td><td class="line"> <span class='comment'>/*Deal with the GNOME and *bird themes, match display capplet theme */</span></td></tr>
+<tr class="codeline" data-linenumber="1849"><td class="num" id="LN1849">1849</td><td class="line"> provider2 = gtk_css_provider_new ();</td></tr>
+<tr class="codeline" data-linenumber="1850"><td class="num" id="LN1850">1850</td><td class="line"> settings = gtk_settings_get_default();</td></tr>
+<tr class="codeline" data-linenumber="1851"><td class="num" id="LN1851">1851</td><td class="line"> context = gtk_widget_get_style_context (label);</td></tr>
+<tr class="codeline" data-linenumber="1852"><td class="num" id="LN1852">1852</td><td class="line"> g_object_get (settings, <span class='string_literal'>"gtk-theme-name"</span>, &amp;theme_name, <span class='macro'>NULL<span class='macro_popup'>((void*)0)</span></span>);</td></tr>
+<tr class="codeline" data-linenumber="1853"><td class="num" id="LN1853">1853</td><td class="line"> <span class='keyword'>if</span> (g_strcmp0 (theme_name, <span class='string_literal'>"Adwaita"</span>) == 0 ||</td></tr>
+<tr class="codeline" data-linenumber="1854"><td class="num" id="LN1854">1854</td><td class="line"> g_strcmp0 (theme_name, <span class='string_literal'>"Adwaita-dark"</span>) == 0 ||</td></tr>
+<tr class="codeline" data-linenumber="1855"><td class="num" id="LN1855">1855</td><td class="line"> g_strcmp0 (theme_name, <span class='string_literal'>"Raleigh"</span>) == 0 ||</td></tr>
+<tr class="codeline" data-linenumber="1856"><td class="num" id="LN1856">1856</td><td class="line"> g_strcmp0 (theme_name, <span class='string_literal'>"win32"</span>) == 0 ||</td></tr>
+<tr class="codeline" data-linenumber="1857"><td class="num" id="LN1857">1857</td><td class="line"> g_strcmp0 (theme_name, <span class='string_literal'>"HighContrast"</span>) == 0 ||</td></tr>
+<tr class="codeline" data-linenumber="1858"><td class="num" id="LN1858">1858</td><td class="line"> g_strcmp0 (theme_name, <span class='string_literal'>"HighContrastInverse"</span>) == 0 ||</td></tr>
+<tr class="codeline" data-linenumber="1859"><td class="num" id="LN1859">1859</td><td class="line"> g_strcmp0 (theme_name, <span class='string_literal'>"Blackbird"</span>) == 0 ||</td></tr>
+<tr class="codeline" data-linenumber="1860"><td class="num" id="LN1860">1860</td><td class="line"> g_strcmp0 (theme_name, <span class='string_literal'>"Bluebird"</span>) == 0 ||</td></tr>
+<tr class="codeline" data-linenumber="1861"><td class="num" id="LN1861">1861</td><td class="line"> g_strcmp0 (theme_name, <span class='string_literal'>"Greybird"</span>) == 0){</td></tr>
+<tr class="codeline" data-linenumber="1862"><td class="num" id="LN1862">1862</td><td class="line"> gtk_css_provider_load_from_data (provider2,</td></tr>
+<tr class="codeline" data-linenumber="1863"><td class="num" id="LN1863">1863</td><td class="line"> <span class='string_literal'>".mate-panel-menu-bar menuitem.xrandr-applet:disabled&gt;box&gt;label{\n"</span></td></tr>
+<tr class="codeline" data-linenumber="1864"><td class="num" id="LN1864">1864</td><td class="line"> <span class='string_literal'>"color: black;\n"</span></td></tr>
+<tr class="codeline" data-linenumber="1865"><td class="num" id="LN1865">1865</td><td class="line"> <span class='string_literal'>"}"</span></td></tr>
+<tr class="codeline" data-linenumber="1866"><td class="num" id="LN1866">1866</td><td class="line"> <span class='string_literal'>".mate-panel-menu-bar menuitem.xrandr-applet.monitor-off:disabled&gt;box&gt;label{\n"</span></td></tr>
+<tr class="codeline" data-linenumber="1867"><td class="num" id="LN1867">1867</td><td class="line"> <span class='string_literal'>"color: alpha (black, 0.6);\n"</span></td></tr>
+<tr class="codeline" data-linenumber="1868"><td class="num" id="LN1868">1868</td><td class="line"> <span class='string_literal'>"}"</span>,</td></tr>
+<tr class="codeline" data-linenumber="1869"><td class="num" id="LN1869">1869</td><td class="line"> -1, <span class='macro'>NULL<span class='macro_popup'>((void*)0)</span></span>);</td></tr>
+<tr class="codeline" data-linenumber="1870"><td class="num" id="LN1870">1870</td><td class="line"> gtk_style_context_add_provider(context,</td></tr>
+<tr class="codeline" data-linenumber="1871"><td class="num" id="LN1871">1871</td><td class="line"> <span class='macro'>GTK_STYLE_PROVIDER (provider2)<span class='macro_popup'>((((GtkStyleProvider*) g_type_check_instance_cast ((GTypeInstance<br>*) ((provider2)), ((gtk_style_provider_get_type ()))))))</span></span>,</td></tr>
+<tr class="codeline" data-linenumber="1872"><td class="num" id="LN1872">1872</td><td class="line"> <span class='macro'>GTK_STYLE_PROVIDER_PRIORITY_APPLICATION<span class='macro_popup'>600</span></span>);</td></tr>
+<tr class="codeline" data-linenumber="1873"><td class="num" id="LN1873">1873</td><td class="line"> }</td></tr>
+<tr class="codeline" data-linenumber="1874"><td class="num" id="LN1874">1874</td><td class="line"> <span class='comment'>/*Keep or take this off all other themes as soon as the theme changes*/</span></td></tr>
+<tr class="codeline" data-linenumber="1875"><td class="num" id="LN1875">1875</td><td class="line"> <span class='keyword'>else</span>{</td></tr>
+<tr class="codeline" data-linenumber="1876"><td class="num" id="LN1876">1876</td><td class="line"> gtk_style_context_remove_provider(context, <span class='macro'>GTK_STYLE_PROVIDER (provider2)<span class='macro_popup'>((((GtkStyleProvider*) g_type_check_instance_cast ((GTypeInstance<br>*) ((provider2)), ((gtk_style_provider_get_type ()))))))</span></span>);</td></tr>
+<tr class="codeline" data-linenumber="1877"><td class="num" id="LN1877">1877</td><td class="line"> }</td></tr>
+<tr class="codeline" data-linenumber="1878"><td class="num" id="LN1878">1878</td><td class="line"> </td></tr>
+<tr class="codeline" data-linenumber="1879"><td class="num" id="LN1879">1879</td><td class="line"> g_object_unref (provider);</td></tr>
+<tr class="codeline" data-linenumber="1880"><td class="num" id="LN1880">1880</td><td class="line"> g_object_unref (provider2);</td></tr>
+<tr class="codeline" data-linenumber="1881"><td class="num" id="LN1881">1881</td><td class="line"> </td></tr>
+<tr class="codeline" data-linenumber="1882"><td class="num" id="LN1882">1882</td><td class="line"> gtk_widget_set_sensitive (item, <span class='macro'>FALSE<span class='macro_popup'>(0)</span></span>); <span class='comment'>/* the title is not selectable */</span></td></tr>
+<tr class="codeline" data-linenumber="1883"><td class="num" id="LN1883">1883</td><td class="line"> </td></tr>
+<tr class="codeline" data-linenumber="1884"><td class="num" id="LN1884">1884</td><td class="line"> gtk_widget_show_all (item);</td></tr>
+<tr class="codeline" data-linenumber="1885"><td class="num" id="LN1885">1885</td><td class="line"> </td></tr>
+<tr class="codeline" data-linenumber="1886"><td class="num" id="LN1886">1886</td><td class="line"> <span class='keyword'>return</span> item;</td></tr>
+<tr class="codeline" data-linenumber="1887"><td class="num" id="LN1887">1887</td><td class="line">}</td></tr>
+<tr class="codeline" data-linenumber="1888"><td class="num" id="LN1888">1888</td><td class="line"> </td></tr>
+<tr class="codeline" data-linenumber="1889"><td class="num" id="LN1889">1889</td><td class="line"><span class='keyword'>static</span> <span class='keyword'>void</span></td></tr>
+<tr class="codeline" data-linenumber="1890"><td class="num" id="LN1890">1890</td><td class="line">get_allowed_rotations_for_output (MateRRConfig *config,</td></tr>
+<tr class="codeline" data-linenumber="1891"><td class="num" id="LN1891">1891</td><td class="line"> MateRRScreen *rr_screen,</td></tr>
+<tr class="codeline" data-linenumber="1892"><td class="num" id="LN1892">1892</td><td class="line"> MateRROutputInfo *output,</td></tr>
+<tr class="codeline" data-linenumber="1893"><td class="num" id="LN1893">1893</td><td class="line"> <span class='keyword'>int</span> *out_num_rotations,</td></tr>
+<tr class="codeline" data-linenumber="1894"><td class="num" id="LN1894">1894</td><td class="line"> MateRRRotation *out_rotations)</td></tr>
+<tr class="codeline" data-linenumber="1895"><td class="num" id="LN1895">1895</td><td class="line">{</td></tr>
+<tr class="codeline" data-linenumber="1896"><td class="num" id="LN1896">1896</td><td class="line"> MateRRRotation current_rotation;</td></tr>
+<tr class="codeline" data-linenumber="1897"><td class="num" id="LN1897">1897</td><td class="line"> <span class='keyword'>int</span> i;</td></tr>
+<tr class="codeline" data-linenumber="1898"><td class="num" id="LN1898">1898</td><td class="line"> </td></tr>
+<tr class="codeline" data-linenumber="1899"><td class="num" id="LN1899">1899</td><td class="line"> *out_num_rotations = 0;</td></tr>
+<tr class="codeline" data-linenumber="1900"><td class="num" id="LN1900">1900</td><td class="line"> *out_rotations = 0;</td></tr>
+<tr class="codeline" data-linenumber="1901"><td class="num" id="LN1901">1901</td><td class="line"> </td></tr>
+<tr class="codeline" data-linenumber="1902"><td class="num" id="LN1902">1902</td><td class="line"> current_rotation = mate_rr_output_info_get_rotation (output);</td></tr>
+<tr class="codeline" data-linenumber="1903"><td class="num" id="LN1903">1903</td><td class="line"> </td></tr>
+<tr class="codeline" data-linenumber="1904"><td class="num" id="LN1904">1904</td><td class="line"> <span class='comment'>/* Yay for brute force */</span></td></tr>
+<tr class="codeline" data-linenumber="1905"><td class="num" id="LN1905">1905</td><td class="line"> </td></tr>
+<tr class="codeline" data-linenumber="1906"><td class="num" id="LN1906">1906</td><td class="line"> <span class='keyword'>for</span> (i = 0; i &lt; <span class='macro'>G_N_ELEMENTS (possible_rotations)<span class='macro_popup'>(sizeof (possible_rotations) / sizeof ((possible_rotations)[0<br>]))</span></span>; i++) {</td></tr>
+<tr class="codeline" data-linenumber="1907"><td class="num" id="LN1907">1907</td><td class="line"> MateRRRotation rotation_to_test;</td></tr>
+<tr class="codeline" data-linenumber="1908"><td class="num" id="LN1908">1908</td><td class="line"> </td></tr>
+<tr class="codeline" data-linenumber="1909"><td class="num" id="LN1909">1909</td><td class="line"> rotation_to_test = possible_rotations[i];</td></tr>
+<tr class="codeline" data-linenumber="1910"><td class="num" id="LN1910">1910</td><td class="line"> </td></tr>
+<tr class="codeline" data-linenumber="1911"><td class="num" id="LN1911">1911</td><td class="line"> mate_rr_output_info_set_rotation (output, rotation_to_test);</td></tr>
+<tr class="codeline" data-linenumber="1912"><td class="num" id="LN1912">1912</td><td class="line"> </td></tr>
+<tr class="codeline" data-linenumber="1913"><td class="num" id="LN1913">1913</td><td class="line"> <span class='keyword'>if</span> (mate_rr_config_applicable (config, rr_screen, <span class='macro'>NULL<span class='macro_popup'>((void*)0)</span></span>)) { <span class='comment'>/* NULL-GError */</span></td></tr>
+<tr class="codeline" data-linenumber="1914"><td class="num" id="LN1914">1914</td><td class="line"> (*out_num_rotations)++;</td></tr>
+<tr class="codeline" data-linenumber="1915"><td class="num" id="LN1915">1915</td><td class="line"> (*out_rotations) |= rotation_to_test;</td></tr>
+<tr class="codeline" data-linenumber="1916"><td class="num" id="LN1916">1916</td><td class="line"> }</td></tr>
+<tr class="codeline" data-linenumber="1917"><td class="num" id="LN1917">1917</td><td class="line"> }</td></tr>
+<tr class="codeline" data-linenumber="1918"><td class="num" id="LN1918">1918</td><td class="line"> </td></tr>
+<tr class="codeline" data-linenumber="1919"><td class="num" id="LN1919">1919</td><td class="line"> mate_rr_output_info_set_rotation (output, current_rotation);</td></tr>
+<tr class="codeline" data-linenumber="1920"><td class="num" id="LN1920">1920</td><td class="line"> </td></tr>
+<tr class="codeline" data-linenumber="1921"><td class="num" id="LN1921">1921</td><td class="line"> <span class='keyword'>if</span> (*out_num_rotations == 0 || *out_rotations == 0) {</td></tr>
+<tr class="codeline" data-linenumber="1922"><td class="num" id="LN1922">1922</td><td class="line"> g_warning (<span class='string_literal'>"Huh, output %p says it doesn't support any rotations, and yet it has a current rotation?"</span>, output);</td></tr>
+<tr class="codeline" data-linenumber="1923"><td class="num" id="LN1923">1923</td><td class="line"> *out_num_rotations = 1;</td></tr>
+<tr class="codeline" data-linenumber="1924"><td class="num" id="LN1924">1924</td><td class="line"> *out_rotations = mate_rr_output_info_get_rotation (output);</td></tr>
+<tr class="codeline" data-linenumber="1925"><td class="num" id="LN1925">1925</td><td class="line"> }</td></tr>
+<tr class="codeline" data-linenumber="1926"><td class="num" id="LN1926">1926</td><td class="line">}</td></tr>
+<tr class="codeline" data-linenumber="1927"><td class="num" id="LN1927">1927</td><td class="line"> </td></tr>
+<tr class="codeline" data-linenumber="1928"><td class="num" id="LN1928">1928</td><td class="line"><span class='keyword'>static</span> <span class='keyword'>void</span></td></tr>
+<tr class="codeline" data-linenumber="1929"><td class="num" id="LN1929">1929</td><td class="line">add_unsupported_rotation_item (MsdXrandrManager *manager)</td></tr>
+<tr class="codeline" data-linenumber="1930"><td class="num" id="LN1930">1930</td><td class="line">{</td></tr>
+<tr class="codeline" data-linenumber="1931"><td class="num" id="LN1931">1931</td><td class="line"> <span class='keyword'>struct</span> MsdXrandrManagerPrivate *priv = manager-&gt;priv;</td></tr>
+<tr class="codeline" data-linenumber="1932"><td class="num" id="LN1932">1932</td><td class="line"> GtkWidget *item;</td></tr>
+<tr class="codeline" data-linenumber="1933"><td class="num" id="LN1933">1933</td><td class="line"> GtkWidget *label;</td></tr>
+<tr class="codeline" data-linenumber="1934"><td class="num" id="LN1934">1934</td><td class="line"> gchar *markup;</td></tr>
+<tr class="codeline" data-linenumber="1935"><td class="num" id="LN1935">1935</td><td class="line"> </td></tr>
+<tr class="codeline" data-linenumber="1936"><td class="num" id="LN1936">1936</td><td class="line"> item = gtk_menu_item_new ();</td></tr>
+<tr class="codeline" data-linenumber="1937"><td class="num" id="LN1937">1937</td><td class="line"> </td></tr>
+<tr class="codeline" data-linenumber="1938"><td class="num" id="LN1938">1938</td><td class="line"> label = gtk_label_new (<span class='macro'>NULL<span class='macro_popup'>((void*)0)</span></span>);</td></tr>
+<tr class="codeline" data-linenumber="1939"><td class="num" id="LN1939">1939</td><td class="line"> markup = g_strdup_printf (<span class='string_literal'>"&lt;i&gt;%s&lt;/i&gt;"</span>, <span class='macro'>_(<span class='string_literal'>"Rotation not supported"</span>)<span class='macro_popup'>gettext ("Rotation not supported")</span></span>);</td></tr>
+<tr class="codeline" data-linenumber="1940"><td class="num" id="LN1940">1940</td><td class="line"> gtk_label_set_markup (<span class='macro'>GTK_LABEL (label)<span class='macro_popup'>((((GtkLabel*) g_type_check_instance_cast ((GTypeInstance*) (<br>(label)), ((gtk_label_get_type ()))))))</span></span>, markup);</td></tr>
+<tr class="codeline" data-linenumber="1941"><td class="num" id="LN1941">1941</td><td class="line"> g_free (markup);</td></tr>
+<tr class="codeline" data-linenumber="1942"><td class="num" id="LN1942">1942</td><td class="line"> gtk_container_add (<span class='macro'>GTK_CONTAINER (item)<span class='macro_popup'>((((GtkContainer*) g_type_check_instance_cast ((GTypeInstance<br>*) ((item)), ((gtk_container_get_type ()))))))</span></span>, label);</td></tr>
+<tr class="codeline" data-linenumber="1943"><td class="num" id="LN1943">1943</td><td class="line"> </td></tr>
+<tr class="codeline" data-linenumber="1944"><td class="num" id="LN1944">1944</td><td class="line"> gtk_widget_show_all (item);</td></tr>
+<tr class="codeline" data-linenumber="1945"><td class="num" id="LN1945">1945</td><td class="line"> gtk_menu_shell_append (<span class='macro'>GTK_MENU_SHELL (priv-&gt;popup_menu)<span class='macro_popup'>((((GtkMenuShell*) g_type_check_instance_cast ((GTypeInstance<br>*) ((priv-&gt;popup_menu)), ((gtk_menu_shell_get_type ())))))<br>)</span></span>, item);</td></tr>
+<tr class="codeline" data-linenumber="1946"><td class="num" id="LN1946">1946</td><td class="line">}</td></tr>
+<tr class="codeline" data-linenumber="1947"><td class="num" id="LN1947">1947</td><td class="line"> </td></tr>
+<tr class="codeline" data-linenumber="1948"><td class="num" id="LN1948">1948</td><td class="line"><span class='keyword'>static</span> <span class='keyword'>void</span></td></tr>
+<tr class="codeline" data-linenumber="1949"><td class="num" id="LN1949">1949</td><td class="line">ensure_current_configuration_is_saved (<span class='keyword'>void</span>)</td></tr>
+<tr class="codeline" data-linenumber="1950"><td class="num" id="LN1950">1950</td><td class="line">{</td></tr>
+<tr class="codeline" data-linenumber="1951"><td class="num" id="LN1951">1951</td><td class="line"> MateRRScreen *rr_screen;</td></tr>
+<tr class="codeline" data-linenumber="1952"><td class="num" id="LN1952">1952</td><td class="line"> MateRRConfig *rr_config;</td></tr>
+<tr class="codeline" data-linenumber="1953"><td class="num" id="LN1953">1953</td><td class="line"> </td></tr>
+<tr class="codeline" data-linenumber="1954"><td class="num" id="LN1954">1954</td><td class="line"> <span class='comment'>/* Normally, mate_rr_config_save() creates a backup file based on the</span></td></tr>
+<tr class="codeline" data-linenumber="1955"><td class="num" id="LN1955">1955</td><td class="line"> <span class='comment'>* old monitors.xml. However, if *that* file didn't exist, there is</span></td></tr>
+<tr class="codeline" data-linenumber="1956"><td class="num" id="LN1956">1956</td><td class="line"> <span class='comment'>* nothing from which to create a backup. So, here we'll save the</span></td></tr>
+<tr class="codeline" data-linenumber="1957"><td class="num" id="LN1957">1957</td><td class="line"> <span class='comment'>* current/unchanged configuration and then let our caller call</span></td></tr>
+<tr class="codeline" data-linenumber="1958"><td class="num" id="LN1958">1958</td><td class="line"> <span class='comment'>* mate_rr_config_save() again with the new/changed configuration, so</span></td></tr>
+<tr class="codeline" data-linenumber="1959"><td class="num" id="LN1959">1959</td><td class="line"> <span class='comment'>* that there *will* be a backup file in the end.</span></td></tr>
+<tr class="codeline" data-linenumber="1960"><td class="num" id="LN1960">1960</td><td class="line"> <span class='comment'>*/</span></td></tr>
+<tr class="codeline" data-linenumber="1961"><td class="num" id="LN1961">1961</td><td class="line"> </td></tr>
+<tr class="codeline" data-linenumber="1962"><td class="num" id="LN1962">1962</td><td class="line"> rr_screen = mate_rr_screen_new (gdk_screen_get_default (), <span class='macro'>NULL<span class='macro_popup'>((void*)0)</span></span>); <span class='comment'>/* NULL-GError */</span></td></tr>
+<tr class="codeline" data-linenumber="1963"><td class="num" id="LN1963">1963</td><td class="line"> <span class='keyword'>if</span> (!rr_screen)</td></tr>
+<tr class="codeline" data-linenumber="1964"><td class="num" id="LN1964">1964</td><td class="line"> <span class='keyword'>return</span>;</td></tr>
+<tr class="codeline" data-linenumber="1965"><td class="num" id="LN1965">1965</td><td class="line"> </td></tr>
+<tr class="codeline" data-linenumber="1966"><td class="num" id="LN1966">1966</td><td class="line"> rr_config = mate_rr_config_new_current (rr_screen, <span class='macro'>NULL<span class='macro_popup'>((void*)0)</span></span>);</td></tr>
+<tr class="codeline" data-linenumber="1967"><td class="num" id="LN1967">1967</td><td class="line"> mate_rr_config_save (rr_config, <span class='macro'>NULL<span class='macro_popup'>((void*)0)</span></span>); <span class='comment'>/* NULL-GError */</span></td></tr>
+<tr class="codeline" data-linenumber="1968"><td class="num" id="LN1968">1968</td><td class="line"> </td></tr>
+<tr class="codeline" data-linenumber="1969"><td class="num" id="LN1969">1969</td><td class="line"> g_object_unref (rr_config);</td></tr>
+<tr class="codeline" data-linenumber="1970"><td class="num" id="LN1970">1970</td><td class="line"> g_object_unref (rr_screen);</td></tr>
+<tr class="codeline" data-linenumber="1971"><td class="num" id="LN1971">1971</td><td class="line">}</td></tr>
+<tr class="codeline" data-linenumber="1972"><td class="num" id="LN1972">1972</td><td class="line"> </td></tr>
+<tr class="codeline" data-linenumber="1973"><td class="num" id="LN1973">1973</td><td class="line"><span class='keyword'>static</span> <span class='keyword'>void</span></td></tr>
+<tr class="codeline" data-linenumber="1974"><td class="num" id="LN1974">1974</td><td class="line">monitor_activate_cb (GtkCheckMenuItem *item, gpointer data)</td></tr>
+<tr class="codeline" data-linenumber="1975"><td class="num" id="LN1975">1975</td><td class="line">{</td></tr>
+<tr class="codeline" data-linenumber="1976"><td class="num" id="LN1976">1976</td><td class="line"> MsdXrandrManager *manager = <span class='macro'>MSD_XRANDR_MANAGER (data)<span class='macro_popup'>((((MsdXrandrManager*) g_type_check_instance_cast ((GTypeInstance<br>*) ((data)), ((msd_xrandr_manager_get_type ()))))))</span></span>;</td></tr>
+<tr class="codeline" data-linenumber="1977"><td class="num" id="LN1977">1977</td><td class="line"> <span class='keyword'>struct</span> MsdXrandrManagerPrivate *priv = manager-&gt;priv;</td></tr>
+<tr class="codeline" data-linenumber="1978"><td class="num" id="LN1978">1978</td><td class="line"> MateRROutputInfo *output;</td></tr>
+<tr class="codeline" data-linenumber="1979"><td class="num" id="LN1979">1979</td><td class="line"> GError *error;</td></tr>
+<tr class="codeline" data-linenumber="1980"><td class="num" id="LN1980">1980</td><td class="line"> </td></tr>
+<tr class="codeline" data-linenumber="1981"><td class="num" id="LN1981">1981</td><td class="line"> ensure_current_configuration_is_saved ();</td></tr>
+<tr class="codeline" data-linenumber="1982"><td class="num" id="LN1982">1982</td><td class="line"> </td></tr>
+<tr class="codeline" data-linenumber="1983"><td class="num" id="LN1983">1983</td><td class="line"> output = g_object_get_data (<span class='macro'>G_OBJECT (item)<span class='macro_popup'>((((GObject*) g_type_check_instance_cast ((GTypeInstance*) ((<br>item)), (((GType) ((20) &lt;&lt; (2))))))))</span></span>, <span class='string_literal'>"output"</span>);</td></tr>
+<tr class="codeline" data-linenumber="1984"><td class="num" id="LN1984">1984</td><td class="line"> </td></tr>
+<tr class="codeline" data-linenumber="1985"><td class="num" id="LN1985">1985</td><td class="line"> <span class='comment'>/*This is borrowed from the capplet in mate-control-center</span></td></tr>
+<tr class="codeline" data-linenumber="1986"><td class="num" id="LN1986">1986</td><td class="line"> <span class='comment'>*And shares the same limitations concerning monitors</span></td></tr>
+<tr class="codeline" data-linenumber="1987"><td class="num" id="LN1987">1987</td><td class="line"> <span class='comment'>*which have been turned off and back on without being reconfigured</span></td></tr>
+<tr class="codeline" data-linenumber="1988"><td class="num" id="LN1988">1988</td><td class="line"> <span class='comment'>*/</span></td></tr>
+<tr class="codeline" data-linenumber="1989"><td class="num" id="LN1989">1989</td><td class="line"> <span class='keyword'>if</span> (gtk_check_menu_item_get_active (item)){</td></tr>
+<tr class="codeline" data-linenumber="1990"><td class="num" id="LN1990">1990</td><td class="line"> <span class='keyword'>int</span> x, y, width, height;</td></tr>
+<tr class="codeline" data-linenumber="1991"><td class="num" id="LN1991">1991</td><td class="line"> mate_rr_output_info_get_geometry (output, &amp;x, &amp;y, <span class='macro'>NULL<span class='macro_popup'>((void*)0)</span></span>, <span class='macro'>NULL<span class='macro_popup'>((void*)0)</span></span>);</td></tr>
+<tr class="codeline" data-linenumber="1992"><td class="num" id="LN1992">1992</td><td class="line"> width = mate_rr_output_info_get_preferred_width (output);</td></tr>
+<tr class="codeline" data-linenumber="1993"><td class="num" id="LN1993">1993</td><td class="line"> height = mate_rr_output_info_get_preferred_height (output);</td></tr>
+<tr class="codeline" data-linenumber="1994"><td class="num" id="LN1994">1994</td><td class="line"> mate_rr_output_info_set_geometry (output, x, y, width, height);</td></tr>
+<tr class="codeline" data-linenumber="1995"><td class="num" id="LN1995">1995</td><td class="line"> mate_rr_output_info_set_active (output, <span class='macro'>TRUE<span class='macro_popup'>(!(0))</span></span>);</td></tr>
+<tr class="codeline" data-linenumber="1996"><td class="num" id="LN1996">1996</td><td class="line"> </td></tr>
+<tr class="codeline" data-linenumber="1997"><td class="num" id="LN1997">1997</td><td class="line"> }</td></tr>
+<tr class="codeline" data-linenumber="1998"><td class="num" id="LN1998">1998</td><td class="line"> <span class='keyword'>else</span>{</td></tr>
+<tr class="codeline" data-linenumber="1999"><td class="num" id="LN1999">1999</td><td class="line"> mate_rr_output_info_set_active (output, <span class='macro'>FALSE<span class='macro_popup'>(0)</span></span>);</td></tr>
+<tr class="codeline" data-linenumber="2000"><td class="num" id="LN2000">2000</td><td class="line"> }</td></tr>
+<tr class="codeline" data-linenumber="2001"><td class="num" id="LN2001">2001</td><td class="line"> </td></tr>
+<tr class="codeline" data-linenumber="2002"><td class="num" id="LN2002">2002</td><td class="line"> error = <span class='macro'>NULL<span class='macro_popup'>((void*)0)</span></span>;</td></tr>
+<tr class="codeline" data-linenumber="2003"><td class="num" id="LN2003">2003</td><td class="line"> <span class='keyword'>if</span> (!mate_rr_config_save (priv-&gt;configuration, &amp;error)) {</td></tr>
+<tr class="codeline" data-linenumber="2004"><td class="num" id="LN2004">2004</td><td class="line"> error_message (manager, <span class='macro'>_(<span class='string_literal'>"Could not save monitor configuration"</span>)<span class='macro_popup'>gettext ("Could not save monitor configuration")</span></span>, error, <span class='macro'>NULL<span class='macro_popup'>((void*)0)</span></span>);</td></tr>
+<tr class="codeline" data-linenumber="2005"><td class="num" id="LN2005">2005</td><td class="line"> <span class='keyword'>if</span> (error)</td></tr>
+<tr class="codeline" data-linenumber="2006"><td class="num" id="LN2006">2006</td><td class="line"> g_error_free (error);</td></tr>
+<tr class="codeline" data-linenumber="2007"><td class="num" id="LN2007">2007</td><td class="line"> </td></tr>
+<tr class="codeline" data-linenumber="2008"><td class="num" id="LN2008">2008</td><td class="line"> <span class='keyword'>return</span>;</td></tr>
+<tr class="codeline" data-linenumber="2009"><td class="num" id="LN2009">2009</td><td class="line"> }</td></tr>
+<tr class="codeline" data-linenumber="2010"><td class="num" id="LN2010">2010</td><td class="line"> </td></tr>
+<tr class="codeline" data-linenumber="2011"><td class="num" id="LN2011">2011</td><td class="line"> try_to_apply_intended_configuration (manager, <span class='macro'>NULL<span class='macro_popup'>((void*)0)</span></span>, gtk_get_current_event_time (), <span class='macro'>NULL<span class='macro_popup'>((void*)0)</span></span>);</td></tr>
+<tr class="codeline" data-linenumber="2012"><td class="num" id="LN2012">2012</td><td class="line">}</td></tr>
+<tr class="codeline" data-linenumber="2013"><td class="num" id="LN2013">2013</td><td class="line"> </td></tr>
+<tr class="codeline" data-linenumber="2014"><td class="num" id="LN2014">2014</td><td class="line"><span class='keyword'>static</span> <span class='keyword'>void</span></td></tr>
+<tr class="codeline" data-linenumber="2015"><td class="num" id="LN2015">2015</td><td class="line">output_rotation_item_activate_cb (GtkCheckMenuItem *item, gpointer data)</td></tr>
+<tr class="codeline" data-linenumber="2016"><td class="num" id="LN2016">2016</td><td class="line">{</td></tr>
+<tr class="codeline" data-linenumber="2017"><td class="num" id="LN2017">2017</td><td class="line"> MsdXrandrManager *manager = <span class='macro'>MSD_XRANDR_MANAGER (data)<span class='macro_popup'>((((MsdXrandrManager*) g_type_check_instance_cast ((GTypeInstance<br>*) ((data)), ((msd_xrandr_manager_get_type ()))))))</span></span>;</td></tr>
+<tr class="codeline" data-linenumber="2018"><td class="num" id="LN2018">2018</td><td class="line"> <span class='keyword'>struct</span> MsdXrandrManagerPrivate *priv = manager-&gt;priv;</td></tr>
+<tr class="codeline" data-linenumber="2019"><td class="num" id="LN2019">2019</td><td class="line"> MateRROutputInfo *output;</td></tr>
+<tr class="codeline" data-linenumber="2020"><td class="num" id="LN2020">2020</td><td class="line"> MateRRRotation rotation;</td></tr>
+<tr class="codeline" data-linenumber="2021"><td class="num" id="LN2021">2021</td><td class="line"> GError *error;</td></tr>
+<tr class="codeline" data-linenumber="2022"><td class="num" id="LN2022">2022</td><td class="line"> </td></tr>
+<tr class="codeline" data-linenumber="2023"><td class="num" id="LN2023">2023</td><td class="line"> <span class='comment'>/* Not interested in deselected items */</span></td></tr>
+<tr class="codeline" data-linenumber="2024"><td class="num" id="LN2024">2024</td><td class="line"> <span class='keyword'>if</span> (!gtk_check_menu_item_get_active (item))</td></tr>
+<tr class="codeline" data-linenumber="2025"><td class="num" id="LN2025">2025</td><td class="line"> <span class='keyword'>return</span>;</td></tr>
+<tr class="codeline" data-linenumber="2026"><td class="num" id="LN2026">2026</td><td class="line"> </td></tr>
+<tr class="codeline" data-linenumber="2027"><td class="num" id="LN2027">2027</td><td class="line"> ensure_current_configuration_is_saved ();</td></tr>
+<tr class="codeline" data-linenumber="2028"><td class="num" id="LN2028">2028</td><td class="line"> </td></tr>
+<tr class="codeline" data-linenumber="2029"><td class="num" id="LN2029">2029</td><td class="line"> output = g_object_get_data (<span class='macro'>G_OBJECT (item)<span class='macro_popup'>((((GObject*) g_type_check_instance_cast ((GTypeInstance*) ((<br>item)), (((GType) ((20) &lt;&lt; (2))))))))</span></span>, <span class='string_literal'>"output"</span>);</td></tr>
+<tr class="codeline" data-linenumber="2030"><td class="num" id="LN2030">2030</td><td class="line"> rotation = <span class='macro'>GPOINTER_TO_INT (g_object_get_data (G_OBJECT (item), <span class='string_literal'>"rotation"</span>))<span class='macro_popup'>((gint) (glong) (g_object_get_data (((((GObject*) g_type_check_instance_cast<br> ((GTypeInstance*) ((item)), (((GType) ((20) &lt;&lt; (2)))))<br>))), "rotation")))</span></span>;</td></tr>
+<tr class="codeline" data-linenumber="2031"><td class="num" id="LN2031">2031</td><td class="line"> </td></tr>
+<tr class="codeline" data-linenumber="2032"><td class="num" id="LN2032">2032</td><td class="line"> mate_rr_output_info_set_rotation (output, rotation);</td></tr>
+<tr class="codeline" data-linenumber="2033"><td class="num" id="LN2033">2033</td><td class="line"> </td></tr>
+<tr class="codeline" data-linenumber="2034"><td class="num" id="LN2034">2034</td><td class="line"> error = <span class='macro'>NULL<span class='macro_popup'>((void*)0)</span></span>;</td></tr>
+<tr class="codeline" data-linenumber="2035"><td class="num" id="LN2035">2035</td><td class="line"> <span class='keyword'>if</span> (!mate_rr_config_save (priv-&gt;configuration, &amp;error)) {</td></tr>
+<tr class="codeline" data-linenumber="2036"><td class="num" id="LN2036">2036</td><td class="line"> error_message (manager, <span class='macro'>_(<span class='string_literal'>"Could not save monitor configuration"</span>)<span class='macro_popup'>gettext ("Could not save monitor configuration")</span></span>, error, <span class='macro'>NULL<span class='macro_popup'>((void*)0)</span></span>);</td></tr>
+<tr class="codeline" data-linenumber="2037"><td class="num" id="LN2037">2037</td><td class="line"> <span class='keyword'>if</span> (error)</td></tr>
+<tr class="codeline" data-linenumber="2038"><td class="num" id="LN2038">2038</td><td class="line"> g_error_free (error);</td></tr>
+<tr class="codeline" data-linenumber="2039"><td class="num" id="LN2039">2039</td><td class="line"> </td></tr>
+<tr class="codeline" data-linenumber="2040"><td class="num" id="LN2040">2040</td><td class="line"> <span class='keyword'>return</span>;</td></tr>
+<tr class="codeline" data-linenumber="2041"><td class="num" id="LN2041">2041</td><td class="line"> }</td></tr>
+<tr class="codeline" data-linenumber="2042"><td class="num" id="LN2042">2042</td><td class="line"> </td></tr>
+<tr class="codeline" data-linenumber="2043"><td class="num" id="LN2043">2043</td><td class="line"> try_to_apply_intended_configuration (manager, <span class='macro'>NULL<span class='macro_popup'>((void*)0)</span></span>, gtk_get_current_event_time (), <span class='macro'>NULL<span class='macro_popup'>((void*)0)</span></span>); <span class='comment'>/* NULL-GError */</span></td></tr>
+<tr class="codeline" data-linenumber="2044"><td class="num" id="LN2044">2044</td><td class="line">}</td></tr>
+<tr class="codeline" data-linenumber="2045"><td class="num" id="LN2045">2045</td><td class="line"> </td></tr>
+<tr class="codeline" data-linenumber="2046"><td class="num" id="LN2046">2046</td><td class="line"><span class='keyword'>static</span> <span class='keyword'>void</span></td></tr>
+<tr class="codeline" data-linenumber="2047"><td class="num" id="LN2047">2047</td><td class="line">mirror_outputs_cb(GtkCheckMenuItem *item, gpointer data)</td></tr>
+<tr class="codeline" data-linenumber="2048"><td class="num" id="LN2048">2048</td><td class="line">{</td></tr>
+<tr class="codeline" data-linenumber="2049"><td class="num" id="LN2049">2049</td><td class="line"> MsdXrandrManager *manager = <span class='macro'>MSD_XRANDR_MANAGER (data)<span class='macro_popup'>((((MsdXrandrManager*) g_type_check_instance_cast ((GTypeInstance<br>*) ((data)), ((msd_xrandr_manager_get_type ()))))))</span></span>;</td></tr>
+<tr class="codeline" data-linenumber="2050"><td class="num" id="LN2050">2050</td><td class="line"> <span class='keyword'>struct</span> MsdXrandrManagerPrivate *priv = manager-&gt;priv;</td></tr>
+<tr class="codeline" data-linenumber="2051"><td class="num" id="LN2051">2051</td><td class="line"> MateRRScreen *screen = priv-&gt;rw_screen;</td></tr>
+<tr class="codeline" data-linenumber="2052"><td class="num" id="LN2052">2052</td><td class="line"> </td></tr>
+<tr class="codeline" data-linenumber="2053"><td class="num" id="LN2053">2053</td><td class="line"> <span class='keyword'>if</span> (gtk_check_menu_item_get_active(item)){</td></tr>
+<tr class="codeline" data-linenumber="2054"><td class="num" id="LN2054">2054</td><td class="line"> </td></tr>
+<tr class="codeline" data-linenumber="2055"><td class="num" id="LN2055">2055</td><td class="line"> MateRRConfig *config;</td></tr>
+<tr class="codeline" data-linenumber="2056"><td class="num" id="LN2056">2056</td><td class="line"> config = make_clone_setup (screen);</td></tr>
+<tr class="codeline" data-linenumber="2057"><td class="num" id="LN2057">2057</td><td class="line"> <span class='keyword'>if</span> (!config || config == <span class='macro'>NULL<span class='macro_popup'>((void*)0)</span></span>){</td></tr>
+<tr class="codeline" data-linenumber="2058"><td class="num" id="LN2058">2058</td><td class="line"> error_message (manager, <span class='macro'>_(<span class='string_literal'>"Mirroring outputs not supported"</span>)<span class='macro_popup'>gettext ("Mirroring outputs not supported")</span></span>, <span class='macro'>NULL<span class='macro_popup'>((void*)0)</span></span>, <span class='macro'>NULL<span class='macro_popup'>((void*)0)</span></span>);</td></tr>
+<tr class="codeline" data-linenumber="2059"><td class="num" id="LN2059">2059</td><td class="line"> }</td></tr>
+<tr class="codeline" data-linenumber="2060"><td class="num" id="LN2060">2060</td><td class="line"> </td></tr>
+<tr class="codeline" data-linenumber="2061"><td class="num" id="LN2061">2061</td><td class="line"> mate_rr_config_save (config, <span class='macro'>NULL<span class='macro_popup'>((void*)0)</span></span>);</td></tr>
+<tr class="codeline" data-linenumber="2062"><td class="num" id="LN2062">2062</td><td class="line"> try_to_apply_intended_configuration (manager, <span class='macro'>NULL<span class='macro_popup'>((void*)0)</span></span>, gtk_get_current_event_time (), <span class='macro'>NULL<span class='macro_popup'>((void*)0)</span></span>);</td></tr>
+<tr class="codeline" data-linenumber="2063"><td class="num" id="LN2063">2063</td><td class="line"> </td></tr>
+<tr class="codeline" data-linenumber="2064"><td class="num" id="LN2064">2064</td><td class="line"> g_object_unref (config);</td></tr>
+<tr class="codeline" data-linenumber="2065"><td class="num" id="LN2065">2065</td><td class="line"> </td></tr>
+<tr class="codeline" data-linenumber="2066"><td class="num" id="LN2066">2066</td><td class="line"> }</td></tr>
+<tr class="codeline" data-linenumber="2067"><td class="num" id="LN2067">2067</td><td class="line"> <span class='keyword'>else</span>{</td></tr>
+<tr class="codeline" data-linenumber="2068"><td class="num" id="LN2068">2068</td><td class="line"> </td></tr>
+<tr class="codeline" data-linenumber="2069"><td class="num" id="LN2069">2069</td><td class="line"> MateRRConfig *config;</td></tr>
+<tr class="codeline" data-linenumber="2070"><td class="num" id="LN2070">2070</td><td class="line"> config = make_primary_only_setup (screen);</td></tr>
+<tr class="codeline" data-linenumber="2071"><td class="num" id="LN2071">2071</td><td class="line"> <span class='comment'>/*If nothing worked, bring up the display capplet so the user can reconfigure*/</span></td></tr>
+<tr class="codeline" data-linenumber="2072"><td class="num" id="LN2072">2072</td><td class="line"> <span class='keyword'>if</span> (config == <span class='macro'>NULL<span class='macro_popup'>((void*)0)</span></span>)</td></tr>
+<tr class="codeline" data-linenumber="2073"><td class="num" id="LN2073">2073</td><td class="line"> run_display_capplet(<span class='macro'>GTK_WIDGET(item)<span class='macro_popup'>((((GtkWidget*) g_type_check_instance_cast ((GTypeInstance*) (<br>(item)), ((gtk_widget_get_type ()))))))</span></span>);</td></tr>
+<tr class="codeline" data-linenumber="2074"><td class="num" id="LN2074">2074</td><td class="line"> mate_rr_config_save (config, <span class='macro'>NULL<span class='macro_popup'>((void*)0)</span></span>);</td></tr>
+<tr class="codeline" data-linenumber="2075"><td class="num" id="LN2075">2075</td><td class="line"> try_to_apply_intended_configuration (manager, <span class='macro'>NULL<span class='macro_popup'>((void*)0)</span></span>, gtk_get_current_event_time (), <span class='macro'>NULL<span class='macro_popup'>((void*)0)</span></span>);</td></tr>
+<tr class="codeline" data-linenumber="2076"><td class="num" id="LN2076">2076</td><td class="line"> </td></tr>
+<tr class="codeline" data-linenumber="2077"><td class="num" id="LN2077">2077</td><td class="line"> g_object_unref (config);</td></tr>
+<tr class="codeline" data-linenumber="2078"><td class="num" id="LN2078">2078</td><td class="line"> </td></tr>
+<tr class="codeline" data-linenumber="2079"><td class="num" id="LN2079">2079</td><td class="line"> }</td></tr>
+<tr class="codeline" data-linenumber="2080"><td class="num" id="LN2080">2080</td><td class="line">}</td></tr>
+<tr class="codeline" data-linenumber="2081"><td class="num" id="LN2081">2081</td><td class="line"><span class='keyword'>static</span> <span class='keyword'>void</span></td></tr>
+<tr class="codeline" data-linenumber="2082"><td class="num" id="LN2082">2082</td><td class="line">add_items_for_rotations (MsdXrandrManager *manager, MateRROutputInfo *output, MateRRRotation allowed_rotations)</td></tr>
+<tr class="codeline" data-linenumber="2083"><td class="num" id="LN2083">2083</td><td class="line">{</td></tr>
+<tr class="codeline" data-linenumber="2084"><td class="num" id="LN2084">2084</td><td class="line"> <span class='keyword'>typedef</span> <span class='keyword'>struct</span> {</td></tr>
+<tr class="codeline" data-linenumber="2085"><td class="num" id="LN2085">2085</td><td class="line"> MateRRRotation rotation;</td></tr>
+<tr class="codeline" data-linenumber="2086"><td class="num" id="LN2086">2086</td><td class="line"> <span class='keyword'>const</span> <span class='keyword'>char</span> * name;</td></tr>
+<tr class="codeline" data-linenumber="2087"><td class="num" id="LN2087">2087</td><td class="line"> } RotationInfo;</td></tr>
+<tr class="codeline" data-linenumber="2088"><td class="num" id="LN2088">2088</td><td class="line"> <span class='keyword'>static</span> <span class='keyword'>const</span> RotationInfo rotations[] = {</td></tr>
+<tr class="codeline" data-linenumber="2089"><td class="num" id="LN2089">2089</td><td class="line"> { MATE_RR_ROTATION_0, <span class='macro'>N_(<span class='string_literal'>"Normal"</span>)<span class='macro_popup'>("Normal")</span></span> },</td></tr>
+<tr class="codeline" data-linenumber="2090"><td class="num" id="LN2090">2090</td><td class="line"> { MATE_RR_ROTATION_90, <span class='macro'>N_(<span class='string_literal'>"Left"</span>)<span class='macro_popup'>("Left")</span></span> },</td></tr>
+<tr class="codeline" data-linenumber="2091"><td class="num" id="LN2091">2091</td><td class="line"> { MATE_RR_ROTATION_270, <span class='macro'>N_(<span class='string_literal'>"Right"</span>)<span class='macro_popup'>("Right")</span></span> },</td></tr>
+<tr class="codeline" data-linenumber="2092"><td class="num" id="LN2092">2092</td><td class="line"> { MATE_RR_ROTATION_180, <span class='macro'>N_(<span class='string_literal'>"Upside Down"</span>)<span class='macro_popup'>("Upside Down")</span></span> },</td></tr>
+<tr class="codeline" data-linenumber="2093"><td class="num" id="LN2093">2093</td><td class="line"> <span class='comment'>/* We don't allow REFLECT_X or REFLECT_Y for now, as mate-display-properties doesn't allow them, either */</span></td></tr>
+<tr class="codeline" data-linenumber="2094"><td class="num" id="LN2094">2094</td><td class="line"> };</td></tr>
+<tr class="codeline" data-linenumber="2095"><td class="num" id="LN2095">2095</td><td class="line"> </td></tr>
+<tr class="codeline" data-linenumber="2096"><td class="num" id="LN2096">2096</td><td class="line"> <span class='keyword'>struct</span> MsdXrandrManagerPrivate *priv = manager-&gt;priv;</td></tr>
+<tr class="codeline" data-linenumber="2097"><td class="num" id="LN2097">2097</td><td class="line"> <span class='keyword'>int</span> i;</td></tr>
+<tr class="codeline" data-linenumber="2098"><td class="num" id="LN2098">2098</td><td class="line"> GSList *group;</td></tr>
+<tr class="codeline" data-linenumber="2099"><td class="num" id="LN2099">2099</td><td class="line"> GtkWidget *active_item;</td></tr>
+<tr class="codeline" data-linenumber="2100"><td class="num" id="LN2100">2100</td><td class="line"> gulong active_item_activate_id;</td></tr>
+<tr class="codeline" data-linenumber="2101"><td class="num" id="LN2101">2101</td><td class="line"> </td></tr>
+<tr class="codeline" data-linenumber="2102"><td class="num" id="LN2102">2102</td><td class="line"> group = <span class='macro'>NULL<span class='macro_popup'>((void*)0)</span></span>;</td></tr>
+<tr class="codeline" data-linenumber="2103"><td class="num" id="LN2103">2103</td><td class="line"> active_item = <span class='macro'>NULL<span class='macro_popup'>((void*)0)</span></span>;</td></tr>
+<tr class="codeline" data-linenumber="2104"><td class="num" id="LN2104">2104</td><td class="line"> active_item_activate_id = 0;</td></tr>
+<tr class="codeline" data-linenumber="2105"><td class="num" id="LN2105">2105</td><td class="line"> </td></tr>
+<tr class="codeline" data-linenumber="2106"><td class="num" id="LN2106">2106</td><td class="line"> <span class='keyword'>for</span> (i = 0; i &lt; <span class='macro'>G_N_ELEMENTS (rotations)<span class='macro_popup'>(sizeof (rotations) / sizeof ((rotations)[0]))</span></span>; i++) {</td></tr>
+<tr class="codeline" data-linenumber="2107"><td class="num" id="LN2107">2107</td><td class="line"> MateRRRotation rot;</td></tr>
+<tr class="codeline" data-linenumber="2108"><td class="num" id="LN2108">2108</td><td class="line"> GtkWidget *item;</td></tr>
+<tr class="codeline" data-linenumber="2109"><td class="num" id="LN2109">2109</td><td class="line"> gulong activate_id;</td></tr>
+<tr class="codeline" data-linenumber="2110"><td class="num" id="LN2110">2110</td><td class="line"> </td></tr>
+<tr class="codeline" data-linenumber="2111"><td class="num" id="LN2111">2111</td><td class="line"> rot = rotations[i].rotation;</td></tr>
+<tr class="codeline" data-linenumber="2112"><td class="num" id="LN2112">2112</td><td class="line"> </td></tr>
+<tr class="codeline" data-linenumber="2113"><td class="num" id="LN2113">2113</td><td class="line"> <span class='keyword'>if</span> ((allowed_rotations &amp; rot) == 0) {</td></tr>
+<tr class="codeline" data-linenumber="2114"><td class="num" id="LN2114">2114</td><td class="line"> <span class='comment'>/* don't display items for rotations which are</span></td></tr>
+<tr class="codeline" data-linenumber="2115"><td class="num" id="LN2115">2115</td><td class="line"> <span class='comment'>* unavailable. Their availability is not under the</span></td></tr>
+<tr class="codeline" data-linenumber="2116"><td class="num" id="LN2116">2116</td><td class="line"> <span class='comment'>* user's control, anyway.</span></td></tr>
+<tr class="codeline" data-linenumber="2117"><td class="num" id="LN2117">2117</td><td class="line"> <span class='comment'>*/</span></td></tr>
+<tr class="codeline" data-linenumber="2118"><td class="num" id="LN2118">2118</td><td class="line"> <span class='keyword'>continue</span>;</td></tr>
+<tr class="codeline" data-linenumber="2119"><td class="num" id="LN2119">2119</td><td class="line"> }</td></tr>
+<tr class="codeline" data-linenumber="2120"><td class="num" id="LN2120">2120</td><td class="line"> </td></tr>
+<tr class="codeline" data-linenumber="2121"><td class="num" id="LN2121">2121</td><td class="line"> item = gtk_radio_menu_item_new_with_label (group, <span class='macro'>_(rotations[i].name)<span class='macro_popup'>gettext (rotations[i].name)</span></span>);</td></tr>
+<tr class="codeline" data-linenumber="2122"><td class="num" id="LN2122">2122</td><td class="line"> <span class='comment'>/*HERE*/</span></td></tr>
+<tr class="codeline" data-linenumber="2123"><td class="num" id="LN2123">2123</td><td class="line"> <span class='keyword'>if</span> (!(mate_rr_output_info_is_active (output))){</td></tr>
+<tr class="codeline" data-linenumber="2124"><td class="num" id="LN2124">2124</td><td class="line"> gtk_widget_set_sensitive (item, <span class='macro'>FALSE<span class='macro_popup'>(0)</span></span>); <span class='comment'>/*Rotation can't be set from the OFF state*/</span></td></tr>
+<tr class="codeline" data-linenumber="2125"><td class="num" id="LN2125">2125</td><td class="line"> }</td></tr>
+<tr class="codeline" data-linenumber="2126"><td class="num" id="LN2126">2126</td><td class="line"> gtk_widget_show_all (item);</td></tr>
+<tr class="codeline" data-linenumber="2127"><td class="num" id="LN2127">2127</td><td class="line"> gtk_menu_shell_append (<span class='macro'>GTK_MENU_SHELL (priv-&gt;popup_menu)<span class='macro_popup'>((((GtkMenuShell*) g_type_check_instance_cast ((GTypeInstance<br>*) ((priv-&gt;popup_menu)), ((gtk_menu_shell_get_type ())))))<br>)</span></span>, item);</td></tr>
+<tr class="codeline" data-linenumber="2128"><td class="num" id="LN2128">2128</td><td class="line"> </td></tr>
+<tr class="codeline" data-linenumber="2129"><td class="num" id="LN2129">2129</td><td class="line"> g_object_set_data (<span class='macro'>G_OBJECT (item)<span class='macro_popup'>((((GObject*) g_type_check_instance_cast ((GTypeInstance*) ((<br>item)), (((GType) ((20) &lt;&lt; (2))))))))</span></span>, <span class='string_literal'>"output"</span>, output);</td></tr>
+<tr class="codeline" data-linenumber="2130"><td class="num" id="LN2130">2130</td><td class="line"> g_object_set_data (<span class='macro'>G_OBJECT (item)<span class='macro_popup'>((((GObject*) g_type_check_instance_cast ((GTypeInstance*) ((<br>item)), (((GType) ((20) &lt;&lt; (2))))))))</span></span>, <span class='string_literal'>"rotation"</span>, <span class='macro'>GINT_TO_POINTER (rot)<span class='macro_popup'>((gpointer) (glong) (rot))</span></span>);</td></tr>
+<tr class="codeline" data-linenumber="2131"><td class="num" id="LN2131">2131</td><td class="line"> </td></tr>
+<tr class="codeline" data-linenumber="2132"><td class="num" id="LN2132">2132</td><td class="line"> activate_id = <span class='macro'>g_signal_connect (item, <span class='string_literal'>"activate"</span>,<span class='macro_popup'>g_signal_connect_data ((item), ("activate"), (((GCallback) (output_rotation_item_activate_cb<br>))), (manager), ((void*)0), (GConnectFlags) 0)</span></span></td></tr>
+<tr class="codeline" data-linenumber="2133"><td class="num" id="LN2133">2133</td><td class="line"> <span class='macro'>G_CALLBACK (output_rotation_item_activate_cb), manager)<span class='macro_popup'>g_signal_connect_data ((item), ("activate"), (((GCallback) (output_rotation_item_activate_cb<br>))), (manager), ((void*)0), (GConnectFlags) 0)</span></span>;</td></tr>
+<tr class="codeline" data-linenumber="2134"><td class="num" id="LN2134">2134</td><td class="line"> </td></tr>
+<tr class="codeline" data-linenumber="2135"><td class="num" id="LN2135">2135</td><td class="line"> group = gtk_radio_menu_item_get_group (<span class='macro'>GTK_RADIO_MENU_ITEM (item)<span class='macro_popup'>((((GtkRadioMenuItem*) g_type_check_instance_cast ((GTypeInstance<br>*) ((item)), ((gtk_radio_menu_item_get_type ()))))))</span></span>);</td></tr>
+<tr class="codeline" data-linenumber="2136"><td class="num" id="LN2136">2136</td><td class="line"> </td></tr>
+<tr class="codeline" data-linenumber="2137"><td class="num" id="LN2137">2137</td><td class="line"> <span class='keyword'>if</span> (rot == mate_rr_output_info_get_rotation (output)) {</td></tr>
+<tr class="codeline" data-linenumber="2138"><td class="num" id="LN2138">2138</td><td class="line"> active_item = item;</td></tr>
+<tr class="codeline" data-linenumber="2139"><td class="num" id="LN2139">2139</td><td class="line"> active_item_activate_id = activate_id;</td></tr>
+<tr class="codeline" data-linenumber="2140"><td class="num" id="LN2140">2140</td><td class="line"> }</td></tr>
+<tr class="codeline" data-linenumber="2141"><td class="num" id="LN2141">2141</td><td class="line"> }</td></tr>
+<tr class="codeline" data-linenumber="2142"><td class="num" id="LN2142">2142</td><td class="line"> </td></tr>
+<tr class="codeline" data-linenumber="2143"><td class="num" id="LN2143">2143</td><td class="line"> <span class='keyword'>if</span> (active_item) {</td></tr>
+<tr class="codeline" data-linenumber="2144"><td class="num" id="LN2144">2144</td><td class="line"> <span class='comment'>/* Block the signal temporarily so our callback won't be called;</span></td></tr>
+<tr class="codeline" data-linenumber="2145"><td class="num" id="LN2145">2145</td><td class="line"> <span class='comment'>* we are just setting up the UI.</span></td></tr>
+<tr class="codeline" data-linenumber="2146"><td class="num" id="LN2146">2146</td><td class="line"> <span class='comment'>*/</span></td></tr>
+<tr class="codeline" data-linenumber="2147"><td class="num" id="LN2147">2147</td><td class="line"> g_signal_handler_block (active_item, active_item_activate_id);</td></tr>
+<tr class="codeline" data-linenumber="2148"><td class="num" id="LN2148">2148</td><td class="line"> </td></tr>
+<tr class="codeline" data-linenumber="2149"><td class="num" id="LN2149">2149</td><td class="line"> gtk_check_menu_item_set_active (<span class='macro'>GTK_CHECK_MENU_ITEM (active_item)<span class='macro_popup'>((((GtkCheckMenuItem*) g_type_check_instance_cast ((GTypeInstance<br>*) ((active_item)), ((gtk_check_menu_item_get_type ()))))))</span></span>, <span class='macro'>TRUE<span class='macro_popup'>(!(0))</span></span>);</td></tr>
+<tr class="codeline" data-linenumber="2150"><td class="num" id="LN2150">2150</td><td class="line"> </td></tr>
+<tr class="codeline" data-linenumber="2151"><td class="num" id="LN2151">2151</td><td class="line"> g_signal_handler_unblock (active_item, active_item_activate_id);</td></tr>
+<tr class="codeline" data-linenumber="2152"><td class="num" id="LN2152">2152</td><td class="line"> }</td></tr>
+<tr class="codeline" data-linenumber="2153"><td class="num" id="LN2153">2153</td><td class="line"> </td></tr>
+<tr class="codeline" data-linenumber="2154"><td class="num" id="LN2154">2154</td><td class="line">}</td></tr>
+<tr class="codeline" data-linenumber="2155"><td class="num" id="LN2155">2155</td><td class="line"> </td></tr>
+<tr class="codeline" data-linenumber="2156"><td class="num" id="LN2156">2156</td><td class="line"><span class='keyword'>static</span> <span class='keyword'>void</span></td></tr>
+<tr class="codeline" data-linenumber="2157"><td class="num" id="LN2157">2157</td><td class="line">add_rotation_items_for_output (MsdXrandrManager *manager, MateRROutputInfo *output)</td></tr>
+<tr class="codeline" data-linenumber="2158"><td class="num" id="LN2158">2158</td><td class="line">{</td></tr>
+<tr class="codeline" data-linenumber="2159"><td class="num" id="LN2159">2159</td><td class="line"> <span class='keyword'>struct</span> MsdXrandrManagerPrivate *priv = manager-&gt;priv;</td></tr>
+<tr class="codeline" data-linenumber="2160"><td class="num" id="LN2160">2160</td><td class="line"> <span class='keyword'>int</span> num_rotations;</td></tr>
+<tr class="codeline" data-linenumber="2161"><td class="num" id="LN2161">2161</td><td class="line"> MateRRRotation rotations;</td></tr>
+<tr class="codeline" data-linenumber="2162"><td class="num" id="LN2162">2162</td><td class="line"> </td></tr>
+<tr class="codeline" data-linenumber="2163"><td class="num" id="LN2163">2163</td><td class="line"> get_allowed_rotations_for_output (priv-&gt;configuration, priv-&gt;rw_screen, output, &amp;num_rotations, &amp;rotations);</td></tr>
+<tr class="codeline" data-linenumber="2164"><td class="num" id="LN2164">2164</td><td class="line"> </td></tr>
+<tr class="codeline" data-linenumber="2165"><td class="num" id="LN2165">2165</td><td class="line"> <span class='keyword'>if</span> (num_rotations == 1)</td></tr>
+<tr class="codeline" data-linenumber="2166"><td class="num" id="LN2166">2166</td><td class="line"> add_unsupported_rotation_item (manager);</td></tr>
+<tr class="codeline" data-linenumber="2167"><td class="num" id="LN2167">2167</td><td class="line"> <span class='keyword'>else</span></td></tr>
+<tr class="codeline" data-linenumber="2168"><td class="num" id="LN2168">2168</td><td class="line"> add_items_for_rotations (manager, output, rotations);</td></tr>
+<tr class="codeline" data-linenumber="2169"><td class="num" id="LN2169">2169</td><td class="line">}</td></tr>
+<tr class="codeline" data-linenumber="2170"><td class="num" id="LN2170">2170</td><td class="line"> </td></tr>
+<tr class="codeline" data-linenumber="2171"><td class="num" id="LN2171">2171</td><td class="line"><span class='keyword'>static</span> <span class='keyword'>void</span></td></tr>
+<tr class="codeline" data-linenumber="2172"><td class="num" id="LN2172">2172</td><td class="line">add_enable_option_for_output (MsdXrandrManager *manager, MateRROutputInfo *output)</td></tr>
+<tr class="codeline" data-linenumber="2173"><td class="num" id="LN2173">2173</td><td class="line">{</td></tr>
+<tr class="codeline" data-linenumber="2174"><td class="num" id="LN2174">2174</td><td class="line"> <span class='keyword'>struct</span> MsdXrandrManagerPrivate *priv = manager-&gt;priv;</td></tr>
+<tr class="codeline" data-linenumber="2175"><td class="num" id="LN2175">2175</td><td class="line"> GtkWidget *item;</td></tr>
+<tr class="codeline" data-linenumber="2176"><td class="num" id="LN2176">2176</td><td class="line"> gulong activate_id;</td></tr>
+<tr class="codeline" data-linenumber="2177"><td class="num" id="LN2177">2177</td><td class="line"> </td></tr>
+<tr class="codeline" data-linenumber="2178"><td class="num" id="LN2178">2178</td><td class="line"> item = gtk_check_menu_item_new();</td></tr>
+<tr class="codeline" data-linenumber="2179"><td class="num" id="LN2179">2179</td><td class="line"> </td></tr>
+<tr class="codeline" data-linenumber="2180"><td class="num" id="LN2180">2180</td><td class="line"> <span class='keyword'&